u-boot support for ODROID-C4
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest0 of 2 patches 0 repliesNew
Patches in v1 No applies recorded yet
None of the 2 patches the cover letter announces are in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/2] u-boot support for ODROID-C4
Hi,
Quoted 32 lines · Anand Moon
Hi Neil,
Quoted 29 lines · Neil Armstrong
Hi,
Quoted 15 lines · Anand Moon
Hi Beniamino,
Quoted 11 lines · Beniamino Galvani
Hi,
these two patches add initial u-boot support for Hardkernel ODROID-C4.
https://wiki.odroid.com/odroid-c4/odroid-c4
Beniamino Galvani (2):
arm: dts: import ODROID-C4 device tree
boards: amlogic: add ODROID-C4 supportQuoted 5 lines
Can you respin this patches, I would like to see these get merged in the current u-boot release
-Anand
The Odroid-C4 could re-use the new Odroid-N2 board support I submitted at [1]
Anand, is the MAC address stored stored the same way on the C4 ?
Quoted 7 lines
Quoted 3 lines
Neil
[1] https://patchwork.ozlabs.org/project/uboot/patch/20200618144037.23392-1-narmstrong at baylibre.com/
I gave this patches a try on latest u-boot but I cannot make my Odroid C4 to boot up uinsg microSD card and eMMC
Here are the logs.
The PHY config must be wrong and it misses the -u-boot.dtsi to enable HDMI.
Can you test my custodian test branch with my C4 support patchset ?
https://gitlab.denx.de/u-boot/custodians/u-boot-amlogic/-/tree/u-boot-amlogic-test
This one is used in Armbian 5.4 release and our KernelCI lab.
Neil
Quoted 134 lines
SM1:BL:511f6b:81ca2f;FEAT:A0F83180:20282000;POC:F;RCY:0;EMMC:800;NAND:81;SD?:0;SD:0;READ:0;0.0;CHK:0;
bl2_stage_init0x01bl2_stage_init0x81
hw id:0x0000- pwm id0x01bl2_stage_init0xc1bl2_stage_init0x02no sdio debug board detected
L0:00000000
L1:00000703
L2:00008067
L3:15000020
S1:00000000
B2:20282000
B1:a0f83180TE: 260148
BL2 Built : 22:54:32, Apr 28 2020. g12a ga659aac-dirty - changqing.gao at droid11
Board ID = 1
Set cpu clk to 24M
Set clk81 to 24M
UseGP1_pllas DSU clk.
DSU clk: 1200 Mhz
CPU clk: 1200 MHz
Set clk81 to 166.6M
DDRdriver_vesion:LPDDR4_PHY_V_0_1_15build time: Apr 28 2020 22:54:28 board id: 1
Load FIP HDR from SD, src:0x00010200, des:0xfffd0000, size:0x00004000, part: 0
fw parse done
Load ddrfw from SD, src:0x00030200, des:0xfffd0000, size:0x0000c000, part: 0 Load ddrfw from SD, src:0x0002c200, des:0xfffd0000, size:0x00004000, part: 0 PIEI prepare done
fastboot data load
fastboot data verify
verify result: 255
Cfg max: 2, cur: 1. Board id: 255. Force loop cfg
DDR4 probe
ddr clk to 1320MHz
Load ddrfw from SD, src:0x00014200, des:0xfffd0000, size:0x0000c000, part: 0
dmc_version0001
Check phy result
INFO : End of initialization
INFO : End of read enable training
INFO : End of fine write leveling
INFO : End of read dq deskew training
INFO : End of MPR read delay center optimization
INFO : End of Write leveling coarse delay
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 training succeed
Load ddrfw from SD, src:0x00020200, des:0xfffd0000, size:0x0000c000, part: 0 Check phy result
INFO : End of initialization
INFO : End of 2D read delay Voltage center optimization
INFO : End of 2D write delay Voltage center optimization
INFO : Training has run successfully!R0_RxClkDly_Margin==106 ps 9
R0_TxDqDly_Margi==118 ps 10R1_RxClkDly_Margin==0 ps 0
R1_TxDqDly_Margi==0 ps 0dwc_ddrphy_apb_wr((0<<20)|(2<<16)|(0<<12)|(0xb0):0001
soc_vref_reg_value0x0000004e0000004e0000004e0000004d0000004f0000004e0000004e0000004f0000004c0000004d0000004e0000004c0000004c0000004e0000004f0000004e000000500000004e0000004d0000004e0000004e0000004c0000004d0000004d0000004d0000004f0000004f0000004f0000004d0000004d0000004d0000004fdram_vref_reg_value0x 00000021
2D training succeedaml_ddr_fw_vesion:LPDDR4_PHY_V_0_1_15build time: Jun 18 2019 20:29:43 auto size-- 65535DDR cs0 size: 2048MB
DDR cs1 size: 2048MBDMC_DDR_CTRL: 00700024DDR size: 3928MB
cs0 DataBus test pass
cs1 DataBus test pass
cs0 AddrBus test pass
cs1 AddrBus test passnon-sec scramble use zero key
ddr scramble enabled100bdlr_step_size ps== 461
result report
boot times 0Enable ddr reg access
Load FIP HDR from SD, src:0x00010200, des:0x01700000, size:0x00004000, part: 0
Load BL3X from SD, src:0x0003c200, des:0x0172c000, size:0x00090000, part: 0 0.0;M3 CHK:0;cm4_sp_mode 0
MVN_1=0x00000000
MVN_2=0x00000000
[Image: g12a_v1.1.3386-3b31431 2019-05-21 10:41:54 luan.yuan at droid15-sz] OPS=0x10
ring efuse init
2b 0c 10 00 01 13 20 00 00 0f 36 30 43 57 50 50
[0.017319 Inits done]
secure task start!
high task start!
low task start!
run into bl31NOTICE: BL31: v1.3(release):4fc40b1 NOTICE: BL31: Built : 15:57:33, May 22 2019 NOTICE: BL31: G12A normal boot! NOTICE: BL31: BL33 decompress pass ERROR: Error initializing runtime service opteed_fastU-Boot 2020.07-rc5-00076-g46e5b60e21 (Jun 30 2020 - 21:08:25 +0530) odroid-c4
Model: Hardkernel ODROID-C4 SoC: Amlogic Meson SM1 (Unknown) Revision 2b:c (10:2) DRAM: 3.8 GiB MMC: sd at ffe05000: 0, mmc at ffe07000: 1 stdio_add_devices: Video device failed (ret=-22) In: serial at 3000 Out: serial at 3000 Err: serial at 3000 Net: Could not get PHY for ethernet at ff3f0000: addr 8No ethernet found.
Hit any key to stop autoboot: 0
-Anand