Firefly开源社区

打印 上一主题 下一主题

[Linux] kernel 起不来

44

积分

0

威望

0

贡献

技术小白

积分
44

kernel 起不来

发表于 2022-6-1 10:45:42      浏览:3481 | 回复:2        打印      只看该作者   [复制链接] 楼主
  • 固件类型: 自行编译的固件
  • SDK包名称: rk3308-linux
  • SDK更新到哪个COMMIT: 0000-00-00 00:00:00
  • SDK修改内容: 源码从gitlab 下载,直接编译
  • Log日志: serial.log
问题描述及复现步骤:
1. 在docker 下,系统为UBUNTU18.04, 采用全自动编译脚本
./build.sh firefly_rk3308_b_dmic_release_BoardConfig.mk
./build.sh

2. 使用脚本生成固件
./mkfirmware.sh

3. 打包成update.img

4. 在UBUNTU20.04使用upgrade_tool 升级固件, 升级成功

5. 单板重启后,发现串口打印一直停在Starting kernel ...

以下是日志:
DDR Version V1.29 20190730
REG2C: 0x00000033, 0x00000034
In
589MHz
DDR3
Col=10 Bank=3 Row=15 Size=512MB
msch:1
OUT
Boot1 Release Time: Oct 28 2019 20:02:13, version: 1.19
chip_id:330800,0
ChipType = 0x13, 35790968
DPLL = 1300 MHz
sfc nor id: ff ff ff
DPLL = 1300 MHz
sfc_nand id: ff ff ff
DPLL = 1300 MHz
...nandc_flash_init enter...
NeedKHz=200KHz,clock=12000KHz
NeedKHz=200KHz,clock=12000KHz
NeedKHz=200KHz,clock=12000KHz
DPLL = 1300 MHz
NeedKHz=18000KHz,clock=650000KHz
DPLL = 1300 MHz
NeedKHz=48000KHz,clock=650000KHz
mmc2:cmd19,100
SdmmcInit=2 0
BootCapSize=2000
UserCapSize=7456MB
FwPartOffset=2000 , 2000
SdmmcInit=0 NOT PRESENT
StorageInit ok = 35778248
SecureMode = 0
Secure read PBA: 0x4
Secure read PBA: 0x404
Secure read PBA: 0x804
Secure read PBA: 0xc04
Secure read PBA: 0x1004
SecureInit ret = 0, SecureMode = 0
atags_set_bootdev: ret:(0)
GPT part:  0, name:            uboot, start:0x2000, size:0x1000
GPT part:  1, name:            trust, start:0x3000, size:0x1000
GPT part:  2, name:             misc, start:0x4000, size:0x800
GPT part:  3, name:         recovery, start:0x4800, size:0xa000
GPT part:  4, name:             boot, start:0xe800, size:0xa000
GPT part:  5, name:           rootfs, start:0x18800, size:0x80000
GPT part:  6, name:              oem, start:0x98800, size:0x20000
GPT part:  7, name:         userdata, start:0xb8800, size:0xdd77df
find part:uboot OK. first_lba:0x2000.
find part:trust OK. first_lba:0x3000.
LoadTrust Addr:0x3000
No find bl30.bin
No find bl32.bin
Load uboot, ReadLba = 2000
Load OK, addr=0x600000, size=0xa5f04
RunBL31 0x40000 @ 35738861 us
INFO:    Preloader serial: 4
NOTICE:  BL31: v1.3(release):30f1405
NOTICE:  BL31: Built : 17:08:28, Sep 23 2019
INFO:    Lastlog: last=0x100000, realtime=0x102000, size=0x2000
INFO:    ARM GICv2 driver initialized
INFO:    Using opteed sec cpu_context!
INFO:    boot cpu mask: 1
INFO:    plat_rockchip_pmu_init: pd status 0xe b
INFO:    BL31: Initializing runtime services
WARNING: No OPTEE provided by BL2 boot loader, Booting device without OPTEE initialization. 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 = 0x600000
INFO:    SPSR = 0x3c9


U-Boot 2017.09 (May 31 2022 - 09:22:15 +0000)

Model: Rockchip RK3308 EVB
PreSerial: 4
DRAM:  510 MiB
Sysmem: init
Relocation Offset is: 1f90c000
Using default environment

dwmmc@ff480000: 1, dwmmc@ff490000: 0
Bootdev(atags): mmc 0
MMC0: High Speed, 52Mhz
PartType: EFI
boot mode: recovery (misc)
Found DTB in recovery part
DTB: rk-kernel.dtb
Error binding driver 'fixed regulator': -22
Some drivers failed to bind
vdd_core init 1015000 uV
DVFS: cpu: low=0.0'c, high=55.0'c, Vmax=1340000uV, tz_temp=55.0'c, h_repeat=0, l_repeat=0
DVFS: 39.90'c
Model: Firefly RK3308 roc cc digital-pdm mic board
CLK: (uboot. arm: enter 816000 KHz, init 816000 KHz, kernel 0N/A)
  apll 816000 KHz
  dpll 1300000 KHz
  vpll0 1177823 KHz
  vpll1 901583 KHz
  aclk_bus 185714 KHz
  hclk_bus 100000 KHz
  pclk_bus 100000 KHz
  aclk_peri 185714 KHz
  hclk_peri 100000 KHz
  pclk_peri 100000 KHz
  hclk_audio 98151 KHz
  pclk_audio 98151 KHz
Net:   eth0: ethernet@ff4e0000
DVFS: cpu 38.636'c, 816000000 Hz, 1015000 uV
Hit key to stop autoboot('CTRL+C'):  0
ANDROID: reboot reason: "recovery"
Fdt Ramdisk skip relocation
Booting LZ4 kernel at 0x02480000(Uncompress to 0x00280000) with fdt at 0x1f00000...


## Booting Android Image at 0x0247f800 ...
Kernel load addr 0x00280000 size 6588 KiB
RAM disk load addr 0x04000000 size 6040 KiB
## Flattened Device Tree blob at 01f00000
   Booting using the fdt blob at 0x1f00000
   Uncompressing Kernel Image ... OK
   Using Device Tree in place at 0000000001f00000, end 0000000001f157f6
Adding bank: 0x00200000 - 0x20000000 (size: 0x1fe00000)
Total: 602.228 ms

Starting kernel ...





PS:
我使用官方提供的固件进行升级,kernel 是可以正常起来。我将它的串口打印信息和我编译出来的固件的串口打印做了以下对比:分区大小有区别,同时自行编译的固件串口打印多了一句RAM disk load addr 0x04000000 size 6040 KiB
DDR Version V1.29 20190730
REG2C: 0x00000033, 0x00000034
In
589MHz
DDR3
Col=10 Bank=3 Row=15 Size=512MB
msch:1
OUT
Boot1 Release Time: Oct 28 2019 20:02:13, version: 1.19
chip_id:330800,0
ChipType = 0x13, 35790965
DPLL = 1300 MHz
sfc nor id: ff ff ff
DPLL = 1300 MHz
sfc_nand id: ff ff ff
DPLL = 1300 MHz
...nandc_flash_init enter...
NeedKHz=200KHz,clock=12000KHz
NeedKHz=200KHz,clock=12000KHz
NeedKHz=200KHz,clock=12000KHz
DPLL = 1300 MHz
NeedKHz=18000KHz,clock=650000KHz
DPLL = 1300 MHz
NeedKHz=48000KHz,clock=650000KHz
mmc2:cmd19,100
SdmmcInit=2 0
BootCapSize=2000
UserCapSize=7456MB
FwPartOffset=2000 , 2000
SdmmcInit=0 NOT PRESENT
StorageInit ok = 35778247
SecureMode = 0
Secure read PBA: 0x4
Secure read PBA: 0x404
Secure read PBA: 0x804
Secure read PBA: 0xc04
Secure read PBA: 0x1004
SecureInit ret = 0, SecureMode = 0
atags_set_bootdev: ret:(0)
GPT part:  0, name:            uboot, start:0x2000, size:0x1000
GPT part:  1, name:            trust, start:0x3000, size:0x1000
GPT part:  2, name:             misc, start:0x4000, size:0x800
GPT part:  3, name:         recovery, start:0x4800, size:0x6000
GPT part:  4, name:             boot, start:0xa800, size:0x4800
GPT part:  5, name:           rootfs, start:0xf000, size:0x80000
GPT part:  6, name:              oem, start:0x8f000, size:0x20000
GPT part:  7, name:         userdata, start:0xaf000, size:0xde0fdf
find part:uboot OK. first_lba:0x2000.
find part:trust OK. first_lba:0x3000.
LoadTrust Addr:0x3000
No find bl30.bin
No find bl32.bin
Load uboot, ReadLba = 2000
Load OK, addr=0x600000, size=0xa5e24
RunBL31 0x40000 @ 35738893 us
INFO:    Preloader serial: 4
NOTICE:  BL31: v1.3(release):30f1405
NOTICE:  BL31: Built : 17:08:28, Sep 23 2019
INFO:    Lastlog: last=0x100000, realtime=0x102000, size=0x2000
INFO:    ARM GICv2 driver initialized
INFO:    Using opteed sec cpu_context!
INFO:    boot cpu mask: 1
INFO:    plat_rockchip_pmu_init: pd status 0xe b
INFO:    BL31: Initializing runtime services
WARNING: No OPTEE provided by BL2 boot loader, Booting device without OPTEE initialization. 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 = 0x600000
INFO:    SPSR = 0x3c9




U-Boot 2017.09 (Oct 21 2020 - 17:26:19 +0800)


Model: Rockchip RK3308 EVB
PreSerial: 4
DRAM:  510 MiB
Sysmem: init
Relocation Offset is: 1f90c000
Using default environment


dwmmc@ff480000: 1, dwmmc@ff490000: 0
Bootdev(atags): mmc 0
MMC0: High Speed, 52Mhz
PartType: EFI
boot mode: None
Found DTB in boot part
DTB: rk-kernel.dtb
Error binding driver 'fixed regulator': -22
Some drivers failed to bind
vdd_core init 1015000 uV
DVFS: cpu: low=0.0'c, high=55.0'c, Vmax=1340000uV, tz_temp=55.0'c, h_repeat=0, l_repeat=0
DVFS: 31.818'c
Model: Firefly ROC-RK3308B-CC-PLUS analog mic board
CLK: (uboot. arm: enter 816000 KHz, init 816000 KHz, kernel 0N/A)
  apll 816000 KHz
  dpll 1300000 KHz
  vpll0 1177823 KHz
  vpll1 901583 KHz
  aclk_bus 185714 KHz
  hclk_bus 100000 KHz
  pclk_bus 100000 KHz
  aclk_peri 185714 KHz
  hclk_peri 100000 KHz
  pclk_peri 100000 KHz
  hclk_audio 98151 KHz
  pclk_audio 98151 KHz
Net:   eth0: ethernet@ff4e0000
DVFS: cpu 33.636'c, 816000000 Hz, 1015000 uV
Hit key to stop autoboot('CTRL+C'):  0
ANDROID: reboot reason: "(none)"
Fdt Ramdisk skip relocation
Booting LZ4 kernel at 0x02480000(Uncompress to 0x00280000) with fdt at 0x1f00000...




## Booting Android Image at 0x0247f800 ...
Kernel load addr 0x00280000 size 5241 KiB
## Flattened Devi
   Booting using the fdt blob at 0x1f00000
   Uncompressing Kernel Image ... OK
   Using Device Tree in place at 0000000001f00000, end 0000000001f15884
Adding bank: 0x00200000 - 0x20000000 (size: 0x1fe00000)



serial.log

3.79 KB, 下载次数: 1, 下载积分: 灯泡 -1 , 经验 -1

回复

使用道具 举报

692

积分

0

威望

0

贡献

技术大神

Rank: 3Rank: 3

积分
692
发表于 2022-6-1 17:45:53        只看该作者  沙发
下载之后,更新到最新提交了吗?
回复

使用道具 举报

8

积分

0

威望

0

贡献

吃瓜的群众

积分
8
发表于 2022-10-25 13:25:26        只看该作者  板凳
Firefly_Javier 发表于 2022-6-1 17:45
下载之后,更新到最新提交了吗?


...nandc_flash_init enter...
No.1 FLASH ID:ec dc 10 95 56 c6
SFTL version: 5.0.51 20191028
flash_read_page 3ff80 err_ecc -1
flash_read_page 3ffc0 err_ecc -1
FlashReadPages 1ffc00 3ff80 error_ecc_bits -1
data: 0x0:0 0 0 0
spare: 0x0:0 0 0 0
flash_read_page 3ff81 err_ecc -1
flash_read_page 3ffc1 err_ecc -1
FlashReadPages 1ffc01 3ff81 error_ecc_bits -1
data: 0x0:0 0 0 0
spare: 0x0:0 0 0 0
Bootdev(atags): rknand 0
PartType: EFI
boot mode: recovery (misc)
Found DTB in recovery part
DTB: rk-kernel.dtb
Error binding driver 'fixed regulator': -22
Some drivers failed to bind
vdd_core init 1015000 uV
DVFS: cpu: low=0.0'c, high=55.0'c, Vmax=1340000uV, tz_temp=55.0'c, h_repeat=0, l_repeat=0
DVFS: 36.363'c
Model: Firefly ROC-RK3308B-CC-PLUS analog mic rgb_7.0inch board
failed to load bmp logo.bmp
failed to display uboot logo
CLK: (uboot. arm: enter 816000 KHz, init 816000 KHz, kernel 0N/A)
  apll 816000 KHz
  dpll 1300000 KHz
  vpll0 1177823 KHz
  vpll1 901583 KHz
  aclk_bus 185714 KHz
  hclk_bus 100000 KHz
  pclk_bus 100000 KHz
  aclk_peri 185714 KHz
  hclk_peri 100000 KHz
  pclk_peri 100000 KHz
  hclk_audio 98151 KHz
  pclk_audio 98151 KHz
Net:
Error: ethernet@ff4e0000 address not set.
No ethernet found.
DVFS: cpu 34.90'c, 816000000 Hz, 1015000 uV
Hit key to stop autoboot('CTRL+C'):  0
ANDROID: reboot reason: "recovery"
** Invalid Android Image header **
"Synchronous Abort" handler, esr 0x96000044

* Reason:        Exception from a Data abort, from current exception level
* PC         =   000000000067066c
* LR         =   0000000000639328
* SP         =   000000001d3fe890
* ESR_EL2    =   0000000096000044
* Reloc Off  =   000000001d80a000

x0 : 000000011d489dff x1 : 000000001d4170c0
x2 : 0000000000000200 x3 : 0000000000000000
x4 : 000000011d489dff x5 : 00000000000000ff
x6 : 0000000000000000 x7 : 0000000000000520
x8 : 0000000000000020 x9 : 0000000000000008
x10: 00000000ffff8004 x11: 0000000001f00000
x12: 000000000001274c x13: 000000001d3ff0fc
x14: 0000000001f00000 x15: 0000000000000002
x16: 0000000000000001 x17: 0000000001f17a04
x18: 000000001d401d10 x19: 0000000000004800
x20: 0000000000000901 x21: 0000000000000000
x22: 000000001deca000 x23: 000000011d489dff
x24: 0000000000000900 x25: 000000001decb250
x26: 0000000000000001 x27: 0000000000000000
x28: 000000001decb000 x29: 000000001d3fea70


Call trace:
  PC:   [< 0067066c >]
  LR:   [< 00639328 >]

Stack:
        [< 0067066c >]
        [< 0063b430 >]
        [< 0063177c >]
        [< 0061a1bc >]
        [< 0061aec0 >]
        [< 0060667c >]
        [< 0061e600 >]
        [< 00611b28 >]
        [< 00611cc8 >]
        [< 00611414 >]
        [< 006118e4 >]
        [< 00611cc8 >]
        [< 006113cc >]
        [< 0061db04 >]
        [< 0060fe40 >]
        [< 00612904 >]
        [< 00663f54 >]
        [< 00612a90 >]
        [< 00601b2c >]

Copy info from "Call trace..." to a file(eg. dump.txt), and run
command in your U-Boot project: ./scripts/stacktrace.sh dump.txt

Resetting CPU ...

INFO:    PSCI Power Domain Map:
INFO:      Domain Node : Level 2, parent_node -1, State ON (0x0)
INFO:      Domain Node : Level 1, parent_node 0, State ON (0x0)
INFO:      Domain Node : Level 0, parent_node 0, State ON (0x0)
INFO:      Domain Node : Level 0, parent_node 0, State ON (0x0)
INFO:      CPU Node : MPID 0x0, parent_node 1, State ON (0x0)
INFO:      CPU Node : MPID 0xffffffffffffffff, parent_node 1, State OFF (0x2)
INFO:      CPU Node : MPID 0xffffffffffffffff, parent_node 1, State OFF (0x2)
INFO:      CPU Node : MPID 0xffffffffffffffff, parent_node 1, State OFF (0x2)
DDR Version V2.06 20211109
CHIP ID = 0x00003308
REG2C: 0x00000034, 0x00000034
In
589MHz
DDR3
Col=10 Bank=3 Row=15 Size=512MB
OUT: sdram_init finish.
Boot1 Release Time: Oct 28 2021 16:52:39, version: 1.33
ROM VER:0x56323030, 19
chip_id:330800,0
ChipType = 0x13, 512
DPLL = 1300 MHz
...nandc_flash_init enter...
No.1 FLASH ID:ec dc 10 95 56 c6
No.2 FLASH ID:ff ff ff ff ff ff
SFTL version: 5.0.56 20210329
flash_read_page 3ff80 err_ecc -1
flash_read_page 3ffc0 err_ecc -1
FlashReadPages 1ffc00 3ff80 error_ecc_bits -1
data: 0000000003106500 + 0x0:0x00000000,0x00000000,0x00000000,0x00000000,

spare: 00000000031125c0 + 0x0:0x00000000,0x00000000,0x00000000,0x00000000,

flash_read_page 3ff81 err_ecc -1
flash_read_page 3ffc1 err_ecc -1
FlashReadPages 1ffc01 3ff81 error_ecc_bits -1
data: 0000000003106500 + 0x0:0x00000000,0x00000000,0x00000000,0x00000000,

spare: 00000000031125c0 + 0x0:0x00000000,0x00000000,0x00000000,0x00000000,

SdmmcInit=0 NOT PRESENT
StorageInit ok = 233572
SecureMode = 0
Secure read PBA: 0x4
Secure read PBA: 0x104
Secure read PBA: 0x204
Secure read PBA: 0x304
Secure read PBA: 0x404
SecureInit ret = 0, SecureMode = 0
atags_set_bootdev: ret:(0)
GPT part:  0, name:            uboot, start:0x2000, size:0x1000
GPT part:  1, name:            trust, start:0x3000, size:0x1000
GPT part:  2, name:             misc, start:0x4000, size:0x800
GPT part:  3, name:         recovery, start:0x4800, size:0x10000
GPT part:  4, name:             boot, start:0x14800, size:0xa000
GPT part:  5, name:           rootfs, start:0x1e800, size:0x80000
GPT part:  6, name:              oem, start:0x9e800, size:0x20000
GPT part:  7, name:         userdata, start:0xbe800, size:0x297df
find part:uboot OK. first_lba:0x2000.
find part:trust OK. first_lba:0x3000.
LoadTrust Addr:0x3000
No find bl30.bin
No find bl32.bin
Load uboot, ReadLba = 2000
Load OK, addr=0x600000, size=0xb8bfc
RunBL31 0x40000 @ 335696 us
INFO:    Preloader serial: 4
NOTICE:  BL31: v1.3(release):d5a5a89b7
NOTICE:  BL31: Built : 03:20:20, Oct 18 2021
INFO:    Lastlog: last=0x100000, realtime=0x102000, size=0x2000
INFO:    ARM GICv2 driver initialized
INFO:    Using opteed sec cpu_context!
INFO:    boot cpu mask: 1
INFO:    plat_rockchip_pmu_init: pd status 0xe b
INFO:    BL31: Initializing runtime services
WARNING: No OPTEE provided by BL2 boot loader, Booting device without OPTEE initialization. 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 = 0x600000
INFO:    SPSR = 0x3c9


U-Boot 2017.09(u-boot commit id: 8e1ac1bfcbb69968910ba413b31cbc317b77b262)(sdk version: rk3308_linux_release_20220304_v1.5.0a.xml)-g8e1ac1b (Oct 12 2022 - 22:55:18 -0700)

Model: Rockchip RK3308 EVB
PreSerial: 4
DRAM:  510 MiB
Sysmem: init
Relocation Offset is: 1d80a000
Using default environment

...nandc_flash_init enter...
No.1 FLASH ID:ec dc 10 95 56 c6
SFTL version: 5.0.51 20191028
flash_read_page 3ff80 err_ecc -1
flash_read_page 3ffc0 err_ecc -1
FlashReadPages 1ffc00 3ff80 error_ecc_bits -1
data: 0x0:0 0 0 0
spare: 0x0:0 0 0 0
flash_read_page 3ff81 err_ecc -1
flash_read_page 3ffc1 err_ecc -1
FlashReadPages 1ffc01 3ff81 error_ecc_bits -1
data: 0x0:0 0 0 0
spare: 0x0:0 0 0 0
Bootdev(atags): rknand 0
PartType: EFI
boot mode: recovery (misc)
Found DTB in recovery part
DTB: rk-kernel.dtb
Error binding driver 'fixed regulator': -22
Some drivers failed to bind
vdd_core init 1015000 uV
DVFS: cpu: low=0.0'c, high=55.0'c, Vmax=1340000uV, tz_temp=55.0'c, h_repeat=0, l_repeat=0
DVFS: 35.0'c
Model: Firefly ROC-RK3308B-CC-PLUS analog mic rgb_7.0inch board
failed to load bmp logo.bmp
failed to display uboot logo
CLK: (uboot. arm: enter 816000 KHz, init 816000 KHz, kernel 0N/A)
  apll 816000 KHz
  dpll 1300000 KHz
  vpll0 1177823 KHz
  vpll1 901583 KHz
  aclk_bus 185714 KHz
  hclk_bus 100000 KHz
  pclk_bus 100000 KHz
  aclk_peri 185714 KHz
  hclk_peri 100000 KHz
  pclk_peri 100000 KHz
  hclk_audio 98151 KHz
  pclk_audio 98151 KHz
Net:
Error: ethernet@ff4e0000 address not set.
No ethernet found.
DVFS: cpu 35.0'c, 816000000 Hz, 1015000 uV
Hit key to stop autoboot('CTRL+C'):  0
ANDROID: reboot reason: "recovery"
** Invalid Android Image header **
"Synchronous Abort" handler, esr 0x96000044

* Reason:        Exception from a Data abort, from current exception level
* PC         =   000000000067066c
* LR         =   0000000000639328
* SP         =   000000001d3fe890
* ESR_EL2    =   0000000096000044
* Reloc Off  =   000000001d80a000

x0 : 000000011d489dff x1 : 000000001d4170c0
x2 : 0000000000000200 x3 : 0000000000000000
x4 : 000000011d489dff x5 : 00000000000000ff
x6 : 0000000000000000 x7 : 0000000000000520
x8 : 0000000000000020 x9 : 0000000000000008
x10: 00000000ffff8004 x11: 0000000001f00000
x12: 000000000001274c x13: 000000001d3ff0fc
x14: 0000000001f00000 x15: 0000000000000002
x16: 0000000000000001 x17: 0000000001f17a04
x18: 000000001d401d10 x19: 0000000000004800
x20: 0000000000000901 x21: 0000000000000000
x22: 000000001deca000 x23: 000000011d489dff
x24: 0000000000000900 x25: 000000001decb250
x26: 0000000000000001 x27: 0000000000000000
x28: 000000001decb000 x29: 000000001d3fea70


Call trace:
  PC:   [< 0067066c >]
  LR:   [< 00639328 >]

Stack:
        [< 0067066c >]
        [< 0063b430 >]
        [< 0063177c >]
        [< 0061a1bc >]
        [< 0061aec0 >]
        [< 0060667c >]
        [< 0061e600 >]
        [< 00611b28 >]
        [< 00611cc8 >]
        [< 00611414 >]
        [< 006118e4 >]
        [< 00611cc8 >]
        [< 006113cc >]
        [< 0061db04 >]
        [< 0060fe40 >]
        [< 00612904 >]
        [< 00663f54 >]
        [< 00612a90 >]
        [< 00601b2c >]

Copy info from "Call trace..." to a file(eg. dump.txt), and run
command in your U-Boot project: ./scripts/stacktrace.sh dump.txt

Resetting CPU ...

INFO:    PSCI Power Domain Map:
INFO:      Domain Node : Level 2, parent_node -1, State ON (0x0)
INFO:      Domain Node : Level 1, parent_node 0, State ON (0x0)
INFO:      Domain Node : Level 0, parent_node 0, State ON (0x0)
INFO:      Domain Node : Level 0, parent_node 0, State ON (0x0)
INFO:      CPU Node : MPID 0x0, parent_node 1, State ON (0x0)
INFO:      CPU Node : MPID 0xffffffffffffffff, parent_node 1, State OFF (0x2)
INFO:      CPU Node : MPID 0xffffffffffffffff, parent_node 1, State OFF (0x2)
INFO:      CPU Node : MPID 0xffffffffffffffff, parent_node 1, State OFF (0x2)
DDR Version V2.06 20211109
CHIP ID = 0x00003308
REG2C: 0x00000034, 0x00000034
In
589MHz
DDR3
Col=10 Bank=3 Row=15 Size=512MB
OUT: sdram_init finish.
Boot1 Release Time: Oct 28 2021 16:52:39, version: 1.33
ROM VER:0x56323030, 19
chip_id:330800,0
ChipType = 0x13, 514
DPLL = 1300 MHz
...nandc_flash_init enter...
No.1 FLASH ID:ec dc 10 95 56 c6
No.2 FLASH ID:ff ff ff ff ff ff
SFTL version: 5.0.56 20210329
flash_read_page 3ff80 err_ecc -1
flash_read_page 3ffc0 err_ecc -1
FlashReadPages 1ffc00 3ff80 error_ecc_bits -1
data: 0000000003106500 + 0x0:0x00000000,0x00000000,0x00000000,0x00000000,

spare: 00000000031125c0 + 0x0:0x00000000,0x00000000,0x00000000,0x00000000,

flash_read_page 3ff81 err_ecc -1
flash_read_page 3ffc1 err_ecc -1
FlashReadPages 1ffc01 3ff81 error_ecc_bits -1
data: 0000000003106500 + 0x0:0x00000000,0x00000000,0x00000000,0x00000000,

spare: 00000000031125c0 + 0x0:0x00000000,0x00000000,0x00000000,0x00000000,

SdmmcInit=0 NOT PRESENT
StorageInit ok = 233703
SecureMode = 0
Secure read PBA: 0x4
Secure read PBA: 0x104
Secure read PBA: 0x204
Secure read PBA: 0x304
Secure read PBA: 0x404
SecureInit ret = 0, SecureMode = 0
atags_set_bootdev: ret:(0)
GPT part:  0, name:            uboot, start:0x2000, size:0x1000
GPT part:  1, name:            trust, start:0x3000, size:0x1000
GPT part:  2, name:             misc, start:0x4000, size:0x800
GPT part:  3, name:         recovery, start:0x4800, size:0x10000
GPT part:  4, name:             boot, start:0x14800, size:0xa000
GPT part:  5, name:           rootfs, start:0x1e800, size:0x80000
GPT part:  6, name:              oem, start:0x9e800, size:0x20000
GPT part:  7, name:         userdata, start:0xbe800, size:0x297df
find part:uboot OK. first_lba:0x2000.
find part:trust OK. first_lba:0x3000.
LoadTrust Addr:0x3000
No find bl30.bin
No find bl32.bin
Load uboot, ReadLba = 2000
Load OK, addr=0x600000, size=0xb8bfc
RunBL31 0x40000 @ 335923 us
INFO:    Preloader serial: 4
NOTICE:  BL31: v1.3(release):d5a5a89b7
NOTICE:  BL31: Built : 03:20:20, Oct 18 2021
INFO:    Lastlog: last=0x100000, realtime=0x102000, size=0x2000
INFO:    ARM GICv2 driver initialized
INFO:    Using opteed sec cpu_context!
INFO:    boot cpu mask: 1
INFO:    plat_rockchip_pmu_init: pd status 0xe b
INFO:    BL31: Initializing runtime services
WARNING: No OPTEE provided by BL2 boot loader, Booting device without OPTEE initialization. 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 = 0x600000
INFO:    SPSR = 0x3c9


U-Boot 2017.09(u-boot commit id: 8e1ac1bfcbb69968910ba413b31cbc317b77b262)(sdk version: rk3308_linux_release_20220304_v1.5.0a.xml)-g8e1ac1b (Oct 12 2022 - 22:55:18 -0700)

Model: Rockchip RK3308 EVB
PreSerial: 4
DRAM:  510 MiB
Sysmem: init
Relocation Offset is: 1d80a000
Using default environment

...nandc_flash_init enter...
No.1 FLASH ID:ec dc 10 95 56 c6
SFTL version: 5.0.51 20191028
flash_read_page 3ff80 err_ecc -1
flash_read_page 3ffc0 err_ecc -1
FlashReadPages 1ffc00 3ff80 error_ecc_bits -1
data: 0x0:0 0 0 0
spare: 0x0:0 0 0 0
flash_read_page 3ff81 err_ecc -1
flash_read_page 3ffc1 err_ecc -1
FlashReadPages 1ffc01 3ff81 error_ecc_bits -1
data: 0x0:0 0 0 0
spare: 0x0:0 0 0 0
Bootdev(atags): rknand 0
PartType: EFI
boot mode: recovery (misc)
Found DTB in recovery part
DTB: rk-kernel.dtb
Error binding driver 'fixed regulator': -22
Some drivers failed to bind
vdd_core init 1015000 uV
DVFS: cpu: low=0.0'c, high=55.0'c, Vmax=1340000uV, tz_temp=55.0'c, h_repeat=0, l_repeat=0
DVFS: 35.454'c
Model: Firefly ROC-RK3308B-CC-PLUS analog mic rgb_7.0inch board
failed to load bmp logo.bmp
failed to display uboot logo
CLK: (uboot. arm: enter 816000 KHz, init 816000 KHz, kernel 0N/A)
  apll 816000 KHz
  dpll 1300000 KHz
  vpll0 1177823 KHz
  vpll1 901583 KHz
  aclk_bus 185714 KHz
  hclk_bus 100000 KHz
  pclk_bus 100000 KHz
  aclk_peri 185714 KHz
  hclk_peri 100000 KHz
  pclk_peri 100000 KHz
  hclk_audio 98151 KHz
  pclk_audio 98151 KHz
Net:
Error: ethernet@ff4e0000 address not set.
No ethernet found.
DVFS: cpu 35.0'c, 816000000 Hz, 1015000 uV
Hit key to stop autoboot('CTRL+C'):  0
ANDROID: reboot reason: "recovery"
** Invalid Android Image header **
"Synchronous Abort" handler, esr 0x96000044

* Reason:        Exception from a Data abort, from current exception level
* PC         =   000000000067066c
* LR         =   0000000000639328
* SP         =   000000001d3fe890
* ESR_EL2    =   0000000096000044
* Reloc Off  =   000000001d80a000

x0 : 000000011d489dff x1 : 000000001d4170c0
x2 : 0000000000000200 x3 : 0000000000000000
x4 : 000000011d489dff x5 : 00000000000000ff
x6 : 0000000000000000 x7 : 0000000000000520
x8 : 0000000000000020 x9 : 0000000000000008
x10: 00000000ffff8004 x11: 0000000001f00000
x12: 000000000001274c x13: 000000001d3ff0fc
x14: 0000000001f00000 x15: 0000000000000002
x16: 0000000000000001 x17: 0000000001f17a04
x18: 000000001d401d10 x19: 0000000000004800
x20: 0000000000000901 x21: 0000000000000000
x22: 000000001deca000 x23: 000000011d489dff
x24: 0000000000000900 x25: 000000001decb250
x26: 0000000000000001 x27: 0000000000000000
x28: 000000001decb000 x29: 000000001d3fea70


Call trace:
  PC:   [< 0067066c >]
  LR:   [< 00639328 >]

Stack:
        [< 0067066c >]
        [< 0063b430 >]
        [< 0063177c >]
        [< 0061a1bc >]
        [< 0061aec0 >]
        [< 0060667c >]
        [< 0061e600 >]
        [< 00611b28 >]
        [< 00611cc8 >]
        [< 00611414 >]
        [< 006118e4 >]
        [< 00611cc8 >]
        [< 006113cc >]
        [< 0061db04 >]
        [< 0060fe40 >]
        [< 00612904 >]
        [< 00663f54 >]
        [< 00612a90 >]
        [< 00601b2c >]

Copy info from "Call trace..." to a file(eg. dump.txt), and run
command in your U-Boot project: ./scripts/stacktrace.sh dump.txt

Resetting CPU ...

INFO:    PSCI Power Domain Map:
INFO:      Domain Node : Level 2, parent_node -1, State ON (0x0)
INFO:      Domain Node : Level 1, parent_node 0, State ON (0x0)
INFO:      Domain Node : Level 0, parent_node 0, State ON (0x0)
INFO:      Domain Node : Level 0, parent_node 0, State ON (0x0)
INFO:      CPU Node : MPID 0x0, parent_node 1, State ON (0x0)
INFO:      CPU Node : MPID 0xffffffffffffffff, parent_node 1, State OFF (0x2)
INFO:      CPU Node : MPID 0xffffffffffffffff, parent_node 1, State OFF (0x2)
INFO:      CPU Node : MPID 0xffffffffffffffff, parent_node 1, State OFF (0x2)
DDR Version V2.06 20211109
CHIP ID = 0x00003308
REG2C: 0x00000034, 0x00000034
In
589MHz
DDR3
Col=10 Bank=3 Row=15 Size=512MB
OUT: sdram_init finish.
Boot1 Release Time: Oct 28 2021 16:52:39, version: 1.33
ROM VER:0x56323030, 19
chip_id:330800,0
ChipType = 0x13, 514
DPLL = 1300 MHz
...nandc_flash_init enter...
No.1 FLASH ID:ec dc 10 95 56 c6
No.2 FLASH ID:ff ff ff ff ff ff
SFTL version: 5.0.56 20210329
flash_read_page 3ff80 err_ecc -1
flash_read_page 3ffc0 err_ecc -1
FlashReadPages 1ffc00 3ff80 error_ecc_bits -1
data: 0000000003106500 + 0x0:0x00000000,0x00000000,0x00000000,0x00000000,

spare: 00000000031125c0 + 0x0:0x00000000,0x00000000,0x00000000,0x00000000,

flash_read_page 3ff81 err_ecc -1
flash_read_page 3ffc1 err_ecc -1
FlashReadPages 1ffc01 3ff81 error_ecc_bits -1
data: 0000000003106500 + 0x0:0x00000000,0x00000000,0x00000000,0x00000000,

spare: 00000000031125c0 + 0x0:0x00000000,0x00000000,0x00000000,0x00000000,

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表