Bricked Radxa Zero / not boot

I received zero the 4gb/16gb model.
I tryed flashing ParrotOS image to eMMC and after this action is maybe my Zero bricked.
dd action was correctly finished but i think, that zero don’t booting

Connected the zero by pressing the usb boot button.
lsusb
Bus 000 Device 001: ID 1b8e:c003 Amlogic, Inc. Composite Device
Bus 000 Device 000: ID 1b8e:c003 Amlogic, Inc. USB 3.1 Bus

I ran the command boot-g12.py ./rz-udisk-loader.bin and got this output:
Firmware Version :
ROM: 0.7 Stage: 0.16
Need Password: 0 Password OK: 0
Writing rz-udisk-loader.bin at 0xfffa0000…
[DONE]
Running at 0xfffa0000…
[DONE]
Traceback (most recent call last):
File “/opt/homebrew/bin/boot-g12.py”, line 47, in
(length, offset) = dev.getBootAMLC()
File “/opt/homebrew/lib/python3.9/site-packages/pyamlboot/pyamlboot.py”, line 356, in getBootAMLC
self.dev.ctrl_transfer(bmRequestType = 0x40,
File “/opt/homebrew/lib/python3.9/site-packages/usb/core.py”, line 1082, in ctrl_transfer
ret = self._ctx.backend.ctrl_transfer(
File “/opt/homebrew/lib/python3.9/site-packages/usb/backend/libusb1.py”, line 893, in ctrl_transfer
ret = _check(self.lib.libusb_control_transfer(
File “/opt/homebrew/lib/python3.9/site-packages/usb/backend/libusb1.py”, line 604, in _check
raise USBError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBError: [Errno 19] No such device (it may have been disconnected)

I tryed also insert SD card with Armbian, with hope, that zero will correctly booting from SD card, if if system on eMMC mayby not bootable, but the result is still same.

Try following the boot troubleshooting guide and make sure you see 1b8e:c003 Amlogic, Inc. GX-CHIP before you run boot-g12.py.

If this won’t solve your issue you need to attach a serial cable and send us the boot log.

The error shows libusb cannot be found. Install it, or reboot after installing so the paths are detected properly by the pyamlboot script.

Ok, thanks for hints.
After reboot of my MacBook i see again correctly:
lsusb
Bus 000 Device 001: ID 1b8e:c003 Amlogic, Inc. GX-CHIP
Bus 000 Device 000: ID 1b8e:c003 Amlogic, Inc. USB 3.1 Bus

after then run of command:
sudo boot-g12.py rz-fastboot-loader.bin i get this expected result:
Firmware Version :
ROM: 3.2 Stage: 0.0
Need Password: 0 Password OK: 1
Writing rz-fastboot-loader.bin at 0xfffa0000…
[DONE]
Running at 0xfffa0000…
[DONE]
AMLC dataSize=16384, offset=65536, seq=0…
[DONE]
AMLC dataSize=49152, offset=393216, seq=1…
[DONE]
AMLC dataSize=16384, offset=229376, seq=2…
[DONE]
AMLC dataSize=49152, offset=245760, seq=3…
[DONE]
AMLC dataSize=49152, offset=294912, seq=4…
[DONE]
AMLC dataSize=16384, offset=65536, seq=5…
[DONE]
AMLC dataSize=1406320, offset=81920, seq=6…
[DONE]
[BL2 END]

Next command:
sudo fastboot devices … show me this output:
AMLG12A-RADXA-ZERO fastboot

When i following this instruction https://wiki.radxa.com/Zero/install/Boot_Troubleshooting
and i try to run command
sudo fastboot flashing unlock … i get tish result:
FAILED (remote: ‘unrecognized command’)
fastboot: error: Command failed

What is next correct step ? (i do don’t want break my Radxa)

** Update: **

my radxa zero is again functional !!
I followed instruction from https://wiki.radxa.com/Zero/install/Boot_Troubleshooting site:
Section: Modify bootloader on eMMC
Sub-section: With fastboot

Then also helped me this comment: Cannot enter usb mode
Formating eMMC to Fat32

Radxa Zero also booting from microSD card with batocer linux.
But when i following these instructions:
https://wiki.batocera.org/hardware:radxa_zero
and i want to install this linux distribution on eMMC, after dd command radxa won’t not booting in this Linux. The monitor is black.

What can be wrong ?

Likely due to missing bootloader. Again go back to boot troubleshooting, and under flastboot section you can find the command to flash bootloader. You can try with android-bootloader.img and flash to bootloader-boot0 to see what happens.

You are better off asking over Batocera’s community. We do not know how they piece their OS together.

sudo fastboot flash bootloader-boot0 android-bootloader.img
Sending ‘bootloader-boot0’ (1181 KB) OKAY [ 0.048s]
Writing ‘bootloader-boot0’ FAILED (remote: ‘cannot find partition’)
fastboot: error: Command failed

But…

sudo fastboot flash bootloader android-bootloader.img
Sending ‘bootloader’ (1181 KB) OKAY [ 0.058s]
Writing ‘bootloader’ OKAY [ 0.065s]
Finished. Total time: 0.215s

BTW.
If i create bootable microSD from batocer linux image, its works correctly and my radxa can correctly booting to this system.
But if i write this same batocera linux image to eMMC, Radxa can not booting to system.

You need to follow the guide and run sudo boot-g12.py android-bootloader.img. Other blobs can boot into fastboot mode but they do not work for our purpose, which is why this specific version is required.

At this point I suggest you start over and properly clean your eMMC following this guide, then follow Batocera’s guide to install their system. If this doesn’t work, follow our Android guide so the device is returned to factory state, and give Batocera another try.

https://chewitt.libreelec.tv/testing/u-boot/ <= pre-compiled u-boot 2022.01 if you need it

2 Likes

Guys, thank you very much for your support !

It works now perfectly !
The main issue, which created this mix of problems and mists was in the guid of Batocera:
There is in step 5.
5. Run the following:
dd if=/dev/ of=batocera-s905gen2-.img

Correctly it must be :slight_smile:
dd if=batocera-s905gen2-.img of=/dev/

Thnx

Alright this issue has been reported to Batocera and is fixed now.

1 Like