Kevin,
Thanks, for your help and for telling me the link, but I've not yet
get through it.
I have the standard ts-11 on my TS-7250, no custom script or
something different from the shipped setup.
The modules seem to be all ready to go, whit no issue, I use
loadUSBModules.sh to start them in their proper order (as I read that
sometimes the order might affect their behaviour)
I tried with a working usb stick, while in windows it doen't have any
kind of problems, also in Ubuntu6 it does the job flawlessly.
When I attach it to the board, the TS sees it, but it's not able to
mount it due to a failure in reading the filesystem from what I
understand. I have another usb memory (this one is from TS and has
Debian in it) with ext2 filesystem and it works fine.
I really think there is something wrong with the filesystem format of
my stick and it changes from FAT format to FAT32 format as you can
see below...
Here some code a captured:
#####################################################################
After booting the board with standard ts-11, nothing custom (kerner
or scripts)
#####################################################################
$ dmesg
Linux version 2.4.26-ts11 (gcc version 3.3.4) #22
Tue Jun 6 12:
23:09 MST 2006
CPU: Arm920Tid(wb) revision 0
Machine: ep9301
On node 0 totalpages: 2048
zone(0): 2048 pages.
zone(1): 0 pages.
zone(2): 0 pages.
On node 1 totalpages: 2048
zone(0): 2048 pages.
zone(1): 0 pages.
zone(2): 0 pages.
On node 4 totalpages: 2048
zone(0): 2048 pages.
zone(1): 0 pages.
zone(2): 0 pages.
On node 5 totalpages: 2048
zone(0): 2048 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: console=ttyAM0,115200 root=/dev/mtdblock1
Relocating machine vectors to 0xffff0000
Console: colour dummy device 80x30
Calibrating delay loop... 99.94 BogoMIPS
Memory: 8MB 8MB 8MB 8MB = 32MB total
Memory: 28624KB available (1208K code, 336K data, 72K init)
Dentry cache hash table entries: 4096 (order: 3, 32768 bytes)
Inode cache hash table entries: 2048 (order: 2, 16384 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 8192 (order: 3, 32768 bytes)
CPU: Testing write buffer: pass
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
devfs: v1.12c (20020818) Richard Gooch
devfs: boot_options: 0x1
ttyAM0 at MMIO 0x808c0000 (irq = 52) is a AMBA
ttyAM1 at MMIO 0x808d0000 (irq = 54) is a AMBA
ttyAM2 at MMIO 0x808e0000 (irq = 55) is a AMBA
pty: 1024 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ
enabled
Real Time Clock Driver v1.10f
ep93xx_eth() version: ep93xx_eth.c: V1.0 09/04/2003 Cirrus Logic
RAMDISK driver initialized: 16 RAM disks of 12288K size 1024 blocksize
Searching for NAND flash...
NAND device: Manufacturer ID: 0xec, Chip ID: 0x75 (Samsung NAND 32MiB
3,3V 8-bit
)
Scanning device for bad blocks
Using static partition definition
Creating 3 MTD partitions on "NAND 32MiB 3,3V 8-bit":
0x00000000-0x00004000 : "TS-BOOTROM"
0x00004000-0x01d04000 : "Linux"
0x01d04000-0x02000000 : "RedBoot"
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 2048 bind 4096)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
NetWinder Floating Point Emulator V0.97 (double precision)
VFS: Mounted root (yaffs filesystem).
Mounted devfs on /dev
Freeing init memory: 72K
sdcard0: Technologic Systems SD card controller, address 0x13000000
sdcard0: no card found
TS-UART/7260 did not detect a TS-7260 board
TS-UART/RF2 did not detect a TS-RF2 board
$ lsmod
Module Size Used by Tainted: P
tsuart0 8880 0
vfat 10140 0 (unused)
fat 29608 0 [vfat]
$ ls -ls /dev/
0 crw------- 1 root root 5, 1 Jul 4 13:12 console
0 crw------- 1 root root 205, 16 Jan 1 1970 cuaam0
0 crw------- 1 root root 205, 17 Jan 1 1970 cuaam1
0 crw------- 1 root root 205, 18 Jan 1 1970 cuaam2
0 drwxr-xr-x 1 root root 0 Jan 1 1970 fb
0 lr-xr-xr-x 1 root root 13 Jan 1 1970 fd -
> /proc/self/fd
0 crw-rw-rw- 1 root root 1, 7 Jan 1 1970 full
0 prw------- 1 root root 0 Jan 1 1970 initctl
0 crw-r----- 1 root root 1, 2 Jan 1 1970 kmem
0 crw-r----- 1 root root 1, 1 Jan 1 1970 mem
0 drwxr-xr-x 1 root root 0 Jan 1 1970 misc
0 drwxr-xr-x 1 root root 0 Jan 1 1970 mtd
0 drwxr-xr-x 1 root root 0 Jan 1 1970 mtdblock
0 crw-rw-rw- 1 root root 1, 3 Jan 1 1970 null
0 crw-r----- 1 root root 1, 4 Jan 1 1970 port
0 crw-rw-rw- 1 root root 5, 2 Jul 4 13:15 ptmx
0 drwxr-xr-x 1 root root 0 Jan 1 1970 pts
0 drwxr-xr-x 1 root root 0 Jan 1 1970 pty
0 crw-r--r-- 1 root root 1, 8 Jan 1 1970 random
0 drwxr-xr-x 1 root root 0 Jan 1 1970 rd
0 lr-xr-xr-x 1 root root 10 Jan 1 1970 root ->
mtdblock/1
0 lr-xr-xr-x 1 root root 4 Jan 1 1970 stderr -
> fd/2
0 lr-xr-xr-x 1 root root 4 Jan 1 1970 stdin ->
fd/0
0 lr-xr-xr-x 1 root root 4 Jan 1 1970 stdout -
> fd/1
0 crw-rw-rw- 1 root root 5, 0 Jan 1 1970 tty
0 crw--w--w- 1 root root 204, 16 Jul 4 13:11 ttyAM0
0 crw--w--w- 1 root root 204, 17 Jul 4 13:11 ttyAM1
0 crw------- 1 root root 204, 18 Jan 1 1970 ttyAM2
0 crw-r--r-- 1 root root 1, 9 Jan 1 1970 urandom
0 drwxr-xr-x 1 root root 0 Jan 1 1970 vc
0 drwxr-xr-x 1 root root 0 Jan 1 1970 vcc
0 crw-rw-rw- 1 root root 1, 5 Jan 1 1970 zero
$
#####################################################################
Loading loadUSBModules.sh
#####################################################################
$ /usr/bin/loadUSBModules.sh
Using /lib/modules/2.4.26-ts11/kernel/drivers/usb/usbcore.o
Using /lib/modules/2.4.26-ts11/kernel/arch/arm/common/pcipool.o
Using /lib/modules/2.4.26-ts11/kernel/drivers/usb/host/usb-ohci.o
Using /lib/modules/2.4.26-ts11/kernel/drivers/usb/host/usb-ohci-
ep93xx.o
Using /lib/modules/2.4.26-ts11/kernel/drivers/scsi/scsi_mod.o
Using /lib/modules/2.4.26-ts11/kernel/drivers/scsi/sd_mod.o
Using /lib/modules/2.4.26-ts11/kernel/drivers/usb/storage/usb-
storage.o
$ lsmod
Module Size Used by Tainted: P
usb-storage 55912 0 (unused)
sd_mod 11100 0 (unused)
scsi_mod 53816 2 [usb-storage sd_mod]
usb-ohci-ep93xx 888 0 (unused)
usb-ohci 15584 0 [usb-ohci-ep93xx]
pcipool 2072 1 [usb-ohci-ep93xx usb-ohci]
usbcore 55944 0 [usb-storage usb-ohci]
tsuart0 8880 0
vfat 10140 0 (unused)
fat 29608 0 [vfat]
$ dmesg
Linux version 2.4.26-ts11 (gcc version 3.3.4) #22
Tue Jun 6 12:
23:09 MST 2006
CPU: Arm920Tid(wb) revision 0
Machine: ep9301
On node 0 totalpages: 2048
zone(0): 2048 pages.
zone(1): 0 pages.
zone(2): 0 pages.
On node 1 totalpages: 2048
zone(0): 2048 pages.
zone(1): 0 pages.
zone(2): 0 pages.
On node 4 totalpages: 2048
zone(0): 2048 pages.
zone(1): 0 pages.
zone(2): 0 pages.
On node 5 totalpages: 2048
zone(0): 2048 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: console=ttyAM0,115200 root=/dev/mtdblock1
Relocating machine vectors to 0xffff0000
Console: colour dummy device 80x30
Calibrating delay loop... 99.94 BogoMIPS
Memory: 8MB 8MB 8MB 8MB = 32MB total
Memory: 28624KB available (1208K code, 336K data, 72K init)
Dentry cache hash table entries: 4096 (order: 3, 32768 bytes)
Inode cache hash table entries: 2048 (order: 2, 16384 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 8192 (order: 3, 32768 bytes)
CPU: Testing write buffer: pass
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
devfs: v1.12c (20020818) Richard Gooch
devfs: boot_options: 0x1
ttyAM0 at MMIO 0x808c0000 (irq = 52) is a AMBA
ttyAM1 at MMIO 0x808d0000 (irq = 54) is a AMBA
ttyAM2 at MMIO 0x808e0000 (irq = 55) is a AMBA
pty: 1024 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ
enabled
Real Time Clock Driver v1.10f
ep93xx_eth() version: ep93xx_eth.c: V1.0 09/04/2003 Cirrus Logic
RAMDISK driver initialized: 16 RAM disks of 12288K size 1024 blocksize
Searching for NAND flash...
NAND device: Manufacturer ID: 0xec, Chip ID: 0x75 (Samsung NAND 32MiB
3,3V 8-bit
)
Scanning device for bad blocks
Using static partition definition
Creating 3 MTD partitions on "NAND 32MiB 3,3V 8-bit":
0x00000000-0x00004000 : "TS-BOOTROM"
0x00004000-0x01d04000 : "Linux"
0x01d04000-0x02000000 : "RedBoot"
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 2048 bind 4096)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
NetWinder Floating Point Emulator V0.97 (double precision)
VFS: Mounted root (yaffs filesystem).
Mounted devfs on /dev
Freeing init memory: 72K
sdcard0: Technologic Systems SD card controller, address 0x13000000
sdcard0: no card found
TS-UART/7260 did not detect a TS-7260 board
TS-UART/RF2 did not detect a TS-RF2 board
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
usb-ohci.c: USB OHCI at membase 0xe0020000, IRQ 56
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 3 ports detected
SCSI subsystem driver Revision: 1.00
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.
hub.c: new USB device not_pci-3, assigned address 2
scsi0 : SCSI emulation for USB Mass Storage devices
Vendor: USB Model: USB 2.0 Flash Rev: 8.07
Type: Direct-Access ANSI SCSI revision: 02
Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
SCSI device sda: 256000 512-byte hdwr sectors (131 MB)
sda: Write Protect is off
Partition check:
/dev/scsi/host0/bus0/target0/lun0: p1 p2 p3 p4
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
#####################################################################
Trying to mount
#####################################################################
$ ls -la /mnt/
drwxr-xr-x 1 root root 512 Jan 1 1970 .
drwxr-xr-x 1 root root 512 Jan 1 1970 ..
drwxr-xr-x 1 root root 512 Jan 1 1970 cf
drwxr-xr-x 1 root root 512 Jul 2 09:19 usb
$ mount -t vfat /dev/scsi/host0/bus0/target0/lun0/part1 /mnt/usb
mount: Mounting /dev/scsi/host0/bus0/target0/lun0/part1 on /mnt/usb
failed: Inva
lid argument
$ mount -t vfat /dev/scsi/host0/bus0/target0/lun0/part1 /mnt/usb/
mount: Mounting /dev/scsi/host0/bus0/target0/lun0/part1 on /mnt/usb
failed: Inva
lid argument
$ mount /dev/scsi/host0/bus0/target0/lun0/part1 /mnt/usb
mount: Mounting /dev/scsi/host0/bus0/target0/lun0/part1 on /mnt/usb
failed: Inva
lid argument
$ mount /dev/scsi/host0/bus0/target0/lun0/part1 /mnt/usb/
mount: Mounting /dev/scsi/host0/bus0/target0/lun0/part1 on /mnt/usb
failed: Inva
lid argument
#####################################################################
What inside the path
#####################################################################
$ cd /dev/scsi
$ ls
host0
$ cd host0
$ ls
bus0
$ cd bus0
$ ls
target0
$ cd target0
$ ls
lun0
$ cd lun0
$ ls -la
drwxr-xr-x 1 root root 0 Jan 1 1970 .
drwxr-xr-x 1 root root 0 Jan 1 1970 ..
brw------- 1 root root 8, 0 Jan 1 1970 disc
brw------- 1 root root 8, 1 Jan 1 1970 part1
brw------- 1 root root 8, 2 Jan 1 1970 part2
brw------- 1 root root 8, 3 Jan 1 1970 part3
brw------- 1 root root 8, 4 Jan 1 1970 part4
#####################################################################
Dmesg after trying to mount (4 times), this is the added part to
the "dmesg"
#####################################################################
// The usb has been formatted in WindowsXP as FAT32
FAT: bogus logical sector size 65535
VFS: Can't find a valid FAT filesystem on dev 08:01.
FAT: bogus logical sector size 65535
VFS: Can't find a valid FAT filesystem on dev 08:01.
VFS: Can't find ext2 filesystem on dev sd(8,1).
FAT: bogus logical sector size 65535
VFS: Can't find a valid FAT filesystem on dev 08:01.
VFS: Can't find ext2 filesystem on dev sd(8,1).
FAT: bogus logical sector size 65535
VFS: Can't find a valid FAT filesystem on dev 08:01.
// This is what it writes if the I format the usb from Windows as FAT
USB Mass Storage device found at 3
SCSI device sda: 256000 512-byte hdwr sectors (131 MB)
sda: Write Protect is off
/dev/scsi/host0/bus0/target0/lun0: p1 p2 p3 p4
I/O error: dev 08:01, sector 0
FAT: unable to read boot sector
Thanks,
Marco
--- In Kevin Cozens <> wrote:
>
> marcolamonato wrote:
> > before posting I searched the group, but I didn't find anything
> > working for me, that's why I put the message.
>
> I posted a message to this list stating what I did to get a USB key
bootable.
> It is message #7071 (http://tech.groups.yahoo.com/group/ts-
7000/message/7071).
> I would have expected the information in that message to have
gotten you up
> and running.
>
> > I have to correct what I previously wrote, I mean after startup
the
> > board has no "/dev/scsi/...", just "/dev/" with other dirs in it.
> > Then, after I execute "/usr/bin/loadUSBModules.sh", in the "/dev"
> > folder appear also "/dev/discs", "/dev/scsi/host0/..."
> > and "/dev/usb". At this time I try to "mount -t
> > vfat /dev/scsi/host0/bus0/target0/lun0/part1 /mnt/usb/" and I get
the
> > error "Invalid argument".
>
> I didn't use loadUSBModules.sh. I seem to have that on my machine
but it may
> have been something I added at one point. It loads the same modules
I load in
> my own scripts.
>
> One of the first questions to ask is whether the memory stick can
be accessed
> on another computer. If not, then you may just have a bad memory
stick and not
> a problem with the way your TS-7250 board is set up.
>
> If the memory stick is good, the next thing is to verify the set up
of your
> system. Are you using the stock kernel provided by the board maker?
Did you
> change the start up scripts/configuration? Do you still have all
the modules
> needed installed on the machine? Have you verified that all the
modules loaded
> properly?
>
> You can check if the modules are loaded by using lsmod and/or
checking the
> contents from dmesg. If in doubt, make sure the board won't run any
script to
> automatically load the needed modules on bootup, then reboot the
board. Type
> the commands to load the needed modules one at a time and verify
that each one
> loaded.
>
> If one fails to load, you have identified your problem. You will
need to find
> out why it fails to load. Once you know you have all the modules
loaded, you
> should be able to load a memory stick. After plugging one in to a
USB port,
> you can use dmesg to verify that the stick was seen by the OS. If
the OS
> doesn't see the device, you won't be able to mount it.
>
> > My usb stick memory has 128MB and has windows-generated files in
it,
> > so it comes with a FAT filesystem.
>
> If the OS does see the device, you can run the mount command. You
don't state
> whether you are trying to load a FAT16 or FAT32 formatted device
but since you
> are using 'vfat' in the mount command that shouldn't matter unless
the vfat
> module is missing or can't be loaded.
>
> --
> Cheers!
>
> Kevin.
>
> http://www.ve3syb.ca/ |"What are we going to do today,
Borg?"
> Owner of Elecraft K2 #2172 |"Same thing we always do, Pinkutus:
> | Try to assimilate the world!"
> #include <disclaimer/favourite> | -Pinkutus & the Borg
>
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/
|