Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: usb mounting troubles on AT91SAM9260-EK
PostPosted: Thu Sep 06, 2007 12:01 pm 
Offline

Joined: Mon Aug 06, 2007 2:21 pm
Posts: 9
Hi,

I am still trying to get a helloworld program up and running on linux!

I have installed the linux_demo from Atmel/TimeSys.

Since I don't have an ICE and the eth0 does not work with the linux demo, I am trying to transfer my helloworld program onto the file system using a USB stick with the file on.

It seems to recognise when I connect/disconnect the USB stick (from some daemon output), but when I attempt to mount it I get the following result:

# mkdir /mnt/usb-stick
# mount /dev/sda /mnt/usb-stick/
mount: Mounting /dev/sda on /mnt/usb-stick/ failed: No such device or address

I get this with all sda1, sda2, ...sdb, sdb1, ...etc. it seems.

Can anyone tell me what Im doing wrong.

Cheers,
Tom


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 07, 2007 10:07 am 
Offline

Joined: Thu Aug 09, 2007 10:48 am
Posts: 106
Location: Artec Design LLC, Tallinn, Estonia
copy the dmesg output, too.
The usb stick may have either just a FAT filesystem on it or a partition with FAT filesystem(more common). So usually, you should mount /dev/sda1


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 07, 2007 12:23 pm 
Offline

Joined: Mon Aug 06, 2007 2:21 pm
Posts: 9
Hyperterminal Output:

# mkdir /mnt/usbstick
# mount /dev/sda1 /mnt/usbstick
mount: Mounting /dev/sda1 on /mnt/usbstick failed: No such device or address
# (pulling out usb stick now...)
# usb 1-2: USB disconnect, address 2
# (pushing uab back in now...)
# usb 1-2: new full speed USB device using at91_ohci and address 3
usb 1-2: Product: v120w
usb 1-2: Manufacturer: HP UFD
usb 1-2: SerialNumber: A101000000000012
usb 1-2: configuration #1 chosen from 1 choice


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 07, 2007 3:37 pm 
Offline

Joined: Thu Aug 09, 2007 10:48 am
Posts: 106
Location: Artec Design LLC, Tallinn, Estonia
but dmesg? excecute dmesg command from shell and copy output, please.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 07, 2007 4:54 pm 
Offline

Joined: Mon Aug 06, 2007 2:21 pm
Posts: 9
Sorry, I misunderstood..

# dmesg
Linux version 2.6.18-rc4 (pvilchez@penfret.rfo.atmel.com) (gcc version 3.4.4) #7 sdb12 sdb8
2 Thu Oct 5 12:14:57 CEST 2006 mtdr3 sda1 sda5
CPU0: I cache: 8192 bytes, associativity 4, 32 byte lines, 64 setsom
CPU0: D cache: 8192 bytes, associativity 4, 32 byte lines, 64 setsb5
loop
Built 1 zonelists. Total pages: 16384 sdb10 sdb6
Kernel command line: mem=64M console=ttyS0,115200 init random sda
AT91: 96 gpio irqs in 3 banks024 Jan 1 00:00 .
PID hash table entries: 512 (order: 9, 2048 bytes)r-xr-x 21 4994 90 1024 Oct 2 200
Console: colour dummy device 80x30
crw---
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
cr
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
br
Memory: 64MB = 64MB totalk 1, 250 Jan 1 00:
Memory: 59520KB available (1776K code, 402K data, 92K init)
crw-r----- 1 root kmem 1, 2 Jan
Calibrating delay loop... 99.12 BogoMIPS (lpj=495616)
srw-rw-rw- 1 root root
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: okdisk 7, 0 Jan 1 00:00 loop0
checking if image is initramfs...it isn't (bad gz

usbcore: registered new driver huboop3
NET: Registered protocol family 2w-r----- 1 root kmem
IP route cache hash table entries: 512 (order: -1, 2048 bytes)
crw-r--r-- 1 root root 90,
TCP established hash table entries: 2048 (order: 1, 8192 bytes)
crw-r--r-- 1 root root 90, 2 Jan
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
crw-r--r-- 1 root root 90,
TCP: Hash tables configured (established 2048 bind 1024)
crw-r--r-- 1 root root
TCP reno registered0:00 mtd3
NetWinder Floating Point Emulator V0.97 (double pre
at91_usart.0: ttyS0 at MMIO 0xfefff200 (irq = 1) is a AT91_SERIAL
crw-r--r-- 1 root root 90, 1 J
RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize
crw-r--r-- 1 root root 90, 3 Jan 1 00:00 mtdr
NFTL driver: nftlcore.c $Revision: 1.98 $, nftlmount.c $Revision: 1.41 $ 1 root root 90, 5 Jan 1 00:00 mtdr2
physmap platform flash device: 00800000 at 10000000 1 root root 90, 7 Jan 1 00:00 mtdr3
CFI: Found no physmap-flash.0 devi

drwxr-
Device IDsoot ro
maf_id = EC, dev_id = 8000 pts
No NAND device found!!!
brw-r-
at91_nand_probe nand_scan failed 0 Jan 1 00:00 ram0
usbmon: debugfs is not available
brw-r--r-- 1
at91_ohci at91_ohci: start Jan 1 00:00 ram1
at91_ohci at91_ohci: AT91 OHCI
brw-r--r
drivers/usb/core/inode.c: creating file 'devices'm2
drivers/usb/core/inode.c: creating file '001' 1, 3 Jan 1 00:00 ram3
at91_ohci at91_ohci: new USB bus registered, assigned bus number 1 root 1, 8 Jan 1 00:00 random
at91_ohci at91_ohci: supports USB remote wake
at91_ohci at91_ohci: OHCI controller state
brw-r--r-- 1 root
at91_ohci at91_ohci: OHCI 1.0, NO legacy support registers
brw-r--r-- 1 ro
at91_ohci at91_ohci: control 0x083 HCFS=operational CBSR=3
brw-r--r--
at91_ohci at91_ohci: cmdstatus 0x00000 SOC=0da13
at91_ohci at91_ohci: intrstatus 0x00000044 RHSC SF 8, 14 Jan 1 00:00 sda14
at91_ohci at91_ohci: intrenable 0x8000001a MIE UE RD WDH 1 root disk 8, 15 Jan 1 00:00 sda15
at91_ohci at91_ohci: hcca frame #0005

at91_ohci at91_ohci: roothub.portstatus [0] 0x00000100 PPS Jan 1 00:00 sda5
at91_ohci at91_ohci: roothub.portstatus [1] 0x00010101 CSC PPS CCS 1 00:00 sda6
usb usb1: default language 0x0409disk 8, 7 Jan 1 00:00 sd
usb usb1: new device strings: Mfr=3, Product=2, SerialNumber=1brw-r--r-- 1 root disk 8, 8 Jan 1 00:00 sda8
usb usb1: Product: AT91 OHCI
usb usb1: Manufacturer: Linux 2.6.18-rc4 ohci_hcd1 00:00 sda9
usb usb1: SerialNumber: at91
usb usb1: u
usb 1-0:1.0: uevent
hub 1-0:1.0: usb_probe_interfacedisk 8, 26 Jan 1 00:00 s
hub 1-0:1.0: usb_probe_interface - got id
brw-r--r-- 1 r
hub 1-0:1.0: USB hub foundan 1 00:00 sdb11
hub 1-0:1.0: 2 ports detected
brw-r-
hub 1-0:1.0: standalone hub 8, 28 Jan 1 00:00 sdb12
hub 1-0:1.0: no power switching (usb 1.0)
brw-r--r-- 1 root
hub 1-0:1.0: no over-current protection
hub 1-0:1.0: power on to power good time: 4ms disk 8, 30 Jan 1 00:00 sdb14
hub 1-0:1.0: local power source is good
brw-r--r-- 1 root
hub 1-0:1.0: trying to enable port power on non-switchable hub

brw-r--r-- 1 root disk
mice: PS/2 mouse device common for all mice
i2c /dev entries driver disk 8, 23
clk_get_rate(twi_clk) = 99328000
at91_i2c at91_i2c: AT91 i2c bus driver.sk 8, 24 Jan 1 00:00 sdb8
TCP bic registered
NET: Registered protocol family 1root disk 8, 25 Jan 1
NET: Registered protocol family 17
MMC clkdiv = 132. mcck = 373413. ios->clock = 375000
MMC clkdiv = 132. mcck = 373413. ios->clock = 375000
RAMDISK: ext2 filesystem found at block 0
RAMDISK: Loading 4096KiB [1 disk] into ram disk... done.
hub 1-0:1.0: debounce: port 2: total 100ms stable 100ms status 0x101
VFS: Mounted root (ext2 filesystem).
Freeing init memory: 92K
at91_ohci at91_ohci: GetStatus roothub.portstatus [1] = 0x00100103 PRSC PPS PES
CCS
usb 1-2: new full speed USB device using at91_ohci and address 2
at91_ohci at91_ohci: GetStatus roothub.portstatus [1] = 0x00100103 PRSC PPS PES
CCS
usb 1-2: default language 0x0409
usb 1-2: new device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-2: Product: v120w
usb 1-2: Manufacturer: HP UFD
usb 1-2: SerialNumber: A101000000000012
usb 1-2: uevent
usb 1-2: configuration #1 chosen from 1 choice
usb 1-2: adding 1-2:1.0 (config #1, interface 0)
usb 1-2:1.0: uevent
drivers/usb/core/inode.c: creating file '002'
hub 1-0:1.0: state 7 ports 2 chg 0000 evt 0004
#

Cheers


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 10, 2007 7:45 pm 
Offline

Joined: Thu Aug 09, 2007 10:48 am
Posts: 106
Location: Artec Design LLC, Tallinn, Estonia
Do you have the sda, sda1 device nodes at /dev?
Has your kernel SCSI disk support and usb mass storage support turned on at all?

try to excecute
Code:
cat /proc/partitions

when the usb flash is inserted.

try
Code:
ls -al /dev/sd*

to check if the dev nodes are there and the major/minor numbers are correct.

The 2.6.18-rc4 kernel is really old (when considering the fast development of AT91), so you should definitely consider recompiling your kernel from some later version (I develop on the latest 2.6.23-rc5 at the moment - the 2.6.23 will go stable probably before my product release date). So I recommend you using the latest kernel with the latest extra AT91 patches from http://maxim.org.za/at91_26.html .


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 10, 2007 8:02 pm 
Offline

Joined: Mon Apr 16, 2007 6:34 pm
Posts: 41
Location: Fargo, ND, USA
You probably need to create the device node.

Code:
mknod /dev/sda1 b 8 1


Also, mount with the -t vfat option, otherwise it mangles the filenam~1.

Also, build your own kernel, you'll almost surely need to do it eventually. See the threads about Buildroot.


Top
 Profile  
 
 Post subject: Re: usb mounting troubles on AT91SAM9260-EK
PostPosted: Fri Aug 12, 2011 8:09 am 
Offline

Joined: Mon Aug 08, 2011 4:08 am
Posts: 3
1.Need make sure Kernel can support SCSI
2.Need make sure kernel can support VFAT
3.Need enable CRC_T10DIF set to yes
4.Need mount with -t vfat


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 23 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: