device major/minor attributes corrupt in jffs2
Robin Gilks
robin.gilks at tait.co.nz
Thu Oct 30 16:49:13 EST 2003
Robin Gilks wrote:
> Greetings
>
> Just trying to put a root filesystem into jffs2 and whilst I can mount
> the filesystem and copy my /dev directory into it and it looks OK, when
> I reboot the major/minor numbers have been added together into the minor
> and the major is always 0
>
> Anyone any ideas?
>
> target mpc8xx cross compiled from i386 with gcc-3.3.1
> kernel 2.4.22
> mtd snapshot of 22-10-03
> busybox 1.00-pre3 utils
> uclibc 0.9.20 library
>
More info - just unmount and remount and the device file attributes are
buggered - I assume that the cache is OK but the data written to flash
is not :-((
Also, it looks like the major/minor numbers not added - can't work out
exactly what is going on !!
/home # ./MAKEDEV
/home # ls -l /mnt/dev/mtd*
crw-r--r-- 1 root root 90, 0 Jan 1 17:26 /mnt/dev/mtd0
crw-r--r-- 1 root root 90, 2 Jan 1 17:26 /mnt/dev/mtd1
crw-r--r-- 1 root root 90, 4 Jan 1 17:26 /mnt/dev/mtd2
crw-r--r-- 1 root root 90, 6 Jan 1 17:26 /mnt/dev/mtd3
crw-r--r-- 1 root root 90, 8 Jan 1 17:26 /mnt/dev/mtd4
crw-r--r-- 1 root root 90, 10 Jan 1 17:26 /mnt/dev/mtd5
crw-r--r-- 1 root root 90, 12 Jan 1 17:26 /mnt/dev/mtd6
crw-r--r-- 1 root root 90, 14 Jan 1 17:26 /mnt/dev/mtd7
/home # umount /mnt
/home # mount /mnt
/home # ls -l /mnt/dev/mtd*
crw-r--r-- 1 root root 0, 90 Jan 1 17:26 /mnt/dev/mtd0
crw-r--r-- 1 root root 0, 90 Jan 1 17:26 /mnt/dev/mtd1
crw-r--r-- 1 root root 0, 94 Jan 1 17:26 /mnt/dev/mtd2
crw-r--r-- 1 root root 0, 94 Jan 1 17:26 /mnt/dev/mtd3
crw-r--r-- 1 root root 0, 90 Jan 1 17:26 /mnt/dev/mtd4
crw-r--r-- 1 root root 0, 90 Jan 1 17:26 /mnt/dev/mtd5
crw-r--r-- 1 root root 0, 94 Jan 1 17:26 /mnt/dev/mtd6
crw-r--r-- 1 root root 0, 94 Jan 1 17:26 /mnt/dev/mtd7
--
Robin Gilks
Senior Design Engineer Phone: (+64)(3) 357 1569
Tait Electronics Fax : (+64)(3) 359 4632
PO Box 1645 Christchurch Email : robin.gilks at tait.co.nz
New Zealand
More information about the linux-mtd
mailing list