您尚未登录。

楼主 # 2022-04-22 08:09:24

Cadence
会员
注册时间: 2022-04-01
已发帖子: 71
积分: 85

T113-s3 spi-nand 启动

HELLO! BOOT0 is starting!
BOOT0 commit : #.###
set pll start
periph0 has been enabled
set pll end
board init ok
ZQ value = 0x2d
get_pmu_exist() = -1
ddr_efuse_type: 0xa
mark_id: 0x60
trefi:7.8ms
[AUTO DEBUG] single rank and full DQ!
ddr_efuse_type: 0xa
mark_id: 0x60
trefi:7.8ms
[AUTO DEBUG] rank 0 row = 13 
[AUTO DEBUG] rank 0 bank = 8 
[AUTO DEBUG] rank 0 page size = 2 KB 
DRAM BOOT DRIVE INFO: V0.32
DRAM CLK = 792 MHz
DRAM Type = 3 (2:DDR2,3:DDR3)
DRAMC read ODT  off.
DRAM ODT value: 0x42.
ddr_efuse_type: 0xa
mark_id: 0x60
DRAM SIZE =128 M
PLL_DDR_CTRL_REG:0xf8004100
DRAM_CLK_REG:0xc0000000
[TIMING DEBUG] MR2= 0x18
DRAM simple test OK.
rtc standby flag is 0x0, super standby flag is 0x0
boot0_main.c 71 128 M
spinand/spinand_osal_boot0.c 143 (NAND_CLK_BASE_ADDR + 0x0940) 0x8100000b
spinand UBOOT_START_BLK_NUM 8 UBOOT_LAST_BLK_NUM 16
Jump to second Boot.


U-Boot 2022.01-rc3-00096-gc0ffc12a70-dirty (Apr 21 2022 - 23:45:21 +0800) Allwinner Technology

CPU:   SUNXI Family
Model: sun20iw1p1
DRAM:  128 MiB
[00.023]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz  MBus=300Mhz
MMC:   
Loading Environment from FAT... In:    serial
Out:   serial
Err:   serial
starting USB...
No working controllers found
Hit any key to stop autoboot:  0 
List of MTD devices:
* spi-nand0
  - device: spi-nand@0
  - parent: spi@4025000
  - driver: spi_nand
  - path: /spi@4025000/spi-nand@0
  - type: NAND flash
  - block size: 0x20000 bytes
  - min I/O: 0x800 bytes
  - OOB size: 64 bytes
  - OOB available: 24 bytes
  - 0x000000000000-0x000008000000 : "spi-nand0"
          - 0x000000000000-0x000000100000 : "boot0"
          - 0x000000100000-0x000000200000 : "u-boot"
          - 0x000000200000-0x000000220000 : "dtb"
          - 0x000000220000-0x000000820000 : "kernel"
          - 0x000000820000-0x000008000000 : "rootfs"
=> 

离线

楼主 #1 2022-04-22 09:37:38

Cadence
会员
注册时间: 2022-04-01
已发帖子: 71
积分: 85

Re: T113-s3 spi-nand 启动

U-Boot 2022.01-rc3-00096-gc0ffc12a70-dirty (Apr 22 2022 - 09:02:04 +0800) Allwinner Technology

CPU:   SUNXI Family
Model: sun20iw1p1
DRAM:  128 MiB
[00.023]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz  MBus=300Mhz
MMC:   
Loading Environment from FAT... In:    serial
Out:   serial
Err:   serial
starting USB...
No working controllers found
Hit any key to stop autoboot:  0 
Kernel image @ 0x40080000 [ 0x000000 - 0x4923a0 ]
## Flattened Device Tree blob at 40020000
   Booting using the fdt blob at 0x40020000
   Loading Device Tree to 49fef000, end 49fff3e6 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.4.61+ (root@i9-10920) (arm-linux-gnueabihf-gcc (Linaro GCC 7.5-2019.12) 7.5.0, GNU ld (Linaro_Binutils-2019.12) 2.28.2.20170706) #1 SMP PREEMPT Wed Apr 13 17:16:30 CST 2022
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: sun8iw20
[    0.000000] printk: bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] cma: Reserved 8 MiB at 0x47800000
[    0.000000] On node 0 totalpages: 32768
[    0.000000]   Normal zone: 256 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 32768 pages, LIFO batch:7
[    0.000000] 8<--- cut here ---
[    0.000000] Unable to handle kernel paging request at virtual address c9fef000
[    0.000000] pgd = (ptrval)
[    0.000000] [c9fef000] *pgd=00000000
[    0.000000] Internal error: Oops: 5 [#1] PREEMPT SMP ARM
[    0.000000] Modules linked in:
[    0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 5.4.61+ #1
[    0.000000] Hardware name: Generic DT based system
[    0.000000] PC is at fdt32_ld+0x0/0xc
[    0.000000] LR is at fdt_check_header+0xc/0x11c
[    0.000000] pc : [<c070d934>]    lr : [<c070d9f8>]    psr: a00000d3
[    0.000000] sp : c0c01f20  ip : 40c90097  fp : c77fff40
[    0.000000] r10: c0c0e0e4  r9 : c0c71390  r8 : 00000000
[    0.000000] r7 : c9fef000  r6 : c0b1d874  r5 : c0c8a73c  r4 : c0b1d874
[    0.000000] r3 : c9fef000  r2 : c0c8a73c  r1 : 00000000  r0 : c9fef000
[    0.000000] Flags: NzCv  IRQs off  FIQs off  Mode SVC_32  ISA ARM  Segment none
[    0.000000] Control: 10c5387d  Table: 4000406a  DAC: 00000051
[    0.000000] Process swapper (pid: 0, stack limit = 0x(ptrval))
[    0.000000] Stack: (0xc0c01f20 to 0xc0c02000)
[    0.000000] 1f20: c0b1d874 c0c8a73c c0b1d874 c05696a4 c0b1d874 c0c08118 c0c66180 c0c06c40
[    0.000000] 1f40: 40000000 c0c71390 c0c0e0e4 c0b1e6fc 00000000 0000000c c0b28d4c c0b024c0
[    0.000000] 1f60: ffffffff 10c5387d 00000051 c09efecc c0c66000 49fef000 410fc075 10c5387d
[    0.000000] 1f80: 00000000 c01577a4 c0974d79 00000000 00000001 c0b00330 00000051 c0c03dc0
[    0.000000] 1fa0: c0c66000 49fef000 410fc075 10c5387d 00000000 c0b00968 00000000 00000000
[    0.000000] 1fc0: 00000000 00000000 00000000 c0b2d0c0 00000000 00000000 00000000 c0b00330
[    0.000000] 1fe0: 00000051 10c0387d 00000000 49fef000 410fc075 00000000 00000000 00000000
[    0.000000] [<c070d934>] (fdt32_ld) from [<c070d9f8>] (fdt_check_header+0xc/0x11c)
[    0.000000] [<c070d9f8>] (fdt_check_header) from [<c05696a4>] (__unflatten_device_tree+0x28/0xfc)
[    0.000000] [<c05696a4>] (__unflatten_device_tree) from [<c0b1e6fc>] (unflatten_device_tree+0x24/0x40)
[    0.000000] [<c0b1e6fc>] (unflatten_device_tree) from [<c0b024c0>] (setup_arch+0x618/0xa64)
[    0.000000] [<c0b024c0>] (setup_arch) from [<c0b00968>] (start_kernel+0x54/0x3e0)
[    0.000000] [<c0b00968>] (start_kernel) from [<00000000>] (0x0)
[    0.000000] Code: ebf054cb e28dd014 e49df004 c070d824 (e5900000) 
[    0.000000] random: get_random_bytes called from init_oops_id+0x20/0x3c with crng_init=0
[    0.000000] ---[ end trace 0000000000000000 ]---
[    0.000000] Kernel panic - not syncing: Attempted to kill the idle task!
[    0.000000] ---[ end Kernel panic - not syncing: Attempted to kill the idle task! ]---

离线

楼主 #2 2022-04-22 17:39:31

Cadence
会员
注册时间: 2022-04-01
已发帖子: 71
积分: 85

Re: T113-s3 spi-nand 启动

U-Boot 2022.01-rc3-00096-gc0ffc12a70-dirty (Apr 22 2022 - 17:37:29 +0800) Allwinner Technology

CPU:   SUNXI Family
Model: sun20iw1p1
DRAM:  128 MiB
[00.023]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz  MBus=300Mhz
MMC:   
Loading Environment from FAT... In:    serial
Out:   serial
Err:   serial
starting USB...
No working controllers found
Hit any key to stop autoboot:  0 
Kernel image @ 0x40080000 [ 0x000000 - 0x3a7760 ]
## Flattened Device Tree blob at 42000000
   Booting using the fdt blob at 0x42000000
   Loading Device Tree to 43f5b000, end 43f6b3e6 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.4.61 (root@i9-10920) (arm-linux-gnueabihf-gcc (Linaro GCC 7.5-2019.12) 7.5.0, GNU ld (Linaro_Binutils-2019.12) 2.28.2.20170706) #10 SMP PREEMPT Fri Apr 22 17:17:39 CST 2022
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: sun8iw20
[    0.000000] printk: bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] cma: dma_contiguous_reserve(limit ffffffff)
[    0.000000] cma: dma_contiguous_reserve: reserving 8 MiB for global area
[    0.000000] cma: cma_declare_contiguous(size 0x00800000, base 0x00000000, limit 0xffffffff alignment 0x00000000)
[    0.000000] cma: Reserved 8 MiB at 0x47800000
[    0.000000] On node 0 totalpages: 32768
[    0.000000]   Normal zone: 256 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 32768 pages, LIFO batch:7
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] Bad mode in prefetch abort handler detected
[    0.000000] Internal error: Oops - bad mode: 0 [#1] PREEMPT SMP ARM
[    0.000000] Modules linked in:
[    0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 5.4.61 #10
[    0.000000] Hardware name: Generic DT based system
[    0.000000] PC is at 0xa9530408
[    0.000000] LR is at __invoke_psci_fn_smc+0x40/0x60
[    0.000000] pc : [<a9530408>]    lr : [<c04a2358>]    psr: 600001d6
[    0.000000] sp : c0901e98  ip : c0901ef0  fp : c77fff40
[    0.000000] r10: c090e064  r9 : c096bd90  r8 : 40000000
[    0.000000] r7 : 00000000  r6 : 00000000  r5 : 00000000  r4 : 00000000
[    0.000000] r3 : 00000000  r2 : 00000000  r1 : 00000000  r0 : 84000000
[    0.000000] Flags: nZCv  IRQs off  FIQs off  Mode MON_32  ISA ARM  Segment none
[    0.000000] Control: 10c5387d  Table: 4000406a  DAC: c0900000
[    0.000000] Process swapper (pid: 0, stack limit = 0x(ptrval))
[    0.000000] Stack: (0xc0901e98 to 0xc0902000)
[    0.000000] 1e80:                                                       84000000 00000000
[    0.000000] 1ea0: 00000000 00000000 00000000 00000000 00000000 00000000 40000000 c096bd90
[    0.000000] 1ec0: c090e064 c77fff40 c0901ef0 c0901e98 c04a2358 a9530408 600001d6 ffffffff
[    0.000000] 1ee0: c0900000 00000000 c0961180 c0906d80 00000000 00000000 00000000 00000000
[    0.000000] 1f00: c0901f0c 00000000 c0961180 c04a25b0 c3f5ba04 00000000 00000001 00000000
[    0.000000] 1f20: c0900000 c081882c c0900000 c76d4980 c0961180 c0906d80 40000000 c0818a94
[    0.000000] 1f40: c0900000 c0818c40 c08322c0 00000000 00000000 c0823ab8 c0908258 c08024c0
[    0.000000] 1f60: ffffffff 10c5387d 00000051 c07844a4 c0961000 43f5b000 410fc075 10c5387d
[    0.000000] 1f80: 00000000 c01575b8 c0721ea5 00000000 00000001 c0800330 00000051 c0903bc0
[    0.000000] 1fa0: c0961000 43f5b000 410fc075 10c5387d 00000000 c0800968 00000000 00000000
[    0.000000] 1fc0: 00000000 00000000 00000000 c08270c0 00000000 00000000 00000000 c0800330
[    0.000000] 1fe0: 00000051 10c0387d 00000000 43f5b000 410fc075 00000000 00000000 00000000
[    0.000000] [<c04a2358>] (__invoke_psci_fn_smc) from [<c0901e98>] (init_stack+0x1e98/0x2000)
[    0.000000] Code: bad PC value
[    0.000000] random: get_random_bytes called from init_oops_id+0x20/0x3c with crng_init=0
[    0.000000] ---[ end trace 0000000000000000 ]---
[    0.000000] Kernel panic - not syncing: Attempted to kill the idle task!
[    0.000000] ---[ end Kernel panic - not syncing: Attempted to kill the idle task! ]---

离线

楼主 #3 2022-04-22 18:32:31

Cadence
会员
注册时间: 2022-04-01
已发帖子: 71
积分: 85

Re: T113-s3 spi-nand 启动

U-Boot 2022.01-rc3-00096-gc0ffc12a70-dirty (Apr 22 2022 - 17:37:29 +0800) Allwinner Technology

CPU:   SUNXI Family
Model: sun20iw1p1
DRAM:  128 MiB
[00.023]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz  MBus=300Mhz
MMC:   
Loading Environment from FAT... In:    serial
Out:   serial
Err:   serial
starting USB...
No working controllers found
Hit any key to stop autoboot:  0 
Kernel image @ 0x40080000 [ 0x000000 - 0x3a6ce0 ]
## Flattened Device Tree blob at 42000000
   Booting using the fdt blob at 0x42000000
   Loading Device Tree to 43f5b000, end 43f6b35f ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.4.61 (root@i9-10920) (arm-linux-gnueabihf-gcc (Linaro GCC 7.5-2019.12) 7.5.0, GNU ld (Linaro_Binutils-2019.12) 2.28.2.20170706) #13 SMP PREEMPT Fri Apr 22 18:30:15 CST 2022
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: sun8iw20
[    0.000000] printk: bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] cma: dma_contiguous_reserve(limit ffffffff)
[    0.000000] cma: dma_contiguous_reserve: reserving 8 MiB for global area
[    0.000000] cma: cma_declare_contiguous(size 0x00800000, base 0x00000000, limit 0xffffffff alignment 0x00000000)
[    0.000000] cma: Reserved 8 MiB at 0x47800000
[    0.000000] On node 0 totalpages: 32768
[    0.000000]   Normal zone: 256 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 32768 pages, LIFO batch:7
[    0.000000] percpu: Embedded 15 pages/cpu s30860 r8192 d22388 u61440
[    0.000000] pcpu-alloc: s30860 r8192 d22388 u61440 alloc=15*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,115200n8 earlyprintk=sunxi-uart,0x02500000 clk_ignore_unused loglevel=8 init=/init partitions=boot@mmcblk0p1:rootfs@mmcblk0p2 cma=8M ubi.mtd=5 rootfstype=ubifs root=ubi0:rootfs
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 112660K/131072K available (5120K kernel code, 385K rwdata, 1836K rodata, 1024K init, 148K bss, 10220K reserved, 8192K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000]  Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] random: get_random_bytes called from start_kernel+0x250/0x3d8 with crng_init=0
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000006] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.008026] Switching to timer-based delay loop, resolution 41ns
[    0.014206] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.023961] Console: colour dummy device 80x30
[    0.028451] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.038831] pid_max: default: 32768 minimum: 301
[    0.043584] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.050902] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.059240] CPU: Testing write buffer coherency: ok
[    0.064506] /cpus/cpu@0 missing clock-frequency property
[    0.069825] /cpus/cpu@1 missing clock-frequency property
[    0.075171] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.081437] Setting up static identity map for 0x40100000 - 0x40100060
[    0.088132] rcu: Hierarchical SRCU implementation.
[    0.093414] smp: Bringing up secondary CPUs ...
[    0.098530] smp: Brought up 1 node, 1 CPU
[    0.102539] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.108796] CPU: All CPU(s) started in SVC mode.
[    0.113839] devtmpfs: initialized
[    0.128503] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.136863] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.147016] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.154258] pinctrl core: initialized pinctrl subsystem
[    0.161610] NET: Registered protocol family 16
[    0.166308] cma: cma_alloc(cma (ptrval), count 64, align 6)
[    0.173762] cma: cma_alloc(): returned (ptrval)
[    0.178476] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.248527] rtc_ccu: sunxi ccu init OK
[    0.255402] ccu: sunxi ccu init OK
[    0.259983] r_ccu: sunxi ccu init OK
[    0.331437] iommu: Default domain type: Translated 
[    0.336533] sunxi iommu: irq = 24
[    0.343229] SCSI subsystem initialized
[    0.348177] usbcore: registered new interface driver usbfs
[    0.354475] usbcore: registered new interface driver hub
[    0.360062] usbcore: registered new device driver usb
[    0.368329] pwm module init!
[    0.373195] input: sunxi-keyboard as /devices/virtual/input/input0
[    0.381822] clocksource: Switched to clocksource arch_sys_counter
[    0.398209] sun8iw20-pinctrl 2000000.pinctrl: initialized sunXi PIO driver
[    0.431081] thermal_sys: Registered thermal governor 'step_wise'
[    0.431088] thermal_sys: Registered thermal governor 'user_space'
[    0.438160] thermal_sys: Registered thermal governor 'power_allocator'
[    0.445493] NET: Registered protocol family 2
[    0.457598] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.466071] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.473807] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.480868] TCP: Hash tables configured (established 1024 bind 1024)
[    0.487433] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.494059] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.501227] NET: Registered protocol family 1
[    0.506555] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pc not found, using dummy regulator
[    0.517175] spi spi0: spi0 supply spi not found, using dummy regulator
[    0.524188] sunxi_spi_resource_get()2151 - [spi0] SPI MASTER MODE
[    0.530337] sunxi_spi_resource_get()2189 - Failed to get sample mode
[    0.536893] sunxi_spi_resource_get()2194 - Failed to get sample delay
[    0.543417] sunxi_spi_resource_get()2198 - sample_mode:-1431633921 sample_delay:-1431633921
[    0.551928] sunxi_spi_clk_init()2240 - [spi0] mclk 100000000
[    0.558366] sunxi_spi_probe()2653 - [spi0]: driver probe succeed, base c8821000, irq 41
[    0.569362] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    0.591740] ntfs: driver 2.1.32 [Flags: R/W].
[    0.597096] NET: Registered protocol family 38
[    0.602655] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.610073] io scheduler mq-deadline registered
[    0.614810] io scheduler kyber registered
[    0.621010] [DISP]disp_module_init
[    0.625859] disp 5000000.disp: Adding to iommu group 0
[    0.648198] display_fb_request,fb_id:0
[    0.656777] [DISP] Fb_copy_boot_fb,line:1443:
[    0.656783] no boot_fb0
[    0.664285] disp_al_manager_apply ouput_type:0
[    0.669627] [DISP]disp_module_init finish
[    0.673957] [DISP] lcd_clk_config,line:732:
[    0.673969] disp 0, clk: pll(364000000),clk(364000000),dclk(52000000) dsi_rate(364000000)
[    0.673969]      clk real:pll(360000000),clk(360000000),dclk(51428571) dsi_rate(0)
[    0.696246] sunxi_sid_init()551 - insmod ok
[    0.701409] pwm-regulator: supplied by regulator-dummy
[    0.708617] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pg not found, using dummy regulator
[    0.719558] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pd not found, using dummy regulator
[    0.729938] uart uart3: get regulator failed
[    0.734373] uart uart3: uart3 supply uart not found, using dummy regulator
[    0.742226] uart3: ttyS3 at MMIO 0x2500c00 (irq = 34, base_baud = 1500000) is a SUNXI
[    0.751512] misc dump reg init
[    0.757671] spi-nand spi0.0: Winbond SPI NAND was found.
[    0.763455] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[    0.773661] libphy: Fixed MDIO Bus: probed
[    0.777777] CAN device driver interface
[    0.783395] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pe not found, using dummy regulator

离线

楼主 #4 2022-04-22 21:10:30

Cadence
会员
注册时间: 2022-04-01
已发帖子: 71
积分: 85

Re: T113-s3 spi-nand 启动

U-Boot 2022.01-rc3-00096-gc0ffc12a70-dirty (Apr 22 2022 - 17:37:29 +0800) Allwinner Technology

CPU:   SUNXI Family
Model: sun20iw1p1
DRAM:  128 MiB
[00.023]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz  MBus=300Mhz
MMC:
Loading Environment from FAT... In:    serial
Out:   serial
Err:   serial
starting USB...
No working controllers found
Hit any key to stop autoboot:  0
Kernel image @ 0x40080000 [ 0x000000 - 0x3a6ce0 ]
## Flattened Device Tree blob at 42000000
   Booting using the fdt blob at 0x42000000
   Loading Device Tree to 43f5b000, end 43f6b363 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.4.61 (root@i9-10920) (arm-linux-gnueabihf-gcc (Linaro GCC 7.5-2019.12) 7.5.0, GNU ld (Linaro_Binutils-2019.12) 2.28.2.20170706) #15 SMP PREEMPT Fri Apr 22 21:08:34 CST 2022
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: sun8iw20
[    0.000000] printk: bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] cma: dma_contiguous_reserve(limit ffffffff)
[    0.000000] cma: dma_contiguous_reserve: reserving 8 MiB for global area
[    0.000000] cma: cma_declare_contiguous(size 0x00800000, base 0x00000000, limit 0xffffffff alignment 0x00000000)
[    0.000000] cma: Reserved 8 MiB at 0x47800000
[    0.000000] On node 0 totalpages: 32768
[    0.000000]   Normal zone: 256 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 32768 pages, LIFO batch:7
[    0.000000] percpu: Embedded 15 pages/cpu s30860 r8192 d22388 u61440
[    0.000000] pcpu-alloc: s30860 r8192 d22388 u61440 alloc=15*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,115200n8 earlyprintk=sunxi-uart,0x02500000 clk_ignore_unused loglevel=8 init=/init partitions=boot@mmcblk0p1:rootfs@mmcblk0p2 cma=8M ubi.mtd=5 rootfstype=ubifs root=ubi0:rootfs
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 112660K/131072K available (5120K kernel code, 385K rwdata, 1836K rodata, 1024K init, 148K bss, 10220K reserved, 8192K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000]  Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] random: get_random_bytes called from start_kernel+0x250/0x3d8 with crng_init=0
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000006] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.008018] Switching to timer-based delay loop, resolution 41ns
[    0.014198] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.023950] Console: colour dummy device 80x30
[    0.028422] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.038792] pid_max: default: 32768 minimum: 301
[    0.043537] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.050864] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.059226] CPU: Testing write buffer coherency: ok
[    0.064485] /cpus/cpu@0 missing clock-frequency property
[    0.069822] /cpus/cpu@1 missing clock-frequency property
[    0.075159] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.081401] Setting up static identity map for 0x40100000 - 0x40100060
[    0.088093] rcu: Hierarchical SRCU implementation.
[    0.093369] smp: Bringing up secondary CPUs ...
[    0.098488] smp: Brought up 1 node, 1 CPU
[    0.102497] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.108757] CPU: All CPU(s) started in SVC mode.
[    0.113802] devtmpfs: initialized
[    0.128441] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.136823] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.146961] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.154173] pinctrl core: initialized pinctrl subsystem
[    0.161521] NET: Registered protocol family 16
[    0.166193] cma: cma_alloc(cma (ptrval), count 64, align 6)
[    0.173644] cma: cma_alloc(): returned (ptrval)
[    0.178331] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.247195] rtc_ccu: sunxi ccu init OK
[    0.254130] ccu: sunxi ccu init OK
[    0.258684] r_ccu: sunxi ccu init OK
[    0.330401] iommu: Default domain type: Translated
[    0.335487] sunxi iommu: irq = 24
[    0.341900] SCSI subsystem initialized
[    0.346852] usbcore: registered new interface driver usbfs
[    0.353270] usbcore: registered new interface driver hub
[    0.358863] usbcore: registered new device driver usb
[    0.367122] pwm module init!
[    0.371957] input: sunxi-keyboard as /devices/virtual/input/input0
[    0.380557] clocksource: Switched to clocksource arch_sys_counter
[    0.396902] sun8iw20-pinctrl 2000000.pinctrl: initialized sunXi PIO driver
[    0.429359] thermal_sys: Registered thermal governor 'step_wise'
[    0.429366] thermal_sys: Registered thermal governor 'user_space'
[    0.436662] thermal_sys: Registered thermal governor 'power_allocator'
[    0.443974] NET: Registered protocol family 2
[    0.456090] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.464571] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.472317] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.479370] TCP: Hash tables configured (established 1024 bind 1024)
[    0.485928] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.492548] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.499691] NET: Registered protocol family 1
[    0.505001] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pc not found, using dummy regulator
[    0.515626] spi spi0: spi0 supply spi not found, using dummy regulator
[    0.522636] sunxi_spi_resource_get()2151 - [spi0] SPI MASTER MODE
[    0.528777] sunxi_spi_resource_get()2189 - Failed to get sample mode
[    0.535310] sunxi_spi_resource_get()2194 - Failed to get sample delay
[    0.541826] sunxi_spi_resource_get()2198 - sample_mode:-1431633921 sample_delay:-1431633921
[    0.550250] sunxi_spi_clk_init()2240 - [spi0] mclk 100000000
[    0.556774] sunxi_spi_probe()2653 - [spi0]: driver probe succeed, base c8821000, irq 40
[    0.567746] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    0.589606] ntfs: driver 2.1.32 [Flags: R/W].
[    0.594961] NET: Registered protocol family 38
[    0.599745] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.607837] io scheduler mq-deadline registered
[    0.612573] io scheduler kyber registered
[    0.618765] [DISP]disp_module_init
[    0.623577] disp 5000000.disp: Adding to iommu group 0
[    0.645852] display_fb_request,fb_id:0
[    0.654557] [DISP] Fb_copy_boot_fb,line:1443:
[    0.654562] no boot_fb0
[    0.662009] disp_al_manager_apply ouput_type:0
[    0.667397] [DISP]disp_module_init finish
[    0.671735] [DISP] lcd_clk_config,line:732:
[    0.671746] disp 0, clk: pll(364000000),clk(364000000),dclk(52000000) dsi_rate(364000000)
[    0.671746]      clk real:pll(360000000),clk(360000000),dclk(51428571) dsi_rate(0)
[    0.693982] sunxi_sid_init()551 - insmod ok
[    0.699130] pwm-regulator: supplied by regulator-dummy
[    0.706320] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pg not found, using dummy regulator
[    0.717268] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pd not found, using dummy regulator
[    0.727641] uart uart3: get regulator failed
[    0.732050] uart uart3: uart3 supply uart not found, using dummy regulator
[    0.739812] uart3: ttyS3 at MMIO 0x2500c00 (irq = 34, base_baud = 1500000) is a SUNXI
[    0.749141] misc dump reg init
[    0.755269] spi-nand spi0.0: Winbond SPI NAND was found.
[    0.761107] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[    0.771228] libphy: Fixed MDIO Bus: probed
[    0.775343] CAN device driver interface
[    0.779444] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.787087] sunxi-ehci: EHCI SUNXI driver
[    0.791839] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.798051] sunxi-ohci: OHCI SUNXI driver
[    0.803140] usbcore: registered new interface driver uas
[    0.808836] usbcore: registered new interface driver usb-storage
[    0.815108] usbcore: registered new interface driver ums-alauda
[    0.821390] usbcore: registered new interface driver ums-cypress
[    0.827620] usbcore: registered new interface driver ums-datafab
[    0.833806] usbcore: registered new interface driver ums_eneub6250
[    0.840230] usbcore: registered new interface driver ums-freecom
[    0.846479] usbcore: registered new interface driver ums-isd200
[    0.852739] usbcore: registered new interface driver ums-jumpshot
[    0.859052] usbcore: registered new interface driver ums-karma
[    0.865111] usbcore: registered new interface driver ums-onetouch
[    0.871508] usbcore: registered new interface driver ums-realtek
[    0.877746] usbcore: registered new interface driver ums-sddr09
[    0.883942] usbcore: registered new interface driver ums-sddr55
[    0.890112] usbcore: registered new interface driver ums-usbat
[    0.897410] input: sunxi-ts as /devices/platform/soc@3000000/2009c00.rtp/input/input1
[    0.906614] sunxi_gpadc_init,2137, success
[    0.913424] sunxi-rtc 7090000.rtc: registered as rtc0
[    0.918597] sunxi-rtc 7090000.rtc: setting system clock to 1970-01-01T00:14:52 UTC (892)
[    0.927244] sunxi-rtc 7090000.rtc: sunxi rtc probed
[    0.932939] i2c /dev entries driver
[    0.936836] IR NEC protocol handler initialized
[    0.941577] IR RC5(x/sz) protocol handler initialized
[    0.947075] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pb not found, using dummy regulator
[    0.957167] [DISP] disp_device_attached_and_enable,line:233:
[    0.957172] attached ok, mgr0<-->dev0
[    0.966893] sunxi_ir_startup: get ir protocol failed
[    0.966912] (NULL device *): deviceless supply  not found, using dummy regulator
[    0.979452] Registered IR keymap rc_map_sunxi
[    0.983886] [DISP] disp_device_attached_and_enable,line:236:
[    0.983895] type:1,mode:0,fmt:rgb,bits:8bits,eotf:4,cs:0 dvi_hdmi:2, range:2 scan:0 ratio:8
[    0.998189] rc rc0: sunxi-ir as /devices/platform/soc@3000000/7040000.s_cir/rc/rc0
[    1.006202] input: sunxi-ir as /devices/platform/soc@3000000/7040000.s_cir/rc/rc0/s_cir_rx
[    1.015602] sunxi cedar version 1.1
[    1.019292] sunxi-cedar 1c0e000.ve: Adding to iommu group 0
[    1.025267] VE: sunxi_cedar_probe power-domain init!!!
[    1.030448] VE: install start!!!
[    1.030448]
[    1.035677] VE: cedar-ve the get irq is 41
[    1.035677]
[    1.041738] VE: ve_debug_proc_info:(ptrval), data:(ptrval), lock:(ptrval)
[    1.041738]
[    1.050050] VE: install end!!!
[    1.050050]
[    1.054712] VE: sunxi_cedar_probe
[    1.059706] sunxi-wdt 20500a0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.069833] usbcore: registered new interface driver usbhid
[    1.076010] usbhid: USB HID core driver
[    1.082683] NET: Registered protocol family 10
[    1.088926] Segment Routing with IPv6
[    1.093119] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    1.101366] NET: Registered protocol family 17
[    1.105842] NET: Registered protocol family 15
[    1.110280] can: controller area network core (rev 20170425 abi 9)
[    1.117141] NET: Registered protocol family 29
[    1.121665] can: raw protocol (rev 20170425)
[    1.125949] can: broadcast manager protocol (rev 20170425 t)
[    1.131712] can: netlink gateway (rev 20190810) max_hops=1
[    1.137655] Registering SWP/SWPB emulation handler
[    1.145542] HDMI 2.0 driver init start!
[    1.149436] boot_hdmi=false
[    1.152606] ERROR: can not get hdmi_cts_compatibility
[    1.157670] ERROR: pinctrl_get for HDMI2.0 DDC fail
[    1.164282] HDMI2.0 module init end
[    1.185545] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pe not found, using dummy regulator
[    1.195937] i2c i2c2: i2c2 supply twi not found, using dummy regulator
[    1.203843] i2c i2c2: probe success
[    1.251684] get ehci0-controller wakeup-source is fail.
[    1.257017] sunxi ehci0-controller don't init wakeup source
[    1.262968] [sunxi-ehci0]: probe, pdev->name: 4101000.ehci0-controller, sunxi_ehci: 0xc097d980, 0x:c887a000, irq_no:37
[    1.273758] [sunxi-ehci0]: Not init ehci0
[    1.278252] get ohci0-controller wakeup-source is fail.
[    1.283834] sunxi ohci0-controller don't init wakeup source
[    1.289422] [sunxi-ohci0]: probe, pdev->name: 4101400.ohci0-controller, sunxi_ohci: 0xc097dc10
[    1.298160] [sunxi-ohci0]: Not init ohci0
[    1.302695] get ehci1-controller wakeup-source is fail.
[    1.308030] sunxi ehci1-controller don't init wakeup source
[    1.313823] [sunxi-ehci1]: probe, pdev->name: 4200000.ehci1-controller, sunxi_ehci: 0xc097dea0, 0x:c92b5000, irq_no:39
[    1.324913] sunxi-ehci 4200000.ehci1-controller: 4200000.ehci1-controller supply hci not found, using dummy regulator
[    1.337329] sunxi-ehci 4200000.ehci1-controller: EHCI Host Controller
[    1.343902] sunxi-ehci 4200000.ehci1-controller: new USB bus registered, assigned bus number 1
[    1.352635] cma: cma_alloc(cma (ptrval), count 1, align 0)
[    1.358257] cma: cma_alloc(): returned (ptrval)
[    1.362901] cma: cma_alloc(cma (ptrval), count 1, align 0)
[    1.368411] cma: cma_alloc(): returned (ptrval)
[    1.373012] cma: cma_alloc(cma (ptrval), count 1, align 0)
[    1.378523] cma: cma_alloc(): returned (ptrval)
[    1.383193] sunxi-ehci 4200000.ehci1-controller: irq 57, io mem 0x04200000
[    1.410570] sunxi-ehci 4200000.ehci1-controller: USB 2.0 started, EHCI 1.00
[    1.418584] hub 1-0:1.0: USB hub found
[    1.422606] hub 1-0:1.0: 1 port detected
[    1.427585] get ohci1-controller wakeup-source is fail.
[    1.433308] sunxi ohci1-controller don't init wakeup source
[    1.438888] [sunxi-ohci1]: probe, pdev->name: 4200400.ohci1-controller, sunxi_ohci: 0xc097e130
[    1.447997] sunxi-ohci 4200400.ohci1-controller: 4200400.ohci1-controller supply hci not found, using dummy regulator
[    1.459281] sunxi-ohci 4200400.ohci1-controller: OHCI Host Controller
[    1.466035] sunxi-ohci 4200400.ohci1-controller: new USB bus registered, assigned bus number 2
[    1.474731] cma: cma_alloc(cma (ptrval), count 1, align 0)
[    1.480347] cma: cma_alloc(): returned (ptrval)
[    1.485057] sunxi-ohci 4200400.ohci1-controller: irq 58, io mem 0x04200400
[    1.565611] hub 2-0:1.0: USB hub found
[    1.569575] hub 2-0:1.0: 1 port detected
[    1.574804] UBI error: cannot open mtd 5, error -19
[    1.581840] clk: Not disabling unused clocks
[    1.586144] alloc_fd: slot 0 not NULL!
[    1.589927] Warning: unable to open an initial console.
[    1.595556] VFS: Cannot open root device "ubi0:rootfs" or unknown-block(0,0): error -19
[    1.603757] Please append a correct "root=" boot option; here are the available partitions:
[    1.612202] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    1.620476] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.4.61 #15
[    1.626471] Hardware name: Generic DT based system
[    1.631296] [<c010e310>] (unwind_backtrace) from [<c010a8bc>] (show_stack+0x10/0x14)
[    1.639042] [<c010a8bc>] (show_stack) from [<c05c9bc4>] (dump_stack+0x7c/0x98)
[    1.646268] [<c05c9bc4>] (dump_stack) from [<c01193dc>] (panic+0x100/0x3d0)
[    1.653242] [<c01193dc>] (panic) from [<c0801264>] (mount_block_root+0x248/0x344)
[    1.660718] [<c0801264>] (mount_block_root) from [<c0801464>] (prepare_namespace+0x84/0x178)
[    1.669164] [<c0801464>] (prepare_namespace) from [<c05dde20>] (kernel_init+0x8/0x10c)
[    1.677074] [<c05dde20>] (kernel_init) from [<c01010e8>] (ret_from_fork+0x14/0x2c)
[    1.684648] Exception stack(0xc7025fb0 to 0xc7025ff8)
[    1.689701] 5fa0:                                     00000000 00000000 00000000 00000000
[    1.697885] 5fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.706059] 5fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[    1.712674] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) ]---

离线

楼主 #5 2022-04-22 23:26:24

Cadence
会员
注册时间: 2022-04-01
已发帖子: 71
积分: 85

Re: T113-s3 spi-nand 启动

U-Boot 2022.01-rc3-00096-gc0ffc12a70-dirty (Apr 22 2022 - 22:42:46 +0800) Allwinner Technology

CPU:   SUNXI Family
Model: sun20iw1p1
DRAM:  128 MiB
[00.023]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz  MBus=300Mhz
MMC:
Loading Environment from FAT... In:    serial
Out:   serial
Err:   serial
starting USB...
No working controllers found
Hit any key to stop autoboot:  0
Kernel image @ 0x40080000 [ 0x000000 - 0x3e64c8 ]
## Flattened Device Tree blob at 40020000
   Booting using the fdt blob at 0x40020000
   Loading Device Tree to 43f5b000, end 43f6b51d ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.4.61 (root@i9-10920) (arm-linux-gnueabihf-gcc (Linaro GCC 7.5-2019.12) 7.5.0, GNU ld (Linaro_Binutils-2019.12) 2.28.2.20170706) #19 SMP PREEMPT Fri Apr 22 23:02:45 CST 2022
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: sun8iw20
[    0.000000] printk: bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] cma: dma_contiguous_reserve(limit ffffffff)
[    0.000000] cma: dma_contiguous_reserve: reserving 8 MiB for global area
[    0.000000] cma: cma_declare_contiguous(size 0x00800000, base 0x00000000, limit 0xffffffff alignment 0x00000000)
[    0.000000] cma: Reserved 8 MiB at 0x47800000
[    0.000000] On node 0 totalpages: 32768
[    0.000000]   Normal zone: 256 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 32768 pages, LIFO batch:7
[    0.000000] percpu: Embedded 15 pages/cpu s30860 r8192 d22388 u61440
[    0.000000] pcpu-alloc: s30860 r8192 d22388 u61440 alloc=15*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,115200n8 earlyprintk=sunxi-uart,0x02500000 clk_ignore_unused loglevel=8 init=/init rootfstype=ext4 partitions=boot@mmcblk0p1:rootfs@mmcblk0p2 cma=8M ubi.mtd=4 root=/dev/mmcblk0p2
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 110616K/131072K available (6144K kernel code, 378K rwdata, 1916K rodata, 1024K init, 148K bss, 12264K reserved, 8192K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000]  Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] random: get_random_bytes called from start_kernel+0x250/0x3d8 with crng_init=0
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000006] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.008009] Switching to timer-based delay loop, resolution 41ns
[    0.014188] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.023935] Console: colour dummy device 80x30
[    0.028425] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.038780] pid_max: default: 32768 minimum: 301
[    0.043533] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.050862] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.059216] CPU: Testing write buffer coherency: ok
[    0.064450] /cpus/cpu@0 missing clock-frequency property
[    0.069778] /cpus/cpu@1 missing clock-frequency property
[    0.075124] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.081384] Setting up static identity map for 0x40100000 - 0x40100060
[    0.088067] rcu: Hierarchical SRCU implementation.
[    0.093348] smp: Bringing up secondary CPUs ...
[    0.098456] smp: Brought up 1 node, 1 CPU
[    0.102482] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.108750] CPU: All CPU(s) started in SVC mode.
[    0.113786] devtmpfs: initialized
[    0.128674] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.137019] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.147159] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.154371] pinctrl core: initialized pinctrl subsystem
[    0.161704] NET: Registered protocol family 16
[    0.166382] cma: cma_alloc(cma (ptrval), count 64, align 6)
[    0.173840] cma: cma_alloc(): returned (ptrval)
[    0.178529] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.241603] rtc_ccu: sunxi ccu init OK
[    0.248623] ccu: sunxi ccu init OK
[    0.252571] r_ccu: sunxi ccu init OK
[    0.319382] iommu: Default domain type: Translated
[    0.324472] sunxi iommu: irq = 24
[    0.330970] SCSI subsystem initialized
[    0.335886] usbcore: registered new interface driver usbfs
[    0.342293] usbcore: registered new interface driver hub
[    0.347894] usbcore: registered new device driver usb
[    0.356669] pwm module init!
[    0.361452] input: sunxi-keyboard as /devices/virtual/input/input0
[    0.369947] clocksource: Switched to clocksource arch_sys_counter
[    0.386410] sun8iw20-pinctrl 2000000.pinctrl: initialized sunXi PIO driver
[    0.418851] thermal_sys: Registered thermal governor 'step_wise'
[    0.418857] thermal_sys: Registered thermal governor 'user_space'
[    0.425844] thermal_sys: Registered thermal governor 'power_allocator'
[    0.433138] NET: Registered protocol family 2
[    0.445237] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.453704] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.461440] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.468494] TCP: Hash tables configured (established 1024 bind 1024)
[    0.475060] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.481666] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.488823] NET: Registered protocol family 1
[    0.494121] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pc not found, using dummy regulator
[    0.504720] spi spi0: spi0 supply spi not found, using dummy regulator
[    0.511737] sunxi_spi_resource_get()2151 - [spi0] SPI MASTER MODE
[    0.517882] sunxi_spi_resource_get()2189 - Failed to get sample mode
[    0.524423] sunxi_spi_resource_get()2194 - Failed to get sample delay
[    0.530930] sunxi_spi_resource_get()2198 - sample_mode:-1431633921 sample_delay:-1431633921
[    0.539354] sunxi_spi_clk_init()2240 - [spi0] mclk 100000000
[    0.545860] sunxi_spi_probe()2653 - [spi0]: driver probe succeed, base c8821000, irq 40
[    0.556774] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    0.580537] ntfs: driver 2.1.32 [Flags: R/W].
[    0.586060] NET: Registered protocol family 38
[    0.591675] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.599075] io scheduler mq-deadline registered
[    0.604035] io scheduler kyber registered
[    0.610371] [DISP]disp_module_init
[    0.615108] disp 5000000.disp: Adding to iommu group 0
[    0.637628] display_fb_request,fb_id:0
[    0.646032] [DISP] Fb_copy_boot_fb,line:1443:
[    0.646037] no boot_fb0
[    0.653505] disp_al_manager_apply ouput_type:0
[    0.658876] [DISP]disp_module_init finish
[    0.663220] [DISP] lcd_clk_config,line:732:
[    0.663232] disp 0, clk: pll(364000000),clk(364000000),dclk(52000000) dsi_rate(364000000)
[    0.663232]      clk real:pll(360000000),clk(360000000),dclk(51428571) dsi_rate(0)
[    0.685321] sunxi_sid_init()551 - insmod ok
[    0.690542] pwm-regulator: supplied by regulator-dummy
[    0.697585] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pg not found, using dummy regulator
[    0.708563] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pd not found, using dummy regulator
[    0.718843] uart uart3: get regulator failed
[    0.723340] uart uart3: uart3 supply uart not found, using dummy regulator
[    0.730980] uart3: ttyS3 at MMIO 0x2500c00 (irq = 34, base_baud = 1500000) is a SUNXI
[    0.740395] misc dump reg init
[    0.746127] spi-nand spi0.0: Winbond SPI NAND was found.
[    0.752038] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[    0.760832] 5 fixed-partitions partitions found on MTD device spi0.0
[    0.767180] Creating 5 MTD partitions on "spi0.0":
[    0.772208] 0x000000000000-0x000000100000 : "boot0"
[    0.780451] 0x000000100000-0x000000200000 : "u-boot"
[    0.788783] 0x000000200000-0x000000220000 : "dtb"
[    0.794883] 0x000000220000-0x000000820000 : "kernel"
[    0.801634] random: fast init done
[    0.818649] 0x000000820000-0x000008000000 : "rootfs"
[    0.940142] [DISP] disp_device_attached_and_enable,line:233:
[    0.940148] attached ok, mgr0<-->dev0
[    0.949476] [DISP] disp_device_attached_and_enable,line:236:
[    0.949484] type:1,mode:0,fmt:rgb,bits:8bits,eotf:4,cs:0 dvi_hdmi:2, range:2 scan:0 ratio:8
[    1.133692] libphy: Fixed MDIO Bus: probed
[    1.137799] CAN device driver interface
[    1.142628] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.149201] sunxi-ehci: EHCI SUNXI driver
[    1.153817] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.160197] sunxi-ohci: OHCI SUNXI driver
[    1.164944] usbcore: registered new interface driver uas
[    1.170833] usbcore: registered new interface driver usb-storage
[    1.177082] usbcore: registered new interface driver ums-alauda
[    1.183302] usbcore: registered new interface driver ums-cypress
[    1.189553] usbcore: registered new interface driver ums-datafab
[    1.195760] usbcore: registered new interface driver ums_eneub6250
[    1.202319] usbcore: registered new interface driver ums-freecom
[    1.208559] usbcore: registered new interface driver ums-isd200
[    1.214686] usbcore: registered new interface driver ums-jumpshot
[    1.221045] usbcore: registered new interface driver ums-karma
[    1.227107] usbcore: registered new interface driver ums-onetouch
[    1.233488] usbcore: registered new interface driver ums-realtek
[    1.239738] usbcore: registered new interface driver ums-sddr09
[    1.245916] usbcore: registered new interface driver ums-sddr55
[    1.252110] usbcore: registered new interface driver ums-usbat
[    1.259315] input: sunxi-ts as /devices/platform/soc@3000000/2009c00.rtp/input/input1
[    1.268386] sunxi_gpadc_init,2137, success
[    1.273615] sunxi-rtc 7090000.rtc: errata__fix_alarm_day_reg_default_value(): ALARM0_DAY_REG=0, set it to 1
[    1.285183] sunxi-rtc 7090000.rtc: registered as rtc0
[    1.290884] sunxi-rtc 7090000.rtc: setting system clock to 1970-01-01T00:00:23 UTC (23)
[    1.298946] sunxi-rtc 7090000.rtc: sunxi rtc probed
[    1.304458] i2c /dev entries driver
[    1.308340] IR NEC protocol handler initialized
[    1.312969] IR RC5(x/sz) protocol handler initialized
[    1.318464] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pb not found, using dummy regulator
[    1.328766] sunxi_ir_startup: get ir protocol failed
[    1.328786] (NULL device *): deviceless supply  not found, using dummy regulator
[    1.341367] Registered IR keymap rc_map_sunxi
[    1.346003] rc rc0: sunxi-ir as /devices/platform/soc@3000000/7040000.s_cir/rc/rc0
[    1.354076] input: sunxi-ir as /devices/platform/soc@3000000/7040000.s_cir/rc/rc0/s_cir_rx
[    1.363363] sunxi cedar version 1.1
[    1.367105] sunxi-cedar 1c0e000.ve: Adding to iommu group 0
[    1.373062] VE: sunxi_cedar_probe power-domain init!!!
[    1.378201] VE: install start!!!
[    1.378201]
[    1.383480] VE: cedar-ve the get irq is 41
[    1.383480]
[    1.389270] VE: ve_debug_proc_info:(ptrval), data:(ptrval), lock:(ptrval)
[    1.389270]
[    1.397873] VE: install end!!!
[    1.397873]
[    1.402525] VE: sunxi_cedar_probe
[    1.407378] sunxi-wdt 20500a0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.419605] sunxi-mmc 4020000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.21 2021-05-24 16:10)
[    1.429096] sunxi-mmc 4020000.sdmmc: ***ctl-spec-caps*** 8
[    1.434802] sunxi-mmc 4020000.sdmmc: No vmmc regulator found
[    1.440713] sunxi-mmc 4020000.sdmmc: No vqmmc regulator found
[    1.446471] sunxi-mmc 4020000.sdmmc: No vdmmc regulator found
[    1.452294] sunxi-mmc 4020000.sdmmc: No vd33sw regulator found
[    1.458129] sunxi-mmc 4020000.sdmmc: No vd18sw regulator found
[    1.464053] sunxi-mmc 4020000.sdmmc: No vq33sw regulator found
[    1.469887] sunxi-mmc 4020000.sdmmc: No vq18sw regulator found
[    1.476271] sunxi-mmc 4020000.sdmmc: Got CD GPIO
[    1.481045] cma: cma_alloc(cma (ptrval), count 2, align 1)
[    1.486689] cma: cma_alloc(): returned (ptrval)
[    1.491259] sunxi-mmc 4020000.sdmmc: set cd-gpios as 24M fail
[    1.497329] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
[    1.507422] sunxi-mmc 4020000.sdmmc: no vqmmc,Check if there is regulator
[    1.526830] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    1.550132] sunxi-mmc 4020000.sdmmc: detmode:gpio irq
[    1.555212] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    1.566222] sunxi-mmc 4021000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.21 2021-05-24 16:10)
[    1.575296] sunxi-mmc 4021000.sdmmc: ***ctl-spec-caps*** 8
[    1.581069] sunxi-mmc 4021000.sdmmc: No vmmc regulator found
[    1.586771] sunxi-mmc 4021000.sdmmc: No vqmmc regulator found
[    1.592620] sunxi-mmc 4021000.sdmmc: No vdmmc regulator found
[    1.598395] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    1.608804] sunxi-mmc 4021000.sdmmc: No vd33sw regulator found
[    1.614700] sunxi-mmc 4021000.sdmmc: No vd18sw regulator found
[    1.620656] sunxi-mmc 4021000.sdmmc: No vq33sw regulator found
[    1.626517] sunxi-mmc 4021000.sdmmc: No vq18sw regulator found
[    1.632461] sunxi-mmc 4021000.sdmmc: Cann't get pin bias hs pinstate,check if needed
[    1.640561] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    1.651132] cma: cma_alloc(cma (ptrval), count 4, align 2)
[    1.656803] cma: cma_alloc(): returned (ptrval)
[    1.661715] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
[    1.671857] sunxi-mmc 4021000.sdmmc: no vqmmc,Check if there is regulator
[    1.678667] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    1.699991] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    1.722986] sunxi-mmc 4021000.sdmmc: detmode:manually by software
[    1.729820] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    1.740968] usbcore: registered new interface driver usbhid
[    1.746554] usbhid: USB HID core driver
[    1.753711] NET: Registered protocol family 10
[    1.758197] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    1.770558] Segment Routing with IPv6
[    1.774320] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    1.782374] sunxi-mmc 4021000.sdmmc: card claims to support voltages below defined range
[    1.791407] NET: Registered protocol family 17
[    1.796393] NET: Registered protocol family 15
[    1.801049] can: controller area network core (rev 20170425 abi 9)
[    1.807369] NET: Registered protocol family 29
[    1.812029] can: raw protocol (rev 20170425)
[    1.816354] can: broadcast manager protocol (rev 20170425 t)
[    1.822120] can: netlink gateway (rev 20190810) max_hops=1
[    1.828144] Registering SWP/SWPB emulation handler
[    1.840747] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
[    1.858573] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.870124] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
[    1.883549] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pe not found, using dummy regulator
[    1.893509] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
[    1.903883] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 4 timing SD-HS(SDR25) dt B
[    1.914460] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
[    1.925354] i2c i2c2: i2c2 supply twi not found, using dummy regulator
[    1.933419] i2c i2c2: probe success
[    1.938276] mmc1: new high speed SDIO card at address 0001
[    1.945732] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 4 timing SD-HS(SDR25) dt B
[    1.990264] mmc0: new high speed SDHC card at address 59b4
[    1.997053] get ehci0-controller wakeup-source is fail.
[    2.003592] mmcblk0: mmc0:59b4 SMI   7.52 GiB
[    2.008234] sunxi ehci0-controller don't init wakeup source
[    2.014011] [sunxi-ehci0]: probe, pdev->name: 4101000.ehci0-controller, sunxi_ehci: 0xc0b7bb18, 0x:c92b1000, irq_no:37
[    2.024806] [sunxi-ehci0]: Not init ehci0
[    2.029378] get ohci0-controller wakeup-source is fail.
[    2.034965] sunxi ohci0-controller don't init wakeup source
[    2.040620] [sunxi-ohci0]: probe, pdev->name: 4101400.ohci0-controller, sunxi_ohci: 0xc0b7bda8
[    2.049250] [sunxi-ohci0]: Not init ohci0
[    2.053783] get ehci1-controller wakeup-source is fail.
[    2.059117] sunxi ehci1-controller don't init wakeup source
[    2.064957] [sunxi-ehci1]: probe, pdev->name: 4200000.ehci1-controller, sunxi_ehci: 0xc0b7c038, 0x:c92bb000, irq_no:39
[    2.076061] sunxi-ehci 4200000.ehci1-controller: 4200000.ehci1-controller supply hci not found, using dummy regulator
[    2.089152] sunxi-ehci 4200000.ehci1-controller: EHCI Host Controller
[    2.096042] sunxi-ehci 4200000.ehci1-controller: new USB bus registered, assigned bus number 1
[    2.105026] cma: cma_alloc(cma (ptrval), count 1, align 0)
[    2.110720]  mmcblk0: p1 p2
[    2.115238] cma: cma_alloc(): returned (ptrval)
[    2.119806] cma: cma_alloc(cma (ptrval), count 1, align 0)
[    2.125705] cma: cma_alloc(): returned (ptrval)
[    2.130333] cma: cma_alloc(cma (ptrval), count 1, align 0)
[    2.135870] cma: cma_alloc(): returned (ptrval)
[    2.140549] sunxi-ehci 4200000.ehci1-controller: irq 57, io mem 0x04200000
[    2.169972] sunxi-ehci 4200000.ehci1-controller: USB 2.0 started, EHCI 1.00
[    2.178007] hub 1-0:1.0: USB hub found
[    2.182068] hub 1-0:1.0: 1 port detected
[    2.187077] get ohci1-controller wakeup-source is fail.
[    2.192765] sunxi ohci1-controller don't init wakeup source
[    2.198372] [sunxi-ohci1]: probe, pdev->name: 4200400.ohci1-controller, sunxi_ohci: 0xc0b7c2c8
[    2.207384] sunxi-ohci 4200400.ohci1-controller: 4200400.ohci1-controller supply hci not found, using dummy regulator
[    2.218714] sunxi-ohci 4200400.ohci1-controller: OHCI Host Controller
[    2.225435] sunxi-ohci 4200400.ohci1-controller: new USB bus registered, assigned bus number 2
[    2.234168] cma: cma_alloc(cma (ptrval), count 1, align 0)
[    2.239766] cma: cma_alloc(): returned (ptrval)
[    2.244465] sunxi-ohci 4200400.ohci1-controller: irq 58, io mem 0x04200400
[    2.325014] hub 2-0:1.0: USB hub found
[    2.329003] hub 2-0:1.0: 1 port detected
[    2.334271] ubi0: attaching mtd4
[    2.378101] random: crng init done
[    3.090204] ubi0: scanning is finished
[    3.104806] ubi0: attached mtd4 (name "rootfs", size 119 MiB)
[    3.110730] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    3.117620] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    3.124455] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    3.131519] ubi0: good PEBs: 959, bad PEBs: 0, corrupted PEBs: 0
[    3.137517] ubi0: user volume: 0, internal volumes: 1, max. volumes count: 128
[    3.144807] ubi0: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 1343052751
[    3.153997] ubi0: available PEBs: 915, total reserved PEBs: 44, PEBs reserved for bad PEB handling: 40
[    3.163349] ubi0: background thread "ubi_bgt0d" started, PID 905
[    3.171070] clk: Not disabling unused clocks
[    3.175366] alloc_fd: slot 0 not NULL!
[    3.179167] Warning: unable to open an initial console.
[    3.187028] EXT4-fs (mmcblk0p2): INFO: recovery required on readonly filesystem
[    3.194448] EXT4-fs (mmcblk0p2): write access will be enabled during recovery
[    3.700451] EXT4-fs (mmcblk0p2): recovery complete
[    3.712192] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    3.720454] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    3.729045] Freeing unused kernel memory: 1024K
[    3.740110] Run /init as init process
[    4.833516] udevd[948]: starting version 3.2
[    4.874240] udevd[949]: starting eudev-3.2
[    5.002459] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)

离线

楼主 #6 2022-04-23 10:49:10

Cadence
会员
注册时间: 2022-04-01
已发帖子: 71
积分: 85

Re: T113-s3 spi-nand 启动

[    5.531496] clk: Not disabling unused clocks
[    5.539682] cfg80211: failed to load regulatory.db
[    5.544445] ALSA device list:
[    5.553120]   #0: audiocodec
[    5.556361] alloc_fd: slot 0 not NULL!
[    5.591259] EXT4-fs (mmcblk0p5): mounted filesystem with ordered data mode. Opts: (null)
[    5.601546] VFS: Mounted root (ext4 filesystem) readonly on device 179:5.
[    5.611037] Freeing unused kernel memory: 1024K
[    5.621591] Kernel init done
[    5.624821] Run /init as init process
login[971]: root login on 'console'
-bash: cannot set terminal process group (-1): Inappropriate ioctl for device
-bash: no job control in this shell
[root@T113-s3 /root]# 

离线

楼主 #7 2022-04-23 16:49:15

Cadence
会员
注册时间: 2022-04-01
已发帖子: 71
积分: 85

Re: T113-s3 spi-nand 启动

U-Boot 2022.01-rc3-00096-gc0ffc12a70-dirty (Apr 23 2022 - 16:39:41 +0800) Allwinner Technology

CPU:   SUNXI Family
Model: sun20iw1p1
DRAM:  128 MiB
[00.023]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz  MBus=300Mhz
MMC:   
Loading Environment from FAT... In:    serial
Out:   serial
Err:   serial
starting USB...
No working controllers found
Hit any key to stop autoboot:  0 
Kernel image @ 0x40080000 [ 0x000000 - 0x3e6488 ]
## Flattened Device Tree blob at 40020000
   Booting using the fdt blob at 0x40020000
   Loading Device Tree to 43f5b000, end 43f6b4c9 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.4.61 (root@i9-10920) (arm-linux-gnueabihf-gcc (Linaro GCC 7.5-2019.12) 7.5.0, GNU ld (Linaro_Binutils-2019.12) 2.28.2.20170706) #28 SMP PREEMPT Sat Apr 23 16:07:35 CST 2022
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: sun8iw20
[    0.000000] printk: bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] cma: dma_contiguous_reserve(limit ffffffff)
[    0.000000] cma: dma_contiguous_reserve: reserving 8 MiB for global area
[    0.000000] cma: cma_declare_contiguous(size 0x00800000, base 0x00000000, limit 0xffffffff alignment 0x00000000)
[    0.000000] cma: Reserved 8 MiB at 0x47800000
[    0.000000] On node 0 totalpages: 32768
[    0.000000]   Normal zone: 256 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 32768 pages, LIFO batch:7
[    0.000000] percpu: Embedded 15 pages/cpu s30860 r8192 d22388 u61440
[    0.000000] pcpu-alloc: s30860 r8192 d22388 u61440 alloc=15*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,115200n8 earlyprintk=sunxi-uart,0x02500000 clk_ignore_unused loglevel=8 init=/init partitions=rootfs@mmcblk0p5 cma=8M ubi.mtd=4 rootfstype=ubifs root=ubi0:rootfs ro rootwait
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 110616K/131072K available (6144K kernel code, 378K rwdata, 1916K rodata, 1024K init, 148K bss, 12264K reserved, 8192K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:   RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000]  Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] random: get_random_bytes called from start_kernel+0x250/0x3d8 with crng_init=0
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000006] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.008000] Switching to timer-based delay loop, resolution 41ns
[    0.014183] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.023933] Console: colour dummy device 80x30
[    0.028415] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.038777] pid_max: default: 32768 minimum: 301
[    0.043537] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.050865] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.059223] CPU: Testing write buffer coherency: ok
[    0.064479] /cpus/cpu@0 missing clock-frequency property
[    0.069815] /cpus/cpu@1 missing clock-frequency property
[    0.075168] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.081424] Setting up static identity map for 0x40100000 - 0x40100060
[    0.088119] rcu: Hierarchical SRCU implementation.
[    0.093388] smp: Bringing up secondary CPUs ...
[    0.098503] smp: Brought up 1 node, 1 CPU
[    0.102521] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.108784] CPU: All CPU(s) started in SVC mode.
[    0.113817] devtmpfs: initialized
[    0.128766] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.137126] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.147270] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.154498] pinctrl core: initialized pinctrl subsystem
[    0.161804] NET: Registered protocol family 16
[    0.166521] cma: cma_alloc(cma (ptrval), count 64, align 6)
[    0.173994] cma: cma_alloc(): returned (ptrval)
[    0.178690] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.242627] rtc_ccu: sunxi ccu init OK
[    0.249844] ccu: sunxi ccu init OK
[    0.253935] r_ccu: sunxi ccu init OK
[    0.320698] iommu: Default domain type: Translated 
[    0.325785] sunxi iommu: irq = 24
[    0.332367] SCSI subsystem initialized
[    0.337300] usbcore: registered new interface driver usbfs
[    0.343576] usbcore: registered new interface driver hub
[    0.349163] usbcore: registered new device driver usb
[    0.357941] pwm module init!
[    0.362733] input: sunxi-keyboard as /devices/virtual/input/input0
[    0.371253] clocksource: Switched to clocksource arch_sys_counter
[    0.387697] sun8iw20-pinctrl 2000000.pinctrl: initialized sunXi PIO driver
[    0.420092] thermal_sys: Registered thermal governor 'step_wise'
[    0.420098] thermal_sys: Registered thermal governor 'user_space'
[    0.427095] thermal_sys: Registered thermal governor 'power_allocator'
[    0.434368] NET: Registered protocol family 2
[    0.446465] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.454937] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.462667] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.469720] TCP: Hash tables configured (established 1024 bind 1024)
[    0.476281] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.482885] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.490042] NET: Registered protocol family 1
[    0.495323] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pc not found, using dummy regulator
[    0.505938] spi spi0: spi0 supply spi not found, using dummy regulator
[    0.512947] sunxi_spi_resource_get()2151 - [spi0] SPI MASTER MODE
[    0.519090] sunxi_spi_resource_get()2189 - Failed to get sample mode
[    0.525625] sunxi_spi_resource_get()2194 - Failed to get sample delay
[    0.532141] sunxi_spi_resource_get()2198 - sample_mode:-1431633921 sample_delay:-1431633921
[    0.540564] sunxi_spi_clk_init()2240 - [spi0] mclk 100000000
[    0.547073] sunxi_spi_probe()2653 - [spi0]: driver probe succeed, base c8821000, irq 41
[    0.558009] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    0.582064] ntfs: driver 2.1.32 [Flags: R/W].
[    0.587639] NET: Registered protocol family 38
[    0.593022] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.600414] io scheduler mq-deadline registered
[    0.605332] io scheduler kyber registered
[    0.611637] [DISP]disp_module_init
[    0.616391] disp 5000000.disp: Adding to iommu group 0
[    0.638903] display_fb_request,fb_id:0
[    0.647335] [DISP] Fb_copy_boot_fb,line:1443:
[    0.647340] no boot_fb0
[    0.654787] disp_al_manager_apply ouput_type:0
[    0.660108] [DISP]disp_module_init finish
[    0.664441] [DISP] lcd_clk_config,line:732:
[    0.664452] disp 0, clk: pll(364000000),clk(364000000),dclk(52000000) dsi_rate(364000000)
[    0.664452]      clk real:pll(360000000),clk(360000000),dclk(51428571) dsi_rate(0)
[    0.686571] sunxi_sid_init()551 - insmod ok
[    0.691831] pwm-regulator: supplied by regulator-dummy
[    0.698814] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pe not found, using dummy regulator
[    0.709783] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pd not found, using dummy regulator
[    0.720050] uart uart0: get regulator failed
[    0.724542] uart uart0: uart0 supply uart not found, using dummy regulator
[    0.732190] uart0: ttyS0 at MMIO 0x2500000 (irq = 34, base_baud = 1500000) is a SUNXI
[    0.740028] sw_console_setup()1784 - console setup baud 115200 parity n bits 8, flow n
[    0.748197] printk: console [ttyS0] enabled
[    0.748197] printk: console [ttyS0] enabled
[    0.757133] printk: bootconsole [earlycon0] disabled
[    0.757133] printk: bootconsole [earlycon0] disabled
[    0.768610] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pg not found, using dummy regulator
[    0.780307] uart uart3: get regulator failed
[    0.785198] uart uart3: uart3 supply uart not found, using dummy regulator
[    0.793389] uart3: ttyS3 at MMIO 0x2500c00 (irq = 35, base_baud = 1500000) is a SUNXI
[    0.803733] misc dump reg init
[    0.809823] spi-nand spi0.0: Winbond SPI NAND was found.
[    0.816377] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[    0.826029] 5 fixed-partitions partitions found on MTD device spi0.0
[    0.833458] Creating 5 MTD partitions on "spi0.0":
[    0.838841] 0x000000000000-0x000000100000 : "boot0"
[    0.847555] 0x000000100000-0x000000200000 : "u-boot"
[    0.856622] 0x000000200000-0x000000220000 : "dtb"
[    0.863254] 0x000000220000-0x000000820000 : "kernel"
[    0.870445] random: fast init done
[    0.888314] 0x000000820000-0x000008000000 : "rootfs"
[    0.941466] [DISP] disp_device_attached_and_enable,line:233:
[    0.941473] attached ok, mgr0<-->dev0
[    0.960661] [DISP] disp_device_attached_and_enable,line:236:
[    0.960670] type:1,mode:0,fmt:rgb,bits:8bits,eotf:4,cs:0 dvi_hdmi:2, range:2 scan:0 ratio:8
[    1.208132] libphy: Fixed MDIO Bus: probed
[    1.213343] CAN device driver interface
[    1.218049] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.225549] sunxi-ehci: EHCI SUNXI driver
[    1.230471] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.237653] sunxi-ohci: OHCI SUNXI driver
[    1.243051] usbcore: registered new interface driver uas
[    1.249382] usbcore: registered new interface driver usb-storage
[    1.256416] usbcore: registered new interface driver ums-alauda
[    1.263332] usbcore: registered new interface driver ums-cypress
[    1.270337] usbcore: registered new interface driver ums-datafab
[    1.277325] usbcore: registered new interface driver ums_eneub6250
[    1.284606] usbcore: registered new interface driver ums-freecom
[    1.291584] usbcore: registered new interface driver ums-isd200
[    1.298446] usbcore: registered new interface driver ums-jumpshot
[    1.305499] usbcore: registered new interface driver ums-karma
[    1.312300] usbcore: registered new interface driver ums-onetouch
[    1.319400] usbcore: registered new interface driver ums-realtek
[    1.326375] usbcore: registered new interface driver ums-sddr09
[    1.333321] usbcore: registered new interface driver ums-sddr55
[    1.340209] usbcore: registered new interface driver ums-usbat
[    1.348101] input: sunxi-ts as /devices/platform/soc@3000000/2009c00.rtp/input/input1
[    1.358216] sunxi_gpadc_init,2137, success
[    1.363998] sunxi-rtc 7090000.rtc: errata__fix_alarm_day_reg_default_value(): ALARM0_DAY_REG=0, set it to 1
[    1.376776] sunxi-rtc 7090000.rtc: registered as rtc0
[    1.383066] sunxi-rtc 7090000.rtc: setting system clock to 1970-01-01T00:00:13 UTC (13)
[    1.392206] sunxi-rtc 7090000.rtc: sunxi rtc probed
[    1.398227] i2c /dev entries driver
[    1.402612] IR NEC protocol handler initialized
[    1.407696] IR RC5(x/sz) protocol handler initialized
[    1.414002] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pb not found, using dummy regulator
[    1.425517] sunxi_ir_startup: get ir protocol failed
[    1.425537] (NULL device *): deviceless supply  not found, using dummy regulator
[    1.439619] Registered IR keymap rc_map_sunxi
[    1.444852] rc rc0: sunxi-ir as /devices/platform/soc@3000000/7040000.s_cir/rc/rc0
[    1.453843] input: sunxi-ir as /devices/platform/soc@3000000/7040000.s_cir/rc/rc0/s_cir_rx
[    1.464159] sunxi cedar version 1.1
[    1.468315] sunxi-cedar 1c0e000.ve: Adding to iommu group 0
[    1.474960] VE: sunxi_cedar_probe power-domain init!!!
[    1.480732] VE: install start!!!
[    1.480732] 
[    1.486556] VE: cedar-ve the get irq is 42
[    1.486556] 
[    1.493280] VE: ve_debug_proc_info:(ptrval), data:(ptrval), lock:(ptrval)
[    1.493280] 
[    1.502719] VE: install end!!!
[    1.502719] 
[    1.507802] VE: sunxi_cedar_probe
[    1.513138] sunxi-wdt 20500a0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.526295] sunxi-mmc 4020000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.21 2021-05-24 16:10)
[    1.536904] sunxi-mmc 4020000.sdmmc: ***ctl-spec-caps*** 8
[    1.543241] sunxi-mmc 4020000.sdmmc: No vmmc regulator found
[    1.549591] sunxi-mmc 4020000.sdmmc: No vqmmc regulator found
[    1.556306] sunxi-mmc 4020000.sdmmc: No vdmmc regulator found
[    1.562799] sunxi-mmc 4020000.sdmmc: No vd33sw regulator found
[    1.569355] sunxi-mmc 4020000.sdmmc: No vd18sw regulator found
[    1.575957] sunxi-mmc 4020000.sdmmc: No vq33sw regulator found
[    1.582515] sunxi-mmc 4020000.sdmmc: No vq18sw regulator found
[    1.589576] sunxi-mmc 4020000.sdmmc: Got CD GPIO
[    1.594880] cma: cma_alloc(cma (ptrval), count 2, align 1)
[    1.601196] cma: cma_alloc(): returned (ptrval)
[    1.606326] sunxi-mmc 4020000.sdmmc: set cd-gpios as 24M fail
[    1.613132] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
[    1.624481] sunxi-mmc 4020000.sdmmc: no vqmmc,Check if there is regulator
[    1.644678] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    1.669209] sunxi-mmc 4020000.sdmmc: detmode:gpio irq
[    1.669267] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 0Hz bm PP pm OFF vdd 0 width 1 timing LEGACY(SDR12) dt B
[    1.686769] sunxi-mmc 4021000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.21 2021-05-24 16:10)
[    1.696939] sunxi-mmc 4021000.sdmmc: ***ctl-spec-caps*** 8
[    1.703335] sunxi-mmc 4021000.sdmmc: No vmmc regulator found
[    1.709721] sunxi-mmc 4021000.sdmmc: No vqmmc regulator found
[    1.716233] sunxi-mmc 4021000.sdmmc: No vdmmc regulator found
[    1.722761] sunxi-mmc 4021000.sdmmc: No vd33sw regulator found
[    1.729308] sunxi-mmc 4021000.sdmmc: No vd18sw regulator found
[    1.735908] sunxi-mmc 4021000.sdmmc: No vq33sw regulator found
[    1.742488] sunxi-mmc 4021000.sdmmc: No vq18sw regulator found
[    1.749056] sunxi-mmc 4021000.sdmmc: Cann't get pin bias hs pinstate,check if needed
[    1.758256] cma: cma_alloc(cma (ptrval), count 4, align 2)
[    1.764526] cma: cma_alloc(): returned (ptrval)
[    1.769934] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
[    1.781295] sunxi-mmc 4021000.sdmmc: no vqmmc,Check if there is regulator
[    1.801305] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    1.825580] sunxi-mmc 4021000.sdmmc: detmode:manually by software
[    1.833182] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    1.845473] usbcore: registered new interface driver usbhid
[    1.852146] usbhid: USB HID core driver
[    1.859412] NET: Registered protocol family 10
[    1.864490] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    1.877862] Segment Routing with IPv6
[    1.882448] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    1.889517] sunxi-mmc 4021000.sdmmc: card claims to support voltages below defined range
[    1.900602] NET: Registered protocol family 17
[    1.906222] NET: Registered protocol family 15
[    1.911320] can: controller area network core (rev 20170425 abi 9)
[    1.918391] NET: Registered protocol family 29
[    1.923497] can: raw protocol (rev 20170425)
[    1.928317] can: broadcast manager protocol (rev 20170425 t)
[    1.934835] can: netlink gateway (rev 20190810) max_hops=1
[    1.941584] Registering SWP/SWPB emulation handler
[    1.954348] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
[    1.978556] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
[    1.991405] i2c i2c2: i2c2 supply twi not found, using dummy regulator
[    1.999131] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 4 timing SD-HS(SDR25) dt B
[    2.012086] i2c i2c2: probe success
[    2.021627] mmc1: new high speed SDIO card at address 0001
[    2.062378] get ehci0-controller wakeup-source is fail.
[    2.068385] sunxi ehci0-controller don't init wakeup source
[    2.075002] [sunxi-ehci0]: probe, pdev->name: 4101000.ehci0-controller, sunxi_ehci: 0xc0b7bb18, 0x:c92b1000, irq_no:38
[    2.087096] [sunxi-ehci0]: Not init ehci0
[    2.092131] get ohci0-controller wakeup-source is fail.
[    2.098105] sunxi ohci0-controller don't init wakeup source
[    2.104632] [sunxi-ohci0]: probe, pdev->name: 4101400.ohci0-controller, sunxi_ohci: 0xc0b7bda8
[    2.114343] [sunxi-ohci0]: Not init ohci0
[    2.119318] get ehci1-controller wakeup-source is fail.
[    2.125476] sunxi ehci1-controller don't init wakeup source
[    2.131807] [sunxi-ehci1]: probe, pdev->name: 4200000.ehci1-controller, sunxi_ehci: 0xc0b7c038, 0x:c92bb000, irq_no:3a
[    2.144212] sunxi-ehci 4200000.ehci1-controller: 4200000.ehci1-controller supply hci not found, using dummy regulator
[    2.157912] sunxi-ehci 4200000.ehci1-controller: EHCI Host Controller
[    2.165226] sunxi-ehci 4200000.ehci1-controller: new USB bus registered, assigned bus number 1
[    2.174987] cma: cma_alloc(cma (ptrval), count 1, align 0)
[    2.181227] cma: cma_alloc(): returned (ptrval)
[    2.186437] cma: cma_alloc(cma (ptrval), count 1, align 0)
[    2.192646] cma: cma_alloc(): returned (ptrval)
[    2.197738] cma: cma_alloc(cma (ptrval), count 1, align 0)
[    2.203964] cma: cma_alloc(): returned (ptrval)
[    2.209125] sunxi-ehci 4200000.ehci1-controller: irq 58, io mem 0x04200000
[    2.241263] sunxi-ehci 4200000.ehci1-controller: USB 2.0 started, EHCI 1.00
[    2.250145] hub 1-0:1.0: USB hub found
[    2.254653] hub 1-0:1.0: 1 port detected
[    2.260133] get ohci1-controller wakeup-source is fail.
[    2.266457] sunxi ohci1-controller don't init wakeup source
[    2.272816] [sunxi-ohci1]: probe, pdev->name: 4200400.ohci1-controller, sunxi_ohci: 0xc0b7c2c8
[    2.282886] sunxi-ohci 4200400.ohci1-controller: 4200400.ohci1-controller supply hci not found, using dummy regulator
[    2.295522] sunxi-ohci 4200400.ohci1-controller: OHCI Host Controller
[    2.302981] sunxi-ohci 4200400.ohci1-controller: new USB bus registered, assigned bus number 2
[    2.312721] cma: cma_alloc(cma (ptrval), count 1, align 0)
[    2.318997] cma: cma_alloc(): returned (ptrval)
[    2.324286] sunxi-ohci 4200400.ohci1-controller: irq 59, io mem 0x04200400
[    2.406291] hub 2-0:1.0: USB hub found
[    2.410698] hub 2-0:1.0: 1 port detected
[    2.416373] ubi0: attaching mtd4
[    2.458590] random: crng init done
[    3.177011] ubi0: scanning is finished
[    3.192299] ubi0: attached mtd4 (name "rootfs", size 119 MiB)
[    3.198749] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    3.206725] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    3.214396] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    3.222287] ubi0: good PEBs: 959, bad PEBs: 0, corrupted PEBs: 0
[    3.229023] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
[    3.237206] ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 267458052
[    3.247394] ubi0: available PEBs: 0, total reserved PEBs: 959, PEBs reserved for bad PEB handling: 40
[    3.257791] ubi0: background thread "ubi_bgt0d" started, PID 903
[    3.266181] clk: Not disabling unused clocks
[    3.271024] alloc_fd: slot 0 not NULL!
[    3.277186] UBIFS (ubi0:0): Mounting in unauthenticated mode
[    3.333369] UBIFS (ubi0:0): recovery needed
[    3.393952] UBIFS (ubi0:0): recovery deferred
[    3.398972] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs", R/O mode
[    3.408282] UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[    3.419428] UBIFS (ubi0:0): FS size: 114786304 bytes (109 MiB, 904 LEBs), journal size 5713920 bytes (5 MiB, 45 LEBs)
[    3.431340] UBIFS (ubi0:0): reserved for root: 4952683 bytes (4836 KiB)
[    3.438768] UBIFS (ubi0:0): media format: w5/r0 (latest is w5/r0), UUID 4A5D7D8F-3C66-4BB0-8C4C-E59EDCC1D11C, small LPT model
[    3.454481] VFS: Mounted root (ubifs filesystem) readonly on device 0:14.
[    3.463945] Freeing unused kernel memory: 1024K
[    3.469184] Run /init as init process
login[917]: root login on 'ttyS0'
[root@T113-s3 /root]# 

启动成功 !...

离线

楼主 #8 2022-04-23 16:52:41

Cadence
会员
注册时间: 2022-04-01
已发帖子: 71
积分: 85

Re: T113-s3 spi-nand 启动

[root@T113-s3 /root]# du -hd1 /
1.5M    /bin
0 /dev
152.0K  /etc
9.7M    /lib
0 /mnt
0 /run
0 /sys
0 /var
29.9M   /usr
0 /proc
0 /sbin
2.6M    /root
4.0K    /parameters
43.8M   /
[root@T113-s3 /root]#

Mem: 29888K used, 89944K free, 0K shrd, 0K buff, 1740K cached
CPU:  0.0% usr  0.0% sys  0.0% nic  100% idle  0.0% io  0.0% irq  0.0% sirq
Load average: 1.00 0.83 0.44 1/40 926
  PID  PPID USER     STAT   VSZ %VSZ CPU %CPU COMMAND
  926   917 root     R     2672  2.2   0  0.0 top
  917     1 root     S     2764  2.3   0  0.0 -bash
    1     0 root     S     2672  2.2   0  0.0 init
  735     2 root     IW       0  0.0   0  0.0 [kworker/0:2-eve]
  614     2 root     SW       0  0.0   0  0.0 [spi0]
    9     2 root     SW       0  0.0   0  0.0 [ksoftirqd/0]
   19     2 root     IW       0  0.0   0  0.0 [kworker/u4:1-ev]
  905     2 root     DW       0  0.0   0  0.0 [usb-hardware-sc]
   10     2 root     IW       0  0.0   0  0.0 [rcu_preempt]
    2     0 root     SW       0  0.0   0  0.0 [kthreadd]
    3     2 root     IW<      0  0.0   0  0.0 [rcu_gp]
    4     2 root     IW<      0  0.0   0  0.0 [rcu_par_gp]
    6     2 root     IW<      0  0.0   0  0.0 [kworker/0:0H]
    7     2 root     IW       0  0.0   0  0.0 [kworker/u4:0-ev]
    8     2 root     IW<      0  0.0   0  0.0 [mm_percpu_wq]
   11     2 root     SW       0  0.0   0  0.0 [migration/0]
   12     2 root     SW       0  0.0   0  0.0 [cpuhp/0]
   13     2 root     PW       0  0.0   0  0.0 [cpuhp/1]
   14     2 root     PW       0  0.0   0  0.0 [migration/1]
   15     2 root     PW       0  0.0   0  0.0 [ksoftirqd/1]
   16     2 root     IW       0  0.0   0  0.0 [kworker/1:0]
   17     2 root     IW<      0  0.0   0  0.0 [kworker/1:0H]
   18     2 root     SW       0  0.0   0  0.0 [kdevtmpfs]
   20     2 root     SW       0  0.0   0  0.0 [rcu_tasks_kthre]
  351     2 root     SW       0  0.0   0  0.0 [oom_reaper]
  352     2 root     IW<      0  0.0   0  0.0 [writeback]
  369     2 root     IW<      0  0.0   0  0.0 [kblockd]
  504     2 root     SW       0  0.0   0  0.0 [ion_system_heap]
  518     2 root     SW       0  0.0   0  0.0 [watchdogd]
  625     2 root     SW       0  0.0   0  0.0 [kswapd0]
  718     2 root     SW       0  0.0   0  0.0 [vsync proc 0]
  719     2 root     SW       0  0.0   0  0.0 [vsync proc 1]
  778     2 root     IW<      0  0.0   0  0.0 [uas]
  814     2 root     SW       0  0.0   0  0.0 [rc0]
  835     2 root     SW       0  0.0   0  0.0 [irq/38-mmc0]
  837     2 root     SW       0  0.0   0  0.0 [irq/196-4020000]
  839     2 root     SW       0  0.0   0  0.0 [irq/39-mmc1]
  854     2 root     IW<      0  0.0   0  0.0 [ipv6_addrconf]
  879     2 root     IW       0  0.0   0  0.0 [kworker/0:3-pm]
  903     2 root     SW       0  0.0   0  0.0 [ubi_bgt0d]

[root@T113-s3 /root]# 

最近编辑记录 Cadence (2022-04-23 16:58:00)

离线

楼主 #9 2022-04-23 17:06:07

Cadence
会员
注册时间: 2022-04-01
已发帖子: 71
积分: 85

Re: T113-s3 spi-nand 启动

[root@T113-s3 /root]# busybox 
BusyBox v1.35.0 (2022-04-23 02:16:35 UTC) multi-call binary.
BusyBox is copyrighted by many authors between 1998-2015.
Licensed under GPLv2. See source distribution for detailed
copyright notices.

Usage: busybox [function [arguments]...]
   or: busybox --list[-full]
   or: busybox --install [-s] [DIR]
   or: function [arguments]...

  BusyBox is a multi-call binary that combines many common Unix
  utilities into a single executable.  Most people will create a
  link to busybox for each function they wish to use and BusyBox
  will act like whatever it was invoked as.

Currently defined functions:
  [, [[, acpid, add-shell, addgroup, adduser, adjtimex, arch, arp, arping, ascii, awk, base32, base64, basename, bc, beep, blkdiscard, blkid, blockdev, bootchartd, brctl, bunzip2, bzcat, bzip2, cal, cat,
  chat, chattr, chgrp, chmod, chown, chpasswd, chpst, chroot, chrt, chvt, cksum, clear, cmp, comm, conspy, cp, cpio, crc32, crond, crontab, cryptpw, cttyhack, cut, date, dc, dd, deallocvt, delgroup,
  deluser, depmod, devmem, df, dhcprelay, diff, dirname, dmesg, dnsd, dnsdomainname, dos2unix, dpkg, dpkg-deb, du, dumpkmap, dumpleases, echo, ed, egrep, eject, env, envdir, envuidgid, ether-wake, expand,
  expr, factor, fakeidentd, fallocate, false, fatattr, fbset, fbsplash, fdflush, fdformat, fdisk, fgconsole, fgrep, find, findfs, flock, fold, free, freeramdisk, fsck, fsck.minix, fsfreeze, fstrim, fsync,
  ftpd, ftpget, ftpput, fuser, getopt, getty, grep, groups, gunzip, gzip, halt, hd, hdparm, head, hexdump, hexedit, hostid, hostname, httpd, hwclock, i2cdetect, i2cdump, i2cget, i2cset, i2ctransfer, id,
  ifconfig, ifdown, ifenslave, ifplugd, ifup, inetd, init, inotifyd, insmod, install, ionice, iostat, ip, ipaddr, ipcalc, ipcrm, ipcs, iplink, ipneigh, iproute, iprule, iptunnel, kbd_mode, kill, killall,
  killall5, klogd, last, less, link, linux32, linux64, linuxrc, ln, loadfont, loadkmap, logger, login, logname, logread, losetup, lpd, lpq, lpr, ls, lsattr, lsmod, lsof, lspci, lsscsi, lsusb, lzcat, lzma,
  lzop, makedevs, makemime, man, md5sum, mdev, mesg, microcom, mkdir, mkdosfs, mke2fs, mkfifo, mkfs.ext2, mkfs.minix, mkfs.vfat, mknod, mkpasswd, mkswap, mktemp, modinfo, modprobe, more, mount, mountpoint,
  mpstat, mt, mv, nameif, nanddump, nandwrite, nbd-client, nc, netstat, nice, nl, nmeter, nohup, nproc, nsenter, nslookup, ntpd, od, openvt, partprobe, passwd, paste, patch, pgrep, pidof, ping, ping6,
  pipe_progress, pivot_root, pkill, pmap, popmaildir, poweroff, powertop, printenv, printf, ps, pscan, pstree, pwd, pwdx, raidautorun, rdate, rdev, readahead, readlink, readprofile, realpath, reboot,
  reformime, remove-shell, renice, reset, resize, resume, rev, rm, rmdir, rmmod, route, rpm, rpm2cpio, rtcwake, run-init, run-parts, runlevel, runsv, runsvdir, rx, script, scriptreplay, sed, sendmail, seq,
  setarch, setconsole, setfattr, setfont, setkeycodes, setlogcons, setpriv, setserial, setsid, setuidgid, sha1sum, sha256sum, sha3sum, sha512sum, showkey, shred, shuf, slattach, sleep, smemcap, softlimit,
  sort, split, ssl_client, start-stop-daemon, stat, strings, stty, su, sulogin, sum, sv, svc, svlogd, svok, swapoff, swapon, switch_root, sync, sysctl, syslogd, tac, tail, tar, taskset, tc, tcpsvd, tee,
  telnet, telnetd, test, tftp, tftpd, time, timeout, top, touch, tr, traceroute, traceroute6, true, truncate, ts, tty, ttysize, tunctl, ubiattach, ubidetach, ubimkvol, ubirename, ubirmvol, ubirsvol,
  ubiupdatevol, udhcpc, udhcpc6, udhcpd, udpsvd, uevent, umount, uname, unexpand, uniq, unix2dos, unlink, unlzma, unshare, unxz, unzip, uptime, users, usleep, uudecode, uuencode, vconfig, vi, vlock,
  volname, w, wall, watch, watchdog, wc, wget, which, who, whoami, whois, xargs, xxd, xz, xzcat, yes, zcat, zcip
[root@T113-s3 /root]# 

离线

楼主 #10 2022-04-24 15:40:10

Cadence
会员
注册时间: 2022-04-01
已发帖子: 71
积分: 85

Re: T113-s3 spi-nand 启动

关于 u-boot 的 psci问题
首先 struct sunxi_cpucfg_reg

grep -nr 'struct sunxi_cpucfg_reg'
arch/arm/cpu/armv7/sunxi/psci.c:131:    struct sunxi_cpucfg_reg *cpucfg =
arch/arm/cpu/armv7/sunxi/psci.c:132:            (struct sunxi_cpucfg_reg *)SUNXI_CPUCFG_BASE;
arch/arm/cpu/armv7/sunxi/psci.c:142:    struct sunxi_cpucfg_reg *cpucfg =
arch/arm/cpu/armv7/sunxi/psci.c:143:            (struct sunxi_cpucfg_reg *)SUNXI_CPUCFG_BASE;
arch/arm/cpu/armv7/sunxi/psci.c:151:    struct sunxi_cpucfg_reg *cpucfg =
arch/arm/cpu/armv7/sunxi/psci.c:152:            (struct sunxi_cpucfg_reg *)SUNXI_CPUCFG_BASE;
arch/arm/cpu/armv7/sunxi/psci.c:171:    struct sunxi_cpucfg_reg *cpucfg =
arch/arm/cpu/armv7/sunxi/psci.c:172:            (struct sunxi_cpucfg_reg *)SUNXI_CPUCFG_BASE;
arch/arm/cpu/armv7/sunxi/psci.c:249:    struct sunxi_cpucfg_reg *cpucfg =
arch/arm/cpu/armv7/sunxi/psci.c:250:            (struct sunxi_cpucfg_reg *)SUNXI_CPUCFG_BASE;

没有找到定义
SUNXI_CPUCFG_BASE
应该是?

arch/arm/include/asm/arch-sunxi/cpu_sun4i.h:34:#define SUNXI_CPUCFG_BASE                0x01700000
arch/arm/include/asm/arch-sunxi/cpu_sun4i.h:129:#define SUNXI_CPUCFG_BASE               0x01c25c00
arch/arm/include/asm/arch-sunxi/cpu_sun4i.h:202:#define SUNXI_CPUCFG_BASE               0x01f01c00

最近编辑记录 Cadence (2022-04-24 15:41:18)

离线

楼主 #11 2022-04-24 15:43:29

Cadence
会员
注册时间: 2022-04-01
已发帖子: 71
积分: 85

Re: T113-s3 spi-nand 启动

U-Boot 2022.01-rc3-00096-gc0ffc12a70-dirty (Apr 24 2022 - 15:42:32 +0800) Allwinner Technology

CPU:   SUNXI Family
Model: sun20iw1p1
DRAM:  128 MiB
[00.024]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz  MBus=300Mhz
MMC:   
Loading Environment from FAT... In:    serial
Out:   serial
Err:   serial
starting USB...
No working controllers found
Hit any key to stop autoboot:  0 
Kernel image @ 0x40080000 [ 0x000000 - 0x403568 ]
## Flattened Device Tree blob at 40020000
   Booting using the fdt blob at 0x40020000
   Loading Device Tree to 43f58000, end 43f684c9 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.4.61 (root@i9-10920) (arm-linux-gnueabihf-gcc (Linaro GCC 7.5-2019.12) 7.5.0, GNU ld (Linaro_Binutils-2019.12) 2.28.2.20170706) #39 SMP PREEMPT Sun Apr 24 09:14:45 CST 2022
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: sun8iw20
[    0.000000] printk: bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] cma: Reserved 8 MiB at 0x47400000
[    0.000000] On node 0 totalpages: 32768
[    0.000000]   Normal zone: 256 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 32768 pages, LIFO batch:7
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: drivers/firmware/psci/psci.c psci_get_version 155________________84000000
[    0.000000] psci: drivers/firmware/psci/psci.c __invoke_psci_fn_smc 131________________84000000
[    0.000000] psci: PSCIv65535.65535 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: drivers/firmware/psci/psci.c __invoke_psci_fn_smc 131________________84000006
[    0.000000] psci: MIGRATE_INFO_TYPE not supported.
[    0.000000] psci: drivers/firmware/psci/psci.c __invoke_psci_fn_smc 131________________8400000a
[    0.000000] psci: SMC Calling Convention v1.0
[    0.000000] psci: drivers/firmware/psci/psci.c __invoke_psci_fn_smc 131________________8400000a
[    0.000000] psci: drivers/firmware/psci/psci.c __invoke_psci_fn_smc 131________________8400000a
[    0.000000] psci: drivers/firmware/psci/psci.c __invoke_psci_fn_smc 131________________8400000a
[    0.000000] percpu: Embedded 15 pages/cpu s32140 r8192 d21108 u61440
[    0.000000] pcpu-alloc: s32140 r8192 d21108 u61440 alloc=15*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,115200n8 earlyprintk=sunxi-uart,0x02500000 clk_ignore_unused loglevel=8 init=/init cma=8M ubi.mtd=4 rootfstype=ubifs root=ubi0:rootfs rw rootwait
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 110580K/131072K available (6144K kernel code, 387K rwdata, 1972K rodata, 1024K init, 163K bss, 12300K reserved, 8192K cma-reserved)
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000]  Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] GIC CPU mask not found - kernel will fail to boot.
[    0.000000] GIC CPU mask not found - kernel will fail to boot.
[    0.000000] random: get_random_bytes called from start_kernel+0x250/0x3dc with crng_init=0
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000006] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.008017] Switching to timer-based delay loop, resolution 41ns
[    0.014200] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.023918] Console: colour dummy device 80x30
[    0.028405] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.038749] pid_max: default: 32768 minimum: 301
[    0.043438] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.050760] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.059059] CPU: Testing write buffer coherency: ok
[    0.064253] /cpus/cpu@0 missing clock-frequency property
[    0.069570] /cpus/cpu@1 missing clock-frequency property
[    0.074877] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.081206] Setting up static identity map for 0x40100000 - 0x40100060
[    0.087879] rcu: Hierarchical SRCU implementation.
[    0.093021] BOOTEVENT:        93.012957: ON
[    0.097413] smp: Bringing up secondary CPUs ...
[    0.102493] psci: drivers/firmware/psci/psci.c __invoke_psci_fn_smc 131________________84000003

离线

楼主 #12 2022-04-24 16:15:10

Cadence
会员
注册时间: 2022-04-01
已发帖子: 71
积分: 85

Re: T113-s3 spi-nand 启动

有了

struct __packed sunxi_cpucfg_cpu {
    u32 rst;        /* base + 0x0 */
    u32 ctrl;       /* base + 0x4 */
    u32 status;     /* base + 0x8 */
    u8 res[0x34];       /* base + 0xc */
};

struct __packed sunxi_cpucfg_reg {
    u8 res0[0x40];      /* 0x000 */
    struct sunxi_cpucfg_cpu cpu[4];     /* 0x040 */
    u8 res1[0x44];      /* 0x140 */
    u32 gen_ctrl;       /* 0x184 */
    u32 l2_status;      /* 0x188 */
    u8 res2[0x4];       /* 0x18c */
    u32 event_in;       /* 0x190 */
    u8 res3[0xc];       /* 0x194 */
    u32 super_standy_flag;  /* 0x1a0 */
    u32 priv0;      /* 0x1a4 */
    u32 priv1;      /* 0x1a8 */
    u8 res4[0x4];       /* 0x1ac */
    u32 cpu1_pwr_clamp; /* 0x1b0 sun7i only */
    u32 cpu1_pwroff;    /* 0x1b4 sun7i only */
    u8 res5[0x2c];      /* 0x1b8 */
    u32 dbg_ctrl1;      /* 0x1e4 */
    u8 res6[0x18];      /* 0x1e8 */
    u32 idle_cnt0_low;  /* 0x200 */
    u32 idle_cnt0_high; /* 0x204 */
    u32 idle_cnt0_ctrl; /* 0x208 */
    u8 res8[0x4];       /* 0x20c */
    u32 idle_cnt1_low;  /* 0x210 */
    u32 idle_cnt1_high; /* 0x214 */
    u32 idle_cnt1_ctrl; /* 0x218 */
    u8 res9[0x4];       /* 0x21c */
    u32 idle_cnt2_low;  /* 0x220 */
    u32 idle_cnt2_high; /* 0x224 */
    u32 idle_cnt2_ctrl; /* 0x228 */
    u8 res10[0x4];      /* 0x22c */
    u32 idle_cnt3_low;  /* 0x230 */
    u32 idle_cnt3_high; /* 0x234 */
    u32 idle_cnt3_ctrl; /* 0x238 */
    u8 res11[0x4];      /* 0x23c */
    u32 idle_cnt4_low;  /* 0x240 */
    u32 idle_cnt4_high; /* 0x244 */
    u32 idle_cnt4_ctrl; /* 0x248 */
    u8 res12[0x34];     /* 0x24c */
    u32 cnt64_ctrl;     /* 0x280 */
    u32 cnt64_low;      /* 0x284 */
    u32 cnt64_high;     /* 0x288 */
};

最近编辑记录 Cadence (2022-04-24 16:18:33)

离线

楼主 #13 2022-04-25 15:08:41

Cadence
会员
注册时间: 2022-04-01
已发帖子: 71
积分: 85

Re: T113-s3 spi-nand 启动

[    0.059113] CPU: Testing write buffer coherency: ok
[    0.064317] /cpus/cpu@0 missing clock-frequency property
[    0.069643] /cpus/cpu@1 missing clock-frequency property
[    0.074986] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.080656] arch/arm/mach-sunxi/plat_t113_smp.c 30 max_cpus 2
[    0.087073] Setting up static identity map for 0x40100000 - 0x40100060
[    0.093735] rcu: Hierarchical SRCU implementation.
[    0.098921] BOOTEVENT:        98.911790: ON
[    0.103309] smp: Bringing up secondary CPUs ...
[    0.107845] smp: kernel/smp.c 592 cpu 0 cpu_online 1
[    0.112850] smp: kernel/smp.c 592 cpu 1 cpu_online 0
[    0.118351] arch/arm/mach-sunxi/plat_t113_smp.c 40 cpu c7039000
[    0.124327] arch/arm/mach-sunxi/plat_t113_smp.c 48 cpu c7039000
[    0.130485] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.130653] smp: Brought up 1 node, 2 CPUs
[    0.140478] SMP: Total of 2 processors activated (96.00 BogoMIPS).
[    0.146683] CPU: All CPU(s) started in SVC mode.

不用 PSCI 启动第二个CPU

离线

楼主 #14 2022-04-25 15:18:30

Cadence
会员
注册时间: 2022-04-01
已发帖子: 71
积分: 85

Re: T113-s3 spi-nand 启动

启动第二个CPU驱动 源码

static DEFINE_SPINLOCK(cpu_lock);

static int sun8i_smp_boot_secondary(unsigned int cpu,
                    struct task_struct *idle)
{
    u32 reg;
    void __iomem *cpucfg_membase = ioremap(0x09010000, 0x10);
    void __iomem *cpuexec_membase[] = {ioremap(0x070005C4, 0x10),ioremap(0x070005C8, 0x10)};

//    pr_info("%s %d cpu %x\n",__FILE__,__LINE__,(u32)idle);
    spin_lock(&cpu_lock);
        
    if(cpu != 1)return 0;

    /* Set CPU boot address */
    writel(__pa_symbol(secondary_startup),  cpuexec_membase[cpu]);
//  writel((u32)idle,   cpuexec_membase[cpu]);  /* do not work */

    /* Deassert the CPU core reset */
    reg = readl(cpucfg_membase);
    writel(reg | BIT(cpu), cpucfg_membase);

    spin_unlock(&cpu_lock);

    return 0;
}

static const struct smp_operations sun8i_smp_ops __initconst = { 
    .smp_boot_secondary = sun8i_smp_boot_secondary,
};
CPU_METHOD_OF_DECLARE(sun8i_t113_smp, "allwinner,sun8iw20p1", &sun8i_smp_ops);

最近编辑记录 Cadence (2022-04-26 09:15:45)

离线

楼主 #15 2022-04-26 08:57:05

Cadence
会员
注册时间: 2022-04-01
已发帖子: 71
积分: 85

Re: T113-s3 spi-nand 启动

完整的启动 log

HELLO! BOOT0 is starting!
BOOT0 commit : #.###
set pll start
periph0 has been enabled
set pll end
board init ok
ZQ value = 0x2d
get_pmu_exist() = -1
ddr_efuse_type: 0xa
mark_id: 0x60
trefi:7.8ms
[AUTO DEBUG] single rank and full DQ!
ddr_efuse_type: 0xa
mark_id: 0x60
trefi:7.8ms
[AUTO DEBUG] rank 0 row = 13 
[AUTO DEBUG] rank 0 bank = 8 
[AUTO DEBUG] rank 0 page size = 2 KB 
DRAM BOOT DRIVE INFO: V0.32
DRAM CLK = 792 MHz
DRAM Type = 3 (2:DDR2,3:DDR3)
DRAMC read ODT  off.
DRAM ODT value: 0x42.
ddr_efuse_type: 0xa
mark_id: 0x60
DRAM SIZE =128 M
PLL_DDR_CTRL_REG:0xf8004100
DRAM_CLK_REG:0xc0000000
[TIMING DEBUG] MR2= 0x18
DRAM simple test OK.
rtc standby flag is 0x0, super standby flag is 0x0
spinand UBOOT_START_BLK_NUM 8 UBOOT_LAST_BLK_NUM 16
Jump to second Boot.


U-Boot 2022.01-rc3-00096-gc0ffc12a70-dirty (Apr 25 2022 - 21:53:16 +0800) Allwinner Technology

CPU:   SUNXI Family
Model: sun20iw1p1
DRAM:  128 MiB
[00.023]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz  MBus=300Mhz
MMC:   
Loading Environment from FAT... In:    serial
Out:   serial
Err:   serial
starting USB...
No working controllers found
Hit any key to stop autoboot:  0 
Reading 131072 byte(s) (64 page(s)) at offset 0x00200000
Reading 6291456 byte(s) (3072 page(s)) at offset 0x00220000
Kernel image @ 0x40080000 [ 0x000000 - 0x487ba8 ]
## Flattened Device Tree blob at 40020000
   Booting using the fdt blob at 0x40020000
   Loading Device Tree to 43f5b000, end 43f6b4c9 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.4.61 (root@i9-10920) (arm-linux-gnueabihf-gcc (Linaro GCC 7.5-2019.12) 7.5.0, GNU ld (Linaro_Binutils-2019.12) 2.28.2.20170706) #76 SMP PREEMPT Tue Apr 26 06:56:22 CST 2022
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: sun8iw20
[    0.000000] printk: bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] cma: Reserved 8 MiB at 0x47800000
[    0.000000] On node 0 totalpages: 32768
[    0.000000]   Normal zone: 256 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 32768 pages, LIFO batch:7
[    0.000000] percpu: Embedded 15 pages/cpu s32076 r8192 d21172 u61440
[    0.000000] pcpu-alloc: s32076 r8192 d21172 u61440 alloc=15*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,115200n8 earlyprintk=sunxi-uart,0x02500000 clk_ignore_unused loglevel=8 init=/init cma=8M ubi.mtd=4 rootfstype=ubifs root=ubi0:rootfs ro rootwait
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 109464K/131072K available (7168K kernel code, 465K rwdata, 2156K rodata, 1024K init, 189K bss, 13416K reserved, 8192K cma-reserved)
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000]  Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] random: get_random_bytes called from start_kernel+0x250/0x3e0 with crng_init=0
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000006] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.008009] Switching to timer-based delay loop, resolution 41ns
[    0.014176] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.023945] Console: colour dummy device 80x30
[    0.028434] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.038796] pid_max: default: 32768 minimum: 301
[    0.043483] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.050799] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.059116] CPU: Testing write buffer coherency: ok
[    0.064334] /cpus/cpu@0 missing clock-frequency property
[    0.069661] /cpus/cpu@1 missing clock-frequency property
[    0.074996] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.081334] Setting up static identity map for 0x40100000 - 0x40100060
[    0.088057] rcu: Hierarchical SRCU implementation.
[    0.093205] BOOTEVENT:        93.195666: ON
[    0.097575] smp: Bringing up secondary CPUs ...
[    0.102957] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.103114] smp: Brought up 1 node, 2 CPUs
[    0.112955] SMP: Total of 2 processors activated (96.00 BogoMIPS).
[    0.119125] CPU: All CPU(s) started in SVC mode.
[    0.124349] devtmpfs: initialized
[    0.224824] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.235108] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.244982] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.252176] pinctrl core: initialized pinctrl subsystem
[    0.273190] NET: Registered protocol family 16
[    0.279276] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.301706] cpuidle: using governor ladder
[    0.305880] cpuidle: using governor menu
[    0.573870] rtc_ccu: sunxi ccu init OK
[    0.613198] ccu: sunxi ccu init OK
[    0.624037] r_ccu: sunxi ccu init OK
[    1.146594] iommu: Default domain type: Translated 
[    1.153867] sunxi iommu: irq = 24
[    1.179725] SCSI subsystem initialized
[    1.191373] usbcore: registered new interface driver usbfs
[    1.196977] usbcore: registered new interface driver hub
[    1.204835] usbcore: registered new device driver usb
[    1.243379] pwm module init!
[    1.262737] input: sunxi-keyboard as /devices/virtual/input/input0
[    1.271738] clocksource: Switched to clocksource arch_sys_counter
[    1.480368] sun8iw20-pinctrl 2000000.pinctrl: initialized sunXi PIO driver
[    1.837423] thermal_sys: Registered thermal governor 'step_wise'
[    1.837429] thermal_sys: Registered thermal governor 'user_space'
[    1.856304] NET: Registered protocol family 2
[    1.877012] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    1.885465] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    1.893157] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    1.900218] TCP: Hash tables configured (established 1024 bind 1024)
[    1.906710] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    1.913300] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    1.920469] NET: Registered protocol family 1
[    1.941263] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pc not found, using dummy regulator
[    1.961015] spi spi0: spi0 supply spi not found, using dummy regulator
[    1.967875] sunxi_spi_resource_get()2151 - [spi0] SPI MASTER MODE
[    1.974057] sunxi_spi_resource_get()2189 - Failed to get sample mode
[    1.980406] sunxi_spi_resource_get()2194 - Failed to get sample delay
[    1.986861] sunxi_spi_resource_get()2198 - sample_mode:-1431633921 sample_delay:-1431633921
[    1.995270] sunxi_spi_clk_init()2240 - [spi0] mclk 100000000
[    2.014204] sunxi_spi_probe()2653 - [spi0]: driver probe succeed, base c8827000, irq 41
[    2.058198] Initialise system trusted keyrings
[    2.062915] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    2.076331] fuse: init (API version 7.31)
[    2.137737] NET: Registered protocol family 38
[    2.142243] Key type asymmetric registered
[    2.146352] Asymmetric key parser 'x509' registered
[    2.151319] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    2.158757] io scheduler mq-deadline registered
[    2.163297] io scheduler kyber registered
[    2.178373] [DISP]disp_module_init
[    2.192224] disp 5000000.disp: Adding to iommu group 0
[    2.236298] display_fb_request,fb_id:0
[    2.247840] [DISP] Fb_copy_boot_fb,line:1443:
[    2.247846] no boot_fb0
[    2.255656] disp_al_manager_apply ouput_type:0
[    2.288687] [DISP] lcd_clk_config,line:732:
[    2.288701] disp 0, clk: pll(364000000),clk(364000000),dclk(52000000) dsi_rate(364000000)
[    2.288701]      clk real:pll(360000000),clk(360000000),dclk(51428571) dsi_rate(0)
[    2.288948] [DISP]disp_module_init finish
[    2.300074] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pd not found, using dummy regulator
[    2.327911] sunxi_sid_init()551 - insmod ok
[    2.352136] pwm-regulator: supplied by regulator-dummy
[    2.371961] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pe not found, using dummy regulator
[    2.382195] uart uart0: get regulator failed
[    2.386493] uart uart0: uart0 supply uart not found, using dummy regulator
[    2.397104] uart0: ttyS0 at MMIO 0x2500000 (irq = 34, base_baud = 1500000) is a SUNXI
[    2.404970] sw_console_setup()1784 - console setup baud 115200 parity n bits 8, flow n
[    2.412935] printk: console [ttyS0] enabled
[    2.412935] printk: console [ttyS0] enabled
[    2.421810] printk: bootconsole [earlycon0] disabled
[    2.421810] printk: bootconsole [earlycon0] disabled
[    2.446287] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pg not found, using dummy regulator
[    2.457681] uart uart3: get regulator failed
[    2.462485] uart uart3: uart3 supply uart not found, using dummy regulator
[    2.473882] uart3: ttyS3 at MMIO 0x2500c00 (irq = 35, base_baud = 1500000) is a SUNXI
[    2.500594] misc dump reg init
[    2.528461] sunxi-rfkill soc@3000000:rfkill@0: module version: v1.0.9
[    2.532067] [DISP] disp_device_attached_and_enable,line:233:
[    2.532073] attached ok, mgr0<-->dev0
[    2.536169] sunxi-rfkill soc@3000000:rfkill@0: devm_pinctrl_get() failed!
[    2.542139] [DISP] disp_device_attached_and_enable,line:236:
[    2.542148] type:1,mode:0,fmt:rgb,bits:8bits,eotf:4,cs:0 dvi_hdmi:2, range:2 scan:0 ratio:8
[    2.546079] sunxi-rfkill soc@3000000:rfkill@0: get gpio chip_en failed
[    2.576549] sunxi-rfkill soc@3000000:rfkill@0: get gpio power_en failed
[    2.583947] sunxi-rfkill soc@3000000:rfkill@0: wlan_busnum (1)
[    2.590451] sunxi-rfkill soc@3000000:rfkill@0: Missing wlan_power.
[    2.597379] sunxi-rfkill soc@3000000:rfkill@0: wlan clock[0] (32k-fanout1)
[    2.605082] sunxi-rfkill soc@3000000:rfkill@0: wlan_regon gpio=204 assert=0
[    2.612929] sunxi-rfkill soc@3000000:rfkill@0: wlan_hostwake gpio=202 assert=1
[    2.621000] sunxi-rfkill soc@3000000:rfkill@0: wakeup source is enabled
[    2.635323] sunxi-rfkill soc@3000000:rfkill@0: Missing bt_power.
[    2.642115] sunxi-rfkill soc@3000000:rfkill@0: bt clock[0] (32k-fanout1)
[    2.649619] sunxi-rfkill soc@3000000:rfkill@0: bt_rst gpio=210 assert=0
[    2.702672] spi-nand spi0.0: Winbond SPI NAND was found.
[    2.708605] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[    2.721422] 5 fixed-partitions partitions found on MTD device spi0.0
[    2.728561] Creating 5 MTD partitions on "spi0.0":
[    2.734047] 0x000000000000-0x000000100000 : "boot0"
[    2.743463] 0x000000100000-0x000000200000 : "u-boot"
[    2.765815] 0x000000200000-0x000000220000 : "dtb"
[    2.785647] 0x000000220000-0x000000820000 : "kernel"
[    2.793422] random: fast init done
[    2.822837] 0x000000820000-0x000008000000 : "rootfs"
[    3.175084] libphy: Fixed MDIO Bus: probed
[    3.185574] CAN device driver interface
[    3.190140] RTL871X: module init start
[    3.194355] RTL871X: rtl8189fs v4.3.24.8_22657.20170607
[    3.200290] RTL871X: module init ret=0
[    3.204530] hso: drivers/net/usb/hso.c: Option Wireless
[    3.217384] usbcore: registered new interface driver hso
[    3.223421] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.230698] sunxi-ehci: EHCI SUNXI driver
[    3.235606] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    3.242555] sunxi-ohci: OHCI SUNXI driver
[    3.247672] usbcore: registered new interface driver uas
[    3.257157] usbcore: registered new interface driver usb-storage
[    3.264047] usbcore: registered new interface driver ums-alauda
[    3.270718] usbcore: registered new interface driver ums-cypress
[    3.280901] usbcore: registered new interface driver ums-datafab
[    3.287753] usbcore: registered new interface driver ums_eneub6250
[    3.298134] usbcore: registered new interface driver ums-freecom
[    3.304999] usbcore: registered new interface driver ums-isd200
[    3.311673] usbcore: registered new interface driver ums-jumpshot
[    3.321996] usbcore: registered new interface driver ums-karma
[    3.328620] usbcore: registered new interface driver ums-onetouch
[    3.335545] usbcore: registered new interface driver ums-realtek
[    3.342371] usbcore: registered new interface driver ums-sddr09
[    3.349039] usbcore: registered new interface driver ums-sddr55
[    3.359130] usbcore: registered new interface driver ums-usbat
[    3.391075] input: sunxi-ts as /devices/platform/soc@3000000/2009c00.rtp/input/input1
[    3.411117] sunxi_gpadc_init,2137, success
[    3.438762] sunxi-rtc 7090000.rtc: registered as rtc0
[    3.444574] sunxi-rtc 7090000.rtc: setting system clock to 1970-01-01T00:12:57 UTC (777)
[    3.453658] sunxi-rtc 7090000.rtc: sunxi rtc probed
[    3.459570] i2c /dev entries driver
[    3.463656] IR NEC protocol handler initialized
[    3.468706] IR RC5(x/sz) protocol handler initialized
[    3.474797] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pb not found, using dummy regulator
[    3.493713] sunxi_ir_startup: get ir protocol failed
[    3.493744] (NULL device *): deviceless supply  not found, using dummy regulator
[    3.507684] Registered IR keymap rc_map_sunxi
[    3.519210] rc rc0: sunxi-ir as /devices/platform/soc@3000000/7040000.s_cir/rc/rc0
[    3.531943] input: sunxi-ir as /devices/platform/soc@3000000/7040000.s_cir/rc/rc0/s_cir_rx
[    3.549248] sunxi cedar version 1.1
[    3.553434] sunxi-cedar 1c0e000.ve: Adding to iommu group 0
[    3.559678] VE: sunxi_cedar_probe power-domain init!!!
[    3.565452] VE: install start!!!
[    3.565452] 
[    3.574288] VE: cedar-ve the get irq is 42
[    3.574288] 
[    3.581375] VE: ve_debug_proc_info:(ptrval), data:(ptrval), lock:(ptrval)
[    3.581375] 
[    3.590655] VE: install end!!!
[    3.590655] 
[    3.595734] VE: sunxi_cedar_probe
[    3.625028] sunxi-wdt 20500a0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    3.642654] /cpus/cpu@0: unsupported enable-method property: psci
[    3.686989] sunxi-mmc 4020000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.21 2021-05-24 16:10)
[    3.697007] sunxi-mmc 4020000.sdmmc: ***ctl-spec-caps*** 8
[    3.703217] sunxi-mmc 4020000.sdmmc: No vmmc regulator found
[    3.709526] sunxi-mmc 4020000.sdmmc: No vqmmc regulator found
[    3.715955] sunxi-mmc 4020000.sdmmc: No vdmmc regulator found
[    3.722374] sunxi-mmc 4020000.sdmmc: No vd33sw regulator found
[    3.728874] sunxi-mmc 4020000.sdmmc: No vd18sw regulator found
[    3.735389] sunxi-mmc 4020000.sdmmc: No vq33sw regulator found
[    3.741903] sunxi-mmc 4020000.sdmmc: No vq18sw regulator found
[    3.766646] sunxi-mmc 4020000.sdmmc: Got CD GPIO
[    3.772171] sunxi-mmc 4020000.sdmmc: set cd-gpios as 24M fail
[    3.778954] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
[    3.790111] sunxi-mmc 4020000.sdmmc: no vqmmc,Check if there is regulator
[    3.810238] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    3.837663] sunxi-mmc 4020000.sdmmc: detmode:gpio irq
[    3.854610] sunxi-mmc 4021000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.21 2021-05-24 16:10)
[    3.864560] sunxi-mmc 4021000.sdmmc: ***ctl-spec-caps*** 8
[    3.870733] sunxi-mmc 4021000.sdmmc: No vmmc regulator found
[    3.877063] sunxi-mmc 4021000.sdmmc: No vqmmc regulator found
[    3.883480] sunxi-mmc 4021000.sdmmc: No vdmmc regulator found
[    3.889885] sunxi-mmc 4021000.sdmmc: No vd33sw regulator found
[    3.896396] sunxi-mmc 4021000.sdmmc: No vd18sw regulator found
[    3.902916] sunxi-mmc 4021000.sdmmc: No vq33sw regulator found
[    3.909417] sunxi-mmc 4021000.sdmmc: No vq18sw regulator found
[    3.915963] sunxi-mmc 4021000.sdmmc: Cann't get pin bias hs pinstate,check if needed
[    3.939850] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
[    3.950997] sunxi-mmc 4021000.sdmmc: no vqmmc,Check if there is regulator
[    3.971115] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    3.995310] sunxi-mmc 4021000.sdmmc: detmode:manually by software
[    4.002862] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    4.026875] usbcore: registered new interface driver usbhid
[    4.027411] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    4.033159] usbhid: USB HID core driver
[    4.049079] sunxi-mmc 4021000.sdmmc: card claims to support voltages below defined range
[    4.049106] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 0Hz bm PP pm OFF vdd 0 width 1 timing LEGACY(SDR12) dt B
[    4.081145] oprofile: hardware counters not available
[    4.086846] oprofile: using timer interrupt.
[    4.092063] NET: Registered protocol family 10
[    4.109264] Segment Routing with IPv6
[    4.113555] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    4.166526] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
[    4.170229] NET: Registered protocol family 17
[    4.178285] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
[    4.183184] NET: Registered protocol family 15
[    4.199724] can: controller area network core (rev 20170425 abi 9)
[    4.199734] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 4 timing SD-HS(SDR25) dt B
[    4.218485] NET: Registered protocol family 29
[    4.223529] can: raw protocol (rev 20170425)
[    4.228305] can: broadcast manager protocol (rev 20170425 t)
[    4.234665] can: netlink gateway (rev 20190810) max_hops=1
[    4.241205] mmc1: new high speed SDIO card at address 0001
[    4.245186] Registering SWP/SWPB emulation handler
[    4.263736] Loading compiled-in X.509 certificates
[    4.515197] RTL871X: HW EFUSE
[    4.518540] RTL871X: hal_com_config_channel_plan chplan:0x20
[    4.674655] i2c i2c2: i2c2 supply twi not found, using dummy regulator
[    4.698942] i2c i2c2: probe success
[    4.815217] random: crng init done
[    4.827230] get ehci0-controller wakeup-source is fail.
[    4.840440] sunxi ehci0-controller don't init wakeup source
[    4.846735] [sunxi-ehci0]: probe, pdev->name: 4101000.ehci0-controller, sunxi_ehci: 0xc0c9b7e8, 0x:c8878000, irq_no:38
[    4.858728] [sunxi-ehci0]: Not init ehci0
[    4.864148] get ohci0-controller wakeup-source is fail.
[    4.870239] sunxi ohci0-controller don't init wakeup source
[    4.876551] [sunxi-ohci0]: probe, pdev->name: 4101400.ohci0-controller, sunxi_ohci: 0xc0c9ba78
[    4.886185] [sunxi-ohci0]: Not init ohci0
[    4.891546] get ehci1-controller wakeup-source is fail.
[    4.897732] sunxi ehci1-controller don't init wakeup source
[    4.903990] [sunxi-ehci1]: probe, pdev->name: 4200000.ehci1-controller, sunxi_ehci: 0xc0c9bd08, 0x:c92dd000, irq_no:3a
[    4.923833] sunxi-ehci 4200000.ehci1-controller: 4200000.ehci1-controller supply hci not found, using dummy regulator
[    4.944744] sunxi-ehci 4200000.ehci1-controller: EHCI Host Controller
[    4.952091] sunxi-ehci 4200000.ehci1-controller: new USB bus registered, assigned bus number 1
[    4.962224] sunxi-ehci 4200000.ehci1-controller: irq 58, io mem 0x04200000
[    4.991814] sunxi-ehci 4200000.ehci1-controller: USB 2.0 started, EHCI 1.00
[    5.026754] hub 1-0:1.0: USB hub found
[    5.038106] hub 1-0:1.0: 1 port detected
[    5.055150] get ohci1-controller wakeup-source is fail.
[    5.071939] sunxi ohci1-controller don't init wakeup source
[    5.078221] [sunxi-ohci1]: probe, pdev->name: 4200400.ohci1-controller, sunxi_ohci: 0xc0c9bf98
[    5.088510] sunxi-ohci 4200400.ohci1-controller: 4200400.ohci1-controller supply hci not found, using dummy regulator
[    5.118871] sunxi-ohci 4200400.ohci1-controller: OHCI Host Controller
[    5.126208] sunxi-ohci 4200400.ohci1-controller: new USB bus registered, assigned bus number 2
[    5.136270] sunxi-ohci 4200400.ohci1-controller: irq 59, io mem 0x04200400
[    5.211076] RTL871X: rtw_regsty_chk_target_tx_power_valid return _FALSE for band:0, path:0, rs:0, t:-1
[    5.245113] RTL871X: rtw_ndev_init(wlan0) if1 mac_addr=94:a4:08:c4:c0:61
[    5.256440] hub 2-0:1.0: USB hub found
[    5.271265] hub 2-0:1.0: 1 port detected
[    5.333035] ubi0: attaching mtd4
[   20.192916] ubi0: scanning is finished
[   20.225392] ubi0: attached mtd4 (name "rootfs", size 119 MiB)
[   20.231830] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[   20.239494] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[   20.247072] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[   20.254847] ubi0: good PEBs: 959, bad PEBs: 0, corrupted PEBs: 0
[   20.261541] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
[   20.269603] ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 267458052
[   20.279696] ubi0: available PEBs: 0, total reserved PEBs: 959, PEBs reserved for bad PEB handling: 40
[   20.290001] ubi0: background thread "ubi_bgt0d" started, PID 975
[   20.301375] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[   20.317085] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[   20.328325] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[   20.331830] clk: Not disabling unused clocks
[   20.338007] cfg80211: failed to load regulatory.db
[   20.342850] alloc_fd: slot 0 not NULL!
[   20.372329] UBIFS (ubi0:0): Mounting in unauthenticated mode
[   20.440057] UBIFS (ubi0:0): recovery needed
[   21.389379] UBIFS (ubi0:0): recovery deferred
[   21.394702] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs", R/O mode
[   21.403975] UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[   21.415045] UBIFS (ubi0:0): FS size: 114786304 bytes (109 MiB, 904 LEBs), journal size 5713920 bytes (5 MiB, 45 LEBs)
[   21.426884] UBIFS (ubi0:0): reserved for root: 4952683 bytes (4836 KiB)
[   21.434273] UBIFS (ubi0:0): media format: w5/r0 (latest is w5/r0), UUID 4A5D7D8F-3C66-4BB0-8C4C-E59EDCC1D11C, small LPT model
[   21.449612] VFS: Mounted root (ubifs filesystem) readonly on device 0:14.
[   21.459073] Freeing unused kernel memory: 1024K
[   21.464303] Kernel init done
[   21.467512] Run /init as init process
haveged: command socket is listening at fd 3
haveged: haveged starting up
login[997]: root login on 'ttyS0'
[   23.901809] 
[   23.901809] insmod_device_driver
[   23.901809] 
[   23.909033] sunxi_usb_udc 4100000.udc-controller: 4100000.udc-controller supply udc not found, using dummy regulator
[root@T113-s3 /root]# ifconfig
[root@T113-s3 /root]# . /etc/wpa_action.sh 
Successfully initialized wpa_supplicant
udhcpc: started, v1.35.0
udhcpc: broadcasting discover
[   47.455160] RTL871X: nolinked power save enter
[   48.156519] RTL871X: nolinked power save leave
[   48.161574] RTL871X: rtw_set_802_11_connect(wlan0)  fw_state=0x00000008
[   48.273633] RTL871X: start auth
[   48.279374] RTL871X: auth success, start assoc
[   48.288239] RTL871X: assoc success
[   48.530249] RTL871X: recv eapol packet
[   48.541610] RTL871X: send eapol packet
[   48.551079] RTL871X: recv eapol packet
[   48.558365] RTL871X: send eapol packet
[   48.562901] RTL871X: set pairwise key camid:4, addr:04:5f:a7:5d:59:7c, kid:0, type:AES
[   48.564444] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   48.579502] RTL871X: set group key camid:5, addr:04:5f:a7:5d:59:7c, kid:2, type:TKIP
udhcpc: broadcasting discover
udhcpc: broadcasting select for 192.168.10.14, server 192.168.10.1
udhcpc: lease of 192.168.10.14 obtained from 192.168.10.1, lease time 86400
/usr/share/udhcpc/default.script: Adding DNS 192.168.10.1
/usr/share/udhcpc/default.script: Adding DNS 192.168.1.1
[root@T113-s3 /root]# ifconfig
wlan0     Link encap:Ethernet  HWaddr 94:A4:08:C4:C0:61  
          inet addr:192.168.10.14  Bcast:192.168.10.255  Mask:255.255.255.0
          inet6 addr: fe80::96a4:8ff:fec4:c061/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1982 (1.9 KiB)  TX bytes:1834 (1.7 KiB)

[root@T113-s3 /root]# ping www.baidu.com
PING www.baidu.com (103.235.46.39): 56 data bytes
64 bytes from 103.235.46.39: seq=0 ttl=45 time=174.979 ms
64 bytes from 103.235.46.39: seq=1 ttl=45 time=176.345 ms
64 bytes from 103.235.46.39: seq=2 ttl=45 time=171.691 ms
64 bytes from 103.235.46.39: seq=3 ttl=45 time=375.649 ms
64 bytes from 103.235.46.39: seq=4 ttl=45 time=175.896 ms
64 bytes from 103.235.46.39: seq=5 ttl=45 time=320.066 ms
64 bytes from 103.235.46.39: seq=6 ttl=45 time=174.658 ms
^C
--- www.baidu.com ping statistics ---
7 packets transmitted, 7 packets received, 0% packet loss
round-trip min/avg/max = 171.691/224.183/375.649 ms
[root@T113-s3 /root]# 

离线

#16 2022-04-26 12:29:38

tango_zhu
会员
注册时间: 2018-04-12
已发帖子: 115
积分: 2

Re: T113-s3 spi-nand 启动

什么时候挂到github?

离线

楼主 #17 2022-04-28 14:02:53

Cadence
会员
注册时间: 2022-04-01
已发帖子: 71
积分: 85

Re: T113-s3 spi-nand 启动

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.4.61 (root@i9-10920) (arm-linux-gnueabihf-gcc (Linaro GCC 7.5-2019.12) 7.5.0, GNU ld (Linaro_Binutils-2019.12) 2.28.2.20170706) #123 SMP PREEMPT Thu Apr 28 10:38:55 CST 2022
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: sun8iw20
[    0.000000] printk: bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] cma: Reserved 8 MiB at 0x47800000
[    0.000000] On node 0 totalpages: 32768
[    0.000000]   Normal zone: 256 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 32768 pages, LIFO batch:7
[    0.000000] percpu: Embedded 15 pages/cpu s32076 r8192 d21172 u61440
[    0.000000] pcpu-alloc: s32076 r8192 d21172 u61440 alloc=15*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,115200n8 earlyprintk=sunxi-uart,0x02500000 clk_ignore_unused loglevel=8 init=/init cma=8M root=/dev/ram0 rw
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 107416K/131072K available (7168K kernel code, 465K rwdata, 2164K rodata, 3072K init, 189K bss, 15464K reserved, 8192K cma-reserved)
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000]  Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] random: get_random_bytes called from start_kernel+0x250/0x440 with crng_init=0
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000006] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.007999] Switching to timer-based delay loop, resolution 41ns
[    0.014185] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.023962] Console: colour dummy device 80x30
[    0.028458] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.038831] pid_max: default: 32768 minimum: 301
[    0.043526] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.050870] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.059190] CPU: Testing write buffer coherency: ok
[    0.064404] /cpus/cpu@0 missing clock-frequency property
[    0.069739] /cpus/cpu@1 missing clock-frequency property
[    0.075089] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.081415] Setting up static identity map for 0x40100000 - 0x40100060
[    0.088135] rcu: Hierarchical SRCU implementation.
[    0.093274] BOOTEVENT:        93.265415: ON
[    0.097678] smp: Bringing up secondary CPUs ...
[    0.103079] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.103231] smp: Brought up 1 node, 2 CPUs
[    0.113062] SMP: Total of 2 processors activated (96.00 BogoMIPS).
[    0.119242] CPU: All CPU(s) started in SVC mode.
[    0.124460] devtmpfs: initialized
[    0.224204] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.234501] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.244371] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.251559] pinctrl core: initialized pinctrl subsystem
[    0.270234] NET: Registered protocol family 16
[    0.278516] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.299778] cpuidle: using governor ladder
[    0.304013] cpuidle: using governor menu
[    0.580479] rtc_ccu: sunxi ccu init OK
[    0.614777] ccu: sunxi ccu init OK
[    0.624065] r_ccu: sunxi ccu init OK
[    1.117043] iommu: Default domain type: Translated 
[    1.124493] sunxi iommu: irq = 24
[    1.156430] SCSI subsystem initialized
[    1.165319] usbcore: registered new interface driver usbfs
[    1.173329] usbcore: registered new interface driver hub
[    1.178861] usbcore: registered new device driver usb
[    1.213605] pwm module init!
[    1.238392] input: sunxi-keyboard as /devices/virtual/input/input0
[    1.253331] clocksource: Switched to clocksource arch_sys_counter
[    1.455803] sun8iw20-pinctrl 2000000.pinctrl: initialized sunXi PIO driver
[    1.819419] thermal_sys: Registered thermal governor 'step_wise'
[    1.819425] thermal_sys: Registered thermal governor 'user_space'
[    1.838177] NET: Registered protocol family 2
[    1.858796] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    1.867233] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    1.874943] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    1.882013] TCP: Hash tables configured (established 1024 bind 1024)
[    1.888511] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    1.895112] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    1.902306] NET: Registered protocol family 1
[    1.920296] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pc not found, using dummy regulator
[    1.939923] spi spi0: spi0 supply spi not found, using dummy regulator
[    1.946838] sunxi_spi_resource_get()2151 - [spi0] SPI MASTER MODE
[    1.953045] sunxi_spi_resource_get()2189 - Failed to get sample mode
[    1.959428] sunxi_spi_resource_get()2194 - Failed to get sample delay
[    1.965900] sunxi_spi_resource_get()2198 - sample_mode:-1431633921 sample_delay:-1431633921
[    1.974329] sunxi_spi_clk_init()2240 - [spi0] mclk 100000000
[    1.993241] sunxi_spi_probe()2653 - [spi0]: driver probe succeed, base c8827000, irq 41
[    2.286218] Initialise system trusted keyrings
[    2.290829] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    2.297797] fuse: init (API version 7.31)
[    2.337062] NET: Registered protocol family 38
[    2.341538] Key type asymmetric registered
[    2.345670] Asymmetric key parser 'x509' registered
[    2.350655] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    2.358091] io scheduler mq-deadline registered
[    2.362626] io scheduler kyber registered
[    2.380703] [DISP]disp_module_init
[    2.397326] disp 5000000.disp: Adding to iommu group 0
[    2.432653] display_fb_request,fb_id:0
[    2.440972] [DISP] Fb_copy_boot_fb,line:1443:
[    2.440976] no boot_fb0
[    2.451632] disp_al_manager_apply ouput_type:0
[    2.458975] [DISP]disp_module_init finish
[    2.476420] [DISP] lcd_clk_config,line:732:
[    2.476433] disp 0, clk: pll(364000000),clk(364000000),dclk(52000000) dsi_rate(364000000)
[    2.476433]      clk real:pll(360000000),clk(360000000),dclk(51428571) dsi_rate(0)
[    2.487740] sunxi_sid_init()551 - insmod ok
[    2.507089] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pd not found, using dummy regulator
[    2.511938] pwm-regulator: supplied by regulator-dummy
[    2.555274] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pe not found, using dummy regulator
[    2.565525] uart uart0: get regulator failed
[    2.569832] uart uart0: uart0 supply uart not found, using dummy regulator
[    2.577524] uart0: ttyS0 at MMIO 0x2500000 (irq = 34, base_baud = 1500000) is a SUNXI
[    2.585418] sw_console_setup()1784 - console setup baud 115200 parity n bits 8, flow n
[    2.593423] printk: console [ttyS0] enabled
[    2.593423] printk: console [ttyS0] enabled
[    2.602272] printk: bootconsole [earlycon0] disabled
[    2.602272] printk: bootconsole [earlycon0] disabled
[    2.626834] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pg not found, using dummy regulator
[    2.638261] uart uart3: get regulator failed
[    2.643036] uart uart3: uart3 supply uart not found, using dummy regulator
[    2.660967] uart3: ttyS3 at MMIO 0x2500c00 (irq = 35, base_baud = 1500000) is a SUNXI
[    2.694917] misc dump reg init
[    2.713276] sunxi-rfkill soc@3000000:rfkill@0: module version: v1.0.9
[    2.720555] sunxi-rfkill soc@3000000:rfkill@0: devm_pinctrl_get() failed!
[    2.728375] [DISP] disp_device_attached_and_enable,line:233:
[    2.728380] attached ok, mgr0<-->dev0
[    2.733455] sunxi-rfkill soc@3000000:rfkill@0: get gpio chip_en failed
[    2.734788] [DISP] disp_device_attached_and_enable,line:236:
[    2.734797] type:1,mode:0,fmt:rgb,bits:8bits,eotf:4,cs:0 dvi_hdmi:2, range:2 scan:0 ratio:8
[    2.738797] sunxi-rfkill soc@3000000:rfkill@0: get gpio power_en failed
[    2.769250] sunxi-rfkill soc@3000000:rfkill@0: wlan_busnum (1)
[    2.775768] sunxi-rfkill soc@3000000:rfkill@0: Missing wlan_power.
[    2.782676] sunxi-rfkill soc@3000000:rfkill@0: wlan clock[0] (32k-fanout1)
[    2.790387] sunxi-rfkill soc@3000000:rfkill@0: wlan_regon gpio=204 assert=0
[    2.798228] sunxi-rfkill soc@3000000:rfkill@0: wlan_hostwake gpio=202 assert=1
[    2.806359] sunxi-rfkill soc@3000000:rfkill@0: wakeup source is enabled
[    2.814068] sunxi-rfkill soc@3000000:rfkill@0: Missing bt_power.
[    2.820789] sunxi-rfkill soc@3000000:rfkill@0: bt clock[0] (32k-fanout1)
[    2.828360] sunxi-rfkill soc@3000000:rfkill@0: bt_rst gpio=210 assert=0
[    2.883593] spi-nand spi0.0: Winbond SPI NAND was found.
[    2.889528] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[    2.917502] 5 fixed-partitions partitions found on MTD device spi0.0
[    2.924633] Creating 5 MTD partitions on "spi0.0":
[    2.929981] 0x000000000000-0x000000100000 : "boot0"
[    2.955587] 0x000000100000-0x000000200000 : "u-boot"
[    2.971238] 0x000000200000-0x000000220000 : "dtb"
[    2.990246] 0x000000220000-0x000001220000 : "kernel"
[    2.996610] random: fast init done
[    3.052003] 0x000001220000-0x000008000000 : "rootfs"
[    3.339430] libphy: Fixed MDIO Bus: probed
[    3.344126] CAN device driver interface
[    3.348735] RTL871X: module init start
[    3.352917] RTL871X: rtl8189fs v4.3.24.8_22657.20170607
[    3.364764] RTL871X: module init ret=0
[    3.368971] hso: drivers/net/usb/hso.c: Option Wireless
[    3.374972] usbcore: registered new interface driver hso
[    3.380901] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.388227] sunxi-ehci: EHCI SUNXI driver
[    3.393116] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    3.400077] sunxi-ohci: OHCI SUNXI driver
[    3.408629] usbcore: registered new interface driver uas
[    3.414762] usbcore: registered new interface driver usb-storage
[    3.421555] usbcore: registered new interface driver ums-alauda
[    3.428269] usbcore: registered new interface driver ums-cypress
[    3.435086] usbcore: registered new interface driver ums-datafab
[    3.441891] usbcore: registered new interface driver ums_eneub6250
[    3.448950] usbcore: registered new interface driver ums-freecom
[    3.455737] usbcore: registered new interface driver ums-isd200
[    3.462437] usbcore: registered new interface driver ums-jumpshot
[    3.469408] usbcore: registered new interface driver ums-karma
[    3.476019] usbcore: registered new interface driver ums-onetouch
[    3.489852] usbcore: registered new interface driver ums-realtek
[    3.496679] usbcore: registered new interface driver ums-sddr09
[    3.503422] usbcore: registered new interface driver ums-sddr55
[    3.513609] usbcore: registered new interface driver ums-usbat
[    3.535544] input: sunxi-ts as /devices/platform/soc@3000000/2009c00.rtp/input/input1
[    3.548805] sunxi_gpadc_init,2137, success
[    3.579905] sunxi-rtc 7090000.rtc: registered as rtc0
[    3.585742] sunxi-rtc 7090000.rtc: setting system clock to 1970-01-01T06:25:34 UTC (23134)
[    3.595022] sunxi-rtc 7090000.rtc: sunxi rtc probed
[    3.603401] i2c /dev entries driver
[    3.607493] IR NEC protocol handler initialized
[    3.612545] IR RC5(x/sz) protocol handler initialized
[    3.618690] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pb not found, using dummy regulator
[    3.637144] sunxi_ir_startup: get ir protocol failed
[    3.637173] (NULL device *): deviceless supply  not found, using dummy regulator
[    3.651121] Registered IR keymap rc_map_sunxi
[    3.663235] rc rc0: sunxi-ir as /devices/platform/soc@3000000/7040000.s_cir/rc/rc0
[    3.679002] input: sunxi-ir as /devices/platform/soc@3000000/7040000.s_cir/rc/rc0/s_cir_rx
[    3.696374] sunxi cedar version 1.1
[    3.700545] sunxi-cedar 1c0e000.ve: Adding to iommu group 0
[    3.709312] VE: sunxi_cedar_probe power-domain init!!!
[    3.715130] VE: install start!!!
[    3.715130] 
[    3.725534] VE: cedar-ve the get irq is 42
[    3.725534] 
[    3.734598] VE: ve_debug_proc_info:(ptrval), data:(ptrval), lock:(ptrval)
[    3.734598] 
[    3.743843] VE: install end!!!
[    3.743843] 
[    3.748918] VE: sunxi_cedar_probe
[    3.769349] sunxi-wdt 20500a0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    3.789853] /cpus/cpu@0: unsupported enable-method property: psci
[    3.835153] sunxi-mmc 4020000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.21 2021-05-24 16:10)
[    3.852100] sunxi-mmc 4020000.sdmmc: ***ctl-spec-caps*** 8
[    3.858313] sunxi-mmc 4020000.sdmmc: No vmmc regulator found
[    3.864638] sunxi-mmc 4020000.sdmmc: No vqmmc regulator found
[    3.871070] sunxi-mmc 4020000.sdmmc: No vdmmc regulator found
[    3.877498] sunxi-mmc 4020000.sdmmc: No vd33sw regulator found
[    3.884022] sunxi-mmc 4020000.sdmmc: No vd18sw regulator found
[    3.890524] sunxi-mmc 4020000.sdmmc: No vq33sw regulator found
[    3.897037] sunxi-mmc 4020000.sdmmc: No vq18sw regulator found
[    3.911275] sunxi-mmc 4020000.sdmmc: Got CD GPIO
[    3.916901] sunxi-mmc 4020000.sdmmc: set cd-gpios as 24M fail
[    3.923658] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
[    3.934798] sunxi-mmc 4020000.sdmmc: no vqmmc,Check if there is regulator
[    3.954902] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    3.982953] sunxi-mmc 4020000.sdmmc: detmode:gpio irq
[    4.000125] sunxi-mmc 4021000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.21 2021-05-24 16:10)
[    4.010131] sunxi-mmc 4021000.sdmmc: ***ctl-spec-caps*** 8
[    4.016344] sunxi-mmc 4021000.sdmmc: No vmmc regulator found
[    4.022680] sunxi-mmc 4021000.sdmmc: No vqmmc regulator found
[    4.029102] sunxi-mmc 4021000.sdmmc: No vdmmc regulator found
[    4.035529] sunxi-mmc 4021000.sdmmc: No vd33sw regulator found
[    4.042031] sunxi-mmc 4021000.sdmmc: No vd18sw regulator found
[    4.048573] sunxi-mmc 4021000.sdmmc: No vq33sw regulator found
[    4.055087] sunxi-mmc 4021000.sdmmc: No vq18sw regulator found
[    4.061619] sunxi-mmc 4021000.sdmmc: Cann't get pin bias hs pinstate,check if needed
[    4.078643] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
[    4.089811] sunxi-mmc 4021000.sdmmc: no vqmmc,Check if there is regulator
[    4.109929] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    4.133367] sunxi-mmc 4021000.sdmmc: detmode:manually by software
[    4.159549] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    4.163530] usbcore: registered new interface driver usbhid
[    4.174420] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    4.177392] usbhid: USB HID core driver
[    4.190611] sunxi-mmc 4021000.sdmmc: card claims to support voltages below defined range
[    4.193176] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 0Hz bm PP pm OFF vdd 0 width 1 timing LEGACY(SDR12) dt B
[    4.203636] oprofile: hardware counters not available
[    4.218984] oprofile: using timer interrupt.
[    4.224305] NET: Registered protocol family 10
[    4.245412] Segment Routing with IPv6
[    4.253418] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    4.292021] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
[    4.297964] NET: Registered protocol family 17
[    4.303918] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
[    4.308543] NET: Registered protocol family 15
[    4.327695] can: controller area network core (rev 20170425 abi 9)
[    4.327771] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 4 timing SD-HS(SDR25) dt B
[    4.341894] NET: Registered protocol family 29
[    4.347483] mmc1: new high speed SDIO card at address 0001
[    4.351342] can: raw protocol (rev 20170425)
[    4.362510] can: broadcast manager protocol (rev 20170425 t)
[    4.368951] can: netlink gateway (rev 20190810) max_hops=1
[    4.382828] Registering SWP/SWPB emulation handler
[    4.392386] Loading compiled-in X.509 certificates
[    4.403016] RTL871X: HW EFUSE
[    4.406458] RTL871X: hal_com_config_channel_plan chplan:0x20
[    4.423316] random: crng init done
[    4.615602] RTL871X: rtw_regsty_chk_target_tx_power_valid return _FALSE for band:0, path:0, rs:0, t:-1
[    4.652647] RTL871X: rtw_ndev_init(wlan0) if1 mac_addr=94:a4:08:c4:c0:61
[    4.845431] i2c i2c2: i2c2 supply twi not found, using dummy regulator
[    4.869306] i2c i2c2: probe success
[    4.975491] get ehci0-controller wakeup-source is fail.
[    4.981439] sunxi ehci0-controller don't init wakeup source
[    4.987694] [sunxi-ehci0]: probe, pdev->name: 4101000.ehci0-controller, sunxi_ehci: 0xc0e9b830, 0x:c932a000, irq_no:38
[    4.999634] [sunxi-ehci0]: Not init ehci0
[    5.004598] get ohci0-controller wakeup-source is fail.
[    5.014156] sunxi ohci0-controller don't init wakeup source
[    5.020382] [sunxi-ohci0]: probe, pdev->name: 4101400.ohci0-controller, sunxi_ohci: 0xc0e9bac0
[    5.030001] [sunxi-ohci0]: Not init ohci0
[    5.042315] get ehci1-controller wakeup-source is fail.
[    5.048301] sunxi ehci1-controller don't init wakeup source
[    5.054541] [sunxi-ehci1]: probe, pdev->name: 4200000.ehci1-controller, sunxi_ehci: 0xc0e9bd50, 0x:c9333000, irq_no:3a
[    5.077677] sunxi-ehci 4200000.ehci1-controller: 4200000.ehci1-controller supply hci not found, using dummy regulator
[    5.095065] sunxi-ehci 4200000.ehci1-controller: EHCI Host Controller
[    5.102291] sunxi-ehci 4200000.ehci1-controller: new USB bus registered, assigned bus number 1
[    5.115954] sunxi-ehci 4200000.ehci1-controller: irq 58, io mem 0x04200000
[    5.153358] sunxi-ehci 4200000.ehci1-controller: USB 2.0 started, EHCI 1.00
[    5.177093] hub 1-0:1.0: USB hub found
[    5.181346] hub 1-0:1.0: 1 port detected
[    5.200055] get ohci1-controller wakeup-source is fail.
[    5.206043] sunxi ohci1-controller don't init wakeup source
[    5.212259] [sunxi-ohci1]: probe, pdev->name: 4200400.ohci1-controller, sunxi_ohci: 0xc0e9bfe0
[    5.231430] sunxi-ohci 4200400.ohci1-controller: 4200400.ohci1-controller supply hci not found, using dummy regulator
[    5.247595] sunxi-ohci 4200400.ohci1-controller: OHCI Host Controller
[    5.254867] sunxi-ohci 4200400.ohci1-controller: new USB bus registered, assigned bus number 2
[    5.274119] sunxi-ohci 4200400.ohci1-controller: irq 59, io mem 0x04200400
[    5.359661] hub 2-0:1.0: USB hub found
[    5.363948] hub 2-0:1.0: 1 port detected
[    5.417716] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    5.467316] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    5.474900] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    5.484584] clk: Not disabling unused clocks
[    5.489361] alloc_fd: slot 0 not NULL!
[    5.493577] cfg80211: failed to load regulatory.db
[    5.499087] Warning: unable to open an initial console.
[    5.510184] Freeing unused kernel memory: 3072K
[    5.543502] Kernel init done
[    5.546715] Run /init as init process
[    6.216801] ubi0: default fastmap pool size: 40
[    6.221877] ubi0: default fastmap WL pool size: 20
[    6.228217] ubi0: attaching mtd4
[I have no name!@T113-s3 /root]# [    7.029232] ubi0: scanning is finished
[    7.051601] ubi0: attached mtd4 (name "rootfs", size 109 MiB)
[    7.058122] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    7.065891] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    7.073488] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    7.081248] ubi0: good PEBs: 879, bad PEBs: 0, corrupted PEBs: 0
[    7.087960] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
[    7.096023] ubi0: max/mean erase counter: 4/2, WL threshold: 4096, image sequence number: 2083313605
[    7.106215] ubi0: available PEBs: 0, total reserved PEBs: 879, PEBs reserved for bad PEB handling: 20
[    7.116519] ubi0: background thread "ubi_bgt0d" started, PID 1003
[    7.133442] UBIFS (ubi0:0): Mounting in unauthenticated mode
[    7.261294] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs", R/O mode
[    7.270557] UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[    7.281631] UBIFS (ubi0:0): FS size: 106913792 bytes (101 MiB, 842 LEBs), journal size 9023488 bytes (8 MiB, 72 LEBs)
[    7.293486] UBIFS (ubi0:0): reserved for root: 0 bytes (0 KiB)
[    7.299991] UBIFS (ubi0:0): media format: w4/r0 (latest is w5/r0), UUID 6581B725-5C85-4A2F-8A81-815A46CDCD6C, small LPT model

[I have no name!@T113-s3 /root]# 

启动速度提高的 8秒以内

离线

#18 2022-04-29 09:01:23

yang_AE86
会员
注册时间: 2021-10-19
已发帖子: 16
积分: 12

Re: T113-s3 spi-nand 启动

@Cadence
大佬,用的主线Uboot和内核吗?厉害,能放到github让我们学习下不。

离线

楼主 #19 2022-04-30 16:04:38

Cadence
会员
注册时间: 2022-04-01
已发帖子: 71
积分: 85

Re: T113-s3 spi-nand 启动

重启出错?

Jan  1 08:30:51 T113-s3 daemon.info nit: starting pid 1099, tty '': '/bin/umount -a -r'
[root@T113-s3 /etc]# Jan  1 08:30:51 T113-s3 daemon.info nit: starting pid 1101, tty '': '/sbin/swapoff -a'
Jan  1 08:30:51 T113-s3 daemon.i[ 1846.835865] RTL871X: rtw_cmd_thread(wlan0) _rtw_down_sema(&pcmdpriv->cmd_queue_sema) return _FAIL, break
nfo nit: The system is going down NOW!
Jan  1 08:30:51 T113-s3 syslog.info syslogd exiting
[ 1848.836123] reboot_callback(): empty arg
[ 1848.840563] [ohci1-controller]: ohci shutdown start
[ 1848.846087] [ohci1-controller]: ohci shutdown end
[ 1848.851350] [ehci1-controller]: ehci shutdown start
[ 1848.856842] [ehci1-controller]: ehci shutdown end
[ 1848.862090] sunxi_ohci_hcd_shutdown, ohci0-controller is disable, need not shutdown
[ 1848.870643] sunxi_ehci_hcd_shutdown, ehci0-controller is disable, need not shutdown
[ 1849.634124] ------------[ cut here ]------------
[ 1849.639294] WARNING: CPU: 1 PID: 1102 at drivers/clk/clk.c:960 clk_core_disable+0x38/0xa8
[ 1849.648406] mipi-dsi already disabled
[ 1849.652482] Modules linked in:
[ 1849.655888] CPU: 1 PID: 1102 Comm: init Not tainted 5.4.61 #136
[ 1849.662483] Hardware name: Generic DT based system
[ 1849.667839] [<c010e390>] (unwind_backtrace) from [<c010a8f4>] (show_stack+0x10/0x14)
[ 1849.676479] [<c010a8f4>] (show_stack) from [<c0727e64>] (dump_stack+0x7c/0x98)
[ 1849.684538] [<c0727e64>] (dump_stack) from [<c0119150>] (__warn+0xb8/0xd0)
[ 1849.692205] [<c0119150>] (__warn) from [<c01191e0>] (warn_slowpath_fmt+0x78/0xa0)
[ 1849.700552] [<c01191e0>] (warn_slowpath_fmt) from [<c03bd8d4>] (clk_core_disable+0x38/0xa8)
[ 1849.709867] [<c03bd8d4>] (clk_core_disable) from [<c03bda18>] (clk_core_disable_lock+0x18/0x24)
[ 1849.719572] [<c03bda18>] (clk_core_disable_lock) from [<c0392970>] (clk_disable_unprepare+0xc/0x18)
[ 1849.729663] [<c0392970>] (clk_disable_unprepare) from [<c0396804>] (disp_lcd_disable+0x27c/0x2d4)
[ 1849.739560] [<c0396804>] (disp_lcd_disable) from [<c0386040>] (disp_shutdown+0x68/0x84)
[ 1849.748490] [<c0386040>] (disp_shutdown) from [<c040ff70>] (device_shutdown+0x138/0x1b8)
[ 1849.757518] [<c040ff70>] (device_shutdown) from [<c0136134>] (kernel_restart+0xc/0x50)
[ 1849.766349] [<c0136134>] (kernel_restart) from [<c01363bc>] (__do_sys_reboot+0x140/0x1cc)
[ 1849.775470] [<c01363bc>] (__do_sys_reboot) from [<c0101000>] (ret_fast_syscall+0x0/0x54)
[ 1849.784487] Exception stack(0xc5d53fa8 to 0xc5d53ff0)
[ 1849.790118] 3fa0:                   01234567 0053c798 fee1dead 28121969 01234567 00000000
[ 1849.799236] 3fc0: 01234567 0053c798 0053c81c 00000058 00000000 00000000 0053c000 00000000
[ 1849.808350] 3fe0: 00000058 bed09cb4 b6e60255 b6ddec66
[ 1849.813978] ---[ end trace 29d70b923e4002ee ]---
[ 1849.834375] reboot: Restarting system

解决
修改.config

CONFIG_DISP2_SUNXI=y

改为

# CONFIG_DISP2_SUNXI is not set

最近编辑记录 Cadence (2022-05-01 11:17:58)

离线

楼主 #20 2022-04-30 16:25:46

Cadence
会员
注册时间: 2022-04-01
已发帖子: 71
积分: 85

Re: T113-s3 spi-nand 启动

@yang_AE86

待排除所有已知 bug和整理后,将会放到github

离线

楼主 #21 2022-05-01 00:03:22

Cadence
会员
注册时间: 2022-04-01
已发帖子: 71
积分: 85

Re: T113-s3 spi-nand 启动

出现以下现象

[root@T113-s3 /]# passwd
Changing password for root
New password:
Bad password: too short
Retype password:
passwd: warning: can't lock '/etc/shadow': Permission denied
Jan  1 10:59:01 T113-s3 auth.err passwd: warning: can't lock '/etc/shadow': Permission denied
passwd: warning: can't lock '/etc/passwd': Permission denied
Jan  1 10:59:01 T113-s3 auth.err passwd: warning: can't lock '/etc/passwd': Permission denied
passwd: password for root changed by root
Jan  1 10:59:01 T113-s3 auth.info passwd: password for root changed by root

解决办法
修改.config

CONFIG_FILE_LOCKING=y
CONFIG_MANDATORY_FILE_LOCKING=y

离线

楼主 #22 2022-05-02 09:42:07

Cadence
会员
注册时间: 2022-04-01
已发帖子: 71
积分: 85

Re: T113-s3 spi-nand 启动

T113-s3 hostap 启动脚本

#!/bin/bash
/sbin/ifconfig wlan0 up
/usr/sbin/hostapd /usr/local/hostapd.conf -B
/sbin/ip addr add 192.168.2.1/24 dev wlan0
/sbin/udhcpd /usr/local/udhcpd.conf
[ -d /etc/dropbear/ ] || mkdir -p /etc/dropbear/
[ -d /var/log/ ] || mkdir -p /var/log/
/usr/sbin/dropbear -R -B -W 65536

hostapd.conf 内容

driver=nl80211
ssid=T113_s3
channel=10
interface=wlan0
wpa=2
wpa_passphrase='your_passwd'
wpa_key_mgmt=WPA-PSK
rsn_pairwise=CCMP

udhcpd.conf 内容

# The start and end of the IP lease block
start       192.168.2.100
end     192.168.2.200

# The interface that udhcpd will use
interface   wlan0

opt dns 192.168.2.1
option  subnet  255.255.255.0
opt router  192.168.2.1

最近编辑记录 Cadence (2022-05-02 09:48:09)

离线

楼主 #23 2022-05-07 09:13:53

Cadence
会员
注册时间: 2022-04-01
已发帖子: 71
积分: 85

Re: T113-s3 spi-nand 启动

xfel spinand erase 0x00000000 0x20000 && xfel spinand write 0x00000000 boot0_nand_sun20iw1p1.bin
xfel spinand erase 0x100000 0xa0000 && xfel spinand write 0x100000 u-boot.bin
xfel spinand erase 0x00200000 0x20000 && xfel spinand write 0x00200000 board.dtb
xfel spinand erase 0x00220000 0x800000 && xfel spinand write 0x00220000 uImage
xfel spinand erase 0x00a20000 0x4000000 && xfel spinand write 0x00a20000 usr_ubi.img
xfel spinand erase 0x04a20000 0x35e0000 && xfel spinand write 0x04a20000 root_ubi.img

如何上传文件?
file_burn.tar.gz

最近编辑记录 Cadence (2022-05-07 09:20:45)

离线

#24 2022-05-07 20:21:38

xboot
会员
注册时间: 2019-10-15
已发帖子: 675
积分: 421

Re: T113-s3 spi-nand 启动

可以直接xfel spinand write,没必要xfel spinand erase

离线

楼主 #25 2022-05-08 09:53:22

Cadence
会员
注册时间: 2022-04-01
已发帖子: 71
积分: 85

Re: T113-s3 spi-nand 启动

@xboot
OK,thanks
谢谢你的开源 xfel和 xboot
他们给了我很大的帮助

离线

楼主 #26 2022-05-08 10:47:47

Cadence
会员
注册时间: 2022-04-01
已发帖子: 71
积分: 85

Re: T113-s3 spi-nand 启动

T113_s3 的 coremark.exe

[root@T113-s3 /root]# ./coremark.exe 
2K performance run parameters for coremark.
CoreMark Size    : 666
Total ticks      : 12814
Total time (secs): 12.814000
Iterations/Sec   : 3121.585766
Iterations       : 40000
Compiler version : GCC10.2.1 20210110
Compiler flags   : -O2 -DPERFORMANCE_RUN=1  -lrt
Memory location  : Please put data memory location here
                        (e.g. code in flash, data on heap etc)
seedcrc          : 0xe9f5
[0]crclist       : 0xe714
[0]crcmatrix     : 0x1fd7
[0]crcstate      : 0x8e3a
[0]crcfinal      : 0x25b5
Correct operation validated. See README.md for run and reporting rules.
CoreMark 1.0 : 3121.585766 / GCC10.2.1 20210110 -O2 -DPERFORMANCE_RUN=1  -lrt / Heap

Nuv980 的 coremark.exe

[root@Nuv980 /root]# ./coremark.exe 
2K performance run parameters for coremark.
CoreMark Size    : 666
Total ticks      : 18194
Total time (secs): 18.194000
Iterations/Sec   : 604.594921
Iterations       : 11000
Compiler version : GCC10.2.1 20210110
Compiler flags   : -O2 -DPERFORMANCE_RUN=1  -lrt
Memory location  : Please put data memory location here
                        (e.g. code in flash, data on heap etc)
seedcrc          : 0xe9f5
[0]crclist       : 0xe714
[0]crcmatrix     : 0x1fd7
[0]crcstate      : 0x8e3a
[0]crcfinal      : 0x33ff
Correct operation validated. See README.md for run and reporting rules.
CoreMark 1.0 : 604.594921 / GCC10.2.1 20210110 -O2 -DPERFORMANCE_RUN=1  -lrt / Heap

D1S 的 coremark.exe

[root@Risc-v /root]# ./coremark.exe 
2K performance run parameters for coremark.
CoreMark Size    : 666
Total ticks      : 13034
Total time (secs): 13.034000
Iterations/Sec   : 2301.672549
Iterations       : 30000
Compiler version : GCC10.3.0
Compiler flags   : -O2 -DPERFORMANCE_RUN=1  -lrt
Memory location  : Please put data memory location here
                        (e.g. code in flash, data on heap etc)
seedcrc          : 0xe9f5
[0]crclist       : 0xe714
[0]crcmatrix     : 0x1fd7
[0]crcstate      : 0x8e3a
[0]crcfinal      : 0x5275
Correct operation validated. See README.md for run and reporting rules.
CoreMark 1.0 : 2301.672549 / GCC10.3.0 -O2 -DPERFORMANCE_RUN=1  -lrt / Heap
[root@Risc-v /root]# 

Am3352 的 coremark.exe

[root@Am335x /root]# ./coremark.exe
2K performance run parameters for coremark.
CoreMark Size    : 666
Total ticks      : 11397
Total time (secs): 11.397000
Iterations/Sec   : 965.166272
Iterations       : 11000
Compiler version : GCC10.2.1 20210110
Compiler flags   : -O2 -DPERFORMANCE_RUN=1  -lrt
Memory location  : Please put data memory location here
                        (e.g. code in flash, data on heap etc)
seedcrc          : 0xe9f5
[0]crclist       : 0xe714
[0]crcmatrix     : 0x1fd7
[0]crcstate      : 0x8e3a
[0]crcfinal      : 0x33ff
Correct operation validated. See README.md for run and reporting rules.
CoreMark 1.0 : 965.166272 / GCC10.2.1 20210110 -O2 -DPERFORMANCE_RUN=1  -lrt / Heap

最近编辑记录 Cadence (2022-05-08 21:32:19)

离线

楼主 #27 2022-05-09 11:31:29

Cadence
会员
注册时间: 2022-04-01
已发帖子: 71
积分: 85

Re: T113-s3 spi-nand 启动

Xilinx 的ZYNQ coremark.exe

root@bohoon:~# cat /proc/cpuinfo
processor       : 0
model name      : ARMv7 Processor rev 0 (v7l)
BogoMIPS        : 675.00
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpd32
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x3
CPU part        : 0xc09
CPU revision    : 0

processor       : 1
model name      : ARMv7 Processor rev 0 (v7l)
BogoMIPS        : 675.00
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpd32
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x3
CPU part        : 0xc09
CPU revision    : 0

Hardware        : Xilinx Zynq Platform
Revision        : 0003
Serial          : 0000000000000000

root@bohoon:~# ./coremark.exe
2K performance run parameters for coremark.
CoreMark Size    : 666
Total ticks      : 12170
Total time (secs): 12.170000
Iterations/Sec   : 2465.078061
Iterations       : 30000
Compiler version : GCC10.2.1 20210110
Compiler flags   : -O2 -DPERFORMANCE_RUN=1  -lrt
Memory location  : Please put data memory location here
                        (e.g. code in flash, data on heap etc)
seedcrc          : 0xe9f5
[0]crclist       : 0xe714
[0]crcmatrix     : 0x1fd7
[0]crcstate      : 0x8e3a
[0]crcfinal      : 0x5275
Correct operation validated. See README.md for run and reporting rules.
CoreMark 1.0 : 2465.078061 / GCC10.2.1 20210110 -O2 -DPERFORMANCE_RUN=1  -lrt / Heap

离线

楼主 #28 2022-05-10 09:01:11

Cadence
会员
注册时间: 2022-04-01
已发帖子: 71
积分: 85

Re: T113-s3 spi-nand 启动

在T113_s3上运行 PX4

INFO  [px4] mlockall() enabled. PX4's virtual address space is locked into RAM.
INFO  [px4] assuming working directory is rootfs, no symlinks needed.

______  __   __    ___ 
| ___ \ \ \ / /   /   |
| |_/ /  \ V /   / /| |
|  __/   /   \  / /_| |
| |     / /^\ \ \___  |
\_|     \/   \/     |_/

px4 starting.

INFO  [px4] Calling startup script: /bin/sh etc/init.d/rcS 0
etc/init.d/rcS: line 57: ver: command not found
etc/init.d/rcS: line 120: .: filename argument required
.: usage: . filename [arguments]
ERROR [px4] Startup script returned with return value: 512

离线

#29 2022-05-10 10:28:51

mengxp
会员
注册时间: 2021-10-07
已发帖子: 68
积分: 152

Re: T113-s3 spi-nand 启动

大佬威武,,吊翻了
mark

离线

楼主 #30 2022-05-10 16:20:02

Cadence
会员
注册时间: 2022-04-01
已发帖子: 71
积分: 85

Re: T113-s3 spi-nand 启动

修改 ./.ci/Jenkinsfile-compile

sed -i 's/"beaglebone_blue_default",/"t113_s3_default", "beaglebone_blue_default",/g' ./.ci/Jenkinsfile-compile

修改 Tools/docker_run.sh
第8行

elif [[ $@ =~ .*navio2.* ]] || [[ $@ =~ .*raspberry.* ]] || [[ $@ =~ .*beaglebone.* ]] || [[ $@ =~ .*pilotpi.default ]]; then

改为

elif [[ $@ =~ .*navio2.* ]] || [[ $@ =~ .*raspberry.* ]] || [[ $@ =~ .*beaglebone.* ]] || [[ $@ =~ .*pilotpi.default ]] || [[ $@ =~ .*t113_s3.* ]]; then

建立px4_t113_s3_default

cd boards/px4
mkdir t113_s3
cd t113_s3/
cp -a ../raspberrypi/ ./
cd ../../../

root@i9-10920:/data/Pixhawk/PX4-Autopilot# make px4_t113_s3_default
-- PX4 version: v1.13.0-alpha1-4463-ge080fab8f6
-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.6.9", minimum required is "3") 
-- PX4 config file: /data/Pixhawk/PX4-Autopilot/boards/px4/t113_s3/default.px4board
-- PLATFORM posix
-- LINUX y
-- TOOLCHAIN arm-linux-gnueabihf
-- ARCHITECTURE cortex-a7
-- ROMFSROOT px4fmu_common
-- TESTING y
-- PX4 config: px4_t113_s3_default
-- PX4 platform: posix
-- PX4 lockstep: disabled
-- cmake build type: RelWithDebInfo
-- The CXX compiler identification is GNU 8.2.0
-- The C compiler identification is GNU 8.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /opt/tools/Xilinx/Vitis/2019.2/gnu/aarch32/lin/gcc-arm-linux-gnueabi/bin/arm-linux-gnueabihf-gcc
-- Check for working CXX compiler: /opt/tools/Xilinx/Vitis/2019.2/gnu/aarch32/lin/gcc-arm-linux-gnueabi/bin/arm-linux-gnueabihf-g++
-- Check for working CXX compiler: /opt/tools/Xilinx/Vitis/2019.2/gnu/aarch32/lin/gcc-arm-linux-gnueabi/bin/arm-linux-gnueabihf-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: /opt/tools/Xilinx/Vitis/2019.2/gnu/aarch32/lin/gcc-arm-linux-gnueabi/bin/arm-linux-gnueabihf-gcc
-- Check for working C compiler: /opt/tools/Xilinx/Vitis/2019.2/gnu/aarch32/lin/gcc-arm-linux-gnueabi/bin/arm-linux-gnueabihf-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Building for code coverage
-- ccache enabled (export CCACHE_DISABLE=1 to disable)
-- ROMFS: ROMFS/px4fmu_common
-- Configuring done
-- Generating done
-- Build files have been written to: /data/Pixhawk/PX4-Autopilot/build/px4_t113_s3_default
[0/932] git submodule src/drivers/gps/devices
[9/932] git submodule src/modules/mavlink/mavlink
[10/932] Generating Mavlink development: src/modules/mavlink/mavlink/message_definitions/v1.0/development.xml
Validating /data/Pixhawk/PX4-Autopilot/src/modules/mavlink/mavlink/message_definitions/v1.0/development.xml
Parsing /data/Pixhawk/PX4-Autopilot/src/modules/mavlink/mavlink/message_definitions/v1.0/development.xml
Validating /data/Pixhawk/PX4-Autopilot/src/modules/mavlink/mavlink/message_definitions/v1.0/standard.xml
Parsing /data/Pixhawk/PX4-Autopilot/src/modules/mavlink/mavlink/message_definitions/v1.0/standard.xml
Validating /data/Pixhawk/PX4-Autopilot/src/modules/mavlink/mavlink/message_definitions/v1.0/common.xml
Parsing /data/Pixhawk/PX4-Autopilot/src/modules/mavlink/mavlink/message_definitions/v1.0/common.xml
Validating /data/Pixhawk/PX4-Autopilot/src/modules/mavlink/mavlink/message_definitions/v1.0/minimal.xml
Parsing /data/Pixhawk/PX4-Autopilot/src/modules/mavlink/mavlink/message_definitions/v1.0/minimal.xml
Merged enum MAV_CMD
Merged enum MAV_CMD
Found 228 MAVLink message types in 4 XML files
Generating C implementation in directory /data/Pixhawk/PX4-Autopilot/build/px4_t113_s3_default/mavlink/development
Generating C implementation in directory /data/Pixhawk/PX4-Autopilot/build/px4_t113_s3_default/mavlink/standard
Generating C implementation in directory /data/Pixhawk/PX4-Autopilot/build/px4_t113_s3_default/mavlink/common
Generating C implementation in directory /data/Pixhawk/PX4-Autopilot/build/px4_t113_s3_default/mavlink/minimal
Copying fixed headers for protocol 2.0 to /data/Pixhawk/PX4-Autopilot/build/px4_t113_s3_default/mavlink
[932/932] Linking CXX shared library src/examples/dyn_hello/examples__dyn_hello.px4mod

最近编辑记录 Cadence (2022-05-10 16:27:28)

离线

楼主 #31 2022-05-22 20:43:52

Cadence
会员
注册时间: 2022-04-01
已发帖子: 71
积分: 85

Re: T113-s3 spi-nand 启动

v3s 的 coremark.exe

root:~# cat /proc/cpuinfo
processor       : 0
model name      : ARMv7 Processor rev 5 (v7l)
BogoMIPS        : 48.00
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xc07
CPU revision    : 5

Hardware        : Allwinner sun8i Family
Revision        : 0000
Serial          : 0000000000000000

root:~# ./coremark.exe
2K performance run parameters for coremark.
CoreMark Size    : 666
Total ticks      : 14050
Total time (secs): 14.050000
Iterations/Sec   : 2846.975089
Iterations       : 40000
Compiler version : GCC10.2.1 20210110
Compiler flags   : -O2 -DPERFORMANCE_RUN=1  -lrt
Memory location  : Please put data memory location here
                        (e.g. code in flash, data on heap etc)
seedcrc          : 0xe9f5
[0]crclist       : 0xe714
[0]crcmatrix     : 0x1fd7
[0]crcstate      : 0x8e3a
[0]crcfinal      : 0x25b5
Correct operation validated. See README.md for run and reporting rules.
CoreMark 1.0 : 2846.975089 / GCC10.2.1 20210110 -O2 -DPERFORMANCE_RUN=1  -lrt / Heap

离线

#32 2022-05-28 11:11:11

sy373466062
会员
注册时间: 2018-11-12
已发帖子: 130
积分: 116

Re: T113-s3 spi-nand 启动

@Cadence
imx6ul的CoreMark大概多少分?

离线

楼主 #33 2022-05-31 10:16:19

Cadence
会员
注册时间: 2022-04-01
已发帖子: 71
积分: 85

Re: T113-s3 spi-nand 启动

sy373466062 说:

@Cadence
imx6ul的CoreMark大概多少分?

没有imx6ul的板子

最近编辑记录 Cadence (2022-05-31 10:17:04)

离线

#34 2022-06-02 14:31:06

笃学
会员
注册时间: 2022-05-07
已发帖子: 20
积分: 15

Re: T113-s3 spi-nand 启动

[    1.749924] sunxi-spinand: AW SPINand MTD Layer Version: 2.0 20201228
[    1.757206] sunxi-spinand-phy: AW SPINand Phy Layer Version: 1.10 20200306
[    1.765266] sunxi-spinand-phy: not detect any munufacture from id table
[    1.772729] sunxi-spinand-phy: get spi-nand Model from fdt fail
[    1.779436] sunxi-spinand-phy: get phy info from fdt fail
[    1.785496] sunxi-spinand-phy: not detect munufacture from fdt
[    1.792328] sunxi-spinand-phy: detect munufacture from id table: Winbond
[    1.799880] sunxi-spinand-phy: detect spinand id: ff21aaef ffffffff
[    1.806908] sunxi-spinand-phy: ========== arch info ==========
[    1.813472] sunxi-spinand-phy: Model:               W25N01GVZEIG
[    1.820230] sunxi-spinand-phy: Munufacture:         Winbond
[    1.826481] sunxi-spinand-phy: DieCntPerChip:       1
[    1.832158] sunxi-spinand-phy: BlkCntPerDie:        1024
[    1.838116] sunxi-spinand-phy: PageCntPerBlk:       64
[    1.843889] sunxi-spinand-phy: SectCntPerPage:      4
[    1.849563] sunxi-spinand-phy: OobSizePerPage:      64
[    1.855325] sunxi-spinand-phy: BadBlockFlag:        0x0
[    1.861195] sunxi-spinand-phy: OperationOpt:        0x7
[    1.867056] sunxi-spinand-phy: MaxEraseTimes:       65000
[    1.873120] sunxi-spinand-phy: EccFlag:             0x0
[    1.878990] sunxi-spinand-phy: EccType:             2
[    1.884653] sunxi-spinand-phy: EccProtectedType:    3
[    1.890325] sunxi-spinand-phy: ========================================
[    1.897742] sunxi-spinand-phy:
[    1.901270] sunxi-spinand-phy: ========== physical info ==========
[    1.908203] sunxi-spinand-phy: TotalSize:    128 M
[    1.913584] sunxi-spinand-phy: SectorSize:   512 B
[    1.918973] sunxi-spinand-phy: PageSize:     2 K
[    1.924151] sunxi-spinand-phy: BlockSize:    128 K
[    1.929542] sunxi-spinand-phy: OOBSize:      64 B
[    1.934817] sunxi-spinand-phy: ========================================
[    1.942247] sunxi-spinand-phy:
[    1.945768] sunxi-spinand-phy: ========== logical info ==========
[    1.952611] sunxi-spinand-phy: TotalSize:    128 M
[    1.957984] sunxi-spinand-phy: SectorSize:   512 B
[    1.963367] sunxi-spinand-phy: PageSize:     4 K
[    1.968545] sunxi-spinand-phy: BlockSize:    256 K
[    1.973926] sunxi-spinand-phy: OOBSize:      128 B
[    1.979308] sunxi-spinand-phy: ========================================
[    1.986901] sunxi-spinand-phy: block lock register: 0x00
[    1.993091] sunxi-spinand-phy: feature register: 0x19
[    1.998880] sunxi-spinand-phy: sunxi physic nand init end
[    2.006622] Creating 4 MTD partitions on "sunxi_mtd_nand":
[    2.012876] 0x000000000000-0x000000100000 : "boot0"
[    2.023813] 0x000000100000-0x000000400000 : "uboot"
[    2.034350] random: fast init done
[    2.042294] 0x000000400000-0x000000500000 : "secure_storage"
[    2.054279] 0x000000500000-0x000008000000 : "sys"
[    2.316274] libphy: Fixed MDIO Bus: probed
[    2.324389] sun8iw20-pinctrl pio: pio supply vcc-pg not found, using dummy regulator
[    2.333804] sunxi gmac driver's version: 1.0.0
[    2.339903] gmac-power0: NULL
[    2.343238] gmac-power1: NULL
[    2.346563] gmac-power2: NULL
[    2.355861] Failed to alloc md5
[    2.359827] eth0: Use random mac address
[    2.365016] PPP generic driver version 2.4.2
[    2.371223] PPP BSD Compression module registered
[    2.376581] PPP Deflate Compression module registered
[    2.382348] PPP MPPE Compression module registered
[    2.387742] NET: Registered protocol family 24
[    2.393351] usbcore: registered new interface driver asix
[    2.399781] usbcore: registered new interface driver ax88179_178a
[    2.406983] usbcore: registered new interface driver cdc_ether
[    2.413891] usbcore: registered new interface driver net1080
[    2.420616] usbcore: registered new interface driver cdc_subset
[    2.427580] usbcore: registered new interface driver zaurus
[    2.434371] usbcore: registered new interface driver cdc_ncm
[    2.440750] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.448094] sunxi-ehci: EHCI SUNXI driver
[    2.453254] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    2.460318] sunxi-ohci: OHCI SUNXI driver
[    2.465805] usbcore: registered new interface driver cdc_wdm
[    2.472955] usbcore: registered new interface driver uas
[    2.479541] usbcore: registered new interface driver usb-storage
[    2.486564] usbcore: registered new interface driver ums-alauda
[    2.494481] usbcore: registered new interface driver ums-cypress
[    2.501560] usbcore: registered new interface driver ums-datafab
[    2.508614] usbcore: registered new interface driver ums_eneub6250
[    2.515861] usbcore: registered new interface driver ums-freecom
[    2.522967] usbcore: registered new interface driver ums-isd200
[    2.529919] usbcore: registered new interface driver ums-jumpshot
[    2.537057] usbcore: registered new interface driver ums-karma
[    2.543901] usbcore: registered new interface driver ums-onetouch
[    2.551258] usbcore: registered new interface driver ums-realtek
[    2.558273] usbcore: registered new interface driver ums-sddr09
[    2.565270] usbcore: registered new interface driver ums-sddr55
[    2.572255] usbcore: registered new interface driver ums-usbat
[    2.579772] usbcore: registered new interface driver option
[    2.586296] usbserial: USB Serial support registered for GSM modem (1-port)
[    2.597260] ts probe start
[    2.599669] input: 2009c00.rtp as /devices/platform/soc@3000000/2009c00.rtp/input/input1
[    2.613066] ts probe success
[    2.614677] sunxi_gpadc_init,2137, success
[    2.629793] sunxi-rtc 7090000.rtc: registered as rtc0
[    2.635637] sunxi-rtc 7090000.rtc: setting system clock to 1970-01-01T02:27:47 UTC (8867)
[    2.644951] sunxi-rtc 7090000.rtc: sunxi rtc probed
[    2.651272] i2c /dev entries driver
[    2.655499] IR NEC protocol handler initialized
[    2.660619] IR RC5(x/sz) protocol handler initialized
[    2.667181] sun8iw20-pinctrl pio: pio supply vcc-pb not found, using dummy regulator
[    2.676955] sunxi_ir_startup: get ir protocol failed
[    2.676978] (NULL device *): deviceless supply  not found, using dummy regulator
[    2.691326] Registered IR keymap rc_map_sunxi
[    2.697129] rc rc0: sunxi-ir as /devices/platform/soc@3000000/7040000.s_cir/rc/rc0
[    2.706937] input: sunxi-ir as /devices/platform/soc@3000000/7040000.s_cir/rc/rc0/s_cir_rx
[    2.719081] sunxi cedar version 1.1
[    2.723699] sunxi-cedar 1c0e000.ve: Adding to iommu group 0
[    2.730130] VE: sunxi_cedar_probe power-domain init!!!
[    2.735906] VE: install start!!!
[    2.735906]
[    2.742597] VE: cedar-ve the get irq is 45
[    2.742597]
[    2.749918] VE: ve_debug_proc_info:(ptrval), data:(ptrval), lock:(ptrval)
[    2.749918]
[    2.759252] VE: install end!!!
[    2.759252]
[    2.764334] VE: sunxi_cedar_probe
[    2.772183] sunxi-wdt 20500a0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    2.787980] usbcore: registered new interface driver usbhid
[    2.794278] usbhid: USB HID core driver
[    2.798611] exFAT: Version 1.3.0
[    2.813311] [AUDIOCODEC][sunxi_codec_parse_params][2412]:digital_vol:0, lineout_vol:26, mic1gain:31, mic2gain:31 pa_msleep:120, pa_level:0, pa_pwr_level:1
[    2.813311]
[    2.830563] [AUDIOCODEC][sunxi_codec_parse_params][2448]:adcdrc_cfg:0, adchpf_cfg:0, dacdrc_cfg:2, dachpf:3
[    2.843242] [AUDIOCODEC][sunxi_internal_codec_probe][2609]:codec probe finished
[    2.856267] debugfs: Directory '203034c.dummy_cpudai' with parent 'audiocodec' already present!
[    2.866270] [SNDCODEC][sunxi_card_init][583]:card init finished
[    2.874845] sunxi-codec-machine 2030340.sound: 2030000.codec <-> 203034c.dummy_cpudai mapping ok
[    2.892696] input: audiocodec sunxi Audio Jack as /devices/platform/soc@3000000/2030340.sound/sound/card0/input3
[    2.907094] [SNDCODEC][sunxi_card_dev_probe][800]:jack_enable missing, use default enable jack
[    2.916831] [SNDCODEC][sunxi_card_dev_probe][810]:hp_detect_case missing, use default hp_detect_low
[    2.927464] [SNDCODEC][sunxi_card_dev_probe][836]:register card finished
[    2.938778] [SNDCODEC][sunxi_hs_init_work][259]:resume-->report switch
[    2.951067] NET: Registered protocol family 10
[    2.963694] Segment Routing with IPv6
[    2.968150] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.984908] NET: Registered protocol family 17
[    2.990090] NET: Registered protocol family 15
[    2.995076] lib80211: common routines for IEEE802.11 drivers
[    3.001524] lib80211_crypt: registered algorithm 'NULL'
[    3.007408] lib80211_crypt: registered algorithm 'WEP'
[    3.013207] lib80211_crypt: registered algorithm 'CCMP'
[    3.019111] lib80211_crypt: registered algorithm 'TKIP'
[    3.025499] Key type dns_resolver registered
[    3.030862] Registering SWP/SWPB emulation handler
[    3.038457] Loading compiled-in X.509 certificates
[    3.049894] HDMI 2.0 driver init start!
[    3.054281] boot_hdmi=false
[    3.057529] ERROR: can not get hdmi_cts_compatibility
[    3.063355] ERROR: pinctrl_get for HDMI2.0 DDC fail
[    3.071496] HDMI2.0 module init end
[    3.193141] sunxi-i2c sunxi-i2c1: sunxi-i2c1 supply twi not found, using dummy regulator
[    3.207014] sunxi-i2c sunxi-i2c1: probe success
[    3.222479] get ehci0-controller wakeup-source is fail.
[    3.228767] sunxi ehci0-controller don't init wakeup source
[    3.235032] [sunxi-ehci0]: probe, pdev->name: 4101000.ehci0-controller, sunxi_ehci: 0xc0c89df0, 0x:c886f000, irq_no:3b
[    3.247055] [sunxi-ehci0]: Not init ehci0
[    3.252443] get ohci0-controller wakeup-source is fail.
[    3.258806] sunxi ohci0-controller don't init wakeup source
[    3.265070] [sunxi-ohci0]: probe, pdev->name: 4101400.ohci0-controller, sunxi_ohci: 0xc0c8a080
[    3.274765] [sunxi-ohci0]: Not init ohci0
[    3.280130] get ehci1-controller wakeup-source is fail.
[    3.286404] sunxi ehci1-controller don't init wakeup source
[    3.292693] [sunxi-ehci1]: probe, pdev->name: 4200000.ehci1-controller, sunxi_ehci: 0xc0c8a310, 0x:c8879000, irq_no:3d
[    3.306040] sunxi-ehci 4200000.ehci1-controller: 4200000.ehci1-controller supply hci not found, using dummy regulator
[    3.320765] sunxi-ehci 4200000.ehci1-controller: EHCI Host Controller
[    3.328187] sunxi-ehci 4200000.ehci1-controller: new USB bus registered, assigned bus number 1
[    3.338928] sunxi-ehci 4200000.ehci1-controller: irq 61, io mem 0x04200000
[    3.368737] sunxi-ehci 4200000.ehci1-controller: USB 2.0 started, EHCI 1.00
[    3.376563] sunxi-ehci 4200000.ehci1-controller: ehci_irq: highspeed device connect
[    3.387780] hub 1-0:1.0: USB hub found
[    3.392310] hub 1-0:1.0: 1 port detected
[    3.400855] get ohci1-controller wakeup-source is fail.
[    3.407181] sunxi ohci1-controller don't init wakeup source
[    3.413470] [sunxi-ohci1]: probe, pdev->name: 4200400.ohci1-controller, sunxi_ohci: 0xc0c8a5a0
[    3.424500] sunxi-ohci 4200400.ohci1-controller: 4200400.ohci1-controller supply hci not found, using dummy regulator
[    3.437955] sunxi-ohci 4200400.ohci1-controller: OHCI Host Controller
[    3.445425] sunxi-ohci 4200400.ohci1-controller: new USB bus registered, assigned bus number 2
[    3.456043] sunxi-ohci 4200400.ohci1-controller: irq 62, io mem 0x04200400
[    3.538455] hub 2-0:1.0: USB hub found
[    3.543001] hub 2-0:1.0: 1 port detected
[    3.554166] ubi0: attaching mtd3
[    3.758743] usb 1-1: new high-speed USB device number 2 using sunxi-ehci
[    3.964525] hub 1-1:1.0: USB hub found
[    3.969374] hub 1-1:1.0: 4 ports detected
[    4.015196] random: crng init done
[    4.041220] ubi0: scanning is finished
[    4.090665] ubi0: attached mtd3 (name "sys", size 123 MiB)
[    4.096831] ubi0: PEB size: 262144 bytes (256 KiB), LEB size: 258048 bytes
[    4.104581] ubi0: min./max. I/O unit sizes: 4096/4096, sub-page size 2048
[    4.112220] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    4.120046] ubi0: good PEBs: 492, bad PEBs: 0, corrupted PEBs: 0
[    4.126788] ubi0: user volume: 9, internal volumes: 1, max. volumes count: 128
[    4.134902] ubi0: max/mean erase counter: 3/1, WL threshold: 4096, image sequence number: 0
[    4.144315] ubi0: available PEBs: 0, total reserved PEBs: 492, PEBs reserved for bad PEB handling: 20
[    4.154700] ubi0: background thread "ubi_bgt0d" started, PID 1073

请问大佬,有没有什么办法更换Nand的型号呀,原本使用"W25N01GVZEIG"只有128M,想用另外一个型号"W25N02KVZEIR",但是焊接上还是识别到原先的型号。

离线

楼主 #35 2022-06-03 23:27:58

Cadence
会员
注册时间: 2022-04-01
已发帖子: 71
积分: 85

Re: T113-s3 spi-nand 启动

@笃学

看了一下应该是修改
mtd/awnand/spinand/physic/id.c
添加

struct aw_spinand_phy_info winbond[] = {
    {
        .Model      = "W25N01GVZEIG",
        .NandID     = {0xef, 0xaa, 0x21, 0xff, 0xff, 0xff, 0xff, 0xff},
        .DieCntPerChip  = 1,
        .SectCntPerPage = 4,
        .PageCntPerBlk  = 64,
        .BlkCntPerDie   = 1024,
        .OobSizePerPage = 64,
        .OperationOpt   = SPINAND_QUAD_READ | SPINAND_QUAD_PROGRAM |
            SPINAND_DUAL_READ,
        .MaxEraseTimes  = 65000,
        .EccType    = BIT2_LIMIT1_ERR2,
        .EccProtectedType = SIZE16_OFF4_LEN4_OFF8,
        .BadBlockFlag = BAD_BLK_FLAG_FRIST_1_PAGE,
    },
    {
        .Model      = "W25N02KVZEIR",
        .NandID     = {0xef, 0xaa, 0x22, 0xff, 0xff, 0xff, 0xff, 0xff},
        .DieCntPerChip  = 1,
        .SectCntPerPage = 4,
        .PageCntPerBlk  = 64,
        .BlkCntPerDie   = 2048,
        .OobSizePerPage = 64,
        .OperationOpt   = SPINAND_QUAD_READ | SPINAND_QUAD_PROGRAM |
            SPINAND_DUAL_READ,
        .MaxEraseTimes  = 65000,
        .EccType    = BIT2_LIMIT1_ERR2,
        .EccProtectedType = SIZE16_OFF4_LEN4_OFF8,
        .BadBlockFlag = BAD_BLK_FLAG_FRIST_1_PAGE,
    },
};

应该就可以
不过我没有用全志的驱动

最近编辑记录 Cadence (2022-06-03 23:31:41)

离线

#36 2022-06-07 11:18:27

笃学
会员
注册时间: 2022-05-07
已发帖子: 20
积分: 15

Re: T113-s3 spi-nand 启动

@Cadence
感谢大佬,我也是在这添加了“W25N02KVZEIR”的配置信息,能够识别出来,出现了“--[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) ]--”的现象,这可能是什么因素引出的嘞,大概可以往哪些方面着手呀

[    1.712590] sunxi-spinand: AW SPINand MTD Layer Version: 2.0 20201228
[    1.719867] sunxi-spinand-phy: AW SPINand Phy Layer Version: 1.10 20200306
[    1.727929] sunxi-spinand-phy: not detect any munufacture from id table
[    1.735397] sunxi-spinand-phy: get spi-nand Model from fdt fail
[    1.742084] sunxi-spinand-phy: get phy info from fdt fail
[    1.748143] sunxi-spinand-phy: not detect munufacture from fdt
[    1.754876] sunxi-spinand-phy: detect munufacture from id table: Winbond
[    1.762416] sunxi-spinand-phy: detect spinand id: ff22aaef ffffffff
[    1.769455] sunxi-spinand-phy: ========== arch info ==========
[    1.776011] sunxi-spinand-phy: Model:               W25N02KVZEIR
[    1.782768] sunxi-spinand-phy: Munufacture:         Winbond
[    1.789019] sunxi-spinand-phy: DieCntPerChip:       1
[    1.794701] sunxi-spinand-phy: BlkCntPerDie:        2048
[    1.800667] sunxi-spinand-phy: PageCntPerBlk:       64
[    1.806442] sunxi-spinand-phy: SectCntPerPage:      4
[    1.812128] sunxi-spinand-phy: OobSizePerPage:      64
[    1.817889] sunxi-spinand-phy: BadBlockFlag:        0x0
[    1.823760] sunxi-spinand-phy: OperationOpt:        0x7
[    1.829627] sunxi-spinand-phy: MaxEraseTimes:       65000
[    1.835696] sunxi-spinand-phy: EccFlag:             0x0
[    1.841575] sunxi-spinand-phy: EccType:             2
[    1.847238] sunxi-spinand-phy: EccProtectedType:    3
[    1.852914] sunxi-spinand-phy: ========================================
[    1.860338] sunxi-spinand-phy:
[    1.863874] sunxi-spinand-phy: ========== physical info ==========
[    1.870812] sunxi-spinand-phy: TotalSize:    256 M
[    1.876206] sunxi-spinand-phy: SectorSize:   512 B
[    1.881655] sunxi-spinand-phy: PageSize:     2 K
[    1.886850] sunxi-spinand-phy: BlockSize:    128 K
[    1.892247] sunxi-spinand-phy: OOBSize:      64 B
[    1.897554] sunxi-spinand-phy: ========================================
[    1.904992] sunxi-spinand-phy:
[    1.908512] sunxi-spinand-phy: ========== logical info ==========
[    1.915366] sunxi-spinand-phy: TotalSize:    256 M
[    1.920739] sunxi-spinand-phy: SectorSize:   512 B
[    1.926124] sunxi-spinand-phy: PageSize:     4 K
[    1.931322] sunxi-spinand-phy: BlockSize:    256 K
[    1.936695] sunxi-spinand-phy: OOBSize:      128 B
[    1.942087] sunxi-spinand-phy: ========================================
[    1.949666] sunxi-spinand-phy: block lock register: 0x00
[    1.955805] sunxi-spinand-phy: feature register: 0x19
[    1.961602] sunxi-spinand-phy: sunxi physic nand init end
[    1.969250] Creating 4 MTD partitions on "sunxi_mtd_nand":
[    1.975529] 0x000000000000-0x000000100000 : "boot0"
[    1.986290] 0x000000100000-0x000000400000 : "uboot"
[    1.996691] random: fast init done
[    2.004560] 0x000000400000-0x000000500000 : "secure_storage"
[    2.016278] 0x000000500000-0x000010000000 : "sys"
[    2.446730] libphy: Fixed MDIO Bus: probed
[    2.454576] sun8iw20-pinctrl pio: pio supply vcc-pg not found, using dummy regulator
[    2.463991] sunxi gmac driver's version: 1.0.0
[    2.470055] gmac-power0: NULL
[    2.473423] gmac-power1: NULL
[    2.476749] gmac-power2: NULL
[    2.486077] Failed to alloc md5
[    2.489618] eth0: Use random mac address
[    2.495798] PPP generic driver version 2.4.2
[    2.502009] PPP BSD Compression module registered
[    2.507333] PPP Deflate Compression module registered
[    2.513585] PPP MPPE Compression module registered
[    2.518965] NET: Registered protocol family 24
[    2.524574] usbcore: registered new interface driver asix
[    2.531036] usbcore: registered new interface driver ax88179_178a
[    2.538210] usbcore: registered new interface driver cdc_ether
[    2.545693] usbcore: registered new interface driver net1080
[    2.552410] usbcore: registered new interface driver cdc_subset
[    2.559375] usbcore: registered new interface driver zaurus
[    2.566148] usbcore: registered new interface driver cdc_ncm
[    2.572532] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.579856] sunxi-ehci: EHCI SUNXI driver
[    2.585016] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    2.592060] sunxi-ohci: OHCI SUNXI driver
[    2.597541] usbcore: registered new interface driver cdc_wdm
[    2.604690] usbcore: registered new interface driver uas
[    2.611240] usbcore: registered new interface driver usb-storage
[    2.618269] usbcore: registered new interface driver ums-alauda
[    2.625648] usbcore: registered new interface driver ums-cypress
[    2.632724] usbcore: registered new interface driver ums-datafab
[    2.639741] usbcore: registered new interface driver ums_eneub6250
[    2.646992] usbcore: registered new interface driver ums-freecom
[    2.654078] usbcore: registered new interface driver ums-isd200
[    2.661051] usbcore: registered new interface driver ums-jumpshot
[    2.668168] usbcore: registered new interface driver ums-karma
[    2.675044] usbcore: registered new interface driver ums-onetouch
[    2.682387] usbcore: registered new interface driver ums-realtek
[    2.689407] usbcore: registered new interface driver ums-sddr09
[    2.696382] usbcore: registered new interface driver ums-sddr55
[    2.703373] usbcore: registered new interface driver ums-usbat
[    2.710830] usbcore: registered new interface driver option
[    2.717403] usbserial: USB Serial support registered for GSM modem (1-port)
[    2.728340] ts probe start
[    2.730674] input: 2009c00.rtp as /devices/platform/soc@3000000/2009c00.rtp/input/input1
[    2.744241] ts probe success
[    2.745853] sunxi_gpadc_init,2137, success
[    2.755451] sunxi-rtc 7090000.rtc: errata__fix_alarm_day_reg_default_value(): ALARM0_DAY_REG=0, set it to 1
[    2.771837] sunxi-rtc 7090000.rtc: registered as rtc0
[    2.777643] sunxi-rtc 7090000.rtc: setting system clock to 1970-01-01T00:01:09 UTC (69)
[    2.786768] sunxi-rtc 7090000.rtc: sunxi rtc probed
[    2.793088] i2c /dev entries driver
[    2.797314] IR NEC protocol handler initialized
[    2.802425] IR RC5(x/sz) protocol handler initialized
[    2.808970] sun8iw20-pinctrl pio: pio supply vcc-pb not found, using dummy regulator
[    2.818732] sunxi_ir_startup: get ir protocol failed
[    2.818754] (NULL device *): deviceless supply  not found, using dummy regulator
[    2.833065] Registered IR keymap rc_map_sunxi
[    2.838855] rc rc0: sunxi-ir as /devices/platform/soc@3000000/7040000.s_cir/rc/rc0
[    2.848644] input: sunxi-ir as /devices/platform/soc@3000000/7040000.s_cir/rc/rc0/s_cir_rx
[    2.860682] sunxi cedar version 1.1
[    2.865317] sunxi-cedar 1c0e000.ve: Adding to iommu group 0
[    2.871734] VE: sunxi_cedar_probe power-domain init!!!
[    2.877510] VE: install start!!!
[    2.877510]
[    2.884183] VE: cedar-ve the get irq is 45
[    2.884183]
[    2.891515] VE: ve_debug_proc_info:(ptrval), data:(ptrval), lock:(ptrval)
[    2.891515]
[    2.900791] VE: install end!!!
[    2.900791]
[    2.905898] VE: sunxi_cedar_probe
[    2.913729] sunxi-wdt 20500a0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    2.929467] usbcore: registered new interface driver usbhid
[    2.935750] usbhid: USB HID core driver
[    2.940055] exFAT: Version 1.3.0
[    2.954611] [AUDIOCODEC][sunxi_codec_parse_params][2412]:digital_vol:0, lineout_vol:26, mic1gain:31, mic2gain:31 pa_msleep:120, pa_level:0, pa_pwr_level:1
[    2.954611]
[    2.971827] [AUDIOCODEC][sunxi_codec_parse_params][2448]:adcdrc_cfg:0, adchpf_cfg:0, dacdrc_cfg:2, dachpf:3
[    2.984492] [AUDIOCODEC][sunxi_internal_codec_probe][2609]:codec probe finished
[    2.997451] debugfs: Directory '203034c.dummy_cpudai' with parent 'audiocodec' already present!
[    3.007455] [SNDCODEC][sunxi_card_init][583]:card init finished
[    3.016010] sunxi-codec-machine 2030340.sound: 2030000.codec <-> 203034c.dummy_cpudai mapping ok
[    3.034134] input: audiocodec sunxi Audio Jack as /devices/platform/soc@3000000/2030340.sound/sound/card0/input3
[    3.048535] [SNDCODEC][sunxi_card_dev_probe][800]:jack_enable missing, use default enable jack
[    3.058250] [SNDCODEC][sunxi_card_dev_probe][810]:hp_detect_case missing, use default hp_detect_low
[    3.068846] [SNDCODEC][sunxi_card_dev_probe][836]:register card finished
[    3.080947] [SNDCODEC][sunxi_hs_init_work][259]:resume-->report switch
[    3.086504] NET: Registered protocol family 10
[    3.102190] Segment Routing with IPv6
[    3.106649] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    3.124298] NET: Registered protocol family 17
[    3.129435] NET: Registered protocol family 15
[    3.135008] lib80211: common routines for IEEE802.11 drivers
[    3.141436] lib80211_crypt: registered algorithm 'NULL'
[    3.147319] lib80211_crypt: registered algorithm 'WEP'
[    3.153122] lib80211_crypt: registered algorithm 'CCMP'
[    3.159011] lib80211_crypt: registered algorithm 'TKIP'
[    3.165405] Key type dns_resolver registered
[    3.170761] Registering SWP/SWPB emulation handler
[    3.178434] Loading compiled-in X.509 certificates
[    3.189767] HDMI 2.0 driver init start!
[    3.194256] boot_hdmi=false
[    3.197504] ERROR: can not get hdmi_cts_compatibility
[    3.203318] ERROR: pinctrl_get for HDMI2.0 DDC fail
[    3.211482] HDMI2.0 module init end
[    3.333259] sunxi-i2c sunxi-i2c1: sunxi-i2c1 supply twi not found, using dummy regulator
[    3.346829] sunxi-i2c sunxi-i2c1: probe success
[    3.362532] get ehci0-controller wakeup-source is fail.
[    3.368775] sunxi ehci0-controller don't init wakeup source
[    3.375071] [sunxi-ehci0]: probe, pdev->name: 4101000.ehci0-controller, sunxi_ehci: 0xc0c89df0, 0x:c886f000, irq_no:3b
[    3.387093] [sunxi-ehci0]: Not init ehci0
[    3.392482] get ohci0-controller wakeup-source is fail.
[    3.398790] sunxi ohci0-controller don't init wakeup source
[    3.405078] [sunxi-ohci0]: probe, pdev->name: 4101400.ohci0-controller, sunxi_ohci: 0xc0c8a080
[    3.414759] [sunxi-ohci0]: Not init ohci0
[    3.420132] get ehci1-controller wakeup-source is fail.
[    3.426433] sunxi ehci1-controller don't init wakeup source
[    3.432714] [sunxi-ehci1]: probe, pdev->name: 4200000.ehci1-controller, sunxi_ehci: 0xc0c8a310, 0x:c8879000, irq_no:3d
[    3.446078] sunxi-ehci 4200000.ehci1-controller: 4200000.ehci1-controller supply hci not found, using dummy regulator
[    3.460752] sunxi-ehci 4200000.ehci1-controller: EHCI Host Controller
[    3.468204] sunxi-ehci 4200000.ehci1-controller: new USB bus registered, assigned bus number 1
[    3.478884] sunxi-ehci 4200000.ehci1-controller: irq 61, io mem 0x04200000
[    3.510901] sunxi-ehci 4200000.ehci1-controller: USB 2.0 started, EHCI 1.00
[    3.518726] sunxi-ehci 4200000.ehci1-controller: ehci_irq: highspeed device connect
[    3.530004] hub 1-0:1.0: USB hub found
[    3.534569] hub 1-0:1.0: 1 port detected
[    3.543095] get ohci1-controller wakeup-source is fail.
[    3.549418] sunxi ohci1-controller don't init wakeup source
[    3.555707] [sunxi-ohci1]: probe, pdev->name: 4200400.ohci1-controller, sunxi_ohci: 0xc0c8a5a0
[    3.566729] sunxi-ohci 4200400.ohci1-controller: 4200400.ohci1-controller supply hci not found, using dummy regulator
[    3.580193] sunxi-ohci 4200400.ohci1-controller: OHCI Host Controller
[    3.587643] sunxi-ohci 4200400.ohci1-controller: new USB bus registered, assigned bus number 2
[    3.598270] sunxi-ohci 4200400.ohci1-controller: irq 62, io mem 0x04200400
[    3.680630] hub 2-0:1.0: USB hub found
[    3.685176] hub 2-0:1.0: 1 port detected
[    3.696323] ubi0: attaching mtd3
[    3.722290] random: crng init done
[    3.910914] usb 1-1: new high-speed USB device number 2 using sunxi-ehci
[    4.126825] hub 1-1:1.0: USB hub found
[    4.131533] hub 1-1:1.0: 4 ports detected
[    4.560917] usb 1-1.1: new high-speed USB device number 3 using sunxi-ehci
[    4.755316] ubi0: scanning is finished
[    4.825860] ubi0: attached mtd3 (name "sys", size 251 MiB)
[    4.832058] ubi0: PEB size: 262144 bytes (256 KiB), LEB size: 258048 bytes
[    4.839806] ubi0: min./max. I/O unit sizes: 4096/4096, sub-page size 2048
[    4.847450] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    4.855344] ubi0: good PEBs: 1004, bad PEBs: 0, corrupted PEBs: 0
[    4.862233] ubi0: user volume: 9, internal volumes: 1, max. volumes count: 128
[    4.870356] ubi0: max/mean erase counter: 3/1, WL threshold: 4096, image sequence number: 0
[    4.879746] ubi0: available PEBs: 492, total reserved PEBs: 512, PEBs reserved for bad PEB handling: 40
[    4.890330] ubi0: background thread "ubi_bgt0d" started, PID 1076
[    4.901198] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    4.917002] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    4.925346] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    4.935072] clk: Not disabling unused clocks
[    4.939911] ALSA device list:
[    4.943334] cfg80211: failed to load regulatory.db
[    4.948785]   #0: audiocodec
[    4.952144] alloc_fd: slot 0 not NULL!
[    4.961563] UBIFS (ubi0:5): Mounting in unauthenticated mode
[    5.030970] usb 1-1.3: new high-speed USB device number 4 using sunxi-ehci
[    5.295559] cdc_ether 1-1.3:1.0 usb0: register 'cdc_ether' at usb-sunxi-ehci-1.3, CDC Ethernet Device, ae:0c:29:a3:9b:6d
[    5.314217] option 1-1.3:1.2: GSM modem (1-port) converter detected
[    5.325119] usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB0
[    5.337911] option 1-1.3:1.3: GSM modem (1-port) converter detected
[    5.348588] usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB1
[    6.013973] UBIFS error (ubi0:5 pid 1): ubifs_check_node: bad CRC: calculated 0x16ca7e75, read 0x1312004
[    6.024649] UBIFS error (ubi0:5 pid 1): ubifs_check_node: bad node at LEB 294:90000
[    6.033257]  magic          0x6101831
[    6.037361]  crc            0x1312004
[    6.041477]  node_type      0 (inode node)
[    6.046068]  group_type     1 (in node group)
[    6.050967]  sqnum          61614
[    6.054682]  len            160
[    6.058203]  key            (5543, inode)
[    6.062707]  creat_sqnum    61612
[    6.066420]  size           0
[    6.069744]  nlink          1
[    6.073088]  atime          32426.0
[    6.076997]  mtime          32426.0
[    6.080930]  ctime          32426.0
[    6.084839]  uid            0
[    6.088175]  gid            0
[    6.091515]  mode           33206
[    6.095228]  flags          0x1
[    6.098747]  xattr_cnt      4294967295
[    6.102958]  xattr_size     4294967295
[    6.107158]  xattr_names    4294967295
[    6.111373]  compr_type     0xffff
[    6.115184]  data len       4294967295
[    6.119391] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 5.4.61+ #21
[    6.126226] Hardware name: Generic DT based system
[    6.131617] [<c010cf08>] (unwind_backtrace) from [<c010a1b8>] (show_stack+0x10/0x14)
[    6.140314] [<c010a1b8>] (show_stack) from [<c06fe5f0>] (dump_stack+0x7c/0x98)
[    6.148425] [<c06fe5f0>] (dump_stack) from [<c02805ec>] (ubifs_check_node+0x1a8/0x1e4)
[    6.157314] [<c02805ec>] (ubifs_check_node) from [<c0286884>] (ubifs_scan_a_node+0x94/0x13c)
[    6.166790] [<c0286884>] (ubifs_scan_a_node) from [<c0286c10>] (ubifs_scan+0x50/0x22c)
[    6.175681] [<c0286c10>] (ubifs_scan) from [<c02875ec>] (ubifs_replay_journal+0x560/0xf68)
[    6.184964] [<c02875ec>] (ubifs_replay_journal) from [<c027e0c8>] (ubifs_mount+0x960/0x13dc)
[    6.194442] [<c027e0c8>] (ubifs_mount) from [<c02116a0>] (legacy_get_tree+0x24/0x48)
[    6.203141] [<c02116a0>] (legacy_get_tree) from [<c01e6b7c>] (vfs_get_tree+0x24/0xd4)
[    6.211935] [<c01e6b7c>] (vfs_get_tree) from [<c0203eb0>] (do_mount+0x688/0x730)
[    6.220240] [<c0203eb0>] (do_mount) from [<c0204190>] (ksys_mount+0x70/0x98)
[    6.228154] [<c0204190>] (ksys_mount) from [<c0b0114c>] (mount_block_root+0x130/0x32c)
[    6.237041] [<c0b0114c>] (mount_block_root) from [<c0b01450>] (prepare_namespace+0x84/0x178)
[    6.246515] [<c0b01450>] (prepare_namespace) from [<c0712ccc>] (kernel_init+0x8/0x10c)
[    6.255406] [<c0712ccc>] (kernel_init) from [<c01010e8>] (ret_from_fork+0x14/0x2c)
[    6.263898] Exception stack(0xc704dfb0 to 0xc704dff8)
[    6.269565] dfa0:                                     00000000 00000000 00000000 00000000
[    6.278742] dfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    6.287917] dfe0: 00000000 00000000 00000000 00000000 00000013 00000000
[    6.295415] UBIFS error (ubi0:5 pid 1): ubifs_scan: bad node
[    6.301788] UBIFS error (ubi0:5 pid 1): ubifs_scanned_corruption: corruption at LEB 294:90000
[    6.311372] UBIFS error (ubi0:5 pid 1): ubifs_scanned_corruption: first 8192 bytes from LEB 294:90000
[    6.321740] 00000000: 06101831 01312004 0000f0ae 00000000 000000a0 00000100 000015a7 00000000  1.... 1.........................
[    6.334641] 00000020: 00000000 00000000 0000f0ac 00000000 00000000 00000000 00007eaa 00000000  .........................~......
[    6.347540] 00000040: 00007eaa 00000000 00007eaa 00000000 00000000 00000000 00000000 00000001  .~.......~......................
[    6.360440] 00000060: 00000000 00000000 000081b6 00000001 ffffffff ffffffff ffffffff ffffffff  ................................
[    6.373336] 00000080: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    6.386238] 000000a0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    6.399152] 000000c0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    6.412054] 000000e0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    6.424957] 00000100: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    6.437857] 00000120: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    6.450757] 00000140: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    6.463702] 00000160: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    6.476606] 00000180: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    6.489510] 000001a0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    6.502424] 000001c0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    6.515326] 000001e0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    6.528229] 00000200: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    6.541132] 00000220: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    6.554032] 00000240: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    6.566935] 00000260: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    6.579838] 00000280: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    6.592736] 000002a0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    6.605648] 000002c0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    6.618544] 000002e0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    6.631439] 00000300: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    6.644341] 00000320: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    6.657242] 00000340: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    6.670144] 00000360: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    6.683047] 00000380: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    6.695947] 000003a0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    6.708860] 000003c0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    6.721759] 000003e0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    6.734659] 00000400: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    6.747562] 00000420: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    6.760464] 00000440: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    6.773365] 00000460: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    6.786265] 00000480: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    6.799165] 000004a0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    6.812074] 000004c0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    6.824972] 000004e0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    6.837873] 00000500: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    6.850773] 00000520: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    6.863677] 00000540: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    6.876576] 00000560: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    6.889475] 00000580: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    6.902378] 000005a0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    6.915289] 000005c0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    6.928187] 000005e0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    6.930882] hdmi_hpd_sys_config_release
[    6.941093] 00000600: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    6.958277] 00000620: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    6.971181] 00000640: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    6.984081] 00000660: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    6.996984] 00000680: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    7.009884] 000006a0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    7.022804] 000006c0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    7.022810]
[    7.022810] insmod_host_driver
[    7.022810]
[    7.035703] 000006e0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    7.035716] 00000700: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    7.042485] [ehci0-controller]: sunxi_usb_enable_ehci
[    7.055357] 00000720: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    7.068272] [sunxi-ehci0]: probe, pdev->name: 4101000.ehci0-controller, sunxi_ehci: 0xc0c89df0, 0x:c886f000, irq_no:3b
[    7.073915] 00000740: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    7.088521] sunxi-ehci 4101000.ehci0-controller: 4101000.ehci0-controller supply hci not found, using dummy regulator
[    7.098854] 00000760: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    7.113937] sunxi-ehci 4101000.ehci0-controller: EHCI Host Controller
[    7.124118] 00000780: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    7.136904] sunxi-ehci 4101000.ehci0-controller: new USB bus registered, assigned bus number 3
[    7.143922] 000007a0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    7.179582] 000007c0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    7.180223] sunxi-ehci 4101000.ehci0-controller: irq 59, io mem 0x04101000
[    7.192510] 000007e0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    7.192522] 00000800: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    7.192534] 00000820: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    7.230912] sunxi-ehci 4101000.ehci0-controller: USB 2.0 started, EHCI 1.00
[    7.246793] 00000840: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    7.253093] hub 3-0:1.0: USB hub found
[    7.260106] 00000860: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    7.264541] hub 3-0:1.0: 1 port detected
[    7.276842] 00000880: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    7.286059] [ohci0-controller]: sunxi_usb_enable_ohci
[    7.294595] 000008a0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    7.300233] [sunxi-ohci0]: probe, pdev->name: 4101400.ohci0-controller, sunxi_ohci: 0xc0c8a080
[    7.313023] 000008c0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    7.324195] sunxi-ohci 4101400.ohci0-controller: 4101400.ohci0-controller supply hci not found, using dummy regulator
[    7.335841] 000008e0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    7.349377] sunxi-ohci 4101400.ohci0-controller: OHCI Host Controller
[    7.360414] 00000900: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    7.368401] sunxi-ohci 4101400.ohci0-controller: new USB bus registered, assigned bus number 4
[    7.380781] 00000920: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    7.390808] debugfs: Directory 'sunxi-ohci' with parent 'ohci' already present!
[    7.403579] 00000940: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    7.403613] 00000960: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    7.412723] sunxi-ohci 4101400.ohci0-controller: irq 60, io mem 0x04101400
[    7.424824] 00000980: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    7.458366] 000009a0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    7.471263] 000009c0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    7.484165] 000009e0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    7.497105] 00000a00: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    7.510040] 00000a20: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    7.511150] hub 4-0:1.0: USB hub found
[    7.523346] 00000a40: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    7.527835] hub 4-0:1.0: 1 port detected
[    7.540129] 00000a60: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    7.557465] 00000a80: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    7.570382] 00000aa0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    7.583451] 00000ac0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    7.596353] 00000ae0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    7.609250] 00000b00: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    7.622136] 00000b20: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    7.635031] 00000b40: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    7.647936] 00000b60: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    7.660834] 00000b80: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    7.673732] 00000ba0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    7.686639] 00000bc0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    7.699548] 00000be0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    7.712553] 00000c00: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    7.725453] 00000c20: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    7.738349] 00000c40: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    7.751250] 00000c60: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    7.764146] 00000c80: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    7.777042] 00000ca0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    7.789943] 00000cc0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    7.802844] 00000ce0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    7.815747] 00000d00: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    7.828657] 00000d20: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    7.841562] 00000d40: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    7.854473] 00000d60: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    7.867374] 00000d80: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    7.880275] 00000da0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    7.893183] 00000dc0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    7.906084] 00000de0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    7.918987] 00000e00: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    7.931890] 00000e20: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    7.944792] 00000e40: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    7.957708] 00000e60: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    7.970713] 00000e80: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    7.983615] 00000ea0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    7.996517] 00000ec0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.009418] 00000ee0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.022314] 00000f00: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.035217] 00000f20: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.048112] 00000f40: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.061015] 00000f60: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.073921] 00000f80: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.086822] 00000fa0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.099723] 00000fc0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.112627] 00000fe0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.125522] 00001000: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.138452] 00001020: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.151366] 00001040: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.164276] 00001060: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.177181] 00001080: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.190079] 000010a0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.202985] 000010c0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.215884] 000010e0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.228786] 00001100: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.241690] 00001120: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.254597] 00001140: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.267510] 00001160: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.280422] 00001180: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.293324] 000011a0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.306229] 000011c0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.319128] 000011e0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.332033] 00001200: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.344936] 00001220: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.357838] 00001240: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.370747] 00001260: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.383650] 00001280: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.396556] 000012a0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.409468] 000012c0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.422377] 000012e0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.435276] 00001300: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.448173] 00001320: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.461071] 00001340: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.473972] 00001360: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.486870] 00001380: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.499767] 000013a0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.512671] 000013c0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.525572] 000013e0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.538520] 00001400: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.551425] 00001420: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.564324] 00001440: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.577226] 00001460: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.590125] 00001480: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.603023] 000014a0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.615926] 000014c0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.628825] 000014e0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.641728] 00001500: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.654635] 00001520: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.667540] 00001540: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.680452] 00001560: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.693351] 00001580: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.706249] 000015a0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.719151] 000015c0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.732047] 000015e0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.744948] 00001600: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.757848] 00001620: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.770752] 00001640: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.783659] 00001660: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.796566] 00001680: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.809472] 000016a0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.822377] 000016c0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.835279] 000016e0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.848180] 00001700: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.861083] 00001720: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.873986] 00001740: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.886890] 00001760: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.899792] 00001780: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.912695] 000017a0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.925602] 000017c0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.938497] 000017e0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.951400] 00001800: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.964298] 00001820: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.977198] 00001840: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    8.990102] 00001860: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    9.003003] 00001880: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    9.015900] 000018a0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    9.028806] 000018c0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    9.041702] 000018e0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    9.054600] 00001900: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    9.067495] 00001920: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    9.080389] 00001940: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    9.093313] 00001960: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    9.106210] 00001980: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    9.119108] 000019a0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    9.132011] 000019c0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    9.144910] 000019e0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    9.157810] 00001a00: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    9.170708] 00001a20: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    9.183609] 00001a40: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    9.196514] 00001a60: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    9.209415] 00001a80: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    9.222314] 00001aa0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    9.235223] 00001ac0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    9.248118] 00001ae0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    9.261018] 00001b00: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    9.273921] 00001b20: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    9.286821] 00001b40: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    9.299725] 00001b60: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    9.312627] 00001b80: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    9.325530] 00001ba0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    9.338438] 00001bc0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    9.351336] 00001be0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    9.364231] 00001c00: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    9.377131] 00001c20: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    9.390031] 00001c40: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    9.402934] 00001c60: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    9.415835] 00001c80: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    9.428735] 00001ca0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    9.441641] 00001cc0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    9.454544] 00001ce0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    9.467444] 00001d00: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    9.480344] 00001d20: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    9.493247] 00001d40: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    9.506152] 00001d60: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    9.519053] 00001d80: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    9.531956] 00001da0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    9.544862] 00001dc0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    9.557765] 00001de0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    9.570664] 00001e00: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    9.583595] 00001e20: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    9.596581] 00001e40: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    9.609489] 00001e60: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    9.622390] 00001e80: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    9.635291] 00001ea0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    9.648197] 00001ec0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    9.661101] 00001ee0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    9.674004] 00001f00: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    9.686906] 00001f20: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    9.699806] 00001f40: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    9.712713] 00001f60: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    9.725614] 00001f80: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    9.738515] 00001fa0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    9.751418] 00001fc0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    9.764313] 00001fe0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[    9.777221] UBIFS error (ubi0:5 pid 1): ubifs_scan: LEB 294 scanning failed
[    9.941887] VFS: Cannot open root device "ubi0_5" or unknown-block(0,0): error -117
[    9.950489] Please append a correct "root=" boot option; here are the available partitions:
[    9.959906] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    9.969186] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 5.4.61+ #21
[    9.976021] Hardware name: Generic DT based system
[    9.981416] [<c010cf08>] (unwind_backtrace) from [<c010a1b8>] (show_stack+0x10/0x14)
[    9.990115] [<c010a1b8>] (show_stack) from [<c06fe5f0>] (dump_stack+0x7c/0x98)
[    9.998228] [<c06fe5f0>] (dump_stack) from [<c0118410>] (panic+0x104/0x3dc)
[   10.006046] [<c0118410>] (panic) from [<c0b01294>] (mount_block_root+0x278/0x32c)
[   10.014451] [<c0b01294>] (mount_block_root) from [<c0b01450>] (prepare_namespace+0x84/0x178)
[   10.023927] [<c0b01450>] (prepare_namespace) from [<c0712ccc>] (kernel_init+0x8/0x10c)
[   10.032814] [<c0712ccc>] (kernel_init) from [<c01010e8>] (ret_from_fork+0x14/0x2c)
[   10.041309] Exception stack(0xc704dfb0 to 0xc704dff8)
[   10.046976] dfa0:                                     00000000 00000000 00000000 00000000
[   10.056156] dfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   10.065334] dfe0: 00000000 00000000 00000000 00000000 00000013 00000000
[   10.072763] CPU0: stopping
[   10.075800] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.4.61+ #21
[   10.082632] Hardware name: Generic DT based system
[   10.088014] [<c010cf08>] (unwind_backtrace) from [<c010a1b8>] (show_stack+0x10/0x14)
[   10.096710] [<c010a1b8>] (show_stack) from [<c06fe5f0>] (dump_stack+0x7c/0x98)
[   10.104818] [<c06fe5f0>] (dump_stack) from [<c010bfb0>] (handle_IPI+0xc0/0x168)
[   10.113027] [<c010bfb0>] (handle_IPI) from [<c033b124>] (gic_handle_irq+0x70/0x78)
[   10.121525] [<c033b124>] (gic_handle_irq) from [<c0101a8c>] (__irq_svc+0x6c/0xa8)
[   10.129921] Exception stack(0xc0c01f40 to 0xc0c01f88)
[   10.135590] 1f40: 00024080 c76b8534 00000000 c0113920 00000001 c0c00000 c0c03e28 c0c03e64
[   10.144771] 1f60: 00000000 c77ff600 c0b2d0c0 00000000 c0c738b0 c0c01f90 c0107850 c0107854
[   10.153948] 1f80: 60000113 ffffffff
[   10.157865] [<c0101a8c>] (__irq_svc) from [<c0107854>] (arch_cpu_idle+0x2c/0x38)
[   10.166172] [<c0107854>] (arch_cpu_idle) from [<c013cfd8>] (do_idle+0xb8/0x120)
[   10.174375] [<c013cfd8>] (do_idle) from [<c013d2dc>] (cpu_startup_entry+0x18/0x1c)
[   10.182876] [<c013d2dc>] (cpu_startup_entry) from [<c0b00c64>] (start_kernel+0x33c/0x3cc)
[   10.192058] [<c0b00c64>] (start_kernel) from [<00000000>] (0x0)
[   10.198718] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) ]---

离线

#37 2022-06-07 11:33:39

笃学
会员
注册时间: 2022-05-07
已发帖子: 20
积分: 15

Re: T113-s3 spi-nand 启动

[    5.348588] usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB1
[    6.013973] UBIFS error (ubi0:5 pid 1): ubifs_check_node: bad CRC: calculated 0x16ca7e75, read 0x1312004
[    6.024649] UBIFS error (ubi0:5 pid 1): ubifs_check_node: bad node at LEB 294:90000

这个匹配问题,有点没头绪,或者说id.c配置信息不对?

离线

楼主 #38 2022-06-07 19:55:41

Cadence
会员
注册时间: 2022-04-01
已发帖子: 71
积分: 85

Re: T113-s3 spi-nand 启动

@笃学
应该是 rootfs 系统错误,需要重新格式化 ubifs

重新写入 rootfs
用sd卡启动起来,然后

flash_erase /dev/mtd5 0 0
ubiformat -y /dev/mtd5
ubiattach /dev/ubi_ctrl -m5
ubimkvol /dev/ubi0 -N rootfs -m

最近编辑记录 Cadence (2022-06-07 19:57:35)

离线

#39 2022-06-08 10:59:53

笃学
会员
注册时间: 2022-05-07
已发帖子: 20
积分: 15

Re: T113-s3 spi-nand 启动

Cadence 说:

@笃学
应该是 rootfs 系统错误,需要重新格式化 ubifs

重新写入 rootfs
用sd卡启动起来,然后

flash_erase /dev/mtd5 0 0
ubiformat -y /dev/mtd5
ubiattach /dev/ubi_ctrl -m5
ubimkvol /dev/ubi0 -N rootfs -m

感谢大佬回复,我是通过全志的脚本生成出来的系统,每次重新编译固件内容都会重新生成,现在用的这个板子上没有增加SD卡卡槽,先往其他方向摸索摸索吧,

离线

楼主 #40 2022-06-08 15:24:57

Cadence
会员
注册时间: 2022-04-01
已发帖子: 71
积分: 85

Re: T113-s3 spi-nand 启动

@笃学
可以用如下脚本试一下

file_dir=../rootfs/
partation_size=119
PEB_size=131072
good_PEBs=$((partation_size*1024*1024/PEB_size))
reserved_for_bad_PEB=20
available_PEBs=$((good_PEBs-reserved_for_bad_PEB))
LEB_size=126976
Vol_used_size=16
FS_size=$(((available_PEBs-Vol_used_size)*LEB_size/1024/1024))
mkfs.ubifs -F -d $file_dir -o ./ubi_tmp.img -m 2048 -e $LEB_size -c $available_PEBs
vol_name=$(echo $file_dir | awk -F '/' '{print $2}')
sed -i "s/vol_size=.*MiB/vol_size=${FS_size}MiB/g" ubinize.cfg
sed -i "s/vol_name=.*/vol_name=${vol_name}/g" ubinize.cfg
file_name="${vol_name}_ubi.img"
ubinize -v -o $file_name -p $PEB_size -m 2048 -s 2048 -O 2048 ubinize.cfg
echo "vol_size=${FS_size}MiB"
rm ./ubi_tmp.img 

ubinize.cfg的内容

[ubifs]
mode=ubi
image=./ubi_tmp.img
vol_id=0
vol_size=110MiB
vol_type=dynamic
vol_name=rootfs
vol_flags=autoresize

然后用xfel下载到spi-nand分区

最近编辑记录 Cadence (2022-06-08 15:28:39)

离线

#41 2022-06-08 17:49:27

笃学
会员
注册时间: 2022-05-07
已发帖子: 20
积分: 15

Re: T113-s3 spi-nand 启动

@Cadence
好嘞,感谢感谢!我去试试哈

离线

楼主 #42 2022-06-14 23:44:20

Cadence
会员
注册时间: 2022-04-01
已发帖子: 71
积分: 85

Re: T113-s3 spi-nand 启动

u-boot-t113,linux-t113-5.4 已放到gitee
https://gitee.com/weiwei382-163-com/t113-s3-u-boot.git
https://gitee.com/weiwei382-163-com/linux-t113-5.4.git
“仓库公开申请已提交审核中,我们将在 2 个工作日内为你处理。”

最近编辑记录 Cadence (2022-06-15 08:07:00)

离线

#44 2022-06-29 14:24:34

liefyuan
会员
注册时间: 2021-05-30
已发帖子: 69
积分: 95

Re: T113-s3 spi-nand 启动

大佬,你好,我在你的Gitee的仓库里面看到了:https://gitee.com/weiwei382-163-com/nand_spl,发现他只能编译nand版本的spl,编译mmc和spinor版本的spl就报错,所以就很好奇大佬您这份spl(boot0)的源码是基于哪一份源码的基础上面改的呢?

离线

#45 2022-06-29 14:29:20

liefyuan
会员
注册时间: 2021-05-30
已发帖子: 69
积分: 95

Re: T113-s3 spi-nand 启动

编译mmc时报的错如下:

liefyuan@ubuntu:~/t113/nand_spl-master$ make ARCH=arm CROSS_COMPILE=/usr/local/arm/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- -j16 mmc
/home/liefyuan/t113/nand_spl-master/tools/generate_hash_header_file.sh > /home/liefyuan/t113/nand_spl-master/include/commit_info.h.tmp
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
if [ -r /home/liefyuan/t113/nand_spl-master/include/commit_info.h ] && cmp -s /home/liefyuan/t113/nand_spl-master/include/commit_info.h /home/liefyuan/t113/nand_spl-master/include/commit_info.h.tmp; then rm -f /home/liefyuan/t113/nand_spl-master/include/commit_info.h.tmp; else echo '  UPD     /home/liefyuan/t113/nand_spl-master/include/commit_info.h'; mv /home/liefyuan/t113/nand_spl-master/include/commit_info.h.tmp /home/liefyuan/t113/nand_spl-master/include/commit_info.h; fi
make  -C  /home/liefyuan/t113/nand_spl-master/nboot mmc
  CHK     /home/liefyuan/t113/nand_spl-master/include/config.h
  CHK     /home/liefyuan/t113/nand_spl-master/autoconf.mk
  UPD     /home/liefyuan/t113/nand_spl-master/include/config.h
  UPD     /home/liefyuan/t113/nand_spl-master/autoconf.mk
make -C /home/liefyuan/t113/nand_spl-master/arch/arm/cpu/armv7/
make -C /home/liefyuan/t113/nand_spl-master/board/sun20iw1p1/
make -C /home/liefyuan/t113/nand_spl-master/common/
make -C /home/liefyuan/t113/nand_spl-master/drivers/
make -C /home/liefyuan/t113/nand_spl-master/nboot/main/
make[2]: Nothing to be done for 'all'.
 CC      boot0_entry.S ...
 CC      boot0_head.c ...
make -C /home/liefyuan/t113/nand_spl-master/drivers/dram/
make -C /home/liefyuan/t113/nand_spl-master/drivers/mmc/sun20iw1p1/
make -C /home/liefyuan/t113/nand_spl-master/drivers/power/
make -C /home/liefyuan/t113/nand_spl-master/nboot/load_image_mmc/
 CC      watchdog.c ...
 CC      serial.c ...
 CC      boot0_main.c ...
make -C /home/liefyuan/t113/nand_spl-master/drivers/dram/sun20iw1p1/
 CC      rtc.c ...
make -C lib-dram
 CC      sunxi_dram.c ...
make[5]: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule.
 CC      load_image.c ...
/usr/local/arm/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-ld  -r -o libmain.o  load_image.o
make[5]: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule.
 CC      axp.c ...
/usr/local/arm/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-ld  -r -o libpower.o  axp.o
rm -f libdram.o; /usr/local/arm/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-ar rcs libdram.o 
 CC      pinmux.c ...
# -s libdram.o
cp libdram.o ../libdram
/usr/local/arm/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-ld  -r -o libdram.o  sunxi_dram.o /home/liefyuan/t113/nand_spl-master/drivers/dram/sun20iw1p1/libdram
 CC      load_image_sdmmc.c ...
/usr/local/arm/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-ld  -r -o libloadmmc.o  load_image_sdmmc.o
 CC      eabi_compat.c ...
 CC      iobase_sunxi.c ...
 CC      memset_sunxi.c ...
 CC      boot_utils.c ...
 CC      debug.c ...
 CC      memcpy_sunxi.c ...
 CC      malloc.c ...
 CC      crc32.c ...
 CC      gunzip.c ...
 CC      string.c ...
 CC      printf.c ...
/usr/local/arm/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-ld  -r -o libcommon.o  string.o printf.o boot_utils.o eabi_compat.o malloc.o iobase_sunxi.o memset_sunxi.o memcpy_sunxi.o debug.o crc32.o gunzip.o zlib/zlib.o lz4/lz4_wrapper.o lzma/LzmaDec.o lzma/LzmaTools.o
 CC      mmc.c ...
 CC      mmc_bsp.c ...
/usr/local/arm/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-ld  -r -o libmmc.o  mmc.o mmc_bsp.o
/usr/local/arm/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-ld  -r -o libdrivers.o  serial.o pinmux.o rtc.o watchdog.o /home/liefyuan/t113/nand_spl-master/drivers/dram/libdram.o /home/liefyuan/t113/nand_spl-master/drivers/mmc/sun20iw1p1/libmmc.o /home/liefyuan/t113/nand_spl-master/drivers/power/libpower.o /home/liefyuan/t113/nand_spl-master/nboot/load_image_mmc/libloadmmc.o
bootaddr is 0x20000
/usr/local/arm/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-ld -r -o libsun20iw1p1_sdcard.o /home/liefyuan/t113/nand_spl-master/arch/arm/cpu/armv7/libarch.o /home/liefyuan/t113/nand_spl-master/board/sun20iw1p1/libboard.o /home/liefyuan/t113/nand_spl-master/common/libcommon.o /home/liefyuan/t113/nand_spl-master/drivers/libdrivers.o /home/liefyuan/t113/nand_spl-master/nboot/main/libmain.o
/usr/local/arm/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-ld --allow-multiple-definition libsun20iw1p1_sdcard.o /home/liefyuan/t113/nand_spl-master/nboot/main/boot0_main.o -L /usr/local/arm/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/7.5.0 -lgcc  --gc-sections --gc-sections -Tboot0.lds -o boot0_sdcard.elf -Map boot0_sdcard.map -L/home/liefyuan/t113/nand_spl-master/nboot -lsun8iw20p1_nand 
libsun20iw1p1_sdcard.o: In function `mmc_trans_data_by_dma':
/home/liefyuan/t113/nand_spl-master/drivers/mmc/sun20iw1p1/mmc_bsp.c:1168: undefined reference to `wmb'
/home/liefyuan/t113/nand_spl-master/nboot/main/boot0_main.o: In function `main':
/home/liefyuan/t113/nand_spl-master/nboot/main/boot0_main.c:46: undefined reference to `spi_nand_para_len'
/home/liefyuan/t113/nand_spl-master/nboot/main/boot0_main.c:46: undefined reference to `spi_nand_para'
make[1]: *** [Makefile:117: mmc] Error 1
make: *** [Makefile:189: mmc] Error 2

离线

楼主 #46 2022-06-29 21:37:34

Cadence
会员
注册时间: 2022-04-01
已发帖子: 71
积分: 85

Re: T113-s3 spi-nand 启动

liefyuan 说:

大佬,你好,我在你的Gitee的仓库里面看到了:https://gitee.com/weiwei382-163-com/nand_spl,发现他只能编译nand版本的spl,编译mmc和spinor版本的spl就报错,所以就很好奇大佬您这份spl(boot0)的源码是基于哪一份源码的基础上面改的呢?

好像是这个
https://debugdump.com/topic/1247/t113-tina-sdk-longan-sdk-%E5%BC%80%E5%8F%91%E8%B5%84%E6%96%99%E4%B8%8B%E8%BD%BD/13?lang=zh-CN
时间一长忘了

离线

#47 2022-07-04 18:36:14

liefyuan
会员
注册时间: 2021-05-30
已发帖子: 69
积分: 95

Re: T113-s3 spi-nand 启动

大佬按照你的步骤下载了你的文件file_burn.tar.gz,并且烧录了压缩包里面的所有文件,发现只有boot0成功的运行起来,Uboot没有运行起来,能帮忙看看是什么问题吗?
以下是所有的上电信息,后面就啥信息都没有打印了。

HELLO! BOOT0 is starting!
BOOT0 commit : #.###
set pll start
periph0 has been enabled
set pll end
board init ok
ZQ value = 0x2d
get_pmu_exist() = -1
ddr_efuse_type: 0xa
mark_id: 0x60
trefi:7.8ms
[AUTO DEBUG] single rank and full DQ!
ddr_efuse_type: 0xa
mark_id: 0x60
trefi:7.8ms
[AUTO DEBUG] rank 0 row = 13 
[AUTO DEBUG] rank 0 bank = 8 
[AUTO DEBUG] rank 0 page size = 2 KB 
DRAM BOOT DRIVE INFO: V0.32
DRAM CLK = 792 MHz
DRAM Type = 3 (2:DDR2,3:DDR3)
DRAMC read ODT  off.
DRAM ODT value: 0x42.
ddr_efuse_type: 0xa
mark_id: 0x60
DRAM SIZE =128 M
PLL_DDR_CTRL_REG:0xf8004100
DRAM_CLK_REG:0xc0000000
[TIMING DEBUG] MR2= 0x18
DRAM simple test OK.
rtc standby flag is 0x0, super standby flag is 0x0
spinand UBOOT_START_BLK_NUM 8 UBOOT_LAST_BLK_NUM 16
Jump to second Boot.

最近编辑记录 liefyuan (2022-07-04 18:36:58)

离线

楼主 #48 2022-07-05 22:12:25

Cadence
会员
注册时间: 2022-04-01
已发帖子: 71
积分: 85

Re: T113-s3 spi-nand 启动

@liefyuan
spi nand 是什么型号?

是否是这样写入的?
xfel spinand erase 0x00000000 0x20000 && xfel spinand write 0x00000000 boot0_nand_sun20iw1p1.bin
xfel spinand erase 0x100000 0xa0000 && xfel spinand write 0x100000 u-boot.bin

最近编辑记录 Cadence (2022-07-06 08:54:29)

离线

#49 2022-07-06 11:30:41

liefyuan
会员
注册时间: 2021-05-30
已发帖子: 69
积分: 95

Re: T113-s3 spi-nand 启动

spi nand flash的芯片型号(应该是这个):GD5F1GQ5UExxG

烧录记录:

liefyuan@ubuntu:~/t113/nand_spl-master/nboot$ xfel spinand
Found spi nand flash 'GD5F1GQ5UExxG' with 134217728 bytes

liefyuan@ubuntu:~/t113/nand_spl-master/nboot$ sudo xfel version
AWUSBFEX ID=0x00185900(R528/T113) dflag=0x44 dlength=0x08 scratchpad=0x00045000

liefyuan@ubuntu:~/samba-share$ xfel spinand erase 0x00000000 0x20000 && xfel spinand write 0x00000000 boot0_nand_sun20iw1p1.bin
100% [================================================] 128.000 KB, 74.547 MB/s        
100% [================================================] 32.000 KB, 523.013 KB/s        
liefyuan@ubuntu:~/samba-share$ xfel spinand erase 0x100000 0xa0000 && xfel spinand write 0x100000 u-boot.bin
100% [================================================] 640.000 KB, 37.423 MB/s        
100% [================================================] 463.692 KB, 376.152 KB/s        
liefyuan@ubuntu:~/samba-share$ xfel spinand erase 0x00200000 0x20000 && xfel spinand write 0x00200000 board.dtb
100% [================================================] 128.000 KB, 62.594 MB/s        
100% [================================================] 53.260 KB, 557.436 KB/s        
liefyuan@ubuntu:~/samba-share$ xfel spinand erase 0x00220000 0x800000 && xfel spinand write 0x00220000 uImage
100% [================================================] 8.000 MB, 36.676 MB/s         
100% [================================================] 6.462 MB, 380.708 KB/s         
liefyuan@ubuntu:~/samba-share$ xfel spinand erase 0x00a20000 0x4000000 && xfel spinand write 0x00a20000 usr_ubi.img
100% [================================================] 64.000 MB, 34.496 MB/s        
100% [================================================] 21.125 MB, 366.828 KB/s  

离线

楼主 #50 2022-07-06 15:52:03

Cadence
会员
注册时间: 2022-04-01
已发帖子: 71
积分: 85

Re: T113-s3 spi-nand 启动

@liefyuan
我用的型号是W25N01GVZE
可能兆易与华邦的不兼容

离线

#51 2022-07-08 01:38:41

liefyuan
会员
注册时间: 2021-05-30
已发帖子: 69
积分: 95

Re: T113-s3 spi-nand 启动

大佬,今天我新买的华邦的芯片到了,我换了发现还是不行啊,信息如下:
spi nand flash 芯片的具体型号是:winbond 25N01GVZEIG
烧录信息:

liefyuan@ubuntu:~/samba-share$ xfel spinand
Found spi nand flash 'W25N01GV' with 134217728 bytes

liefyuan@ubuntu:~/samba-share$ sudo xfel version
AWUSBFEX ID=0x00185900(R528/T113) dflag=0x44 dlength=0x08 scratchpad=0x00045000

liefyuan@ubuntu:~/samba-share$ xfel spinand erase 0x00000000 0x20000 && xfel spinand write 0x00000000 boot0_nand_sun20iw1p1.bin
100% [================================================] 128.000 KB, 77.351 MB/s        
100% [================================================] 32.000 KB, 567.750 KB/s        
liefyuan@ubuntu:~/samba-share$ xfel spinand erase 0x100000 0xa0000 && xfel spinand write 0x100000 u-boot.bin
100% [================================================] 640.000 KB, 46.451 MB/s        
100% [================================================] 463.692 KB, 400.257 KB/s      

上电信息为:

HELLO! BOOT0 is starting!
BOOT0 commit : #.###
set pll start
periph0 has been enabled
set pll end
board init ok
ZQ value = 0x2f
get_pmu_exist() = -1
ddr_efuse_type: 0xa
mark_id: 0x60
trefi:7.8ms
[AUTO DEBUG] single rank and full DQ!
ddr_efuse_type: 0xa
mark_id: 0x60
trefi:7.8ms
[AUTO DEBUG] rank 0 row = 13
[AUTO DEBUG] rank 0 bank = 8
[AUTO DEBUG] rank 0 page size = 2 KB
DRAM BOOT DRIVE INFO: V0.32
DRAM CLK = 792 MHz
DRAM Type = 3 (2:DDR2,3:DDR3)
DRAMC read ODT  off.
DRAM ODT value: 0x42.
ddr_efuse_type: 0xa
mark_id: 0x60
DRAM SIZE =128 M
PLL_DDR_CTRL_REG:0xf8004100
DRAM_CLK_REG:0xc0000000
[TIMING DEBUG] MR2= 0x18
DRAM simple test OK.
rtc standby flag is 0x0, super standby flag is 0x0
spinand UBOOT_START_BLK_NUM 8 UBOOT_LAST_BLK_NUM 16
oob_buf[0] = 0
spi nand block 8 is bad
oob_buf[0] = 0
spi nand block 9 is bad
oob_buf[0] = 0
spi nand block 10 is bad
oob_buf[0] = 0
spi nand block 11 is bad
oob_buf[0] = 0
spi nand block 12 is bad
oob_buf[0] = 0
spi nand block 13 is bad
oob_buf[0] = 0
spi nand block 14 is bad
oob_buf[0] = 0
spi nand block 15 is bad
oob_buf[0] = 0
spi nand block 16 is bad
Can't find a good Boot1 copy in spi nand.
Jump to second Boot.

还是无法启动uboot

离线

楼主 #52 2022-07-08 09:55:14

Cadence
会员
注册时间: 2022-04-01
已发帖子: 71
积分: 85

Re: T113-s3 spi-nand 启动

@liefyuan

xfel版本
xfel(v1.2.6)

像spi-nand没擦除干净

xfel spinand erase 0 0x1000000

擦除一下

执行以下代码

xfel ddr t113-s3
sleep 1
xfel write 0x43000000 u-boot.bin
xfel exec 0x43000000

看能运行吗?

最近编辑记录 Cadence (2022-07-08 10:32:21)

离线

#53 2022-07-08 10:12:52

liefyuan
会员
注册时间: 2021-05-30
已发帖子: 69
积分: 95

Re: T113-s3 spi-nand 启动

谢谢大佬,晚上回去试试。

离线

#54 2022-07-08 22:38:03

liefyuan
会员
注册时间: 2021-05-30
已发帖子: 69
积分: 95

Re: T113-s3 spi-nand 启动

大佬,还是不行呢

liefyuan@ubuntu:~/samba-share$ xfel spinandFound spi nand flash 'W25N01GV' with 134217728 bytes
liefyuan@ubuntu:~/samba-share$ xfel spinand erase 0x00000000 0x8000000100% [================================================] 128.000 MB, 54.894 MB/s        
liefyuan@ubuntu:~/samba-share$ xfel spinand erase 0x00000000 0x1000000
100% [================================================] 16.000 MB, 58.917 MB/s        
liefyuan@ubuntu:~/samba-share$ xfel ddr t113-s3
Initial ddr controller succeeded
liefyuan@ubuntu:~/samba-share$ sleep 1
liefyuan@ubuntu:~/samba-share$ xfel write 0x43000000 u-boot.bin
usb bulk send error
liefyuan@ubuntu:~/samba-share$ xfel exec 0x43000000
usb bulk send error

离线

#55 2022-07-08 23:43:26

liefyuan
会员
注册时间: 2021-05-30
已发帖子: 69
积分: 95

Re: T113-s3 spi-nand 启动

查看了一下xfel的版本:

liefyuan@ubuntu:~/samba-share$ xfel
xfel(v1.2.9) - https://github.com/xboot/xfel
usage:
    xfel version                                        - Show chip version
    xfel hexdump <address> <length>                     - Dumps memory region in hex
    xfel dump <address> <length>                        - Binary memory dump to stdout
    xfel read32 <address>                               - Read 32-bits value from device memory
    xfel write32 <address> <value>                      - Write 32-bits value to device memory
    xfel read <address> <length> <file>                 - Read memory to file
    xfel write <address> <file>                         - Write file to memory
    xfel exec <address>                                 - Call function address
    xfel reset                                          - Reset device using watchdog
    xfel sid                                            - Show sid information
    xfel jtag                                           - Enable jtag debug
    xfel ddr [type]                                     - Initial ddr controller with optional type
    xfel sign <public-key> <private-key> <file>         - Generate ecdsa256 signature file for sha256 of sid
    xfel spinor                                         - Detect spi nor flash
    xfel spinor erase <address> <length>                - Erase spi nor flash
    xfel spinor read <address> <length> <file>          - Read spi nor flash to file
    xfel spinor write <address> <file>                  - Write file to spi nor flash
    xfel spinand                                        - Detect spi nand flash
    xfel spinand erase <address> <length>               - Erase spi nand flash
    xfel spinand read <address> <length> <file>         - Read spi nand flash to file
    xfel spinand write <address> <file>                 - Write file to spi nand flash
    xfel spinand splwrite <split-size> <address> <file> - Write file to spi nand flash with split support

离线

楼主 #56 2022-07-11 08:37:23

Cadence
会员
注册时间: 2022-04-01
已发帖子: 71
积分: 85

Re: T113-s3 spi-nand 启动

@liefyuan

liefyuan@ubuntu:~/samba-share$ xfel ddr t113-s3
Initial ddr controller succeeded
liefyuan@ubuntu:~/samba-share$ sleep 1
liefyuan@ubuntu:~/samba-share$ xfel write 0x43000000 u-boot.bin
usb bulk send error
liefyuan@ubuntu:~/samba-share$ xfel exec 0x43000000
usb bulk send error

xfel 看起来没有正常工作

离线

#57 2022-07-15 17:45:19

liefyuan
会员
注册时间: 2021-05-30
已发帖子: 69
积分: 95

Re: T113-s3 spi-nand 启动

大佬可以确定是xfel的问题吗?

离线

#58 2022-09-08 17:01:00

richard.zhou
会员
注册时间: 2022-08-31
已发帖子: 5
积分: 25

Re: T113-s3 spi-nand 启动

你好,按照你的修改,但是第二个CPU核没有起来。
我想在这个CPU上移植OpenWRT,目前就差第二个核没启动了

离线

楼主 #59 2022-09-08 21:00:07

Cadence
会员
注册时间: 2022-04-01
已发帖子: 71
积分: 85

Re: T113-s3 spi-nand 启动

richard.zhou 说:

你好,按照你的修改,但是第二个CPU核没有起来。
我想在这个CPU上移植OpenWRT,目前就差第二个核没启动了

请 贴一下 启动log

离线

#60 2022-09-09 09:59:14

richard.zhou
会员
注册时间: 2022-08-31
已发帖子: 5
积分: 25

Re: T113-s3 spi-nand 启动

Cadence 说:
richard.zhou 说:

你好,按照你的修改,但是第二个CPU核没有起来。
我想在这个CPU上移植OpenWRT,目前就差第二个核没启动了

请 贴一下 启动log

这是完整的Log

[157]HELLO! <----- BOOT0 is starting! ----->
[162]BOOT0 commit : 90ce8bc
[164]SPL: size 49152
[166]set pll start
[168]periph0 has been enabled
[171]set pll end
[173]board init ok
[175]ZQ value = 0x31
[177]ddr_efuse_type: 0xa
[179]mark_id: 0x60
[181]trefi:7.8ms
[184][AUTO DEBUG] single rank and full DQ!
[188]ddr_efuse_type: 0xa
[190]mark_id: 0x60
[192]trefi:7.8ms
[195][AUTO DEBUG] rank 0 row = 13
[198][AUTO DEBUG] rank 0 bank = 8
[201][AUTO DEBUG] rank 0 page size = 2 KB
[205]DRAM BOOT DRIVE INFO: V0.24
[208]DRAM CLK = 792 MHz
[211]DRAM Type = 3 (2:DDR2,3:DDR3)
[214]DRAMC read ODT  off.
[217]DRAM ODT value: 0x42.
[219]ddr_efuse_type: 0xa
[222]mark_id: 0x60
[224]DRAM SIZE = 128M
[232]DRAM simple test OK.
[235]dram size =128
[237]card no is 0
[239]sdcard 0 line count 4
[242][mmc]: mmc driver ver 2021-04-2 16:45
[251][mmc]: Wrong media type 0x0
[254][mmc]: ***Try SD card 0***
[264][mmc]: HSSDR52/SDR25 4 bit
[267][mmc]: 50000000 Hz
[269][mmc]: 7660 MB
[271][mmc]: ***SD/MMC 0 init OK!!!***
[406]d0
[407]0d
[407]fe
[408]ed
[409]00
[410]Loading boot-pkg Succeed(index=0).
[414]Jump to second Boot.


U-Boot 2022.01-rc3-gb939dcf0ab-dirty (Sep 08 2022 - 19:42:09 +0800) Allwinner Technology

CPU:   SUNXI Family
Model: T113-S3
DRAM:  128 MiB
[00.030]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz  MBus=300Mhz
MMC:   mmc@4020000: 0
Loading Environment from FAT... Unable to read "uboot.env" from mmc0:1... In:    serial
Out:   serial
Err:   serial
starting USB...
No working controllers found
Hit any key to stop autoboot:  0 
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
450 bytes read in 2 ms (219.7 KiB/s)
## Executing script at 42900000
5093540 bytes read in 2639 ms (1.8 MiB/s)
56389 bytes read in 34 ms (1.6 MiB/s)
## Loading kernel from FIT Image at 41800000 ...
   Using 'config@1' configuration
   Trying 'kernel@1' kernel subimage
     Description:  ARM OpenWrt Linux-5.10.127
     Type:         Kernel Image
     Compression:  uncompressed
     Data Start:   0x418000e4
     Data Size:    5040760 Bytes = 4.8 MiB
     Architecture: ARM
     OS:           Linux
     Load Address: 0x40008000
     Entry Point:  0x40008000
     Hash algo:    crc32
     Hash value:   6e3bf84c
     Hash algo:    sha1
     Hash value:   8a619ae2d7e37393d15136aa6a6efd7169e9d159
   Verifying Hash Integrity ... crc32+ sha1+ OK
## Loading fdt from FIT Image at 41800000 ...
   Using 'config@1' configuration
   Trying 'fdt@1' fdt subimage
     Description:  ARM OpenWrt T113-S3 device tree blob
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x41ccec90
     Data Size:    50916 Bytes = 49.7 KiB
     Architecture: ARM
     Hash algo:    crc32
     Hash value:   1539fb77
     Hash algo:    sha1
     Hash value:   098c723280e9e6bf02175a2c880b49d6511963d8
   Verifying Hash Integrity ... crc32+ sha1+ OK
   Booting using the fdt blob at 0x41ccec90
   Loading Kernel Image
   Loading Device Tree to 42df0000, end 42dff6e3 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.4.61+ (develop@develop-dell) (arm-openwrt-linux-gnueabi-gcc (OpenWrt GCC 8.4.0 r16325-88151b8303) 8.4.0, GNU ld (GNU Binutils) 2.34) #0 SMP PREEMPT Sun Oct 241
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: t113-s3
[    0.000000] earlycon: sunxi_uart0 at MMIO 0x02500c00 (options '')
[    0.000000] printk: bootconsole [sunxi_uart0] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] cma: Reserved 16 MiB at 0x47000000
[    0.000000] percpu: Embedded 15 pages/cpu s32396 r8192 d20852 u61440
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32480
[    0.000000] Kernel command line: console=ttyS3,115200 earlycon=sunxi_uart,0x2500c00 root=/dev/mmcblk0p2 rootwait
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 101312K/131072K available (8192K kernel code, 341K rwdata, 1812K rodata, 1024K init, 134K bss, 13376K reserved, 16384K cma-reserved)
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU dyntick-idle grace-period acceleration is enabled.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000] rcu:     RCU priority boosting: priority 1 delay 500 ms.
[    0.000000]  Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] rcu:     Offload RCU callbacks from CPUs: (none).
[    0.000000] random: get_random_bytes called from start_kernel+0x2a8/0x3d0 with crng_init=0
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000006] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.007971] Switching to timer-based delay loop, resolution 41ns
[    0.014099] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.023639] Console: colour dummy device 80x30
[    0.027500] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.037797] pid_max: default: 32768 minimum: 301
[    0.042439] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.049675] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.058130] CPU: Testing write buffer coherency: ok
[    0.062555] /cpus/cpu@0 missing clock-frequency property
[    0.067518] /cpus/cpu@1 missing clock-frequency property
[    0.072830] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.079125] Setting up static identity map for 0x40100000 - 0x40100060
[    0.085107] rcu: Hierarchical SRCU implementation.
[    0.090477] smp: Bringing up secondary CPUs ...
[    0.094202] smp: cpu 0 cpu_online 1
[    0.094205] smp: cpu 1 cpu_online 0
[    0.098452] arch/arm/mach-sunxi/plat_t113_smp.c 39 cpu 1 boot up 
[    0.107203] ==========> 13ff0103
[    0.110469] 0x09010080: 1010003
[    1.151109] CPU1: failed to come online
[    1.151218] smp: Brought up 1 node, 1 CPU
[    1.151252] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    1.151295] CPU: All CPU(s) started in SVC mode.
[    1.227931] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    1.230427] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    1.230516] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    1.231300] pinctrl core: initialized pinctrl subsystem
[    1.249578] NET: Registered protocol family 16
[    1.252917] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    1.267932] cpuidle: using governor ladder
[    1.267999] cpuidle: using governor menu
[    1.455982] rtc_ccu: sunxi ccu init OK
[    1.487226] ccu: sunxi ccu init OK
[    1.490526] r_ccu: sunxi ccu init OK
[    1.909836] iommu: Default domain type: Translated 
[    1.910066] sunxi iommu: irq = 24
[    1.934117] SCSI subsystem initialized
[    1.946793] usbcore: registered new interface driver usbfs
[    1.947059] usbcore: registered new interface driver hub
[    1.947324] usbcore: registered new device driver usb
[    1.953289] mc: Linux media interface: v0.10
[    1.954010] videodev: Linux video capture interface: v2.00
[    1.968051] sunxi-msgbox-amp 3003000.msgbox: invalid resource
[    1.982590] Advanced Linux Sound Architecture Driver Initialized.
[    1.993515] pwm module init!
[    2.000276] clocksource: Switched to clocksource arch_sys_counter
[    2.144531] sun8iw20-pinctrl 2000000.pinctrl: initialized sunXi PIO driver
[    2.233285] thermal_sys: Registered thermal governor 'step_wise'
[    2.233292] thermal_sys: Registered thermal governor 'user_space'
[    2.238594] NET: Registered protocol family 2
[    2.248443] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    2.248527] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    2.248595] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    2.250533] TCP: Hash tables configured (established 1024 bind 1024)
[    2.256867] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    2.263514] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    2.272570] NET: Registered protocol family 1
[    2.286999] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pc not found, using dummy regulator
[    2.294634] spi spi0: spi0 supply spi not found, using dummy regulator
[    2.297337] sunxi_spi_resource_get()2151 - [spi0] SPI MASTER MODE
[    2.297442] sunxi_spi_resource_get()2189 - Failed to get sample mode
[    2.303490] sunxi_spi_resource_get()2194 - Failed to get sample delay
[    2.309586] sunxi_spi_resource_get()2198 - sample_mode:-1431633921 sample_delay:-1431633921
[    2.318118] sunxi_spi_clk_init()2240 - [spi0] mclk 100000000
[    2.333649] sunxi_spi_probe()2653 - [spi0]: driver probe succeed, base c882d000, irq 41
[    2.362160] Initialise system trusted keyrings
[    2.362410] workingset: timestamp_bits=14 max_order=15 bucket_order=1
[    2.365107] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    2.365173] fuse: init (API version 7.31)
[    2.413832] NET: Registered protocol family 38
[    2.413886] Key type asymmetric registered
[    2.413918] Asymmetric key parser 'x509' registered
[    2.414228] io scheduler mq-deadline registered
[    2.414268] io scheduler kyber registered
[    2.441730] sunxi_sid_init()551 - insmod ok
[    2.449848] pwm-regulator: supplied by regulator-dummy
[    2.459211] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pb not found, using dummy regulator
[    2.464755] uart uart3: get regulator failed
[  [    2.476029] printk: console [ttyS3] enabled
[    2.476029] printk: console [ttyS3] enabled
[    2.480938] printk: bootconsole [sunxi_uart0] disabled
[    2.480938] printk: bootconsole [sunxi_uart0] disabled
[    2.507420] misc dump reg init
[    2.699914] loop: module loaded
[    2.706744] sunxi-rfkill soc@3000000:rfkill@0: module version: v1.0.9
[    2.716648] sunxi-rfkill soc@3000000:rfkill@0: devm_pinctrl_get() failed!
[    2.724415] sunxi-rfkill soc@3000000:rfkill@0: get gpio chip_en failed
[    2.731889] sunxi-rfkill soc@3000000:rfkill@0: get gpio power_en failed
[    2.739297] sunxi-rfkill soc@3000000:rfkill@0: wlan_busnum (1)
[    2.745915] sunxi-rfkill soc@3000000:rfkill@0: Missing wlan_power.
[    2.752893] sunxi-rfkill soc@3000000:rfkill@0: wlan clock[0] (32k-fanout1)
[    2.760660] sunxi-rfkill soc@3000000:rfkill@0: wlan_regon gpio=204 assert=0
[    2.768616] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pg not found, using dummy regulator
[    2.782484] sunxi-rfkill soc@3000000:rfkill@0: wlan_hostwake gpio=202 assert=1
[    2.790644] sunxi-rfkill soc@3000000:rfkill@0: wakeup source is enabled
[    2.801008] sunxi-rfkill soc@3000000:rfkill@0: Missing bt_power.
[    2.807753] sunxi-rfkill soc@3000000:rfkill@0: bt clock[0] (32k-fanout1)
[    2.815480] sunxi-rfkill soc@3000000:rfkill@0: bt_rst gpio=210 assert=0
[    2.860411] spi-nand spi0.0: Macronix SPI NAND was found.
[    2.866466] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[    2.881373] 6 fixed-partitions partitions found on MTD device spi0.0
[    2.888490] Creating 6 MTD partitions on "spi0.0":
[    2.893947] 0x000000000000-0x000000100000 : "boot0"
[    2.939969] 0x000000100000-0x000000200000 : "u-boot"
[    2.990167] 0x000000200000-0x000000220000 : "dtb"
[    3.040835] 0x000000220000-0x000000a20000 : "kernel"
[    3.048540] random: fast init done
[    3.103570] 0x000000a20000-0x000004a20000 : "usr"
[    3.251274] 0x000004a20000-0x000008000000 : "app"
[    3.398191] libphy: Fixed MDIO Bus: probed
[    3.408831] CAN device driver interface
[    3.422323] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pe not found, using dummy regulator
[    3.433797] sunxi gmac driver's version: 1.0.0
[    3.444436] gmac-power0: NULL
[    3.447763] gmac-power1: NULL
[    3.451243] gmac-power2: NULL
[    3.467522] Failed to alloc md5
[    3.471207] eth0: Use random mac address
[    3.484452] ======== XRADIO WIFI OPEN ========
[    3.490082] [XRADIO] Driver Label:XR_V02.16.84_P2P_HT40_01.31   
[    3.497185] [XRADIO] Allocated hw_priv @ (ptrval)
[    3.502552] [ADDR_MGT] get_addr_by_name: t->addr: 
[    3.511663] sunxi-rfkill soc@3000000:rfkill@0: bus_index: 1
[    3.527934] sunxi-rfkill soc@3000000:rfkill@0: wlan power on success
[    3.735121] sunxi_hosts[1] should not be null
[    3.735127] [XRADIO] Detect SDIO card 1
[    5.760393] sunxi-rfkill soc@3000000:rfkill@0: wlan power off success
[    5.867605] sunxi_hosts[1] should not be null
[    5.867612] [XRADIO] Remove SDIO card 1
[    5.886781] [SBUS_ERR] sdio probe timeout!
[    5.891369] [XRADIO_ERR] sbus_sdio_init failed
[    5.896778] xradio_core_init failed (-110)!
[    5.920533] hso: drivers/net/usb/hso.c: Option Wireless
[    5.926630] usbcore: registered new interface driver hso
[    5.932763] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    5.940063] sunxi-ehci: EHCI SUNXI driver
[    5.945038] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    5.952179] sunxi-ohci: OHCI SUNXI driver
[    5.960610] usbcore: registered new interface driver uas
[    5.972620] usbcore: registered new interface driver usb-storage
[    5.979740] usbcore: registered new interface driver ums-alauda
[    5.989058] usbcore: registered new interface driver ums-cypress
[    5.996792] usbcore: registered new interface driver ums-datafab
[    6.006412] usbcore: registered new interface driver ums_eneub6250
[    6.019522] usbcore: registered new interface driver ums-freecom
[    6.026767] usbcore: registered new interface driver ums-isd200
[    6.033771] usbcore: registered new interface driver ums-jumpshot
[    6.040937] usbcore: registered new interface driver ums-karma
[    6.056186] usbcore: registered new interface driver ums-onetouch
[    6.063446] usbcore: registered new interface driver ums-realtek
[    6.070755] usbcore: registered new interface driver ums-sddr09
[    6.077629] usbcore: registered new interface driver ums-sddr55
[    6.084612] usbcore: registered new interface driver ums-usbat
[    6.109213] input: sunxi-ts as /devices/platform/soc@3000000/2009c00.rtp/input/input0
[    6.134437] sunxi_gpadc_init,2137, success
[    6.142380] sunxi_key_init: get key count failed
[    6.142396] sunxi_gpadc_setup: get channel scan data failed
[    6.165032] input: sunxi-gpadc0 as /devices/virtual/input/input1
[    6.189425] input: sunxi-gpadc1 as /devices/virtual/input/input2
[    6.206388] sunxi-rtc 7090000.rtc: errata__fix_alarm_day_reg_default_value(): ALARM0_DAY_REG=0, set it to 1
[    6.239019] sunxi-rtc 7090000.rtc: registered as rtc0
[    6.245324] sunxi-rtc 7090000.rtc: setting system clock to 1970-01-01T00:00:10 UTC (10)
[    6.254379] sunxi-rtc 7090000.rtc: sunxi rtc probed
[    6.260451] i2c /dev entries driver
[    6.271283] IR NEC protocol handler initialized
[    6.276362] IR RC5(x/sz) protocol handler initialized
[    6.294204] usbcore: registered new interface driver uvcvideo
[    6.301061] USB Video Class driver (1.1.1)
[    6.305645] sunxi cedar version 1.1
[    6.325674] sunxi-wdt 20500a0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    6.367295] sunxi-mmc 4020000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.21 2021-05-24 16:10)
[    6.382469] sunxi-mmc 4020000.sdmmc: ***ctl-spec-caps*** 8
[    6.388667] sunxi-mmc 4020000.sdmmc: No vmmc regulator found
[    6.395176] sunxi-mmc 4020000.sdmmc: No vqmmc regulator found
[    6.401695] sunxi-mmc 4020000.sdmmc: No vdmmc regulator found
[    6.408121] sunxi-mmc 4020000.sdmmc: No vd33sw regulator found
[    6.414689] sunxi-mmc 4020000.sdmmc: No vd18sw regulator found
[    6.421254] sunxi-mmc 4020000.sdmmc: No vq33sw regulator found
[    6.427777] sunxi-mmc 4020000.sdmmc: No vq18sw regulator found
[    6.434851] sunxi-mmc 4020000.sdmmc: Got CD GPIO
[    6.441206] sunxi-mmc 4020000.sdmmc: set cd-gpios as 24M fail
[    6.453119] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
[    6.464457] sunxi-mmc 4020000.sdmmc: no vqmmc,Check if there is regulator
[    6.484657] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    6.509165] sunxi-mmc 4020000.sdmmc: detmode:gpio irq
[    6.514906] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    6.535684] sunxi-mmc 4021000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.21 2021-05-24 16:10)
[    6.546097] sunxi-mmc 4021000.sdmmc: ***ctl-spec-caps*** 8
[    6.552415] sunxi-mmc 4021000.sdmmc: No vmmc regulator found
[    6.558792] sunxi-mmc 4021000.sdmmc: No vqmmc regulator found
[    6.565299] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    6.576946] sunxi-mmc 4021000.sdmmc: No vdmmc regulator found
[    6.583398] sunxi-mmc 4021000.sdmmc: No vd33sw regulator found
[    6.589924] sunxi-mmc 4021000.sdmmc: No vd18sw regulator found
[    6.599648] sunxi-mmc 4021000.sdmmc: No vq33sw regulator found
[    6.606327] sunxi-mmc 4021000.sdmmc: No vq18sw regulator found
[    6.613802] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    6.627521] sunxi-mmc 4021000.sdmmc: Cann't get pin bias hs pinstate,check if needed
[    6.642783] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    6.666510] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
[    6.677778] sunxi-mmc 4021000.sdmmc: no vqmmc,Check if there is regulator
[    6.698030] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    6.716902] mmc0: host does not support reading read-only switch, assuming write-enable
[    6.725934] sunxi-mmc 4021000.sdmmc: detmode:manually by software
[    6.736616] mmc0: Problem switching card into high-speed mode!
[    6.743287] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    6.762557] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 25000000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    6.780720] usbcore: registered new interface driver usbhid
[    6.787282] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 25000000Hz bm PP pm ON vdd 21 width 4 timing LEGACY(SDR12) dt B
[    6.799198] usbhid: USB HID core driver
[    6.803545] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    6.864452] mmc0: new SDHC card at address 0001
[    6.870449] [AUDIOCODEC][sunxi_codec_parse_params][2412]:digital_vol:0, lineout_vol:26, mic1gain:31, mic2gain:31 pa_msleep:120, pa_level:1, pa_pwr_level:1
[    6.870449] 
[    6.889498] mmcblk0: mmc0:0001 SD16G 7.48 GiB 
[    6.900797] [AUDIOCODEC][sunxi_codec_parse_params][2448]:adcdrc_cfg:0, adchpf_cfg:0, dacdrc_cfg:2, dachpf:3
[    6.912025]  mmcblk0: p1 p2 p3 p4
[    6.925118] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
[    6.946119] [AUDIOCODEC][sunxi_internal_codec_probe][2609]:codec probe finished
[    6.976140] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
[    7.011694] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 4 timing SD-HS(SDR25) dt B
[    7.023982] debugfs: Directory '203034c.dummy_cpudai' with parent 'audiocodec' already present!
[    7.034073] [SNDCODEC][sunxi_card_init][583]:card init finished
[    7.041574] mmc1: new high speed SDIO card at address 0001
[    7.059919] sunxi-codec-machine 2030340.sound: 2030000.codec <-> 203034c.dummy_cpudai mapping ok
[    7.103224] input: audiocodec sunxi Audio Jack as /devices/platform/soc@3000000/2030340.sound/sound/card0/input3
[    7.124533] [SNDCODEC][sunxi_card_dev_probe][800]:jack_enable missing, use default enable jack
[    7.134645] [SNDCODEC][sunxi_card_dev_probe][810]:hp_detect_case missing, use default hp_detect_low
[    7.147876] [SNDCODEC][sunxi_card_dev_probe][836]:register card finished
[    7.159331] NET: Registered protocol family 17
[    7.164498] [SNDCODEC][sunxi_hs_init_work][259]:resume-->report switch
[    7.172137] NET: Registered protocol family 15
[    7.177107] can: controller area network core (rev 20170425 abi 9)
[    7.184180] NET: Registered protocol family 29
[    7.189154] can: raw protocol (rev 20170425)
[    7.194005] can: broadcast manager protocol (rev 20170425 t)
[    7.200473] can: netlink gateway (rev 20190810) max_hops=1
[    7.209999] Registering SWP/SWPB emulation handler
[    7.222038] Loading compiled-in X.509 certificates
[    7.533549] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pd not found, using dummy regulator
[    7.548026] i2c i2c0: i2c0 supply twi not found, using dummy regulator
[    7.569460] i2c i2c0: probe success
[    7.579750] i2c i2c1: i2c1 supply twi not found, using dummy regulator
[    7.600944] i2c i2c1: probe success
[    7.656149] platform 2000c13.pwm3: pinctrl_get failed!
[    7.662180] platform 2000c13.pwm3: pinctrl_get failed!
[    7.667936] cpu cpu0: _set_opp_voltage: failed to set voltage (950000 950000 950000 mV): -19
[    7.677435] platform 2000c13.pwm3: pinctrl_get failed!
[    7.683219] platform 2000c13.pwm3: pinctrl_get failed!
[    7.688965] cpu cpu0: _set_opp_voltage: failed to set voltage (950000 950000 950000 mV): -19
[    7.698421] cpufreq: __target_index: Failed to change cpu frequency: -19
[    7.716527] get ehci0-controller wakeup-source is fail.
[    7.722853] sunxi ehci0-controller don't init wakeup source
[    7.729097] [sunxi-ehci0]: probe, pdev->name: 4101000.ehci0-controller, sunxi_ehci: 0xc0c6e630, 0x:c8a1f000, irq_no:30
[    7.741146] [sunxi-ehci0]: Not init ehci0
[    7.749253] get ohci0-controller wakeup-source is fail.
[    7.755560] sunxi ohci0-controller don't init wakeup source
[    7.761951] [sunxi-ohci0]: probe, pdev->name: 4101400.ohci0-controller, sunxi_ohci: 0xc0c6ede0
[    7.771659] [sunxi-ohci0]: Not init ohci0
[    7.776693] get ehci1-controller wakeup-source is fail.
[    7.785879] sunxi ehci1-controller don't init wakeup source
[    7.792274] [sunxi-ehci1]: probe, pdev->name: 4200000.ehci1-controller, sunxi_ehci: 0xc0c6e8c0, 0x:c8a29000, irq_no:32
[    7.807859] sunxi-ehci 4200000.ehci1-controller: 4200000.ehci1-controller supply hci not found, using dummy regulator
[    7.827233] platform 2000c13.pwm3: pinctrl_get failed!
[    7.833128] sunxi-ehci 4200000.ehci1-controller: EHCI Host Controller
[    7.843657] platform 2000c13.pwm3: pinctrl_get failed!
[    7.849422] cpu cpu0: _set_opp_voltage: failed to set voltage (950000 950000 950000 mV): -19
[    7.859256] sunxi-ehci 4200000.ehci1-controller: new USB bus registered, assigned bus number 1
[    7.869067] platform 2000c13.pwm3: pinctrl_get failed!
[    7.874870] platform 2000c13.pwm3: pinctrl_get failed!
[    7.880638] cpu cpu0: _set_opp_voltage: failed to set voltage (950000 950000 950000 mV): -19
[    7.890079] cpufreq: __target_index: Failed to change cpu frequency: -19
[    7.897863] sunxi-ehci 4200000.ehci1-controller: irq 50, io mem 0x04200000
[    7.930297] sunxi-ehci 4200000.ehci1-controller: USB 2.0 started, EHCI 1.00
[    7.938095] sunxi-ehci 4200000.ehci1-controller: ehci_irq: highspeed device connect
[    7.960472] hub 1-0:1.0: USB hub found
[    7.967921] hub 1-0:1.0: 1 port detected
[    7.986919] get ohci1-controller wakeup-source is fail.
[    7.993234] sunxi ohci1-controller don't init wakeup source
[    7.999475] [sunxi-ohci1]: probe, pdev->name: 4200400.ohci1-controller, sunxi_ohci: 0xc0c6f070
[    8.012923] sunxi-ohci 4200400.ohci1-controller: 4200400.ohci1-controller supply hci not found, using dummy regulator
[    8.031985] sunxi-ohci 4200400.ohci1-controller: OHCI Host Controller
[    8.039239] sunxi-ohci 4200400.ohci1-controller: new USB bus registered, assigned bus number 2
[    8.052791] sunxi-ohci 4200400.ohci1-controller: irq 51, io mem 0x04200400
[    8.144577] hub 2-0:1.0: USB hub found
[    8.158447] hub 2-0:1.0: 1 port detected
[    8.191615] get det_vbus is fail, -84
[    8.195718] get id is fail, -84
[    8.219032] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    8.240889] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    8.248418] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    8.258394] ALSA device list:
[    8.261780] cfg80211: failed to load regulatory.db
[    8.267322]   #0: audiocodec
[    8.287104] VFS: Mounted root (squashfs filesystem) readonly on device 179:2.
[    8.296381] Freeing unused kernel memory: 1024K
[    8.328080] Run /sbin/init as init process
[    8.342686] usb 1-1: new high-speed USB device number 2 using sunxi-ehci
[    8.605959] hub 1-1:1.0: USB hub found
[    8.628770] hub 1-1:1.0: 4 ports detected
[    9.101894] init: Console is alive
[    9.105922] init: - watchdog -
[    9.294266] 
[    9.294266] insmod_device_driver
[    9.294266] 
[    9.301270] pdev is null
[    9.304105] device_chose finished 139!
[    9.318093] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    9.370663] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    9.380629] init: - preinit -
cat: can't open '/proc/board-info/hostname': No such file or directory
/bin/board_detect: /etc/board.d/01_system: line 27: ucidef_set_timezone: not found
/bin/board_detect: /etc/board.d/01_system: line 28: ucidef_set_zonename: not found
[   10.299632] random: jshn: uninitialized urandom read (4 bytes read)
[   10.381388] random: jshn: uninitialized urandom read (4 bytes read)
[   10.421100] random: jshn: uninitialized urandom read (4 bytes read)
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[   11.440846] urandom_read: 2 callbacks suppressed
[   11.440857] random: procd: uninitialized urandom read (4 bytes read)
[   13.902785] EXT4-fs (loop0): recovery complete
[   13.915294] EXT4-fs (loop0): mounted filesystem with ordered data mode. Opts: (null)
[   13.927127] mount_root: switching to ext4 overlay
[   13.987082] urandom-seed: Seeding with /etc/urandom.seed
[   14.115843] procd: - early -
[   14.119192] procd: - watchdog -
[   15.206559] procd: - watchdog -
[   15.211105] procd: - ubus -
[   15.313633] random: ubusd: uninitialized urandom read (4 bytes read)
[   15.368086] random: ubusd: uninitialized urandom read (4 bytes read)
[   15.377970] random: ubusd: uninitialized urandom read (4 bytes read)
[   15.387016] procd: - init -
Please press Enter to activate this console.
[   16.337156] urngd: v1.0.2 started.
[   16.560401] random: crng init done
[   16.564218] random: 1 urandom warning(s) missed due to ratelimiting
[   16.619146] kmodloader: loading kernel modules from /etc/modules.d/*
[   17.021157] xt_time: kernel timezone is -0000
[   17.251272] PPP generic driver version 2.4.2
[   17.289812] NET: Registered protocol family 24
[   17.437941] kmodloader: done loading kernel modules from /etc/modules.d/*
[   24.787829] libphy: 4500000.eth: probed
[   24.809611] sunxi-gmac 4500000.eth eth0: eth0: Type(7) PHY ID 001cc816 at 0 IRQ poll (4500000.eth-0:00)

OpenWrt login: 

离线

#61 2022-09-09 16:44:24

richard.zhou
会员
注册时间: 2022-08-31
已发帖子: 5
积分: 25

Re: T113-s3 spi-nand 启动

[531]00
[532]Loading boot-pkg Succeed(index=0).
[536]Cluster 0 Reset Control Register : 13ff0103
[540]Cluster 0 Reset Control Register : 13ff0103
[545]Jump to second Boot.

很奇怪的现象 0x09010000寄存器在SPL阶段两个CPU都自动De-assert,而且好像无法开关。

1111.png

寄存器上看第二个核很早就已经启动了,这样就变成了内核无法接管第二个核了。

但是有时候寄存器状态是正常的,这种情况下第二个核就能正常启动。

离线

楼主 #62 2022-09-13 07:34:32

Cadence
会员
注册时间: 2022-04-01
已发帖子: 71
积分: 85

Re: T113-s3 spi-nand 启动

@richard.zhou

static int sun8i_smp_boot_secondary(unsigned int cpu,
                    struct task_struct *idle)
{
    u32 reg;
    void __iomem *cpucfg_membase = ioremap(0x09010000, 0x10);
    void __iomem *cpuexec_membase[] = {ioremap(0x070005C4, 0x10),ioremap(0x070005C8, 0x10)};

    if(cpu != 1)return 0;

//    pr_info("%s %d cpu %x\n",__FILE__,__LINE__,(u32)idle);
    spin_lock(&cpu_lock);
    
    /* Set CPU boot address */
    writel(__pa_symbol(secondary_startup),  cpuexec_membase[cpu]);
//  writel((u32)idle,   cpuexec_membase[cpu]);  /* do not work */

    /* Deassert the CPU core reset */
    reg = readl(cpucfg_membase);
    pr_info("%s %d cpucfg_membase = %x cpu=%d(%d)\n",__FILE__,__LINE__,(u32)reg, cpu, BIT(cpu));
    writel(reg | BIT(cpu), cpucfg_membase);
    pr_info("%s %d cpucfg_membase = %x\n",__FILE__,__LINE__,(u32)readl(cpucfg_membase));

    spin_unlock(&cpu_lock);

    return 0;
}

启动log

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.4.61 (root@i9-10920) (arm-linux-gnueabihf-gcc (Linaro GCC 7.5-2019.12) 7.5.0, GNU ld (Linaro_Binutils-2019.12) 2.28.2.20170706) #160 SMP PREEMPT Tue Sep 13 07:28:42 CST 2022
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: sun8iw20
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] cma: Reserved 8 MiB at 0x47800000
[    0.000000] On node 0 totalpages: 32768
[    0.000000]   Normal zone: 256 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 32768 pages, LIFO batch:7
[    0.000000] percpu: Embedded 15 pages/cpu s32076 r8192 d21172 u61440
[    0.000000] pcpu-alloc: s32076 r8192 d21172 u61440 alloc=15*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,115200n8 earlyprintk=sunxi-uart,0x02500000 clk_ignore_unused loglevel=8 init=/init cma=8M root=/dev/ram0 rw
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 107512K/131072K available (7168K kernel code, 395K rwdata, 2464K rodata, 3072K init, 157K bss, 15368K reserved, 8192K cma-reserved)
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000]  Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] random: get_random_bytes called from start_kernel+0x250/0x440 with crng_init=0
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000006] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000018] Switching to timer-based delay loop, resolution 41ns
[    0.000196] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000807] Console: colour dummy device 80x30
[    0.000847] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000862] pid_max: default: 32768 minimum: 301
[    0.000941] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.000956] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001548] CPU: Testing write buffer coherency: ok
[    0.001873] /cpus/cpu@0 missing clock-frequency property
[    0.001895] /cpus/cpu@1 missing clock-frequency property
[    0.001907] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002600] Setting up static identity map for 0x40100000 - 0x40100060
[    0.002754] rcu: Hierarchical SRCU implementation.
[    0.003120] BOOTEVENT:         3.111416: ON
[    0.003318] smp: Bringing up secondary CPUs ...
[    0.003902] arch/arm/mach-sunxi/plat_t113_smp.c 44 cpucfg_membase = 13ff0101 cpu=1(2)
[    0.003914] arch/arm/mach-sunxi/plat_t113_smp.c 46 cpucfg_membase = 13ff0103
[    0.004146] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.004300] smp: Brought up 1 node, 2 CPUs
[    0.004313] SMP: Total of 2 processors activated (96.00 BogoMIPS).
[    0.004320] CPU: All CPU(s) started in SVC mode.
[    0.004910] devtmpfs: initialized
[    0.113510] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.116486] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.116517] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.116953] pinctrl core: initialized pinctrl subsystem
[    0.131158] NET: Registered protocol family 16
[    0.137153] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.153987] cpuidle: using governor ladder
[    0.154070] cpuidle: using governor menu
[    0.444548] rtc_ccu: sunxi ccu init OK
[    0.481460] ccu: sunxi ccu init OK
[    0.487744] r_ccu: sunxi ccu init OK
[    1.036313] iommu: Default domain type: Translated 
[    1.036526] sunxi iommu: irq = 24
[    1.068689] SCSI subsystem initialized
[    1.079281] usbcore: registered new interface driver usbfs
[    1.079657] usbcore: registered new interface driver hub
[    1.079849] usbcore: registered new device driver usb
[    1.087640] mc: Linux media interface: v0.10
[    1.090096] videodev: Linux video capture interface: v2.00
[    1.113880] sunxi-msgbox-amp 3003000.msgbox: invalid resource
[    1.124898] Advanced Linux Sound Architecture Driver Initialized.
[    1.140940] pwm module init!
[    1.151102] clocksource: Switched to clocksource arch_sys_counter
[    1.339475] sun8iw20-pinctrl 2000000.pinctrl: initialized sunXi PIO driver
[    1.477101] thermal_sys: Registered thermal governor 'step_wise'
[    1.477109] thermal_sys: Registered thermal governor 'user_space'
[    1.484802] NET: Registered protocol family 2
[    1.496563] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    1.496605] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    1.496631] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    1.496654] TCP: Hash tables configured (established 1024 bind 1024)
[    1.496785] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    1.496821] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    1.497007] NET: Registered protocol family 1
[    1.518882] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pc not found, using dummy regulator
[    1.523635] spi spi0: spi0 supply spi not found, using dummy regulator
[    1.528778] sunxi_spi_resource_get()2151 - [spi0] SPI MASTER MODE
[    1.531876] sunxi_spi_resource_get()2189 - Failed to get sample mode
[    1.531892] sunxi_spi_resource_get()2194 - Failed to get sample delay
[    1.531902] sunxi_spi_resource_get()2198 - sample_mode:-1431633921 sample_delay:-1431633921
[    1.531983] sunxi_spi_clk_init()2240 - [spi0] mclk 100000000
[    1.544828] sunxi_spi_probe()2653 - [spi0]: driver probe succeed, base c8829000, irq 45
[    1.822203] Initialise system trusted keyrings
[    1.822377] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    1.825855] fuse: init (API version 7.31)
[    1.861419] NET: Registered protocol family 38
[    1.861448] Key type asymmetric registered
[    1.861457] Asymmetric key parser 'x509' registered
[    1.861666] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    1.861680] io scheduler mq-deadline registered
[    1.861688] io scheduler kyber registered
[    1.886747] sunxi_sid_init()551 - insmod ok
[    1.896758] pwm-regulator: supplied by regulator-dummy
[    1.929371] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pe not found, using dummy regulator
[    1.929766] uart uart0: get regulator failed
[    1.929789] uart uart0: uart0 supply uart not found, using dummy regulator
[    1.930411] uart0: ttyS0 at MMIO 0x2500000 (irq = 34, base_baud = 1500000) is a SUNXI
[    1.930443] sw_console_setup()1784 - console setup baud 115200 parity n bits 8, flow n
[    2.690102] printk: console [ttyS0] enabled
[    2.698830] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pg not found, using dummy regulator
[    2.713418] uart uart1: get regulator failed
[    2.718212] uart uart1: uart1 supply uart not found, using dummy regulator
[    2.735683] uart1: ttyS1 at MMIO 0x2500400 (irq = 35, base_baud = 1500000) is a SUNXI
[    2.751777] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pd not found, using dummy regulator
[    2.763187] uart uart2: get regulator failed
[    2.767973] uart uart2: uart2 supply uart not found, using dummy regulator
[    2.785620] uart2: ttyS2 at MMIO 0x2500800 (irq = 36, base_baud = 1500000) is a SUNXI
[    2.814241] uart uart3: get regulator failed
[    2.819040] uart uart3: uart3 supply uart not found, using dummy regulator
[    2.827142] uart3: ttyS3 at MMIO 0x2500c00 (irq = 37, base_baud = 1500000) is a SUNXI
[    2.849763] uart uart4: get regulator failed
[    2.854608] uart uart4: uart4 supply uart not found, using dummy regulator
[    2.865905] uart4: ttyS4 at MMIO 0x2501000 (irq = 38, base_baud = 1500000) is a SUNXI
[    2.891706] uart uart5: get regulator failed
[    2.896500] uart uart5: uart5 supply uart not found, using dummy regulator
[    2.910769] uart5: ttyS5 at MMIO 0x2501400 (irq = 39, base_baud = 1500000) is a SUNXI
[    2.947200] misc dump reg init
[    2.964631] sunxi-rfkill soc@3000000:rfkill@0: module version: v1.0.9
[    2.971866] sunxi-rfkill soc@3000000:rfkill@0: devm_pinctrl_get() failed!
[    2.979470] sunxi-rfkill soc@3000000:rfkill@0: get gpio chip_en failed
[    2.986786] sunxi-rfkill soc@3000000:rfkill@0: get gpio power_en failed
[    2.994195] sunxi-rfkill soc@3000000:rfkill@0: wlan_busnum (1)
[    3.000708] sunxi-rfkill soc@3000000:rfkill@0: Missing wlan_power.
[    3.007651] sunxi-rfkill soc@3000000:rfkill@0: wlan clock[0] (32k-fanout1)
[    3.015365] sunxi-rfkill soc@3000000:rfkill@0: wlan_regon gpio=204 assert=0
[    3.023220] sunxi-rfkill soc@3000000:rfkill@0: wlan_hostwake gpio=202 assert=1
[    3.031316] sunxi-rfkill soc@3000000:rfkill@0: wakeup source is enabled
[    3.042473] sunxi-rfkill soc@3000000:rfkill@0: Missing bt_power.
[    3.049222] sunxi-rfkill soc@3000000:rfkill@0: bt clock[0] (32k-fanout1)
[    3.056779] sunxi-rfkill soc@3000000:rfkill@0: bt_rst gpio=210 assert=0
[    3.111941] spi-nand spi0.0: Winbond SPI NAND was found.
[    3.117882] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[    3.137042] 6 fixed-partitions partitions found on MTD device spi0.0
[    3.144202] Creating 6 MTD partitions on "spi0.0":
[    3.149556] 0x000000000000-0x000000100000 : "boot0"
[    3.198737] 0x000000100000-0x000000200000 : "u-boot"
[    3.252859] 0x000000200000-0x000000220000 : "dtb"
[    3.323022] 0x000000220000-0x000000a20000 : "kernel"
[    3.331474] random: fast init done
[    3.406722] 0x000000a20000-0x000004a20000 : "usr"
[    3.613556] 0x000004a20000-0x000008000000 : "app"
[    3.808754] libphy: Fixed MDIO Bus: probed
[    3.813499] CAN device driver interface
[    3.818046] ======== XRADIO WIFI OPEN ========
[    3.830622] [XRADIO] Driver Label:XR_V02.16.84_P2P_HT40_01.31   
[    3.837435] [XRADIO] Allocated hw_priv @ (ptrval)
[    3.842717] [ADDR_MGT] get_addr_by_name: t->addr: 
[    3.859421] sunxi-rfkill soc@3000000:rfkill@0: bus_index: 1
[    3.875728] sunxi-rfkill soc@3000000:rfkill@0: wlan power on success
[    4.082861] sunxi_hosts[1] should not be null
[    4.082866] [XRADIO] Detect SDIO card 1
[    6.161225] sunxi-rfkill soc@3000000:rfkill@0: wlan power off success
[    6.268431] sunxi_hosts[1] should not be null
[    6.268437] [XRADIO] Remove SDIO card 1
[    6.287586] [SBUS_ERR] sdio probe timeout!
[    6.292170] [XRADIO_ERR] sbus_sdio_init failed
[    6.297507] xradio_core_init failed (-110)!
[    6.341195] RTL871X: module init start
[    6.345386] RTL871X: rtl8189fs v4.3.24.8_22657.20170607
[    6.351357] RTL871X: module init ret=0
[    6.355547] hso: drivers/net/usb/hso.c: Option Wireless
[    6.361539] usbcore: registered new interface driver hso
[    6.367478] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    6.374781] sunxi-ehci: EHCI SUNXI driver
[    6.383142] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    6.390086] sunxi-ohci: OHCI SUNXI driver
[    6.395260] usbcore: registered new interface driver uas
[    6.401342] usbcore: registered new interface driver usb-storage
[    6.408122] usbcore: registered new interface driver ums-alauda
[    6.414821] usbcore: registered new interface driver ums-cypress
[    6.421630] usbcore: registered new interface driver ums-datafab
[    6.431930] usbcore: registered new interface driver ums_eneub6250
[    6.438916] usbcore: registered new interface driver ums-freecom
[    6.445733] usbcore: registered new interface driver ums-isd200
[    6.452470] usbcore: registered new interface driver ums-jumpshot
[    6.459345] usbcore: registered new interface driver ums-karma
[    6.469424] usbcore: registered new interface driver ums-onetouch
[    6.480120] usbcore: registered new interface driver ums-realtek
[    6.486969] usbcore: registered new interface driver ums-sddr09
[    6.493673] usbcore: registered new interface driver ums-sddr55
[    6.500346] usbcore: registered new interface driver ums-usbat
[    6.521893] input: sunxi-ts as /devices/platform/soc@3000000/2009c00.rtp/input/input0
[    6.549569] sunxi_gpadc_init,2137, success
[    6.554542] sunxi_key_init: get key count failed
[    6.554558] sunxi_gpadc_setup: get channel scan data failed
[    6.569772] input: sunxi-gpadc0 as /devices/virtual/input/input1
[    6.584129] input: sunxi-gpadc1 as /devices/virtual/input/input2
[    6.626613] sunxi-rtc 7090000.rtc: registered as rtc0
[    6.632419] sunxi-rtc 7090000.rtc: setting system clock to 1970-01-04T01:40:50 UTC (265250)
[    6.641811] sunxi-rtc 7090000.rtc: sunxi rtc probed
[    6.647712] i2c /dev entries driver
[    6.651981] IR NEC protocol handler initialized
[    6.657033] IR RC5(x/sz) protocol handler initialized
[    6.663185] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pb not found, using dummy regulator
[    6.678269] sunxi_ir_startup: get ir protocol failed
[    6.678301] (NULL device *): deviceless supply  not found, using dummy regulator
[    6.695811] Registered IR keymap rc_map_sunxi
[    6.704479] rc rc0: sunxi-ir as /devices/platform/soc@3000000/7040000.s_cir/rc/rc0
[    6.720274] input: sunxi-ir as /devices/platform/soc@3000000/7040000.s_cir/rc/rc0/s_cir_rx
[    6.742208] sunxi cedar version 1.1
[    6.746412] sunxi-cedar 1c0e000.ve: Adding to iommu group 0
[    6.752761] VE: sunxi_cedar_probe power-domain init!!!
[    6.758506] VE: install start!!!
[    6.758506] 
[    6.771460] VE: cedar-ve the get irq is 46
[    6.771460] 
[    6.777997] VE: ve_debug_proc_info:(ptrval), data:(ptrval), lock:(ptrval)
[    6.777997] 
[    6.787268] VE: install end!!!
[    6.787268] 
[    6.792374] VE: sunxi_cedar_probe
[    6.805036] sunxi-wdt 20500a0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    6.827838] /cpus/cpu@0: unsupported enable-method property: psci
[    6.870205] sunxi-mmc 4020000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.21 2021-05-24 16:10)
[    6.880192] sunxi-mmc 4020000.sdmmc: ***ctl-spec-caps*** 8
[    6.886397] sunxi-mmc 4020000.sdmmc: No vmmc regulator found
[    6.892750] sunxi-mmc 4020000.sdmmc: No vqmmc regulator found
[    6.899161] sunxi-mmc 4020000.sdmmc: No vdmmc regulator found
[    6.905593] sunxi-mmc 4020000.sdmmc: No vd33sw regulator found
[    6.912113] sunxi-mmc 4020000.sdmmc: No vd18sw regulator found
[    6.918635] sunxi-mmc 4020000.sdmmc: No vq33sw regulator found
[    6.925155] sunxi-mmc 4020000.sdmmc: No vq18sw regulator found
[    6.939465] sunxi-mmc 4020000.sdmmc: Got CD GPIO
[    6.944993] sunxi-mmc 4020000.sdmmc: set cd-gpios as 24M fail
[    6.955447] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
[    6.966598] sunxi-mmc 4020000.sdmmc: no vqmmc,Check if there is regulator
[    6.986720] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    7.011307] sunxi-mmc 4020000.sdmmc: detmode:gpio irq
[    7.016977] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 0Hz bm PP pm OFF vdd 0 width 1 timing LEGACY(SDR12) dt B
[    7.034351] sunxi-mmc 4021000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.21 2021-05-24 16:10)
[    7.044363] sunxi-mmc 4021000.sdmmc: ***ctl-spec-caps*** 8
[    7.050547] sunxi-mmc 4021000.sdmmc: No vmmc regulator found
[    7.056913] sunxi-mmc 4021000.sdmmc: No vqmmc regulator found
[    7.063356] sunxi-mmc 4021000.sdmmc: No vdmmc regulator found
[    7.069775] sunxi-mmc 4021000.sdmmc: No vd33sw regulator found
[    7.076302] sunxi-mmc 4021000.sdmmc: No vd18sw regulator found
[    7.082835] sunxi-mmc 4021000.sdmmc: No vq33sw regulator found
[    7.089346] sunxi-mmc 4021000.sdmmc: No vq18sw regulator found
[    7.095914] sunxi-mmc 4021000.sdmmc: Cann't get pin bias hs pinstate,check if needed
[    7.118832] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
[    7.129989] sunxi-mmc 4021000.sdmmc: no vqmmc,Check if there is regulator
[    7.150126] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    7.174328] sunxi-mmc 4021000.sdmmc: detmode:manually by software
[    7.186505] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    7.209957] usbcore: registered new interface driver usbhid
[    7.212353] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    7.216227] usbhid: USB HID core driver
[    7.229452] sunxi-mmc 4021000.sdmmc: card claims to support voltages below defined range
[    7.284934] [AUDIOCODEC][sunxi_codec_parse_params][2412]:digital_vol:0, lineout_vol:26, mic1gain:31, mic2gain:31 pa_msleep:120, pa_level:1, pa_pwr_level:1
[    7.284934] 
[    7.288231] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
[    7.302191] [AUDIOCODEC][sunxi_codec_parse_params][2448]:adcdrc_cfg:0, adchpf_cfg:0, dacdrc_cfg:2, dachpf:3
[    7.313684] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
[    7.324981] [AUDIOCODEC][sunxi_internal_codec_probe][2609]:codec probe finished
[    7.336257] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 4 timing SD-HS(SDR25) dt B
[    7.364305] debugfs: Directory '203034c.dummy_cpudai' with parent 'audiocodec' already present!
[    7.365329] mmc1: new high speed SDIO card at address 0001
[    7.374171] [SNDCODEC][sunxi_card_init][583]:card init finished
[    7.400250] sunxi-codec-machine 2030340.sound: 2030000.codec <-> 203034c.dummy_cpudai mapping ok
[    7.452708] input: audiocodec sunxi Audio Jack as /devices/platform/soc@3000000/2030340.sound/sound/card0/input4
[    7.460240] RTL871X: HW EFUSE
[    7.473906] RTL871X: hal_com_config_channel_plan chplan:0x20
[    7.474299] [SNDCODEC][sunxi_card_dev_probe][800]:jack_enable missing, use default enable jack
[    7.489991] [SNDCODEC][sunxi_card_dev_probe][810]:hp_detect_case missing, use default hp_detect_low
[    7.502473] [SNDCODEC][sunxi_card_dev_probe][836]:register card finished
[    7.503121] random: crng init done
[    7.517933] oprofile: hardware counters not available
[    7.523639] [SNDCODEC][sunxi_hs_init_work][259]:resume-->report switch
[    7.531022] oprofile: using timer interrupt.
[    7.536350] NET: Registered protocol family 10
[    7.560511] Segment Routing with IPv6
[    7.568630] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    7.607506] NET: Registered protocol family 17
[    7.612760] NET: Registered protocol family 15
[    7.617713] can: controller area network core (rev 20170425 abi 9)
[    7.624724] NET: Registered protocol family 29
[    7.629679] can: raw protocol (rev 20170425)
[    7.634460] can: broadcast manager protocol (rev 20170425 t)
[    7.640765] can: netlink gateway (rev 20190810) max_hops=1
[    7.649116] Registering SWP/SWPB emulation handler
[    7.662862] Loading compiled-in X.509 certificates
[    7.695297] RTL871X: rtw_regsty_chk_target_tx_power_valid return _FALSE for band:0, path:0, rs:0, t:-1
[    7.733144] RTL871X: rtw_ndev_init(wlan0) if1 mac_addr=94:a4:08:c4:c0:61
[    8.154121] i2c i2c0: i2c0 supply twi not found, using dummy regulator
[    8.174387] i2c i2c0: probe success
[    8.187044] i2c i2c1: i2c1 supply twi not found, using dummy regulator
[    8.215037] i2c i2c1: probe success
[    8.227442] i2c i2c2: i2c2 supply twi not found, using dummy regulator
[    8.251605] i2c i2c2: probe success
[    8.264212] i2c i2c3: i2c3 supply twi not found, using dummy regulator
[    8.288442] i2c i2c3: probe success
[    8.395978] get ehci0-controller wakeup-source is fail.
[    8.402110] sunxi ehci0-controller don't init wakeup source
[    8.408367] [sunxi-ehci0]: probe, pdev->name: 4101000.ehci0-controller, sunxi_ehci: 0xc0e80d28, 0x:c8a88000, irq_no:38
[    8.420382] [sunxi-ehci0]: Not init ehci0
[    8.429162] get ohci0-controller wakeup-source is fail.
[    8.438996] sunxi ohci0-controller don't init wakeup source
[    8.445289] [sunxi-ohci0]: probe, pdev->name: 4101400.ohci0-controller, sunxi_ohci: 0xc0e80fb8
[    8.454958] [sunxi-ohci0]: Not init ohci0
[    8.459950] get ehci1-controller wakeup-source is fail.
[    8.465953] sunxi ehci1-controller don't init wakeup source
[    8.472224] [sunxi-ehci1]: probe, pdev->name: 4200000.ehci1-controller, sunxi_ehci: 0xc0e81248, 0x:c8a91000, irq_no:3a
[    8.488570] sunxi-ehci 4200000.ehci1-controller: 4200000.ehci1-controller supply hci not found, using dummy regulator
[    8.504393] sunxi-ehci 4200000.ehci1-controller: EHCI Host Controller
[    8.511723] sunxi-ehci 4200000.ehci1-controller: new USB bus registered, assigned bus number 1
[    8.521772] sunxi-ehci 4200000.ehci1-controller: irq 58, io mem 0x04200000
[    8.561114] sunxi-ehci 4200000.ehci1-controller: USB 2.0 started, EHCI 1.00
[    8.585543] hub 1-0:1.0: USB hub found
[    8.595949] hub 1-0:1.0: 1 port detected
[    8.624778] get ohci1-controller wakeup-source is fail.
[    8.632365] sunxi ohci1-controller don't init wakeup source
[    8.638627] [sunxi-ohci1]: probe, pdev->name: 4200400.ohci1-controller, sunxi_ohci: 0xc0e814d8
[    8.655038] sunxi-ohci 4200400.ohci1-controller: 4200400.ohci1-controller supply hci not found, using dummy regulator
[    8.675240] sunxi-ohci 4200400.ohci1-controller: OHCI Host Controller
[    8.682529] sunxi-ohci 4200400.ohci1-controller: new USB bus registered, assigned bus number 2
[    8.692477] sunxi-ohci 4200400.ohci1-controller: irq 59, io mem 0x04200400
[    8.782032] hub 2-0:1.0: USB hub found
[    8.786448] hub 2-0:1.0: 1 port detected
[    8.816664] get det_vbus is fail, -84
[    8.820776] get id is fail, -84
[    8.849953] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    8.897469] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    8.909063] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    8.911331] clk: Not disabling unused clocks
[    8.918769] cfg80211: failed to load regulatory.db
[    8.923571] ALSA device list:
[    8.932287]   #0: audiocodec
[    8.935568] Warning: unable to open an initial console.
[    8.946674] Freeing unused kernel memory: 3072K
[    9.001270] Kernel init done
[    9.004500] Run /init as init process
Jan  4 09:40:53 T113-s3 syslog.info syslogd started: BusyBox v1.35.0
[    9.608180] ubi0: default fastmap pool size: 25
[    9.613335] ubi0: default fastmap WL pool size: 12
[    9.618708] ubi0: attaching mtd4
[    9.841125] 
[    9.841125] insmod_device_driver
[    9.841125] 
[    9.848064] pdev is null
[    9.850900] device_chose finished 139!
[   10.053159] ubi0: scanning is finished
[   10.077671] ubi0: attached mtd4 (name "usr", size 64 MiB)
[   10.091169] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[   10.098905] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[   10.106592] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[   10.114441] ubi0: good PEBs: 512, bad PEBs: 0, corrupted PEBs: 0
[   10.121190] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
[   10.129290] ubi0: max/mean erase counter: 2/0, WL threshold: 4096, image sequence number: 246415116
[   10.139445] ubi0: available PEBs: 0, total reserved PEBs: 512, PEBs reserved for bad PEB handling: 20
[   10.149813] ubi0: background thread "ubi_bgt0d" started, PID 1065
[   10.192615] UBIFS (ubi0:0): Mounting in unauthenticated mode
[   10.312614] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "usr", R/O mode
[   10.321656] UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[   10.332793] UBIFS (ubi0:0): FS size: 60440576 bytes (57 MiB, 476 LEBs), journal size 8126464 bytes (7 MiB, 64 LEBs)
[   10.344508] UBIFS (ubi0:0): reserved for root: 0 bytes (0 KiB)
[   10.351051] UBIFS (ubi0:0): media format: w4/r0 (latest is w5/r0), UUID 2B8EFCD5-6F03-4AA5-9676-9CB79708AA78, small LPT model
[   10.382624] ubi1: default fastmap pool size: 20
[   10.387712] ubi1: default fastmap WL pool size: 10
[   10.393140] ubi1: attaching mtd5
[   11.274481] ubi1: scanning is finished
[   11.311374] ubi1: attached mtd5 (name "app", size 53 MiB)
[   11.317444] ubi1: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[   11.325285] ubi1: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[   11.335621] ubi1: VID header offset: 2048 (aligned 2048), data offset: 4096
[   11.343552] ubi1: good PEBs: 431, bad PEBs: 0, corrupted PEBs: 0
[   11.350310] ubi1: user volume: 1, internal volumes: 1, max. volumes count: 128
[   11.358463] ubi1: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 1565070343
[   11.368724] ubi1: available PEBs: 0, total reserved PEBs: 431, PEBs reserved for bad PEB handling: 20
[   11.379102] ubi1: background thread "ubi_bgt1d" started, PID 1071
[   11.402831] UBIFS (ubi1:0): Mounting in unauthenticated mode
[   11.412721] UBIFS (ubi1:0): background thread "ubifs_bgt1_0" started, PID 1074
[   11.478528] UBIFS (ubi1:0): recovery needed
[   11.592788] UBIFS (ubi1:0): recovery completed
[   11.598115] UBIFS (ubi1:0): UBIFS: mounted UBI device 1, volume 0, name "root"
[   11.606273] UBIFS (ubi1:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[   11.617411] UBIFS (ubi1:0): FS size: 50028544 bytes (47 MiB, 394 LEBs), journal size 6729728 bytes (6 MiB, 53 LEBs)
[   11.629128] UBIFS (ubi1:0): reserved for root: 0 bytes (0 KiB)
[   11.635685] UBIFS (ubi1:0): media format: w4/r0 (latest is w5/r0), UUID 84CF5461-96A1-4064-8B28-B70DF8ED672A, small LPT model
Jan  4 09:40:55 T113-s3 daemon.info nit: starting pid 1075, tty '/dev/ttyS0': '/bin/login -f root'
Jan  4 09:40:55 T113-s3 auth.info login[1075]: root login on 'ttyS0'

离线

#63 2022-09-13 14:17:25

richard.zhou
会员
注册时间: 2022-08-31
已发帖子: 5
积分: 25

Re: T113-s3 spi-nand 启动

问题应该算解决了,在SPL中把CPU的主频设置为480M就可以正常启动了,原先是1008M。不知道是芯片的问题还是板子的问题。

离线

#64 2022-09-18 19:23:48

anyi
会员
注册时间: 2022-08-30
已发帖子: 5
积分: 36

Re: T113-s3 spi-nand 启动

也是最近入坑T113,刚用了Cadence的git代码,存储用了winbond的spi nand. 好像只能DTS配置SPI单线双工才能跑起来,配置4线时就是有问题。
另外配置显示驱动就进不了串口终端了,感觉一头雾水。

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.4.61+ (root@am-d8cb8a093a31.intern) (arm-linux-gnueabihf-gcc (Linaro GCC 7.2-2017.11) 7.2.1 20171011, GNU ld (Linaro_Binutils-2017.11) 2.28.2.20170706) #72 SMP PREEMPT Fri Sep 9 09:41:24 CST 2022
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: sun8iw20
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] cma: Reserved 8 MiB at 0x47800000
[    0.000000] On node 0 totalpages: 32768
[    0.000000]   Normal zone: 256 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 32768 pages, LIFO batch:7
[    0.000000] percpu: Embedded 15 pages/cpu s32076 r8192 d21172 u61440
[    0.000000] pcpu-alloc: s32076 r8192 d21172 u61440 alloc=15*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: earlyprintk=sunxi-uart,0x2500C00 loglevel=8 initcall_debug=0 console=ttyS3 mtdparts=spi-nand:512k(boot),512k(dtb),11m(kernel),-(rootfs) cma=8M ubi.mtd=3 root=ubi0:rootfs rootfstype=ubifs rw rootwait
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 109660K/131072K available (7168K kernel code, 317K rwdata, 2336K rodata, 1024K init, 135K bss, 13220K reserved, 8192K cma-reserved)
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000]  Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] random: get_random_bytes called from start_kernel+0x250/0x3e0 with crng_init=0
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000006] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000018] Switching to timer-based delay loop, resolution 41ns
[    0.000196] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000807] Console: colour dummy device 80x30
[    0.000848] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000862] pid_max: default: 32768 minimum: 301
[    0.000943] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.000956] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001549] CPU: Testing write buffer coherency: ok
[    0.001870] /cpus/cpu@0 missing clock-frequency property
[    0.001892] /cpus/cpu@1 missing clock-frequency property
[    0.001903] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002601] Setting up static identity map for 0x40100000 - 0x40100060
[    0.002755] rcu: Hierarchical SRCU implementation.
[    0.003120] BOOTEVENT:         3.111915: ON
[    0.003327] smp: Bringing up secondary CPUs ...
[    0.004139] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.004294] smp: Brought up 1 node, 2 CPUs
[    0.004309] SMP: Total of 2 processors activated (96.00 BogoMIPS).
[    0.004316] CPU: All CPU(s) started in SVC mode.
[    0.004900] devtmpfs: initialized
[    0.110672] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.113623] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.113654] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.114090] pinctrl core: initialized pinctrl subsystem
[    0.126507] NET: Registered protocol family 16
[    0.130633] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.150037] cpuidle: using governor ladder
[    0.150116] cpuidle: using governor menu
[    0.429652] rtc_ccu: sunxi ccu init OK
[    0.464954] ccu: sunxi ccu init OK
[    0.468823] r_ccu: sunxi ccu init OK
[    0.969132] iommu: Default domain type: Translated 
[    0.973908] sunxi iommu: irq = 24
[    1.000780] SCSI subsystem initialized
[    1.006118] usbcore: registered new interface driver usbfs
[    1.008653] usbcore: registered new interface driver hub
[    1.016412] usbcore: registered new device driver usb
[    1.016648] mc: Linux media interface: v0.10
[    1.017062] videodev: Linux video capture interface: v2.00
[    1.040745] sunxi-msgbox-amp 3003000.msgbox: invalid resource
[    1.063793] Advanced Linux Sound Architecture Driver Initialized.
[    1.077174] pwm module init!
[    1.094141] clocksource: Switched to clocksource arch_sys_counter
[    1.268535] sun8iw20-pinctrl 2000000.pinctrl: initialized sunXi PIO driver
[    1.409327] thermal_sys: Registered thermal governor 'step_wise'
[    1.409334] thermal_sys: Registered thermal governor 'user_space'
[    1.419034] NET: Registered protocol family 2
[    1.428246] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    1.428282] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    1.428307] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    1.428330] TCP: Hash tables configured (established 1024 bind 1024)
[    1.428887] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    1.428967] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    1.432076] NET: Registered protocol family 1
[    1.463665] sunxi_spi_resource_get()2151 - [spi0] SPI MASTER MODE
[    1.463742] sunxi_spi_resource_get()2189 - Failed to get sample mode
[    1.463752] sunxi_spi_resource_get()2194 - Failed to get sample delay
[    1.463761] sunxi_spi_resource_get()2198 - sample_mode:-1431633921 sample_delay:-1431633921
[    1.463845] sunxi_spi_clk_init()2240 - [spi0] mclk 100000000
[    1.479377] sunxi_spi_probe()2653 - [spi0]: driver probe succeed, base c8829000, irq 45
[    1.508339] Initialise system trusted keyrings
[    1.508518] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    1.518460] fuse: init (API version 7.31)
[    1.571613] NET: Registered protocol family 38
[    1.571640] Key type asymmetric registered
[    1.571649] Asymmetric key parser 'x509' registered
[    1.571745] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    1.571758] io scheduler mq-deadline registered
[    1.571766] io scheduler kyber registered
[    1.607937] sunxi_sid_init()551 - insmod ok
[    1.608752] pwm-regulator: supplied by regulator-dummy
[    1.632101] uart uart0: get regulator failed
[    1.641781] uart0: ttyS0 at MMIO 0x2500000 (irq = 34, base_baud = 1500000) is a SUNXI
[    1.655932] uart uart1: get regulator failed
[    1.668620] uart1: ttyS1 at MMIO 0x2500400 (irq = 35, base_baud = 1500000) is a SUNXI
[    1.685227] uart uart2: get regulator failed
[    1.688302] uart2: ttyS2 at MMIO 0x2500800 (irq = 36, base_baud = 1500000) is a SUNXI
[    1.701946] uart uart3: get regulator failed
[    1.705583] uart3: ttyS3 at MMIO 0x2500c00 (irq = 37, base_baud = 1500000) is a SUNXI
[    1.705614] sw_console_setup()1784 - console setup baud 115200 parity n bits 8, flow n
[    2.464931] printk: console [ttyS3] enabled
[    2.482870] uart uart4: get regulator failed
[    2.488144] uart4: ttyS4 at MMIO 0x2501000 (irq = 38, base_baud = 1500000) is a SUNXI
[    2.513450] uart uart5: get regulator failed
[    2.524977] uart5: ttyS5 at MMIO 0x2501400 (irq = 39, base_baud = 1500000) is a SUNXI
[    2.553991] misc dump reg init
[    2.574519] sunxi-rfkill soc@3000000:rfkill@0: module version: v1.0.9
[    2.581780] sunxi-rfkill soc@3000000:rfkill@0: get gpio chip_en failed
[    2.589150] sunxi-rfkill soc@3000000:rfkill@0: get gpio power_en failed
[    2.596620] sunxi-rfkill soc@3000000:rfkill@0: wlan_busnum (1)
[    2.603167] sunxi-rfkill soc@3000000:rfkill@0: Missing wlan_power.
[    2.610134] sunxi-rfkill soc@3000000:rfkill@0: wlan clock[0] (32k-fanout1)
[    2.617890] sunxi-rfkill soc@3000000:rfkill@0: wlan_regon gpio=204 assert=0
[    2.625768] sunxi-rfkill soc@3000000:rfkill@0: wlan_hostwake gpio=202 assert=1
[    2.633888] sunxi-rfkill soc@3000000:rfkill@0: wakeup source is enabled
[    2.641633] sunxi-rfkill soc@3000000:rfkill@0: Missing bt_power.
[    2.648452] sunxi-rfkill soc@3000000:rfkill@0: bt clock[0] (32k-fanout1)
[    2.656019] sunxi-rfkill soc@3000000:rfkill@0: bt_rst gpio=210 assert=0
[    2.703373] sunxi-spinand: AW SPINand MTD Layer Version: 2.3 20211223
[    2.710738] sunxi-spinand-phy: AW SPINand Phy Layer Version: 1.10 20200306
[    2.718724] sunxi-spinand-phy: not detect any munufacture from id table
[    2.726178] sunxi-spinand-phy: get spi-nand Model from fdt fail
[    2.732816] sunxi-spinand-phy: get phy info from fdt fail
[    2.738881] sunxi-spinand-phy: not detect munufacture from fdt
[    2.745601] sunxi-spinand-phy: detect munufacture from id table: Winbond
[    2.753119] sunxi-spinand-phy: detect spinand id: ff21aaef ffffffff
[    2.760175] sunxi-spinand-phy: W25N01GVZEIG reset rx bit width to 1
[    2.767221] sunxi-spinand-phy: W25N01GVZEIG reset tx bit width to 1
[    2.774367] sunxi-spinand-phy: block lock register: 0x00
[    2.780486] sunxi-spinand-phy: feature register: 0x19
[    2.786182] sunxi-spinand-phy: aw_spinand_chip_bbt_init
[    2.792140] sunxi-spinand-phy: aw_spinand_chip_bbt_init exit
[    2.798611] sunxi-spinand-phy: sunxi physic nand init end
[    2.805027] 4 fixed-partitions partitions found on MTD device sunxi_mtd_nand
[    2.812937] Creating 4 MTD partitions on "sunxi_mtd_nand":
[    2.819138] 0x000000000000-0x000000080000 : "boot0"
[    2.870543] 0x000000080000-0x000000100000 : "dtb"
[    2.933272] 0x000000100000-0x000001000000 : "kernel"
[    2.944583] random: fast init done
[    3.015592] 0x000001000000-0x000008000000 : "rootfs"
[    3.101690] sunxi-spinand-phy: general_check_ecc ecc error 0x2
[    3.108491] sunxi-spinand-phy: general_check_ecc ecc error 0x2
[    3.282139] libphy: Fixed MDIO Bus: probed
[    3.286892] CAN device driver interface
[    3.291462] ======== XRADIO WIFI OPEN ========
[    3.298240] [XRADIO] Driver Label:XR_V02.16.84_P2P_HT40_01.31   
[    3.305084] [XRADIO] Allocated hw_priv @ (ptrval)
[    3.310365] [ADDR_MGT] get_addr_by_name: t->addr: 
[    3.323296] sunxi-rfkill soc@3000000:rfkill@0: bus_index: 1
[    3.339648] sunxi-rfkill soc@3000000:rfkill@0: wlan power on success
[    3.546814] sunxi_hosts[1] should not be null
[    3.546819] [XRADIO] Detect SDIO card 1
[    5.594264] sunxi-rfkill soc@3000000:rfkill@0: wlan power off success
[    5.701508] sunxi_hosts[1] should not be null
[    5.701513] [XRADIO] Remove SDIO card 1
[    5.720712] [SBUS_ERR] sdio probe timeout!
[    5.725320] [XRADIO_ERR] sbus_sdio_init failed
[    5.730679] xradio_core_init failed (-110)!
[    5.774235] hso: drivers/net/usb/hso.c: Option Wireless
[    5.780257] usbcore: registered new interface driver hso
[    5.786265] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    5.793589] sunxi-ehci: EHCI SUNXI driver
[    5.799540] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    5.806557] sunxi-ohci: OHCI SUNXI driver
[    5.811739] usbcore: registered new interface driver uas
[    5.817864] usbcore: registered new interface driver usb-storage
[    5.824748] usbcore: registered new interface driver ums-alauda
[    5.831471] usbcore: registered new interface driver ums-cypress
[    5.841675] usbcore: registered new interface driver ums-datafab
[    5.848562] usbcore: registered new interface driver ums_eneub6250
[    5.855591] usbcore: registered new interface driver ums-freecom
[    5.865769] usbcore: registered new interface driver ums-isd200
[    5.872531] usbcore: registered new interface driver ums-jumpshot
[    5.879483] usbcore: registered new interface driver ums-karma
[    5.889444] usbcore: registered new interface driver ums-onetouch
[    5.899754] usbcore: registered new interface driver ums-realtek
[    5.906625] usbcore: registered new interface driver ums-sddr09
[    5.913328] usbcore: registered new interface driver ums-sddr55
[    5.920054] usbcore: registered new interface driver ums-usbat
[    5.944565] input: sunxi-ts as /devices/platform/soc@3000000/2009c00.rtp/input/input0
[    5.964773] sunxi_gpadc_init,2137, success
[    5.969719] sunxi_key_init: get key count failed
[    5.969733] sunxi_gpadc_setup: get channel scan data failed
[    5.981588] input: sunxi-gpadc0 as /devices/virtual/input/input1
[    6.002334] input: sunxi-gpadc1 as /devices/virtual/input/input2
[    6.048600] sunxi-rtc 7090000.rtc: registered as rtc0
[    6.054427] sunxi-rtc 7090000.rtc: setting system clock to 1970-01-01T00:51:11 UTC (3071)
[    6.063640] sunxi-rtc 7090000.rtc: sunxi rtc probed
[    6.069578] i2c /dev entries driver
[    6.073930] IR NEC protocol handler initialized
[    6.079098] IR RC5(x/sz) protocol handler initialized
[    6.085275] sunxi_ir_startup: get ir protocol failed
[    6.085503] Registered IR keymap rc_map_sunxi
[    6.099631] rc rc0: sunxi-ir as /devices/platform/soc@3000000/7040000.s_cir/rc/rc0
[    6.115291] input: sunxi-ir as /devices/platform/soc@3000000/7040000.s_cir/rc/rc0/s_cir_rx
[    6.140219] sunxi cedar version 1.1
[    6.144462] sunxi-cedar 1c0e000.ve: Adding to iommu group 0
[    6.154109] VE: sunxi_cedar_probe power-domain init!!!
[    6.159937] VE: install start!!!
[    6.159937] 
[    6.172525] VE: cedar-ve the get irq is 46
[    6.172525] 
[    6.182516] VE: ve_debug_proc_info:(ptrval), data:(ptrval), lock:(ptrval)
[    6.182516] 
[    6.191837] VE: install end!!!
[    6.191837] 
[    6.196934] VE: sunxi_cedar_probe
[    6.216022] sunxi-wdt 20500a0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    6.243417] /cpus/cpu@0: unsupported enable-method property: psci
[    6.281068] sunxi-mmc 4020000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.21 2021-05-24 16:10)
[    6.291101] sunxi-mmc 4020000.sdmmc: ***ctl-spec-caps*** 8
[    6.297349] sunxi-mmc 4020000.sdmmc: No vmmc regulator found
[    6.303701] sunxi-mmc 4020000.sdmmc: No vqmmc regulator found
[    6.310163] sunxi-mmc 4020000.sdmmc: No vdmmc regulator found
[    6.316624] sunxi-mmc 4020000.sdmmc: No vd33sw regulator found
[    6.323168] sunxi-mmc 4020000.sdmmc: No vd18sw regulator found
[    6.329723] sunxi-mmc 4020000.sdmmc: No vq33sw regulator found
[    6.336280] sunxi-mmc 4020000.sdmmc: No vq18sw regulator found
[    6.346846] sunxi-mmc 4020000.sdmmc: Got CD GPIO
[    6.352330] sunxi-mmc 4020000.sdmmc: set cd-gpios as 24M fail
[    6.359123] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
[    6.370309] sunxi-mmc 4020000.sdmmc: no vqmmc,Check if there is regulator
[    6.390476] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    6.418359] sunxi-mmc 4020000.sdmmc: detmode:gpio irq
[    6.435254] sunxi-mmc 4021000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.21 2021-05-24 16:10)
[    6.445285] sunxi-mmc 4021000.sdmmc: ***ctl-spec-caps*** 8
[    6.451497] sunxi-mmc 4021000.sdmmc: No vmmc regulator found
[    6.457868] sunxi-mmc 4021000.sdmmc: No vqmmc regulator found
[    6.464327] sunxi-mmc 4021000.sdmmc: No vdmmc regulator found
[    6.470773] sunxi-mmc 4021000.sdmmc: No vd33sw regulator found
[    6.477327] sunxi-mmc 4021000.sdmmc: No vd18sw regulator found
[    6.483871] sunxi-mmc 4021000.sdmmc: No vq33sw regulator found
[    6.490425] sunxi-mmc 4021000.sdmmc: No vq18sw regulator found
[    6.500496] sunxi-mmc 4021000.sdmmc: Cann't get pin bias hs pinstate,check if needed
[    6.538451] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
[    6.549670] sunxi-mmc 4021000.sdmmc: no vqmmc,Check if there is regulator
[    6.569834] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    6.594096] sunxi-mmc 4021000.sdmmc: detmode:manually by software
[    6.601804] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 52, RTO !!
[    6.612497] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 52, RTO !!
[    6.619487] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    6.623867] usbcore: registered new interface driver usbhid
[    6.637502] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 0Hz bm PP pm OFF vdd 0 width 1 timing LEGACY(SDR12) dt B
[    6.638720] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    6.648846] usbhid: USB HID core driver
[    6.664614] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 5, RTO !!
[    6.671414] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 5, RTO !!
[    6.678182] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 5, RTO !!
[    6.684950] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 5, RTO !!
[    6.684981] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 0Hz bm PP pm OFF vdd 0 width 1 timing LEGACY(SDR12) dt B
[    6.728831] oprofile: hardware counters not available
[    6.734562] oprofile: using timer interrupt.
[    6.739821] NET: Registered protocol family 10
[    6.760524] Segment Routing with IPv6
[    6.764816] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    6.806286] NET: Registered protocol family 17
[    6.811316] NET: Registered protocol family 15
[    6.816325] can: controller area network core (rev 20170425 abi 9)
[    6.823328] NET: Registered protocol family 29
[    6.828337] can: raw protocol (rev 20170425)
[    6.833127] can: broadcast manager protocol (rev 20170425 t)
[    6.839499] can: netlink gateway (rev 20190810) max_hops=1
[    6.849494] Registering SWP/SWPB emulation handler
[    6.858951] Loading compiled-in X.509 certificates
[    7.253905] i2c i2c0: probe success
[    7.285165] i2c i2c1: probe success
[    7.309199] i2c i2c2: probe success
[    7.418034] get ehci0-controller wakeup-source is fail.
[    7.424027] sunxi ehci0-controller don't init wakeup source
[    7.430317] [sunxi-ehci0]: probe, pdev->name: 4101000.ehci0-controller, sunxi_ehci: 0xc0c67f80, 0x:c8a0c000, irq_no:37
[    7.442330] [sunxi-ehci0]: Not init ehci0
[    7.447290] get ohci0-controller wakeup-source is fail.
[    7.456764] sunxi ohci0-controller don't init wakeup source
[    7.463031] [sunxi-ohci0]: probe, pdev->name: 4101400.ohci0-controller, sunxi_ohci: 0xc0c68210
[    7.472705] [sunxi-ohci0]: Not init ohci0
[    7.484722] get ehci1-controller wakeup-source is fail.
[    7.490708] sunxi ehci1-controller don't init wakeup source
[    7.496988] [sunxi-ehci1]: probe, pdev->name: 4200000.ehci1-controller, sunxi_ehci: 0xc0c684a0, 0x:c8a15000, irq_no:39
[    7.527776] sunxi-ehci 4200000.ehci1-controller: EHCI Host Controller
[    7.535081] sunxi-ehci 4200000.ehci1-controller: new USB bus registered, assigned bus number 1
[    7.546074] sunxi-ehci 4200000.ehci1-controller: irq 57, io mem 0x04200000
[    7.584165] sunxi-ehci 4200000.ehci1-controller: USB 2.0 started, EHCI 1.00
[    7.607615] hub 1-0:1.0: USB hub found
[    7.615547] hub 1-0:1.0: 1 port detected
[    7.646247] get ohci1-controller wakeup-source is fail.
[    7.655850] sunxi ohci1-controller don't init wakeup source
[    7.662114] [sunxi-ohci1]: probe, pdev->name: 4200400.ohci1-controller, sunxi_ohci: 0xc0c68730
[    7.683479] sunxi-ohci 4200400.ohci1-controller: OHCI Host Controller
[    7.690785] sunxi-ohci 4200400.ohci1-controller: new USB bus registered, assigned bus number 2
[    7.700733] sunxi-ohci 4200400.ohci1-controller: irq 58, io mem 0x04200400
[    7.790730] hub 2-0:1.0: USB hub found
[    7.795036] hub 2-0:1.0: 1 port detected
[    7.822698] ubi0: default fastmap pool size: 40
[    7.833204] ubi0: default fastmap WL pool size: 20
[    7.838612] ubi0: attaching mtd3
[    8.259451] sunxi-spinand-phy: general_check_ecc ecc error 0x2
[    8.266049] sunxi-spinand: ecc err: block: 506 page: 0
[    8.271830] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 378:0, read only 64 bytes, retry
[    8.288718] sunxi-spinand-phy: general_check_ecc ecc error 0x2
[    8.295314] sunxi-spinand: ecc err: block: 507 page: 0
[    8.301095] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 379:0, read only 64 bytes, retry
[   10.016040] random: crng init done
[   10.494219] ubi0: scanning is finished[64][896]
[   10.499416] ubi_attach[c6822680][c6821040]896,0
[   10.643968] ubi0: volume 0 ("rootfs") re-sized from 83 to 870 LEBs
[   10.652719] ubi0: attached mtd3 (name "rootfs", size 112 MiB)
[   10.659204] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[   10.666927] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[   10.674553] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[   10.682362] ubi0: good PEBs: 896, bad PEBs: 0, corrupted PEBs: 0
[   10.689110] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
[   10.697226] ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 903397941
[   10.707385] ubi0: available PEBs: 0, total reserved PEBs: 896, PEBs reserved for bad PEB handling: 20
[   10.717753] ubi0: background thread "ubi_bgt0d" started, PID 918
[   10.718236] get det_vbus is fail, -84
[   10.728629] get id is fail, -84
[   10.764180] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[   10.784862] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[   10.796860] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[   10.797112] ALSA device list:
[   10.806716] cfg80211: failed to load regulatory.db
[   10.810092]   No soundcards found.
[   10.828893] UBIFS (ubi0:0): Mounting in unauthenticated mode
[   10.835908] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 935
[   10.900967] UBIFS (ubi0:0): start fixing up free space
[   11.754162] 
[   11.754162] insmod_device_driver
[   11.754162] 
[   11.761103] pdev is null
[   11.763939] device_chose finished 139!
[   12.379042] UBIFS (ubi0:0): free space fixup complete
[   12.418999] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs"
[   12.427403] UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[   12.438605] UBIFS (ubi0:0): FS size: 109072384 bytes (104 MiB, 859 LEBs), journal size 9023488 bytes (8 MiB, 72 LEBs)
[   12.450549] UBIFS (ubi0:0): reserved for root: 0 bytes (0 KiB)
[   12.457119] UBIFS (ubi0:0): media format: w4/r0 (latest is w5/r0), UUID 38EE3455-8EAF-4AC1-A80C-C35B57286D6F, small LPT model
[   12.484431] VFS: Mounted root (ubifs filesystem) on device 0:14.
[   12.493581] Freeing unused kernel memory: 1024K
[   12.498884] Kernel init done
[   12.511427] Warning: unable to open an initial console.

离线

#65 2022-10-10 10:54:52

mengxp
会员
注册时间: 2021-10-07
已发帖子: 68
积分: 152

Re: T113-s3 spi-nand 启动

大佬可以帮忙测试下 主线spinand+ubifs的性能吗?
我在r328用全志的闭源nand驱动测试结果是这样的。性能非常垃。

下面是记录

------------------------------------------------------------
sunxi nand driver
全志的私有 nand 驱动,NFTL 层将nand转换成块设备

测试写 ~3.2MB/s

time dd if=/dev/zero of=16mb bs=64k count=256 conv=fsync
256+0 records in
256+0 records out
real    0m 5.01s
user    0m 0.00s
sys     0m 0.13s

------------------------------------------------------------
测试读 ~9MB/s

dd if=/dev/urandom of=16mb bs=64k count=256 conv=fsync
重启系统后
time dd if=16mb of=/dev/null bs=64k count=256
256+0 records in
256+0 records out
real    0m 1.77s
user    0m 0.00s
sys     0m 0.06s

离线

#66 2022-10-12 14:09:14

misswhile
会员
注册时间: 2022-10-08
已发帖子: 1
积分: 1

Re: T113-s3 spi-nand 启动

@liefyuan
你的问题解决了么? 我也遇到一样的问题,
HELLO! BOOT0 is starting!
BOOT0 commit : #.###
set pll start
periph0 has been enabled
set pll end
board init ok
ZQ value = 0x2e
get_pmu_exist() = -1
ddr_efuse_type: 0xb
mark_id: 0x70
trefi:7.8ms
[AUTO DEBUG] single rank and full DQ!
ddr_efuse_type: 0xb
mark_id: 0x70
trefi:7.8ms
[AUTO DEBUG] rank 0 row = 13
[AUTO DEBUG] rank 0 bank = 8
[AUTO DEBUG] rank 0 page size = 2 KB
DRAM BOOT DRIVE INFO: V0.32
DRAM CLK = 792 MHz
DRAM Type = 3 (2:DDR2,3:DDR3)
DRAMC read ODT  off.
DRAM ODT value: 0x42.
ddr_efuse_type: 0xb
mark_id: 0x70
DRAM SIZE =128 M
PLL_DDR_CTRL_REG:0xf8004100
DRAM_CLK_REG:0xc0000000
[TIMING DEBUG] MR2= 0x18
DRAM simple test OK.
rtc standby flag is 0x0, super standby flag is 0x0
spinand UBOOT_START_BLK_NUM 8 UBOOT_LAST_BLK_NUM 16
Jump to second Boot.

然后就没有显示了。uboot的串口也对应修改了串口的io口配置,和boot0里面一样的管脚,一样的配置

离线

#67 2023-03-03 16:47:32

网络孤客
会员
注册时间: 2022-06-09
已发帖子: 20
积分: 5

Re: T113-s3 spi-nand 启动

请教:
[    0.001873] /cpus/cpu@0 missing clock-frequency property
[    0.001895] /cpus/cpu@1 missing clock-frequency property

怎么解决,我用的是全志H3

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn