通过Buildroot创建东山派D1s的镜像后,通过网络接口写入文件出现死机情况
-
根据网上的buildroot创建了一个D1s的镜像,启动和运行都是比较正常的,由于东山派D1s没有网络接口,所以我利用RNDIS虚拟了一个网络,SSH可以正常登录,执行命令和查看修改系统的信息没有任何问题。在通过SFTP方式上传是出现了死机的情况,于是采用nfs链接windows的nfs服务器,可以正确链接,向windows的nfs服务器创建文件没有任何问题,但是向linux系统拷贝文件同样会出现死机的情况。
下面是系统打印的日志,请各位看看是什么原因导致的。
[53]HELLO! BOOT0 is starting! [56]BOOT0 commit : 603490b [58]set pll start [60]periph0 has been enabled [63]set pll end [65][pmu]: bus read error [67]board init ok [69]ZQ value = 0x2e*********** [72]get_pmu_exist() = -1 [74]ddr_efuse_type: 0xa [77][AUTO DEBUG] single rank and full DQ! [81]ddr_efuse_type: 0xa [83][AUTO DEBUG] rank 0 row = 13 [86][AUTO DEBUG] rank 0 bank = 4 [90][AUTO DEBUG] rank 0 page size = 2 KB [93]DRAM BOOT DRIVE INFO: V0.24 [96]DRAM CLK = 528 MHz [98]DRAM Type = 2 (2:DDR2,3:DDR3) [102]DRAMC read ODT off. [104]DRAM ODT off. [106]ddr_efuse_type: 0xa [109]DRAM SIZE =64 M [112]DRAM simple test OK. [115]dram size =64 [116]card no is 0 [118]sdcard 0 line count 4 [121][mmc]: mmc driver ver 2021-04-2 16:45 [130][mmc]: Wrong media type 0x0 [133][mmc]: ***Try SD card 0*** [161][mmc]: HSSDR52/SDR25 4 bit [164][mmc]: 50000000 Hz [166][mmc]: 1886 MB [168][mmc]: ***SD/MMC 0 init OK!!!*** [231]Loading boot-pkg Succeed(index=0). [234]Entry_name = opensbi [237]Entry_name = u-boot [241]Entry_name = dtb [244]mmc not para [245]Jump to second Boot. OpenSBI v0.6 ____ _____ ____ _____ / __ \ / ____| _ \_ _| | | | |_ __ ___ _ __ | (___ | |_) || | | | | | '_ \ / _ \ '_ \ \___ \| _ < | | | |__| | |_) | __/ | | |____) | |_) || |_ \____/| .__/ \___|_| |_|_____/|____/_____| | | |_| Platform Name : Allwinner SUN20i - T-HEAD Xuantie Platform Platform HART Features : RV64ACDFIMSUVX Platform Max HARTs : 1 Current Hart : 0 Firmware Base : 0x40000400 Firmware Size : 75 KB Runtime SBI Version : 0.2 MIDELEG : 0x0000000000000222 MEDELEG : 0x000000000000b1ff PMP0 : 0x0000000040000000-0x000000004001ffff (A) PMP1 : 0x0000000040000000-0x000000007fffffff (A,R,W,X) PMP2 : 0x0000000080000000-0x00000000bfffffff (A,R,W,X) PMP3 : 0x0000000000020000-0x0000000000027fff (A,▒ U-Boot 2018.05 (Jun 06 2023 - 14:43:23 +0800) Allwinner Technology [00.329]DRAM: 64 MiB [00.331]Relocation Offset is: 01ee9000 [00.336]secure enable bit: 0 [00.339]CPU=720 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz MBus=300Mhz [00.345]flash init start [00.347]workmode = 0,storage type = 1 [00.351][mmc]: mmc driver ver uboot2018:2021-11-19 15:38:00 [00.356][mmc]: get sdc_type fail and use default host:tm1. [00.363][mmc]: can't find node "mmc0",will add new node [00.368][mmc]: fdt err returned <no error> [00.372][mmc]: Using default timing para [00.375][mmc]: SUNXI SDMMC Controller Version:0x50310 [00.411][mmc]: card_caps:0x3000000a [00.414][mmc]: host_caps:0x3000003f [00.422]sunxi flash init ok [00.424]line:703 init_clocks [00.427]drv_disp_init request pwm success, pwm7:pwm7:0x2000c00. [00.448]drv_disp_init finish [00.451]boot_gui_init:start [00.454]set disp.dev2_output_type fail. using defval=0 [00.461]boot_gui_init:finish partno erro : can't find partition bootloader partno erro : can't find partition boot-resource [00.530]Get bootloader and boot-resource partition number fail! [00.564]Loading Environment from SUNXI_FLASH... OK [00.587]out of usb burn from boot: not need burn key root_partition is rootfs set root to /dev/mmcblk0p5 [00.602]update part info [00.608]update bootcmd [00.617]change working_fdt 0x42aa8da0 to 0x42a88da0 disable nand error: FDT_ERR_BADPATH No reserved memory region found in source FDT FDT ERROR:fdt_get_all_pin:get property handle pinctrl-0 error:FDT_ERR_INTERNAL sunxi_pwm_pin_set_state, fdt_set_all_pin, ret=-1 [00.653]LCD open finish [00.667]update dts Hit any key to stop autoboot: 0 card0 has inited curr_device:0 Device: SUNXI SD/MMC Manufacturer ID: 3 OEM: 5344 Name: SU02G Bus Speed: 50000000 Mode : SD High Speed (50MHz) Rd Block Len: 512 SD version 3.0 High Capacity: No Capacity: 1.8 GiB Bus Width: 4-bit Erase Group Size: 512 Bytes Partition Map for MMC device 0 -- Partition Type: EFI Part Start LBA End LBA Name Attributes Type GUID Partition GUID 1 0x00008820 0x0000891f "env" attrs: 0x0000000000000000 type: 0fc63daf-8483-4772-8e79-3d69d8477de4 guid: 4bc1c54f-615a-4e61-b876-285795eddced 2 0x00008920 0x00008a1f "env-redund" attrs: 0x0000000000000000 type: 0fc63daf-8483-4772-8e79-3d69d8477de4 guid: 500cb3e6-be80-4c8e-8180-3a66fc6db8b9 3 0x00008a20 0x00018a1f "boot" attrs: 0x0000000000000004 type: 0fc63daf-8483-4772-8e79-3d69d8477de4 guid: bd535aa2-0c9e-4d1d-9ceb-2f181e0f3cd8 4 0x00018a20 0x0001ca1f "data" attrs: 0x0000000000000000 type: 0fc63daf-8483-4772-8e79-3d69d8477de4 guid: dda40b61-ba8e-40b7-b569-38d88ea31c2a 5 0x0001ca20 0x0009ca1f "rootfs" attrs: 0x0000000000000000 type: 0fc63daf-8483-4772-8e79-3d69d8477de4 guid: 4dcc9a9e-1b69-4513-8edc-561a33b9507b 7157760 bytes read in 375 ms (18.2 MiB/s) [03.176]no vendor_boot partition is found Android's image name: sun20i [03.191] Starting kernel ... [03.194][mmc]: MMC Device 2 not found [03.197][mmc]: mmc 2 not find, so not exit ** 13 printk messages dropped ** [ 0.000000] DMA32 zone: 15872 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: 15655 [ 0.000000] Kernel command line: earlyprintk=sunxi-uart,0x02500000 clk_ignore_unused initcall_debug=0 console=ttyS0,115200 loglevel=8 root=/dev/mmcblk0p5 init=/sbin/init partitions=ext4 cma=8M gpt=1 androidboot.hardware=sun20iw1p1 boot_type=1 androidboot.boot_type=1 gpt=1 uboot_message=2018.05(06/06/2023-14:43:23) mbr_offset=1556480 disp_reserve=522240,0x0000000042b15000 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: 46388K/63488K available (4808K kernel code, 445K rwdata, 1292K rodata, 164K init, 267K bss, 8908K reserved, 8192K 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.000009] sched_clock: 64 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns [ 0.000030] riscv_timer_clockevent depends on broadcast, but no broadcast function available [ 0.000440] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns [ 0.001337] Console: colour dummy device 80x25 [ 0.001389] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000) [ 0.001409] pid_max: default: 32768 minimum: 301 [ 0.001572] LSM: Security Framework initializing [ 0.001624] SELinux: Initializing. [ 0.001813] Mount-cache hash table entries: 512 (order: 0, 4096 bytes, linear) [ 0.001835] Mountpoint-cache hash table entries: 512 (order: 0, 4096 bytes, linear) [ 0.004265] ASID allocator initialised with 65536 entries [ 0.004477] rcu: Hierarchical SRCU implementation. [ 0.005330] devtmpfs: initialized [ 0.026890] random: get_random_u32 called from 0xffffffe0002619ca with crng_init=0 [ 0.028002] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.028039] futex hash table entries: 256 (order: 0, 6144 bytes, linear) [ 0.028621] pinctrl core: initialized pinctrl subsystem [ 0.030497] NET: Registered protocol family 16 [ 0.032941] DMA: preallocated 256 KiB pool for atomic allocations [ 0.032989] audit: initializing netlink subsys (disabled) [ 0.034157] audit: type=2000 audit(0.030:1): state=initialized audit_enabled=0 res=1 [ 0.034189] cpuidle: using governor menu [ 0.092602] rtc_ccu: sunxi ccu init OK [ 0.102573] clock: sunxi ccu init OK [ 0.103808] clock: sunxi ccu init OK [ 0.149479] iommu: Default domain type: Translated [ 0.149708] sunxi iommu: irq = 4 [ 0.151399] SCSI subsystem initialized [ 0.153758] pwm module init! [ 0.156151] clocksource: Switched to clocksource riscv_clocksource [ 0.174454] sun8iw20-pinctrl 2000000.pinctrl: initialized sunXi PIO driver [ 0.199293] sunxi_usb_udc 4100000.udc-controller: 4100000.udc-controller supply udc not found, using dummy regulator [ 0.200350] NET: Registered protocol family 2 [ 0.201470] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes, linear) [ 0.201529] TCP established hash table entries: 512 (order: 0, 4096 bytes, linear) [ 0.201554] TCP bind hash table entries: 512 (order: 0, 4096 bytes, linear) [ 0.201574] TCP: Hash tables configured (established 512 bind 512) [ 0.201772] UDP hash table entries: 256 (order: 1, 8192 bytes, linear) [ 0.201826] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear) [ 0.202106] NET: Registered protocol family 1 [ 0.203052] RPC: Registered named UNIX socket transport module. [ 0.203068] RPC: Registered udp transport module. [ 0.203076] RPC: Registered tcp transport module. [ 0.203083] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.203769] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pc not found, using dummy regulator [ 0.204558] spi spi0: spi0 supply spi not found, using dummy regulator [ 0.204900] sunxi_spi_resource_get()2151 - [spi0] SPI MASTER MODE [ 0.204983] sunxi_spi_resource_get()2189 - Failed to get sample mode [ 0.204997] sunxi_spi_resource_get()2194 - Failed to get sample delay [ 0.205008] sunxi_spi_resource_get()2198 - sample_mode:-1431633921 sample_delay:-1431633921 [ 0.205091] sunxi_spi_clk_init()2240 - [spi0] mclk 100000000 [ 0.206115] sunxi_spi_probe()2653 - [spi0]: driver probe succeed, base ffffffd00405a000, irq 31 [ 0.209015] workingset: timestamp_bits=62 max_order=14 bucket_order=0 [ 0.220136] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 0.221717] NFS: Registering the id_resolver key type [ 0.221786] Key type id_resolver registered [ 0.221797] Key type id_legacy registered [ 0.221825] nfs4filelayout_init: NFSv4 File Layout Driver Registering... [ 0.221836] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering... [ 0.221845] Installing knfsd (copyright (C) 1996 okir@monad.swb.de). [ 0.223431] ntfs: driver 2.1.32 [Flags: R/W]. [ 0.252354] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252) [ 0.252372] io scheduler mq-deadline registered [ 0.252383] io scheduler kyber registered [ 0.253838] [DISP]disp_module_init [ 0.254716] disp 5000000.disp: Adding to iommu group 0 [ 0.255678] [DISP] disp_init,line:2386: [ 0.255686] smooth display screen:0 type:1 mode:4 [ 0.304151] display_fb_request,fb_id:0 [ 0.312032] disp_al_manager_apply ouput_type:1 [ 0.312245] [DISP] lcd_clk_config,line:744: [ 0.312262] disp 0, clk: pll(144000000),clk(144000000),dclk(24000000) dsi_rate(144000000) [ 0.312262] clk real:pll(288000000),clk(288000000),dclk(24000000) dsi_rate(0) [ 0.313992] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pd not found, using dummy regulator [ 0.573128] Console: switching to colour frame buffer device 60x34 [ 0.595688] [DISP]disp_module_init finish [ 0.596841] sunxi_sid_init()551 - insmod ok [ 0.597581] pwm-regulator: supplied by regulator-dummy [ 0.600021] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pe not found, using dummy regulator [ 0.600595] uart uart0: get regulator failed [ 0.600634] uart uart0: uart0 supply uart not found, using dummy regulator [ 0.601160] uart0: ttyS0 at MMIO 0x2500000 (irq = 18, base_baud = 1500000) is a SUNXI [ 0.601196] sw_console_setup()1808 - console setup baud 115200 parity n bits 8, flow n [ 0.729826] free logo buffer src_phy_addr=0x42b15000 fb_height=272 src_stride=1920 [ 0.730413] Freeing logo buffer memory: 512K [ 1.342486] printk: console [ttyS0] enabled [ 1.348720] misc dump reg init [ 1.354109] sunxi-spinand: AW SPINand MTD Layer Version: 2.0 20201228 [ 1.361395] sunxi-spinand-phy: AW SPINand Phy Layer Version: 1.10 20200306 [ 1.377323] random: fast init done [ 1.877371] random: crng init done [ 2.366319] sunxi-spinand-phy: read id failed : -110 [ 2.371943] spi-nand: probe of spi0.0 failed with error -110 [ 2.378885] libphy: Fixed MDIO Bus: probed [ 2.383776] using random self ethernet address [ 2.388865] using random host ethernet address [ 2.394683] usb0: HOST MAC de:32:0e:9f:12:b4 [ 2.399684] usb0: MAC 3a:b5:56:4b:1d:f6 [ 2.404027] using random self ethernet address [ 2.409037] using random host ethernet address [ 2.414159] g_ether gadget: Ethernet Gadget, version: Memorial Day 2008 [ 2.421654] g_ether gadget: g_ether ready [ 2.428474] sunxi-rtc 7090000.rtc: registered as rtc0 [ 2.434246] sunxi-rtc 7090000.rtc: setting system clock to 1970-01-01T00:15:45 UTC (945) [ 2.443532] sunxi-rtc 7090000.rtc: sunxi rtc probed [ 2.449641] i2c /dev entries driver [ 2.453605] IR NEC protocol handler initialized [ 2.462334] sunxi-mmc 4020000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.21 2021-11-18 10:02) [ 2.472441] sunxi-mmc 4020000.sdmmc: ***ctl-spec-caps*** 8 [ 2.478708] sunxi-mmc 4020000.sdmmc: No vmmc regulator found [ 2.485073] sunxi-mmc 4020000.sdmmc: No vqmmc regulator found [ 2.491520] sunxi-mmc 4020000.sdmmc: No vdmmc regulator found [ 2.497974] sunxi-mmc 4020000.sdmmc: No vd33sw regulator found [ 2.504493] sunxi-mmc 4020000.sdmmc: No vd18sw regulator found [ 2.511070] sunxi-mmc 4020000.sdmmc: No vq33sw regulator found [ 2.517620] sunxi-mmc 4020000.sdmmc: No vq18sw regulator found [ 2.525363] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B [ 2.536566] sunxi-mmc 4020000.sdmmc: no vqmmc,Check if there is regulator [ 2.556750] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 2.581061] sunxi-mmc 4020000.sdmmc: detmode:gpio polling [ 2.587191] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 2.599877] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pg not found, using dummy regulator [ 2.611116] sunxi_set_cur_vol_work()397 WARN: get power supply failed [ 2.618856] sunxi-mmc 4021000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.21 2021-11-18 10:02) [ 2.628700] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 2.640668] sunxi-mmc 4021000.sdmmc: ***ctl-spec-caps*** 8 [ 2.647008] sunxi-mmc 4021000.sdmmc: No vmmc regulator found [ 2.653384] sunxi-mmc 4021000.sdmmc: No vqmmc regulator found [ 2.660185] sunxi-mmc 4021000.sdmmc: No vdmmc regulator found [ 2.666758] sunxi-mmc 4021000.sdmmc: No vd33sw regulator found [ 2.673405] sunxi-mmc 4021000.sdmmc: No vd18sw regulator found [ 2.680040] sunxi-mmc 4021000.sdmmc: No vq33sw regulator found [ 2.686649] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 2.698318] sunxi-mmc 4021000.sdmmc: No vq18sw regulator found [ 2.704871] sunxi-mmc 4021000.sdmmc: Cann't get pin bias hs pinstate,check if needed [ 2.714814] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B [ 2.726079] sunxi-mmc 4021000.sdmmc: no vqmmc,Check if there is regulator [ 2.735048] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 2.746731] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 2.771161] sunxi-mmc 4021000.sdmmc: detmode:manually by software [ 2.778904] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 52, RTO !! [ 2.786484] ashmem: initialized [ 2.790034] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 52, RTO !! [ 2.796966] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 2.808789] exFAT: Version 1.3.0 [ 2.812421] g_ether gadget: high-speed config #2: RNDIS [ 2.821746] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 2.836038] NET: Registered protocol family 10 [ 2.843370] Segment Routing with IPv6 [ 2.847709] mmc0: host does not support reading read-only switch, assuming write-enable [ 2.857253] NET: Registered protocol family 17 [ 2.862293] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 5, RTO !! [ 2.869512] Key type dns_resolver registered [ 2.874380] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 5, RTO !! [ 2.881288] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B [ 2.893735] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 5, RTO !! [ 2.900739] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B [ 2.912440] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 5, RTO !! [ 2.919382] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 0Hz bm PP pm OFF vdd 0 width 1 timing LEGACY(SDR12) dt B [ 2.956476] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 4 timing SD-HS(SDR25) dt B [ 2.981654] mmc0: new high speed SD card at address e624 [ 2.989522] sunxi-i2c sunxi-i2c2: sunxi-i2c2 supply twi not found, using dummy regulator [ 2.999742] mmcblk0: mmc0:e624 SU02G 1.84 GiB [ 3.016137] sunxi-i2c sunxi-i2c2: probe success [ 3.022617] sunxi-i2c sunxi-i2c3: sunxi-i2c3 supply twi not found, using dummy regulator [ 3.044217] GPT:Primary header thinks Alt. header is not at the end of the disk. [ 3.052635] sunxi-i2c sunxi-i2c3: probe success [ 3.060905] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pb not found, using dummy regulator [ 3.071944] GPT:641607 != 3862527 [ 3.075655] GPT:Alternate GPT header not at the end of the disk. [ 3.082411] GPT:641607 != 3862527 [ 3.088650] GPT: Use GNU Parted to correct GPT errors. [ 3.094537] mmcblk0: p1 p2 p3 p4 p5 [ 3.100639] OF: fdt: not creating '/sys/firmware/fdt': CRC check failed [ 3.108186] clk: Not disabling unused clocks [ 3.112992] alloc_fd: slot 0 not NULL! [ 3.124331] EXT4-fs (mmcblk0p5): INFO: recovery required on readonly filesystem [ 3.132649] EXT4-fs (mmcblk0p5): write access will be enabled during recovery [ 3.398100] EXT4-fs (mmcblk0p5): recovery complete [ 3.407612] EXT4-fs (mmcblk0p5): mounted filesystem with ordered data mode. Opts: (null) [ 3.416816] VFS: Mounted root (ext4 filesystem) readonly on device 179:5. [ 3.427057] devtmpfs: mounted [ 3.430695] Freeing unused kernel memory: 164K [ 3.435666] This architecture does not have kernel memory protection. [ 3.442927] Run /sbin/init as init process SELinux: Could not open policy file <= /etc/selinux/targeted/policy/policy.33: No such file or directory [ 3.793658] EXT4-fs (mmcblk0p5): re-mounted. Opts: (null) Starting syslogd: OK Starting klogd: OK Running sysctl: OK Populating /dev using udev: [ 4.399733] udevd[99]: starting version 3.2.11 [ 4.510830] udevd[100]: starting eudev-3.2.11 [ 5.111156] sunxi_gpadc_init,2151, success [ 5.156743] sunxi_gpadc_setup: get channel scan data failed [ 5.163738] input: sunxi-gpadc0 as /devices/virtual/input/input0 done Initializing random number generator: OK Saving random seed: OK Starting system message bus: done Starting rpcbind: OK Starting network: OK Starting sshd: OK Starting NFS statd: OK Starting NFS services: OK Starting NFS daemon: [ 10.396690] NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory [ 10.405529] NFSD: unable to find recovery directory /var/lib/nfs/v4recovery [ 10.414286] NFSD: Unable to initialize client recovery tracking! (-2) [ 10.421975] NFSD: starting 90-second grace period (net f0000019) OK Starting NFS mountd: OK Starting IIO Server Daemon Welcome to Buildroot buildroot login: [ 33.126226] usb1-vbus: disabling [ 344.313661] BUG: Bad page state in process swapper pfn:42ac8 [ 344.320109] page:ffffffe0035b4bc0 refcount:-2 mapcount:0 mapping:0000000000000000 index:0x0 [ 344.329455] flags: 0x0() [ 344.332291] raw: 0000000000000000 0000000000000100 0000000000000122 0000000000000000 [ 344.340960] raw: 0000000000000000 0000000000000000 fffffffeffffffff [ 344.347969] page dumped because: nonzero _refcount [ 344.353323] Modules linked in: snd_soc_sunxi_simple_card snd_soc_dmic snd_soc_simple_card_utils snd_soc_core snd_pcm_dmaengine snd_pcm snd_timer snd soundcore sunxi_gpadc [ 344.370383] CPU: 0 PID: 0 Comm: swapper Not tainted 5.4.61 #4 [ 344.376811] Call Trace: [ 344.379545] [<ffffffe00002b0ca>] 0xffffffe00002b0ca [ 344.384999] [<ffffffe00002b282>] 0xffffffe00002b282 [ 344.390457] [<ffffffe0004c5232>] 0xffffffe0004c5232 [ 344.395913] [<ffffffe0000a33ee>] 0xffffffe0000a33ee [ 344.401369] [<ffffffe0000a34b6>] 0xffffffe0000a34b6 [ 344.406824] [<ffffffe0000a5824>] 0xffffffe0000a5824 [ 344.412279] [<ffffffe0000a6324>] 0xffffffe0000a6324 [ 344.417736] [<ffffffe0000a643e>] 0xffffffe0000a643e [ 344.423193] [<ffffffe0003e3706>] 0xffffffe0003e3706 [ 344.428646] [<ffffffe000386a86>] 0xffffffe000386a86 [ 344.434103] [<ffffffe000386c04>] 0xffffffe000386c04 [ 344.439560] [<ffffffe00038eef0>] 0xffffffe00038eef0 [ 344.445015] [<ffffffe00038f104>] 0xffffffe00038f104 [ 344.450471] [<ffffffe00038fc88>] 0xffffffe00038fc88 [ 344.455927] [<ffffffe000390bb0>] 0xffffffe000390bb0 [ 344.461381] [<ffffffe000053b7a>] 0xffffffe000053b7a [ 344.466837] [<ffffffe000053c06>] 0xffffffe000053c06 [ 344.472294] [<ffffffe000053c80>] 0xffffffe000053c80 [ 344.477748] [<ffffffe000056a38>] 0xffffffe000056a38 [ 344.483203] [<ffffffe0000530b0>] 0xffffffe0000530b0 [ 344.488660] [<ffffffe0002a6104>] 0xffffffe0002a6104 [ 344.494116] [<ffffffe0004da23e>] 0xffffffe0004da23e [ 344.499571] [<ffffffe000029e18>] 0xffffffe000029e18 [ 344.505025] [<ffffffe00005cba0>] 0xffffffe00005cba0 [ 344.510480] Disabling lock debugging due to kernel taint [ 373.079383] BUG: Bad page state in process swapper pfn:422e0 [ 373.085837] page:ffffffe003599100 refcount:-1 mapcount:0 mapping:0000000000000000 index:0x0 [ 373.095183] flags: 0x0() [ 373.098021] raw: 0000000000000000 0000000000000100 0000000000000122 0000000000000000 [ 373.106694] raw: 0000000000000000 0000000000000000 ffffffffffffffff [ 373.113695] page dumped because: nonzero _refcount [ 373.119052] Modules linked in: snd_soc_sunxi_simple_card snd_soc_dmic snd_soc_simple_card_utils snd_soc_core snd_pcm_dmaengine snd_pcm snd_timer snd soundcore sunxi_gpadc [ 373.136144] CPU: 0 PID: 0 Comm: swapper Tainted: G B 5.4.61 #4 [ 373.144129] Call Trace: [ 373.146865] [<ffffffe00002b0ca>] 0xffffffe00002b0ca [ 373.152325] [<ffffffe00002b282>] 0xffffffe00002b282 [ 373.157783] [<ffffffe0004c5232>] 0xffffffe0004c5232 [ 373.163242] [<ffffffe0000a33ee>] 0xffffffe0000a33ee [ 373.168701] [<ffffffe0000a34b6>] 0xffffffe0000a34b6 [ 373.174161] [<ffffffe0000a5824>] 0xffffffe0000a5824 [ 373.179620] [<ffffffe0000a6324>] 0xffffffe0000a6324 [ 373.185079] [<ffffffe0000a643e>] 0xffffffe0000a643e [ 373.190538] [<ffffffe0003e3706>] 0xffffffe0003e3706 [ 373.195997] [<ffffffe000386a86>] 0xffffffe000386a86 [ 373.201456] [<ffffffe000386c04>] 0xffffffe000386c04 [ 373.206915] [<ffffffe00038eef0>] 0xffffffe00038eef0 [ 373.212375] [<ffffffe00038f104>] 0xffffffe00038f104 [ 373.217834] [<ffffffe000390074>] 0xffffffe000390074 [ 373.223293] [<ffffffe0003901b0>] 0xffffffe0003901b0 [ 373.228752] [<ffffffe000390c06>] 0xffffffe000390c06 [ 373.234212] [<ffffffe000053b7a>] 0xffffffe000053b7a [ 373.239672] [<ffffffe000053c06>] 0xffffffe000053c06 [ 373.245130] [<ffffffe000053c80>] 0xffffffe000053c80 [ 373.250590] [<ffffffe000056a38>] 0xffffffe000056a38 [ 373.256049] [<ffffffe0000530b0>] 0xffffffe0000530b0 [ 373.261508] [<ffffffe0002a6104>] 0xffffffe0002a6104 [ 373.266968] [<ffffffe0004da23e>] 0xffffffe0004da23e [ 373.272427] [<ffffffe000029e18>] 0xffffffe000029e18 [ 373.277887] [<ffffffe00005cba0>] 0xffffffe00005cba0 [ 375.083493] ------------[ cut here ]------------ [ 375.088671] kernel BUG at mm/slub.c:3995! [ 375.093157] Kernel BUG [#1] [ 375.096278] Modules linked in: snd_soc_sunxi_simple_card snd_soc_dmic snd_soc_simple_card_utils snd_soc_core snd_pcm_dmaengine snd_pcm snd_timer snd soundcore sunxi_gpadc [ 375.113355] CPU: 0 PID: 0 Comm: swapper Tainted: G B 5.4.61 #4 [ 375.121340] sepc: ffffffe0000aac98 ra : ffffffe0000aac68 sp : ffffffe000623a40 [ 375.129425] gp : ffffffe00068e138 tp : ffffffe000628660 t0 : 322e3535322e3535 [ 375.137508] t1 : 0d303039313a3035 t2 : cb0000450008b412 s0 : ffffffe000623a90 [ 375.145585] s1 : ffffffe0035994f0 a0 : ffffffe0035994f0 a1 : 0000000000000000 [ 375.153658] a2 : 000000000000007f a3 : ffffffe0020f2147 a4 : 0000000000000000 [ 375.161724] a5 : 0000000000000000 a6 : 534f480a0d312e31 a7 : 322e393332203a54 [ 375.169795] s2 : ffffffe00066df50 s3 : 0000000000000000 s4 : ffffffe0020f2042 [ 375.177863] s5 : ffffffe00066df80 s6 : 0000000000000105 s7 : 0000000000000001 [ 375.185943] s8 : ffffffd004056004 s9 : 000000000000062a s10: 0000000000000105 [ 375.194017] s11: 0000000000000001 t3 : fe011101000080ff t4 : faffffef0107a8c0 [ 375.202096] t5 : eef3b7006c070bde t6 : ffffffe0020e0147 [ 375.208032] sstatus: 0000000200000100 sbadaddr: 0000000000000000 scause: 0000000000000003 [ 375.217241] ---[ end trace 6a0a5cb09348a66f ]--- [ 375.222396] Kernel panic - not syncing: Fatal exception in interrupt [ 375.229510] ---[ end Kernel panic - not syncing: Fatal exception in interrupt ]---
-
@story_xjj
我还发现了一个怪现象,因为创建的SD卡镜像中,boot分区时fat格式的,如果用读卡器把文件复制到boot分区中,然后重新引导系统,挂载boot分区,再把文件复制到或移动到根分区中,就不会出现死机的情况。一切正常。
而且编译的文件可以正确执行。[root@buildroot ~]# ls mywork nfs nfs.sh [root@buildroot ~]# mount -t vfat /dev/disk/by-partlabel/boot nfs [root@buildroot ~]# cd nfs [root@buildroot nfs]# ls Image boot.img sun20i-d1s-nezha-linux.dtb System Volume Information main [root@buildroot nfs]# mv main ../mywork/ [root@buildroot nfs]# ls Image boot.img System Volume Information sun20i-d1s-nezha-linux.dtb [root@buildroot nfs]# cd .. [root@buildroot ~]# ls mywork nfs nfs.sh [root@buildroot ~]# cd mywork/ [root@buildroot mywork]# ls main [root@buildroot mywork]# ll total 12 -rwxr-xr-x 1 root root 11608 Jun 7 2023 main [root@buildroot mywork]# ./main hello world! [root@buildroot mywork]#
-
问题有新的进展了,因为boot分区时fat格式的,我将boot分区挂载到root分区的目录下,然后通过sftp将文件传送到boot分区中,传送成功了,系统并没有死机。似乎这个文件复制过程死机和ext4文件系统有关系。原来传输的文件大小为5k左右,我把文件调大到10k,传输同样会失败。我现在也不清楚时文件系统格式的问题还是文件大小的问题,有没有大神可以出来指导一下。
-
@story_xjj 我也遇到这个问题了,你解决了吗
-
@maihuanyi 没有解决,希望有高手出面解决
-
@story_xjj 请问解决了吗,我也遇到同样问题
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号