Thus can attach a USB Disk for on-drone HD Video storage.
My initial work was done at this thread (3G Modem):
http://www.ardrone-flyers.com/forum/vie ... 0&start=14" onclick="window.open(this.href);return false;
But stuck there.
Thanks the author of this Blog:
http://embedded-software.blogspot.com/" onclick="window.open(this.href);return false;
From the Blog: The PHY has been disabled by "program.elf". In order to activate the USB as Host, GPIO_127 needs to be set to input level. This can be done either by ioctl or by the gpio command:
# gpio 127 -d i
Based on above info, I continued my work from the stuck point.
Modules need to be compiled and loaded:
Code: Select all
# lsmod
Module Size Used by Tainted: G
vfat 10432 1
dwc_otg 71820 0
sd_mod 23508 2
fat 46364 1 vfat
nls_iso8859_1 4096 1
nls_cp437 5760 1
nls_utf8 1888 0
nls_base 7040 5 vfat,fat,nls_iso8859_1,nls_cp437,nls_utf8
p6_sdhci 3588 0
Code: Select all
# fdisk -l
Disk /dev/sda: 2063 MB, 2063597568 bytes
16 heads, 32 sectors/track, 7872 cylinders
Units = cylinders of 512 * 512 = 262144 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 7872 2015216 b Win95 FAT32
# mount /dev/sda1 /mnt
# df -k
Filesystem 1K-blocks Used Available Use% Mounted on
ubi1:system 12268 6224 5380 54% /
tmp 63036 348 62688 1% /tmp
dev 63036 0 63036 0% /dev
ubi0:factory 4928 40 4600 1% /factory
ubi2:update 13532 28 12780 0% /update
ubi2:data 69152 53348 12236 81% /data
/dev/sda1 2011268 1873252 138016 93% /mnt
# cd /mnt
# ls -l
drwxr-xr-x 4 root root 4096 Dec 21 2010 - BACKUP -
drwxr-xr-x 2 root root 4096 Mar 9 2009 - HOMEWORK -
drwxr-xr-x 2 root root 4096 Jun 4 2009 - MUSIC -
drwxr-xr-x 2 root root 4096 Mar 14 2008 - VIDEO -
-rwxr-xr-x 1 root root 49288 Dec 14 2010 NORBOTE_V2.jpg
-rwxr-xr-x 1 root root 2568594 May 29 2010 packets.pcap
-rwxr-xr-x 1 root root 1993186 Jun 6 2010 packets2.pcap
drwxr-xr-x 3 root root 4096 Sep 29 2010 recycler
-rwxr-xr-x 1 root root 40484 Sep 18 2010 theV.jpg
# cp packets.pcap /data
# ls -l /data/p*
-rwxr-xr-x 1 root root 2568594 Jan 1 00:20 /data/packets.pcap