Embest AM3517 User Manual Page 47

  • Download
  • Add to my manuals
  • Print
  • Page
    / 76
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 46
3.4.3.3 Test
Update kernel image file ulmage in SD card, copy file g_file_storage.ko to the SD card and reboot
the system from SD. Execute the following commands to stimulate the SOC8200 into 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 line (USB mini B to USB A) to connect the development board and PC, PC will give
a hint that usb mass storage device is found; a new mobile hard disk is found and users can
perform operation for it.
3.4.4 The Development Of Application
This section will introduce how to conduct the development of application on the SOC8200
hardware platform, including the formation of SOC8200 software environment. Examples will be
taken to show the general process of the development of SOC8200 application.
3.4.4.1 LED application development
1.Coding
Led_acc.c source code, The led lamps in the development board will flash.
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/ioctl.h>
#include <fcntl.h>
Please make sure that the kernel image has been updated, otherwise, module
g_file_storage.ko will fail to load and the similar tips will show:
insmod: cannot insert '/media/mmcblk0p1/g_file_storage.ko': Device or resource
busy
Page view 46
1 2 ... 42 43 44 45 46 47 48 49 50 51 52 ... 75 76

Comments to this Manuals

No comments