lede icon indicating copy to clipboard operation
lede copied to clipboard

Your BIOS Boot Partition is under 1 MiB, please increase its size..

Open Dawneng opened this issue 4 years ago • 10 comments

反馈bug/问题模板,提建议请删除

1.关于你要提交的问题

Q:是否搜索了issue (使用 "x" 选择)

  • [ x] 没有类似的issue

2. 详细叙述

(1) 具体问题

提示该分区小于1M, 在Image Options 没有找相关调整选项,请问如何调整大小?

(2) 路由器型号和固件版本

x86_64

(3) 详细日志

openwrt/staging_dir/host/bin/grub-bios-setup: warning: Your BIOS Boot Partition is under 1 MiB, please increase its size..

Dawneng avatar Feb 28 '22 09:02 Dawneng

这个问题我很早就发现了,只是找不到那个地方该哈哈

WYC-2020 avatar Feb 28 '22 10:02 WYC-2020

有大佬知道的提示下文件名即可

WYC-2020 avatar Feb 28 '22 10:02 WYC-2020

我终于修复了,看来还是得自己动手

WYC-2020 avatar Mar 01 '22 04:03 WYC-2020

我终于修复了,看来还是得自己动手 求教

Dawneng avatar Mar 01 '22 04:03 Dawneng

自己看仓库 @Dawneng

WYC-2020 avatar Mar 01 '22 04:03 WYC-2020

自己看仓库 @Dawneng

好勒,谢谢大佬!

Dawneng avatar Mar 01 '22 04:03 Dawneng

自己看仓库 @Dawneng

具体是哪里?

zmhu avatar Apr 04 '22 12:04 zmhu

在哪里看

chengjiaking avatar Apr 05 '22 06:04 chengjiaking

同问,在哪里看?

leepentium avatar May 10 '22 07:05 leepentium

修改文件,/target/linux/x86/image/Makefile

define Build/combined $(CP) $(KDIR)/$(KERNEL_NAME) [email protected]/boot/vmlinuz -$(CP) $(STAGING_DIR_ROOT)/boot/. [email protected]/boot/ $(CP) $(STAGING_DIR_IMAGE)/grub2/boot.img [email protected]/boot/grub/ $(CP) $(STAGING_DIR_IMAGE)/grub2/$(if $(filter $(1),efi),gpt,$(GRUB2_VARIANT))-core.img
[email protected]/boot/grub/core.img $(if $(filter $(1),efi), $(INSTALL_DIR) [email protected]/efi/boot $(CP) $(STAGING_DIR_IMAGE)/grub2/boot$(if $(CONFIG_x86_64),x64,ia32).efi [email protected]/efi/boot/ ) PADDING="1" SIGNATURE="$(IMG_PART_SIGNATURE)"
$(if $(filter $(1),efi),GUID="$(IMG_PART_DISKGUID)") $(SCRIPT_DIR)/gen_image_generic.sh
$@
$(CONFIG_TARGET_KERNEL_PARTSIZE) [email protected]
$(CONFIG_TARGET_ROOTFS_PARTSIZE) $(IMAGE_ROOTFS)
256 endef

找到这行,把256改成1024保存

@zmhu @leepentium @chengjiaking

xeyesen avatar Jun 29 '22 06:06 xeyesen