Hi everyone,
I have an application using the TS-7400 for which kernel 2.4 is too
old, so I managed to get kernels 2.6.32.3 and later 2.6.34 running on
it with the Matt's patches. My end application will run from SDcard,
and so I was mounting my boot partition from the SDcard and using
"bootloader.o / static_bootload" to boot my 2.6 kernel from the
TS-FLASHBOOT environment resident on the board's flash memory. It was
all fine while the SDcard used during development had a 512MB
capacity. Since nowadays is quite hard to get SDcards this size, we
got a 2GB one (non-SDHC), formatted it to hold our application
filesystem but, when we try mounting it from the TS-FLASHBOOT Linux,
we see this:
$ mount /dev/sdcard0/disc0/part1 /mnt2
mount: Mounting /dev/sdcard0/disc0/part1 on /mnt2 failed: Invalid argument
If you look at /var/log/messages you can see this:
VFS: Can't find ext2 filesystem on dev sdcard0(254,1).
yaffs: dev is 65025 name is "fe:01"
yaffs: Attempting MTD mount on 254.1, "fe:01"
yaffs: dev is 65025 name is "fe:01"
yaffs: Attempting MTD mount on 254.1, "fe:01"
The same thing happens if we try to mount partition2:
$ mount /dev/sdcard0/disc0/part2 /mnt2
mount: Mounting /dev/sdcard0/disc0/part2 on /mnt2 failed: Invalid argument
and at /var/log/messages:
VFS: Can't find ext2 filesystem on dev sdcard0(254,2).
yaffs: dev is 65026 name is "fe:02"
yaffs: Attempting MTD mount on 254.2, "fe:02"
yaffs: dev is 65026 name is "fe:02"
yaffs: Attempting MTD mount on 254.2, "fe:02"
Checking the partitions with fdisk, I noticed this warning about
sector size being 1024 instead of 512:
$ fdisk -l
Note: sector size is 1024 (not 512)
Disk /dev/sdcard0/disc0/disc: 1977 MB, 1977614336 bytes
16 heads, 61 sectors/track, 1978 cylinders
Units = cylinders of 976 * 1024 = 999424 bytes
Device Boot Start End Blocks Id System
/dev/sdcard0/disc0/part1 1 100 97539 83 Linux
/dev/sdcard0/disc0/part2 * 101 800 683200 83 Linux
/dev/sdcard0/disc0/part3 801 3957 3081232 82
Linux swap
Now, if I boot the same 2.6.34 kernel and root filesystem on NFS, I am
able to mount the SDcard partitions just fine, and fdisk reports a 512
byte sector size:
# fdisk -l
Disk /dev/tssda: 1977 MB, 1977614336 bytes
16 heads, 61 sectors/track, 3957 cylinders
Units = cylinders of 976 * 512 = 499712 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/tssda1 1 100 48769+ 83 Linux
/dev/tssda2 * 101 800 341600 83 Linux
/dev/tssda3 801 3957 1540616 82 Linux swap
Notice that on kernel 2.6 I get 3957 cylinders and 512 bytes sector
size for the SDcard, while on TS-Linux it reports 1978 cylinders and
1024 sector size. I would just like to know if there are any updates
for either TS-Linux or its kernel 2.4 SDcard driver so it is possible
to mount partitions correctly like it happens on kernel 2.6. I should
stress this only happens on the 2GB SDCard - maybe the kernel 2.4
driver conforms to an earlier (1.x) SDcard spec.
Has anyone been through something similar? I sent the same e-mail to
TS also asking them to reconsider that "kernel 2.4 forever" policy.
Kernel 2.6 is stable for years now and situations like this are
increasingly more likely to happen.
Cheers,
Claudio
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|