about ubiformat mtdblock

tommy jiujin.hong at mid-fun.com
Wed Jul 1 07:13:28 EDT 2009


THANKS!~
Kernel command line: console=ttySAC0,115200 ubi.mtd=2 root=ubi0_0
rootfstype=ubifs

mount: mounting proc on /proc failed: Device or resource busy      
WARNING: Couldn't open directory /lib/modules/2.6.24.2: No such file or
directory
FATAL: Could not open /lib/modules/2.6.24.2/modules.dep.temp for
writing: No such file or directory
modprobe: FATAL: Could not load /lib/modules/2.6.24.2/modules.dep: No
such file or directory

modprobe: FATAL: Could not load /lib/modules/2.6.24.2/modules.dep: No
such file or directory

open_ubi name rootfs<3>UBIFS error (pid 576): ubifs_get_sb: cannot open
"rootfs", error -22 

root at localhost:/etc/rcS.d# vi S35mountall.sh
#
# Mount local filesystems in /etc/fstab. For some reason, people
# might want to mount "proc" several times, and mount -v complains
# about this. So we mount "proc" filesystems without -v.
#
test "$VERBOSE" != no && echo "Mounting local filesystems..."
mount -at nonfs,nosmbfs,noncpfs 2>/dev/null

root at localhost:/etc/rcS.d# cat ../fstab
# stock fstab - you probably want to override this with a machine
specific one

rootfs               /                    auto       defaults
1  1
proc                 /proc                proc       defaults
0  0
devpts               /dev/pts             devpts     mode=0620,gid=5
0  0
#usbdevfs             /proc/bus/usb        usbdevfs   noauto
0  0
tmpfs                /var                 tmpfs      defaults
0  0
tmpfs                /mnt/ram           tmpfs      defaults
0  0

# uncomment this if your device has a SD/MMC/Transflash slot
#/dev/mmcblk0p1       /media/card          auto
defaults,sync,noauto  0  0



On 三, 2009-07-01 at 14:06 +0300, Artem Bityutskiy wrote:
> On Wed, 2009-07-01 at 18:58 +0800, tommy wrote:
> > ps:
> > 
> > if my board nfs boot ,not ubifs boot,following is ok!
> > nfs at root:ubiattach /dev/ubi_ctrl -m 2
> > nfs at root:mount -t ubifs ubi0_0 /mnt /
> > it it ok!
> 
> Try adding:
> 
> ubi.mtd=0 root=ubi0_0 rootfstype=ubifs
> 
> to the kernel boot line.
> 




More information about the linux-mtd mailing list