系统启动后执行linuxrc 但脚本执行到exec $BB chroot . sh
by rmqh - 内核/嵌入技术 - 2006-12-23 20:05:39 阅读(1248) 回复(3)
Reading data from NAND FLASH without ECC is not recommended VFS: Mounted root (cramfs filesystem) readonly. Mounted devfs on /dev Freeing init memory: 92K Failed to execute /linuxrc. Attempting defaults... Kernel panic - not syncing: No init found. Try passing init= option to kernel. 移植了内核2.6.14.1 自己制作了文件系统cramfs, #touch linuxrc #chmod 777 linuxrc #ls -al -rwxrwxrwx 1 502 root...
做嵌入式根文件系统时,有linuxrc如下: #!/bin/sh echo "mount /etc as ramfs" /bin/mount -n -t ramfs ramfs /etc 这里的ramfs是从哪儿来,做的根目录没有这个,挂这个的目的是干吗 /bin/cp -a /mnt/etc/* /etc echo "re-create the /etc/mtab entries" # re-create the /etc/mtab entries /bin/mount -f -t cramfs -o remount,ro /dev/bon/2 / /bin/mount -f -t ramfs ramfs /etc exec /sbin/init 这里是映象的还是根...
做嵌入式根文件系统时,有linuxrc如下: #!/bin/sh echo "mount /etc as ramfs" /bin/mount -n -t ramfs ramfs /etc 这里的ramfs是从哪儿来,做的根目录没有这个,挂这个的目的是干吗 /bin/cp -a /mnt/etc/* /etc echo "re-create the /etc/mtab entries" # re-create the /etc/mtab entries /bin/mount -f -t cramfs -o remount,ro /dev/bon/2 / /bin/mount -f -t ramfs ramfs /etc exec /sbin/init 这里是映象的还是根...
请教一下, 如果root=/dev/ram0 , 启动后是否会执行 /linuxrc 和 /init ? 我测试好像没有执行。 我想 root 用 ramdisk, 而etc 放在磁盘上, 要在init 执行前 把 etc mount 上。主要是希望修改文件系统后保留原来的 /etc 配置. 有什么好办法? kernel 2.6.16.22 谢谢
#!/bin/sh PATH="/RMF/lib:/usr/bin:/usr/sbin:/bin:/sbin:/usr/local/bin:/usr/local/sbin:/usr/X11R6/bin:/usr/X11R6/lib:." TERM=linux #设置路径 PS1="lsmedia> " #未知? PS2='>' export PATH TERM PS1 PS2 VERSION PKGSRC BOOT PKGSRC BOOTFS FLCFG FXCFG PKGLIST FIXED umask 022 #使用者权根设为rw-r--r--参考UMASK的使用说明 [ -d /etc/proc ] || mkdir -p /etc/proc #建立目录/etc/proc确保目录名称存在,不存在的...