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 /m
nt
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
Содержание AM3517
Страница 6: ...Fig1 1 SOC8200 Single Board Computer...
Страница 21: ...2 2 14 JTAG Interface PIN Description 1 VCC 2 TMS 3 TDI 4 NTRST 5 TD0 6 RTCK 7 TCK 8 EMU0 9 EMU1 10 GND...
Страница 24: ...Digital output Control independently Table 3 1 BSP specifications...
Страница 60: ...Appendix Appendix I Dimension Fig 2 2 Dimension Drawing...
Страница 62: ...3 When the following appears select Continue 4 Please wait until the installation is completed...
Страница 63: ......
Страница 76: ......