RadxaYuntian:
Thanks again for the help.
I tried booting from the SD card. On screen it just shows the AmLogic logo identifying the S905Y chip.
The serial console seems to be terminating at the same spot as the previous post when running “sudo boot-g12.py radxa-zero-erase-emmc.bin”.
Here is the output from sudo boot-g12.py factory-loader.img:
Firmware Version :
ROM: 3.2 Stage: 0.0
Need Password: 0 Password OK: 1
Writing factory-loader.img 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=81920, seq=3…
[DONE]
AMLC dataSize=16384, offset=65536, seq=4…
[DONE]
AMLC dataSize=49152, offset=393216, seq=5…
[DONE]
AMLC dataSize=16384, offset=229376, seq=6…
[DONE]
AMLC dataSize=49152, offset=180224, seq=7…
[DONE]
AMLC dataSize=16384, offset=65536, seq=8…
[DONE]
AMLC dataSize=49152, offset=393216, seq=9…
[DONE]
AMLC dataSize=16384, offset=229376, seq=10…
[DONE]
AMLC dataSize=49152, offset=245760, seq=11…
[DONE]
AMLC dataSize=49152, offset=294912, seq=12…
Traceback (most recent call last):
- File “/usr/local/bin/boot-g12.py”, line 57, in *
- dev.writeAMLCData(seq, offset, data[offset:offset+length])*
- File “/usr/local/lib/python3.9/dist-packages/pyamlboot/pyamlboot.py”, line 462, in writeAMLCData*
- self._writeAMLCData(amlcOffset, amls)*
- File “/usr/local/lib/python3.9/dist-packages/pyamlboot/pyamlboot.py”, line 416, in _writeAMLCData*
- data = epin.read(16, 1000)*
- File “/usr/local/lib/python3.9/dist-packages/usb/core.py”, line 423, in read*
- return self.device.read(self, size_or_buffer, timeout)*
- File “/usr/local/lib/python3.9/dist-packages/usb/core.py”, line 1029, in read*
- ret = fn(*
- File “/usr/local/lib/python3.9/dist-packages/usb/backend/libusb1.py”, line 846, in bulk_read*
- return self.__read(self.lib.libusb_bulk_transfer,*
- File “/usr/local/lib/python3.9/dist-packages/usb/backend/libusb1.py”, line 954, in __read*
- _check(retval)*
- File “/usr/local/lib/python3.9/dist-packages/usb/backend/libusb1.py”, line 604, in _check*
- raise USBError(_strerror(ret), ret, _libusb_errno[ret])*
usb.core.USBError: [Errno 5] Input/Output Error
-------------------------------------------------------
— Minicom Output —
-------------------------------------------------------
user@debian:~/Downloads/radxa$ sudo minicom radxa zero
Welcome to minicom 2.8
OPTIONS: I18n
Port /dev/ttyUSB0, 11:50:54
Press CTRL-A Z for help on special keys
0.0
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: 135790112
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: 5, 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
DDR4 probe
ddr clk to 792MHz
DATA transfer complete…
dmc_version 0000
Check phy result
INFO : End of initialization
INFO : ERROR : Training has failed!
Cfg max: 5, cur: 2. Board id: 255. Force loop cfg
ddr probe id done
DATA transfer complete…
fw parse done
DATA transfer complete…
AML DDR FW load done
DATA transfer complete…
PIEI prepare done
DDR3 probe
ddr clk to 792MHz
DATA transfer complete…
dmc_version 0000
Check phy result
INFO : End of initialization
INFO : ERROR : Training has failed!
Cfg max: 5, cur: 3. Board id: 255. Force loop cfg
ddr probe id done
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==236 ps 12
RxClkDly_Margin_A1==236 ps 12
TxDqDly_Margin_A1==236 ps 12
TrainedVREFDQ_A0==74
TrainedVREFDQ_A1==74
VrefDac_Margin_A0==24
DeviceVref_Margin_A0==40
VrefDac_Margin_A1==25
DeviceVref_Margin_A1==40
channel==1
RxClkDly_Margin_A0==256 ps 13
TxDqDly_Margin_A0==236 ps 12
RxClkDly_Margin_A1==236 ps 12
TxDqDly_Margin_A1==236 ps 12
TrainedVREFDQ_A0==74
TrainedVREFDQ_A1==74
VrefDac_Margin_A0==25
DeviceVref_Margin_A0==40
VrefDac_Margin_A1==25
DeviceVref_Margin_A1==40
dwc_ddrphy_apb_wr((0<<20)|(2<<16)|(0<<12)|(0xb0):0004
soc_vref_reg_value 0x 00000015 00000015 00000012 00000015 00000014 00000015 000e
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: 2048MB
DDR cs1 size: 2048MB
DMC_DDR_CTRL: 00e00024DDR size: 3928MB
cs0 DataBus test pass
cs1 DataBus test pass
cs0 AddrBus test pass
cs1 AddrBus test pass