radxa-repo / rbuild

Radxa Image Builder (Maintenance mode)
https://radxa-repo.github.io/rbuild/
GNU General Public License v3.0
53 stars 44 forks source link

"distro_bootcmd" not defined error after U-Boot upgrade #14

Closed gsingh93 closed 1 year ago

gsingh93 commented 1 year ago

Last week I was able to successfully build and boot a Debian image that was built with this command:

./rbuild rock-pi-4b bullseye kde

This week I re-ran the same command and I'm seeing this error on boot:

## Error: "distro_bootcmd" not defined
## Error: Can't overwrite "serial#"
## Error inserting "serial#" variable, errno=1
Enter fastboot mode. Press Ctrl+C to stop...

I noticed that the recently built image is using U-Boot 2023.04 while the older one is using U-Boot 2022.10. Does anyone know what changed in this upgrade that would cause this error?

RadxaYuntian commented 1 year ago

The latest U-Boot 2023.04 removed distro_bootcmd on ROCK 4. @RadxaNaoki has submitted a PR to fix this issue and it is now merged. I'm currently working on U-Boot 2023.04 as well so I'll keep the bootloader update on hold.

Currently I suggest you to build the bootloader locally, and use it in rbuild. You can refer to our docs for how to achieve this.