This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM335X 文件系统报错



AM335X,SDK08环境

因为之前在论坛上有提出怀疑MMC卡不稳定导致文件系统出错,各种内存错误等异常。我想做ramdisk最小文件系统来排除。

我根据blog.csdn.net/.../8719828上的帖子制作了最小文件系统,依旧出现内存异常等错误。

错误如下

[ 3.156105] RAMDISK: gzip image found at block 0
[ 3.199113] usb 2-1: new low-speed USB device number 2 using musb-hdrc
[ 3.338723] usb 2-1: device descriptor read/64, error -71
[ 3.377555] Unable to handle kernel paging request at virtual address 00100104
[ 3.387017] pgd = c0004000
[ 3.390543] [00100104] *pgd=00000000
[ 3.395222] Internal error: Oops: 805 [#1] ARM
[ 3.401023] Modules linked in:
[ 3.405015] CPU: 0 PID: 1 Comm: swapper Not tainted 3.14.26 #30
[ 3.412741] task: dd86ec00 ti: dd87e000 task.ti: dd87e000
[ 3.419812] PC is at get_page_from_freelist+0x16c/0x68c
[ 3.426635] LR is at zone_watermark_ok+0x24/0x2c
[ 3.432665] pc : [<c00993a4>] lr : [<c0097948>] psr: 60000193
[ 3.432665] sp : dd87f780 ip : 00100100 fp : dd87f80c
[ 3.447656] r10: c085b0e4 r9 : 00000001 r8 : 60000113
[ 3.454467] r7 : df9d3348 r6 : 00000000 r5 : c0875498 r4 : dfd8b520
[ 3.462980] r3 : df9d3354 r2 : 00200200 r1 : 00100100 r0 : df9d3354
[ 3.471508] Flags: nZCv IRQs off FIQs on Mode SVC_32 ISA ARM Segment kernel
[ 3.481155] Control: 10c5387d Table: 80004019 DAC: 00000015
[ 3.488658] Process swapper (pid: 1, stack limit = 0xdd87e238)
[ 3.496276] Stack: (0xdd87f780 to 0xdd880000)

最后我排查最小文件系统,发现如果在fstab中

#evice mount-point type option dump fsck order
proc /proc proc defaults 0 0
none /tmp ramfs defaults 0 0
mdev /dev ramfs defaults 0 0
sysfs /sys sysfs defaults 0 0

 如果不添加最后一行sysfs的挂载,则不会出现上面的错误,请帮忙分析下原因。

但是会提示

[ 3.156054] RAMDISK: gzip image found at block 0
[ 3.198988] usb 2-1: new low-speed USB device number 2 using musb-hdrc
[ 3.339012] usb 2-1: device descriptor read/64, error -71
[ 3.474428] VFS: Mounted root (ext2 filesystem) on device 1:0.
[ 3.482416] devtmpfs: mounted
[ 3.486814] Freeing unused kernel memory: 268K (c07c9000 - c080c000)
mdev: /sys/class: No such file or directory

Please press Enter to activate this console.


  • 为啥不直接用我们提供的fs中的fstab呢?用了我们的这个还会出问题吗?

    1 # stock fstab - you probably want to override this with a machine specific one
    2
    3 /dev/root / auto defaults 1 1
    4 proc /proc proc defaults 0 0
    5 devpts /dev/pts devpts mode=0620,gid=5 0 0
    6 usbdevfs /proc/bus/usb usbdevfs noauto 0 0
    7 tmpfs /run tmpfs mode=0755,nodev,nosuid,strictatime 0 0
    8 tmpfs /var/volatile tmpfs defaults,size=16M 0 0
    9 tmpfs /media/ram tmpfs defaults,size=16M 0 0
    10
    11 # uncomment this if your device has a SD/MMC/Transflash slot
    12 #/dev/mmcblk0p1 /media/card auto defaults,sync,noauto 0 0

  • 是的,用SDK08上的文件系统出现各种段错误以及野指针错误