Can't boot from the custom built image
Summary
The official image boots fine, but the custom build image fails to run.
Detail
Accroding to the blog post, booting from SD card fails.
I am trying to boot a device tree built with 5.10 according to the blog post
To boot on U-Boot on the microSD card, press the USER button next to the USB host connector, when you power-up the board. Note that this is needed only once, until the board is completely switched off again. The board will continue to boot from the microSD card across reboots and resets. Make sure that the U-Boot prompt shows a 2021.07 U-Boot version.
However, when I try to boot from the SD card, I get nothing back from UART. Is there anything I should check?
-
- writing official image via balenaEtcher works fine (checked with AM3358 Debian 10.3 2020-04-06 4GB SD IoT)
-
- initializing "sdx" itself with FAT without cutting pertion, it boots up to U-Boot, but then error occurs.
[error message on the debug UART]
U-Boot SPL 2021.07 (Aug 06 2021 - 19:39:08 +0200)
Trying to boot from MMC1
** Partition 1 not valid on device 0 **
spl_register_fat_device: fat register err - -1
spl_load_image_fat: error reading image u-boot.img, err - -1
SPL: failed to boot from all boot devices
### ERROR ### Please RESET the board ###
-
- [Method in the blog] If I create partition 1 and write on it, nothing will be returned from UART.
[operation log on my desktop]
$ sudo fdisk /dev/sdd
o -> n -> 1 -> Enter -> +1GB -> w
$ sudo mkfs.vfat -v -c -F 32 -n boot /dev/sdd1mkfs.fat 3.0.28 (2015-05-16)
gpioblink@gpiocentre:~/myoss/linux$ sudo mount /dev/sdd1 /mnt/sdcard
gpioblink@gpiocentre:~/myoss/linux$ cd /tmp && mkdir beagledl cd beagledl/ && wget https://bootlin.com/pub/2021/dt-overlays/bbb-boot.tar.xz && tar xf bbb-boot.tar.xz && rm bbb-boot.tar.xz
gpioblink@gpiocentre:/tmp/beagledl$ ls
am335x-boneblack-uboot.dtb MLO src u-boot.img
dtb overlays uboot.env zImage
gpioblink@gpiocentre:/tmp/beagledl$ sudo cp -r * /mnt/sdcard/
gpioblink@gpiocentre:/tmp/beagledl$ ls
am335x-boneblack-uboot.dtb MLO src u-boot.img
dtb overlays uboot.env zImage
gpioblink@gpiocentre:/tmp/beagledl$ sudo umount /dev/sdd1
# then I inserted the sdcard to BBB and turn on the device, the debug UART doesn't response anything...
- I performed the same operation of 3 on the 3 SD cards I have but god same results.
I copied and pasted what I wrote in Slack for now. I will check the situation again and I will write more details.
Close Conditions
When I can boot the image accroding to the above blog post.
Note
Previous discussion on Slack: https://beagleboard.slack.com/archives/C0SLDS49M/p1652346586104769