+ -
当前位置:首页 → 问答吧 → 内核挂载文件系统的问题,eabi交叉编译工具制作的文件系统挂载不上!

内核挂载文件系统的问题,eabi交叉编译工具制作的文件系统挂载不上!

时间:2011-01-07

来源:互联网

说明:使用busybox1.9.2来制作文件系统
交叉编译工具链:arm-none-linux-gnueabi-
                        arm-linux-

在编译内核时,已经开了eabi的支持。
  • Use the ARM EABI to compile the kernel
    •    Allow old ABI binaries to run with this kernel (EXPERIMENTAL)

      使用arm-linux-制作文件系统能正常挂载。

      使用arm-none-linux-gnueabi-的交叉编译工具链制作文件系统,不能挂载。
      提示信息为:

      VFS: Mounted root (jffs2 filesystem) on device 31:2.
      Freeing init memory: 148K
      Front of /sbin/init!  //此处为我在内核中添加的打印信息
      Kernel panic - not syncing: Attempted to kill init!
      [<c0033838>] (unwind_backtrace +0x0/0xd4) from [<c0045cb4>] (panic+0x40/0x124)
      [<c0045cb4>] (panic+0x40/0x124) from [<c004879c>] (do_exit+0x58/0x57c)
      [<c004879c>] (do_exit+0x58/0x57c) from [<c0048d44>] (do_group_exit+0x84/0xb
      [<c0048d44>] (do_group_exit+0x84/0xb from [<c0051c48>] (get_signal_to_deliver+
      0x2e8/0x324)
      [<c0051c48>] (get_signal_to_deliver+0x2e8/0x324) from [<c00304b8>] (do_signal+0x
      5c/0x4c
      [<c00304b8>] (do_signal+0x5c/0x4c from [<c002de0c>] (work_pending+0x1c/0x20)

      内核中增加打印信息:
      printk("Front of /sbin/init! \n";
              run_init_process("/sbin/init";
      printk("Back of /sbin/init! \n";
              run_init_process("/etc/init";
      printk("Back of /etc/init! \n";
              run_init_process("/bin/init";
      printk("Back of /bin/init! \n";
              run_init_process("/bin/sh";
      printk("Back of /bin/sh! \n";

      在制作生成的busybox属性如下:
      file bin/busybox
      bin/busybox: ELF 32-bit LSB executable, ARM, version 1 (SYSV), statically linked, for GNU/Linux 2.6.14, stripped   //eabi工具链编译的,不能挂载

      bin /busybox: ELF 32-bit LSB executable, ARM, version 1 (ARM), for GNU/Linux 2.4.3, dynamically linked (uses shared libs), stripped //非eabi工具链编译,能正常挂载

      各位大虾们,大家帮忙看看有什么解决的方法?为什么会出现这个问题?不胜感激!已经搞了一周了,没一点办法。
  • 作者: coollu925   发布时间: 2011-01-07

    自己顶个……

    作者: coollu925   发布时间: 2011-01-07



    QUOTE:
    说明:使用busybox1.9.2来制作文件系统
    交叉编译工具链:arm-none-linux-gnueabi-
                         ...
    coollu925 发表于 2011-01-07 12:01




        查一下你的内核的 浮点 选项是不是正确配置了。
    祝你好运!

    作者: linyunxian   发布时间: 2011-01-07

    热门下载

    更多