Hi,
I seem to have issues flashing Ubuntu to eMMC on Windows. Here’s how it went for me.
I started having a brand new Raxda Zero 8GB with Android. It booted to Android fine. I was able to install Zagdig USB device, as well as Android driver. I am able to see libusb-win32 device (GX-CHIP) in Device Manager.
-
I watch some YouTube video and started by downloading and sideloading factory-loader.img <— I think this is where I must hack whacked the bootloader
-
i read more and used radxa-zero-erase-emmc.bin, after which a USB device pops up, I have to format it with FAT32, and after that using balenEtcher I burn radxa-cm3-io-ubuntu-focal-server-arm64-20220315-1221-gpt.img to it. I turn off/on Raxda
-
Nothing happens in HDMI output, in serial I get:
G12A:BL:0253b8:61aa2d;FEAT:E0F83180:2000;POC:F;RCY:0;EMMC:0;READ:0;CHK:1F;READ:0;CHK:1F;READ:0;CHK:1F;SD?:20000;USB:8;
-
If i try to sideload u-boot.bin i get the following output
l2_stage_init 0x01
bl2_stage_init 0x81
hw id: 0x0001 - pwm id 0x00
bl2_stage_init 0xc0
bl2_stage_init 0x02
L0:00000000
L1:00000703
L2:00008067
L3:04000000
S1:00000000
B2:00002000
B1:e0f83180
TE: 34617716
BL2 Built : 15:21:48, Aug 28 2019. g12a g1bf2b53 - luan.yuan@droid15-sz
Board ID = 2
Set cpu clk to 24M
Set clk81 to 24M
CPU clk: 1200 MHz
Set clk81 to 166.6M
DDR driver_vesion: LPDDR4_PHY_V_0_1_18 build time: Aug 28 2019 15:21:45
board id: 2
Cfg max: 2, cur: 1. Board id: 255. Force loop cfg
DATA transfer complete...
fw parse done
DATA transfer complete...
AML DDR FW load done
DATA transfer complete...
PIEI prepare done
LPDDR4 probe
ddr clk to 792MHz
DATA transfer complete...
dmc_version 0000
Check phy result
INFO : End of CA training
INFO : End of initialization
INFO : Training has run successfully!
Check phy result
INFO : End of initialization
INFO : End of read enable training
INFO : End of fine write leveling
INFO : End of Write leveling coarse delay
INFO : Training has run successfully!
Check phy result
INFO : End of initialization
INFO : End of read dq deskew training
INFO : End of MPR read delay center optimization
INFO : End of write delay center optimization
INFO : End of read delay center optimization
INFO : End of max read latency training
INFO : Training has run successfully!
1D init succeed
DATA transfer complete...
Check phy result
INFO : End of initialization
INFO : End of 2D read delay Voltage center optimization
INFO : End of 2D read delay Voltage center optimization
INFO : End of 2D write delay Voltage center optimization
INFO : End of 2D write delay Voltage center optimization
INFO : Training has run successfully!
channel==0
RxClkDly_Margin_A0==236 ps 12
TxDqDly_Margin_A0==256 ps 13
RxClkDly_Margin_A1==236 ps 12
TxDqDly_Margin_A1==256 ps 13
TrainedVREFDQ_A0==74
TrainedVREFDQ_A1==74
VrefDac_Margin_A0==23
DeviceVref_Margin_A0==40
VrefDac_Margin_A1==24
DeviceVref_Margin_A1==40
channel==1
RxClkDly_Margin_A0==236 ps 12
TxDqDly_Margin_A0==256 ps 13
RxClkDly_Margin_A1==236 ps 12
TxDqDly_Margin_A1==256 ps 13
TrainedVREFDQ_A0==74
TrainedVREFDQ_A1==74
VrefDac_Margin_A0==24
DeviceVref_Margin_A0==40
VrefDac_Margin_A1==24
DeviceVref_Margin_A1==40
dwc_ddrphy_apb_wr((0<<20)|(2<<16)|(0<<12)|(0xb0):0004
soc_vref_reg_value 0x 00000014 00000013 00000012 00000015 00000014 00000012 0000 0014 00000013 00000013 00000015 00000015 00000015 00000015 00000015 00000015 000 00013 00000015 00000014 00000015 00000014 00000015 00000014 00000016 00000016 00 000012 00000014 00000015 00000015 00000014 00000014 00000013 00000015 dram_vref_ reg_value 0x 0000005d
2D init succeed
ddr init done, boot next stage
result report
aml_ddr_fw_vesion: LPDDR4_PHY_V_0_1_18 build time: Aug 28 2019 13:53:31
auto size-- 65535DDR cs0 size: 1024MB
DDR cs1 size: 1024MB
DMC_DDR_CTRL: 00e0001bDDR size: 2048MB
cs0 DataBus test pass
cs1 DataBus test pass
cs0 AddrBus test pass
cs1 AddrBus test pass
DATA transfer complete...
DATA transfer complete...
Data req end
DATA transfer complete...
RUN bl2 usb boot
bl2z: ptr: 05129330, size: 00001e40
0.0;M3 CHK:0;cm4_sp_mode 0
MVN_1=0x00000000
MVN_2=0x00000000
[Image: g12a_v1.1.3390-6ac5299 2019-09-26 14:09:46 luan.yuan@droid15-sz]
OPS=0x30
ring efuse init
28 0b 30 00 01 36 16 00 00 14 35 39 53 42 56 50
[0.017150 Inits done]
secure task start!
high task start!
low task start!
run into bl31
NOTICE: BL31: v1.3(release):4fc40b1
NOTICE: BL31: Built : 15:57:33, May 22 2019
NOTICE: BL31: G12A normal boot!
ERROR: Error initializing runtime service opteed_fast
U-Boot 2021.07-24133-gf21fc0a44c (Jan 23 2022 - 09:49:20 +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
(ROM USB boot)
## Executing script at 08000000
Wrong image format for "source" command
Card did not respond to voltage select! : -110
Card did not respond to voltage select! : -110
switch to partitions #0, OK
mmc2(part 0) is current device
Scanning mmc 2:1...
Found U-Boot script /boot.scr
2720 bytes read in 1 ms (2.6 MiB/s)
## Executing script at 08000000
Boot script loaded from mmc 2
370 bytes read in 0 ms
8976111 bytes read in 196 ms (43.7 MiB/s)
20744200 bytes read in 453 ms (43.7 MiB/s)
140891 bytes read in 6 ms (22.4 MiB/s)
513 bytes read in 3 ms (167 KiB/s)
Applying kernel provided DT overlay rk3568-fiq-debugger-uart2m0.dtbo
1322 bytes read in 3 ms (429.7 KiB/s)
Applying kernel provided DT fixup script (rockchip-fixup.scr)
## Executing script at 59000000
initrdsize = 0x88f6ef
## Flattened Device Tree blob at 08008000
Booting using the fdt blob at 0x8008000
ERROR: FDT image overlaps OS image (OS=0x8080000..0x960f000)
SCRIPT FAILED: continuing...
Found /extlinux/extlinux.conf
Retrieving file: /extlinux/extlinux.conf
399 bytes read in 1 ms (389.6 KiB/s)
1: kernel-4.19.193-36-rockchip-gd05f98887579
Retrieving file: /initrd.img-4.19.193-36-rockchip-gd05f98887579
8976111 bytes read in 196 ms (43.7 MiB/s)
Retrieving file: /vmlinuz-4.19.193-36-rockchip-gd05f98887579
20744200 bytes read in 453 ms (43.7 MiB/s)
append: earlyprintk console=ttyFIQ0,1500000n8 rw init=/sbin/init rootfstype=ext4 rootwait root=UUID=bc933a2b-8da5-428a-a01 c-7673db19a443
Retrieving file: /dtbs/4.19.193-36-rockchip-gd05f98887579/rockchip/rk3566-radxa-cm3-io.dtb
140891 bytes read in 6 ms (22.4 MiB/s)
## Flattened Device Tree blob at 08008000
Booting using the fdt blob at 0x8008000
Loading Ramdisk to 3f770000, end 3ffff6ef ... OK
ERROR: reserving fdt memory region failed (addr=0 size=0)
ERROR: reserving fdt memory region failed (addr=0 size=0)
Loading Device Tree to 000000003f74a000, end 000000003f76f65a ... OK
Cannot setup simplefb: node not found
Starting kernel ...
But it stalls after it.
- i have also burned sdcard with the same image but that doesn’t start either.
I also have Python 3 installed as well as pyamlboot, and able to run boot-g12.py in case that’s needed.
i cannot see Raxda via adb.
Could you please help with flashing the eMMC with Ubuntu? Grateful in advance!