Closed meghaviparikh closed 4 years ago
U-Boot SPL 2013.04-dirty (Jul 10 2013 - 14:02:53)
U-Boot 2020.04-00684-gd202f67db0-dirty (Apr 27 2020 - 18:54:58 -0400)
Your version of U-Boot SPL and U-Boot don't match.. You should really fix that..
Sorry, i've never tried verified boot, not sure i'll be too helpful...
Hi @RobertCNelson,
Do you have any documentation on how do I fix that? I really have been just doing,
git clone https://github.com/u-boot/u-boot.git
make am335x_boneblack_vboot_config O=b/am335x_boneblack_vboot
make all O=b/am335x_boneblack_vboot
Is there any mistake in here?
Thanks,
@meghaviparikh
I use the generifc "am335x_evm_defconfig" and dd the files to the media:
make ARCH=arm CROSS_COMPILE=${CC} distclean
make ARCH=arm CROSS_COMPILE=${CC} am335x_evm_defconfig
make ARCH=arm CROSS_COMPILE=${CC}
sudo dd if=./u-boot/MLO of=${DISK} count=1 seek=1 bs=128k
sudo dd if=./u-boot/u-boot.img of=${DISK} count=2 seek=1 bs=384k
REgards,
Thank you for sharing this, I was able to update the SPL to latest version, although this still didn't solve my problem. Also, I tried to modify the code in common/bootm.c
of Uboot:
https://github.com/u-boot/u-boot/blob/d16d37bcd4087b8ea0f66cb76a73edad182d151a/common/bootm.c#L322
printf("Image too large: increase CONFIG_SYS_BOOTM_LEN: 0x%lx\nRequired Size minimum: 0x%lx\n", CONFIG_SYS_BOOTM_LEN, uncomp_size);
And tried to print the size that was required. Although I had set a high value for this (as mentioned above):
#define CONFIG_SYS_BOOTM_LEN 0x1A7D8C0
I see the following output:
Image too large: increase CONFIG_SYS_BOOTM_LEN: 0x1000000
Required Size minimum: 0x1000000
Must RESET board to recover
I wonder why this is so?
Thanks,
@meghaviparikh
i'd ask the u-boot developers: https://lists.denx.de/listinfo/u-boot
Hi @RobertCNelson,
Thanks for your reply. I'll get in touch with the u-boot developers. Meanwhile, which kernel image do you recommend to use that has size below 15-16 MB? I am only looking for basic Utilities like WiFi and Bluetooth and Ethernet.
Thanks,
@meghaviparikh
Sorry, feel free to customize the example kernel configuration to fit your needs.
Hi, I have been trying to compile the image for BBB using verified u-boot. I am facing the following error.
Here is the full log:
The size of the kernel is:
I have tried to compile with both
make bb.org_defconfig
andmulti_v7_defconfig
.Also, I have tried to increase the size of
CONFIG_SYS_BOOTM_LEN
fromu-boot/common/bootm.c
but nothing seems to work.Currently it's set to
Can you please help me out here?
Thanks,