advertisement
Embest Technology Co., Ltd 73
Booting from dvsdk ... reading uImage
3175384 bytes read
## Booting kernel from Legacy Image at 80007fc0 ...
Image Name: Linux-3.2.0
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3175320 Bytes = 3 MiB
Load Address: 80008000
Entry Point: 80008000
Verifying Checksum ... OK
XIP Kernel Image ... OK
OK
Starting kernel ...
…… //Omitted part
Arago Project http://arago-project.org am335x-evm ttyO0
Arago 2011.09 am335x-evm ttyO0 am335x-evm login: root //Type root to log in
4) TISDK file system is featured with some applications running on QT which allow users find and run example programs easily through a friendly graphic interface.
5) U-boot configuration
The system image supports 4.3-inch display by default. If you are working with a display of other size, you need to modify the parameters in UBOOT. Please refer to 3.8.1 Selecting Display Mode for details.
3.9 The Development of Applications
This section mainly introduces the development of application programs, and illustrates the general process of application programs development through examples.
Development example of LED application program
1) Composing Source Code
Copyright © 2012 Embest Technology SBC8600B User Manual
Embest Technology Co., Ltd 74
The following sentences are led_acc.c source code: control the three LEDs on the development board to flash in a way of accumulator.
}
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/ioctl.h>
#include <fcntl.h>
#define LED1 "/sys/class/leds/sys_led/brightness"
#define LED2 "/sys/class/leds/user_led/brightness" int main(int argc, char *argv[])
{ int f_led1, f_led2; unsigned char i = 0; unsigned char dat1, dat2; if((f_led1 = open(LED1, O_RDWR)) < 0){ printf("error in open %s",LED1); return -1;
}
} if((f_led2 = open(LED2, O_RDWR)) < 0){ printf("error in open %s",LED2); return -1;
} for(;;){ i++; dat1 = i&0x1 ? '1':'0'; dat2 = (i&0x2)>>1 ? '1':'0'; write(f_led1, &dat1, sizeof(dat1)); write(f_led2, &dat2, sizeof(dat2)); usleep(300000);
2) Cross compiling
arm-none-linux-gnueabi-gcc led_acc.c -o led_acc
3) Downloading and running
Copyright © 2012 Embest Technology SBC8600B User Manual
Embest Technology Co., Ltd 75
Downloading to the development board system through TF card, USB flash disk or network and enter the directory where the led_acc file is saved, and then execute the following instructions to run led_acc in the background.
./led_acc &
Copyright © 2012 Embest Technology SBC8600B User Manual
advertisement
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Related manuals
advertisement
Table of contents
- 6 CHAPTER 1 PRODUCT OVERVIEW
- 6 1.2.1 Mini8600B
- 8 1.2.2 Extension Board
- 11 CHAPTER 2 HARDWARE SYSTEM
- 11 2.1.1 Instroduction to CPU
- 11 2.1.2 CPU Features
- 13 2.2.1 NAND Flash H27U4G8F2DTR-BC
- 13 2.2.2 DDR H5TQ2G83CFR-H9C
- 13 2.2.3 Ethernet AR
- 14 2.2.4 MAX
- 15 2.3.1 Mini8600B
- 21 2.3.2 Extension Board
- 30 CHAPTER 3 LINUX OPERATING SYSTEM
- 32 3.4.1 Establishment of development environment
- 34 3.4.2 System Compilation
- 36 3.4.3 System Customization
- 39 3.5.1 NAND
- 40 3.5.2 SD/MMC
- 41 3.5.3 LCDC
- 42 3.5.4 Audio in/out
- 43 3.6.1 GPIO_keys Driver
- 48 3.6.2 GPIO_leds Driver
- 51 3.7.1 Update of TF Card System Image
- 55 3.7.2 Update of NAND Flash
- 58 3.8.1 Selecting Display Mode
- 60 3.8.2 Testing
- 75 3.8.3 Demo
- 78 3.9 The Development of Applications
- 81 CHAPTER 4 WINDOWS EMBEDDED COMPACT 7 OPERATING SYSTEM
- 83 4.4.1 Installation of IDE (Integrated Development Environment)
- 83 4.4.2 Extract BSP and project files to IDE
- 84 4.4.3 Sysgen & BSP Compilation
- 84 4.4.4 Introduction of Drivers
- 86 4.5.1 Update of TF Card
- 91 4.5.2 Update of NAND Flash Image
- 92 4.6.1 How to use openGL ES demo
- 93 4.7.1 Application Interfaces and Examples
- 93 4.7.2 GPIO Application Interfaces and Examples
- 96 APPENDIX
- 125 TECHNICAL SUPPORT AND WARRANTY