@dongjing120426 Ram空间不足
Maihuanyi 发布的帖子
-
D1s使用spinand挂载/mnt/UDISK的容量与flash差别很大
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,其他的容量都去哪里了?
-
回复: 采用PhoenixSuit烧录T113-s3 spi nand flash,烧录软件2G芯片识别为1G
@vctorspace vi lichee/linux-5.4/drivers/mtd/awnand/spinand/physic/id.c 添加一下内容
-
回复: 解决那些千奇百怪的 Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block 错误
@maihuanyi 在lichee/linux-5.4/drivers/staging/exfat/exfat_super.c的4027行添加延时,如下图所示
主要问题是exFAT初始化过快,需要等sd初始化完成,再初始化exFAT文件系统。 -
回复: 通过USB共享使D1s上的tina联网(RNDIS Gadget)
@whycan sys_config.fex里面没有修改cpu的频率
;---------------------------------------------------------------------------------- ;storage_type = boot medium, 0-nand, 1-sd, 2-emmc, 3-nor, 4-emmc3, 5-spinand -1(defualt)auto scan ;---------------------------------------------------------------------------------- [target] boot_clock = 1008 storage_type = 1
;***************************************************************************** ;sdram configuration ; ;***************************************************************************** [dram_para] dram_clk = 528 dram_type = 2 dram_zq = 0x07b7bf9 dram_odt_en = 0x00 dram_para1 = 0x000000d2 dram_para2 = 0x00000000 dram_mr0 = 0x00000E73 dram_mr1 = 0x02
难道是dram_clk、boot_clock???
我改了没有效果... -
回复: 通过USB共享使D1s上的tina联网(RNDIS Gadget)
@sdtee 使用虚拟网卡传输文件会死机,你有遇到过吗
root@TinaLinux:/# random: sshd: uninitialized urandom read (32 bytes read) random: sshd: uninitialized urandom read (32 bytes read) random: sftp-server: uninitialized urandom read (32 bytes read) random: sshd: uninitialized urandom read (32 bytes read) random: sshd: uninitialized urandom read (32 bytes read) ------------[ cut here ]------------ kernel BUG at mm/slub.c:3995! Kernel BUG [#1] Modules linked in: pwrdngpio(O) djibatgpio(O) gpioled(O) e34gpio(O) btgpio(O) gpiokey(O) beep(O) ch341 usbserial usb_storage CPU: 0 PID: 0 Comm: swapper Tainted: G O 5.4.61 #245 sepc: ffffffe0000a38b0 ra : ffffffe0000a3880 sp : ffffffe00056b9f0 gp : ffffffe0005c7f98 tp : ffffffe000570670 t0 : 6d99feea10b6aaa5 t1 : 2d4da631d6d0e31f t2 : 659139479badf51b s0 : ffffffe00056ba40 s1 : ffffffe003fc1dc0 a0 : ffffffe003fc1dc0 a1 : 0000000000000000 a2 : 0000000000000074 a3 : ffffffe002e882bc a4 : 0000000000000000 a5 : 0000000000000000 a6 : 4b74ffab150d1112 a7 : 7eb4787c647c9008 s2 : ffffffe0005a8728 s3 : 0000000000000000 s4 : ffffffe002e88042 s5 : ffffffe001b60590 s6 : 000000000000007a s7 : 0000000000000200 s8 : 0000000000000001 s9 : ffffffd004056004 s10: 000000000000007a s11: 000000000000007a t3 : e453c24597201865 t4 : 05bf9ed9991e8f30 t5 : 8b36fe4c753b25db t6 : ffffffe001b522bc sstatus: 0000000200000100 sbadaddr: 0000000000000000 scause: 0000000000000003 ---[ end trace 0e4c88a1db2c99aa ]--- Kernel panic - not syncing: Fatal exception in interrupt ---[ end Kernel panic - not syncing: Fatal exception in interrupt ]---
-
D1s使用rndis的网口传输SFTP文件,会死机
通过RNDIS虚拟网口登录ssh,ssh的操作都是正常的,但使用sftp传输文件时会死机
死机后的log如下:root@TinaLinux:/# random: sshd: uninitialized urandom read (32 bytes read) random: sshd: uninitialized urandom read (32 bytes read) random: sftp-server: uninitialized urandom read (32 bytes read) random: sshd: uninitialized urandom read (32 bytes read) random: sshd: uninitialized urandom read (32 bytes read) ------------[ cut here ]------------ kernel BUG at mm/slub.c:3995! Kernel BUG [#1] Modules linked in: pwrdngpio(O) djibatgpio(O) gpioled(O) e34gpio(O) btgpio(O) gpiokey(O) beep(O) ch341 usbserial usb_storage CPU: 0 PID: 0 Comm: swapper Tainted: G O 5.4.61 #245 sepc: ffffffe0000a38b0 ra : ffffffe0000a3880 sp : ffffffe00056b9f0 gp : ffffffe0005c7f98 tp : ffffffe000570670 t0 : 6d99feea10b6aaa5 t1 : 2d4da631d6d0e31f t2 : 659139479badf51b s0 : ffffffe00056ba40 s1 : ffffffe003fc1dc0 a0 : ffffffe003fc1dc0 a1 : 0000000000000000 a2 : 0000000000000074 a3 : ffffffe002e882bc a4 : 0000000000000000 a5 : 0000000000000000 a6 : 4b74ffab150d1112 a7 : 7eb4787c647c9008 s2 : ffffffe0005a8728 s3 : 0000000000000000 s4 : ffffffe002e88042 s5 : ffffffe001b60590 s6 : 000000000000007a s7 : 0000000000000200 s8 : 0000000000000001 s9 : ffffffd004056004 s10: 000000000000007a s11: 000000000000007a t3 : e453c24597201865 t4 : 05bf9ed9991e8f30 t5 : 8b36fe4c753b25db t6 : ffffffe001b522bc sstatus: 0000000200000100 sbadaddr: 0000000000000000 scause: 0000000000000003 ---[ end trace 0e4c88a1db2c99aa ]--- Kernel panic - not syncing: Fatal exception in interrupt ---[ end Kernel panic - not syncing: Fatal exception in interrupt ]---
有人遇到这样的问题吗,或者有什么解决的思路分享一下。
-
回复: 解决那些千奇百怪的 Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block 错误
@yuzukitsuru D1s关闭sdc1的设备树,出现下面的报错,怎么解决?
VFS: Cannot open root device "mmcblk0p5" or unknown-block(0,0): error -6 Please append a correct "root=" boot option; here are the available partitions: Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) CPU: 0 PID: 1 Comm: swapper Not tainted 5.4.61 #128 Call Trace: [<ffffffe000020164>] walk_stackframe+0x0/0x98 [<ffffffe00002031c>] show_stack+0x2a/0x34 [<ffffffe0002f05cc>] dump_stack+0x20/0x28 [<ffffffe000024724>] panic+0xec/0x272 [<ffffffe000000ef2>] mount_block_root+0x214/0x27a [<ffffffe000000fde>] mount_root+0x86/0x90 [<ffffffe000001130>] prepare_namespace+0x148/0x152 [<ffffffe000000b54>] kernel_init_freeable+0x166/0x198 [<ffffffe000300d30>] kernel_init+0x12/0xee [<ffffffe00001eed0>] ret_from_exception+0x0/0xc ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) ]---
-
回复: D1s关闭sdc1启动不了
@whycanservice
全部的loglevel=7打印的logU-Boot 2018.07-config-dirty (Jun 16 2023 - 10:30:39 +0800) Allwinner Technology [00.261]DRAM: 64 MiB [00.261]Relocation Offset is: 01f05000 [00.263]secure enable bit: 0 can't support chip type 24064 [00.263]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz MBus=300Mhz sunxi flash map init SPI ALL: ready [00.265]flash init start [00.265]workmode = 0,storage type = 1 [00.266][mmc]: mmc driver ver uboot2018:2021-12-20 13:35:00 [00.266][mmc]: get sdc_type fail and use default host:tm1. [00.268][mmc]: can't find node "mmc0",will add new node [00.268][mmc]: fdt err returned <no error> [00.269][mmc]: Using default timing para [00.269][mmc]: SUNXI SDMMC Controller Version:0x50310 [00.282][mmc]: card_caps:0x3000000a [00.282][mmc]: host_caps:0x3000003f [00.283]sunxi flash init ok [00.283]line:703 init_clocks [00.284]drv_disp_init request pwm success, pwm7:pwm7:0x2000c00. [00.294]drv_disp_init finish [00.300]Loading Environment from SUNXI_FLASH... OK [00.316]boot_gui_init:start [00.316]set disp.dev2_output_type fail. using defval=0 [00.703]set disp.fb0_rot_used fail. using defval=0 [00.703]set disp.fb0_rot_degree fail. using defval=0 [00.706]boot_gui_init:finish partno erro : can't find partition bootloader [00.708]bmp_name=bootlogo.bmp size 38454 [00.715]out of usb burn from boot: not need burn key [00.724]LCD open finish [00.738]Item0 (Map) magic is bad [00.739]the secure storage item0 copy0 magic is bad [00.761]Item0 (Map) magic is bad [00.761]the secure storage item0 copy1 magic is bad [00.761]Item0 (Map) magic is bad partno erro : can't find partition private root_partition is rootfs set root to /dev/mmcblk0p5 [00.764]update part info [00.765]update bootcmd [00.766]change working_fdt 0x42ac4da0 to 0x42aa4da0 disable nand error: FDT_ERR_BADPATH [00.768]The storage not support sample function No reserved memory region found in source FDT [00.788]update dts Hit any key to stop autoboot: 0 [01.993]no vendor_boot partition is found Android's image name: d1s-nezha_sd Detect comp none [02.002] Starting kernel ... [02.002][mmc]: MMC Device 2 not found [02.002][mmc]: mmc 2 not find, so not exit ** 1 printk messages dropped ** Zone ranges: DMA32 [mem 0x0000000040000000-0x0000000043ffffff] Normal empty Movable zone start for each node Early memory node ranges node 0: [mem 0x0000000040000000-0x0000000043ffffff] Initmem setup node 0 [mem 0x0000000040000000-0x0000000043ffffff] On node 0 totalpages: 16384 DMA32 zone: 224 pages used for memmap DMA32 zone: 0 pages reserved DMA32 zone: 16384 pages, LIFO batch:3 elf_hwcap is 0x20112d pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768 pcpu-alloc: [0] 0 Built 1 zonelists, mobility grouping on. Total pages: 16160 Kernel command line: earlyprintk=sunxi-uart,0x02500c00 clk_ignore_unused initcall_debug=0 console=ttyS3,1500000 loglevel=8 root=/dev/mmcblk0p5 init=/pseudo_init partitions=boot-resource@mmcblk0p1:env@mmcblk0p2:env-redund@mmcblk0p3:boot@mmcblk0p4:rootfs@mmcblk0p5:recovery@mmcblk0p6:rootfs_data@mmcblk0p7:UDISK@mmcblk0p8 cma=0M snum= mac_addr= wifi_mac= bt_mac= specialstr= gpt=1 androidboot.mode=normal androidboot.hardware=sun20iw1p1 boot_type=1 androidboot.boot_type=1 gpt=1 uboot_message=2018.07-config-dirty(06/16/2023-10:30:39) mbr_offset=1556480 disp_reserve=3686400,0x0000000042b54000 androidboot.dramsize=64 Dentry cache hash table entries: 8192 (order: 4, 65536 bytes, linear) Inode-cache hash table entries: 4096 (order: 3, 32768 bytes, linear) Sorting __ex_table... mem auto-init: stack:off, heap alloc:off, heap free:off Memory: 55728K/65536K available (2902K kernel code, 327K rwdata, 1132K rodata, 116K init, 176K bss, 9808K reserved, 0K cma-reserved) SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 rcu: Preemptible hierarchical RCU implementation. Tasks RCU enabled. rcu: RCU calculated value of scheduler-enlistment delay is 100 jiffies. NR_IRQS: 0, nr_irqs: 0, preallocated irqs: 0 plic: mapped 200 interrupts with 1 handlers for 2 contexts. riscv_timer_init_dt: Registering clocksource cpuid [0] hartid [0] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns sched_clock: 64 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns riscv_timer_clockevent depends on broadcast, but no broadcast function available clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=24000) pid_max: default: 32768 minimum: 301 Mount-cache hash table entries: 512 (order: 0, 4096 bytes, linear) Mountpoint-cache hash table entries: 512 (order: 0, 4096 bytes, linear) ASID allocator initialised with 65536 entries rcu: Hierarchical SRCU implementation. devtmpfs: initialized random: get_random_u32 called from bucket_table_alloc.isra.27+0x102/0x124 with crng_init=0 clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns futex hash table entries: 256 (order: 0, 6144 bytes, linear) pinctrl core: initialized pinctrl subsystem DMA: preallocated 256 KiB pool for atomic allocations cpuidle: using governor menu rtc_ccu: sunxi ccu init OK clock: sunxi ccu init OK clock: sunxi ccu init OK sun6i-dma 3002000.dma-controller: sunxi dma probed iommu: Default domain type: Translated sunxi iommu: irq = 4 SCSI subsystem initialized usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb pwm module init! g2d 5410000.g2d: Adding to iommu group 0 G2D: rcq version initialized.major:252 clocksource: Switched to clocksource riscv_clocksource sun8iw20-pinctrl 2000000.pinctrl: initialized sunXi PIO driver sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pc not found, using dummy regulator spi spi0: spi0 supply spi not found, using dummy regulator sunxi_spi_resource_get()2438 - [spi0] SPI MASTER MODE sunxi_spi_resource_get()2476 - Failed to get sample mode sunxi_spi_resource_get()2481 - Failed to get sample delay sunxi_spi_resource_get()2485 - sample_mode:-1431633921 sample_delay:-1431633921 sunxi_spi_clk_init()2527 - [spi0] mclk 100000000 sunxi_spi_probe()2978 - [spi0]: driver probe succeed, base ffffffd004058000, irq 31 workingset: timestamp_bits=62 max_order=14 bucket_order=0 squashfs: version 4.0 (2009/01/31) Phillip Lougher ntfs: driver 2.1.32 [Flags: R/W]. io scheduler mq-deadline registered io scheduler kyber registered [DISP]disp_module_init disp 5000000.disp: Adding to iommu group 0 [DISP] disp_init,line:2387: smooth display screen:0 type:1 mode:4 display_fb_request,fb_id:0 [DISP]disp_module_init finish sunxi_sid_init()783 - insmod ok pwm-regulator: supplied by regulator-dummy disp_al_manager_apply ouput_type:1 [DISP] lcd_clk_config,line:774: disp 0, clk: pll(378000000),clk(378000000),dclk(63000000) dsi_rate(63000000) clk real:pll(372000000),clk(372000000),dclk(93000000) dsi_rate(150000000) sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pd not found, using dummy regulator sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pg not found, using dummy regulator uart uart1: uart1 supply uart not found, using dummy regulator uart1: ttyS1 at MMIO 0x2500400 (irq = 19, base_baud = 1500000) is a SUNXI sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pe not found, using dummy regulator uart uart2: uart2 supply uart not found, using dummy regulator uart2: ttyS2 at MMIO 0x2500800 (irq = 20, base_baud = 1500000) is a SUNXI sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pb not found, using dummy regulator uart uart3: uart3 supply uart not found, using dummy regulator uart3: ttyS3 at MMIO 0x2500c00 (irq = 21, base_baud = 1500000) is a SUNXI sw_console_setup()1807 - console setup baud 1500000 parity n bits 8, flow n printk: console [ttyS3] enabled uart uart4: uart4 supply uart not found, using dummy regulator uart4: ttyS4 at MMIO 0x2501000 (irq = 22, base_baud = 1500000) is a SUNXI uart uart5: uart5 supply uart not found, using dummy regulator uart5: ttyS5 at MMIO 0x2501400 (irq = 23, base_baud = 1500000) is a SUNXI misc dump reg init ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver sunxi-ehci: EHCI SUNXI driver get ehci1-controller wakeup-source is fail. sunxi ehci1-controller don't init wakeup source [sunxi-ehci1]: probe, pdev->name: 4200000.ehci1-controller, sunxi_ehci: 0xffffffe000487ed0, 0x:ffffffd004075000, irq_no:31 sunxi-ehci 4200000.ehci1-controller: 4200000.ehci1-controller supply drvvbus not found, using dummy regulator sunxi-ehci 4200000.ehci1-controller: 4200000.ehci1-controller supply hci not found, using dummy regulator sunxi-ehci 4200000.ehci1-controller: EHCI Host Controller sunxi-ehci 4200000.ehci1-controller: new USB bus registered, assigned bus number 1 sunxi-ehci 4200000.ehci1-controller: irq 49, io mem 0x04200000 Freeing logo buffer memory: 3600K sunxi-ehci 4200000.ehci1-controller: USB 2.0 started, EHCI 1.00 sunxi-ehci 4200000.ehci1-controller: ehci_irq: highspeed device connect hub 1-0:1.0: USB hub found hub 1-0:1.0: 1 port detected ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver sunxi-ohci: OHCI SUNXI driver get ohci1-controller wakeup-source is fail. sunxi ohci1-controller don't init wakeup source [sunxi-ohci1]: probe, pdev->name: 4200400.ohci1-controller, sunxi_ohci: 0xffffffe000488298 sunxi-ohci 4200400.ohci1-controller: 4200400.ohci1-controller supply drvvbus not found, using dummy regulator sunxi-ohci 4200400.ohci1-controller: 4200400.ohci1-controller supply hci not found, using dummy regulator sunxi-ohci 4200400.ohci1-controller: OHCI Host Controller sunxi-ohci 4200400.ohci1-controller: new USB bus registered, assigned bus number 2 sunxi-ohci 4200400.ohci1-controller: irq 50, io mem 0x04200400 hub 2-0:1.0: USB hub found hub 2-0:1.0: 1 port detected sunxi-rtc 7090000.rtc: registered as rtc0 sunxi-rtc 7090000.rtc: setting system clock to 1970-01-01T00:00:29 UTC (29) sunxi-rtc 7090000.rtc: sunxi rtc probed i2c /dev entries driver IR NEC protocol handler initialized sunxi cedar version 1.1 sunxi-cedar 1c0e000.ve: Adding to iommu group 0 VE: install start!!! VE: cedar-ve the get irq is 6 VE: install end!!! VE: sunxi_cedar_probe ashmem: initialized exFAT: Version 1.3.0 get ehci0-controller wakeup-source is fail. sunxi ehci0-controller don't init wakeup source [sunxi-ehci0]: probe, pdev->name: 4101000.ehci0-controller, sunxi_ehci: 0xffffffe000487740, 0x:ffffffd0040d7000, irq_no:2e [sunxi-ehci0]: Not init ehci0 get ohci0-controller wakeup-source is fail. sunxi ohci0-controller don't init wakeup source [sunxi-ohci0]: probe, pdev->name: 4101400.ohci0-controller, sunxi_ohci: 0xffffffe000487b08 [sunxi-ohci0]: Not init ohci0 otg manager soc@3000000:usbc0@0: soc@3000000:usbc0@0 supply usbc not found, using dummy regulator clk: Not disabling unused clocks alloc_fd: slot 0 not NULL! VFS: Cannot open root device "mmcblk0p5" or unknown-block(0,0): error -6 Please append a correct "root=" boot option; here are the available partitions: Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) CPU: 0 PID: 1 Comm: swapper Not tainted 5.4.61 #133 Call Trace: [<ffffffe00001f164>] walk_stackframe+0x0/0x98 [<ffffffe00001f31c>] show_stack+0x2a/0x34 [<ffffffe0002dea0a>] dump_stack+0x20/0x28 [<ffffffe000023724>] panic+0xec/0x272 [<ffffffe000000ef2>] mount_block_root+0x214/0x27a [<ffffffe000000fde>] mount_root+0x86/0x90 [<ffffffe000001130>] prepare_namespace+0x148/0x152 [<ffffffe000000b54>] kernel_init_freeable+0x166/0x198 [<ffffffe0002ef170>] kernel_init+0x12/0xee [<ffffffe00001ded0>] ret_from_exception+0x0/0xc ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) ]---
没有看到有sdc的设备号,我用的是SD卡启动
-
D1s关闭sdc1启动不了
由于板子没有用到sdc1的管脚作为引脚使用,把sdc1的设备树关闭,发现启动不了,卡在挂载mmcblk0p5上,
&sdc1 { bus-width = <4>; no-mmc; no-sd; cap-sd-highspeed; /*sd-uhs-sdr12*/ /*sd-uhs-sdr25;*/ /*sd-uhs-sdr50;*/ /*sd-uhs-ddr50;*/ /*sd-uhs-sdr104;*/ /*sunxi-power-save-mode;*/ /*sunxi-dis-signal-vol-sw;*/ cap-sdio-irq; keep-power-in-suspend; ignore-pm-notify; max-frequency = <150000000>; ctl-spec-caps = <0x8>; status = "disable"; };
启动的log如下
VE: sunxi_cedar_probe ashmem: initialized exFAT: Version 1.3.0 get ehci0-controller wakeup-source is fail. sunxi ehci0-controller don't init wakeup source [sunxi-ehci0]: probe, pdev->name: 4101000.ehci0-controller, sunxi_ehci: 0xffffffe000487740, 0x:ffffffd0040d7000, irq_no:2e [sunxi-ehci0]: Not init ehci0 get ohci0-controller wakeup-source is fail. sunxi ohci0-controller don't init wakeup source [sunxi-ohci0]: probe, pdev->name: 4101400.ohci0-controller, sunxi_ohci: 0xffffffe000487b08 [sunxi-ohci0]: Not init ohci0 otg manager soc@3000000:usbc0@0: soc@3000000:usbc0@0 supply usbc not found, using dummy regulator clk: Not disabling unused clocks alloc_fd: slot 0 not NULL! VFS: Cannot open root device "mmcblk0p5" or unknown-block(0,0): error -6 Please append a correct "root=" boot option; here are the available partitions: Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) CPU: 0 PID: 1 Comm: swapper Not tainted 5.4.61 #128 Call Trace: [<ffffffe00001f164>] walk_stackframe+0x0/0x98 [<ffffffe00001f31c>] show_stack+0x2a/0x34 [<ffffffe0002dea16>] dump_stack+0x20/0x28 [<ffffffe000023724>] panic+0xec/0x272 [<ffffffe000000ef2>] mount_block_root+0x214/0x27a [<ffffffe000000fde>] mount_root+0x86/0x90 [<ffffffe000001130>] prepare_namespace+0x148/0x152 [<ffffffe000000b54>] kernel_init_freeable+0x166/0x198 [<ffffffe0002ef17c>] kernel_init+0x12/0xee [<ffffffe00001ded0>] ret_from_exception+0x0/0xc ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) ]---
有人遇到过这样的问题吗?要怎么解决?
-
回复: 在D1的tina上整上overlayfs
@whycan 在 在D1的tina上整上overlayfs 中说:
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libext2fs.so.2* $(1)/usr/lib/
-
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libcom_err.so.2* $(1)/usr/lib/
我按照你的写法,编译不过,我在下面复制了 ,就可以通过编译,看不出来是什么问题。
-
-
D1s mipi显示屏有问题
使用最新的tian V2.1源码
修改了st7701s.c的代码
struct LCM_setting_table { u8 cmd; u32 count; u8 para_list[128]; };
根据商家给的参数改了static struct LCM_setting_table lcm_initialization_setting[]
设备树如下:
lcd_driver_name = "st7701s"; lcd_backlight = <100>; lcd_if = <4>; lcd_x = <720>; lcd_y = <1280>; lcd_width = <62>; lcd_height = <110>; lcd_dclk_freq = <100>; lcd_pwm_used = <1>; lcd_pwm_ch = <7>; lcd_pwm_freq = <1000>; lcd_pwm_pol = <0>; lcd_pwm_max_limit = <255>; lcd_hbp = <40>; lcd_ht = <800>; lcd_hspw = <10>; lcd_vbp = <11>; lcd_vt = <1307>; lcd_vspw = <3>; lcd_dsi_if = <0>; lcd_dsi_lane = <4>; lcd_lvds_if = <0>; lcd_lvds_colordepth = <0>; lcd_lvds_mode = <0>; lcd_frm = <0>; lcd_hv_clk_phase = <0>; lcd_hv_sync_polarity= <0>; lcd_io_phase = <0x0000>; lcd_gamma_en = <0>; lcd_bright_curve_en = <0>; lcd_cmap_en = <0>; lcd_fsync_en = <0>; lcd_fsync_act_time = <1000>; lcd_fsync_dis_time = <1000>; lcd_fsync_pol = <0>; deu_mode = <0>; lcdgamma4iep = <22>; smart_color = <90>;
显示的效果有竖的花纹
-
回复: Tina编译出现md5sum错误
@whycan 装了还是报错,根据官方来编译的,使用ubantu20
a-d1-h/lichee/brandy-2.0/spl/nboot/libsun20iw1p1_spinor.o
d1-h_nezha d1-h d1-h-nezha
build_boot platform:sun20iw1p1 o_option:uboot
Prepare toolchain ...
build for sun20iw1p1_defconfig ...
cat: .tmp_config_from_defconfig.o.md5sum: No such file or directory
md5sum: .config: No such file or directory
CLEAN scripts/basic
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
YACC scripts/kconfig/zconf.tab.c
/bin/sh: 1: bison: not found
make[1]: *** [scripts/Makefile.lib:228: scripts/kconfig/zconf.tab.c] Error 127
make: *** [Makefile:549: sun20iw1p1_defconfig] Error 2
muboot stop for build error in brandy, Please check!make uboot failed!
-
Tina编译出现md5sum错误
make[1]: [Makefile:111: spinor] Error 1 (ignored)
mboot0 success!
d1-h_nezha d1-h d1-h-nezha
build_boot platform:sun20iw1p1 o_option:uboot
Prepare toolchain ...
build for sun20iw1p1_defconfig ...
cat: .tmp_config_from_defconfig.o.md5sum: No such file or directory
md5sum: .config: No such file or directory
HOSTCC scripts/basic/fixdep
/bin/sh: 1: cc: not found
make[1]: *** [scripts/Makefile.host:97: scripts/basic/fixdep] Error 127
make: *** [Makefile:468: scripts_basic] Error 2
muboot stop for build error in brandy, Please check! -
D1-H编译出现asm/types.h找不到
D1编译设备出现./include/uapi/linux/types.h:5:10: fatal error: asm/types.h: No such file or directory
5 | #include <asm/types.h>
怎么解决?