rootfs.ubifs无法正确挂载到t113i的mtd分区
-
利用原生的openwrt去编译出zImage和rootfs.ubifs,去替换t113i的sdk里面的,然后打包生成镜像,烧录到板子里,这样就可以将openwrt移植到板子里,烧录以后在利用串口获取的日志
Starting kernel ... [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 6.6.73 (forlinx@ubuntu) (arm-openwrt-linux-muslgnueabi-gcc (OpenWrt GCC 13.3.0 r0-7f91d3b) 13.3.0, GNU ld (GNU Binutils) 2.42) #0 SMP Mon Feb 10 08:35:18 2025 [ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=30c5387d [ 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] earlycon: uart8250 at MMIO32 0x0000000002500000 (options '') [ 0.000000] printk: bootconsole [uart8250] enabled [ 0.000000] Memory policy: Data cache writealloc [ 0.000000] Zone ranges: [ 0.000000] Normal [mem 0x0000000040000000-0x000000004fffffff] [ 0.000000] HighMem empty [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x0000000040000000-0x000000004fffffff] [ 0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x000000004fffffff] [ 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 13 pages/cpu s21204 r8192 d23852 u53248 [ 0.000000] pcpu-alloc: s21204 r8192 d23852 u53248 alloc=13*4096 [ 0.000000] pcpu-alloc: [0] 0 [0] 1 [ 0.000000] Kernel command line: ubi.mtd=sys earlycon=uart8250,mmio32,0x02500000 clk_ignore_unused initcall_debug=0 console=ttyAS0,115200 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:boot@ubi0_4:rootfs@ubi0_5:dsp0@ubi0_6:private@ubi0_7:UDISK@ubi0_8: cma=32M snum= mac_addr=22:b3:03:48:b5:bb wifi_mac= bt_mac= specialstr= gpt=1 androidboot.mode=normal androidboot.hardware=sun8iw20p1 boot_type=5 androidboot.boot_type=5 gpt=1 uboot_message=2018.05(03/28/2025-02:27:01) disp_reserve=2457600,0x4c91b000 aw-ubi-spinand.ubootblks=24 androidboot.dramsize=256 [ 0.000000] Unknown kernel command line parameters "partitions=mbr@ubi0_0:boot-resource@ubi0_1:env@ubi0_2:env-redund@ubi0_3:boot@ubi0_4:rootfs@ubi0_5:dsp0@ubi0_6:private@ubi0_7:UDISK@ubi0_8: cma=32M snum= mac_addr=22:b3:03:48:b5:bb wifi_mac= bt_mac= specialstr= boot_type=5 uboot_message=2018.05(03/28/2025-02:27:01) disp_reserve=2457600,0x4c91b000", will be passed to user space. [ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes, linear) [ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes, linear) [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 64960 [ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off [ 0.000000] Memory: 234176K/262144K available (8289K kernel code, 889K rwdata, 2340K rodata, 2048K init, 255K bss, 27968K reserved, 0K cma-reserved, 0K highmem) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1 [ 0.000000] rcu: Hierarchical RCU implementation. [ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=2. [ 0.000000] Tracing variant of 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: srcu_init: Setting srcu_struct sizes based on contention. [ 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.000001] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns [ 0.008373] Switching to timer-based delay loop, resolution 41ns [ 0.014821] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns [ 0.025050] Console: colour dummy device 80x30 [ 0.029747] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000) [ 0.040615] CPU: Testing write buffer coherency: ok [ 0.045761] pid_max: default: 32768 minimum: 301 [ 0.057333] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear) [ 0.065009] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear) [ 0.078786] /cpus/cpu@0 missing clock-frequency property [ 0.084386] /cpus/cpu@1 missing clock-frequency property [ 0.090002] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000 [ 0.097001] RCU Tasks Trace: Setting shift to 1 and lim to 1 rcu_task_cb_adjust=1 rcu_task_cpu_ids=2. [ 0.106870] Setting up static identity map for 0x40200000 - 0x40200060 [ 0.113893] rcu: Hierarchical SRCU implementation. [ 0.118937] rcu: Max phase no-delay instances is 1000. [ 0.125119] smp: Bringing up secondary CPUs ... [ 0.131218] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001 [ 0.131381] smp: Brought up 1 node, 2 CPUs [ 0.141616] SMP: Total of 2 processors activated (96.00 BogoMIPS). [ 0.148115] CPU: All CPU(s) started in SVC mode. [ 0.167325] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5 [ 0.175675] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.186052] futex hash table entries: 512 (order: 3, 32768 bytes, linear) [ 0.197543] pinctrl core: initialized pinctrl subsystem [ 0.205805] NET: Registered PF_NETLINK/PF_ROUTE protocol family [ 0.212898] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.221303] thermal_sys: Registered thermal governor 'step_wise' [ 0.221766] No ATAGs? [ 0.256511] SCSI subsystem initialized [ 0.260954] libata version 3.00 loaded. [ 0.265299] usbcore: registered new interface driver usbfs [ 0.271141] usbcore: registered new interface driver hub [ 0.276763] usbcore: registered new device driver usb [ 0.282463] pps_core: LinuxPPS API ver. 1 registered [ 0.287654] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it> [ 0.297279] PTP clock support registered [ 0.301721] Advanced Linux Sound Architecture Driver Initialized. [ 0.310043] clocksource: Switched to clocksource arch_sys_counter [ 0.328684] NET: Registered PF_INET protocol family [ 0.334067] IP idents hash table entries: 4096 (order: 3, 32768 bytes, linear) [ 0.342563] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear) [ 0.351391] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear) [ 0.359521] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear) [ 0.367550] TCP bind hash table entries: 2048 (order: 3, 32768 bytes, linear) [ 0.375091] TCP: Hash tables configured (established 2048 bind 2048) [ 0.382272] MPTCP token hash table entries: 256 (order: 0, 4096 bytes, linear) [ 0.390150] UDP hash table entries: 256 (order: 1, 8192 bytes, linear) [ 0.397034] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear) [ 0.404863] NET: Registered PF_UNIX/PF_LOCAL protocol family [ 0.413117] workingset: timestamp_bits=14 max_order=16 bucket_order=2 [ 0.428848] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 0.436874] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc. [ 0.462741] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled [ 0.486051] loop: module loaded [ 0.495635] usbcore: registered new interface driver usb-storage [ 0.502931] mousedev: PS/2 mouse device common for all mice [ 0.509615] i2c_dev: i2c /dev entries driver [ 0.515727] sunxi-wdt 20500a0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0) [ 0.529272] NET: Registered PF_INET6 protocol family [ 0.536208] Segment Routing with IPv6 [ 0.540205] In-situ OAM (IOAM) with IPv6 [ 0.544437] NET: Registered PF_PACKET protocol family [ 0.550123] can: controller area network core [ 0.555674] NET: Registered PF_CAN protocol family [ 0.560804] 8021q: 802.1Q VLAN Support v1.8 [ 0.565697] Registering SWP/SWPB emulation handler [ 0.610135] clk: Not disabling unused clocks [ 0.614626] ALSA device list: [ 0.617739] No soundcards found. [ 0.621392] Warning: unable to open an initial console. [ 0.627854] VFS: Cannot open root device "ubi0_5" or unknown-block(0,253): error -19 [ 0.636015] Please append a correct "root=" boot option; here are the available partitions: [ 0.644859] List of all bdev filesystems: [ 0.649061] ext3 [ 0.649066] ext2 [ 0.651111] ext4 [ 0.653131] squashfs [ 0.655148] vfat [ 0.657529] f2fs [ 0.659528] [ 0.663088] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,253) [ 0.671924] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 6.6.73 #0 [ 0.678135] Hardware name: Generic DT based system [ 0.683136] unwind_backtrace from show_stack+0x10/0x14 [ 0.688642] show_stack from dump_stack_lvl+0x40/0x4c [ 0.693932] dump_stack_lvl from panic+0x108/0x340 [ 0.698960] panic from mount_root_generic+0x1f4/0x2a4 [ 0.704350] mount_root_generic from prepare_namespace+0x228/0x25c [ 0.710826] prepare_namespace from kernel_init+0x1c/0x12c [ 0.716587] kernel_init from ret_from_fork+0x14/0x38 [ 0.721867] Exception stack(0xc2037fb0 to 0xc2037ff8) [ 0.727158] 7fa0: 00000000 00000000 00000000 00000000 [ 0.735717] 7fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 0.744274] 7fe0: 00000000 00000000 00000000 00000000 00000013 00000000 [ 0.751196] CPU1: stopping [ 0.751206] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 6.6.73 #0 [ 0.751215] Hardware name: Generic DT based system [ 0.751221] unwind_backtrace from show_stack+0x10/0x14 [ 0.751243] show_stack from dump_stack_lvl+0x40/0x4c [ 0.751264] dump_stack_lvl from do_handle_IPI+0xec/0x120 [ 0.751280] do_handle_IPI from ipi_handler+0x18/0x20 [ 0.751291] ipi_handler from handle_percpu_devid_irq+0x78/0x134 [ 0.751309] handle_percpu_devid_irq from generic_handle_domain_irq+0x28/0x38 [ 0.751331] generic_handle_domain_irq from gic_handle_irq+0x74/0x88 [ 0.751349] gic_handle_irq from generic_handle_arch_irq+0x34/0x44 [ 0.751365] generic_handle_arch_irq from call_with_stack+0x18/0x20 [ 0.751380] call_with_stack from __irq_svc+0x6c/0x7c [ 0.751391] Exception stack(0xc2077f70 to 0xc2077fb8) [ 0.751400] 7f60: 00000003 00000001 00000864 40000000 [ 0.751409] 7f80: 00000001 c1009f68 c208e300 c1009fa4 40007000 410fc075 00000000 00000000 [ 0.751417] 7fa0: c11035d0 c2077fc0 c0a10d24 c0a110f0 60000013 ffffffff [ 0.751422] __irq_svc from default_idle_call+0x2c/0x30 [ 0.751437] default_idle_call from do_idle+0xa4/0x118 [ 0.751455] do_idle from cpu_startup_entry+0x28/0x2c [ 0.751468] cpu_startup_entry from secondary_start_kernel+0x124/0x128 [ 0.751482] secondary_start_kernel from 0x40201134 [ 0.883178] Rebooting in 1 seconds.. [29]HELLO! BOOT0 is starting! [31]BOOT0 commit : 09b36272 [34]set pll start [40]periph0 has been enabled [43]set pll end [44][pmu]: bus read error [47]board init ok [49]DRAM only have internal ZQ!! [52]get_pmu_exist() = -1 [54]DRAM BOOT DRIVE INFO: V0.32 [57]DRAM CLK = 792 MHz [59]DRAM Type = 3 (2:DDR2,3:DDR3) [63]DRAMC ZQ value: 0x7b7bfb [65]DRAM ODT value: 0x42. [68]ddr_efuse_type: 0x0 [70]mark_id: 0x34 [73]DRAM SIZE =256 M [75]PLL_DDR_CTRL_REG:0xf8004100 [78]DRAM_CLK_REG:0xc0000000 [80][TIMING DEBUG] MR2= 0x18 [88]DRAM simple test OK. [90]rtc standby flag is 0x0, super standby flag is 0x0 [96]dram size =256 [98]spinand UBOOT_START_BLK_NUM 8 UBOOT_LAST_BLK_NUM 32 [103]block from 8 to 32 [260]Check is correct. [262]dma 0x2b00c int is not used yet [266]dma 0x2b00c int is free, you do not need to free it again [272]Entry_name = u-boot [279]Entry_name = optee [283]Entry_name = dtb [286]Jump to second Boot. [321]FORLINX: auth pass! M/TC: OP-TEE version: 15ee1539 (gcc version 5.3.1 20160412 (Linaro GCC 5.3-2016.05)) #1 Tue Mar 29 06:48:41 UTC 2022 arm U-Boot 2018.05 (Mar 28 2025 - 02:27:01 -0700) Allwinner Technology [00.373]CPU: Allwinner Family [00.376]Model: sun8iw20 I2C: ready [00.395]DRAM: 256 MiB [00.399]Relocation Offset is: 0cebe000 [00.426]secure enable bit: 0 E/TC:0 fdt_getprop_u32:343 prop trace_level not found [00.440]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz MBus=300Mhz [00.446]gic: sec monitor mode [00.449]flash init start [00.451]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.498]sunxi-spinand-phy: not detect any munufacture from id table [00.504]sunxi-spinand-phy: get spi-nand Model from fdt fail [00.510]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 0x0fb00000 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.685]ubi0: attaching mtd4 [01.240]ubi0: scanning is finished [01.251]ubi0: attached mtd4 (name "sys", size 251 MiB) [01.256]ubi0: PEB size: 262144 bytes (256 KiB), LEB size: 258048 bytes [01.262]ubi0: min./max. I/O unit sizes: 4096/4096, sub-page size 2048 [01.268]ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096 [01.274]ubi0: good PEBs: 1004, bad PEBs: 0, corrupted PEBs: 0 [01.280]ubi0: user volume: 9, internal volumes: 1, max. volumes count: 128 [01.286]ubi0: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 0 [01.294]ubi0: available PEBs: 0, total reserved PEBs: 1004, PEBs reserved for bad PEB handling: 40 [01.303]sunxi flash init ok [01.305]Loading Environment from SUNXI_FLASH... OK disp_type:4 [01.500]line:717 init_clocks [01.503]drv_disp_init request pwm success, pwm3:pwm3:0x2000c00. [01.520]drv_disp_init finish [01.522]boot_gui_init:start [01.525]set disp.dev2_output_type fail. using defval=0 [01.531]boot_gui_init:finish [01.712]LCD open finish partno erro : can't find partition bootloader 54 bytes read in 0 ms [01.841]bmp_name=bootlogo.bmp size 1036854 1036854 bytes read in 140 ms (7.1 MiB/s) [02.269]Item0 (Map) magic is bad secure storage read widevine fail [02.275]secure storage read widevine fail with:-1 secure storage read ec_key fail [02.282]secure storage read ec_key fail with:-1 secure storage read ec_cert1 fail [02.289]secure storage read ec_cert1 fail with:-1 secure storage read ec_cert2 fail [02.297]secure storage read ec_cert2 fail with:-1 secure storage read ec_cert3 fail [02.304]secure storage read ec_cert3 fail with:-1 secure storage read rsa_key fail [02.312]secure storage read rsa_key fail with:-1 secure storage read rsa_cert1 fail [02.319]secure storage read rsa_cert1 fail with:-1 secure storage read rsa_cert2 fail [02.327]secure storage read rsa_cert2 fail with:-1 secure storage read rsa_cert3 fail [02.334]secure storage read rsa_cert3 fail with:-1 [02.339]usb burn from boot delay time 0 weak:otg_phy_config [02.350]usb prepare ok [02.453]overtime [02.456]do_burn_from_boot usb : no usb exist List file under ULI/factory ** Unrecognized filesystem type ** [02.493]update bootcmd [02.522]change working_fdt 0x4c87de70 to 0x4c85de70 [02.540]update dts disp_type:4 Hit any key to stop autoboot (Spacebar): 0 [04.140]no vendor_boot partition is found
我自己查了一些资料,是因为我的rootfs没有挂载到正确的分区上面,然后我制作了一个ubi.img,查资料显示是烧录进去就可以正确挂载mtd了,但是因为无法进入系统,只能在uboot里面操作,使用不了tftp,也用不了ubiattach指令,然后我这块是OK113i-S,没有sd卡槽,只有usb和tf卡槽,想请问一下应该怎么办
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号