+ -
当前位置:首页 → 问答吧 → 在 CRAMFS 根文件系統中加入 yaffs2.ko 失敗

在 CRAMFS 根文件系統中加入 yaffs2.ko 失敗

时间:2011-03-15

来源:互联网

我在板子啟動時加插 yaffs2.ko 失敗了 ... 下面是錯誤信息 :
  1. init started: BusyBox v1.11.2 (2011-02-24 11:21:32 HKT)
  2. starting pid 805, tty '/dev/console': '-/etc/init.d/rcS'
  3. #-----Start /etc/init.d/rcS
  4. mount: cannot read /proc/mounts: No such file or directory
  5. yaffs Mar 15 2011 11:24:33 Installing.
  6. ------------[ cut here ]------------
  7. WARNING: at fs/proc/generic.c:590 proc_register+0x118/0x16c()
  8. proc_dir_entry '/proc/yaffs' already registered
  9. Modules linked in: yaffs2(+)
  10. [<c0029480>] (unwind_backtrace+0x0/0xe0) from [<c003a6b8>] (warn_slowpath_common
  11. +0x48/0x60)
  12. [<c003a6b8>] (warn_slowpath_common+0x48/0x60) from [<c003a708>] (warn_slowpath_f
  13. mt+0x24/0x30)
  14. [<c003a708>] (warn_slowpath_fmt+0x24/0x30) from [<c00bd410>] (proc_register+0x11
  15. 8/0x16c)
  16. [<c00bd410>] (proc_register+0x118/0x16c) from [<c00bd578>] (create_proc_entry+0x
  17. 74/0x90)
  18. [<c00bd578>] (create_proc_entry+0x74/0x90) from [<bf01a040>] (init_yaffs_fs+0x40
  19. /0x140 [yaffs2])
  20. [<bf01a040>] (init_yaffs_fs+0x40/0x140 [yaffs2]) from [<c0023374>] (do_one_initc
  21. all+0x54/0x198)
  22. [<c0023374>] (do_one_initcall+0x54/0x198) from [<c005d784>] (sys_init_module+0xb
  23. c/0x1e8)
  24. [<c005d784>] (sys_init_module+0xbc/0x1e8) from [<c0023de0>] (ret_fast_syscall+0x
  25. 0/0x28)
  26. ---[ end trace 1e4af51e94ebed85 ]---
  27. ------------[ cut here ]------------
  28. WARNING: at fs/proc/generic.c:590 proc_register+0x118/0x16c()
  29. proc_dir_entry '/proc/yaffs_debug' already registered
  30. Modules linked in: yaffs2(+)
  31. [<c0029480>] (unwind_backtrace+0x0/0xe0) from [<c003a6b8>] (warn_slowpath_common
  32. +0x48/0x60)
  33. [<c003a6b8>] (warn_slowpath_common+0x48/0x60) from [<c003a708>] (warn_slowpath_f
  34. mt+0x24/0x30)
  35. [<c003a708>] (warn_slowpath_fmt+0x24/0x30) from [<c00bd410>] (proc_register+0x11
  36. 8/0x16c)
  37. [<c00bd410>] (proc_register+0x118/0x16c) from [<c00bd578>] (create_proc_entry+0x
  38. 74/0x90)
  39. [<c00bd578>] (create_proc_entry+0x74/0x90) from [<bf01a074>] (init_yaffs_fs+0x74
  40. /0x140 [yaffs2])
  41. [<bf01a074>] (init_yaffs_fs+0x74/0x140 [yaffs2]) from [<c0023374>] (do_one_initc
  42. all+0x54/0x198)
  43. [<c0023374>] (do_one_initcall+0x54/0x198) from [<c005d784>] (sys_init_module+0xb
  44. c/0x1e8)
  45. [<c005d784>] (sys_init_module+0xbc/0x1e8) from [<c0023de0>] (ret_fast_syscall+0x
  46. 0/0x28)
  47. ---[ end trace 1e4af51e94ebed86 ]---
  48. insmod: cannot insert '/home/yaffs2.ko': Device or resource busy
  49. UniFi SDIO Driver: v7.0 (build:212) Mar 10 2011 10:18:09
  50. CSR SME with WEXT support
  51. UniFi: Using native Linux MMC driver for SDIO.
  52. /etc/init.d/rcS: line 14: sbin/mount: not found
  53. /etc/init.d/rcS: line 16: sbin/mount: not found
复制代码
我的rcS :
  1. #!/bin/sh

  2. echo "#-----Start /etc/init.d/rcS "
  3. PATH=/sbin:/bin:/usr/sbin:/usr/bin
  4. runlevel=S
  5. prevlevel=N
  6. umask 022
  7. export PATH runlevel prevlevel

  8. /bin/mount -f -t cramfs -o remount,ro /dev/mtdblock/3

  9. /sbin/insmod -f /home/yaffs2.ko
  10. /sbin/insmod /home/unifi_sdio.ko
  11. sbin/mount -t yaffs2 /dev/mtdblock/4 /home

  12. sbin/mount -t proc none /proc
  13. echo "*****************************************"
  14. echo "       Start AT91SAM9261 ...             "
  15. echo "       built date : 24-2-2011            "
  16. echo "       Author     : Steven Lo            "
  17. echo "*****************************************"

  18. .//home/test/hello
复制代码
求有經驗的兄弟指教一下 ! 謝謝 !

作者: embedding   发布时间: 2011-03-15

頂 ...

作者: embedding   发布时间: 2011-03-17