导航

    全志在线开发者论坛

    • 注册
    • 登录
    • 搜索
    • 版块
    • 话题
    • 在线文档
    • 社区主页

    D1s使用spinand挂载/mnt/UDISK的容量与flash差别很大

    MR Series
    1
    1
    957
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • M
      Maihuanyi LV 5 最后由 编辑

      1、使用W25N04作为启动,可以正常启动,但挂载的文件系统容量相差很大;
      启动的log:

      [55]BOOT0 commit : 88480af
      [58]set pll start
      [60]periph0 has been enabled
      [62]set pll end
      [64][pmu]: bus read error
      [66]board init ok
      [68]ZQ value = 0x30
      [70]get_pmu_exist() = -1
      [72]DRAM BOOT DRIVE INFO: V0.33
      [75]DRAM CLK = 528 MHz
      [77]DRAM Type = 2 (2:DDR2,3:DDR3)
      [80]DRAMC read ODT  off.
      [83]DRAM ODT off.
      [85]ddr_efuse_type: 0xa
      [87]DRAM SIZE =64 M
      [89]dram_tpr4:0x0
      [91]PLL_DDR_CTRL_REG:0xf8002b00
      [94]DRAM_CLK_REG:0xc0000000
      [96][TIMING DEBUG] MR2= 0x0
      [101]DRAM simple test OK.
      [103]dram size =64
      [105]spinand UBOOT_START_BLK_NUM 8 UBOOT_LAST_BLK_NUM 32
      [110]block from 8 to 32
      [159]Check is correct.
      [161]dma 0x301a8 int is not used yet
      [165]dma 0x301a8 int is free, you do not need to free it again
      [171]Entry_name        = opensbi
      [174]Entry_name        = u-boot
      [178]Entry_name        = dtb
      [180]Jump to second Boot.
      
      OpenSBI auto-t113-linux-V0.8-3-ge39e937
         ____                    _____ ____ _____
        / __ \                  / ____|  _ \_   _|
       | |  | |_ __   ___ _ __ | (___ | |_) || |
       | |  | | '_ \ / _ \ '_ \ \___ \|  _ < | |
       | |__| | |_) |  __/ | | |____) | |_) || |_
        \____/| .__/ \___|_| |_|_____/|____/_____|
              | |
              |_|
      
      Platform Name          : T-HEAD Xuantie Platform
      Platform HART Features : RV64ACDFIMSUVX
      Platform Max HARTs     : 1
      Current Hart           : 0
      Firmware Base          : 0x41fc0400
      Firmware Size          : 75 KB
      Runtime SBI Version    : 0.2
      
      MIDELEG : 0x0000000000000222
      MEDELEG : 0x000000000000b1ff
      PMP0    : 0x0000000041fc0000-0x0000000041fdffff (A)
      PMP1    : 0x0000000040000000-0x000000007fffffff (A,R,W,X)
      PMP2    : 0x0000000080000000-0x00000000bfffffff (A,R,W,X)
      PMP3    : 0x0000000000020000-0x0000000000027fff (A,�
      
      U-Boot 2018.07-ge987def5-dirty (May 08 2024 - 09:18:55 +0800) Allwinner Technology
      
      [00.266]DRAM:  64 MiB
      [00.268]Relocation Offset is: 01eea000
      [00.272]secure enable bit: 0
      can't support chip type 24064
      [00.278]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz  MBus=300Mhz
      sunxi flash map init
      SPI ALL:   ready
      [00.288]flash init start
      [00.291]workmode = 0,storage type = 0
      [00.298]sunxi-spinand-phy: spinand sample_mode:2 sample_delay:14
      
      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                 0x1fb00000      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.557]ubi0: attaching mtd4
      [00.900]ubi0: scanning is finished
      [00.909]ubi0: attached mtd4 (name "sys", size 507 MiB)
      [00.913]ubi0: PEB size: 262144 bytes (256 KiB), LEB size: 258048 bytes
      [00.920]ubi0: min./max. I/O unit sizes: 4096/4096, sub-page size 2048
      [00.926]ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
      [00.932]ubi0: good PEBs: 2028, bad PEBs: 0, corrupted PEBs: 0
      [00.938]ubi0: user volume: 9, internal volumes: 1, max. volumes count: 128
      [00.944]ubi0: max/mean erase counter: 5/3, WL threshold: 4096, image sequence number: 0
      [00.952]ubi0: available PEBs: 1476, total reserved PEBs: 552, PEBs reserved for bad PEB handling: 80
      [00.961]sunxi flash init ok
      [00.963]line:703 init_clocks
      [00.966]drv_disp_init
      request pwm success, pwm7:pwm7:0x2000c00.
      [00.984]drv_disp_init finish
      [01.068]Loading Environment from SUNXI_FLASH... OK
      [01.087]boot_gui_init:start
      [01.089]set disp.dev2_output_type fail. using defval=0
      [01.116]set disp.fb0_rot_used fail. using defval=0
      [01.121]set disp.fb0_rot_degree fail. using defval=0
      [01.290]boot_gui_init:finish
      partno erro : can't find partition bootloader
      [01.306]bmp_name=bootlogo.bmp size 38454
      [01.316]out of usb burn from boot: not need burn key
      [01.321]Item0 (Map) magic is bad
      partno erro : can't find partition private
      [01.346]update bootcmd
      [01.349]LCD open finish
      [01.360]change working_fdt 0x42aa9da0 to 0x42a89da0
      No reserved memory region found in source FDT
      [01.388]update dts
      Hit any key to stop autoboot:  0 
      ramdisk  addr 0x41000000 0x41000000 exceed boot scope
      boot  addr 0x41000000 0x413a1000
      [02.569]no vendor_boot partition is found
      Android's image name: d1s-nezha_nand
      Detect comp gzip
      [02.775]
      Starting kernel ...
      
      ** 7 printk messages dropped **
      [    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x0000000043ffffff]
      [    0.000000] On node 0 totalpages: 16384
      [    0.000000]   DMA32 zone: 224 pages used for memmap
      [    0.000000]   DMA32 zone: 0 pages reserved
      [    0.000000]   DMA32 zone: 16384 pages, LIFO batch:3
      [    0.000000] elf_hwcap is 0x20112d
      [    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
      [    0.000000] pcpu-alloc: [0] 0 
      [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16160
      [    0.000000] Kernel command line: ubi.mtd=sys ubi.block=0,rootfs earlyprintk=sunxi-uart,0x02500000 clk_ignore_unused initcall_debug=0 console=ttyS0,115200 loglevel=8 root=/dev/ubiblock0_5 rootfstype=squashfs init=/sbin/init partitions=mbr@ubi0_0:boot-resource@ubi0_1:env@ubi0_2:env-redund@ubi0_3:boot@ubi0_4:rootfs@ubi0_5:recovery@ubi0_6:rootfs_data@ubi0_7:UDISK@ubi0_8: cma=0M snum= mac_addr= wifi_mac= bt_mac= specialstr= gpt=1 androidboot.hardware=sun20iw1p1 boot_type=5 androidboot.boot_type=5 gpt=1 uboot_message=2018.07-ge987def5-dirty(05/08/2024-09:18:55) mbr_offset=1556480 disp_reserve=4096000,0x0000000042b7a000 aw-ubi-spinand.ubootblks=24 androidboot.dramsize=64 
      [    0.000000] Dentry cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
      [    0.000000] Inode-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
      [    0.000000] Sorting __ex_table...
      [    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
      [    0.000000] Memory: 52756K/65536K available (4613K kernel code, 422K rwdata, 1799K rodata, 160K init, 238K bss, 12780K reserved, 0K cma-reserved)
      [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
      [    0.000000] rcu: Preemptible hierarchical RCU implementation.
      [    0.000000]  Tasks RCU enabled.
      [    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
      [    0.000000] NR_IRQS: 0, nr_irqs: 0, preallocated irqs: 0
      [    0.000000] plic: mapped 200 interrupts with 1 handlers for 2 contexts.
      [    0.000000] riscv_timer_init_dt: Registering clocksource cpuid [0] hartid [0]
      [    0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
      [    0.000006] sched_clock: 64 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
      [    0.000025] riscv_timer_clockevent depends on broadcast, but no broadcast function available
      [    0.000388] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
      [    0.001104] Console: colour dummy device 80x25
      [    0.001149] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
      [    0.001166] pid_max: default: 32768 minimum: 301
      [    0.001357] Mount-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
      [    0.001375] Mountpoint-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
      [    0.003555] ASID allocator initialised with 65536 entries
      [    0.003759] rcu: Hierarchical SRCU implementation.
      [    0.004533] devtmpfs: initialized
      [    0.023311] random: get_random_u32 called from bucket_table_alloc.isra.27+0x102/0x124 with crng_init=0
      [    0.024433] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
      [    0.024467] futex hash table entries: 256 (order: 0, 6144 bytes, linear)
      [    0.024647] pinctrl core: initialized pinctrl subsystem
      [    0.026295] NET: Registered protocol family 16
      [    0.027246] DMA: preallocated 256 KiB pool for atomic allocations
      [    0.028205] cpuidle: using governor menu
      [    0.076140] rtc_ccu: sunxi ccu init OK
      [    0.084972] clock: sunxi ccu init OK
      [    0.086733] clock: sunxi ccu init OK
      [    0.122267] sun6i-dma 3002000.dma-controller: sunxi dma probed
      [    0.124728] iommu: Default domain type: Translated 
      [    0.124929] sunxi iommu: irq = 4
      [    0.126269] SCSI subsystem initialized
      [    0.126539] usbcore: registered new interface driver usbfs
      [    0.126638] usbcore: registered new interface driver hub
      [    0.126763] usbcore: registered new device driver usb
      [    0.126920] videodev: Linux video capture interface: v2.00
      [    0.128014] Advanced Linux Sound Architecture Driver Initialized.
      [    0.128837] Bluetooth: Core ver 2.22
      [    0.128935] NET: Registered protocol family 31
      [    0.128946] Bluetooth: HCI device and connection manager initialized
      [    0.128970] Bluetooth: HCI socket layer initialized
      [    0.128985] Bluetooth: L2CAP socket layer initialized
      [    0.129027] Bluetooth: SCO socket layer initialized
      [    0.129349] pwm module init!
      [    0.131257] g2d 5410000.g2d: Adding to iommu group 0
      [    0.131849] G2D: rcq version initialized.major:252
      [    0.132866] clocksource: Switched to clocksource riscv_clocksource
      [    0.149215] sun8iw20-pinctrl 2000000.pinctrl: initialized sunXi PIO driver
      [    0.170003] NET: Registered protocol family 2
      [    0.170959] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes, linear)
      [    0.171011] TCP established hash table entries: 512 (order: 0, 4096 bytes, linear)
      [    0.171028] TCP bind hash table entries: 512 (order: 0, 4096 bytes, linear)
      [    0.171043] TCP: Hash tables configured (established 512 bind 512)
      [    0.171221] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
      [    0.171269] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
      [    0.171546] NET: Registered protocol family 1
      [    0.172996] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pc not found, using dummy regulator
      [    0.173631] spi spi0: spi0 supply spi not found, using dummy regulator
      [    0.173959] sunxi_spi_resource_get()2438 - [spi0] SPI MASTER MODE
      [    0.174035] sunxi_spi_resource_get()2485 - sample_mode:2 sample_delay:20
      [    0.174116] sunxi_spi_clk_init()2527 - [spi0] mclk 100000000
      [    0.175099] sunxi_spi_probe()2978 - [spi0]: driver probe succeed, base ffffffd004058000, irq 31
      [    0.177631] workingset: timestamp_bits=62 max_order=14 bucket_order=0
      [    0.186336] squashfs: version 4.0 (2009/01/31) Phillip Lougher
      [    0.186640] ntfs: driver 2.1.32 [Flags: R/W].
      [    0.208711] io scheduler mq-deadline registered
      [    0.208727] io scheduler kyber registered
      [    0.209778] [DISP]disp_module_init
      [    0.210456] disp 5000000.disp: Adding to iommu group 0
      [    0.211141] [DISP] disp_init,line:2387:
      [    0.211146] smooth display screen:0 type:1 mode:4
      [    0.255575] display_fb_request,fb_id:0
      [    0.296023] [DISP]disp_module_init finish
      [    0.296969] sunxi_sid_init()783 - insmod ok
      [    0.297897] pwm-regulator: supplied by regulator-dummy
      [    0.299453] disp_al_manager_apply ouput_type:1
      [    0.299585] [DISP] lcd_clk_config,line:774:
      [    0.299598] disp 0, clk: pll(420000000),clk(420000000),dclk(70000000) dsi_rate(70000000)
      [    0.299598]      clk real:pll(420000000),clk(420000000),dclk(105000000) dsi_rate(150000000)
      [    0.299956] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pd not found, using dummy regulator
      [    0.300765] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pe not found, using dummy regulator
      [    0.301288] uart uart0: uart0 supply uart not found, using dummy regulator
      [    0.301747] uart0: ttyS0 at MMIO 0x2500000 (irq = 18, base_baud = 1500000) is a SUNXI
      [    0.301778] sw_console_setup()1807 - console setup baud 115200 parity n bits 8, flow n
      [    1.024152] printk: console [ttyS0] enabled
      [    1.029792] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pg not found, using dummy regulator
      [    1.041372] uart uart1: uart1 supply uart not found, using dummy regulator
      [    1.049610] uart1: ttyS1 at MMIO 0x2500400 (irq = 19, base_baud = 1500000) is a SUNXI
      [    1.059719] misc dump reg init
      [    1.067417] Freeing logo buffer memory: 4000K
      [    1.073530] sunxi-rfkill soc@3000000:rfkill@0: module version: v1.0.9
      [    1.080770] sunxi-rfkill soc@3000000:rfkill@0: get gpio chip_en failed
      [    1.088111] sunxi-rfkill soc@3000000:rfkill@0: get gpio power_en failed
      [    1.095519] sunxi-rfkill soc@3000000:rfkill@0: wlan_busnum (1)
      [    1.102044] sunxi-rfkill soc@3000000:rfkill@0: Missing wlan_power.
      [    1.109008] sunxi-rfkill soc@3000000:rfkill@0: wlan_regon gpio=137 assert=1
      [    1.116939] sunxi-rfkill soc@3000000:rfkill@0: wlan_hostwake gpio=202 assert=1
      [    1.125088] sunxi-rfkill soc@3000000:rfkill@0: wakeup source is enabled
      [    1.132793] sunxi-rfkill soc@3000000:rfkill@0: Missing bt_power.
      [    1.139597] sunxi-rfkill soc@3000000:rfkill@0: bt_rst gpio=133 assert=0
      [    1.147807] [ADDR_MGT] addr_mgt_probe: module version: v1.0.11
      [    1.155652] [ADDR_MGT] addr_mgt_probe: success.
      [    1.161921] sunxi-spinand: AW SPINand MTD Layer Version: 2.3 20211223
      [    1.169167] sunxi-spinand-phy: AW SPINand Phy Layer Version: 1.10 20200306
      [    1.177056] sunxi-spinand-phy: not detect any munufacture from id table
      [    1.184468] sunxi-spinand-phy: get spi-nand Model from fdt fail
      [    1.191059] sunxi-spinand-phy: get phy info from fdt fail
      [    1.197135] sunxi-spinand-phy: not detect munufacture from fdt
      [    1.203773] sunxi-spinand-phy: detect munufacture from id table: Winbond
      [    1.211261] sunxi-spinand-phy: detect spinand id: ff23aaef ffffffff
      [    1.218270] sunxi-spinand-phy: ========== arch info ==========
      [    1.224795] sunxi-spinand-phy: Model:               W25N04KVZEIR
      [    1.231503] sunxi-spinand-phy: Munufacture:         Winbond
      [    1.237733] sunxi-spinand-phy: DieCntPerChip:       1
      [    1.243417] sunxi-spinand-phy: BlkCntPerDie:        4096
      [    1.249330] sunxi-spinand-phy: PageCntPerBlk:       64
      [    1.255080] sunxi-spinand-phy: SectCntPerPage:      4
      [    1.260724] sunxi-spinand-phy: OobSizePerPage:      64
      [    1.266471] sunxi-spinand-phy: BadBlockFlag:        0x0
      [    1.272289] sunxi-spinand-phy: OperationOpt:        0xf
      [    1.278160] sunxi-spinand-phy: MaxEraseTimes:       60000
      [    1.284201] sunxi-spinand-phy: EccFlag:             0x0
      [    1.290015] sunxi-spinand-phy: EccType:             3
      [    1.295699] sunxi-spinand-phy: EccProtectedType:    2
      [    1.301321] sunxi-spinand-phy: ========================================
      [    1.308738] sunxi-spinand-phy: 
      [    1.312234] sunxi-spinand-phy: ========== physical info ==========
      [    1.319143] sunxi-spinand-phy: TotalSize:    512 M
      [    1.324536] sunxi-spinand-phy: SectorSize:   512 B
      [    1.329866] sunxi-spinand-phy: PageSize:     2 K
      [    1.335033] sunxi-spinand-phy: BlockSize:    128 K
      [    1.340386] sunxi-spinand-phy: OOBSize:      64 B
      [    1.345647] sunxi-spinand-phy: ========================================
      [    1.353032] sunxi-spinand-phy: 
      [    1.356544] sunxi-spinand-phy: ========== logical info ==========
      [    1.363354] sunxi-spinand-phy: TotalSize:    512 M
      [    1.368686] sunxi-spinand-phy: SectorSize:   512 B
      [    1.374075] sunxi-spinand-phy: PageSize:     4 K
      [    1.379213] sunxi-spinand-phy: BlockSize:    256 K
      [    1.384573] sunxi-spinand-phy: OOBSize:      128 B
      [    1.389922] sunxi-spinand-phy: ========================================
      [    1.397406] sunxi-spinand-phy: block lock register: 0x00
      [    1.403456] sunxi-spinand-phy: feature register: 0x18
      [    1.409110] sunxi-spinand-phy: sunxi physic nand init end
      [    1.415955] Creating 4 MTD partitions on "sunxi_mtd_nand":
      [    1.422116] 0x000000000000-0x000000100000 : "boot0"
      [    1.433926] 0x000000100000-0x000000400000 : "uboot"
      [    1.454000] 0x000000400000-0x000000500000 : "secure_storage"
      [    1.473895] 0x000000500000-0x000020000000 : "sys"
      [    1.479741] random: fast init done
      [    1.908091] random: crng init done
      [    2.024148] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
      [    2.031426] sunxi-ehci: EHCI SUNXI driver
      [    2.036626] get ehci1-controller wakeup-source is fail.
      [    2.042595] sunxi ehci1-controller don't init wakeup source
      [    2.048865] [sunxi-ehci1]: probe, pdev->name: 4200000.ehci1-controller, sunxi_ehci: 0xffffffe000700390, 0x:ffffffd004075000, irq_no:31
      [    2.062443] sunxi-ehci 4200000.ehci1-controller: 4200000.ehci1-controller supply drvvbus not found, using dummy regulator
      [    2.075050] sunxi-ehci 4200000.ehci1-controller: 4200000.ehci1-controller supply hci not found, using dummy regulator
      [    2.087395] sunxi-ehci 4200000.ehci1-controller: EHCI Host Controller
      [    2.094684] sunxi-ehci 4200000.ehci1-controller: new USB bus registered, assigned bus number 1
      [    2.104604] sunxi-ehci 4200000.ehci1-controller: irq 49, io mem 0x04200000
      [    2.132929] sunxi-ehci 4200000.ehci1-controller: USB 2.0 started, EHCI 1.00
      [    2.141993] hub 1-0:1.0: USB hub found
      [    2.146329] hub 1-0:1.0: 1 port detected
      [    2.151790] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
      [    2.158806] sunxi-ohci: OHCI SUNXI driver
      [    2.163970] get ohci1-controller wakeup-source is fail.
      [    2.169971] sunxi ohci1-controller don't init wakeup source
      [    2.176246] [sunxi-ohci1]: probe, pdev->name: 4200400.ohci1-controller, sunxi_ohci: 0xffffffe000700758
      [    2.186727] sunxi-ohci 4200400.ohci1-controller: 4200400.ohci1-controller supply drvvbus not found, using dummy regulator
      [    2.199317] sunxi-ohci 4200400.ohci1-controller: 4200400.ohci1-controller supply hci not found, using dummy regulator
      [    2.211653] sunxi-ohci 4200400.ohci1-controller: OHCI Host Controller
      [    2.218989] sunxi-ohci 4200400.ohci1-controller: new USB bus registered, assigned bus number 2
      [    2.228858] sunxi-ohci 4200400.ohci1-controller: irq 50, io mem 0x04200400
      [    2.308241] hub 2-0:1.0: USB hub found
      [    2.312490] hub 2-0:1.0: 1 port detected
      [    2.320304] sunxi-rtc 7090000.rtc: registered as rtc0
      [    2.326173] sunxi-rtc 7090000.rtc: setting system clock to 1970-01-01T00:04:37 UTC (277)
      [    2.335339] sunxi-rtc 7090000.rtc: sunxi rtc probed
      [    2.341308] i2c /dev entries driver
      [    2.345313] IR NEC protocol handler initialized
      [    2.353624] usbcore: registered new interface driver uvcvideo
      [    2.360027] USB Video Class driver (1.1.1)
      [    2.364691] sunxi cedar version 1.1
      [    2.368908] sunxi-cedar 1c0e000.ve: Adding to iommu group 0
      [    2.375219] VE: install start!!!
      [    2.375219] 
      [    2.380837] VE: cedar-ve the get irq is 6
      [    2.380837] 
      [    2.387234] VE: ve_debug_proc_info:00000000081f4aab, data:000000005580a60a, lock:0000000018e28f7c
      [    2.387234] 
      [    2.398865] VE: install end!!!
      [    2.398865] 
      [    2.403936] VE: sunxi_cedar_probe
      [    2.407917] Bluetooth: HCI UART driver ver 2.3
      [    2.412980] Bluetooth: HCI UART protocol H4 registered
      [    2.418700] Bluetooth: HCI UART protocol BCSP registered
      [    2.425210] Bluetooth: XRadio Bluetooth LPM Mode Driver Ver 1.0.10
      [    2.432548] [XR_BT_LPM] bluesleep_probe: bt_wake polarity: 1
      [    2.439024] [XR_BT_LPM] bluesleep_probe: host_wake polarity: 1
      [    2.445654] [XR_BT_LPM] bluesleep_probe: wakeup source is disabled!
      [    2.445654] 
      [    2.454324] [XR_BT_LPM] bluesleep_probe: uart_index(1)
      [    2.463140] sunxi-mmc 4020000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.25 2022-6-21 13:40)
      [    2.473107] sunxi-mmc 4020000.sdmmc: ***ctl-spec-caps*** 8
      [    2.479307] sunxi-mmc 4020000.sdmmc: No vmmc regulator found
      [    2.485649] sunxi-mmc 4020000.sdmmc: No vqmmc regulator found
      [    2.492052] sunxi-mmc 4020000.sdmmc: No vdmmc regulator found
      [    2.498524] sunxi-mmc 4020000.sdmmc: No vd33sw regulator found
      [    2.505053] sunxi-mmc 4020000.sdmmc: No vd18sw regulator found
      [    2.511575] sunxi-mmc 4020000.sdmmc: No vq33sw regulator found
      [    2.518106] sunxi-mmc 4020000.sdmmc: No vq18sw regulator found
      [    2.525187] sunxi-mmc 4020000.sdmmc: Got CD GPIO
      [    2.530580] sunxi-mmc 4020000.sdmmc: set cd-gpios as 24M fail
      [    2.537289] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
      [    2.548487] sunxi-mmc 4020000.sdmmc: no vqmmc,Check if there is regulator
      [    2.568655] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
      [    2.593153] sunxi-mmc 4020000.sdmmc: detmode:gpio irq
      [    2.593226] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 0Hz bm PP pm OFF vdd 0 width 1 timing LEGACY(SDR12) dt B
      [    2.610801] sunxi-mmc 4021000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.25 2022-6-21 13:40)
      [    2.620766] sunxi-mmc 4021000.sdmmc: ***ctl-spec-caps*** 8
      [    2.627156] sunxi-mmc 4021000.sdmmc: No vmmc regulator found
      [    2.633540] sunxi-mmc 4021000.sdmmc: No vqmmc regulator found
      [    2.639973] sunxi-mmc 4021000.sdmmc: No vdmmc regulator found
      [    2.646413] sunxi-mmc 4021000.sdmmc: No vd33sw regulator found
      [    2.652936] sunxi-mmc 4021000.sdmmc: No vd18sw regulator found
      [    2.659457] sunxi-mmc 4021000.sdmmc: No vq33sw regulator found
      [    2.665985] sunxi-mmc 4021000.sdmmc: No vq18sw regulator found
      [    2.672539] sunxi-mmc 4021000.sdmmc: Cann't get pin bias hs pinstate,check if needed
      [    2.682074] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
      [    2.693282] sunxi-mmc 4021000.sdmmc: no vqmmc,Check if there is regulator
      [    2.713414] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
      [    2.737681] sunxi-mmc 4021000.sdmmc: detmode:manually by software
      [    2.745356] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 52, RTO !!
      [    2.752564] ashmem: initialized
      [    2.756089] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 52, RTO !!
      [    2.763024] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
      [    2.774628] exFAT: Version 1.3.0
      [    2.783213] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
      [    2.795192] [AUDIOCODEC][sunxi_codec_parse_params][2437]:digital_vol:0, lineout_vol:26, mic1gain:31, mic2gain:31 pa_msleep:120, pa_level:1, pa_pwr_level:1
      [    2.795192] 
      [    2.812519] [AUDIOCODEC][sunxi_codec_parse_params][2473]:adcdrc_cfg:0, adchpf_cfg:1, dacdrc_cfg:0, dachpf:0
      [    2.824042] [AUDIOCODEC][sunxi_internal_codec_probe][2634]:codec probe finished
      [    2.832212] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 5, RTO !!
      [    2.839838] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 5, RTO !!
      [    2.847446] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 5, RTO !!
      [    2.854297] debugfs: Directory '203034c.dummy_cpudai' with parent 'audiocodec' already present!
      [    2.864011] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 5, RTO !!
      [    2.870807] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 0Hz bm PP pm OFF vdd 0 width 1 timing LEGACY(SDR12) dt B
      [    2.881966] [SNDCODEC][sunxi_card_init][583]:card init finished
      [    2.891274] sunxi-codec-machine 2030340.sound: 2030000.codec <-> 203034c.dummy_cpudai mapping ok
      [    2.903182] input: audiocodec sunxi Audio Jack as /devices/platform/soc@3000000/2030340.sound/sound/card0/input0
      [    2.915541] [SNDCODEC][sunxi_card_dev_probe][836]:register card finished
      [    2.925516] NET: Registered protocol family 10
      [    2.932229] Segment Routing with IPv6
      [    2.936694] NET: Registered protocol family 17
      [    2.941879] Bluetooth: RFCOMM TTY layer initialized
      [    2.947493] Bluetooth: RFCOMM socket layer initialized
      [    2.953420] Bluetooth: RFCOMM ver 1.11
      [    2.981036] sunxi-i2c sunxi-i2c2: sunxi-i2c2 supply twi not found, using dummy regulator
      [    2.991043] sunxi-i2c sunxi-i2c2: probe success
      [    2.998009] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pb not found, using dummy regulator
      [    3.011963] get ehci0-controller wakeup-source is fail.
      [    3.018017] sunxi ehci0-controller don't init wakeup source
      [    3.024274] [sunxi-ehci0]: probe, pdev->name: 4101000.ehci0-controller, sunxi_ehci: 0xffffffe0006ffc00, 0x:ffffffd0040fd000, irq_no:2e
      [    3.037809] [sunxi-ehci0]: Not init ehci0
      [    3.042936] get ohci0-controller wakeup-source is fail.
      [    3.048919] sunxi ohci0-controller don't init wakeup source
      [    3.055179] [sunxi-ohci0]: probe, pdev->name: 4101400.ohci0-controller, sunxi_ohci: 0xffffffe0006fffc8
      [    3.065620] [sunxi-ohci0]: Not init ohci0
      [    3.071460] ubi0: attaching mtd3
      [    3.552964] [SNDCODEC][sunxi_check_hs_detect_status][191]:plugin --> switch:1
      [    4.505011] ubi0: scanning is finished
      [    4.524832] ubi0: attached mtd3 (name "sys", size 507 MiB)
      [    4.530950] ubi0: PEB size: 262144 bytes (256 KiB), LEB size: 258048 bytes
      [    4.538708] ubi0: min./max. I/O unit sizes: 4096/4096, sub-page size 2048
      [    4.546360] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
      [    4.554143] ubi0: good PEBs: 2028, bad PEBs: 0, corrupted PEBs: 0
      [    4.560950] ubi0: user volume: 9, internal volumes: 1, max. volumes count: 128
      [    4.569024] ubi0: max/mean erase counter: 5/3, WL threshold: 4096, image sequence number: 0
      [    4.578388] ubi0: available PEBs: 1516, total reserved PEBs: 512, PEBs reserved for bad PEB handling: 40
      [    4.589023] ubi0: background thread "ubi_bgt0d" started, PID 65
      [    4.598016] block ubiblock0_5: created from ubi0:5(rootfs)
      [    4.604900] otg manager soc@3000000:usbc0@0: soc@3000000:usbc0@0 supply usbc not found, using dummy regulator
      [    4.618503] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
      [    4.628232] clk: Not disabling unused clocks
      [    4.633073] ALSA device list:
      [    4.636381]   #0: audiocodec
      [    4.639625] alloc_fd: slot 0 not NULL!
      [    4.643882] cfg80211: failed to load regulatory.db
      [    4.653500] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
      [    4.667103] devtmpfs: mounted
      [    4.670694] Freeing unused kernel memory: 160K
      [    4.675751] This architecture does not have kernel memory protection.
      [    4.682957] Run /sbin/init as init process
      [    5.322077] init: Console is alive
      [    5.326413] init: - preinit -
      [    5.696341] 
      [    5.696341] insmod_device_driver
      [    5.696341] 
      [    5.708484] sunxi_usb_udc 4100000.udc-controller: 4100000.udc-controller supply udc not found, using dummy regulator
      [    5.730575] device_chose finished 142!
      /dev/by-name/UDISK already format by ubifs
      /dev/by-name/rootfs_data already format by ubifs
      [    6.679090] mount_root: loading kmods from internal overlay
      [    9.821101] block: attempting to load /etc/config/fstab
      [    9.866324] UBIFS (ubi0:7): Mounting in unauthenticated mode
      [    9.873212] UBIFS (ubi0:7): background thread "ubifs_bgt0_7" started, PID 106
      [    9.967405] UBIFS (ubi0:7): recovery needed
      [   10.170478] UBIFS (ubi0:7): recovery completed
      [   10.176629] UBIFS (ubi0:7): UBIFS: mounted UBI device 0, volume 7, name "rootfs_data"
      [   10.185477] UBIFS (ubi0:7): LEB size: 258048 bytes (252 KiB), min./max. I/O unit sizes: 4096 bytes/4096 bytes
      [   10.196594] UBIFS (ubi0:7): FS size: 3096576 bytes (2 MiB, 12 LEBs), journal size 1806337 bytes (1 MiB, 5 LEBs)
      [   10.207862] UBIFS (ubi0:7): reserved for root: 146258 bytes (142 KiB)
      [   10.215102] UBIFS (ubi0:7): media format: w5/r0 (latest is w5/r0), UUID 8C73FB0E-D6E1-430B-A00C-E2D38CA16CCA, small LPT model
      [   10.231880] block: extroot: UUID match (root: b271d71c-262bb440-b40567ed-1efcbf6b, overlay: b271d71c-262bb440-b40567ed-1efcbf6b)
      [   10.264720] mount_root: switched to extroot
      [   10.289749] procd: - early -
      [   10.640543] procd: - ubus -
      [   10.653932] procd (1): /proc/117/oom_adj is deprecated, please use /proc/117/oom_score_adj instead.
      [   10.930992] procd: - init -
      Please press Enter to activate this console.
      [   12.664144] file system registered
      [   12.824577] configfs-gadget 4100000.udc-controller: failed to start g1: -19
      [   13.103163] read descriptors
      [   13.106390] read strings
      [   15.533894] ======== XRADIO WIFI OPEN ========
      [   15.542788] [XRADIO] Driver Label:XR_V02.16.85_P2P_HT40_01.31   
      [   15.553452] [XRADIO] Allocated hw_priv @ 00000000072aed96
      [   15.565366] sunxi-rfkill soc@3000000:rfkill@0: bus_index: 1
      [   15.585851] sunxi-rfkill soc@3000000:rfkill@0: wlan power on success
      [   15.844171] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
      [   15.855308] [XRADIO] Detect SDIO card 1
      [   15.870039] sunxi-mmc 4021000.sdmmc: no vqmmc,Check if there is regulator
      [   15.890298] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
      [   15.915379] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 52, RTO !!
      [   15.923029] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 52, RTO !!
      [   15.929893] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
      [   15.944537] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
      [   15.958353] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 5, RTO !!
      [   15.965928] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 5, RTO !!
      [   15.973472] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 5, RTO !!
      [   15.981032] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 5, RTO !!
      [   15.987784] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 0Hz bm PP pm OFF vdd 0 width 1 timing LEGACY(SDR12) dt B
      [   17.923057] sunxi-rfkill soc@3000000:rfkill@0: wlan power off success
      [   18.030332] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
      [   18.041430] [XRADIO] Remove SDIO card 1
      [   18.053023] sunxi-mmc 4021000.sdmmc: no vqmmc,Check if there is regulator
      [   18.062640] [SBUS_ERR] sdio probe timeout!
      [   18.067287] [XRADIO_ERR] sbus_sdio_init failed
      [   18.073605] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
      [   18.085553] xradio_core_init failed (-110)!
      [   18.116620] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 52, RTO !!
      [   18.124364] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 52, RTO !!
      [   18.131188] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
      [   18.146023] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
      [   18.159870] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 5, RTO !!
      [   18.167474] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 5, RTO !!
      [   18.175562] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 5, RTO !!
      [   18.183098] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 5, RTO !!
      [   18.189847] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 0Hz bm PP pm OFF vdd 0 width 1 timing LEGACY(SDR12) dt B
      kmodloader done
      [   27.653637] UBIFS (ubi0:8): Mounting in unauthenticated mode
      [   27.673017] UBIFS (ubi0:8): background thread "ubifs_bgt0_8" started, PID 337
      [   27.883054] UBIFS (ubi0:8): recovery needed
      [   28.008373] UBIFS (ubi0:8): recovery completed
      [   28.023132] UBIFS (ubi0:8): UBIFS: mounted UBI device 0, volume 8, name "UDISK"
      [   28.053057] UBIFS (ubi0:8): LEB size: 258048 bytes (252 KiB), min./max. I/O unit sizes: 4096 bytes/4096 bytes
      [   28.113048] UBIFS (ubi0:8): FS size: 47738880 bytes (45 MiB, 185 LEBs), journal size 2322432 bytes (2 MiB, 9 LEBs)
      [   28.150760] UBIFS (ubi0:8): reserved for root: 2254825 bytes (2201 KiB)
      [   28.167873] UBIFS (ubi0:8): media format: w5/r0 (latest is w5/r0), UUID 67738705-52FB-4BEB-8D5E-AA9F61ED0254, small LPT model
      

      使用df查看系统容量:

      root@TinaLinux:/# df -h
      Filesystem                Size      Used Available Use% Mounted on
      /dev/root                10.3M     10.3M         0 100% /rom
      devtmpfs                 25.8M         0     25.8M   0% /dev
      tmpfs                    27.8M     24.0K     27.8M   0% /tmp
      /dev/by-name/rootfs_data
                                1.4M     52.0K      1.2M   4% /overlay
      overlayfs:/overlay        1.4M     52.0K      1.2M   4% /
      /dev/by-name/UDISK       41.4M     24.0K     39.3M   0% /mnt/UDISK
      

      使用ubinfo -a查看ubi的信息:

      root@TinaLinux:/# ubinfo -a
      UBI version:                    1
      Count of UBI devices:           1
      UBI control device major/minor: 10:120
      Present UBI devices:            ubi0
      
      ubi0
      Volumes count:                           9
      Logical eraseblock size:                 258048 bytes, 252.0 KiB
      Total amount of logical eraseblocks:     2028 (523321344 bytes, 499.1 MiB)
      Amount of available logical eraseblocks: 1516 (391200768 bytes, 373.1 MiB)
      Maximum count of volumes                 128
      Count of bad physical eraseblocks:       0
      Count of reserved physical eraseblocks:  40
      Current maximum erase counter value:     5
      Minimum input/output unit size:          4096 bytes
      Character device major/minor:            247:0
      Present volumes:                         0, 1, 2, 3, 4, 5, 6, 7, 8
      
      Volume ID:   0 (on ubi0)
      Type:        static
      Alignment:   1
      Size:        66 LEBs (17031168 bytes, 16.2 MiB)
      Data bytes:  16777216 bytes (16.0 MiB)
      State:       OK
      Name:        mbr
      Character device major/minor: 247:1
      -----------------------------------
      Volume ID:   1 (on ubi0)
      Type:        dynamic
      Alignment:   1
      Size:        1 LEBs (258048 bytes, 252.0 KiB)
      State:       OK
      Name:        boot-resource
      Character device major/minor: 247:2
      -----------------------------------
      Volume ID:   2 (on ubi0)
      Type:        dynamic
      Alignment:   1
      Size:        1 LEBs (258048 bytes, 252.0 KiB)
      State:       OK
      Name:        env
      Character device major/minor: 247:3
      -----------------------------------
      Volume ID:   3 (on ubi0)
      Type:        dynamic
      Alignment:   1
      Size:        1 LEBs (258048 bytes, 252.0 KiB)
      State:       OK
      Name:        env-redund
      Character device major/minor: 247:4
      -----------------------------------
      Volume ID:   4 (on ubi0)
      Type:        dynamic
      Alignment:   1
      Size:        41 LEBs (10579968 bytes, 10.1 MiB)
      State:       OK
      Name:        boot
      Character device major/minor: 247:5
      -----------------------------------
      Volume ID:   5 (on ubi0)
      Type:        dynamic
      Alignment:   1
      Size:        97 LEBs (25030656 bytes, 23.9 MiB)
      State:       OK
      Name:        rootfs
      Character device major/minor: 247:6
      -----------------------------------
      Volume ID:   6 (on ubi0)
      Type:        dynamic
      Alignment:   1
      Size:        45 LEBs (11612160 bytes, 11.1 MiB)
      State:       OK
      Name:        recovery
      Character device major/minor: 247:7
      -----------------------------------
      Volume ID:   7 (on ubi0)
      Type:        dynamic
      Alignment:   1
      Size:        21 LEBs (5419008 bytes, 5.2 MiB)
      State:       OK
      Name:        rootfs_data
      Character device major/minor: 247:8
      -----------------------------------
      Volume ID:   8 (on ubi0)
      Type:        dynamic
      Alignment:   1
      Size:        195 LEBs (50319360 bytes, 48.0 MiB)
      State:       OK
      Name:        UDISK
      Character device major/minor: 247:9
      

      ubi可以识别出499.1M,但下面全部加起来都不到128M,其他的容量都去哪里了?

      1 条回复 最后回复 回复 引用 分享 0
      • 1 / 1
      • First post
        Last post

      Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

      行为准则 | 用户协议 | 隐私权政策