背景:我买了一块T113-S3的开发板,SD卡启动。用配套 img就能启动,我自己尝试打了一个img,但是内核启动到一半卡主了。
环境:
1、board.dts、sun8iw20p1.dtsi.dtsi 均拷贝自配套源码。
2、芯片T113-S3
3、SD卡启动
4、来自 T113-i 的linux,版本 5.4.61
启动日志如下:
[30]HELLO! BOOT0 is starting!
[33]BOOT0 commit : adaf1174cc
[36]set pll start
[42]periph0 has been enabled
[45]set pll end
[46][pmu]: bus read error
[49]board init ok
[51]ZQ value = 0x2f
[53]get_pmu_exist() = -1
[55]ddr_efuse_type: 0xa
[58]trefi:7.8ms
[60][AUTO DEBUG] single rank and full DQ!
[64]ddr_efuse_type: 0xa
[66]trefi:7.8ms
[69][AUTO DEBUG] rank 0 row = 13
[72][AUTO DEBUG] rank 0 bank = 8
[75][AUTO DEBUG] rank 0 page size = 2 KB
[79]DRAM BOOT DRIVE INFO: V0.33
[82]DRAM CLK = 936 MHz
[85]DRAM Type = 3 (2:DDR2,3:DDR3)
[88]DRAMC read ODT off.
[90]DRAM ODT value: 0x42.
[93]ddr_efuse_type: 0xa
[96]DRAM SIZE =128 M
[98]dram_tpr4:0x0
[100]PLL_DDR_CTRL_REG:0xf8004d00
[103]DRAM_CLK_REG:0xc0000000
[106][TIMING DEBUG] MR2= 0x20
[114]DRAM simple test OK.
[116]rtc standby flag is 0x0, super standby flag is 0x0
[121]dram size =128
[124]card no is 0
[126]sdcard 0 line count 4
[128][mmc]: mmc driver ver 2021-05-21 14:47
[138][mmc]: Wrong media type 0x0
[141][mmc]: ***Try SD card 0***
[159][mmc]: HSSDR52/SDR25 4 bit
[162][mmc]: 50000000 Hz
[164][mmc]: 30436 MB
[166][mmc]: ***SD/MMC 0 init OK!!!***
[259]Loading boot-pkg Succeed(index=0).
[263]Entry_name = u-boot
[269]Entry_name = optee
[273]Entry_name = dtb
[276]mmc not para
[278]Jump to second Boot.
M/TC: OP-TEE version: e9372c9c-dirty (gcc version 5.3.1 20160412 (Linaro GCC 5.3-2016.05)) #2 Sat Mar 19 11:09:45 UTC 2022 arm
U-Boot 2018.05 (Nov 01 2023 - 00:30:09 +0800) Allwinner Technology
[00.331]CPU: Allwinner Family
[00.334]Model: sun8iw20
[00.336]DRAM: 128 MiB
[00.339]Relocation Offset is: 04ec8000
[00.364]secure enable bit: 0
E/TC:0 tee_read_fdt:433 fine node /firmware/optee failed with FDT_ERR_NOTFOUND
[00.376]smc_tee_inform_fdt failed with: -65536[00.381]CPU=1200 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz MBus=300Mhz
[00.387]gic: sec monitor mode
[00.390]flash init start
[00.392]workmode = 0,storage type = 1
[00.395][mmc]: mmc driver ver uboot2018:2021-12-20 13:35:00
[00.400][mmc]: get sdc_type fail and use default host:tm1.
[00.406][mmc]: can't find node "mmc0",will add new node
[00.411][mmc]: fdt err returned <no error>
[00.415][mmc]: Using default timing para
[00.419][mmc]: SUNXI SDMMC Controller Version:0x50310
[00.445][mmc]: card_caps:0x3000000a
[00.448][mmc]: host_caps:0x3000003f
[00.453]sunxi flash init ok
[00.455]line:703 init_clocks
[00.458]drv_disp_init
request pwm success, pwm7:pwm7:0x2000c00.
fdt get node offset faill: hdmi
[00.473]drv_disp_init finish
[00.488]Loading Environment from SUNXI_FLASH... OK
[00.506]boot_gui_init:start
[00.509]set disp.dev2_output_type fail. using defval=0
[00.515]boot_gui_init:finish
partno erro : can't find partition bootloader
54 bytes read in 1 ms (52.7 KiB/s)
[00.530]bmp_name=bootlogo.bmp size 38454
38454 bytes read in 4 ms (9.2 MiB/s)
[00.547]Item0 (Map) magic is bad
[00.550]the secure storage item0 copy0 magic is bad
[00.555]Item0 (Map) magic is bad
[00.558]the secure storage item0 copy1 magic is bad
[00.562]Item0 (Map) magic is bad
[00.565]out of usb burn from boot: not need burn key
List file under ULI/factory
** Unrecognized filesystem type **
root_partition is rootfs
set root to /dev/mmcblk0p5
[00.584]update part info
[00.587]update bootcmd
[00.590]change working_fdt 0x43e77e70 to 0x43e47e70
disable nand error: FDT_ERR_BADPATH
[00.611]update dts
Hit any key to stop autoboot: 1 FDT ERROR:get muxsel err returned FDT_ERR_INTERNAL
sunxi_pwm_pin_set_state, fdt_set_all_pin, ret=-1
[00.705]LCD open finish 0
[02.056]no vendor_boot partition is found
Android's image name: sun8i_arm
[02.068]Starting kernel ...
[02.070][mmc]: MMC Device 2 not found
[02.073][mmc]: mmc 2 not find, so not exit
[ 0.000000] 000: printk: bootconsole [earlycon0] enabled
[ 0.000000] 000: Memory policy: Data cache writealloc
[ 0.000000] 000: cma: Reserved 4 MiB at 0x47c00000
[ 0.000000] 000: On node 0 totalpages: 32768
[ 0.000000] 000: Normal zone: 288 pages used for memmap
[ 0.000000] 000: Normal zone: 0 pages reserved
[ 0.000000] 000: Normal zone: 32768 pages, LIFO batch:7
[ 0.000000] 000: psci: probing for conduit method from DT.
[ 0.000000] 000: psci: PSCIv1.0 detected in firmware.
[ 0.000000] 000: psci: Using standard PSCI v0.2 function IDs
[ 0.000000] 000: psci: MIGRATE_INFO_TYPE not supported.
[ 0.000000] 000: psci: SMC Calling Convention v1.0
[ 0.000000] 000: percpu: Embedded 11 pages/cpu s15488 r8192 d21376 u45056
[ 0.000000] 000: pcpu-alloc: s15488 r8192 d21376 u45056 alloc=11*4096
[ 0.000000] 000:
[ 0.000000] 000: pcpu-alloc:
[ 0.000000] 000: [0]
[ 0.000000] 000: 0
[ 0.000000] 000: [0]
[ 0.000000] 000: 1
[ 0.000000] 000:
[ 0.000000] 000: Built 1 zonelists, mobility grouping on. Total pages: 32480
[ 0.000000] 000: Kernel command line: earlyprintk=sunxi-uart,0x02500000 clk_ignore_unused initcall_debug=0 console=ttyS0,115200 rootdelay=2 loglevel=8 root=/dev/mmcblk0p5 init=/sbin/init partitions=boot-resource@mmcblk0p1:env@mmcblk0p2:env-redund@mmcblk0p3:boot@mmcblk0p4:rootfs@mmcblk0p5:dsp0@mmcblk0p6:private@mmcblk0p7:UDISK@mmcblk0p8 cma=4M snum= mac_addr= wifi_mac= bt_mac= specialstr= gpt=1 androidboot.mode=normal androidboot.hardware=sun8iw20p1 boot_type=1 androidboot.boot_type=1 gpt=1 uboot_message=2018.05(11/01/2023-00:30:09) mbr_offset=1032192 disp_reserve=1536000,0x43f12000 androidboot.dramsize=128
[ 0.000000] 000: Dentry cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
[ 0.000000] 000: Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[ 0.000000] 000: mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] 000: Memory: 104412K/131072K available (6144K kernel code, 478K rwdata, 2832K rodata, 1024K init, 358K bss, 22564K reserved, 4096K cma-reserved, 0K highmem)
[ 0.000000] 000: SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[ 0.000000] 000: rcu: Preemptible hierarchical RCU implementation.
[ 0.000000] 000: rcu: RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[ 0.000000] 000: rcu: RCU priority boosting: priority 1 delay 500 ms.
[ 0.000000] 000: rcu: RCU_SOFTIRQ processing moved to rcuc kthreads.
[ 0.000000] 000: No expedited grace period (rcu_normal_after_boot).
[ 0.000000] 000: Tasks RCU enabled.
[ 0.000000] 000: rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[ 0.000000] 000: rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[ 0.000000] 000: NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] 000: random: get_random_bytes called from start_kernel+0x1c7/0x318 with crng_init=0
[ 0.000000] 000: arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[ 0.000000] 000: clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[ 0.000000] 000: sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[ 0.008791] 000: Switching to timer-based delay loop, resolution 41ns
[ 0.015361] 000: clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.025550] 000: Console: colour dummy device 80x30
[ 0.030667] 000: Calibrating delay loop (skipped), value calculated using timer frequency..
[ 0.039515] 000: 48.00 BogoMIPS (lpj=240000)
[ 0.043786] 000: pid_max: default: 32768 minimum: 301
[ 0.049216] 000: Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.056991] 000: Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.066063] 000: CPU: Testing write buffer coherency:
[ 0.071276] 000: ok
[ 0.073677] 000: /cpus/cpu@0 missing clock-frequency property
[ 0.079446] 000: /cpus/cpu@1 missing clock-frequency property
[ 0.085482] 000: CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.092159] 000: Setting up static identity map for 0x40100000 - 0x40100054
[ 0.099261] 000: rcu: Hierarchical SRCU implementation.
[ 0.105334] 000: BOOTEVENT: 105.333582: ON
[ 0.110281] 000: smp: Bringing up secondary CPUs ...
[ 0.116565] 001: CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[ 0.122955] 000: smp: Brought up 1 node, 2 CPUs
[ 0.127654] 000: SMP: Total of 2 processors activated (96.00 BogoMIPS).
[ 0.134618] 000: CPU: All CPU(s) started in SVC mode.
[ 0.140439] 001: devtmpfs: initialized
[ 0.159074] 000: VFP support v0.3:
[ 0.162587] 000: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 0.169610] 000: clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.180147] 000: futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[ 0.187743] 000: pinctrl core: initialized pinctrl subsystem
[ 0.194809] 000: NET: Registered protocol family 16
[ 0.202792] 000: DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.246481] 000: rtc_ccu: sunxi ccu init OK
[ 0.252910] 000: ccu: sunxi ccu init OK
[ 0.257163] 000: r_ccu: sunxi ccu init OK
[ 0.324876] 000: Deinterlace Module initialized.
[ 0.329884] 000: iommu: Default domain type: Translated
[ 0.335699] 000: sunxi iommu: irq = 24
[ 0.340784] 000: SCSI subsystem initialized
[ 0.345915] 000: usbcore: registered new interface driver usbfs
[ 0.351991] 000: usbcore: registered new interface driver hub
[ 0.358156] 000: usbcore: registered new device driver usb
[ 0.363946] 000: mc: Linux media interface: v0.10
[ 0.368848] 000: videodev: Linux video capture interface: v2.00
[ 0.376326] 000: Advanced Linux Sound Architecture Driver Initialized.
[ 0.383819] 000: Bluetooth: Core ver 2.22
[ 0.388113] 000: NET: Registered protocol family 31
[ 0.393048] 000: Bluetooth: HCI device and connection manager initialized
[ 0.399848] 000: Bluetooth: HCI socket layer initialized
[ 0.405487] 000: Bluetooth: L2CAP socket layer initialized
[ 0.411011] 000: Bluetooth: SCO socket layer initialized
[ 0.416978] 000: pwm module init!
[ 0.421929] 000: g2d 5410000.g2d: Adding to iommu group 0
[ 0.428148] 000: G2D: rcq version initialized.major:249
[ 0.434299] 000: [VIN_WARN]sensor_helper_probe: cannot get sensor0_cameravdd supply, setting it to NULL!
[ 0.443923] 000: [VIN_WARN]sensor_helper_probe: cannot get sensor0_iovdd supply, setting it to NULL!
[ 0.453481] 000: [VIN_WARN]sensor_helper_probe: cannot get sensor0_avdd supply, setting it to NULL!
[ 0.463006] 000: [VIN_WARN]sensor_helper_probe: cannot get sensor0_dvdd supply, setting it to NULL!
[ 0.472187] 000: [VIN_WARN]sensor_helper_probe: cannot get sensor1_cameravdd supply, setting it to NULL!
[ 0.481940] 000: [VIN_WARN]sensor_helper_probe: cannot get sensor1_iovdd supply, setting it to NULL!
[ 0.491080] 000: [VIN_WARN]sensor_helper_probe: cannot get sensor1_avdd supply, setting it to NULL!
[ 0.500181] 000: [VIN_WARN]sensor_helper_probe: cannot get sensor1_dvdd supply, setting it to NULL!
[ 0.510635] 000: clocksource: Switched to clocksource arch_sys_counter
[ 0.527538] 000: sun8iw20-pinctrl pio: initialized sunXi PIO driver
[ 0.548370] 000: thermal_sys: Registered thermal governor 'step_wise'
[ 0.554894] 000: thermal_sys: Registered thermal governor 'user_space'
[ 0.562024] 000: NET: Registered protocol family 2
[ 0.567700] 001: tcp_listen_portaddr_hash hash table entries: 128 (order: 0, 4096 bytes, linear)
[ 0.576995] 001: TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.586526] 001: TCP bind hash table entries: 1024 (order: 2, 28672 bytes, linear)
[ 0.594597] 001: TCP: Hash tables configured (established 1024 bind 1024)
[ 0.602035] 001: UDP hash table entries: 256 (order: 2, 16384 bytes, linear)
[ 0.609114] 001: UDP-Lite hash table entries: 256 (order: 2, 16384 bytes, linear)
[ 0.617314] 001: NET: Registered protocol family 1
[ 0.622988] 001: RPC: Registered named UNIX socket transport module.
[ 0.629632] 001: RPC: Registered udp transport module.
[ 0.635126] 001: RPC: Registered tcp transport module.
[ 0.640507] 001: RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.648784] 001: sun8iw20-pinctrl pio: pio supply vcc-pc not found, using dummy regulator
[ 0.658144] 000: spi spi0: spi0 supply spi not found, using dummy regulator
[ 0.665407] 000: sunxi_spi_resource_get()2198 - [spi0] SPI MASTER MODE
[ 0.672267] 000: sunxi_spi_resource_get()2236 - Failed to get sample mode
[ 0.679374] 000: sunxi_spi_resource_get()2241 - Failed to get sample delay
[ 0.686628] 000: sunxi_spi_resource_get()2245 - sample_mode:-1431633921 sample_delay:-1431633921
[ 0.695906] 000: sunxi_spi_clk_init()2287 - [spi0] mclk 100000000
[ 0.702855] 000: sunxi_spi_probe()2700 - [spi0]: driver probe succeed, base c881f000, irq 39
[ 0.713593] 000: Initialise system trusted keyrings
[ 0.718691] 000: workingset: timestamp_bits=14 max_order=15 bucket_order=1
[ 0.741898] 000: NFS: Registering the id_resolver key type
[ 0.747412] 000: Key type id_resolver registered
[ 0.752105] 000: Key type id_legacy registered
[ 0.756573] 000: nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 0.763843] 000: nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[ 0.771889] 000: Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[ 0.779162] 000: fuse: init (API version 7.31)
[ 0.811212] 001: NET: Registered protocol family 38
[ 0.816296] 001: Key type asymmetric registered
[ 0.821228] 001: Asymmetric key parser 'x509' registered
[ 0.826628] 001: Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[ 0.834699] 001: io scheduler mq-deadline registered
[ 0.839891] 001: io scheduler kyber registered
[ 0.844461] 001: atomic64_test: passed
[ 0.850082] 001: [DISP]disp_module_init
[ 0.854690] 001: disp 5000000.disp: Adding to iommu group 0
[ 0.860874] 001: [DISP] parser_disp_init_para,line:1430:
[ 0.866430] 001: of_property_read fb0_width fail
[ 0.871319] 001: [DISP] disp_init,line:2387:
[ 0.875598] 001: smooth display screen:0 type:1 mode:4
[ 0.894390] 001: display_fb_request,fb_id:0
[ 0.901379] 001: disp_al_manager_apply ouput_type:1
[ 0.906483] 001: sunxi_pwm_enable_dual: can't parse pwm device
[ 0.911274] 000: [DISP]disp_module_init finish
[ 0.918152] 000: sunxi_sid_init()563 - insmod ok
[ 0.923357] 000: pwm-regulator: supplied by regulator-dummy
[ 0.930523] 000: sun8iw20-pinctrl pio: pio supply vcc-pe not found, using dummy regulator
[ 0.939139] 000: uart uart0: get regulator failed
[ 0.944095] 000: uart uart0: uart0 supply uart not found, using dummy regulator
[ 0.952094] 000: uart0: ttyS0 at MMIO 0x2500000 (irq = 34, base_baud = 1500000) is a SUNXI
[ 0.960851] 000: sw_console_setup()1784 - console setup baud 115200 parity n bits 8, flow n
[ 0.969253] 000: printk: console [ttyS0] enabled
[ 0.973945] 000: printk: bootconsole [earlycon0] disabled
[ 0.000000] 000: Booting Linux on physical CPU 0x0
[ 0.000000] 000: Linux version 5.4.61-rt37 (ubuntu@win) (arm-linux-gnueabi-gcc (Linaro GCC 5.3-2016.05) 5.3.1 20160412, GNU ld (Linaro_Binutils-2016.05) 2.25.0 Linaro 2016_02) #2 SMP PREEMPT_RT Wed Nov 1 00:29:07 CST 2023
[ 0.000000] 000: CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=50c5387d
[ 0.000000] 000: CPU: div instructions available: patching division code
[ 0.000000] 000: CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] 000: OF: fdt: Machine model: sun8iw20
[ 0.000000] 000: printk: bootconsole [earlycon0] enabled
[ 0.000000] 000: Memory policy: Data cache writealloc
[ 0.000000] 000: cma: Reserved 4 MiB at 0x47c00000
[ 0.000000] 000: On node 0 totalpages: 32768
[ 0.000000] 000: Normal zone: 288 pages used for memmap
[ 0.000000] 000: Normal zone: 0 pages reserved
[ 0.000000] 000: Normal zone: 32768 pages, LIFO batch:7
[ 0.000000] 000: psci: probing for conduit method from DT.
[ 0.000000] 000: psci: PSCIv1.0 detected in firmware.
[ 0.000000] 000: psci: Using standard PSCI v0.2 function IDs
[ 0.000000] 000: psci: MIGRATE_INFO_TYPE not supported.
[ 0.000000] 000: psci: SMC Calling Convention v1.0
[ 0.000000] 000: percpu: Embedded 11 pages/cpu s15488 r8192 d21376 u45056
[ 0.000000] 000: pcpu-alloc: s15488 r8192 d21376 u45056 alloc=11*4096
[ 0.000000] 000: pcpu-alloc: [0] 0 [0] 1
[ 0.000000] 000: Built 1 zonelists, mobility grouping on. Total pages: 32480
[ 0.000000] 000: Kernel command line: earlyprintk=sunxi-uart,0x02500000 clk_ignore_unused initcall_debug=0 console=ttyS0,115200 rootdelay=2 loglevel=8 root=/dev/mmcblk0p5 init=/sbin/init partitions=boot-resource@mmcblk0p1:env@mmcblk0p2:env-redund@mmcblk0p3:boot@mmcblk0p4:rootfs@mmcblk0p5:dsp0@mmcblk0p6:private@mmcblk0p7:UDISK@mmcblk0p8 cma=4M snum= mac_addr= wifi_mac= bt_mac= specialstr= gpt=1 androidboot.mode=normal androidboot.hardware=sun8iw20p1 boot_type=1 androidboot.boot_type=1 gpt=1 uboot_message=2018.05(11/01/2023-00:30:09) mbr_offset=1032192 disp_reserve=1536000,0x43f12000 androidboot.dramsize=128
[ 0.000000] 000: Dentry cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
[ 0.000000] 000: Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[ 0.000000] 000: mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] 000: Memory: 104412K/131072K available (6144K kernel code, 478K rwdata, 2832K rodata, 1024K init, 358K bss, 22564K reserved, 4096K cma-reserved, 0K highmem)
[ 0.000000] 000: SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[ 0.000000] 000: rcu: Preemptible hierarchical RCU implementation.
[ 0.000000] 000: rcu: RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[ 0.000000] 000: rcu: RCU priority boosting: priority 1 delay 500 ms.
[ 0.000000] 000: rcu: RCU_SOFTIRQ processing moved to rcuc kthreads.
[ 0.000000] 000: No expedited grace period (rcu_normal_after_boot).
[ 0.000000] 000: Tasks RCU enabled.
[ 0.000000] 000: rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[ 0.000000] 000: rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[ 0.000000] 000: NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] 000: random: get_random_bytes called from start_kernel+0x1c7/0x318 with crng_init=0
[ 0.000000] 000: arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[ 0.000000] 000: clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[ 0.000000] 000: sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[ 0.008791] 000: Switching to timer-based delay loop, resolution 41ns
[ 0.015361] 000: clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.025550] 000: Console: colour dummy device 80x30
[ 0.039503] 000: Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[ 0.043786] 000: pid_max: default: 32768 minimum: 301
[ 0.049216] 000: Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.056991] 000: Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.071221] 000: CPU: Testing write buffer coherency: ok
[ 0.073677] 000: /cpus/cpu@0 missing clock-frequency property
[ 0.079446] 000: /cpus/cpu@1 missing clock-frequency property
[ 0.085482] 000: CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.092159] 000: Setting up static identity map for 0x40100000 - 0x40100054
[ 0.099261] 000: rcu: Hierarchical SRCU implementation.
[ 0.105334] 000: BOOTEVENT: 105.333582: ON
[ 0.110281] 000: smp: Bringing up secondary CPUs ...
[ 0.116565] 001: CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[ 0.122955] 000: smp: Brought up 1 node, 2 CPUs
[ 0.127654] 000: SMP: Total of 2 processors activated (96.00 BogoMIPS).
[ 0.134618] 000: CPU: All CPU(s) started in SVC mode.
[ 0.140439] 001: devtmpfs: initialized
[ 0.162579] 000: VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 0.169610] 000: clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.180147] 000: futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[ 0.187743] 000: pinctrl core: initialized pinctrl subsystem
[ 0.194809] 000: NET: Registered protocol family 16
[ 0.202792] 000: DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.246481] 000: rtc_ccu: sunxi ccu init OK
[ 0.252910] 000: ccu: sunxi ccu init OK
[ 0.257163] 000: r_ccu: sunxi ccu init OK
[ 0.324876] 000: Deinterlace Module initialized.
[ 0.329884] 000: iommu: Default domain type: Translated
[ 0.335699] 000: sunxi iommu: irq = 24
[ 0.340784] 000: SCSI subsystem initialized
[ 0.345915] 000: usbcore: registered new interface driver usbfs
[ 0.351991] 000: usbcore: registered new interface driver hub
[ 0.358156] 000: usbcore: registered new device driver usb
[ 0.363946] 000: mc: Linux media interface: v0.10
[ 0.368848] 000: videodev: Linux video capture interface: v2.00
[ 0.376326] 000: Advanced Linux Sound Architecture Driver Initialized.
[ 0.383819] 000: Bluetooth: Core ver 2.22
[ 0.388113] 000: NET: Registered protocol family 31
[ 0.393048] 000: Bluetooth: HCI device and connection manager initialized
[ 0.399848] 000: Bluetooth: HCI socket layer initialized
[ 0.405487] 000: Bluetooth: L2CAP socket layer initialized
[ 0.411011] 000: Bluetooth: SCO socket layer initialized
[ 0.416978] 000: pwm module init!
[ 0.421929] 000: g2d 5410000.g2d: Adding to iommu group 0
[ 0.428148] 000: G2D: rcq version initialized.major:249
[ 0.434299] 000: [VIN_WARN]sensor_helper_probe: cannot get sensor0_cameravdd supply, setting it to NULL!
[ 0.443923] 000: [VIN_WARN]sensor_helper_probe: cannot get sensor0_iovdd supply, setting it to NULL!
[ 0.453481] 000: [VIN_WARN]sensor_helper_probe: cannot get sensor0_avdd supply, setting it to NULL!
[ 0.463006] 000: [VIN_WARN]sensor_helper_probe: cannot get sensor0_dvdd supply, setting it to NULL!
[ 0.472187] 000: [VIN_WARN]sensor_helper_probe: cannot get sensor1_cameravdd supply, setting it to NULL!
[ 0.481940] 000: [VIN_WARN]sensor_helper_probe: cannot get sensor1_iovdd supply, setting it to NULL!
[ 0.491080] 000: [VIN_WARN]sensor_helper_probe: cannot get sensor1_avdd supply, setting it to NULL!
[ 0.500181] 000: [VIN_WARN]sensor_helper_probe: cannot get sensor1_dvdd supply, setting it to NULL!
[ 0.510635] 000: clocksource: Switched to clocksource arch_sys_counter
[ 0.527538] 000: sun8iw20-pinctrl pio: initialized sunXi PIO driver
[ 0.554813] 000: thermal_sys: Registered thermal governor 'step_wise'
[ 0.561420] 000: thermal_sys: Registered thermal governor 'user_space'
[ 0.562024] 000: NET: Registered protocol family 2
[ 0.567700] 001: tcp_listen_portaddr_hash hash table entries: 128 (order: 0, 4096 bytes, linear)
[ 0.576995] 001: TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.586526] 001: TCP bind hash table entries: 1024 (order: 2, 28672 bytes, linear)
[ 0.594597] 001: TCP: Hash tables configured (established 1024 bind 1024)
[ 0.602035] 001: UDP hash table entries: 256 (order: 2, 16384 bytes, linear)
[ 0.609114] 001: UDP-Lite hash table entries: 256 (order: 2, 16384 bytes, linear)
[ 0.617314] 001: NET: Registered protocol family 1
[ 0.622988] 001: RPC: Registered named UNIX socket transport module.
[ 0.629632] 001: RPC: Registered udp transport module.
[ 0.635126] 001: RPC: Registered tcp transport module.
[ 0.640507] 001: RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.648784] 001: sun8iw20-pinctrl pio: pio supply vcc-pc not found, using dummy regulator
[ 0.658144] 000: spi spi0: spi0 supply spi not found, using dummy regulator
[ 0.665407] 000: sunxi_spi_resource_get()2198 - [spi0] SPI MASTER MODE
[ 0.672267] 000: sunxi_spi_resource_get()2236 - Failed to get sample mode
[ 0.679374] 000: sunxi_spi_resource_get()2241 - Failed to get sample delay
[ 0.686628] 000: sunxi_spi_resource_get()2245 - sample_mode:-1431633921 sample_delay:-1431633921
[ 0.695906] 000: sunxi_spi_clk_init()2287 - [spi0] mclk 100000000
[ 0.702855] 000: sunxi_spi_probe()2700 - [spi0]: driver probe succeed, base c881f000, irq 39
[ 0.713593] 000: Initialise system trusted keyrings
[ 0.718691] 000: workingset: timestamp_bits=14 max_order=15 bucket_order=1
[ 0.741898] 000: NFS: Registering the id_resolver key type
[ 0.747412] 000: Key type id_resolver registered
[ 0.752105] 000: Key type id_legacy registered
[ 0.756573] 000: nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 0.763843] 000: nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[ 0.771889] 000: Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[ 0.779162] 000: fuse: init (API version 7.31)
[ 0.811212] 001: NET: Registered protocol family 38
[ 0.816296] 001: Key type asymmetric registered
[ 0.821228] 001: Asymmetric key parser 'x509' registered
[ 0.826628] 001: Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[ 0.834699] 001: io scheduler mq-deadline registered
[ 0.839891] 001: io scheduler kyber registered
[ 0.844461] 001: atomic64_test: passed
[ 0.850082] 001: [DISP]disp_module_init
[ 0.854690] 001: disp 5000000.disp: Adding to iommu group 0
[ 0.866429] 001: [DISP] parser_disp_init_para,line:1430:
[ 0.866430] 001: of_property_read fb0_width fail
[ 0.875597] 001: [DISP] disp_init,line:2387:
[ 0.875598] 001: smooth display screen:0 type:1 mode:4
[ 0.894390] 001: display_fb_request,fb_id:0
[ 0.901379] 001: disp_al_manager_apply ouput_type:1
[ 0.906483] 001: sunxi_pwm_enable_dual: can't parse pwm device
[ 0.911274] 000: [DISP]disp_module_init finish
[ 0.918152] 000: sunxi_sid_init()563 - insmod ok
[ 0.923357] 000: pwm-regulator: supplied by regulator-dummy
[ 0.930523] 000: sun8iw20-pinctrl pio: pio supply vcc-pe not found, using dummy regulator
[ 0.939139] 000: uart uart0: get regulator failed
[ 0.944095] 000: uart uart0: uart0 supply uart not found, using dummy regulator
[ 0.952094] 000: uart0: ttyS0 at MMIO 0x2500000 (irq = 34, base_baud = 1500000) is a SUNXI
[ 0.960851] 000: sw_console_setup()1784 - console setup baud 115200 parity n bits 8, flow n
[ 0.969253] 000: printk: console [ttyS0] enabled
[ 0.973945] 000: printk: bootconsole [earlycon0] disabled
[ 0.980588] 000: misc dump reg init
[
env.cfg
#kernel command arguments
burn_key=0
earlyprintk=sunxi-uart,0x02500000
initcall_debug=0
console=ttyS0,115200
nand_root=/dev/ubiblock0_5
mmc_root=/dev/mmcblk0p5
mtd_name=sys
rootfstype=ext4
root_partition=rootfs
boot_partition=boot
init=/sbin/init
loglevel=8
cma=4M
mac=
wifi_mac=
bt_mac=
specialstr=
#keybox_list=widevine,ec_key,ec_cert1,ec_cert2,ec_cert3,rsa_key,rsa_cert1,rsa_cert2,rsa_cert3
dsp0_partition=dsp0
rootdelay=2
#set kernel cmdline if boot.img or recovery.img has no cmdline we will use this
setargs_nand=setenv bootargs ubi.mtd=${mtd_name} ubi.block=0,${root_partition} earlyprintk=${earlyprintk} clk_ignore_unused initcall_debug=${initcall_debug} console=${console} loglevel=${loglevel} root=${nand_root} rootfstype=${rootfstype} init=${init} partitions=${partitions} cma=${cma} snum=${snum} mac_addr=${mac} wifi_mac=${wifi_mac} bt_mac=${bt_mac} specialstr=${specialstr} gpt=1
setargs_nand_ubi=setenv bootargs ubi.mtd=${mtd_name} ubi.block=0,${root_partition} earlyprintk=${earlyprintk} clk_ignore_unused initcall_debug=${initcall_debug} console=${console} loglevel=${loglevel} root=${nand_root} rootfstype=${rootfstype} init=${init} partitions=${partitions} cma=${cma} snum=${snum} mac_addr=${mac} wifi_mac=${wifi_mac} bt_mac=${bt_mac} specialstr=${specialstr} gpt=1
setargs_mmc=setenv bootargs earlyprintk=${earlyprintk} clk_ignore_unused initcall_debug=${initcall_debug} console=${console} rootdelay=${rootdelay} loglevel=${loglevel} root=${mmc_root} init=${init} partitions=${partitions} cma=${cma} snum=${snum} mac_addr=${mac} wifi_mac=${wifi_mac} bt_mac=${bt_mac} specialstr=${specialstr} gpt=1
#nand command syntax: sunxi_flash read address partition_name read_bytes
#0x4007f800 = 0x40080000(kernel entry) - 0x800(boot.img header 2k)
#boot_dsp0=sunxi_flash read 43000000 ${dsp0_partition};bootr 43000000 0 0
#boot_normal=sunxi_flash read 43000000 ${boot_partition};bootm 43000000
boot_dsp0=sunxi_flash read 40000000 ${dsp0_partition};bootr 40000000 0 0
boot_normal=sunxi_flash read 42000000 ${boot_partition};bootm 42000000
boot_recovery=sunxi_flash read 43000000 recovery;bootm 43000000
boot_fastboot=fastboot
#uboot system env config
bootdelay=1
#default bootcmd, will change at runtime according to key press
#default nand boot
#bootcmd=run setargs_nand boot_dsp0 boot_normal
bootcmd=run setargs_mmc boot_normal
看起来内核启动了,但到了 misc dump reg init 就卡住了,重启无数次都这样,不知是否是 rootfs 加载失败。
请教各位大神提供一下思路,非常感谢。