@theophile Thanks for your reply! Especially your last post was helpfull. Still there is something strange going on that I can’t figure out.
I build a custom U-Boot as described in the official documentaion. I can verify this by the build number presented when booting up (U-Boot 2021.01-20513-g7da35aca65) and a custom shell promt that I modified with cd u-boot
, make menuconfig
, Command line interface --->
, Shell prompt
I was able to flash this U-Boot image with sudo fastboot flash mmc0boot0 fip/radxa-zero/u-boot.bin.sd.bin
and the debug console output was:
** Bad device specification mmc mmc0boot0_a **
Couldn't find partition mmc mmc0boot0_a
** Bad device specification mmc mmc0boot0 **
Couldn't find partition mmc mmc0boot0
Starting download of 1428336 bytes
..........
downloading of 1428336 bytes finished
........ wrote 1428480 bytes to EMMC_BOOT1
# As a sidenote, can someone explain whats up with mmc mmc0boot0_a? Where can change this behaviour?
Seems there is no mmcboot0
partition.
Then I plug in the device to USB and it automatically loads my U-Boot image. So far so good. Where would I place my uEnvt.txt
to describe how and which kernel to load and which rootfs to use. sudo boot-g12.py rz-udisk-loader.bin
shows nothing to mount but loads the stock bootloader (U-Boot 2022.04-00001-gaf4d42d7). Are there alternative ways rather than with uEnvt.txt
?
Important!
After erasing…
sudo fastboot erase mmc0
sudo fastboot erase mmc0boot0
sudo fastboot erase mmc0boot1
When pluged in the radxa zero in USB mode and executed sudo boot-g12.py rz-fastboot-loader.bin
, the device boot up to a stock U-Boot (U-Boot 2022.04-00001-gaf4d42d7) and I’m able to aceess the console. From my perspective it is a security concern since you can access the eMMC partition where our application is stored and potentially modify it as an attacker. Please elobarate if I’m wrong. Security is of an essence fo my project
U-Boot 2022.04-00001-gaf4d42d7 (Jun 29 2022 - 15:19:49 +0800) radxa-zero
Model: Radxa Zero
SoC: Amlogic Meson G12A (S905Y2) Revision 28:b (30:2)
DRAM: 1 GiB
Core: 375 devices, 20 uclasses, devicetree: separate
MMC: sd@ffe03000: 0, sd@ffe05000: 1, mmc@ffe07000: 2
Loading Environment from nowhere... OK
In: serial
Out: serial
Err: serial
Net: No ethernet found.
starting USB...
Bus usb@ff500000: Register 3000140 NbrPorts 3
Starting the controller
USB XHCI 1.10
scanning bus usb@ff500000 for devices... 1 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
Hit any key to stop autoboot: 0
Enter fastboot mode. Press Ctrl+C to stop...
Where is this booloader located and how I can I lock or delete it?