Embest AM3517 Specifications Page 59

  • Download
  • Add to my manuals
  • Print
  • Page
    / 98
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 58
Page | 53
4.6.2 Compilation
Save the configuration and execute the following command to recompile the
kernel:
make
make uImage
After the above steps are finished, the arch/arm/boot directory will contain
a new kernel image uImage; and drivers/usb/gadget directory will contain a
new module file g_file_storage.ko.
4.6.3 Test
Update the kernel image file ulmage on the SD card, copy the file
g_file_storage.ko to the SD card and reboot the system from the SD.
Execute the following commands to stimulate the SOC8200 into acting as a
USB mass storage device for PC’s visit:
root@DevKit8000:~# mount t vfat /dev/mmcblk0p1 /mnt
root@DevKit8000:~# cd /mnt
root@DevKit8000:/mnt# insmod g_file_storage.ko file=/dev/mmcblk0p1 stall=0
removable=1
g_file_storage gadget: File-backed Storage Gadget, version: 7 August 2007
g_file_storage gadget: Number of LUNs=1
g_file_storage gadget-lun0: ro=0, file: /dev/mmcblk0p1
musb_hdrc musb_hdrc: MUSB HDRC host driver
musb_hdrc musb_hdrc: new USB bus registered, assigned bus number 2
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
Use the USB cable (USB mini B to USB A) to connect the development board
to the PC, the PC will notify you that a USB mass storage device has been
found.
Note:
Please make sure that the kernel image has been updated, otherwise, the
module: g_file_storage.ko will fail to load and a message similar to the
following will be displayed: insmod: cannot insert
'/media/mmcblk0p1/g_file_storage.ko': Device or resource busy
Page view 58
1 2 ... 54 55 56 57 58 59 60 61 62 63 64 ... 97 98

Comments to this Manuals

No comments