Skip to contentSkip to conversation

Default value for bootcmd not defined

DISCUSSION Stefan Nagy 2 participants 2 messages Mar 16, 2023 – Mar 27, 2023

lore
Share & tools
lore
#0 lore raw

Hello,

I followed the official documentation [1] to build U-Boot for my Rock Pi 4, instead of evb-rk3399_defconfig I used the config file for my board (rock-pi-4-rk3399_defconfig).

After I flashed the single boot image to an SD card and put it in I got stuck with the error message: "distro_bootcmd" not defined.

Since I have no idea of U-Boot it took me some time to find out that all I needed was to set a different default value for bootcmd. Now I use CONFIG_BOOTCOMMAND="bootflow scan" and it boots my OS as expected.

The official documentation looks straightforward for simple users like me, so I thought it might not be intended that the default value for the bootcmd entry is (still) distro_bootcmd.

Regards,
Stefan.

[1]
https://u-boot.readthedocs.io/en/latest/board/rockchip/rockchip.html

Signature · 2 lines
E-Mails signieren & verschlüsseln ·
https://emailselfdefense.fsf.org/de/
#1 lore raw

Hi Stefan,

Quoted 10 lines · Stefan Nagy

Hello,

I followed the official documentation [1] to build U-Boot for my Rock Pi 4, instead of evb-rk3399_defconfig I used the config file for my board (rock-pi-4-rk3399_defconfig).

After I flashed the single boot image to an SD card and put it in I got stuck with the error message: "distro_bootcmd" not defined.

Quoted 7 lines

Since I have no idea of U-Boot it took me some time to find out that all I needed was to set a different default value for bootcmd. Now I use CONFIG_BOOTCOMMAND="bootflow scan" and it boots my OS as expected.

The official documentation looks straightforward for simple users like me, so I thought it might not be intended that the default value for the bootcmd entry is (still) distro_bootcmd.

Yes we are working through the migration. For this release, Tom is fixing the rk3399 boards so it should boot correctly.

Regards,
Simon