USB HDD on mini2440?

baradhili
Dumb Question, but has anyone attached a USB HDD to this board? the manual
is .. vague..

If someone has - any ideas of transfer rates?

Thanks!

Kailas V. Shetye
I have done this.  but I hvnt verified transfer rates.

I only checked if I can attach my USB HDD.  Currently it is formatted with
NTFS, so i added support for NTFS in kernel and tested.  later on I changed
my mind and decided that i will use ext3.  So needs to format the HDD and
copy the data somewhere before formatting.

If you really want this data, i can do this on priority.

regards,

Kailas

baradhili
Not so important, it sounds like it wasn't horribly slow :)
I'm looking for a replacement for my slug :)

Satish Khire
Hi Kailas

Can you elaborate how you added support for NTFS?

My Mini2440 has 2.6.32 and am finding how to get support for NTFS USB HDD.

Thanks in advance

Satish

Kailas V. Shetye
Satish,

I have used following:

CONFIG_NTFS_FS=y
CONFIG_NTFS_DEBUG=y
CONFIG_NTFS_RW=y

Regards,

Kailas

Satish Khire
Thanks for your reply, Kailas

Unfortunately this is not working. When connected, /udisk does not show
anything. However on plugging in the USB HDD, following is diplayed on the
terminal. Kernel is 2.6.32. Initially gave all the three CONFIG_s and then
inserted USB HDD with NTFS. Please note same USB HDD when formatted FAT /
FAT32 works fine.

[root@FriendlyARM /]# CONFIG_NTFS_FS=y
[root@FriendlyARM /]# CONFIG_NTFS_DEBUG=y
[root@FriendlyARM /]# CONFIG_NTFS_RW=y
[root@FriendlyARM /]# usb 1-1: new full speed USB device using s3c2410-ohci
and
address 3
usb 1-1: New USB device found, idVendor=067b, idProduct=2506
usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-1: Product: Mass Storage Device
usb 1-1: Manufacturer: Prolific Technology Inc.
usb 1-1: SerialNumber: 00
usb 1-1: configuration #1 chosen from 1 choice
scsi1 : SCSI emulation for USB Mass Storage devices
scsi 1:0:0:0: Direct-Access     TOSHIBA  MK3021GAS        GA12 PQ: 0 ANSI:
0
sd 1:0:0:0: Attached scsi generic sg0 type 0
sd 1:0:0:0: [sda] 58605120 512-byte logical blocks: (30.0 GB/27.9 GiB)
sd 1:0:0:0: [sda] Write Protect is off
sd 1:0:0:0: [sda] Assuming drive cache: write through
sd 1:0:0:0: [sda] Assuming drive cache: write through
 sda: sda1
sd 1:0:0:0: [sda] Assuming drive cache: write through
sd 1:0:0:0: [sda] Attached SCSI disk
FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem
will be case sensitive!

Please let me know if you have any clues.

Thanks & best regards

Satish

Kailas V. Shetye
sathish,

these parameters have to be set while compiling the kernel.

You have to build your kernel with these parameters.

regards,

Kailas

Kailas V. Shetye
Sathish,

1 more thing.  above settings are for NTFS. if you need to access FAT
partition then you need to set following:

CONFIG_FAT_FS=y
CONFIG_VFAT_FS=y
CONFIG_FAT_DEFAULT_CODEPAGE=936
CONFIG_FAT_DEFAULT_IOCHARSET="utf8"


regards,

Kailas

Satish Khire
Thanks Kailas.

Can you please tell me where (in which file) I will have to put in those
options?

Do you mean if we need to have FAT, we should compile Kernel with FAT
options and if we need to have NTFS, we should compile Kernel with NTFS
options? Can we have both options? So that I will be able to access either
of them, depending on which HDD (NTFS or FAT) I have plugged in at a
particular moment?

Sorry if these questions are very basic and irritating, I am a novice.

Best regards

Satish

Kailas V. Shetye
Satish,

Check your DVD which came along with the product.  In that you will find
kernel source.  You have to copy that into your PC.  Then copy the ARM
cross compiler toolchain.

you will also find some "config_mini2440*" files in the kernel source. 
Depending on the hardware(LCD) you have, you need to use the file.  copy
this file to ".config" in some other folder and then from kernel source
directory run the command "make O=/your_config_file_directory".

If you are still not sure, you can write a mail to me at kvshetye at yahoo
dot com.

regards,

Kailas

billymcg
Hello Kailas,

As well as Baradhili, I would very interesting in seeing what transfer
rates you get to/from your hardisk as i plan to use one of these boxes as a
small NAS device. If you do find the time to test it please kindly post the
results here :)

Thanks,

Will.

Satish Khire
Hi Kailash

I put in your patch

CONFIG_NTFS_FS=y
CONFIG_NTFS_DEBUG=y
CONFIG_NTFS_RW=y

in .config. Commented the same for FAT and then compiled and reloaded the
kernel on mini2440.

However it doesnot work.

When configured for FAT, it works fine. However when configured for NTFS,
there is nothing listed under /udisk folder.

Is there is anything else I am missing?

Satish

skip2816
look for /dev/sda1..../dev/sdb1 or so. /udisk is a strange hack from the
automounter. The automounter mounts only FAT to /udisk, it ignores ext2
too. Maybe you have to mount it by hand or provide your own mount script in
/etc/mdev.

Satish Khire
That works.

Thanks a lot skip2816. :-)

Peterp
Hello Satish,

can you tell us the transfer rated from and to the usb disk?

Thanks Pete

Satish Khire
Unfortunately we are not measuring transfer rate and we are just loading
the USB disk at the moment.

If you can explain me how to measure, I can experiment for you and let you
know within reasonable time.

Satish8789

Satish Khire
Unfortunately we are not measuring transfer rate and we are just loading
the USB disk at the moment.

If you can explain me how to measure, I can experiment for you and let you
know within reasonable time.

Satish

Satish Khire
Dear skip2816

Thanks a lot for your help.

However I am facing a new problem. The NTFS USB Disk is opening in read
only mode. Do you have any clue on why this could be happening and what
could be solution?

Thanks

Satish

Message on terminal:
NTFS-fs error (device sda1): load_system_files(): Volume is dirty. 
Mounting read-only.

ankit
hi all,
i have plugged a pen drive in mini2440 but am not able to copy a simple
text or exe file on the board. Please help! i only need to run a compiled
file from my pc on the board. Thanks in advance. :)

Balaji
Am facing the problem as Ankit above too.. 

Any remedies?