T113 longan 无法挂载rootfs,ubifs
-
SDK是T113 longan
编译时选 longan auto_nand
ubifs是自带的buildroot编译的
这个是t113-longan/device/config/chips/t113/configs/evb1_auto_nand/longan/sys_partition.fex
[partition_start] [partition] name = boot-resource size = 34438 downloadfile = "boot-resource.fex" user_type = 0x8000 [partition] name = env size = 2048 downloadfile = "env.fex" user_type = 0x8000 [partition] name = env-redund size = 2048 downloadfile = "env.fex" user_type = 0x8000 [partition] name = boot size = 35200 downloadfile = "boot.fex" user_type = 0x8000 [partition] name = rootfs size = 65536 downloadfile = "rootfs-ubifs.fex" user_type = 0x8000 [partition] name = dsp0 size = 2048 downloadfile = "dsp0.fex" user_type = 0x8000 [partition] name = private size = 2048 ;downloadfile = "" user_type = 0x8000 [partition] name = UDISK user_type = 0x8100
内核log
[29]HELLO! BOOT0 is starting! [32]BOOT0 commit : 5224261 [34]set pll start [36]fix vccio detect value:0xc0 [43]periph0 has been enabled [46]set pll end [48][pmu]: bus read error [50]board init ok [52]enable_jtag [54]ZQ value = 0x30 [56]get_pmu_exist() = -1 [58]DRAM BOOT DRIVE INFO: V0.32 [61]DRAM CLK = 792 MHz [63]DRAM Type = 3 (2:DDR2,3:DDR3) [67]DRAMC read ODT off. [69]DRAM ODT value: 0x42. [72]ddr_efuse_type: 0xa [74]mark_id: 0x60 [76]DRAM SIZE =128 M [78]PLL_DDR_CTRL_REG:0xf8004100 [81]DRAM_CLK_REG:0xc0000000 [84][TIMING DEBUG] MR2= 0x18 [91]DRAM simple test OK. [94]rtc standby flag is 0x0, super standby flag is 0x0 [99]dram size =128 [101]spinand UBOOT_START_BLK_NUM 8 UBOOT_LAST_BLK_NUM 32 [107]block from 8 to 32 [242]Check is correct. [244]dma 0x29c4c int is not used yet [248]dma 0x29c4c int is free, you do not need to free it again [254]Entry_name = u-boot [261]Entry_name = optee [265]Entry_name = dtb [268]Jump to second Boot. M/TC: OP-TEE version: 6aef7bb2-dirty (gcc version 5.3.1 20160412 (Linaro GCC 5.3-2016.05)) #1 Fri Jul 23 09:25:11 UTC 2021 arm U-Boot 2018.05-g5b4bafa (Oct 18 2021 - 01:53:36 +0000) Allwinner Technology CTRL-A Z for help | 115200 8N1 | NOR | Minicom 2.8 | VT102 | 脱机 | ttyUSB0 [00.324]CPU: Allwinner Family [00.327]Model: sun8iw20 [00.329]DRAM: 128 MiB [00.332]Relocation Offset is: 04ec6000 [00.359]secure enable bit: 0 [00.361]smc_tee_inform_fdt failed with: -65526[00.365]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz MBus=300Mhz [00.372]gic: sec monitor mode [00.375]flash init start [00.377]workmode = 0,storage type = 0 sspi->base_addr = 0x4025000, the SPI control register: [VER] 0x4025000 = 0x00010001, [GCR] 0x4025004 = 0x00000083, [TCR] 0x4025008 = 0x00000184 [ICR] 0x4025010 = 0x00000f00, [ISR] 0x4025014 = 0x00000032, [FCR] 0x4025018 = 0x00200020 [FSR] 0x402501c = 0x00000000, [WCR] 0x4025020 = 0x00000000, [CCR] 0x4025024 = 0x00000002 [SDC] 0x4025028 = 0x00002000, [BCR] 0x4025030 = 0x00000000, [TCR] 0x4025034 = 0x00000000 [BCC] 0x4025038 = 0x10000000, [DMA] 0x4025088 = 0x000000e5 [00.423]sunxi-spinand-phy: not detect any munufacture from id table [00.430]sunxi-spinand-phy: get spi-nand Model from fdt fail [00.435]sunxi-spinand-phy: get phy info from fdt fail device nand0 <nand>, # parts = 4 #: name size offset mask_flags 0: boot0 0x00100000 0x00000000 1 1: uboot 0x00300000 0x00100000 1 2: secure_storage 0x00100000 0x00400000 1 3: sys 0x07b00000 0x00500000 0 active partition: nand0,0 - (boot0) 0x00100000 @ 0x00000000 defaults: mtdids : nand0=nand mtdparts: mtdparts=nand:1024k@0(boot0)ro,3072k@1048576(uboot)ro,1024k@4194304(secure_storage)ro,-(sys) [00.553]ubi0: attaching mtd4 [00.779]ubi0: scanning is finished [00.788]ubi0: attached mtd4 (name "sys", size 123 MiB) [00.793]ubi0: PEB size: 262144 bytes (256 KiB), LEB size: 258048 bytes [00.799]ubi0: min./max. I/O unit sizes: 4096/4096, sub-page size 2048 [00.805]ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096 [00.812]ubi0: good PEBs: 492, bad PEBs: 0, corrupted PEBs: 0 [00.817]ubi0: user volume: 9, internal volumes: 1, max. volumes count: 128 [00.824]ubi0: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 0 [00.831]ubi0: available PEBs: 0, total reserved PEBs: 492, PEBs reserved for bad PEB handling: 20 [00.840]sunxi flash init ok [00.842]line:703 init_clocks [00.845]drv_disp_init request pwm success, pwm7:pwm7:0x2000c00. [00.860]drv_disp_init finish [00.862]boot_gui_init:start [00.865]set disp.dev2_output_type fail. using defval=0 [00.871]boot_gui_init:finish [01.052]LCD open finish partno erro : can't find partition bootloader 54 bytes read in 1 ms (52.7 KiB/s) [01.135]bmp_name=bootlogo.bmp size 1152138 1152138 bytes read in 129 ms (8.5 MiB/s) [01.508]Loading Environment from SUNXI_FLASH... OK [01.544]Item0 (Map) magic is bad secure storage read widevine fail [01.550]secure storage read widevine fail with:-1 secure storage read ec_key fail [01.557]secure storage read ec_key fail with:-1 secure storage read ec_cert1 fail [01.565]secure storage read ec_cert1 fail with:-1 secure storage read ec_cert2 fail [01.572]secure storage read ec_cert2 fail with:-1 secure storage read ec_cert3 fail [01.580]secure storage read ec_cert3 fail with:-1 secure storage read rsa_key fail [01.587]secure storage read rsa_key fail with:-1 secure storage read rsa_cert1 fail [01.594]secure storage read rsa_cert1 fail with:-1 secure storage read rsa_cert2 fail [01.602]secure storage read rsa_cert2 fail with:-1 secure storage read rsa_cert3 fail [01.610]secure storage read rsa_cert3 fail with:-1 [01.614]usb burn from boot delay time 0 weak:otg_phy_config [01.625]usb prepare ok [01.923]usb sof ok [01.925]usb probe ok [01.927]usb setup ok set address 0x34 set address 0x34 ok set address 0x34 set address 0x34 ok set address 0x34 set address 0x34 ok try to update [04.932]do_burn_from_boot usb : have no handshake List file under ULI/factory ** Unrecognized filesystem type ** [04.965]update bootcmd [04.990]change working_fdt 0x44885e70 to 0x44865e70 [05.007]update dts Hit any key to stop autoboot: 0 [09.865]no vendor_boot partition is found Android's image name: sun8i_arm [09.884]Starting kernel ... [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 5.4.61 (sysdwa@SYSDWA-LINUX) (arm-linux-gnueabi-gcc (Linaro GCC 5.3-2016.05) 5.3.1 20160412, GNU ld (Lina ro_Binutils-2016.05) 2.25.0 Linaro 2016_02) #1 SMP PREEMPT Fri Aug 19 08:36:11 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] psci: probing for conduit method from DT. [ 0.000000] psci: PSCIv1.0 detected in firmware. [ 0.000000] psci: Using standard PSCI v0.2 function IDs [ 0.000000] psci: MIGRATE_INFO_TYPE not supported. [ 0.000000] psci: SMC Calling Convention v1.0 [ 0.000000] percpu: Embedded 15 pages/cpu s30464 r8192 d22784 u61440 [ 0.000000] pcpu-alloc: s30464 r8192 d22784 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: ubi.mtd=sys earlycon=uart8250,mmio32,0x05000000 clk_ignore_unused initcall_debug=0 console=ttyS3,1 15200 loglevel=8 root=ubi0_5 rootfstype=ubifs,rw init=/init partitions=mbr@ubi0_0:boot-resource@ubi0_1:env@ubi0_2:env-redund@ubi0_3:bo ot@ubi0_4:rootfs@ubi0_5:dsp0@ubi0_6:private@ubi0_7:UDISK@ubi0_8: cma=8M snum= mac_addr= wifi_mac= bt_mac= specialstr= gpt=1 androidboo t.hardware=sun8iw20p1 boot_type=5 androidboot.boot_type=5 gpt=1 uboot_message=2018.05-g5b4bafa(10/18/2021-01:53:36) disp_reserve=24576 00,0x44909000 aw-ubi-spinand.ubootblks=24 androidboot.dramsize=128 [ 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: 99872K/131072K available (6144K kernel code, 387K rwdata, 1936K rodata, 1024K init, 152K bss, 23008K 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+0x254/0x3cc 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.000019] Switching to timer-based delay loop, resolution 41ns [ 0.000358] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns [ 0.001043] Console: colour dummy device 80x30 [ 0.001088] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000) [ 0.001103] pid_max: default: 32768 minimum: 301 [ 0.001876] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear) [ 0.001892] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear) [ 0.004995] CPU: Testing write buffer coherency: ok [ 0.006245] /cpus/cpu@0 missing clock-frequency property [ 0.006272] /cpus/cpu@1 missing clock-frequency property [ 0.006283] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000 [ 0.008051] Setting up static identity map for 0x40100000 - 0x40100060 [ 0.008366] rcu: Hierarchical SRCU implementation. [ 0.009539] smp: Bringing up secondary CPUs ... [ 0.011785] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001 [ 0.011945] smp: Brought up 1 node, 2 CPUs [ 0.011963] SMP: Total of 2 processors activated (96.00 BogoMIPS). [ 0.011970] CPU: All CPU(s) started in SVC mode. [ 0.014332] devtmpfs: initialized [ 0.178454] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5 [ 0.180799] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.180829] futex hash table entries: 512 (order: 3, 32768 bytes, linear) [ 0.181363] pinctrl core: initialized pinctrl subsystem [ 0.188803] NET: Registered protocol family 16 [ 0.191522] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.362824] rtc_ccu: sunxi ccu init OK [ 0.377175] ccu: sunxi ccu init OK [ 0.379033] r_ccu: sunxi ccu init OK [ 0.588362] iommu: Default domain type: Translated [ 0.589061] sunxi iommu: irq = 24 [ 0.599562] SCSI subsystem initialized [ 0.601789] usbcore: registered new interface driver usbfs [ 0.602306] usbcore: registered new interface driver hub [ 0.603053] usbcore: registered new device driver usb [ 0.616141] pwm module init! [ 0.622195] input: sunxi-keyboard as /devices/virtual/input/input0 [ 0.625770] clocksource: Switched to clocksource arch_sys_counter [ 0.695242] sun8iw20-pinctrl 2000000.pinctrl: initialized sunXi PIO driver [ 0.782052] NET: Registered protocol family 2 [ 0.786110] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear) [ 0.786193] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear) [ 0.786245] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear) [ 0.786268] TCP: Hash tables configured (established 1024 bind 1024) [ 0.786706] UDP hash table entries: 256 (order: 1, 8192 bytes, linear) [ 0.786766] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear) [ 0.787521] NET: Registered protocol family 1 [ 0.789794] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pc not found, using dummy regulator [ 0.792008] spi spi0: spi0 supply spi not found, using dummy regulator [ 0.793271] sunxi_spi_resource_get()2151 - [spi0] SPI MASTER MODE [ 0.793562] sunxi_spi_resource_get()2189 - Failed to get sample mode [ 0.793575] sunxi_spi_resource_get()2194 - Failed to get sample delay [ 0.793585] sunxi_spi_resource_get()2198 - sample_mode:-1431633921 sample_delay:-1431633921 [ 0.793646] sunxi_spi_clk_init()2240 - [spi0] mclk 100000000 [ 0.797561] sunxi_spi_probe()2653 - [spi0]: driver probe succeed, base c8821000, irq 41 [ 0.804580] workingset: timestamp_bits=30 max_order=15 bucket_order=0 [ 0.890809] ntfs: driver 2.1.32 [Flags: R/W]. [ 0.896163] NET: Registered protocol family 38 [ 0.896629] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251) [ 0.896645] io scheduler mq-deadline registered [ 0.896653] io scheduler kyber registered [ 0.899288] atomic64_test: passed [ 0.909107] [DISP]disp_module_init [ 0.911386] disp 5000000.disp: Adding to iommu group 0 [ 0.914021] [DISP] disp_init,line:2386: [ 0.914027] smooth display screen:0 type:1 mode:4 [ 0.934532] display_fb_request,fb_id:0 [ 0.943751] Freeing logo buffer memory: 2400K [ 0.947986] disp_al_manager_apply ouput_type:1 [ 0.948763] [DISP]disp_module_init finish [ 0.949491] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pd not found, using dummy regulator [ 0.952062] sunxi_sid_init()551 - insmod ok [ 0.954108] pwm-regulator: supplied by regulator-dummy [ 0.959614] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pb not found, using dummy regulator [ 0.960406] uart uart3: get regulator failed [ 0.960430] uart uart3: uart3 supply uart not found, using dummy regulator [ 0.962009] uart3: ttyS3 at MMIO 0x2500c00 (irq = 34, base_baud = 1500000) is a SUNXI [ 0.962044] sw_console_setup()1784 - console setup baud 115200 parity n bits 8, flow n [ 1.783070] printk: console [ttyS3] enabled [ 1.791853] misc dump reg init [ 1.804891] sunxi-spinand: AW SPINand MTD Layer Version: 2.0 20201228 [ 1.812206] sunxi-spinand-phy: AW SPINand Phy Layer Version: 1.10 20200306 [ 1.820248] sunxi-spinand-phy: not detect any munufacture from id table [ 1.827704] sunxi-spinand-phy: get spi-nand Model from fdt fail [ 1.834343] sunxi-spinand-phy: get phy info from fdt fail [ 1.840415] sunxi-spinand-phy: not detect munufacture from fdt [ 1.847173] sunxi-spinand-phy: detect munufacture from id table: Winbond [ 1.854693] sunxi-spinand-phy: detect spinand id: ff21aaef ffffffff [ 1.861749] sunxi-spinand-phy: ========== arch info ========== [ 1.868347] sunxi-spinand-phy: Model: W25N01GVZEIG [ 1.875086] sunxi-spinand-phy: Munufacture: Winbond [ 1.881349] sunxi-spinand-phy: DieCntPerChip: 1 [ 1.887024] sunxi-spinand-phy: BlkCntPerDie: 1024 [ 1.892980] sunxi-spinand-phy: PageCntPerBlk: 64 [ 1.898751] sunxi-spinand-phy: SectCntPerPage: 4 [ 1.904415] sunxi-spinand-phy: OobSizePerPage: 64 [ 1.910186] sunxi-spinand-phy: BadBlockFlag: 0x0 [ 1.916056] sunxi-spinand-phy: OperationOpt: 0x7 [ 1.921913] sunxi-spinand-phy: MaxEraseTimes: 65000 [ 1.927976] sunxi-spinand-phy: EccFlag: 0x0 [ 1.933835] sunxi-spinand-phy: EccType: 2 [ 1.939508] sunxi-spinand-phy: EccProtectedType: 3 [ 1.945171] sunxi-spinand-phy: ======================================== [ 1.952597] sunxi-spinand-phy: [ 1.956131] sunxi-spinand-phy: ========== physical info ========== [ 1.963062] sunxi-spinand-phy: TotalSize: 128 M [ 1.968444] sunxi-spinand-phy: SectorSize: 512 B [ 1.973815] sunxi-spinand-phy: PageSize: 2 K [ 1.979003] sunxi-spinand-phy: BlockSize: 128 K [ 1.984375] sunxi-spinand-phy: OOBSize: 64 B [ 1.989667] sunxi-spinand-phy: ======================================== [ 1.997096] sunxi-spinand-phy: [ 2.000615] sunxi-spinand-phy: ========== logical info ========== [ 2.007458] sunxi-spinand-phy: TotalSize: 128 M [ 2.012829] sunxi-spinand-phy: SectorSize: 512 B [ 2.018209] sunxi-spinand-phy: PageSize: 4 K [ 2.023385] sunxi-spinand-phy: BlockSize: 256 K [ 2.028766] sunxi-spinand-phy: OOBSize: 128 B [ 2.034136] sunxi-spinand-phy: ======================================== [ 2.041723] sunxi-spinand-phy: block lock register: 0x00 [ 2.047913] sunxi-spinand-phy: feature register: 0x19 [ 2.053681] sunxi-spinand-phy: sunxi physic nand init end [ 2.061396] Creating 4 MTD partitions on "sunxi_mtd_nand": [ 2.067643] 0x000000000000-0x000000100000 : "boot0" [ 2.078654] 0x000000100000-0x000000400000 : "uboot" [ 2.087897] random: fast init done [ 2.134973] 0x000000400000-0x000000500000 : "secure_storage" [ 2.158430] 0x000000500000-0x000008000000 : "sys" [ 2.632389] random: crng init done [ 4.046864] libphy: Fixed MDIO Bus: probed [ 4.054349] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pe not found, using dummy regulator [ 4.066572] sunxi gmac driver's version: 1.0.0 [ 4.072642] gmac-power0: NULL [ 4.076029] gmac-power1: NULL [ 4.079357] gmac-power2: NULL [ 4.089341] Failed to alloc md5 [ 4.092879] eth0: Use random mac address [ 4.098173] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 4.105504] sunxi-ehci: EHCI SUNXI driver [ 4.110674] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver [ 4.117727] sunxi-ohci: OHCI SUNXI driver [ 4.123698] usbcore: registered new interface driver uas [ 4.130232] usbcore: registered new interface driver usb-storage [ 4.137370] usbcore: registered new interface driver ums-alauda [ 4.144275] usbcore: registered new interface driver ums-cypress [ 4.151331] usbcore: registered new interface driver ums-datafab [ 4.158377] usbcore: registered new interface driver ums_eneub6250 [ 4.165579] usbcore: registered new interface driver ums-freecom [ 4.172612] usbcore: registered new interface driver ums-isd200 [ 4.179579] usbcore: registered new interface driver ums-jumpshot [ 4.186717] usbcore: registered new interface driver ums-karma [ 4.193522] usbcore: registered new interface driver ums-onetouch [ 4.200892] usbcore: registered new interface driver ums-realtek [ 4.207954] usbcore: registered new interface driver ums-sddr09 [ 4.214871] usbcore: registered new interface driver ums-sddr55 [ 4.221815] usbcore: registered new interface driver ums-usbat [ 4.231445] ts probe start [ 4.233842] input: 2009c00.rtp as /devices/platform/soc@3000000/2009c00.rtp/input/input1 [ 4.247687] ts probe success [ 4.248569] sunxi_gpadc_init,2137, success [ 4.258171] sunxi-rtc 7090000.rtc: errata__fix_alarm_day_reg_default_value(): ALARM0_DAY_REG=0, set it to 1 [ 4.274526] sunxi-rtc 7090000.rtc: registered as rtc0 [ 4.280377] sunxi-rtc 7090000.rtc: setting system clock to 1970-01-01T00:00:12 UTC (12) [ 4.289530] sunxi-rtc 7090000.rtc: sunxi rtc probed [ 4.295865] i2c /dev entries driver [ 4.300116] IR NEC protocol handler initialized [ 4.305204] IR RC5(x/sz) protocol handler initialized [ 4.312129] sunxi_ir_startup: get ir protocol failed [ 4.312156] (NULL device *): deviceless supply not found, using dummy regulator [ 4.326566] Registered IR keymap rc_map_sunxi [ 4.332347] rc rc0: sunxi-ir as /devices/platform/soc@3000000/7040000.s_cir/rc/rc0 [ 4.342216] input: sunxi-ir as /devices/platform/soc@3000000/7040000.s_cir/rc/rc0/s_cir_rx [ 4.354200] sunxi cedar version 1.1 [ 4.358785] sunxi-cedar 1c0e000.ve: Adding to iommu group 0 [ 4.365174] VE: sunxi_cedar_probe power-domain init!!! [ 4.370967] VE: install start!!! [ 4.370967] [ 4.377615] VE: cedar-ve the get irq is 42 [ 4.377615] [ 4.384933] VE: ve_debug_proc_info:711050c9, data:64923f4d, lock:484aed11 [ 4.384933] [ 4.394251] VE: install end!!! [ 4.394251] [ 4.399353] VE: sunxi_cedar_probe [ 4.406543] sunxi-wdt 20500a0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0) [ 4.424059] sunxi-mmc 4020000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.21 2021-05-24 16:10) [ 4.434198] sunxi-mmc 4020000.sdmmc: ***ctl-spec-caps*** 8 [ 4.440433] sunxi-mmc 4020000.sdmmc: No vmmc regulator found [ 4.446796] sunxi-mmc 4020000.sdmmc: No vqmmc regulator found [ 4.453243] sunxi-mmc 4020000.sdmmc: No vdmmc regulator found [ 4.459700] sunxi-mmc 4020000.sdmmc: No vd33sw regulator found [ 4.466253] sunxi-mmc 4020000.sdmmc: No vd18sw regulator found [ 4.472797] sunxi-mmc 4020000.sdmmc: No vq33sw regulator found [ 4.479358] sunxi-mmc 4020000.sdmmc: No vq18sw regulator found [ 4.487683] sunxi-mmc 4020000.sdmmc: Got CD GPIO [ 4.493533] sunxi-mmc 4020000.sdmmc: set cd-gpios as 24M fail [ 4.501104] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B [ 4.512299] sunxi-mmc 4020000.sdmmc: no vqmmc,Check if there is regulator [ 4.532467] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 4.557540] sunxi-mmc 4020000.sdmmc: detmode:gpio irq [ 4.565455] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pg not found, using dummy regulator [ 4.577210] sunxi-mmc 4021000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.21 2021-05-24 16:10) [ 4.587346] sunxi-mmc 4021000.sdmmc: ***ctl-spec-caps*** 8 [ 4.593558] sunxi-mmc 4021000.sdmmc: No vmmc regulator found [ 4.599929] sunxi-mmc 4021000.sdmmc: No vqmmc regulator found [ 4.606389] sunxi-mmc 4021000.sdmmc: No vdmmc regulator found [ 4.612836] sunxi-mmc 4021000.sdmmc: No vd33sw regulator found [ 4.619390] sunxi-mmc 4021000.sdmmc: No vd18sw regulator found [ 4.625944] sunxi-mmc 4021000.sdmmc: No vq33sw regulator found [ 4.632487] sunxi-mmc 4021000.sdmmc: No vq18sw regulator found [ 4.639300] sunxi-mmc 4021000.sdmmc: Cann't get pin bias hs pinstate,check if needed [ 4.651250] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B [ 4.662449] sunxi-mmc 4021000.sdmmc: no vqmmc,Check if there is regulator [ 4.682614] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 4.706944] sunxi-mmc 4021000.sdmmc: detmode:manually by software [ 4.716493] usbcore: registered new interface driver usbhid [ 4.722753] usbhid: USB HID core driver [ 4.727105] exFAT: Version 1.3.0 [ 4.730747] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 4.746050] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 4.749343] NET: Registered protocol family 10 [ 4.762786] sunxi-mmc 4021000.sdmmc: card claims to support voltages below defined range [ 4.765892] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 0Hz bm PP pm OFF vdd 0 width 1 timing LEGACY(SDR12) dt B [ 4.777422] Segment Routing with IPv6 [ 4.788835] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver [ 4.805428] NET: Registered protocol family 17 [ 4.810628] NET: Registered protocol family 15 [ 4.816107] Registering SWP/SWPB emulation handler [ 4.829997] HDMI 2.0 driver init start! [ 4.834333] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B [ 4.835948] boot_hdmi=false [ 4.846066] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B [ 4.849109] ERROR: can not get hdmi_cts_compatibility [ 4.861404] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 4 timing SD-HS(SDR25) dt B [ 4.879467] ERROR: pinctrl_get for HDMI2.0 DDC fail [ 4.885899] mmc1: new high speed SDIO card at address 0001 [ 4.887853] HDMI2.0 module init end [ 5.014299] sun8iw20-pinctrl 2000000.pinctrl: pin PE13 already requested by 2000000.pinctrl:141; cannot claim for 2502800.twi [ 5.027074] sun8iw20-pinctrl 2000000.pinctrl: pin-141 (2502800.twi) status -22 [ 5.035182] sun8iw20-pinctrl 2000000.pinctrl: could not request pin 141 (PE13) from group PE13 on device 2000000.pinctrl [ 5.047511] i2c 2502800.twi: Error applying setting, reverse things back [ 5.055535] i2c: probe of 2502800.twi failed with error -22 [ 5.067793] get ehci0-controller wakeup-source is fail. [ 5.074109] sunxi ehci0-controller don't init wakeup source [ 5.080408] [sunxi-ehci0]: probe, pdev->name: 4101000.ehci0-controller, sunxi_ehci: 0xc0b7ebf8, 0x:c8865000, irq_no:38 [ 5.092441] [sunxi-ehci0]: Not init ehci0 [ 5.097852] get ohci0-controller wakeup-source is fail. [ 5.104220] sunxi ohci0-controller don't init wakeup source [ 5.110522] [sunxi-ohci0]: probe, pdev->name: 4101400.ohci0-controller, sunxi_ohci: 0xc0b7ee88 [ 5.120199] [sunxi-ohci0]: Not init ohci0 [ 5.125573] get ehci1-controller wakeup-source is fail. [ 5.131876] sunxi ehci1-controller don't init wakeup source [ 5.138181] [sunxi-ehci1]: probe, pdev->name: 4200000.ehci1-controller, sunxi_ehci: 0xc0b7f118, 0x:c886f000, irq_no:3a [ 5.151594] sunxi-ehci 4200000.ehci1-controller: 4200000.ehci1-controller supply hci not found, using dummy regulator [ 5.166243] sunxi-ehci 4200000.ehci1-controller: EHCI Host Controller [ 5.173701] sunxi-ehci 4200000.ehci1-controller: new USB bus registered, assigned bus number 1 [ 5.184347] sunxi-ehci 4200000.ehci1-controller: irq 58, io mem 0x04200000 [ 5.215788] sunxi-ehci 4200000.ehci1-controller: USB 2.0 started, EHCI 1.00 [ 5.229717] hub 1-0:1.0: USB hub found [ 5.234222] hub 1-0:1.0: 1 port detected [ 5.242806] get ohci1-controller wakeup-source is fail. [ 5.249171] sunxi ohci1-controller don't init wakeup source [ 5.255459] [sunxi-ohci1]: probe, pdev->name: 4200400.ohci1-controller, sunxi_ohci: 0xc0b7f3a8 [ 5.266619] sunxi-ohci 4200400.ohci1-controller: 4200400.ohci1-controller supply hci not found, using dummy regulator [ 5.280129] sunxi-ohci 4200400.ohci1-controller: OHCI Host Controller [ 5.287580] sunxi-ohci 4200400.ohci1-controller: new USB bus registered, assigned bus number 2 [ 5.298190] sunxi-ohci 4200400.ohci1-controller: irq 59, io mem 0x04200400 [ 5.385494] hub 2-0:1.0: USB hub found [ 5.390096] hub 2-0:1.0: 1 port detected [ 5.400381] ubi0: attaching mtd3 [ 5.875701] ubi0: scanning is finished [ 5.923574] ubi0: attached mtd3 (name "sys", size 123 MiB) [ 5.929813] ubi0: PEB size: 262144 bytes (256 KiB), LEB size: 258048 bytes [ 5.937555] ubi0: min./max. I/O unit sizes: 4096/4096, sub-page size 2048 [ 5.945183] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096 [ 5.953009] ubi0: good PEBs: 492, bad PEBs: 0, corrupted PEBs: 0 [ 5.959760] ubi0: user volume: 9, internal volumes: 1, max. volumes count: 128 [ 5.967886] ubi0: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 0 [ 5.977313] ubi0: available PEBs: 0, total reserved PEBs: 492, PEBs reserved for bad PEB handling: 20 [ 5.987697] ubi0: background thread "ubi_bgt0d" started, PID 942 [ 5.989303] sun8iw20-pinctrl 2000000.pinctrl: pin PB6 already requested by 2500c00.uart; cannot claim for 2000000.pinctrl:38 [ 6.007089] sun8iw20-pinctrl 2000000.pinctrl: pin-38 (2000000.pinctrl:38) status -22 [ 6.015843] ERR: id gpio_request failed [ 6.023110] clk: Not disabling unused clocks [ 6.028059] alloc_fd: slot 0 not NULL! [ 6.037284] UBIFS (ubi0:5): Mounting in unauthenticated mode [ 6.043657] UBIFS error (ubi0:5 pid 1): ubifs_read_superblock: min. I/O unit mismatch: 2048 in superblock, 4096 real [ 6.055535] UBIFS error (ubi0:5 pid 1): ubifs_read_superblock: bad superblock, error 1 [ 6.064596] magic 0x6101831 [ 6.068717] crc 0xbe1aa07d [ 6.072920] node_type 6 (superblock node) [ 6.078048] group_type 0 (no node group) [ 6.082932] sqnum 3771 [ 6.086577] len 4096 [ 6.090195] key_hash 0 (R5) [ 6.094005] key_fmt 0 (simple) [ 6.098237] flags 0x0 [ 6.101756] big_lpt 0 [ 6.105079] space_fixup 0 [ 6.108420] min_io_size 2048 [ 6.112045] leb_size 129024 [ 6.115869] leb_cnt 131 [ 6.119388] max_leb_cnt 2048 [ 6.123003] max_bud_bytes 8388608 [ 6.126923] log_lebs 5 [ 6.130257] lpt_lebs 2 [ 6.133580] orph_lebs 1 [ 6.136916] jhead_cnt 1 [ 6.140239] fanout 8 [ 6.143562] lsave_cnt 256 [ 6.147107] default_compr 1 [ 6.150431] rp_size 0 [ 6.153754] rp_uid 0 [ 6.157090] rp_gid 0 [ 6.160414] fmt_version 4 [ 6.163747] time_gran 1000000000 [ 6.167963] UUID 945D534F-21AA-464F-B9A9-E1F18A5944DD [ 6.177025] VFS: Cannot open root device "ubi0_5" or unknown-block(0,0): error -19 [ 6.185522] Please append a correct "root=" boot option; here are the available partitions: [ 6.195069] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) [ 6.204347] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 5.4.61 #1 [ 6.210984] Hardware name: Generic DT based system [ 6.216378] [<c010e1a8>] (unwind_backtrace) from [<c010a900>] (show_stack+0x10/0x14) [ 6.225072] [<c010a900>] (show_stack) from [<c05efa78>] (dump_stack+0x7c/0x98) [ 6.233180] [<c05efa78>] (dump_stack) from [<c01196e4>] (panic+0x100/0x3d4) [ 6.240998] [<c01196e4>] (panic) from [<c0a012a8>] (mount_block_root+0x288/0x334) [ 6.249397] [<c0a012a8>] (mount_block_root) from [<c0a0145c>] (prepare_namespace+0x84/0x178) [ 6.258869] [<c0a0145c>] (prepare_namespace) from [<c0604290>] (kernel_init+0x8/0x10c) [ 6.267757] [<c0604290>] (kernel_init) from [<c01010e8>] (ret_from_fork+0x14/0x2c) [ 6.276249] Exception stack(0xc704dfb0 to 0xc704dff8) [ 6.281915] dfa0: 00000000 00000000 00000000 00000000 [ 6.291091] dfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 6.300265] dfe0: 00000000 00000000 00000000 00000000 00000013 00000000 [ 6.307692] CPU0: stopping [ 6.310730] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.4.61 #1 [ 6.317367] Hardware name: Generic DT based system [ 6.322748] [<c010e1a8>] (unwind_backtrace) from [<c010a900>] (show_stack+0x10/0x14) [ 6.331440] [<c010a900>] (show_stack) from [<c05efa78>] (dump_stack+0x7c/0x98) [ 6.339545] [<c05efa78>] (dump_stack) from [<c010c548>] (handle_IPI+0xc0/0x168) [ 6.347750] [<c010c548>] (handle_IPI) from [<c030d140>] (gic_handle_irq+0x70/0x78) [ 6.356248] [<c030d140>] (gic_handle_irq) from [<c01021cc>] (__irq_svc+0x6c/0xa8) [ 6.364641] Exception stack(0xc0b01f40 to 0xc0b01f88) [ 6.370310] 1f40: 000715e4 c76b9374 00000000 c0114be0 00000001 c0b00000 c0b03be4 c0b03c20 [ 6.379487] 1f60: 00000000 c77ff600 c0a2a0c0 00000000 c0b6b8b0 c0b01f90 c0107ff8 c0107ffc [ 6.388659] 1f80: 60000113 ffffffff [ 6.392576] [<c01021cc>] (__irq_svc) from [<c0107ffc>] (arch_cpu_idle+0x2c/0x38) [ 6.400880] [<c0107ffc>] (arch_cpu_idle) from [<c013e2c0>] (do_idle+0xb8/0x120) [ 6.409083] [<c013e2c0>] (do_idle) from [<c013e5bc>] (cpu_startup_entry+0x18/0x1c) [ 6.417582] [<c013e5bc>] (cpu_startup_entry) from [<c0a00c6c>] (start_kernel+0x340/0x3cc) [ 6.426761] [<c0a00c6c>] (start_kernel) from [<00000000>] (0x0) [ 6.433417] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) ]---
/t113-longan/device/config/chips/t113/configs/evb1_auto_nand/longan/env.cfg
#kernel command arguments earlycon=uart8250,mmio32,0x05000000 initcall_debug=0 console=ttyS3,115200 nand_root=ubi0_5 mmc_root=/dev/mmcblk0p5 mtd_name=sys rootfstype=ubifs,rw init=/init loglevel=8 cma=8M mac= wifi_mac= bt_mac= specialstr= keybox_list=widevine,ec_key,ec_cert1,ec_cert2,ec_cert3,rsa_key,rsa_cert1,rsa_cert2,rsa_cert3 dsp0_partition=dsp0 #set kernel cmdline if boot.img or recovery.img has no cmdline we will use this setargs_nand=setenv bootargs ubi.mtd=${mtd_name} earlycon=${earlycon} clk_ignore_unused initcall_debug=${initcall_debug} console=${console} loglevel=${loglevel} root=${nand_root} rootfstype=${rootfstype} init=${init} partitions=${partitions} cma=${cma} snum=${snum} mac_addr=${mac} wifi_mac=${wifi_mac} bt_mac=${bt_mac} specialstr=${specialstr} gpt=1 setargs_nand_ubi=setenv bootargs ubi.mtd=${mtd_name} earlycon=${earlycon} clk_ignore_unused initcall_debug=${initcall_debug} console=${console} loglevel=${loglevel} root=${nand_root} rootfstype=${rootfstype} init=${init} partitions=${partitions} cma=${cma} snum=${snum} mac_addr=${mac} wifi_mac=${wifi_mac} bt_mac=${bt_mac} specialstr=${specialstr} gpt=1 setargs_mmc=setenv bootargs earlycon=${earlycon} clk_ignore_unused initcall_debug=${initcall_debug} console=${console} loglevel=${loglevel} root=${mmc_root} init=${init} partitions=${partitions} cma=${cma} snum=${snum} mac_addr=${mac} wifi_mac=${wifi_mac} bt_mac=${bt_mac} specialstr=${specialstr} gpt=1 #nand command syntax: sunxi_flash read address partition_name read_bytes #0x4007f800 = 0x40080000(kernel entry) - 0x800(boot.img header 2k) boot_dsp0=sunxi_flash read 43000000 ${dsp0_partition};bootr 43000000 0 0 boot_normal=sunxi_flash read 43000000 boot;bootm 43000000 boot_recovery=sunxi_flash read 43000000 recovery;bootm 43000000 boot_fastboot=fastboot #uboot system env config bootdelay=3 #default bootcmd, will change at runtime according to key press #default nand boot bootcmd=run setargs_nand boot_dsp0 boot_normal
不知道忽略了什么地方,请大家指点一下
-
@as86455011 请问一下最后怎么解决的?
-
@zx2125 问题已解决,需要把设备树中spi-nand节点下的spi-rx-bus-width 和spi-tx-bus-width改成1。
Copyright © 2023 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号