radxa-repo / bsp

Radxa BSP Build Tool
https://radxa-repo.github.io/bsp/
GNU General Public License v3.0
40 stars 46 forks source link

Rock 5B does not boot after 675e490 #36

Closed digaxfr closed 1 year ago

digaxfr commented 1 year ago

Hello there! I believe this is a breaking change for Rock 5B.

https://github.com/radxa-repo/bsp/commit/675e490c3cf4032f6370e307a226f12ceb1e851f

When compiling a new kernel and installing it, upon boot it hangs.

DDR V1.10 75d050770f typ 23/02/28-20:47:10                                                                              
LPDDR4X, 2112MHz                                                                                                        
channel[0] BW=16 Col=10 Bk=8 CS0 Row=17 CS1 Row=17 CS=2 Die BW=8 Size=4096MB                                            
channel[1] BW=16 Col=10 Bk=8 CS0 Row=17 CS1 Row=17 CS=2 Die BW=8 Size=4096MB                                            
channel[2] BW=16 Col=10 Bk=8 CS0 Row=17 CS1 Row=17 CS=2 Die BW=8 Size=4096MB                                            
channel[3] BW=16 Col=10 Bk=8 CS0 Row=17 CS1 Row=17 CS=2 Die BW=8 Size=4096MB                                            
Manufacturer ID:0x6                                                                                                     
CH0 RX Vref:26.7%, TX Vref:24.8%,24.8%                                                                                  
CH1 RX Vref:27.1%, TX Vref:25.8%,24.8%                                                                                  
CH2 RX Vref:27.9%, TX Vref:24.8%,24.8%                                                                                  
CH3 RX Vref:27.9%, TX Vref:25.8%,24.8%                                                                                  
change to F1: 528MHz                                                                                                    
change to F2: 1068MHz                                                                                                   
change to F3: 1560MHz                                                                                                   
change to F0: 2112MHz                                                                                                   
out
INFO:    Preloader serial: 2                                                                                                                                                                                                                     NOTICE:  BL31: v2.3():v2.3-557-g9609b9c19:derrick.huang                                                                 
NOTICE:  BL31: Built : 14:29:57, Mar  8 2023                                                                                                                                                                                                     INFO:    spec: 0x1                                                     
INFO:    ext 32k is not valid                                                                                                                                                                                                                    INFO:    ddr: stride-en 4CH                                 
INFO:    GICv3 without legacy support detected.                                                                                                                                                                                                  INFO:    ARM GICv3 driver initialized in EL3                                                                            
INFO:    valid_cpu_msk=0xff bcore0_rst = 0x0, bcore1_rst = 0x0                                                                                                                                                                                   INFO:    system boots from cpu-hwid-0                                                                                   
INFO:    idle_st=0x21fff, pd_st=0x11fff9, repair_st=0xfff70001                                                                                                                                                                                   INFO:    dfs DDR fsp_params[0].freq_mhz= 2112MHz                                                                        
INFO:    dfs DDR fsp_params[1].freq_mhz= 528MHz                                                                                                                                                                                                  INFO:    dfs DDR fsp_params[2].freq_mhz= 1068MHz                                                                        
INFO:    dfs DDR fsp_params[3].freq_mhz= 1560MHz                                                                                                                                                                                                 INFO:    BL31: Initialising Exception Handling Framework                                                               
INFO:    BL31: Initializing runtime services                                                                                                                                                                                                     WARNING: No OPTEE provided by BL2 boot loader, Booting device without OPTEE initialization. SMC`s destined for OPTEE wiK                                                                                                                         
ERROR:   Error initializing runtime service opteed_fast                                                                                                                                                                                          INFO:    BL31: Preparing for EL3 exit to normal world                                                                   
INFO:    Entry point address = 0x200000                                                                                                                                                                                                          INFO:    SPSR = 0x3c9                                                                                                   
[    6.928192] fiq_debugger fiq_debugger.0: IRQ fiq not found                                                           
[    6.928205] fiq_debugger fiq_debugger.0: IRQ wakeup not found                                                        
[    6.928212] fiq_debugger_probe: could not install nmi irq handler                                                    
[    7.578119] mpp-iep2 fdbb0000.iep: allocate roi buffer failed                                                        
[    7.578653] rk-pcie fe170000.pcie: IRQ msi not found                                                                 
[    7.578680] rk-pcie fe170000.pcie: Missing *config* reg space                                                        
[    7.578808] rk-pcie fe170000.pcie: Missing *config* reg space                                                        
[    7.578847] rk-pcie fe170000.pcie: invalid resource                                                                  
[    7.579846] mpp_rkvdec2 fdc38100.rkvdec-core: shared_niu_a is not found!                                             
[    7.579854] rkvdec2_init:1008: No niu aclk reset resource define                                                     
[    7.579861] mpp_rkvdec2 fdc38100.rkvdec-core: shared_niu_h is not found!                                             
[    7.579866] rkvdec2_init:1011: No niu hclk reset resource define                                                     
[    7.580495] mpp_rkvdec2 fdc48100.rkvdec-core: shared_niu_a is not found!                                             
[    7.580502] rkvdec2_init:1008: No niu aclk reset resource define                                                     
[    7.580508] mpp_rkvdec2 fdc48100.rkvdec-core: shared_niu_h is not found!                                             
[    7.580514] rkvdec2_init:1011: No niu hclk reset resource define                                                     
[    7.589519] rk-pcie fe150000.pcie: IRQ msi not found                                                                 
[    7.589557] rk-pcie fe150000.pcie: Missing *config* reg space                                                        
[    7.589730] rk-pcie fe150000.pcie: Missing *config* reg space                                                        
[    7.589778] rk-pcie fe150000.pcie: invalid resource                                                                  
[    7.647221] rk806 spi2.0: no sleep-setting state                                                                     
[    7.647240] rk806 spi2.0: no reset-setting pinctrl state                                                             
[    7.647248] rk806 spi2.0: no dvs-setting pinctrl state   
[    7.852803] arm-scmi firmware:scmi: Failed. SCMI protocol 17 not active.
[    7.856826] rksfc_base v1.1 2016-01-08
[    7.889938] rockchip-dmc dmc: failed to get vop bandwidth to dmc rate
[    7.889979] rockchip-dmc dmc: failed to get vop pn to msch rl
[    7.890705] rockchip-dmc dmc: could not find power_model node
[    7.898224] rk-pcie fe190000.pcie: IRQ msi not found
[    7.898273] rk-pcie fe190000.pcie: Missing *config* reg space
[    7.898478] rk-pcie fe190000.pcie: Missing *config* reg space
[    7.898536] rk-pcie fe190000.pcie: invalid resource
[    7.904326] RKNPU fdab0000.npu: can't request region for resource [mem 0xfdab0000-0xfdabffff]
[    7.904356] RKNPU fdab0000.npu: can't request region for resource [mem 0xfdac0000-0xfdacffff]
[    7.904374] RKNPU fdab0000.npu: can't request region for resource [mem 0xfdad0000-0xfdadffff]
[    7.907867] debugfs: Directory 'fdab0000.npu-rknpu' with parent 'vdd_npu_s0' already present!
[    7.926008] RKNPU fdab0000.npu: failed to find power_model node
[    7.926023] RKNPU fdab0000.npu: RKNPU: failed to initialize power model
[    7.926033] RKNPU fdab0000.npu: RKNPU: failed to get dynamic-coefficient
[    8.486096] mmc1: delay init for 600 ms to enable UHS mode
[    9.883518] rk_hdmirx fdee0000.hdmirx-controller: hdmirx_cancel_cpu_limit_freq freq qos nod add
[   10.451831] rk-pcie fe170000.pcie: PCIe Link Fail
[   10.451867] rk-pcie fe170000.pcie: failed to initialize host
[   10.461803] rk-pcie fe150000.pcie: PCIe Link Fail
[   10.461842] rk-pcie fe150000.pcie: failed to initialize host
[   67.888763] rcu: INFO: rcu_sched detected stalls on CPUs/tasks:
[   67.888784] rcu:     0-...0: (179 ticks this GP) idle=cc6/1/0x4000000000000000 softirq=39/39 fqs=5996 
[   67.888848] CPU0 online:1                                
[   67.888861]  EL2(NS) PC: <0xffff80001086a770> ehci_readl.constprop.0+0x0/0x20
[   67.888987]                                              
[   67.888995] CPU1 online:1                                
[   67.889001] CPU1 power down
[   67.889008] CPU2 online:1                                
[   67.889013] CPU2 power down
[   67.889019] CPU3 online:1                                
[   67.889026] CPU3 power down
[   67.889031] CPU4 online:1                                
[   67.889037] CPU4 power down
[   67.889044] CPU5 online:1                                
[   67.889060]  EL2(NS) PC: <0xffff800010d3b69c> __cpu_do_idle+0x0/0x14
[   67.889120]  EL2(NS) PC: <0xffff8000100ea8e4> handle_percpu_devid_irq+0x0/0x130
[   67.889135]  EL2(NS) PC: <0xffff8000106247b0> console_putc+0x34/0x6c
[   67.889147]  EL2(NS) PC: <0xffff800010d3b69c> __cpu_do_idle+0x0/0x14
[   67.889227]                                              
[   67.889235] CPU6 online:1                                
[   67.889241] CPU6 power down
[   67.889250] CPU7 online:1                                
[   67.889262]  EL2(NS) PC: <0xffff80001062f1d8> rockchip_panic_notify+0x298/0x37c
[   67.889393]                                              
[   68.890969] Kernel Offset: disabled
[   68.890981] CPU features:

After diff’ing the configs under /boot, this is what I came up with as a working solution for my changes: https://github.com/radxa-repo/bsp/compare/main...digaxfr:bsp:add-fscrypt?expand=1

I am happy to submit the PR if this is the correct solution.

RadxaYuntian commented 1 year ago

Thanks for reporting. I'll look into this.

RadxaYuntian commented 1 year ago

The behavior was reproduced and fixes are applied. I also enabled CONFIG_USB_DWC3_MESON_G12A to support USB boot on Radxa Zero series.

Rockchip definitely did not test with make randconfig. We have had so many issues when we change something from built-in to modules :/