So I’m trying to clear the eMMC so I can install Linux to the eMMC. I think I’ve gotten it into booted into USB mode. I’ve pressed the button while plugging into the OTG port (USB closes to the end of the board), nothing comes up via HDMI on the screen. Continuing forward based on https://wiki.radxa.com/Zero/dev/maskrom, I see
[ 1450.447454] usb 3-2: USB disconnect, device number 9
[ 1450.763842] usb 3-2: new high-speed USB device number 10 using xhci_hcd
[ 1450.915045] usb 3-2: New USB device found, idVendor=1b8e, idProduct=c003, bcdDevice= 0.20
[ 1450.915065] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 1450.915068] usb 3-2: Product: GX-CHIP
[ 1450.915071] usb 3-2: Manufacturer: Amlogic
in dmesg and lsusb shows
Bus 003 Device 013: ID 1b8e:c003 Amlogic, Inc. GX-CHIP
So far so good. Get the boot-g12.py
installed, and run it with radxa-zero-erase-emmc.bin
from that same page. Runs and exits cleanly. When I unplug and plug back in, it boots up and I see the Amlogic logo, and then MBOX and Android boots the rest of the way up. Don’t see any kind of USB storage pop up, nothing.
Am I doing something wrong? Tips? Things to try?
EDIT: I do see, after applying the radxa-zero-erase-emmc.bin
, on the monitor a “staring USB”, scanning bus, and then Hit any key to stop autoboot: 0
, and I have nothing else on the screen. I don’t have any keyboard or anything hooked up.
EDIT2: Apparently hooking up Serial console did something, because now both in serial and on the monitor, I see it doing MMC erase, and it’s going through that process.
I do see a lot of these in my dmesg
[ 4325.493695] usb 3-2: reset high-speed USB device number 24 using xhci_hcd
And this is the output in the Serial console, with a spinner at the bottom and it’s stuck here at this, with the spinner spinning. Going to leave it running this way for a while on power, hopefully it finishes successfully and doesn’t just keep running forever.
U-Boot 2021.07-24133-gf21fc0a44c-dirty (Jan 23 2022 - 09:51:56 +0800) radxa-zero
Model: Radxa Zero
SoC: Amlogic Meson G12A (S905Y2) Revision 28:b (30:2)
DRAM: 2 GiB
MMC: sd@ffe03000: 0, sd@ffe05000: 1, mmc@ffe07000: 2
Loading Environment from nowhere... OK
In: serial
Out: serial
Err: serial
Net: Net Initialization Skipped
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
switch to partitions #0, OK
mmc2(part 0) is current device
MMC erase: dev # 2, block # 0, count 65536 ... 65536 blocks erased: OK
switch to partitions #1, OK
mmc2(part 1) is current device
MMC erase: dev # 2, block # 0, count 8192 ... 8192 blocks erased: OK
switch to partitions #2, OK
mmc2(part 2) is current device
MMC erase: dev # 2, block # 0, count 8192 ... 8192 blocks erased: OK
UMS: LUN 0, dev mmc 2, hwpart 0, sector 0x0, count 0xe40000