Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix NanoPi-R3S boot failed #13232

Merged
merged 1 commit into from
Dec 23, 2024
Merged

fix NanoPi-R3S boot failed #13232

merged 1 commit into from
Dec 23, 2024

Conversation

jpsn123
Copy link
Contributor

@jpsn123 jpsn123 commented Dec 23, 2024

r3s uboot启动时候报错: alloc space exhausted , 详细日志如下:

DDR 03ea844c5d typ 24/09/03-10:42:57,fwver: v1.23
ln
wdqs_if: 0x1010100
LP4/4x derate en, other dram:1x trefi
ddrconfig:0
MID:0x13
LPDDR4X, 324MHz
BW=32 Col=10 Bk=8 CS0 Row=16 CS=1 Die BW=16 Size=2048MB
tdqss_lf: cs0 dqs0: 48ps, dqs1: -72ps, dqs2: -48ps, dqs3: -144ps,
tdqss_hf: cs0 dqs0: 48ps, dqs1: -72ps, dqs2: -48ps, dqs3: -144ps,

change to: 324MHz
PHY drv:clk:36,ca:36,DQ:29,odt:240
vrefinner:16%, vrefout:41%
dram drv:40,odt:0
clk skew:0x61

change to: 528MHz
PHY drv:clk:36,ca:36,DQ:29,odt:240
vrefinner:16%, vrefout:41%
dram drv:40,odt:0
clk skew:0x58

change to: 780MHz
PHY drv:clk:36,ca:36,DQ:29,odt:60
vrefinner:16%, vrefout:41%
dram drv:40,odt:0
clk skew:0x58
rx vref: 14.6%
tx vref: 36.0%

change to: 1056MHz(final freq)
PHY drv:clk:36,ca:36,DQ:29,odt:60
vrefinner:16%, vrefout:22%
dram drv:40,odt:80
vref_ca:00000071
clk skew:0x36
rx vref: 14.6%
tx vref: 21.8%
cs 0:
rdtrn RS:
DQS0:0x3f, DQS1:0x3f, DQS2:0x40, DQS3:0x3b,
min  : 0xd  0xd  0xe  0xe  0x2  0x5  0x6  0x4 , 0x7  0x6  0x3  0x1  0xa  0xb  0                                                                                              xb  0x9 ,
      0x10  0xf  0xa  0x9  0x2  0x1  0x2  0x6 , 0xa  0x7  0x6  0x1  0xc  0xe  0                                                                                              x9  0xd ,
mid  :0x2c 0x2b 0x2d 0x2c 0x20 0x23 0x25 0x24 ,0x26 0x26 0x22 0x1f 0x2a 0x29 0x                                                                                              29 0x28 ,
      0x2f 0x2d 0x28 0x28 0x21 0x1f 0x1f 0x23 ,0x29 0x25 0x24 0x20 0x2b 0x2c 0x                                                                                              28 0x2b ,
max  :0x4b 0x4a 0x4c 0x4b 0x3f 0x41 0x44 0x44 ,0x46 0x46 0x41 0x3e 0x4a 0x48 0x                                                                                              48 0x47 ,
      0x4e 0x4c 0x47 0x47 0x41 0x3d 0x3d 0x41 ,0x48 0x43 0x43 0x3f 0x4a 0x4b 0x                                                                                              48 0x49 ,
range:0x3e 0x3d 0x3e 0x3d 0x3d 0x3c 0x3e 0x40 ,0x3f 0x40 0x3e 0x3d 0x40 0x3d 0x                                                                                              3d 0x3e ,
      0x3e 0x3d 0x3d 0x3e 0x3f 0x3c 0x3b 0x3b ,0x3e 0x3c 0x3d 0x3e 0x3e 0x3d 0x                                                                                              3f 0x3c ,
wrtrn RS:
DQS0:0x3c, DQS1:0x2d, DQS2:0x30, DQS3:0x23,
min  :0x63 0x65 0x66 0x65 0x56 0x5a 0x5c 0x5b 0x5d ,0x4d 0x4e 0x4a 0x49 0x50 0x                                                                                              52 0x52 0x51 0x50 ,
      0x55 0x54 0x51 0x51 0x4a 0x48 0x49 0x4e 0x50 ,0x49 0x47 0x45 0x42 0x4a 0x                                                                                              4c 0x48 0x4d 0x48 ,
mid  :0x7f 0x80 0x81 0x80 0x73 0x76 0x78 0x77 0x79 ,0x69 0x69 0x65 0x64 0x6c 0x                                                                                              6d 0x6c 0x6c 0x6b ,
      0x71 0x71 0x6c 0x6d 0x66 0x61 0x64 0x69 0x6b ,0x66 0x61 0x60 0x5e 0x67 0x                                                                                              68 0x62 0x69 0x63 ,
max  :0x9b 0x9b 0x9d 0x9c 0x91 0x92 0x95 0x93 0x96 ,0x86 0x85 0x80 0x7f 0x89 0x                                                                                              88 0x87 0x88 0x86 ,
      0x8e 0x8e 0x88 0x89 0x82 0x7b 0x80 0x84 0x87 ,0x83 0x7c 0x7b 0x7a 0x84 0x                                                                                              85 0x7d 0x86 0x7e ,
range:0x38 0x36 0x37 0x37 0x3b 0x38 0x39 0x38 0x39 ,0x39 0x37 0x36 0x36 0x39 0x                                                                                              36 0x35 0x37 0x36 ,
      0x39 0x3a 0x37 0x38 0x38 0x33 0x37 0x36 0x37 ,0x3a 0x35 0x36 0x38 0x3a 0x                                                                                              39 0x35 0x39 0x36 ,
CBT RS:
cs:0 min  :0x43 0x43 0x38 0x37 0x3b 0x37 0x39 ,0x3e 0x3c 0x37 0x33 0x38 0x33 0x                                                                                              37 ,
cs:0 mid  :0x81 0x83 0x76 0x76 0x77 0x77 0x68 ,0x7d 0x7c 0x74 0x73 0x74 0x73 0x                                                                                              66 ,
cs:0 max  :0xc0 0xc4 0xb4 0xb6 0xb4 0xb8 0x98 ,0xbc 0xbc 0xb2 0xb4 0xb1 0xb4 0x                                                                                              96 ,
cs:0 range:0x7d 0x81 0x7c 0x7f 0x79 0x81 0x5f ,0x7e 0x80 0x7b 0x81 0x79 0x81 0x                                                                                              5f ,
out

U-Boot SPL 2024.10-OpenWrt-r7106-cab2ab7d5 (Dec 18 2024 - 05:06:41 +0000)
Trying to boot from MMC1
INFO:    Preloader serial: 2
NOTICE:  BL31: v2.3():v2.3-645-g8cea6ab0b:cl, fwver: v1.44
NOTICE:  BL31: Built : 16:36:43, Sep 19 2023
INFO:    GICv3 without legacy support detected.
INFO:    ARM GICv3 driver initialized in EL3
INFO:    pmu v1 is valid 220114
INFO:    l3 cache partition cfg-0
INFO:    dfs DDR fsp_param[0].freq_mhz= 1056MHz
INFO:    dfs DDR fsp_param[1].freq_mhz= 324MHz
INFO:    dfs DDR fsp_param[2].freq_mhz= 528MHz
INFO:    dfs DDR fsp_param[3].freq_mhz= 780MHz
INFO:    Using opteed sec cpu_context!
INFO:    boot cpu mask: 0
INFO:    BL31: Initializing runtime services
WARNING: No OPTEE provided by BL2 boot loader, Booting device without OPTEE ini                                                                                              tialization. SMC`s destined for OPTEE will return SMC_UNK
ERROR:   Error initializing runtime service opteed_fast
INFO:    BL31: Preparing for EL3 exit to normal world
INFO:    Entry point address = 0xa00000
INFO:    SPSR = 0x3c9
alloc space exhausted
alloc space exhausted
alloc space exhausted
alloc space exhausted
No serial driver found
resetting ...
alloc space exhausted
alloc space exhausted
alloc space exhausted
System reset not supported on this platform
### ERROR ### Please RESET the board ###

添加一个config就好了,本人已测试。
最近看到R2S也有引导失败的issue,不知是否也是此类问题。

@aiamadeus aiamadeus merged commit f21df97 into coolsnowwolf:master Dec 23, 2024
github-actions bot added a commit to EorFiey/Autobuild-LEDE that referenced this pull request Dec 23, 2024
github-actions bot added a commit to BCYDTZ/lede that referenced this pull request Dec 23, 2024
* https://github.com/coolsnowwolf/lede:
  uboot-rockchip: fix NanoPi-R3S defconfig (coolsnowwolf#13232)
  kernel: kstrtox: revert strtobool() in linux 6.12
  openwrt-ci.yml : update profile
github-actions bot pushed a commit to UtMetoo/OpenWRT_Lede that referenced this pull request Dec 23, 2024
github-actions bot pushed a commit to evenwangcn/lede that referenced this pull request Dec 24, 2024
* https://github.com/coolsnowwolf/lede:
  uboot-rockchip: fix NanoPi-R3S defconfig (coolsnowwolf#13232)
  kernel: kstrtox: revert strtobool() in linux 6.12
  openwrt-ci.yml : update profile
zesming added a commit to zesming/lede that referenced this pull request Dec 25, 2024
* https://github.com/coolsnowwolf/lede:
  generic: fix BCM54612E ethernet backport patch
  uboot-rockchip: fix NanoPi-R3S defconfig (coolsnowwolf#13232)
  kernel: kstrtox: revert strtobool() in linux 6.12
  openwrt-ci.yml : update profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants