Home

Pardazesh Sabz Hoonam (پردازش سبز هونام) http://www.esys.ir/ IRAN

image

Contents

1. 2 rz command to download files to the development board in the serial terminal input rz command to start the transfer over from the PC to receive files Then in the HyperTerminal window right click the pop up menu select Send File set to Send the file and use the protocol as shown the development board began to send the file AEX BH Ds data mis E D data I See You np tik Znoden SRS W Point send the board began to receive the file as shown 88633449 http www esys ir 9821 90963995 info Gesys ir a A Embedded Designer in IRAN ardazesh Sabz A ttyz0 BY inode Gifts If EERIE D datel SerTounp3 ERSTE ERX vit 1 1 k EERS Bitk k o tk sone azzx eix ER 00 01 15 Tk 00 08 02 F48 11293 eps caa Transfer is completed will be the same in the current directory the file name of the file you can use the md5sum command to verify that the file and source files are the same 1 2 6 The LED control panel Test the program name led player Remarks Source code file name led player c led c Source code location of the CD Extract Linux examples tgz available Development board device name dev leds corresponding to Corresponding to the kernel driver Linux 2 6 36 drivers char S3C6410 source code TFA_leds c Other Test the program name led player leds Remarks Source code or the name of eds cgi In the development board the source code package S
2. Embedded Designer in IRAN ardazesh Sabz M S3C6410 TFA Linux Developer s Guide on 4 p ono Tet eek pipip saps Onon gs l z u Sm Ts 5 ats zp Dr i 980188633449 5 a http www esys ir 82188963982 info esys ir E a Embedded Designer in IRAN due AIO ee ardazesh Sabz 88633449 http www esys ir 982188963982 info Oesys ir p ee Embedded Designer in IRAN due AIO ee ardazesh Sabz 88633449 http www esys ir 982188963982 info Oesys ir p ee Embedded Designer in IRAN ardazesh Sabz S M TABLE OF CONTENTS S3C6410 TFA User M tid l ssisss ssssssassssass sdssassdzosa bab sd sos s basne tad ja Serenan ASNE sosseesad dads aSo so Sioni aiara ni 1 S3C6410 TFALinux development guidelines ccsccccsssesssssssssscceeccesssssccsseceeees soesssessesossessseseeeeeeesse 8 1 1 the first test of Linux graphical interface Qtopia 2 2 0 Qtopia4 and QtE 4 7 0 System 8 1 2 development board through the serial port terminal Operations cccccssees csecessssceeeceeeeeeeees 8 Play mp3472 1 0 6 4 4 600 066 sausczeceovstsecccccccsseyceccssssessssececececousss suis ST E 9 1 2 2 How to stop the program running ccsccccccccsssssssssssscceesnes coccsecssssssseesceeeenons senseessssscenseeesss 9 1 23 use the USB HDDY 4230 aa 9 1 2 4 SD card PEPEE cages se s asa MMe S rrF cc isos ces asos seeded cseccce ss k e
3. wew cache split netease con ping statistics 7 packets transmitted 5 packets received 28 packet Loss round trip min avg m x 131 9 196B 1 1398 1 ns root FriendlyAnn Jt CLE 0 17 4 ANSIY L15200 3 1 1 2 18 How to set the MAC address Development board used the MAC address is soft in nature so you can reset it through the ifconfig command to fit in a network environment with the use of multi chip board case as follows First look at the current use ifconfig mac address run Ifconfig attention to the back do not tell anything 4 987 188633449 info esys ir REM pats 88963982 yes m Embedded Designer in IRAN ardazesh Sabz M tty50 USSR tO SED EEV PRNO eq Shy D a 3 ot e lt ES 0 10 AE 115200 8 H 1 You can see the current mac address 08 90 90 90 90 90 which is the default in the NIC driver mac address it has been coded into the kernel unless you change the network card driver source code and re compiled a new kernel To dynamically change the operating system mac address first close the current network and reset the mac address using ifconfig Ifconfig ethO down Ifconfig ethO hw ether 00 11 AA BB CC DD tips a b c d e f can be lower case and then open the network and view settings after using the ifconfig mac address use the ping test network is still Available through Ifconfig ethO up Ifconfig Ping 192 168 1 1 Embedded Designer in IRAN
4. 1 2 8 Serial Testing Description armcomtest is a set to facilitate testing and development of simple and practical under linux serial port terminal program that uses standard system calls and hardware General Linux system boot the serial port 0 1 respectively corresponding to the device name dev ttySACO 1 2 3 Test the serial port 2 need help with serial port of another PC use the provided serial cable and a small expansion board optional connect the COM2 serial port and another PC and set the PC mentioned above HyperTerminal to 115200 baud no flow control and other default In the command line enter Armcomtest d dev ttySAC1 o Then if you enter characters on another PC HyperTerminal appears and vice versa If you want to test the serial port 3 you need to connect a small expansion board COM3 and the command line type Armcomtest d dev ttySAC2 0 Here is the test of the interface SS a _ http www esys ir 2188963982 info Gesys ir l Embedded Designer in IRAN ardazesh Sabz SH AOD Bey FA tq had No device fan DAL s3o2Guu i2s SKI XI_UDA134X Sel Audio driver TURNE Sol budio Codes UD 134 ce zdcd mm ils aspping ok KEN device liz 7 ECRANE UDAIIAX UDA114X TCP cubic registered RPC Registered udp transport sodule RPC Registered tcp transport acdule foe lt 3c 410 rtc setting system clock to 2080 02 10 11 43 18 UTC 347079 J yatta dev ia 32505858 nam is ntdbice
5. as 11 1 2 5 How to transfer files to each other with a PC serial port ccscsssssessssssseessssssessssssseeeess 12 1 2 6 Control panel LED ssss ssss ss a f 3 5 ss vos sa rot aad cccctssssscesceseMggbessssstean dass corossd zsss m ds 14 13257 Test panel keys lt s lt lt lt cie cecesssssssssc etetessss0sss osssssssstsseetecsss sssvssseceeeteesssetsissesece ESENES AARRE 15 1 2 8 Serial Testing ii cccccsiciscMiecscccecssesceccdeti esos a assanis naaa wise pasas a si aasas rss s a a 16 1 2 9beeper 41 aa a a aaa a aaa cocesssssssssssscccccsssesssstsssssecccssesssssisysesessssseiecssversccucssssessseseee 17 1 2 10 LCD backlight adjustment contrOl ccscccccsssssssssceesccccennne sossocoosssssssssodibss ssssossssassssosssss 18 12 11 CEStHZC EEPROM s cissscecsssssvecsessesecssvevscccsessonse concetecstcecerccoveaseccsesucsesscuscccnccccccocoisaressvesssesssees 18 1 2 12 AD conversion tSt secsi nnns Qe scene a s ca aiaia sssaaa A neisse dreissa 19 1 213 Test TIV OUT sevtssscsesessesssvstevectestesesrsvttseeeslorssucssscasssesreceucesosteccesosccccsececteacesoteceseccecteseuserecsccess 20 1 2 14 Test Media Player aaa PPS aaa attessessaassssessosess 21 1 2 15 use a USB wireless network card or SD WiFi scccccssssssssceescee sessccccesccssssssssssscceeaseaes cesses 21 1 2 16 use telnet on tHE DDS 5 5 M aaa a
6. D a 4 05 F SF rien 1 AEK hu ether H 11 zadzbb ec za iendigiEH 7 et up riendl sien 7 Fi Link r r dllzd r WHS pea SHR SI eo Laat F TTF TH De Mackie le HU 1 TORS ATSs1S08 Metrics HW 4 i 5 Ard pedind peerrims sa fram B Popped A avarrus carriersi si trae si Fopped 0 ieriun t carrier sa Crij ij Lens I Bytes cM P U E 1k 5 data bytes icmg_c g ttl 6k tine 9 m Liel 6 41 01 AST TEM FIL 1 2 19 How to use Telnet to log on development board Description The system used in 6410 and 2440 part of the program effect is the same use the following screenshot S3C2440 FA Screenshot for reference only subject to the actual situation Development board start running in fact has started a Telnet service so users can log on remotely through the network board In the Windows command line window type telnet 192 168 1 230 shown in the login screen enter root No password to enter the system infinity 2000 mp3 lih linuxre Loot Hf ound rove opt Lrcoterrien ly ks JM Embedded Designer in IRAN ardazesh Sabz a 1 2 22 using ftp to transfer files Description The system used in 6410 and 2440 part of the program effect is the same use the following screenshot S3C2440 FA Screenshot for reference only subject to the actual situation Development board start running in fact has started a Telnet service so users can Both in the windows system or
7. K4 GPN3 EINT3 http www esys ir a ardazesh Sabz Embedded Designer in IRAN Include lt linux module h gt Include lt linux kernel h gt Include lt linux fs h gt Include lt linux init h gt Include lt linux delay h gt Include lt linux poll h gt Include lt linux irq h gt Include lt asm irg h gt Include lt asm io h gt Include lt linux interrupt h gt Include lt asm uaccess h gt Include lt mach hardware h gt Include lt linux platform_device h gt Include lt linux cdev h gt Include lt linux miscdevice h gt Include lt mach map h gt Include lt mach regs clock h gt Include lt mach regs gpio h gt Include lt plat gpio cfg h gt Include lt mach gpio bank nh gt Include lt mach gpio bank lh gt Define DEVICE_NAME buttons struct button_irq_desc int irq int number char name static struct button_irq_desc button_irqs K5 GPN4 EINT4 K6 GPN5 EINT5 K7 GPL11 EINT19 K8 GPL12 EINT20 Listing 88633449 9821 88963982 InfOo G eSyS 1I http www esys ir OSS is Embed ded Designer in IRAN ardazesh Sabz IRQ_EINT 0 0 KEYO IRQ_EINT 1 1 KEY1 IRQ_EINT 2 2 KEY2 IRQ_EINT 3 3 KEY3 IRQ_EINT 4 4 KEY4 IRQ_EINT 5 5 KEY5 IRQ_EINT 19 6 KEY6 IRQ_EINT 20 7 KEY7 ie static volatile char
8. SCOTOPSHSCeL em Cn Fila FY EH CERNET RF panes 1 5377 25009 ma IPA 17 in iat guest z Mudy Sezal Ot 3 SO BD Bea VT Cale Lise 1 2 17 How to set the network to access the Internet First make sure your network environment can normally access the internet please write down your network environment used by the gateway IP Address such as have here is 192 168 1 1 then use the route set Route add default gw 192 168 1 1 Then you can directly access the numeric IP addresses on the Internet such as the ping the kapok of South BBS its IP Address 202 112 17 137 Ping 202 112 17 137 Shown that the network can ping the outside Embedded Designer in IRAN ardazesh Sabz tty mpeg TN EFD SE BFW He R why D s53 08 m roet friendlgA h 4 route add default ow 192 168 141 1 roet Friendlgh h 4 ping 262 112 17 197 PING 20Z2 112 17 137 202 112 17 197 56 data bytes tk bytes from 202 912 917 137 icrp_srg B ttl 52 timr 4509 6 ns s bytes frem 202 112 417 137 icrmp_seg 1 ttles2 time 1426 0 m5 6S bytes from 202 112 147 137 Lemp_seqe ttleS2 timr fkh 8 ns 1 Eid 0 00 22 ASIA 115200 O 5 1 External network to be able to ping the real name site also need to set up DNS server first check your current network uses DNS server IP address ask your network administrator 7x latcrnet K T cP iri Bt ma mas ei RE MURR os See TATE m s geie M oss m ibit V SH Toternet MS ee OSE
9. if write TtyFd amp Char 1 lt 0 Error strerror errno if OutputToStdout if UseColor fwrite V x1b 01 34m 1 8 stdout OutputStdChar stdout if UseColor _ http www esys ir 82122963982 info esys it a Embedded Designer in IRAN A FI oa ee ardazesh Sabz i fwrite Vx1b 00m 1 8 stdout fflush stdout if FD_ISSET TtyFd amp ReadSetFD while read TtyFd amp Char 1 1 static int EscKeyCount 0 WaitFdWriteable CommFd if write CommFd amp Char 1 lt 0 Error strerror errno if OutputToStdout if UseColor fwrite x1b 01 31m 1 8 stderr OutputStdChar stderr if UseColor fwrite x1b 00m 1 8 stderr fflush stderr if Char x1b EscKeyCount if EscKeyCount gt 3 Else goto ExitLabel EscKeyCount 0 ExitLabel if tcsetattr TtyFd TCSANOW amp BackupTtyAttr lt 0 Error Unable to set tty return 0 1 9 7 UDP network programming Program source code instructions 88633449 http www esys ir 982138963982 info Gesys ir TM Embedded Designer in IRAN ardazesh Sabz Driver source code directory opt S3C6410 TFA linux linux 2 6 36 drivers net Driver Name dm9000 c Major number of the drive without Device name eth0 network equipment is not in the dev directory the
10. printf V n 4 x addr else if i 8 0 printf printf 2 x ch fflush stdout fprintf stderr n n return 0 static int write_to_eeprom struct eeprom e int addr int i for i 0 addr 0 i lt 256 i addr if i 16 0 printf V n 4 x addr else if i 8 0 printf printf 2 x i fflush stdout die_if eeprom_write_byte e addr i write error fprintf stderr n n 88633449 http www esys ir 98212296398 info esys ir ee Ot 7 i OZ g Embedded Designer in IRAN A ane ee ardazesh Sabz i return 0 int main int argc char argv struct eeprom e int op op 0 usage _if argc 2 argv 1 O Argv 1 2 Thus answer is 18 0 op argv 1 1 fprintf stderr Open dev i2c 0 with 8bit mode n die_if eeprom_open dev i2c 0 0x50 EEPROM_TYPE_8BIT_ADDR amp e lt 0 unable to open eeprom device file Check that the file exists and that it s readable switch op case r fprintf stderr Reading 256 bytes from 0x0 n read_from_eeprom amp e 0 256 break case W fprintf stderr Writing Ox00 Oxff into 24C08 V n write_to_eeprom amp e 0 break default usage_if 1 exit 1 eeprom_close amp e return 0 1 9 6 serial programming examples Program source c
11. rmmod mini6416 hello_module Good bye Mini6416 module was removed root Friend1lyARM 2 6 36 Friend1lyARM CEE 5 29 02 ANSIW 115200 8 N 1 1 10 2 LED driver In the previous section we introduce a simple Hello Module driver module it is just some information from the serial output does not correspond to the hardware to operate the board in the embedded Linux system similar to most of the hardware needed driver to operate such as touch screen network cards audio etc where we introduce some simple typical example the driver actually has a complex reference code do not have to write from scratch drive From the beginning of this section we will introduce some of the drivers and hardware are closely related they are the real drivers Embedded Linux Write the actual drive it is necessary to understand the associated hardware resources such as the use of registers physical address interrupt etc where LED is a very simple example it uses the following hardware resources The development board used in the four LED s hardware resources LED corresponding to the name of the IO registers The corresponding CPU pin LED1 GPK4 R23 LED2 GPK5 R22 LED3 GPK6 R24 LED4 GPK7 R25 IO are used to operate the mouth it is necessary to set the registers used by them we need to call some of the existing function or macro is used in this readl and writel they will report directly to the appropriate read and write
12. Owner THIS MODULE Open s3c64xx_buttons_open Release s3c64xx_buttons_close Read s3c64xx_buttons_read Poll s3c64xx_buttons_poll static struct miscdevice misc Minor MISC_DYNAMIC_MINOR Name DEVICE_NAME Fops amp dev_fops static int init dev_init void int ret ret misc_register amp misc printk DEVICE_NAME tinitialized n return ret static void exit dev_exit void misc_deregister amp misc module_init dev_init module_exit dev_exit MODULE_LICENSE GPL MODULE_AUTHOR hello 1 11 compile Otopia 2 2 0 88633449 982138963982 info esys ir http www esys ir a Embedded Designer in IRAN ardazesh Sabz Qtopia 2 2 0 compile because of the configuration process is more complex in order to facilitate beginners to learn and easy to use we make the steps to configure and compile into a build script simply run the script to compile the Qtopia platform and to their own all applets by run script you can run them x86 and arm version of the steps are basically the same but the script content is slightly different the steps are detailed below 1 11 1 extracting installer source code See section 1 4 1 1 11 2 Compiling and running the x86 version of Qtopia 2 2 0 Letter to develop and test our software platform to develop all based Fedora9 all configuration and build scripts are based on this pl
13. S3C6410 TFA linux Tar xvzf tmp linux examples S3C6410 TFA 20101110 tgz Will create the examples directory and include beginner linux programming code examples Description 20101110 Date of issue of our logo to the actual date of the CD suffix shall prevail The code examplesdirectory are a set self development and provide all the source code they are a smallnumber of command line program 1 4 2 Extract to create the target file system http www esys ir Embedded Designer in IRAN ardazesh Sabz According to the connection touch screen configuration for the convenience of users we haveproduced two target file system archive rootfs_gtopia_gt4 20101120 tgz rootfs_qtopia_qt4 s 20101120 tgz Of which with s representation for a professional serial LCD touch screen controller package it is suitable for largeSize of the four wire resistive touch screen will achieve better results without s representation of the ARM itself is touch screen controller or first line touch screen the first run will automatically recognize Execute the following command Cd opt S3C6410 TFA linux Tar xvzf tmp linux rootfs_gtopia_gt4 20101120 tgz Tar xvzf tmp linux rootfs_qtopia_qt4 s 20101120 tgz Will create rootfs_qtopia_qt4 and rootfs_qtopia_qt4 s two directories the directory and file systemused by the target board is exactly the same content Description 20101120 Release Date our logo to theactual d
14. root gvfs nini2449 on 192 168 1 123 share f9 om 192 168 1 123 root tom ls root gvfs share f9 om 192 168 1 123 arm linux gcc 2 95 3 tgr porting sample arm linux gcc 3 3 2 tgr readme txt arm lLinux gcc 3 4 1 tgz root default tgz arm qtopia tgz root mizi tgz root nfs taz root gtopia mouse tgz root gt pia tp tgz jflash2440 tgz vivi tgz k rtel 7 6 13 mini2440 26081127 tg x46 gtopla tgz To disconnect the shared directory as long as the shared folder on the desktop shown on the right operation on it http www esys ir SS 982188963982 info esys ir E pa ardazesh Sabz Embedded Designer in IRAN jew jha Stretch Icon W Create Archive Unmou volume X1 Properties share_f9 on 192 158 1123 1 3 4 Configuring Network File System NFS services Developed using the development board to do NFS service is not necessary because NFS is mainly used to share files remotely over the network we use the common ftp or SD card you can basically achieve the same purpose NFS service for any contact with Linux in terms of people may be more difficult to understand in addition each person s network environments are not the same so the set up and use and there is no strict standards which lead to more difficult for beginners to master so we not recommended the steps provided in this reference In fact there are many fans on the network according to their own lessons learned from the case record y
15. 10 1 Hello Module simple embedded Linux driver module cccccccsssessssssceee snceeeceeeeeceesees 112 1 10 2 IED driver 4323 E E E S as PZ S 116 1 10 3 Key DfiV fs 48 ssacis sa as M suis Mia ss E O E cvaesavesstonssinys 119 1 11 Compile Qtopia 2 2 0 sc c sesccccceccesssvevssssccesessostuccsvsssssenccstcussdsusecdecee usesisassescoscssssesccsscsescsss 125 1 11 1 extracting installer source code Prsssermmrrererrrdts Ba aaa aaa ii an Jiososssssecceesssssssss 125 1 11 2 Compiling and running the x86 version of Otopia 2 2 0 sesssssssssssssesssssssssesesesssesessse 125 1 11 3 compile and run arm version of Otopia 2 2 0 ssssssssse sesssesssssssesssseseosssoeesseeseeesseeseeeseees 126 1 12 Compile OtE 4 7 0 c siccccccccessseccsuesesssccsssseesecssacsessccsssssesdscesccscsshdeseee esnsessuascesccvesssstssessssesccesss 127 1 12 1 extracting installer source code ccssscsssssrsssscccssesnsrssssscccagsibeesssssscsscees sossssscecesssssssooass 127 Arm version 1 12 2 compile and run the QUE 4 7 0 cccccssssssssssssscceccseeees socsssssssessssceeceeeessssees sese 128 1 13 Compile Otopia4 Ot Extended 4 4 3 ssccsscccssssssccsseccccccsecscccescessccssscssecesessssceees senaesesanees 129 1 13 1 extracting installer source Code lt lt 2 c s2 sssscccsescccessscessestssctcccesssssssccsssccccsosl coccssssssssesessssesss 129 1 13 2 Compiling and running th
16. 8 1 FA with bugurl http www arm9 net disable sjlj exceptio ns enable cxa atexit disable libmudflap with host libstdcxx static libgcc Wl Bstatic ls tdc Bdynamic lm with gmp work toolchain build arm none linux gnueabi build static with mpf r work toolchain build arm none linux gnueabi build static with ppl work toolchain build arm non e linux gnueabi build static with cloog work toolchain build arm none linux gnueabi build static with mpc work toolchain build arm none linux gnueabi build static with libelf work toolchain b uild arm none linux gnueabi build static enable threads posix with local prefix opt FriendlyARM toolschain 4 5 1 arm none linux gnueabi sys root disable nls enable symvers gnu enable c99 gcc version 4 5 1 ctng 1 8 1 FA root tom 4 5 1 J Disclaimer we found that some companies or individuals to modify development board a copyright note for themselves although the domestic base for such copying is not legally binding but we have such a shameless theft to be despised and advising everyone to respect the original manufacturers of hard labor 1 9 1 Hello World Hello World source code is located in the opt S3C6410 TFA linux examples hello directory its source code is as follows Include lt stdio h gt int main void printf hello n Step1 compile the Hello World Into the source directory and run make Cd opt S3C6410 TFA lin
17. Brush Guide of the steps correctly set up HyperTerminal The following figure shows the terminal through the serial port of the Linux login screen and this may actually not identical but are basically similar according to the prompt press Enter you can begin the journey of the Linux console u BAK Au Sam re ie rte x3c2 ll rtc setting system clock to 2000 81 01 19 92 45 UIC 946755 16 gt recovery needed recovery completed PI gt mounted UBI device 9 volumne 0 name FriandiyAkH root file system size 2532 4112 bytes 247338 KiB 241 MIB 1969 LEBsl journal size 90339720 bytes 8822 Kill 8 MiB 71 LEAs media formal 4 latest is 4 default compressor L20 reserved for root O bytes 0 KiB Mounted root ubifs filesvstan Frecing init memory FAT utf3 is not a recommended TO charset for FAT filesystems filesystem will b e case sensitive 01 Jen 2000 12 92 48 0000 boa server version Boat 4 19 01 Jon 2000 12 92 48 8008 boo server built Apr 8 2086 at 15 40 06 01 Jon 2000 12 92 48 8008 bos starting server pid fiS port HB Iry to bring eth interface up cthB link domm Pleese press Enter to activate this console eth link up LOQMbps full duplex lipa x 561 kis 1 15 ARTY Ea SS a _ http www esys ir 9821 90963997 info esys ir Tm Embedded Designer in IRAN A o ardazesh Sabz O 4 2 1 mp3 player madplay is a portable console based mp3 player lt has a v
18. Include lt stdlib h gt Include lt termio h gt Include lt unistd h gt Include lt fcntl h gt Include lt getopt h gt Include lt time h gt Include lt errno h gt Include lt string h gt static void Error const char Msg fprintf stderr s n Msg fprintf stderr strerror is s n strerror errno exit 1 http www esys ir OES Embedded Designer in IRAN ardazesh Sabz _ _ _ a static void Warning const char Msg fprintf stderr Warning s V n Msg static int SerialSpeed const char SpeedString int SpeedNumber atoi SpeedString Define TestSpeed Speed if peedNumber Speed return B Speed TestSpeed 1200 TestSpeed 2400 TestSpeed 4800 TestSpeed 9600 TestSpeed 19200 TestSpeed 38400 TestSpeed 57600 TestSpeed 115200 TestSpeed 230400 Error Bad speed return 1 static void PrintUsage void fprintf stderr comtest interactive program of comm port n fprintf stderr press ESC 3 times to quit n n fprintf stderr Usage comtest d device t tty s speed 7 c x o h n fprintf stderr 7 7 bit n fprintf stderr x hex mode n fprintf stderr o output to stdout too V n fprintf stderr c stdout output use color n fprintf stderr h print this help n exit 1 static inline void WaitFdW
19. Include lt string h gt static int led_fd static int type 1 static void push_leds void static unsigned step unsigned led_bitmap int i switch type case 0 if step gt 6 step 0 if step lt 3 led_bitmap 1 lt lt step Else led_bitmap 1 lt lt 6 step break case 1 if step gt 255 step 0 led_bitmap step break default led_bitmap 0 step for i 0 1 lt 4 i ioctl led_fd led_bitmap amp 1 i led_bitmap gt gt 1 88633449 http www esys ir 982138063987 info esys ir TMM ardazesh Sabz Embedded Designer in IRAN int main void int led_control_pipe int null_writer_fd for read endpoint not blocking when control process exit double period 0 5 led_fd open dev ledsO 0 if led_fd lt 0 led_fd open dev leds 0 if led_fd lt 0 perror open device leds exit 1 unlink tmp led control mkfifo tmp led control 0666 led_control_pipe open tmp led control O_RDONLY O_NONBLOCK if led_control_pipe lt 0 perror open control pipe for read exit 1 null_writer_fd open tmp led control O_WRONLY O_NONBLOCK if null_writer_fd lt 0 perror open control pipe for write exit 1 for fd_set rds struct timeval step int ret FD_ZERO amp rds FD_SET le
20. bin mount t ramfs none dev Bin mount n t usbfs none proc bus usb echo sbin mdev gt proc sys kernel hotplug Sbin mdev s Bin hotplug Mounting file system specified in etc fstab mkdir p dev pts mkdir p dev shm Bin mount n t devpts none dev pts o mode 0622 Bin mount n t tmpfs tmpfs dev shm Bin mount n t ramfs none tmp Bin mount n t ramfs none var mkdir p var empty mkdir p var log mkdir p var lock mkdir p var run mkdir p var tmp 449 m Lo SO oe info esys ir http www esys ir m Embedded Designer in IRAN Jee AION _ a ardazesh Sabz Section 38 page Sbin hwclock s syslogd Etc rc d init d netd start echo gt dev tty1 echo Starting networking gt dev tty1 sleep 1 Etc rc d init d httpd start echo gt dev tty1 echo Starting web server gt dev tty1 sleep 1 Etc rc d init d leds start echo gt dev tty1 echo Starting leds service gt dev tty1 echo sleep 1 echo gt dev tty1 Etc rc d init d alsaconf start echo Loading sound card config gt dev tty1 echo Sbin ifconfig lo 127 0 0 1 Etc init d ifconfig ethO Bin qtopia amp echo gt dev tty1 echo Starting Qtopia please waiting gt dev tty1 1 2 28 screenshot of how to use commands You can use the snapshot command to capture the curre
21. eC aga i die Lan LC Pees ehl Underitnad please pce qt ie porwani eee Create User nfarma t ITE raceme dad Chat r craba a enman tor regular ei akrunstr trum use of your natam To crake a KKULEITI namana Create Urar Dat and Titi please poirie the nemt reguest p be kra Hardware Frofl ikameme Pull M frr r Paeeword Contin F zm i ie ed bo Lee neta authentication such ss kerea Dr HE phase cick Cho Le holmar Login buttar Ute MALA Dit Logi e peck mp rerward Then you will be prompted to confirm that point Continue to proceed zz http www esys ir 2188963982 info Gesys ir E Embedded Designer in IRAN ardazesh Sabz _ _ a F OTU Create User V be acorn d that p Pa a LT if Har Peg ila imei Oreste Ue mbran strate use of pour ita T creeks a ep Ere LATA Cate and Tim please prawide the ntermmaktri reg uezt ed be bnew Hardaare Profle iem me Pull H i Parranrd Contin F s d Ite tegttgrecomrended that apenonaluser E oF HB scant be gested yeu continue without an SOC SUNT Fu Cam ony ie in with the r et ZOCBURC arch E reai der mcr Creative ue Sih Uke NALA biti Logi Lon Canc fel Delis porin vij pact ae borwerd Step18 Set the date and time do not bother to continue to the next step Welcome pom Date and Time ir f rm ti on Create t Pate mrd Tine Hardunre Froles Pi ris Gel The da
22. file dev backlight 1wire Using the touch line LCD driver board but also built the circuit and adjust the backlight to achieve the backlight control parameters is carried out by front line transmission protocol and the motherboard it can support 127 backlight adjustment when sending the number 0 to the backlight device file it will turn off the backlight Kinds of input on the command line echo O gt dev backlight can turn off the LCD backlight When sending 1 127 to backlight device you can adjust the backlight brightness which 127 is the brightest usually 15 or so you can see some pictures secretly for 1 15 the basic dark When greater than 127 it will be handled as a 127 which is the brightest Kinds of input on the command line echo 15 gt dev backlight can see a little light 1 2 11 test 12C EEPROM Species in the command line input i2c w to the board of the 24C08 device can write data 0x00 Oxff 88633449 http www esys ir 9821 900963989 info esys ir x a Embedded Designer in IRAN ardazesh Sabz a tty t SED HE REC MM FED Dw 3 of F meet i Ari root Friendly k 6 rvotHFriendly fH f i2c r Upen deu i cv0 vith bit node Vritins 0x00 0xff into 24C08 0000 0 0 3 04 05 06 07 0010 14 16 0020 O 21 22 23 24 26 26 0030 31 J 0040 0 2 dd 16 0050 O51 52 53 54 55 56 0060 60 3 64 66 0070 0 3 74 75 76 B4 35 3 94 96 96 24 ab 3 bd bb 3 A cb 2 dt db
23. info esys ir E t Embedded Designer in IRAN ardazesh Sabz o a 1 5 1 Configuring the Compile NAND boot support for the U boot sesssssssssssesssssssesssessseesseesseese 74 1 5 2 SD card support is compiled configuration to start U boot sssssssssssccecccecsssseeesceees osse 74 1 5 3 U boot instructions si s ssrs a as v sa sasss o a secciccsesosssseveedesscesesssosssesess i j se i asa s iessa 75 1 6 Configure and compile the kernel Kernel cccccccceeceeee snssssssssssscssssssscssssee sesssesceessesescesesess 75 1 7 Configure and compile DUSYDOX ss sssssirrsssssesvecssscsssonesssonsessssananssosssoessssaananan cossasasssaseevcsssasaceeesess 76 1 8 Production target filesystem image cc cciceeccccceccscocssssatvcts casacccceses ovcassdeveccestsvencoed ass sstusiveveskvan vets 77 1 8 1 Production yaffs2 file system image ssssssssscececssssssssseeceees sesseeeeeseesssssseseceesesenes sosssseseees 77 1 852 Production ubifs filesystem Image csv ccesccccccccccscscscscecccuccecscctvasseessaseceestavsuvesssavee sueutitensseuss 78 1 8 3 Create ext3 file SYSTEM ilm B s ss esssi k basa seseecsticecscen se does Vano nra a d ei ssil ena dej s siera 78 1 9 Example embedded Linux applications scssscccccsssssssssccecccccceesssssccesceeceenssesssssesseeeeeneees 78 191 ONG Worldl sssaswnsnevnss
24. key_values 0 0 0 0 0 0 0 O static DECLARE_WAIT_QUEUE_HEAD button_waitg static volatile int ev_press 0 static irqreturn_t buttons_interrupt int irq void dev_id struct button_irq_desc button_irgs struct button_irg_desc dev_id int down int number unsigned tmp udelay 0 number button_irqs gt number switch number break case 6 case 7 tmp readl S3C64XX_GPLDAT down tmp amp 1 lt lt number 5 break default down 0 if down Key_values number amp 1 key_values number 0 down ev_press 1 wake_up_interruptible 8 button_waitq case 0 case 1 case 2 case 3 case 4 case 5 tmp readl S3C64XX_GPNDAT down tmp amp 1 lt lt number m jj 2633449 9821880 344 h ttp www esys ir 88963982 imfo esys ir ND 88963982 Embedded Designer in IRAN A o ardazesh Sabz O O return IRQ_RETVAL IRQ_HANDLED static int s3c64xx_buttons_open struct inode inode struct file file int i int err 0 for i 0 i lt sizeof button_irgs sizeof button_irqs 0 i if button_irqs i irq lt 0 continue err request_irq button_irqs i irq buttons interrupt IRQ_TYPE_EDGE_BOTH button_irqs i name void amp button_irqs i if err break if err O l 0 1 1 for i gt 0 i if button_irqs i
25. rcS file automatically Note We offer the system has to hwclock s command to write rc file 1 2 26 How to power down to save data to Flash Because this system uses a read write file system yaffs2 in embedded systems specifically the management of a Flash memory file system so you can easily save the dynamic data is not lost after power down Serial terminal after boot run the following command Cp shanghaitan mp3 home plg At this point in home fa copy a directory the same file and then shut down restart the system you can view the home plg directory of the file still exists Embedded Designer in IRAN ardazesh Sabz m V jsass 1 2 27 Set the program to run automatically boot With the startup script can set a variety of programs to run automatically after boot you can also set other system settings which is somewhat similar to the Windows system Autobat automatic batch file to start the script in the board s etc init d rcS content as follows the actual content may not fully consistent with this Bin sh PATH sbin bin usr sbin usr bin usr local bin runlevel S prevlevel N umask 022 export PATH runlevel previevel Trap CTRL C amp c only in this shell so we can interrupt subprocesses trap INT QUIT TSTP Bin hostname E proc 1 bin mount n t proc none proc E sys class bin mount n t sysfs none sys E dev tty
26. removed upon make clean clean files consolemap deftbl c defkeymap c quiet cmd conmk cmd conmk CONMK S scripts conmakehash lt gt obj consolemap deftbl c src FONTMAPFILE call cmd conmk obj defkeymap o obj defkeymap c drivers char Makefile 147L 4806C Step3 Then back to linux 2 6 36 source code root directory location execute make modules we can produce the required documents S3C6410 TFA_hello_module ko a kernel module Beware make modules you must first execute make zlmage only need it once So far we have completed the module driven compilation _ 98218862308 info esys ir http www esys ir Embedded Designer in IRAN ardazesh Sabz O 3 root tom opt FriendlyARM mini6410 File Edit View Terminal Tabs Help root tom lLinux 2 6 36 make modules CHK include linux version h include generated utsrelease h include generated mach types h is up to date scripts checksyscalls sh drivers char mini6410 hello module o Building modules stage 2 MODPOST 20 modules LD M drivers char mini6410 hello module ko root tom linux 2 6 36 J 2 to Hello Module downloaded and installed using the development board In this use the ftp command to compile out of the S3C6410 TFA_hello_module ko downloaded to the board and move it to lib modules 2 6 36 directory and then execute the board in the present Modprobe S3C6410 TFA_hello_module You can see that the mod
27. to completion of the file executable to normal operation Chmod x hello Note Some users use a USB to serial cable because some adapter performance is not too good so sometimes transfer out or simply can not be transferred to the development board and therefore we recommend the use of ftp transfer to the development board 4 through the implementation of Network File System NFS Linux is the most commonly used method is to use NFS to perform a variety of programs so you can not spenda lot of time to download the program although this does not take long to download the hello program once your application has become more and more you will find where the convenience of using NFS to run As previously described as first set up in accordance with 4 3 4 a good NFS server system then enter the following command at the command line assuming the server s IP address is 192 168 1 111 Mount t nfs o nolock 192 168 1 111 opt S3C6410 TFA linux rootfs_qtopia_qt4 mnt Mount successfully you can access the mnt directory to operate on your PC Linux terminal to copy hello opt S3C6410 TFA linux rootfs_gtopia_gt4 directory then the serial port terminal in the development of executive board Cd mnt Hello 1 9 2 LED test procedure Program source code instructions Driver source code directory opt S3C6410 TFA linux linux 2 6 36 drivers char Driver Name S3C6410 TFA_leds c Device type misc
28. vai 83 a oi Calculator Calendar Camera Contacts Help Music Pictures System Info Tasks Today Videos VNC aee a 23 Applications FriendiyARM Games Settings Documents a Web Browser Bad SALA Documents 9 Voice Notes 89 hoe lvl 17 The above process may seem very simple in fact all the secrets are in the build all script there are many online articles about migration but the essential steps are those recorded in the script you can use Notepad to open the self check tool but none of those hip hop rhetoric Humor nothing 1 12 Compile OtE 4 7 0 1 12 1 extracting installer source code See section 1 4 1 SS 88633449 282188963982 info esys ir http www esys ir a Embedded Designer in IRAN ardazesh Sabz _ O 1 12 2 Arm version compile and run the QtE 4 7 0 Note be sure to use our CD ROM provided in the cross compiler arm linux gcc 4 5 1 and based on Fedora9 platform Fedora9 installation steps see 1 3 1 we can not guarantee that the script can be produced in other platform environments smooth implementation which we do not provide support And Qtopia 2 2 0 is very similar we also QtE 4 7 0 compiler produced a ready made script build all into the source code directory Cd opt S3C6410 TFA linux arm qte 4 7 0 4 Build all this process will be very long according to the different machine configurations have different compile time please be patient When su
29. 1 buffer N 0 printf consume item n buffer_has_item 0 pthread_mutex_unlock amp mutex Makefile contents CROSS arm linux all pthread Note The Department includes the thread library libphread red pthread CROSS gcc static o pthread main c lpthread clean Rm vf pthread o http www esys ir 982138963982 info esys ir C Embedded Designer in IRAN ardazesh Sabz T Hello you can follow the above steps to manually compile the program executable file pthread then downloaded to the development Board to run it 1 9 10 Pipeline Application Programming Example Web control LED Program source code instructions The test program source code directory opt S3C6410 TFA linux examples led player Test program source code name led player c test program executable file name of the Rationale led player Rationale We can boot via the web to send commands to control the development board of the LED blink mode in fact inter process communication is a typical example of shared resources inter process communication is the IPC InterProcess Communication general purpose inter process communication are 1 data 2 shared data 3 Notification events 4 the sharing of resources 5 process control Linux supports a variety of IPC mechanisms signals and pipeline is one of the two For a more detailed inter process communication the gene
30. 3 oA of t4 t6 2 ee b a S S S ru su nano iu ty50 rot p 24D MO Mi a umy root Priendl yARH 7 i2c r Open der 120 0 sith Bbit node Reading 256 bytee fros O20 0000 3 04 us DOUNM Sam oS ie S S N 00d0 led Data SHIANTA Seun iaio Heo APRR AARP SRP ERR ER II POS i hore PI hon Nhe none RI S eoangcoe sa Ircot Frieudiy kti J 112200 FL 1 2 12 AD conversion test Remarks test program source code adc test Remarks file name Adc test c Location of the test program source Extract linux examples tgz available code Development board device name dev adc corresponding to Corresponding to the kernel driver source Linux 2 6 36 drivers char S3C6410 TFA_adc c code Other mm http www esys ir 982188963982 info Oesys ir p pone SSA Embedded Designer in IRAN k t au ardazesh Sabz I In the command line input adc test command ADC conversion can be tested adjust the adjustable resistance on the development of plate board W1 you can see from the output terminal serial conversion results 2R BQ Hyo mago y AMV Ce ss OD SF 1 2 13 Test TV OUT Into the usr bin directory attention is not user bin running tv test command can be TV OUT test the program will automatically play usr bin TestVectors wanted 264 file and output to the TV such as map Cd usr bin Tv test Embedded Designer in IRAN ardaze
31. AN ardazesh Sabz module_init S3C6410 TFA_hello_module_init module_exit S3C6410 TFA_hello_module_cleanup MODULE_LICENSE GPL 1 the Hello Module added to the kernel source tree and compile Generally compiled 2 6 version of the driver needs to drive the module code to the kernel source tree and do the appropriate configuration the following steps Note The following steps are already done in fact you only need to open the check directly to build on it Step1 Edit the configuration file Kconfig add driver option so that in a time of make menuconfig open linux 2 6 36 drivers char Kconfig file add the figure shown below root tom opt FriendlyARM mini6410 linux 2 6 28 6 drivers char File Edit View Terminal Tabs Help default y help Say Y here if you want to support the dev kmem device The dev kmem device is rarely used but can be used for certain kind of kernel debugging operations When in doubt say N config LEDS MINI6410 tristate LED Support for Mini6410 GPIO LEDs depends on CPU S3C6410 default y help This option enables support for LEDs connected to GPIO lines on Mini6410 boards config MINI6410 BEMO MODULE tristate Mini6410 module sample depends on CPU S3C6410 help Mini6410 module sample config MINI6410 BUTTONS tristate Buttons driver for FriendlyARM Mini6410 development boards depends on CPU S3C6410 default y help this is buttons driver for FriendlyARM Mini6410 develop
32. CE BootLoader of Nboot Support for image feature programming WindowsCE Support for burning single file image files the program is commonly referred to as bare metal Support for return to the original shell Added support for 256M DDR RAM Here we describe the configuration and compile it and use it 1 5 1 Configuring the Compile NAND boot support for the U boot Description According to the different development board memory DDR RAM capacity need to use a different U boot configuration items To compile for 128M memory U boot follow these steps U boot code into the source directory run Cd opt S3C6410 TFA linux u boot S3C6410 TFA Make S3C6410 TFA_nand_config ram128 make Configuration and in the current directory will be compiled to support Nand start U boot bin use the SD card or USB download to Nand Flash can be used see Brush Guide CD ROM images linux directory has been provided compiled the file for ease of distinction we rename it to u boot_nand ram128 bin To compile for 256M memory U boot follow these steps Go to U boot source directory run Cd opt S3C6410 TFA linux u boot S3C6410 TFA Make S3C6410 TFA_nand_config ram256 make Configuration and in the current directory will be compiled to support Nand start U boot bin use the SD card or USB download to Nand Flash can be used see Brush Guide CD ROM images linux directory has been provided compiled the file for ease of distinction we rename i
33. D images linux directory has been compiled in the document provided in order to facilitate the distinction we rename it to u boot_sd ram256 bin 1 5 3 U boot instructions Unfinished 1 6 Configure and compile the kernel Kernel In order to facilitate the user to compile a file and CD burning is fully consistent core we focused on different LCD output separately the corresponding kernel configuration file config_S3C6410 TFA_x35 for Sony 3 5 LCD a resolution of 240x320 config_S3C6410 TFA_n43 for NEC4 3 LCD a resolution of 480x272 config_S3C6410 TFA_180 for Sharp 8 or compatible LCD a resolution of 640x480 config_S3C6410 TFA_a70 for 7 inch true color screen a resolution of 800x480 config _S3C6410 TFA_vga1024x768 for resolution of 1024x768 VGA output module adapter plate config_S3C6410 TFA_vga800x600 for the VGA resolution of 800x600 output module adapter plate config_S3C6410 TFA_vga640x480 for the VGA resolution of 640x480 output module adapter plate config _S3C6410 TFA_ezvga800x600 VGA adapter plate for easy output resolution of 800x600 Default the following command to compile the kernel configuration file config_n43 Cp config_S3C6410 TFA_n43 Config Note n43 with a trailing space then there is a Beginning of the config Make zlmage start compiling the kernel you can directly use the make command http www esys ir se ardazesh Sabz File Edit View Terminal Tabs Help include asm arm
34. Device name dev leds The test program source code directory opt S3C6410 TFA linux examples leds nit Wwy 1 Embedded Designer in IRAN ardazesh Sabz T Test program name led c Test program executable file name Led Testing procedures in place in the development board Description LED driver has been compiled into the default kernel so can not be loaded using insmod Listing Include lt stdio h gt Include lt stdlib h gt Include lt unistd h gt Include lt sys ioctl h gt int main int argc char argv int on int led_no int fd Check the led two control parameters if no parameter input is withdraw if argc 3 sscanf argv 1 d amp led_no 1 sscanf argv 2 d amp on 1 on lt 0 on gt 1 led_no lt 0 led_no gt 3 fprintf stderr Usage leds led_no 0 1 n exit 1 Open dev leds device file fd open dev ledsO 0 if fd lt 0 fd open dev leds 0 if fd lt 0 perror open device leds exit 1 And enter through the ioctl system call parameter control led ioctl fd on led_no Close the device handle close fd a _ http www esys ir SE I P RU sis Embedded Designer in IRAN ardazesh Sabz return 0 You can follow the above steps to compile the hello program led executable file then do
35. Help w Q t Disable Customize Stop Restart Help Name Remar The nfs service is started once usually when the Wi netfs system is booted runs in the background and wakes up when needed netplugd This service is enabled network dl This service is running d Descnption W 4 nfslock NFS is a popular protocol for le sharing across TCP IP amp sca networks This service provides NFS server functionality which is configured va the fetcjexports 6 ntpd ine amp ntpdate 0 amp pand 6 pcscd amp psacct amp rdisc lt restorecond Step3 Start the system via NFS When set up and start the NFS service we can put NFS as root file system to start a development board By using NFS as the root file system the development board of the hard can become very large because you are using a host s hard disk which is freguently used to use Linux as a developmentmethod Set up the development board to SDBOOT start attention to the need to enter the menu mode see 2 Brush Guide connect the power supply serial cable network cable open the serial port terminal enter the following command without the quotes console ttySACO root dev nfs nfsroot 192 168 1 111 opt S3C6410 TFA root_qtopia_qt4 ip 192 168 1 70 192 168 1 111 192 168 1 111 255 255 255 0 3C6410 TFA arm9 net eth0 off The meaning of each parameter is as follows nfsroot is the development of the host s IP
36. Hep cow COLLECT GOC are Liram goe COLLECT LTO MASPPE RR ONT Friend i yd ku tool cckainy S L Libeeec sore arm nane Lines ga st 1 lta 1 4 extracting installer source code and other tools This section will extract the installation development process used to learn all the source code and some other small tools including Linux kernel source code Qtopia 2 2 0 source code platform x86 and arm platform is divided into two versions Arm qt extended 4 4 3 Platform source code that is Qtopia4 divided into two versions of x86 and arm QtE 4 7 0 Platform source code arm version Busybox 1 17 source code Linux source code programming examples U boot source code The target file system directory The target file system image creation tools including yaffs2 and UBIFS GUI Linux logo creation tools logomaker Note All source code and tools are installed by way of extracting all the source code use the unified compiler arm linux gcc 4 4 1 compiler The following is a detailed extract the installation process and a brief introduction 1 4 1 Extract the source code installation First create a working directory opt S3C6410 TFA linuxAt the command line Mkdir p opt S3C6410 TFA linux All source code behind the step will extract the installation this directory SS a _ http www esys ir 2188963982 nfo Gesys ir E Embedded Designer in IRAN ardazesh Sabz ee 1 ready for the Linux source code pack
37. Linux system in general after the installation comes with a command line ftp command procedures you can login using the remote ftp host and transfer files which requires the host provides ftp services and the corresponding authority not only the development board with the ftp command ftp also started at boot time service To facilitate testing we can command from the PC log on window boards development boards to transfer files Note Make sure you have the ftp directory where the file to be uploaded here is test mp3 Note the ftp login account for the development board plg password plg transfer is complete you can see the target board s serial port terminal home plg directory of more than a test mp3 file COVERS Layee Lond ee fip 157 180 i IU 1 2 23 LED control panel via the web Description The system used in 6410 and 2440 part of the program effect is the same use the following screenshot S3C2440 FA Screenshot for reference only subject to the actual situation The midpoint of the web server test page Network Control LED test item and the LED test control page as shown in the following picture lt lt _ Embedded Designer in IRAN ardazesh Sabz o a Ce TTT n fan ez e P emescucrmce You can use the web in various test items for testing one of the LED test will be a CGI program to control the board through the LED lights including 2 ways to display three different displa
38. TE TF teat E IP tT TT Aaa FR dy aa WAFER D TENIP BARS FI RAR cat ms RER EEE 3 CEMT oss BZAR t OE Eee at ox usan SB oS ES http www esys ir 4987188633449 p y 88963982 ihfo Gesys ir M Embedded Designer in IRAN ardazesh Sabz OO For example am here for the DNS server IP 202 96 128 86 in the development board in this set Rm etc resolv conf first delete the old profile Touch etc resolv conf re generate a resolv conf file Echo nameserver 202 96 128 86 gt gt etc resolv conf use the actual DNS server IP configuration resolv conf file Here you can modify the main etc resolv conf file of course you can use vi to be modified The whole process as shown below ttr50 PSSA RHO RED SEW Fo ea Bhp D a O 3 D amp E root FriendlyARn JH rm etc resolv conf root riondlyARH JH touch etc resole cont root riendlyARH echo naneserver 202 96 4128 86 gt gt fetc resalu cont root riendlyARn cat ete resolu_cont haneserver 202 96 129 96 rootG FrieadLyARH it ping uuu 163 com PING wew cache split netease com 220 181 28 58 56 data bytes 65 bytes from 220 181 28 54 iomp_seqe8 ttl 59 timee1353 8 ns 6 bytes from 220 181 28 54 icsp_seg 1 ttl 53 time 1378 0 ns 6 bytes fron 220 181 28 54 icrp_tog 2 tt1 5 timv 1298 1 ms 6 bytes from 220 181 28 54 icrp_seg 4 ttl 59 time 1356 d 6 bytes from 226 181 28 54 icrp_seg 5 ttl1 59 time 1314 9 ns
39. aa aaa SS aaa aaa se M s nas 29 1 2 17 How to set the network to access the Internet ccseessssee cosssscceeccceccccssssssceesceeceeeeses senses 30 1 2 18 How to set the MAC addressl Biswwwwwwwwuvvwsstesssdeececssses sashedteccssssscssscsscccatesses sssscescscsssnsnens 32 1 2 19 How to use Telnet to log on board lt s 00cs0ccccsssecessessncecessiessccecsssesssssssssccccsssassssces assess 34 1 2 22 using ftp to transfer files 1 PPP sossssccssssscccccsssssnaMtccses scssscssscssssssnssesees 35 1 2 23 via the web controlpanel LED 2 0 0 5 20ssssesessccccsssesssee0 sezssessseeccccessasssadsssacccesssassss sssssecee5ss 35 1 2 24 How to mount network file systems using NFS sscccccsses aaa 36 1 2 25 Set and save the realtime clock lt ccccccccoveesssssccccocccccccsssssleessssassecseusubcccessvacecceccecess sescscceess 37 1 2 26 How to power down to save data to Flash csccsssssssssecee saasina sesseeeenss 37 1 2 27 set to rum automatically boot Program sse s srrsssesecesrrersrreee ssir eorre eenen snosi nisreen esien nesas mrss erer 38 1 2 28 screenshot of how to use commandS sssssssseescccennnns conseessssccesceecnsnnsessssssessceecenenes osese 39 1 2 29 View development board memory information ccs00 sesssssssssssesesssssssessssoe sessessseseeesess 39 1 3 Installation and s j Fedors EE E E E N covsvencdsccesevesesssenssoees 41 1 3 1 gra
40. abz Instruction set hardware floating point support the following is the detailed steps to install it Step1 the CD ROM Linux directory arm linux gcc 4 5 1 v6 vfp 20101103 tgz copy Fedora9 A directory such as tmp then go to the directory perform decompression command Cd tmp Tar xvzf arm linux gcc 4 5 1 v6 vfp 20101103 tgz C Note C with a trailing space and C is capitalized it is the English word Change the first letter in the meaning of this is to change the directory Execute the command will arm linux gcc installed to opt toolschain 4 5 1 directory Step2 the compiler to add the path system environment variable run the command Gedit root bashrc Edit root bashrc file pay attention to bashrc in front of a The last act to modify export PATH PATH opt toolschain 4 5 1 bin attention paths must write or else will not be effective Figure save and exit IRL UL irer etc bashree Papert Paleegrate 0gt Frierd paku teolsctain t S itin Log system without reboot the machine to start gt logout can be so the above settings to take effect at the command line arm linux gcc v the following message will appear indicating that cross compiler environment has been successfully installed 88633449 http www esys ir 982188963982 info esys ir r a Embedded Designer in IRAN ardazesh Sabz restP tem spt Frienchy ABU t aluehain 4 5 1 fe EG yew Jeri Tats
41. address if you use a virtual machine the address of the virtual machine Fedora9 IP address in short it is the direct NFS service IP address of the Linux system Ip back The first 192 168 1 70 is a temporary target board IP be careful not to other IP and LAN conflict second 192 168 1 111 is the development of the host IP third 192 168 1 111 is the target board the gateway GW settings fourth 255 255 255 0 is the subnet mask fifth is the development of the host name usually does not matter can easily fill in ethO is the LAN device name Because the command is longer easy to input errors we have it written into the disc nfs txt file soYou can be copied directly and as shown in Figure Enter the start parameter will be automatically stored in the NAND 88633449 http www esys ir 982188963982 info esys ir S a Embedded Designer in IRAN jew ilo ardazesh Sabz M Domload WinCE bootleg Dowlond WintE HK aid Bopi the sustem et the het parameter of Linux Version DEEZ er your Selection s nu ced Line corso l ztiv lbi raot devnfs nfsroot 192 168 1 1115 200 Dsabezusd ariel a t m 168 1 70 192 168 1 111 132 165 1 bee arat r t thi kaf Linus comand ling saved K ki Friend yh Superboot G418 for 6610 see Format the baita ciemi Download uboot bh ap 1 Linux findrold kernel root yaffa image Poot ikifs image Absolute User Application Hhc ot nba for WinCE WinCE bootlogo H
42. age In Fedora9 system tmp directory create a temporary directory tmp linux Mkdir tmp linuxLinux directory in the CD all the files are copied to tmp linux directoryDescription This is to unify thefollowing steps in fact you can use a different directory you can alsodirectly from theExtract the installation CD 2 Extract the installation of U boot source code in the working directory opt S3C6410 TFA linux perform Cd opt S3C6410 TFA linux Tar xvzf tmp linux u boot S3C6410 TFA 20101106 tar gz Will create the build u boot S3C6410 TFA directory which contains a complete description of U bootsourcecode 20101106 Release Date our logo to the actual date of the CD suffix shall prevail 3 Extract the Linux kernel source code installed in the working directory opt S3C6410 TFA linux perform Cd opt S3C6410 TFA linux Tar xvzf tmp linux linux 2 6 36 20101115 tar gz Will create a generation linux 2 6 36 directory which contains the complete kernel sourcecodeDescription 20101115 Date of issue of our logo to the actual date of the CD suffix shallprevail 4 Extract the target file system installation execute the following command Cd opt S3C6410 TFA linux Tar xvzf tmp linux rootfs_gtopia_gt4 20101120 tgz Directory will be created to generate rootfs_qtopia_qt4Description 20101120 Date of issue of our logo to the actual date of the CD suffix shall prevail 5 extract th
43. ard pre installed Linux has included QtE 4 7 0 before the test you can delete the original which is located in opt Qtopia4 4 3 directory to the directory using the rm command to completely remove the it To run Qtopia4 recommended to stop the running Qtopia 2 2 0 click Settings in the off to the following interface point Terminate Server to close the Qtopia 2 2 0 system http www esys ir 382138963982 NfoGesys ir sis Embedded Designer in IRAN ardazesh Sabz O O Shutdown Terminate Shutdown Restart Server Reboot These termination options are provided primarily for use while developing and testing the Qtopia system In a normal environment these concepts are unnecessary aee a ROLI 0 54 You can also use other methods such as the startup script etc init d rcS in the comment qtopia startup items and then re system system or use the killall command to kill the relevant process more or even directly remove the opt All contents of the directory to restart After the close qtopia 2 2 0 at the command line qtopia4 amp where amp that runs in the background command you can start just extract the installation Qtopia4 shown in Figure Qt Extended Options 1 14 choose which version of Qt to develop With so many versions of Qt there are many users do not know how to choose in fact there is no standard answer we think it depends on your needs and the latest is not g
44. ariety of playback control mode the easiest to use is Madplay your mp3 The default mode will play your mp3 command file there is no your mp3 development board files here is only an example You can run madplay h to see its use to help here is the player development board contains a preloaded mp3 screenshot mo ABO w S 28 e FAI utf is not a recommended 10 charset for FAT filesystess filesystem will b case sensitive 01 Jan 2000 11 32 48 8000 bon server version foa iat e 11 32 48 0000 boa server built Aor 8 ste t 15 49 06 01 Jan 2000 11 32 45 80001 bos starting sarver pid 657_ port 80 Iry to bring eth interface up thB link down Bone Please press Enter to activate this console eth link up 100Mbps full duplex lpa 1x45F1 root r lend yARM ja rnott r iord1y6RH 1 nadplay root Docunents vive la vids upd WEE Gudio Decoder 0 15 2 beta Copyright C 2000 2004 Robert Leslie et al Title Viva La Vida Artist Coldplay Album Viva La 3 Vida Oe Death And All His Friends Track 7 Year 2008 Genre Rack Encoder ilunes v7 6 ommunt Bip amp Als bY Toas COE sem TIS EACTY O SO et It should be noted is Linux 2 6 36 kernel we use the ALSA audio driver interface and here we also used a portable madplay play this interface and the development board has been built the ALSA library 1 2 2 How to stop the program running To stop the program running at a terminal console
45. ate of the CD suffix shall prevail the file system contains a front you see qtopia 2 2 0 Qtopia4and QtE 4 7 0 test software busybox there are commonly used command line tools andbefore it has the following features Automatic Identification start or local start NFS Automatic recognition of the connection of the output display module is connected with a touchscreen to determine first whether to start using the correction lf not connected it will automaticallyenter the system using the mouse otherwise it will be touch screen calibration Automatic Identification ordinary or high speed SD card maximum support 32G and USB flash drives Auto detect USB mouse or touch screen Support for USB mouse and touch screen co existence starting from the Linux 2 6 36 support 1 4 3 Extract installation file system image tool We should all write the target file system development board in general need to first create the target file system directory into a single image file or copy to programming Linux kernel boot time generally based on the command line parameters the system hung in different formats such as yaffs2 ubifs ext2 nfs etc They are generally small command line program For 64M or 128M 256M 512M 1GB De S3C2440 FA mcro2440 respectively two sets of production tools mkyaffs2image and mkyaffs2image 128M Which is produced for mkyaffs2image 64M version of the file system image tool that follows the previous name mkyaffs2imag
46. atform we have not tested on other platforms If you are familiar with Linux development Hen I believe you will find step by step according to error causes and solutions they generally lack the platform you use some libraries or tools and other causes Otherwise we recommend beginners to use and we agreed platform that Fedora 9 full name Fedora 9 i386 DVD iso you can download at its official website ftp download fedora redhat com pub fedora linux releases 9 Fedora i386 iso Fedora 9 i386 DVD lso does not guarantee long term effective you can get in other places they are the same be sure to refer to our installation manual provides step which is the result of rigorous testing so as not to miss some of the development of the group when needed pieces Many Linux distributions we can not write this document explains installation of eleven please understand Into the working directory execute the following command Cd opt S3C6410 TFA linux x86 qtopia 4 Build all the process is long you need to run about 30 minutes Description Build all will automatically compile a complete and Qtopia embedded browser you can have execute Build And Build kong script command to compile them separately if you do not have the smooth implementation please refer to the above description of the red font Command You just want to run out of Qtopia build system is very simple just the compiled command in the terminal enter
47. begin setting up the machine name and the gateway and DNS etc Network Devices Actwe on Boot Drece PyvilWetmack IP Peta Eat La eth 19210311001 Deabked Hostname Set the hestrame automaticaly vis DHCP C unudiy tom e g host daman cem Miscellaneous Sottings Gotem ay 15216811 PrimatyOMs 19210811 Secondary DNS ost best Step7 Set time zone if you do not use virtual machine installation System clock uses UTC option can be removed as shown in Figure mm http www esys ir 982188963982 info esys ir i Embedded Designer in IRAN ardazesh Sabz _ _ Please select the nearest cty m your time rone Sdected city Shanghs Asm least China Beiing Gumgdeng Shang etc Aaa Glen ae 4 Zpstem clock wes UTC z Diot Step8 Set the root user password must be six digits or more The paoi socom is used for ademas t erie 9 the sister Enter a password for the mat isa Ri t passant sere Tonm CII bai i Best Step9 Set partition you can usually choose the default pay attention to hard data to back up mm http www esys ir T 282188963982 info esys ir F a a FH Pt PIOR ardazesh Sabz rete oan regire partiiarim g of yaar hand diye By dapak 3 petitioning byt i chomen mechs reaches for mest uber You can dither chase to this or cree yeu ii Remove Linn part bems on selected dr ves end crente cie hulk mag ut zi Encrypt stem Select the dri
48. boa server built Feb 28 2004 at 2 02 Dec 2030 18 41 57 0000 boa starting server pid 34 port ol Please press Enter to activate this console BusyBox v0 60 5 2003 09 05 09 25 0000 Built in shell ash Enter help for a list of built in commands sh can t access tty job control turned off root fa arm udptalk 192 168 0 1 2000 192 168 0 230 2000 Hello Capbily peer Hello SBC 2410X The development board to run arm udptalk 1 9 8 Sample math library calls Program source code instructions The test program source code directory opt S3C6410 TFA linux examples math Test program source code name mathtest c test program executable file name mathtest Listing Note The key is to use mathematical functions to include the header file math h added at compile time and math libraries libm Include lt stdio h gt Include lt stdlib h gt Include lt math h gt Note Be sure to include the header file int main void double a 8 733243 No 103 Page printf sqrt f f n a sqrt a 88633449 http www esys ir 9821 99963995 info Besys ir a Embedded Designer in IRAN ardazesh Sabz return 0 Makefile content CROSS arm linux all mathtest Note where a mathematical function library contains libm red mathtest S CROSS gcc o mathtest main c Im clean Rm vf mathtest o You can fol
49. box to meet most needs into the busybox source directory run Cp fa config Config Make Wait a minute can be compiled busybox in the current directory target file it is the same as pre development board generally busybox is not updated mm 88963982 info esys ir 9821 http www esys ir Embedded Designer in IRAN ardazesh Sabz M root tom opt FriendiyARM mini6410 busy File Edit View Terminal Tabs Help util linux mount c In function mount_main A util linux mount c 1781 warning dereferencing type punned pointer will break strict aliasing rules util linux mount c 1795 warning dereferencing type punned pointer will break strict aliasing rules util linux mount c 1868 warning dereferencing type punned pointer will break strict aliasing rules util linux pivot_root o util linux rdate o util linux rdev o util linux readprofile o util linux rtcwake o util linux script o util linux switch root o util linux umount 0 util linux lib a util linux volume_id built in o util linux volume_id get_devname o util linux volume_id util o util linux volume id volume id o util linux volume_id lib a busybox_unstripped Trying libraries crypt m Library crypt is needed can t exclude it yet Library m is needed can t exclude it yet Final link with crypt m root tom busybox 1 13 3 ls Config in fa config loginutils networking sysklogd console tools findutils mailutils printutils testsuite coreutils include Makefile p
50. by pressing Ctrl C note press the Ctrl do not let go then press the c button For example we just use the command madplay played mp3 if you want to suspend the operation of this program you can press Ctrl c key In addition if the program is running in the background you can use the kill command to kill the process 1 2 3 use the USB HDD Insert USB flash drives the system will automatically create a udisk directory and automatically mount the flash drive to the top this time in the series m http www esys ir 2188963982 Nfo desys 1r 7 a Embedded Designer in IRAN ardazesh Sabz gt See Population will be similar to the following information e tty50 rss Ka Se BE VC MET t nis D oe 5 O04 KE nirt 0 10 0 ASSIY 115200 2 1 USB device corresponding to the device is actually called dev udisk Enter udisk directory you can see inside the file Note If your flash drive is not recognized please check that it is not FAT32 VFAT format ettySO PHS TFT RAD BEY FON MED Whw D 5 ta T EE 0 13 14 AYSIV 115200 F 1 1 2 4 SD card Embedded Designer in IRAN ardazesh Sabz M Information And use the same USB SD card is mounted automatic identification insert the SD card can then see the following in the serial ettyS0 HEF SHO WAD TO mn D i 3 0 gf BiS 0 21 15 AMST 115200 6 F 1 The system will automatically create sdcard directory and mount
51. by wireless networks Note The following example is using a USB wireless adapter Model TL WN321G SD WiFi module and use similar it is no longer alone shows The USB wireless card found on the target board the following information will appear different model card information will be different Scan command to search for nearby wireless networks Scan wifi as shown in the following picture Deg adi 900 WHE Seq Sha j a os Embedded Designer in IRAN ardazesh Sabz M Have seen the search to three wireless network wireless network name before the 63 means the signal strength network with password security will be marked with Security 2 Connection using a wireless network Using the start wifi command can automatically connect to specific wireless network access points depending on the wireless network characteristics have different parameters on the command line type start wifi you can see the following message VO wig t v FHC FED Mig 305 amp hare udhepc deFault script 1 F usb 1 1 new full speed USB device using s3c2410 Wherein mode indicates that the wireless network encryption type you can wpa wpa2 wep or none none means no wireless network without a password ssid that want to connect to the wireless network name NETGEAR and so on thisis generally according to the actual situation password encrypted wireless network that reguir
52. ccessfully executed and then run mktarget script will be the directory from the compiled object file the extract must be QtE 4 7 0 libraries to the executable binary files and example and package for the target qte 4 7 0 tgz put it in the development of root decompression board you can use the following command Tar xvzf target qte 4 7 0 tgz C This will be in usr local Trolltech directory create a build directory it contains all required to run the executable files and libraries Instructions for use because the target board pre installed Linux has included QtE 4 7 0 before the test you can delete the original which is located in usr local Trolltech directory to the directory using the rm command to completely remove the it To run QtE 4 6 3 is recommended to stop the running Qtopia 2 2 0 click Settings in the off to the following interface point Terminate Server to close the Qtopia 2 2 0 system Shutdown Terminate Shutdown Restart Server Reboot i These termination options are provided primarily for use while developing and testing the Gtopia system In a normal environment these concepts are unnecessary Bad AR SABI You can also use other methods such as the startup script etc init d rcS in the comment qtopia startup items and then re system system or use the killall command to kill the relevant process more or even directly remove the opt All contents of the di
53. cript it is called as a web leds html implement action The script lists the following Leds cgi script list Bin sh type 0 period 1 case QUERY_STRING in Ping type 0 Counter type 1 esac Stop type 2 case QUERY_STRING in Slow period 0 25 Normal period 0 125 esac Fast period 0 0625 88633449 http www esys ir 982138063987 info esys ir a TM ardazesh Sabz Embedded Designer in IRAN Bin echo type period gt tmp led control echo Content type text html charset gb2312 echo Bin cat led result template exit O 1 9 11 Based on the C Hello World Program source code instructions The test program source code directory opt S3C6410 TFA linux examples c Test program source code name cplus c test program executable file name cplus Listing Include lt iostream gt Include lt cstring gt using namespace std class String private public char str String char s int lenght strlen s str new char lenght 1 strcpy str s String cout lt lt Deleting str n delete str void display cout lt lt str lt lt endl 88633449 9821 88963982 into esys 11 http www esys ir OES ms Embedded Designer in IRAN ardazesh Sabz int ma
54. d_control_pipe amp rds step tv_sec period step tv_usec period step tv_sec 1000000L 982188633449 http www esys ir 88963982 ia all a 88963982 Embedded Designer in IRAN A o ardazesh Sabz O O ret select led_control_pipe 1 amp rds NULL NULL amp step if ret lt 0 perror select exit 1 if ret 0 push_leds Else if FD_ISSET led_control_pipe amp rds static char buffer 200 for char c int len strlen buffer if len gt sizeof buffer 1 memset buffer 0 sizeof buffer break if read led_control_pipe amp c 1 1 break if c Nr continue if c Vn int tmp_type double tmp_period if sscanf buffer d If amp tmp_type amp tmp_period 2 type tmp_type period tmp_period fprintf stderr type is d period is If n type period memset buffer 0 sizeof buffer break buffer len c close led_fd return 0 Make command can be directly compiled using a led player executable file it is placed in the server as a development board for the sbin directory http www esys ir 9821 90063989 info esys ir a Embedded Designer in IRAN ardazesh Sabz Leds cgi gateway source code the program on the development board position www leds cgi showing that the Gateway program is actually a shell s
55. del intel comem C Fi TH gi Li Hr Syrbem wMware Virtual Platform Hone Kamal 7 625 14 p EE BEL Fary toge bed a Hack inhi a Hardware Profile SMe bh a hanhware potka fer The P d r Pr j t shmiring aur prolis n e great may bn ge beck to the rammanity as this formation is used tn help focus aur etfarts an popular hardware and plattorne Sending your prodile wil enable a monthly UUD P 5hE52 Pd 6 L7dT Bd ab r Fedora raeas S Sulphur Bre yau sure pou wouldn t like ta send the profile Submitting yaur profi i a waluabla source of infermatian PHE for out derwlop te tr anal can help Croubkesha et seuss thet may core up mth pour bari mare f t rik r saming 5 T IET K ifr l 2 25 14 SCLrax Enabled The Send Foie Ga nob send porie fe ti SE Bi iki et sana BELA Policy targeted aija Back Mish Step20 the login screen we have to log in as root so first type root 982188633449 88963982 imfo esys ir http www esys ir Embedded Designer in IRAN ardazesh Sabz Wed Mar 25 38 AM Just set the password and then enter Pauua orrt erase Qca n Non Mar 23 08 AM There will be a login prompt after you log in as root the prompt will appear each time each time point Continue to 88633449 http www esys ir 982188963982 info esys ir I a Embedded Designer in IRAN ardazesh Sabz S This session
56. disc n om air ssssuss ss st vi iare FESE ss 79 1 9 2 LED test PRO SM AMNcic ss lt ccc cssseccsccesacoccsesceccesseueclessccocseseccccssceaccscsescccssstcteci occuvsvecccesscecccrceccsvesece 82 1 9 3 Test DUON acainn a las aaa at cnc lie vases 0 assist vasali alas a ais 84 1 9 4 PWM control buzzer programming examples ssssssssscceeee secccccccccssssssccssesceees seceeeeneeees 85 1 9 5 I2C EEPROM programming examples ssssssssssceseccccccsssssssscesccceccsssssssssesceees sesseeesaneasses 89 1 96 Example Serial Programming lt 2 2 lt lt lt lt ccscccs sss0 lt sssesccecssscsssesceses sccscoccocesevsssasececcecccceccssceetexss 92 1 9 7 UDP network programing ssss00000ssssnenzeetOOrainns ses sccessssessssessssecsecHigsssscceccsssssonsssssseesoas 98 1 9 3 Example math library Gall ccciv c lt ccccccccecesvesscacceccccacssvesececcccccccsecsstercecessscvccavs cestvreresescsess 103 1 9 9 Example thread programming 4 sssssssscsssnnnnnensensancesesttgenssssssssnccses sncethesenensesssssseeeeens 104 1 9 10 Pipeline Application Programming Example Web Control LED csccccsssssssssseeceeeees 106 1 9 11 Based on the C Hello World ssssccccsssssccccssssccccess sossseccscssscccscnssessnsosees ssessoesssssse 111 1 10 Example embedded Linux Gnivers c ccc ecete sesccccccccesssseseecccccccssecssssetecccess ssssesssdeeeeserencers 112 1
57. dore O Curtown Specific vitual net work hanid iha Access shared files on Windows systems follow these steps Step1 Setting in Windows shared folder share_f9 example http www esys ir 1992188533449 intoesysir O MM ardazesh Sabz Ria TAT Moa ose Me Findoss CE Tools aexesnetep Jog TETA RilGetop leg STH rnd nD THF im Wlaar_Vizdns Ziljas Sound ru P Li ru ae re Step2 Figure in Fedora9 operating system te Embedded Designer in IRAN wa AS es Eit TE tu Petpet pee ge hae HiT BNO La VAK ri Bet Ses FEIN Wte el a PAE eek FET A IEE FELHER TTEA cy HEE Q skare_8 FAAP Bases wo TRREDE SHS SHR bl ypas hae ia pakina Meebo Se cin KI AE Vind Matia ra Floppy Drive Ta Network lary mini2440 on 192 168 1 123 Connect to Server ws Search for Files O Applications System eca Open the window shown in Figure 88633449 982158963982 info esys ir http www esys ir Embedded Designer in IRAN ardazesh Sabz Connect to Server Service type Public FTP Server Optional information Port Folder Add bookmark Bookmark name hep Qane Connect In the Service type list select Windows share as shown Connect to Server Service type Windows share Server Optional information Share Folder User Name Domain Name C Add boo
58. e Warning loading opt FriendlyARM mini6410 x86 qtopia qtopia 2 2 0 FriendlyARM qtopia image opt Qtop ia il8n en_US gpe gm Warning loading opt FriendlyARM mini6410 x86 gtopia gtopia 2 2 0 FriendlyARM gtopia image opt 0top ia il8n en_US libgpe gm Warning loading opt FriendlyARM mini6410 x86 gtopia gtopia 2 2 0 FriendlyARM gtopia image opt Otop ia il8n en_US libgtopia gm Warning loading opt FriendlyARM mini6410 x86 qtopia qtopia 2 2 0 FriendlyARM qtopia image opt Qtop ia il8n en_US language gm Warning loading opt FriendlyARM mini6410 x86 qtopia qtopia 2 2 0 FriendlyARM qtopia image opt Qtop ia il8n en_US timezone gm 1 Warning loading opt FriendlyARM mini6410 x86 qtopia qtopia 2 2 0 FriendlyARM qtopia image opt Qtop ia il8n en_US systemtime gm Follow the prompts to click to run you can see Otopia system as follows note that we do not make x86 version of the Chinese system BB Applications o EET Calendar Camera Clock Contacts Help Pictures Terminal 1 11 3 Compiling and running version of Qtopia 2 2 0 arm Make sure you are using the compiler version arm linux gcc 4 4 1 run the platform for Fedora 9 to enter the working directory execute the following command Cd opt S3C6410 TFA linux arm qtopia Build all the process is long you need to run about 30 minutes 4 Mktarget made applicable to the target root file system image file binary package will generate target gtopia kong tgz mmm
59. e 128M is produced for128M 256M 512M 1GB version of the file system image tools in order to facilitate the distinction we named it this For the 6410 system we did not make 64M version so you can follow the system used by the 2440mkyaffs2image 128MUBIFS is nearly two years another popular memory for embedded system file system format UBIFS official use of the tool is more complex and are a lot of parameters and procedures in order to facilitate use we also designed a mkubimage Another mkext3image it used to be made into a single target file system EXT3 image file so that you can in ordinary FAT32 FAT format SD card to install a Linux system using a variety of classes only a single system http www esys ir Embedded Designer in IRAN A o ardazesh Sabz O O image file corresponding copied to the SD card can be this is no longer required a very complex procedure We put these little tools collectively referred to as mktools following its installation steps Run the following command Tar xvzf tmp linux mktools tar gz C Will be in usr sbin directory to create generation mkyaffs2image mkyaffs2image 128M mkubimage mkext3image Note C is capitalized C with a trailing space C is to change the installation directory extract the meaning of Note If you previously installed S3C2440 FA use mkyaffs2image family of tools they will be overwritten Do not worry they function the same 1 4 4 extracting installer L
60. e embedded graphics system installed qtopia source code in the working directory opt S3C6410 TFA linux perform Cd opt S3C6410 TFA linux Tar xvzf tmp linux x86 qtopia 20100420 tar gz Tar xvzf tmp linux arm qtopia 20101105 tar gz Will create x86 qtopia and arm qtopia two directories and includes all of the corresponding sourcecode Description x86 qtopia and arm qtopia back there may be a date suffix it is issued or updated on our logo to the actual date of the CD suffix shall prevail Source code package also includes an embedded browser konquor the source code ln addition this source code package compared to Qt s original version has been patched and made many improvements they are source code form we will not repeat all and self interested more 6 Extract the installation of embedded graphics system qt extended 4 4 3 source codeThe code ln the working directory opt S3C6410 TFA linux perform http www esys ir Embedded Designer in IRAN ardazesh Sabz Cd opt S3C6410 TFA linux Tar xvzf tmp linux x86 qt extended 4 4 3 20101003 tgz Tar xvzf tmp linux arm qt extended 4 4 3 20101105 tgz Will create x86 qt extended 4 4 3 and arm qt extended 4 4 3 two directories and includes all ofthecorresponding sourceDescription x86 qt extended 4 4 3 and arm qt extended 4 4 3 after the date suffix may be it isThe dateof issue or update their logo to the actual date of the CD suffix sha
61. e x86 version of Ot Extended 4 4 3 sssssssssssssssssseesseesseesseeseees 129 1 13 3 compile and run arm version of the Qt Extended 4 4 3 cssssccccscsssssseseeeceesessesssceeeeeee 130 1 14 choose which version of Qt to develop 2 ssssssssccecececessssscceseeceeeeceeesssssseeceee seseeesenenses 131 88633449 http www esys ir 982188963982 info esys ir E t Embedded Designer in IRAN due AIO ee ardazesh Sabz 88633449 http www esys ir 982188963982 info Oesys ir p ee Embedded Designer in IRAN due AIO ee ardazesh Sabz 88633449 http www esys ir 982188963982 info Oesys ir p ee Embedded Designer in IRAN ardazesh Sabz OO S3C6410 TFA Linux Developer s Guide S3C6410 TFA software and 3C6410 TFA is fully compatible so the path is set the default configuration file have followed the S3C6410 TFA of manuals based on the actual situation may be slightly different if in doubt please contact us info esys ir 1 1 The first test of Linux graphical interface Qtopia 2 2 0 Qtopia4 and QtE 4 7 0 system Please refer to S3C6410 TFA functional test guide 1 2 Development board through the serial port terminal operations Note Each learning expectations embedded Linux fans should learn to skillfully use the terminal console operation all platforms Linux commands are similar over 99 of the commands are the same Prior to the operation of this section please follow the S3C6410 TFA
62. ed a password will be displayed in clear text Here mainly for non security encryption and secure encrypted network with examples illustrate respectively 2 1 Connect the open wireless network without a password Step1 First use the scan wifi scan for nearby wireless networks the results shown here is designed for testing without a password set up a wireless network access points open Embedded Designer in IRAN ardazesh Sabz M Step2 Enter the start wifi command to start automatically connect to the wireless network as shown in Figure Wait a moment you can see the target board has automatically assigned an IP address 192 168 3 100 use the ping command to test the network connection as shown in Figure Embedded Designer in IRAN ardazesh Sabz M She MU PEH Mic wer Ry Da s3 opg 17 TP LINK OFC 144 NETGEAR 3 Access Poirt Fond At this point you can enter on the PC browser development board ip address 192 168 3 100 see the development board in web server as shown in Figure 2 2 connection requires a password to use secure wireless network connection wireless network with a password similar to the steps and over but need to know in advance when connecting Wireless Network encryption type and password encryption type if you do not know only in wpa wpa2 wep guess of these three options and specific steps are as follows Step1 Set the security mode wireless route
63. ed_key 0 i lt sizeof buttons sizeof buttons 0 i if buttons i Current_buttons i buttons i current_buttons i printf skey d is s count_of_changed_key 1 1 buttons i Thus answer is 18 0 Up down count_of_changed_key if count_of_changed_key printf n close buttons_fd return 0 Hello you can follow the procedures above compiling hand out buttons executable file then downloaded to the development board Run it 1 9 4 PWM control buzzer programming examples Program source code instructions Driver source code directory opt S3C6410 TFA linux linux 2 6 36 drivers char Driver Name S3C6410 TFA_pwm c Device type misc Device name dev pwm The test program source code directory opt S3C6410 TFA linux examples pwm Test program source code name pwm_test c Test program executable file name Pwm_test Testing procedures in place in the development board Description PWM control buzzer driver has been compiled into the default kernel so can not be loaded using the insmod program list http www esys ir J Embedded Designer in IRAN A s kt ee ardazesh Sabz i Listing Include lt stdio h gt Include lt termios h gt Include lt unistd h gt Include lt stdlib h gt Define PWM_IOCTL_SET_FREQ 1 Define PWM_IOCTL_STOP 2 Define ESC_KEY Ox1b static in
64. es Directory to find the following sample source code the actual number may be more just choose a few examples of the following for guidance Embedded Linux is rich in resources we can not introduce into every detail this paper aims to provide some of the embedded Linux often used method for you to open the door to a wonderful world Note The following example program uses the compiler to arm linux gcc 4 5 1 v6 vfp if you use other versions of the cross compiler there may not be compiled to run on the development board To check the cross compiler version of the type can be run in a terminal command arm linux gcc v as shown in Figure http www esys ir OES is Embedded Designer in IRAN ardazesh Sabz az root tom opt Friend File Edit View Terminal Tabs Help root tom 4 5 1 arm linux gcc v Using built in specs COLLECT GCC arm linux gcc COLLECT LTO WRAPPER opt FriendlyARM toolschain 4 5 1 libexec gcc arm none linux gnueabi 4 5 1 lto w rapper Target arm none linux gnueabi Configured with work toolchain build src gcc 4 5 1 configure build i686 build pc linux gnu hos t i686 build pc linux gnu target arm none linux gnueabi prefix opt FriendlyARM toolschain 4 5 1 with sysroot opt FriendlyARM toolschain 4 5 1 arm none linux gnueabi sys root enable languages C C disable multilib with cpu arm1176jzf s with tune arm1176jzf s with fpu vfp with flo at softfp with pkgversion ctng 1
65. espectively send and receive buffer pointer len is the length of the buffer flags For the option flag here is also less than is set to O is sent to and from the destination address and receive the source address contains the IP address and port information tolen and fromlen are both to and from the length of socket address structure These two functions return value is the actual number of bytes sent and received or 1 for an error No connection with the basic communication process as shown http www esys ir ss Embedded Designer in IRAN al ap ee ardazesh Sabz If SGA If dB socket socket bind bind EVE ues i recvfrom t RHE EE t revcfrom lt ____ sendto close close The basic process of UDP traffic The figure describes the communication port address both bind their case but in some cases there may be a party not bound addresses and ports Does not bind the party s address and port allocated by the kernel As the other party can not know in advance the party is not bound to port and IP address assuming the host has multiple ports these ports are assigned a different IP address so not only by the party to be bound to issue the data reported the other based on income to the source of the data reported in the loopback address can determine the required datagram sent address Clearly in
66. g command to copy the program to flash drive Mount dev sda1 mnt mount USB Cp hello mnt copy just the compiled program to the USB Umount mnt uninstall USB 2 Copy the program from the flash drive to the target board and run Inserted into the USB development board s USB Host interface USB will be automatically mounted to udisk directory execute the following command to run the hello program Cd udisk Hello execute hello program Note If you unplug the USB mandatory at this time you need to return to the root directory then run umount udisk be for the next A good auto mount preparations ardazesh Sabz ettySO 825 Embedded Designer in IRAN SF SE BSW FAC iC R H iA tr HH i Hit HHHiHiHi H H root Friendl root Friendl root Friendl hello Frier root Friendly lt facturer alNunber 0 iguration 1 r r 2 0 1 00 PQ 0 ANSI s 4 00 GB 3 72 GiB write through dware sectors 4 00 GB 3 72 GiB write through ched SCSI rem e dis recommended IO charset for FAT file J cd Zudisk udisk t ls udisk hello udisk t Bizik 0 54 43 ANSI 115200 8 H 1 3 through the serial port to transfer files to the development board By chapter 4 2 5 we learned how to transfer files via the serial port to the development board you can also send the same method hello executable no concrete steps in this detailed description remember to transfer property
67. http www esys ir 982188963982 info Hesys ir ua ow ardazesh Sabz Embedded Designer in IRAN ee Description Build all will automatically compile a complete and Qtopia embedded browser and the compiler generated system supports Jpeg GIF PNG and other image formats you can also have execute Build and Build kong script command to compile them separately If you do not have the smooth implementation please refer to the section at the beginning of the red font description You can delete any original Qtopia development board system as long as the opt directory all files can be deleted And then just generate target gtopia kong tgz through USB or other means to extract the root directory of the development board assuming that we have spread it through the ftp home plg directory then execute the command terminal board Tar xvzf home plg target gtopia kong tgz C One C is the meaning of Change C after the represents extract to the root directory is finished restart the development board you can see all the interfaces have become English only a browser program which is your own to get the Qtopia build system as shown Note The new system pre installed system may use the touch screen calibration parameters etc pointercal you can also delete the old system when it be deleted so it will boot into the correct interface BB Applications P FriendiyaRm Games settings ge of
68. if you are interested you can customize Click to see the line inside the function will not go Embedded Designer in IRAN ardazesh Sabz Contacts KA M 6 te li 6 Yoo Options Select Back B 1 13 3 compile and run arm version of the Ot Extended 4 4 3 Note be sure to use our CD ROM provided in the cross compiler arm linux gcc 4 5 1 and based on Fedora9 platform Fedora9 installation steps see 1 3 1 we can not guarantee that the script can be produced in other platform environments smooth implementation which we do not provide support And Otopia 2 2 0 is very similar we also Ot Extended 4 4 3 compiler produced a ready made scripts build enter the source code directory Cd opt S3C6410 TFA linux arm qt extended 4 4 3 4 Build this process will be very long according to the different machine configurations have different compile time please be patient When successfully executed and then run mktarget script will be the directory from the compiled object file the extract must be Want Qt Extended 4 4 3 libraries and executable binary example and package for the target qtopia4 tgz put it in the development of root decompression board you can use the following command Tar xvzf target qtopia4 tgz C This will be in the opt directory to create generation Otopia4 4 3 directory it contains all required to run the executable files and libraries Instructions for use because the target bo
69. igure S M M Embedded Designer in IRAN ee A 1 Pe PIN ardazesh Sabz tee Bg Pee K Wip M tig KTI Dd ag ou g 1 N M 14 LFECA HH At this point you can enter on the PC browser development board ip address 192 168 3 100 see the development board inweb server as shown in Figure 3 Disconnect the USB wireless network To break the development board USB WiFi connection you can use the command line type stop wifi command no longer in this screenshot shows m _ _ http www esys ir 982188963982 info Hesys ir i ss Embedded Designer in IRAN ardazesh Sabz eae 1 2 16 on the bbs using telnet telnet is a frequently used tool for remote login using telnet function you can log in from the development board provides a telnet server to another host if you can access the network on board the Internet you can log in via telnet command external bbs First make sure the development board s IP address is 192 168 1 230 and whether the other host and LAN connected as shown for the success of the information ere Ee Kau SED SPU Sg seq EMW Oe f nams shi can t access ttp job control turned off root PriendlyARM 8 ifconfig F amp A POL HH E echo Link encap Ethernet ddr 08 00 38 26 0a 58 inet oGdr 192 168 1 230 Hcast 192 168 1 253 Mask 255 255 255 0 UP BROADCAST GUNNING MULTICAST MTU 1500 Matric BX packete 14 errora 0 drapped D overrcuma D freme D TR packatz U mrro
70. ike the complicated settings ubuntu you need to frequently update the settings so we believe that Fedora 9 is the most suitable development platform for beginners Embedded Designer in IRAN A o ardazesh Sabz M 1 3 1 graphical installation of Fedora 9 0 Step1 the installation CD into the drive the BIOS to boot from the CD and boot the system the following screen will appear press Enter to continue Helcone to Fedora 9 tell or epgrade an existing system tell or pyrode an existiog system text mode atallad zyatan B w local drive Menory test Prosa Tabl to edit options in 59 svece fedora Step2 Then enter the next step check the installation disk generally do not need testing so I chose to Skip Skip To begin testing the media before inxtallatios prnxx Ok Choore Skip to xkip the media text and start the instal latiow Step3 After a while you enter the installation graphical screen click Next to http www esys ir 982188963982 info esys ir S Embedded Designer in IRAN ardazesh Sabz M fedora Step4 Select the installation process what language where choice is English fedora Set lengua ge maid pou iim tr use during the ei ballin proc an dhre se ap ie e Chie sefbaditions F4 T Grastimn Hrats6 Czech le stinad Cerish Dansk Dutch A ederlan c en Ent coraan a mhi teal Fiona uar Franch Prar ga ul German Ciautncti Creek Ei
71. in void Section 111 page String s1 Hello world cout lt lt s1 s1 display return 0 double num ans cout lt lt Enter num Run it You can follow the above steps to manually compile the hello program out cplus executable file then downloaded to the development board 1 10 Examples of embedded Linux drivers The previous section we introduced a simple Linux program Hello World which is run in user mode applications and now we start with a run in kernel mode Hello World program began the driver described the preparation and use 1 10 1 Hello Module simple embedded Linux driver module Program source code instructions Source code directory opt S3C6410 TFA linux linux 2 6 36 drivers char Source code file name S3C6410 TFA_hello_module c Major number of the drive without Device name No The test program source code directory No Name of test procedures No Test program executable file name No Description The driver will not load any of the dev device nodes to create Listing Include lt linux kernel h gt Include lt linux module h gt static int init S3C6410 TFA_hello_module_init void printk Hello S3C6410 TFA module is installed n return 0 static void exit S3C6410 TFA_hello_module_cleanup void printk Good bye S3C6410 TFA module was removed n http www esys ir is Embedded Designer in IR
72. inux types h gt Include lt linux delay h gt Include lt linux moduleparam h gt Include lt linux slab h gt Include lt linux errno h gt Include lt linux ioctl h gt Include lt linux cdev h gt Include lt linux string h gt Include lt linux list h gt Include lt linux pci h gt Include lt asm uaccess h gt Include lt asm atomic h gt Include lt asm unistd h gt Include lt mach map h gt Include lt mach regs clock h gt Include lt mach regs gpio h gt Include lt plat gpio cfg h gt Include lt mach gpio bank eh gt Include lt mach gpio bank kh gt http www esys ir OSS is Embedded Designer in IRAN A s kt ee ardazesh Sabz i Define DEVICE_NAME leds static long sbc2440_leds_ioctl struct file filp unsigned int cmd unsigned long arg switch cmd unsigned tmp case 0 case 1 if arg gt 4 return EINVAL tmp readl 3C64XX_GPKDAT tmp amp 1 lt lt 4 arg tmp cmd lt lt 4 arg writel tmp S3C64XX_GPKDAT Printk DEVICE_NAME d d V n arg cmd return 0 default return EINVAL static struct file operations dev_fops Owner THIS MODULE Unlocked_ioctl sbc2440_leds_ioctl static struct miscdevice misc Minor MISC_DYNAMIC_MINOR Name DEVICE_NAME Fops amp dev_fops static int init dev_init void int
73. ion r Femething J fle wetem km md ob dnis slong comtarai it drive would you Ge te boot t l initallition morit Rogie and madii partitioning layout eos Step11 Select the installation type select the figure point Next start customization The detui instal tion of Fedora includes a set of sedi appi able Por gerer intem t ioe What additional taska would pai ike your saten beide apport tort Please select any eddrhonal reprait ries thet pou wank to use farsoftesare ratal ati ACh onal Pedera 5 FTA re J Feda ge Add add bone setbwere m p boner SE Hedtr repoeben hurran further custome the mft mare selection meor after invia nia the miterare Maren e meant appi ation back i West Step12 In the Servers item select Figure mmm http www esys ir 982188963982 info esys ir i Embedded Designer in IRAN A o ardazesh Sabz M Desktop Environments gt Clustering Applications l DNS Name Server Development z Legacy Network Server Base System Mail Server Languages BG MySQL Database Network Servers These packages reide servers farok network protocet such as rsh and tenet het best Step13 to install the system the process time will be longer please be patient x 70 af 1148 packages corngteted installing evalution dete server doc 2 22 1 2 fc9 106 H MM Documentation fies for ewcluteerdata server Step14 installed as shown in Figure 88633449 http www esys
74. ion and build scripts are based on This platform we have not tested on other platforms If you are familiar with Linux development Hen believe you will find step by step according to error causes and solutions they generally lack the platform you use some libraries or tools and other causes Otherwise we recommend beginners to use and we agreed platform that Fedora 9 full name Fedora 9 i386 DVD iso you can download on its official website ftp download fedora redhat com pub fedora linux releases 9 Fedora i386 iso Fedora 9 i386 DVD Iso does not guarantee long term effective you can get in other places they are the same be sure to refer to our installation manual provides step which is the result of rigorous testing so as not to miss some of the development of the group when needed pieces Many Linux distributions we can not write this document explains installation of eleven please understand Why do we choose Fedora 9 According to our tests Fedora 9 after a relatively simple installation and setup you can still use the root user most developers require this user right Fedora 10 and later versions were set to go through a little complicated to use root This is not conducive to the beginners do not understand Linux Fedora 8 and earlier versions are relatively old and some of it And according to our manual provides steps to install Fedora 9 you can provide us with a more perfect development package no additional patches l
75. ir 982128063982 info esys ir ee Embedded Designer in IRAN ardazesh Sabz _ _ _ a z DE gt fedora Congratulations the metalation E complere Prades Wie Rabe BULA Ce ae peur olay weg etast Step15 connected to the step according to the Reboot button to restart the system appears for the first time using the interface as shown Wecome tae Uceane L Welcome nformation a Thare are a few more stapes to Cake b for your system amp ready ta ube Create User The Setup Agent wil non gude you through some baur configuration Date and Tima Please cick the Farman butten n the lower nght comer ta continue Hardware Profile gt foward Step16 Some license information do not bother to continue to the next step m http www esys ir 982188963982 info esys ir ee Embedded Designer in IRAN ardazesh Sabz O O EA License Information Thank yeu hr rakelrg Fear Fedor e a compen of spibame packe each une 3 an cence The compdation g meje avaiable ungar the GNU General Date and Tine Pubic licere Werte 2 Thet se pi riren an LEG onra or cll Fring Hardware Frode this d Hiner Chan afd Merc ions and obbgations Chat apply ta the PE Oo a the cada ather iiri Apia of a i kii Anai t Mii things tio rebooted pha kns pertan to khe kerang ot the radeire trademart ighis snd fort ranir nto nm Create Unser F pou would ike bo understand what those restictin ae pese weit tp kiip
76. irq lt 0 continue disable_irq button_irqs i irq free_irq button_irqs i irq void amp button_irqs i return EBUSY ev_press 1 return 0 http www esys ir 982138963982 info esys ir a Embedded Designer in IRAN ardazesh Sabz i static int s3c64xx_buttons_close struct inode inode struct file file int i for i 0 i lt sizeof button_irgs sizeof button_irgs 0 i if button_irqs i irq lt 0 continue free_irq button_irqs i irq void amp button_irqs i return 0 static int s3c64xx_buttons_read struct file filp char user buff size_t count loff_t offp unsigned long err if lev_press if filp gt f_flags amp O_NONBLOCK return EAGAIN else wait_event_interruptible button_waitq ev_press ev_press 0 err copy_to_user void buff const void amp key_values min sizeof key_values count return err EFAULT min sizeof key_values count static unsigned int s3c64xx_buttons_poll struct file file struct poll_table_struct wait unsigned int mask 0 88633449 http www esys ir 9821 90063989 info esys ir ND ardazesh Sabz Embedded Designer in IRAN poll_wait file amp button_waitq wait if ev_press mask POLLIN POLLRDNORM return mask static struct file operations dev_fops
77. irtE WK bin tye ler Sat thes boot parameter of Lira Version IE ar your Selection _ K K m Registered udp transport modul RFC Registered tcp transoort module r c tl rtc sdc41B ric setting sustem clock to 2096 01 61 79 49 15 UTC 96778 gti tink domn green en t aids 163 1 78 mask ae a 2500 gu 192 168 1 111 hmet she2isl domain nis domainrarmi ni koctserver 192 Ka L 111 reotzerver 192 j v 1 111 roripath Looking up port of RPC 10803 on 197 1 eth lank up LOBHbp full atst is Lea ace Lacking up port of EPC LORRY on 192 168 1 1 Homted root nfs filesystem Freeing init memory Duk M f Ai utf is ena recommended TO charset for FAT filesvatems fileayeton will b ceza soni ti B1 anabi TH 49 29 0080 boa servar version Poart 96 15 RI lane 15249229 0080 boa server built Ape 5 7010 mt 15 40 05 B1 fone 15 85 29 0000 boo starting server pid 65 port BR Try to being eth interface up HFS root Done Pease press Enar t activate this console root friand yRRM 41H _ 1 3 5 the establishment of cross compiler environment The Linux platform the development board for the kernel graphical interface Qtopia Qt4 bootloader there are other applications that require cross compiler tool chain we use the arm linux gcc 4 5 1 it is the default using armv6 88633449 http www esys ir 9821 99963995 info esys ir a Embedded Designer in IRAN a il Aegis ee ardazesh S
78. is running as a privileged user agaci fri amas paria tnt be svaided tor secunty reasons F paszbie you should ag N as omw user cena a This is a login interface and Windows or Ubuntu it is very similar E g Foces system gt E T not Meo Mer 23 13 10 AW gi ORF Accessenes ui Games J anpas gt ntmet W once gt C Pagan o motam Ty ond tu Dst Maragervert E Uist Usage anaya 2 Re Browser H Phone Macager As Power Statistics BG srunus Policy Generstion bal x Sium Doubteshooter P System Log ES system Monitor 1 3 2 Adding a new user In order to facilitate the development we usually create a normal user privileges as follows Step1 Open the Users and Groups in Figure manager ttp www esys ir h 9821 Pts info esys ir E t Embedded Designer in IRAN ee a ardazesh Sabz TS adayRemove Software By Authentication fe Date amp Time gt Wl Display Re firewal E Heb P network Network Device Control w Preferences About GNOME ii Printin F About Fedora AT 9 SELinux Management RM About this Computer d g gt Services S tas Dut ont amp Software Sources shut Down F update System igg Qoos voces ea C Step2 User Management window appears User Manager L ri PUPS User Hama Lier IG Primary Group Ful Name Login Shell Home D rectemi Step3 P
79. k zm flags ttespting ee sount on 31 2 atdblock2 tated VFS Hounted root yates fileepeten ca device 31 7 Fresing init memory 144K heclock settimeotday failed Invalid srquvent 05 Jan 1944 05 15 09 0000 bos server versica Doa U 34 13 05 Jan71944 05 15 09 40000 toa server built Feb 78 2004 at 21 47 23 057Jen 1944 05 15 09 40000 bos starting server pid 496_ port 60 Try to bring ethd interface up thO link down Done Please press Enter to activate this coasole eth Link up 100Hbps full duplex ips 0x45E1 et SETE Ay rcotWFrietrilp k4 j arncontest d dev ttySacl o 34131313 1 JRkRRKRER RR CIE 0 00 5 KEN 115200 e EE TEN 1 2 9 Test Buzzer Species in the command line input pwm_test You can hear the sound of the buzzer press the or can change the output frequency as shown in Figure Press ESC to stop the test 98218862308 info Gesys ir a A Embedded Designer in IRAN ardazesh Sabz _ _ _ _ tty50 Bests TED RSQ K MD BET PHY Os 3 26 e Et ksiemai yakH i zcoteFriendlyaARM 3 root FriendlyARN pv puc poa_test zcotdfrisndiyabA 7 pya_test BUZZER TEST PUM Control Preez to increase redoce the frequercy of EUZTER Press ESC key to Exit thie progra 1010 1020 1030 1020 eg 1010 1000 ESSE 0 01 3 ASIP LIS200 8 H 1 2 10 adjust LCD backlight control Hint LCD backlight device
80. kkrpanzl Cu para bi jamil du Back im fie at Step5 Select the keyboard we can generally beauty style keyboard ttp www esys ir ee n LI PCI info esys ir eee Embedded Designer in IRAN ardazesh Sabz M fedora Select thea appropnaba keryboard fer the ayuber Slovak kaert y seh mai Gaita French bjir Dem Ca Tar Semis Gee art briidi Tord ingcrigt Tale Typewriter T kli US int mmati rad Ukrainian Lire aed EET ari Step6 Start Settings Network fedora Hieber r r lic et arienen Got Debie Peine PnP retin Ear eta DHCP Hostname SEL LIRA a aa de pea decal aa DHF paru kraltc t irada jeg hat doman rom Mi c dimi d ak Rings Drbe wey Brmany GRE Secondary Dra gii Bf pe Point Edit button do not set to DHCP we generally use a static IP to fill out below the control respectively enter the IP and subnet mask 88633449 http www esys ir 9821 99963995 info esys ir ee Embedded Designer in IRAN ardazesh Sabz at incertae Actwe on Boe Advanced Micro Devices AMO 79 970 PCnet 2 LANCE address 00 0c 29 77 B7 31 lt maie Pr uzppart Oyn mie F confegur ti DHCP Manual contguration P Aadress Profa Natasi 192 300 1100 12552557559 Hostname Set the histr automatice O Enabie Pr support manudy Miscellanece Gateway Prerary ONS Secondary DH Q cama ox Gert bet Click OK to return to
81. kmark Bookmark name F Help Qcancei Cannect Enter the Windows host to share the IP address and shared folder name http www esys ir i Embedded Designer in IRAN ardazesh Sabz Connect to Server Service type Windows share Server 192 168 1 23 Option l inform tion share_fg Folder User Name Domain Name Add bookmark aes GB Help cancel Point Connect the following prompt will appear nter Password Password required for share share_f9 on 192 168 1 123 Username KU Domain MYGROUP Password Forget password immediately CO Remember password unti you logout Remember forever G csncel Connect Without regard to a direct point of Connect to you can see that Windows share the contents of the file you can operate in other directories like to use it 88633449 http www esys ir 982128963982 info Gesys ir g eu SA Embedded Designer in IRAN ardazesh Sabz O share_fS8 on 192 168 1 123 Edit View Places Help porting sampie arm linux gcc 2 95 arm linux gcC 3 3 2 3 tgz tgz arm linux gcC 3 4 1 arm gtopia tgz busybox 1 2 0 tgz tgz examples tgz ipag gtopia tgz Jflash2440 tgz v G share_f9 on 192 16 19items If you want to use the directory on the command line you can do this Description In the console TAB key is a good use of the tips oot riti He Edit View Terminal Tbs Help root tom ls
82. l be the time interval of 0 2 seconds to run accumulator t Etc rc d init d leds stop After running this command four user led will stop flashing Etc rc d init d leds start Run the command led four users will start flashing 2 individually controlled LED Bin leds can be controlled is a single led the utility to use the leds must stop led player the following command t Etc rc d init d leds stop This command will stop led led player of the manipulation led to use as follows Root O fa led Usage leds led_no O 1led_no to operate the led for 0 1 2 3 O and 1 represent off and light up t Led 21 LED3 will light 1 2 7 Buttons on the test Test the program name buttons Remarks Test program source code file name Buttons_test c Location of the test program source code Extract linux examples tgz available Development board device name corresponding to dev buttons Corresponding to the kernel driver source Linux 2 6 36 drivers char S3C6410 code TFA_buttons c Other In the command line input buttons command then press the key development board you can display the corresponding key as shown in Figure http www esys ir 982182963982 info esys ir C Embedded Designer in IRAN ardazesh Sabz Ds 408 2 root riend vARM 1 buttons key 2 is down key 1 key li key 2 key 7 key 1 is key 3 key 3 kev 1 key l i key 1 key 5 i key 9 is up key 1 is up
83. ll prevail In addition to use this source code package compared to Qt s original versionhasbeen played upDing and made some improvements they are source code form we will not repeatall interested and self comparison 7 extract the installation QtE 4 7 0 source code in the working directory opt S3C6410 TFA linux perform Cd opt S3C6410 TFA linux Tar xvzf tmp linux x86 qte 4 6 1 20100516 tar gz Tar xvzf tmp linux arm qte 4 7 0 20101105 tar gz Will create x86 qte 4 6 1 and two arm qte 4 7 0 directory and contains all the correspondingsourcecode Description x86 qte and arm qte archive dates back suffix may be it is our issue or updatedate the actual date of the CD suffix shall prevail One x86 qte 4 6 1 is mainly created Creatordevelopment platform slightly lower version will not affect development 8 Extract the source code installed busyboxBusybox is a lightweight tool for linux command set is usedin this version of busybox 1 13 3 Users can download the latest version from their official website http www busybox net In the working directory opt S3C6410 TFA linux perform Cd opt S3C6410 TFA linux Tar xvzf tmp linux busybox 1 17 2 20101120 tgz Busybox 1 17 2 directory will be created containing the appropriate version of the full sourcecode Note we made a default configuration file fa config 9 Extract the installation of Linux sample program performs the following command Cd opt
84. low the above steps to manually compile the hello program out mathtest executable file then download it to open Development board to run it 1 9 9 Thread programming examples Program source code instructions The test program source code directory opt S3C6410 TFA linux examples pthread Test program source code name pthread_test c test program executable file name pthread_test Listing Note Use the thread the key is to include the header file pthread h and at compile time to join the thread library libpthread Include lt stddef h gt Include lt stdio h gt Include lt unistd h gt Include pthread h Note Be sure to include the header file void reader_function void void writer_function void char buffer int buffer_has_item 0 pthread_mutex_t mutex main pthread_t reader pthread_mutex_init amp mutex NULL pthread_create amp reader NULL void amp reader_function NULL writer_function void writer_function void while 1 SS http w W w esys ir 2188963982 i zin a ms Embedded Designer in IRAN A o ardazesh Sabz O O pthread_mutex_lock amp mutex if buffer_has_item 0 buffer a printf make a new item n buffer_has_item 1 pthread_mutex_unlock amp mutex void reader_function void while 1 pthread_mutex_lock amp mutex if buffer_has_item
85. ls and time bir Che spira bate a Time hargai Time protocol Tine zone Date Tire March gt smaa cument Tie 11 05 20 ur Min Tue Wer Thu m Sat Hour 11 i 1 2 4 5 amp F b 0 j N 1 l Lu Hun 1 15 J36 1 M l di yenid sa r 12 m J zm N 2B 28 w H aiak mp Eorward Step19 lists some of the machine hardware information use the default setting points Finish 299988633449 otamen http www esys ir 2182963982 info Gesys ir E ardazesh Sabz rm Create Umer Tie Fi handa are pr rtk Date and Timi Hardware Profle update Oetauit run ledek 5 Platform Aai Brget Ps 3430 Ag Mumbar of CPUs 1 CPU c 1641 Tatem Hamon JOIN System Sram 1932 Mendon Vara ira arth l st De LENTI b fi Trur Prabled Th Send Fonie Genet seme pro hie Prompted as shown in Figure choose the next step 7 rm 25 an Create Urar Date and Timi Hardware Profile SUS 5 iS JE d t pf T LE update Dalsi runlewek 5 UVD Qa Sh eS 3 5 r Fedora remse amp Sulphur Larij u di fi ULUTF E Embedded Designer in IRAN Hardware Profile fer The Fedora Pr j t I id rittifi aur profile k a yest may bo gre beck bo khe comunity as the formation is ueed to help Terus aur etfarts an popular bardragre ard plathorn Submissions ae arena Sending pour pile wil enable g monthly Gap at minda ode Latij dij fiUUTF E CRU Yendo Genuine ibe CPU Mo
86. mach types h is up to date include linux utsrelease h include asm gt include asm arm HOSTCC HOSTLD HOSTCC HOSTCC HOSTCC cc CHK UPD cc cc LD cc cc LD LD Embedded Designer in IRAN root tom opt FriendlyARM mini2440 linux 2 6 32 2 kernel bounds s include linux bounds h arch arm kernel asm offsets s include asm asm offsets h scripts checksyscalls sh scripts mod empty o scripts mod mk elfconfig scripts mod elfconfig h scripts mod file2alias o scripts mod modpost o scripts mod sumversion o scripts mod modpost scripts kallsyms scripts pnmtologo scripts conmakehash init main o include linux compile h include linux compile h init version o init do mounts o init mounts o init noinitramfs o init calibrate o init built in o usr built in o After compilation in arch arm boot directory to generate the linux kernel image file zimage you can use the third section describes the method to download the zlmage to the development board testing CD images linux directory has been compiled to provide a good core file depending on the type of LCD models respectively zimage_n43 zimage_a70 etc 1 7 Configure and compile busybox Usually downloaded from the official website busybox source code needed to reconfigure the need to look at it can be compiled to use we have to do a default configuration file fa config both the 2440 and 6410 we have used this configuration through which compiles busy
87. mbedded Designer in IRAN A o ardazesh Sabz O O static void stop_buzzer void int ret ioctl fd PWM_IOCTL_STOP if ret lt 0 perror stop the buzzer exit 1 int main int argc char argv int freq 1000 open_buzzer printf V nBUZZER TEST PWM Control V n printf Press to increase reduce the frequency of the BUZZER n printf Press ESC key to Exit this program n n while 1 int key set_buzzer_freq freq printf N tFreg d n freq key getch switch key case if freq lt 20000 freq 10 break case if freq gt 11 freq 10 break case ESC_KEY 88633449 http www esys ir 982188963982 info Gesys ir ND Embedded Designer in IRAN ardazesh Sabz case EOF stop_buzzer exit 0 default break Hello you can follow the procedures above compiling hand out buttons executable file then downloaded to the development board Run it 1 9 5 I2C EEPROM programming examples Program source code instructions Driver source code directory opt S3C6410 TFA linux linux 2 6 36 drivers i2c busses Driver Name I2c s3c2410 c device type character device device name dev i2c 0 The test program source code directory opt S3C6410 TFA linux examples i2c Test program source code name eeprog c 24cXX c test program execu
88. me O_RDWR 0 if CommFd lt 0 Error Unable to open device if fcntl CommFd F_SETFL O_NONBLOCK lt 0 Error Unable set to NONBLOCK mode memset amp TtyAttr 0 sizeof struct termios TtyAttr c_iflag IGNPAR TtyAttr c_cflag DeviceSpeed HUPCL ByteBits CREAD CLOCAL TtyAttr c_cc VMIN 1 _ http www esys ir 982128063987 info esys ir a Embedded Designer in IRAN ardazesh Sabz if tcsetattr CommFd TCSANOW amp TtyAttr lt 0 Warning Unable to set comm port TtyFd open TtyName O_RDWR O_NDELAY 0 if TtyFd lt 0 Error Unable to open tty TtyAttr c_cflag TtySpeed HUPCL ByteBits CREAD CLOCAL if tcgetattr TtyFd amp BackupTtyAttr lt 0 Error Unable to get tty if tcsetattr TtyFd TCSANOW amp TtyAttr lt 0 Error Unable to set tty for unsigned char Char 0 fd_set ReadSetFD void OutputStdChar FILE File char Buffer 10 int Len sprintf Buffer OutputHex 2 X c Char fwrite Buffer 1 Len File FD_ZERO amp ReadSetFD FD_SET CommFd amp ReadSetFD FD_SET TtyFd amp ReadSetFD Define max x y x gt y X y if select max CommFd TtyFd 1 amp ReadSetFD NULL NULL NULL lt 0 Error strerror errno Undef max if FD_ISSET CommFd amp ReadSetFD while read CommFd amp Char 1 1 WaitFdWriteable TtyFd
89. ment boards config MINI6410 BUZZER tristate Buzzer driver for FriendlyARM Mini6410 development boards depends on CPU 3C6410 default y Save and exit then the location in linux 2 6 36 directory you can run the make menuconfig Device Drivers Character devices in the menu to see just the added option and press the space bar will be selected as lt M gt This means that the option should compile as a module then press the space becomes lt gt which means should this option compiled into the kernel we choose lt M gt figure if not appear please check that you have loaded the default kernel configuration file see section 1 5 1 SS __ http www esys ir 2188963982 nfo Gesys 1r o x ardazesh Sabz Embedded Designer in IRAN root tom opt FriendlyARM mini6410 linux linux 2 6 36 File Edit View Terminal Tabs Help Character devices Arrow keys navigate the menu lt Enter gt selects submenus gt Highlighted letters are hotkeys Pressing lt Y gt includes lt N gt excludes lt M gt modularizes features Press lt Esc gt lt Esc gt to exit lt gt for Help lt gt for Search Legend built in excluded lt M gt module lt gt module capable Virtual terminal Support for binding and unbinding console drivers I dev kmem virtual device support lt gt LED Support for Mini6410 GPIO LEDS lt M gt Mini6410 module sample lt gt Buttons driver for FriendlyARM Mini6410 de
90. nauthorized network intrusions Enabling a firewall blocks all incoming connections Disabling a firewall allows all connections and is not recommended BUEN Enabled Dscabled lt Tate gt lt ALt Tab gt between clements lt Space gt selects lt Fld gt next screen Choose one Disabled and then select OK to exit so that the permanent closure of the firewall Thefollowing method is to start the NFS service and steps 1 through the commands to start and stop the nfs service run from the command line Etc init d nfs start This will start the nfs service you can enter the following command to verify whether the service nfsstart Mount t nfs localhost opt S3C6410 TFA root_qtopia_qt4 mnt If no error message you will be able to browse to the mnt directory contents and Opt S3C6410 TFA root_qtopia_qt4 is the same Use this command to stop the nfs service Etc init d nfs stop through the graphical interface in order to start the NFS services are automatically every time you boot the system to start the service you can enter Serviceconf Open System Services Configuration window in the left column to find the nfs service option box and select it then the toolbar Enable to start it as shown in Figure 88633449 http www esys ir 982158963982 info Oesys ir _ _ Embedded Designer in IRAN ardazesh Sabz O a ervice Configuration Program Seryice
91. nt LCD display and save it as png images Snapshot pic png Command will execute the LCD display to capture current and saved as pic png file 1 2 29 Check the information board memory The development board equipped with a 256M DDR RAM but is reflected in the system user to view only the total to about 68M of memory http www esys ir 88633449 982188963982 info esys ir Embedded Designer in IRAN ardazesh Sabz M This is because the media driven eat a lot of memory space which we briefly explain the following Generally we use cat proc meminfo command system memory information this information is only describes the whole Linux Software system that can be assigned to the total amount of memory its results as shown below a total of 216M or so In fact the 6410 internal multimedia co processor also uses Some memory run cat prov videomem command to see the details of memory allocation as shown In the u boot your system before you can view the actual memory size as shown Embedded Designer in IRAN ardazesh Sabz M tarih FIE KF Map E TU AE mj DE sg 19 m ce mu pa EIRE i21 i ET LED ri 1 3 Installation and set Fedora9 This section from the virtual machine PC installed on Fedora 9 0 started details how to create a Linux development environment Our software development and testing of all development based on Fedora9 platform to do all the configurat
92. ode instructions http www esys ir 9821 90063089 info esys it C Embedded Designer in IRAN ardazesh Sabz ae Driver source code directory opt S3C6410 TFA linux linux 2 6 36 drivers serial Driver Name S3c6400 c Device name dev ttySACO 1 2 4 The test program source code directory opt S3C6410 TFA linux examples comtest Test program source code name comtest c Test program executable file name armcomtest Testing procedures in place in the development board Description The test program compiled version available x86 version and arm and its source code is exactly the same Listing Description comtest program is a development of a serial test program it is actually a very simple serial terminal program similar to linux in minicom the program has nothing to do with the hardware so the same code applies not only to any Arm linux development board platform can also be used to run on the PC linux methods are exactly the same Through this program you can learn some of the common serial key programming set useful for the serial programming under linux and learn the procedure although very short but clever design with great seriousness we have not explained in detail following it The complete source code Note This program is belongs to all any units or individuals are required to indicate the source reproduced or copied and not for commercial use Include lt stdio h gt
93. ogoMaker LogoMaker is a set developed a Linux Logo simple authoring tools there are many online information on how to use the command line tool to bmp jpg png format images converted to Linux Logo file In this we have designed a graphical version which is based Fedora9 development Execute the following command Tar xvzf tmp linux logomaker tgz C Note C is capitalized C with a trailing space C is to change the installation directory extract the meaning of Description The implementation of the above command LogoMaker will be installed to usr sbin directory it has only one file after installation at the command line enter the following interface logomaker may in a later section we will introduce how to use it http www esys ir 4 982158963982 info esys ir Tm Embedded Designer in IRAN ardazesh Sabz M Friendly Linux Logo Maker File Help 88633449 http www esys ir 982188963982 info esys ir a se Embedded Designer in IRAN ardazesh Sabz 1 5 Configure and compile U boot Samsung has been good for the 6410 transplant U boot and support for USB download Nand start etc it is open source nothing more On this basis we are on the U boot to do a lot of improvements Increase the download menu similar to the USB download menu Superboot Increase the SD card boot configuration Support for direct download programming yaffs2 file system image Support for programming Windows
94. oint toolbar Add User button to add a new user and password 88633449 http www esys ir 982128963982 info Gesys ir a Embedded Designer in IRAN ardazesh Sabz a Create home directory Home Directory homerpig Create a private group for the user U Specify user ID manually Specify group ID manually Qane ia ax Click OK to return you can see has increased plg users while the home directory also increased plg user directory as shown He Edit View Jernmnal Tats Help root tom 4 ls home lg root tom 1 Point the Add User button Add New User window according to the prompts on it 88633449 http www esys ir 982128963982 info Gesys ir Ei i Embedded Designer in IRAN ardazesh Sabz M 1 3 3 access to Windows system files Whether you are using a virtual machine or a real Fedora9 system can Hen convenient access to Windows shared files provided that the network between the two systems are interconnected Tip To use the network in a virtual machine the easiest way is to set up Guest as the Bridges means the network connection as shown Firtasl HEachine Settiece summer oe sus 916 ME Lonracted tard Desk 9 C aD FF Connect st pomer on Oow ime Using Fio CART Flory Auto detect USB Controle Present Sound Cad Aho detect Busy uo detect B Processos 1 Boet only A privato netverk shared with the hast O ar Used to share the host s IP a
95. oj ftp 192 168 1 230 1 PERF onnected to 192 168 1 230 192 168 1 230 220 FriendiyARM FTP server Version 6 4 0penBSD Linux ftpd 0 17 ready 192 168 1 230 root plg 331 Password reguired for Plo 2 AMP Swe 35 plg assword 227 Entering Passive Mode 192 168 1 230 171 47 150 Opening BINARY mode data connection for hello 226 Transfer complete 5061 bytes sent in 0 000144 secs 35145 83 Kbytes sec ftp by SAH AR 21 Goodbye root tom hellole Then one end of the implementation of the target board as shown 88633449 http www esys ir 982128963982 info Gesys ir Ei es Embedded Designer in IRAN A o ardazesh Sabz O a T CON 1 CRT File Edit View Options Transfer Script Window Help m 9 J Q 46 64 Fs 2 root Friend1lyARH plg cd root Friend1lyARH 15 shanghaitan mp3 root Friend1lyARM cd home plg rootaFriend1yARH plg 1s hello root FriendlyARM plg chmod x hello root Friend1lyARH plg 1s root Friend1lyARM plg hello hello FriendlyARH root Friend1lyARHM plg i Serial COMI 4 25 18 Rows 75 Cols Linux 2 the use of USB flash drives Description first copy the compiled executable to USB flash drives USB flash drives plug into the target board and then mount it then copied to the target program executable directory bin Steps a Copy the program to the USB The flash drive plugged into the PC s USB port execute the followin
96. ood nor is the old version it is not good Platform for the development board we need a full desktop system Qtopia desktop system is the handheld device so suitable for a variety of resolution on the LCD display can have a good effect for the display of the development board various functions so we developed based on Qtopia 2 2 0 small programs and implemented and Qtopia4 QtE 4 7 0 Coexistence and other free to switch in essence these implementations are not very new very stylish use of technology They are more basic Linux C or C programming graphical user interface is just a shell but this has met our needs If your application does not require complete desktop system but a separate two applications we recommend using QtE 4 7 or later because of their cross platform development of better it may be easier for beginners to master and transplantation a description is a separate application QtE 4 7 is not very large footprint mmm http www esys ir 982152963987 info Besys ir a
97. ou can also take a look at their search key words are S3C2440 FA nfs they are similar and can be applied to 6410 systems Step1 Set up a shared directory Log in as root Fedora9 in the command line Gedit etc exports Edit the nfs service configuration file Note When you first open the file is empty add the following Opt S3C6410 TFA linux root_qtopia_qt4 rw sync no_root_squash Wherein Opt S3C6410 TFA linux root_qtopia_qt4 that will be shared directory it can serve asa development board through nfs mount the root file system Indicates that all clients can mount this directory rw mount the directory that the client has read and write authority to the directoryno_root_squash mount this directory that allows clients to enjoy the host root Description This directory is not yet actually exist executed after the content section 4 4 will have but in this first set it Step2 Start the NFS service http www esys ir Embedded Designer in IRAN dew til ve a ardazesh Sabz i Through the command line and graphical interface are two ways to start the NFS service we aim to establish NFS service is provided outside the network shared directory services but the default installation of Fedora on a firewall system which will lead to the NFS service does not work properly So turn off the firewall the command line enter lokkit command open fire prevention setting interface A firewall protects against u
98. ource code or the location Development board is located of the source code package in the www directory Description leds cgi is a shell script file it is not binary the script is called by leds html Which is the most common use of web design techniques Extract CD root_default tgz which can also be leds cgi and leds html www directory files They are scripts source code itself using any text editor such as Windows Notepad can be Open the Description Led player and control the LED via the web are a early development for the SBC2410 simple example program its hardware independence it can be easily ported to other systems Some books currently on the market some 2410 2440 6410 development board manufacturers are using this example of a typical pipeline application ttp www esys ir 987 188633449 afo esvs i h 982128963982 info esys ir Embedded Designer in IRAN A p ea ardazesh Sabz 1 LED server Boot into the system will automatically run an LED service program etc rc d init d leds it is a led player calls a script led player is running will be in the tmp directory create a led control the file and send different parameters to the pipeline led flashing mode can be changed Echo 0 0 2 gt tmp led control After running this command four users will be led each time interval of 0 2 seconds to run Marquee Echo 1 0 2 gt tmp led control Run the command led four users wil
99. phicaliinstallation of Fedora 9 Ole ss scsecassseveccssscacecesssevecsties erenn an ESEESE Eretan sevesteansecccesises 42 1 3 2 Adding a NE U f s i2xsi asiasassastivs ssa asslssss sieba UVEA RESSE EEN AARRE E AEE 55 1 3 3 access to Windows system files lt 2 cJecccsseenceccsscvcevcsctesvaceccus evecstesoncessaueacessssovcvereectsdste ccssesst 58 1 3 4 Configuring Network File System NFS services cccssecceee sesssssssssssssssesesessesesesssssssese sessssees 63 1 3 5 the establishment of cross compiler environment ssssessssssssssscssssssssee seseeeceessceeeeeesees 66 1 4 extracting installer source code and other tools 2001 cosssssssssceeeccecccccsssssceeee sesseceseeeceneonss 68 1 4 1 extractithe installatiom SOUNCE t ccs cc ccecsecscccscossccscesecteaces lt saseccccccccevesezesceciceccccecessetescucteccccses 68 1 4 2 Extract to create the target file system ssssscccccceees sosccccssssssssceesccecssssssssceees sesseessseeneees 71 1 4 3 Extract installation file system image tool sssssscccssee soccccceccccccccsccscsescessceessessceees seecesese 71 1 4 4 extracting installer LogoMMaker ssssssscccccsssssssssssceeeces ssssesccecnnccsssssesesceeean sessecsensesssceeees 72 1 5 Configure and compile U boot icssccecssassccsssccsevesssetssssvdscsivecesstescacess tas Peere AEAEE EEEE CETE EERE 74 88633449 http www esys ir 982188963982
100. r wireless router model used here is TL WR740N open the Settings page shown in Figure http www esys ir LOR pig Mecuca a 82199063982 into esys 11 S Embedded Designer in IRAN ardazesh Sabz DOM TtT E PE NRK Kt ERIN JS You can see here there are three encryption modes WPA PSK WPA2 PSK GWPA WPA2 WEP We chose the first WPA it is for the individual of acommon security encryption mode set the password to test1234 save and restart the router Note on how to set up a wireless router we do not make a detailed presentation of this description most of these devices have supporting manual and each manufacturer will be different depending on the actual situation on their own setting Step2 Using the scan wifi scan for nearby wireless networks is designed for testing without a password set up a wireless network access points open visible it is to be encrypted Wireless the network http www esys ir LI PITT info 4esys ir p SS che i B rs Big ee Be 1 oe A Ci g FN V g ls i ee Step3 Enter the start wifi wpa Pardazeh Sabz Test test1234 command to start automatically connect to the wireless network as shown in Figure a ig E che Big Ep i Hip Ag 1 l k a GH g FI 7 are aT ie Wait a moment you can see the target board has automatically assigned an IP address 192 168 3 100 use the ping command to test the network connection as shown in F
101. ra D droppad oveceuns 0 carcier 0 collizions 0 txgueuelen 1000 RX bytes 1193 1 1 Rab TK bytes 0 0 0 B Interrupt 53 Base sddres 0 300 Link encap Local Loopback inet addr 1Z7 0 0 1 Mask 255 0 0 0 UP LOOPBACK RONNIDS MIU 16436 Metricrl BX packets 0 errors 0 droppedi0 overruns 0 frawe 0 TX packets 0 errocs 0 dropped 0 ovecruns 0 carriet collisions 0 txgueuelen 0 BX bytes 0 0 0 5 TX bytes 0 0 0 B root FriendlyArM ping 192 168 1 1 sod bus tire Jy L PING 197 163 1 1 192 168 1 1 56 date bytea 64 bytes from 192 168 1 1 icmp_seFm 0 ttl 69 bime 6 5 me 64 bytes fron 192 168 1 1 icmp seg 1 ttl763 time 0 9 me SS SF a a SSS EE 0 12 2 AI L15200 0 v l Then set the Route IP route add default gw 192 168 1 1 Finally use the telnet command to log the host you want to register log in here is the South kapok bbs m http www esys ir 982188963982 info Oesys ir p t Embedded Designer in IRAN ee ee ardaz sh SaDdZ E ll 271 CET File Edit fier Qptaernw Jremafer Script Yiadew Jelp aw WIR G aig Sk T root riemd y kH JH route i gu 197 168 1 root riendlyarn it telnet 2 137 by ir VEKRHI IP RIN Albbs 19 T nites b theese ki teriag character mode ape character is i SACERMET IS RIE 3 EARI EBU T LAS nm 262 912 147 197 Dd YWarnly Welcome to Hulletia Hoard Service H85 of ERHET Southern Regiona enter F you have any problems please send email to
102. ral Linux Programming books are introduced we have much to say in this Through the web to control the LED blink mode is achieved through the pipeline mechanism in which LED is a shared resource led player is a daemon when it starts to create a named pipe tmp led control of course the pipeline can also be created by the mknod command so the program must be rewritten and are interested can see for yourself and has been monitoring the data input of the pipeline according to different parameters model type and cycle period to change the LED display mode leds cgi is a gateway program it receives over the characters sent from the web form command ping ping pong mode or on behalf of Marquee mode counter mode on behalf of the counter stop on behalf of the stop mode slow behalf cycle 0 25m normal cycle on behalf of is 0 125m fast behalf cycle 0 0625m and assign these instructions into actual numbers then call the echo command to pipe delivery tmp led control in order to achieve control of an LED the following is their list of procedures Listing Include lt stdio h gt Include lt stdlib h gt Include lt unistd h gt Include lt sys ioctl h gt Include lt sys types h gt Include lt sys stat h gt Include lt fcntl h gt http www esys ir ss Embedded Designer in IRAN ardazesh Sabz i Section 106 page Include lt sys select h gt Include lt sys time h gt
103. re The test program source code directory opt S3C6410 TFA linux examples udptak Test program source code name udptalk c Test program executable file name udptalk c Description The test program compiled version available x86 version and arm and its source code is exactly the same Principle of the program TCP IP provides a connectionless transport layer protocol UDP User Datagram Protocol that is User Datagram Protocol UDP and TCP are very different because there was no connection and connection oriented socket programming socket programming there are big differences Since no connection is established each sending a received datagram contains the sender and the recipient s address information Sending and receiving data have to create a datagram socket means the socket is of type SOCK_DGRAM use the following call produces sockfd socket AF_INET SOCK_DGRAM 0 Since no connection is established resulting in direct socket after sending and receiving of Of course to receive the data reported must also be bound to a port or the sender can not know which port to send to Sendto and recvfrom two system calls are used to send and receive datagrams the call format int sendto int s const void msg int len unsigned int flags const struct sockaddr to int tolen int recvfrom int s void buf int len unsigned int flags struct sockaddr from int fromlen Where s is used by the socket msg and buf r
104. rectory to restart After the close qtopia 2 2 0 qt4 commands at the command line you can start the installation just extract the QtE 4 7 0 A as shown SS _ http www esys ir 982128063987 info Oesys ir O Tm Embedded Designer in IRAN A ardazesh Sabz M Path Stroking 1 13 Compile Qtopia4 Qt Extended 4 4 3 1 13 1 extracting installer source code See section 1 4 1 1 13 2 Compiling and running the x86 version of Qt Extended 4 4 3 Note be sure to use our CD ROM provided in the cross compiler arm linux gcc 4 5 1 and based on Fedora9 platform Fedora9 installation steps see 1 3 1 we can not guarantee that the script can be produced in other platform environments smooth implementation which we do not provide support And Qtopia 2 2 0 is very similar we also Qt Extended 4 4 3 hereinafter referred to as Qtopia4 compiled a ready made script build enter the source code directory Cd opt S3C6410 TFA linux x86 qt extended 4 4 3 Build this process will be very long according to the different machine configurations have different compile time please be patient You just compiled to run out of Qtopia4 system is very simple just the compiled terminal enter the following command Command Run note that in front of a Which means that the implementation in the current directory then you can see the following interface according to the function of cue points you can see into the form
105. registers the operation Driver in the list below you can see they are calling the situation In addition you may also need to call a number and device drivers are closely related to basic functions such as registration device misc_register fill out the drive function structure file_operations as well as Hello Module in module_init and module_exit function as such Some functions are not necessary as you learn more about Linux driver development and read more code you naturally understand Program source code instructions a ETENI a ntt WWW ESVS_1 Embedded Designer in IRAN ardazesh Sabz T Driver source code directory opt S3C6410 TFA linux linux 2 6 36 drivers char Driver Name S3C6410 TFA_leds c Device number Led is misc device the device automatically generates Device name dev leds The test program source code directory opt S3C6410 TFA linux examples leds Test program name led c Test program executable file name Led Description LED driver has been compiled into the default kernel so can not be loaded using insmod Listing Include lt linux miscdevice h gt Include lt linux delay h gt Include lt asm irg h gt Include lt mach regs gpio h gt Include lt mach hardware h gt Include lt linux kernel h gt Include lt linux module h gt Include lt linux init h gt Include lt linux mm h gt Include lt linux fs h gt Include lt l
106. ret unsigned tmp tmp readl 3C64XX_GPKCON 88633449 http www esys ir 9821 90063989 info esys ir I is Embedded Designer in IRAN s ta I a ardazesh Sabz l tmp tmp amp OxffffU lt lt 16 0x1111U lt lt 16 writel tmp S3C64XX_GPKCON tmp readl S3C64XX_GPKDAT tmp OxF lt lt 4 writel tmp S3C64XX_GPKDAT ret misc_register amp misc printk DEVICE_NAME V tinitialized n return ret static void exit dev_exit void misc_deregister amp misc module_init dev_init module_exit dev_exit MODULE_LICENSE GPL MODULE_AUTHOR hello world 1 10 3 Key Drivers Program source code instructions Driver source code directory opt S3C6410 TFA linux linux 2 6 36 drivers char Name S3C6410 TFA_buttons c The driver s major number Misc equipment device number will be automatically generated Device name dev buttons The test program source code directory opt S3C6410 TFA linux examples buttons Test program source code name buttons _test c test program executable file name of the buttons Note Key drivers have been compiled into the default kernel so can not be loaded using insmod Development board of the key resources used Button the name of the corresponding interrupt IO register corresponding to K1 GPNO EINTO K2 GPN1 EINT1 K3 GPN2 EINT2
107. riteable int Fd fd_set WriteSetFD FD_ZERO amp WriteSetFD FD_SET Fd amp WriteSetFD if select Fd 1 NULL 8 WriteSetFD NULL NULL lt 0 Error strerror errno __ http www esys ir 82122963982 info esys ir C ardazesh Sabz Embedded Designer in IRAN int main int argc char argv int CommFd TtyFd struct termios TtyAttr struct termios BackupTtyAttr int DeviceSpeed B115200 int TtySpeed B115200 int ByteBits CS8 const char DeviceName dev ttySO const char TtyName dev tty int OutputHex 0 int OutputToStdout 0 int UseColor 0 opterr 0 for int c getopt argc argv d s t 7xoch if c 1 break switch c case d DeviceName optarg break case t TtyName optarg break case s if optarg 0 d p 88633449 982188963982 info esys ir http www esys ir Embedded Designer in IRAN ardazesh Sabz _ _ _ DeviceSpeed SerialSpeed optarg 1 Else if optarg 0 t TtySpeed SerialSpeed optarg 1 Else case 0 TtySpeed DeviceSpeed SerialSpeed optarg break OutputToStdout 1 break case 7 ByteBits CS7 break case X OutputHex 1 break case C UseColor 1 break case case h default PrintUsage if optind Argc PrintUsage CommFd open DeviceNa
108. rocps TODO debianutils init Makefile custom README TODO config nommu docs INSTALL Makefile flags runit util linux busybox unstripped e2fsprogs libbb Makefile help scripts busybox_unstripped map editors libpwdgrp miscutils selinux busybox_unstripped out examples LICENSE modutils shell root tom busybox 1 13 3 1 8 Production target file system image Make sure you have followed the steps in section 4 4 4 installed mktools series of tools they are the same target will suppress the file system directory to a different image file formats to be programmed into the Nand Flash used to install or copy to SD card in operation Also make sure you are ready to 4 4 2 of the preparatory work is to prepare the target file system directory 1 8 1 Production yaffs2 file system image Into the working directory opt S3C6410 TFA linux execute the following command Mkyaffs2image 128M rootfs_qtopia_qt4 rootfs_qtopia_qt4 img Repression of the directory will rootfs_qtopia_qt4 rootfs_qtopia_qt4 img yaffs2 image file format it CD images Linux directory under the same name is the same using the SD card or USB download it can be programmed into the Nand Flash the burning Write the steps described in Brush Guide Note You can use this tool to rootfs_qtopia_qt4 s command to suppress the yaffs2 image file directory will not go http www esys ir 982128963982 info esys ir a _ Embedded Designer in IRAN ardazesh Sab
109. rt htons atoi argv 2 if inet_pton AF_INET argv 1 amp peeraddr sin_addr lt 0 88633449 http www esys ir 982128963982 info esys ir ND Embedded Designer in IRAN A o ardazesh Sabz O O printf Wrong dest IP address n exit 0 memset amp localaddr 0 socklen localaddr sin_family AF_INET if inet_pton AF_INET argv 3 amp localaddr sin_addr lt 0 printf Wrong source IP address n exit 0 Localaddr sin_port htons atoi argv 4 if bind sockfd amp localaddr socklen lt 0 printf bind local address err in udptalk n exit 2 if fgets recmsg BUFLEN stdin NULL exit 0 if sendto sockfd recmsg strlen recmsg 0 amp peeraddr socklen lt 0 printf sendto err in udptalk n exit 3 for l Recv amp send message loop n recvfrom sockfd recmsg BUFLEN 0 amp peeraddr amp socklen if n lt O printf recvfrom err in udptalk n exit 4 Else 88633449 http www esys ir 982128963982 info esys ir ND Embedded Designer in IRAN ardazesh Sabz i Successfully received packets recmsg n 0 printf peer s recmsg if fgets recmsg BUFLEN stdin NULL exit 0 if sendto sockfd recmsg strlen recmsg 0 amp peeraddr socklen lt 0 printf sendto err in udptalk n exit 3 Test Will udp
110. sh Sabz 1 2 14 Test Media Player See S3C6410 TFA function testing guidelines section 1 3 1 2 15 use a USB wireless network card or SD WiFi We recommend that you use the graphical interface program to set up and use WiFi wireless network card will be more convenient the WiFi for the command line program we will no longer be updated and maintained Graphical interface settings see S3C6410 TFA functional test guide at section 1 12 Note The following descriptions are for the prior reservation is no longer updated To facilitate the use of embedded Linux USB WiFi and SD WiFi and other wireless LAN we have developed based on a S3C2440 FA development board s USB WiFi kits command line utility the tool set can support thousands of models of USB wireless card USB wireless network card to use most of the internal chip is the same and now we have ported it to the 6410 platform and integrated SD WiFi driver Here are some steps to use the tool set The tool set includes a wireless network card driver and will use the following three command line utility program scan wifi to scan for nearby wireless networks 88633449 http www esys ir 9821 92963982 info Gesys ir Dee Embedded Designer in IRAN m v rti ee ardazesh Sabz start wifi connect to open wireless network stop wifi stop using the wireless network is installed in the three program development board usr sbin directory 1 Scan for near
111. t getch void struct termios oldt newt int ch if lisatty STDIN_FILENO fprintf stderr this problem should be run at a terminal V n exit 1 Save terminal setting if tcgetattr STDIN_FILENO amp oldt lt 0 perror save the terminal setting exit 1 Set terminal as need newt oldt newt c_lflag amp ICANON ECHO if tcsetattr STDIN_FILENO TCSANOW amp newt lt 0 perror set terminal exit 1 ch getchar Restore termial setting if tcsetattr STDIN_FILENO TCSANOW amp oldt lt 0 perror restore the termial setting exit 1 88633449 http www esys ir 982138963982 info Gesys ir C Embedded Designer in IRAN A o ardazesh Sabz O O return ch static int fd 1 static void close_buzzer void static void open_buzzer void fd open dev pwm 0 if fd lt 0 perror open pwm_buzzer device exit 1 Any function exit call will stop the buzzer atexit close_buzzer static void close_buzzer void if fd gt 0 ioctl fd PWM_IOCTL_STOP close fd fd 1 static void set_buzzer_freq int freq This IOCTL command is the key to set frequency int ret ioctl fd PWM_IOCTL_SET_FREQ freq if ret lt 0 perror set the frequency of the buzzer exit 1 http www esys ir 982128963982 info esys ir aE E
112. t to u boot_nand ram256 bin 1 5 2 SD card support for configuring compile U boot boot Description According to the different development board memory DDR RAM capacity need to use a different U boot configuration items To compile for 128M memory U boot follow these steps U boot code into the source directory run Cd opt S3C6410 TFA linux u boot S3C6410 TFA http www esys ir se Embedded Designer in IRAN ardazesh Sabz Make S3C6410 TFA_sd_config ram128 make In the current directory will be compiled with support for SD configuration and start U boot bin using SD Flasher exe tool it programmed into the SD card set development board from the start to use the SD card you can refer to 2 2 sections of the steps simply one of the Superboot bin to U boot bin on it CD images linux directory has been compiled in the document provided in order to facilitate the distinction we rename it to u boot_sd ram128 bin To compile for 256M memory U boot follow these steps Go to U boot source directory run Cd opt S3C6410 TFA linux u boot S3C6410 TFA Make S3C6410 TFA_sd_config ram256 make In the current directory will be compiled with support for SD configuration and start the U boot bin using the SD Flasher exe tool programmed it to an SD card set the development board can be used starting from the SD card you can refer to 2 2 sections of the steps simply one of the Superboot bin to U boot bin on it C
113. table file name I2c Testing procedures in place in the development board Description 12C driver has been compiled into the default kernel so can not be loaded using insmod Listing Note The following procedures need to program with the support directory 24cXX c Include lt stdio h gt Include lt fcntl h gt Include lt getopt h gt Include lt unistd h gt Include lt stdlib h gt Include lt errno h gt Include lt string h gt Include lt sys types h gt Include lt sys stat h gt Include 24cXX h Define usage_if a do do_usage_if a LINE__ while 0 void do_usage_if int b int line const static char eeprog usage I2C 24C08 256 bytes Read Write Program ONLY FOR TEST N n if 03B 0 1 1 2 2 Retur fprintf stderr s n line d n eeprog_usage line exit 1 http www esys ir J Embedded Designer in IRAN A o ardazesh Sabz O O Define die_if a msg do do_die_if a msg LINE while 0 void do_die_if int b char msg int line if 03B 0 1 1 2 2 Retur fprintf stderr Error at line d s V n line msg fprintf stderr sysmsg s n strerror errno exit 1 static int read_from_eeprom struct eeprom e int addr int size int ch i for i 0 i lt size i addr die_if ch eeprom_read_byte e addr lt 0 read error if i 16 0
114. talk c compiled after a good run Opt S3C6410 TFA linux examples udptalk directory Makefile specifies two compile the target executable file one for the host side of the x86 udptalk a development board for arm udptalk run the make command Together these two programs will be compiled You can use the arm udptalk the method described above to download to the development board pre installed Linux without the program assuming that the host s IP address is 192 168 1 108 the IP address of the development board 192 168 1 230 Input terminal on the host x86 udptalk 192 168 1 230 2000 192 168 1 108 2000 Input in the development of the terminal board Arm udptalk 192 168 1 108 2000 192 168 1 230 2000 Then the results are shown below http www esys ir 9821 90063089 info esys it ND Embedded Designer in IRAN File Edit View Terminal Go root capbily root capbily f root capbily root capbily udptalk x86 udptalk x86 udptalk lt dest IP address gt lt dest port gt lt source IP address gt lt source port gt root capbily udptalk x86 udptalk 192 168 0 230 2000 192 168 0 1 2000 peer peer Hello Capbily Hello SBC 2410X peer Running on the host x86 udptalk 88633449 5 A 982188963982 info esys ir E mE Embedded Designer in IRAN File Edit View Terminal Go Help Cap orca 02 Dec 2030 18 41 57 0000 boa server version Boa 0 94 13 02 Dec 2030 18 41 57 0000
115. the following Run note that in front of a Which means that the implementation in the current directory then you can see the following interface http www esys ir OES Embedded Designer in IRAN ardazesh Sabz M root tom opt FriendlyARM mini6410 x86 qtopia File Edit View Terminal Tabs Help root tom opt FriendlyARM mini6410 x86 qtopia X root tom opt FriendlyARM mini6410 x86 qtopia make 4 Leaving directory opt FriendlyARM mini6410 x86 gtopia kong kong embed src make 3 Leaving directory opt FriendlyARM mini6410 x86 gtopia kong kong embed src make 3 Entering directory opt FriendlyARM mini6410 x86 gtopia kong kong embed make 3 Nothing to be done for all am make 3 Leaving directory opt FriendlyARM mini6410 x86 gtopia kong kong embed make 2 Leaving directory opt FriendlyARM mini6410 x86 gtopia kong kong embed make 2 Entering directory opt FriendlyARM mini6410 x86 gtopia kong make 2 Nothing to be done for all am make 2 Leaving directory opt FriendlyARM mini6410 x86 gtopia kong make 1 Leaving directory opt FriendlyARM mini6410 x86 gtopia kong root tom x86 qtopia run bash run command not found root tom x86 qtopia run Using display 0 ing QSocket writeBlock Socket is not open i R gt os Tap anywhere on the sereen to Warning loading opt FriendlyARM mini6410 x86 qtopia qtopia 2 2 0 FriendlyARM qtopia image opt Qtop ia il8n en_US qt qm continu
116. this case the other party must bind address and port and communication can only be initiated by a non binding side And read and write is similar to the process of blocking in recvfrom and sendto also occur But in different ways with TCP is that the number of bytes received a datagram 0 is possible the application can be sendto in the msg set to NULL while len set to 0 Listing Udptalk Example for Matrix V Note This procedure also applies to S3C2440 FA Copyright C 2004 capbily Capbily hotmail com Include lt sys types h gt Include lt sys socket h gt 88633449 http www esys ir 98212296398 info esys ir ND OO mu OL g Embedded Designer in IRAN ardazesh Sabz i Include lt arpa inet h gt Include lt stdio h gt Define BUFLEN 255 int main int argc char argv struct sockaddr_in peeraddr talk to each other s IP and port storing the socket address localaddr local socket address int sockfd char recmsg BUFLEN 1 int socklen n if argc 5 printf s lt dest IP address gt lt dest port gt lt source IP address gt lt source port gt n argv 0 exit 0 sockfd socket AF_INET SOCK_DGRAM 0 if sockfd lt 0 printf socket creating err in udptalk n exit 1 socklen sizeof struct sockaddr_in memset amp peeraddr 0 socklen peeraddr sin_family AF_INET peeraddr sin_po
117. to the top of the SD device as shown KM HAO ZTO up KET D ie osu BS 0 23 04 ASTY 1150 amp 1 1 2 5 How to transfer files to each other and the PC serial port Embedded Designer in IRAN A o ardazesh Sabz O Note Use the USB to serial port there may not be smooth and we think it s USB to serial cable quality and performance related When the log through the serial port terminal you can use the rz or sz command via the serial port and PC to transfer files to each other as follows 1 sz send files to the PC HyperTerminal window 2 right click the pop up menu select Receive file began to set the receive textParts catalog and protocols as shown Ald t ee U ete c BA Then enter the terminal command line sz root Documents viva la vida mp3 command began to PC Transfer is located in root Documents directory of the viva la vida mp3 files or other documents change it path and file name on it because the files are large so it is necessary to wait a few minutes is transmitted the system will automatically save the file to the directory you set as shown http www esys ir Embedded Designer in IRAN A o ardazesh Sabz _ O Y ttys0 Ait Znodem OHIMRKS MT EERU VIVA LA VIDA NPS THEA D datalWIVA LA VIDA MFS _ xe 1 1 Hit FEER Bie ike EG ZH TETTED ST3E ATZOK EA 00 01 33 Big oon Sms t r eps
118. ule has been loaded Note Use the modprobe command to load the module does not require added ko Last Suffix And then execute the following command you can see that the module is unloaded Rmmod S3C6410 TFA_hello_module Note To be able to properly unload the module the module must be put into the development board Lib modules 2 6 36 directory Also to note because our core updates sometimes if the kernel version has changed please follow According to the specific kernel version the module to re establish a store directory this is lib modules 2 6 36 The whole process as below SS a _ http www esys ir 2188963982 nfo Gesys 1r E Embedded Designer in IRAN ardazesh Sabz a ettyS0 EPAI SIF SEE BEY FAC AD ABBA De DB 8 root Friend1yARM 2 6 36 Friend1lyARM ls home plg mini6416_hello_module ko root Friend1yARM 2 6 36 Friend1yARM pwd 1ib modules 2 6 36 Friend1yARM root Friend1lyARM 2 6 36 Friend1lyARM cp home plg mini6416_hello_ module root Friend1lyARM 2 6 36 Friend1yARM 15 modules dep modules order modules dep bb modules pcimap mini6416_hello_module ko modules ieee1394map modules seriomap modules alias modules inputmap nodules symbols modules builtin modules isapnpmap modules usbmap modules ccwmap modules ofmap root Friend1yARM 2 6 36 Friend1yARM modprobe mini6416_hello_module Hello Mini6416 module is installed root Friend1yARM 2 6 36 Friend1yARM
119. ux examples hello Make Finally the generated executable file hello you use the file command to check whether the resulting executable file hello And format for the ARM architecture version the development board in the normal operation of the executable file is generally as shown mmm http www esys ir 982128063982 info Oesys ir g eee Embedded Designer in IRAN jw ilo ardazesh Sabz O a root tom optvmini2 O exampies neiio file Edit View Terminal Tabs Help buttons camtest hello led player sath pwa root tom examples cd hello root tom helloj ls hello hello c Makefile root tom helloj file hello hello ELF 32 bit LSB executable ARM version 1 SYSV dynamically linked uses shared libs for GNU Linux 2 6 14 not stripped root tom hellojs Step2 the Hello World download to development board running Download the executable file will be compiled to the target board is mainly in four ways first to transfer files via ftp to the development board recommended second Copy to media eg USB third via the serial port transfer files to the development board Fourth The NFS Network File System were introduced directly run the following 1 use ftp to transfer files recommended Note the target board using ftp login upload the compiled program and then upload the target board to modify the program executable and run First the PC side implementation as shown root tom hell
120. velopment boards lt gt Buzzer driver for FriendlyARM Mini6410 development boards ADC driver for FriendlyARM Mini6410 development boards Non standard serial port support lt gt GSM MUX line discipline support EXPERIMENTAL Serial drivers gt Unix98 PTY support Support multiple instances of devpts Legacy BSD PTY support 16 Maximum number of legacy PTY in use lt gt IPMI top level message handler gt vi lt Exit gt lt Help gt Step2 By the previous step although we can choose when configuring the kernel but in fact at this time or can not perform S3C6410 TFA_hello_module c kernel compiled but also need to put in the Makefile in the kernel configuration options and the actual source code linked open linux 2 6 36 drivers char Makefile add and save and exit in Figure root tom opt FriendlyARM mini6410 linux linux 2 6 36 File Edit View Terminal Tabs Help lobj CONFIG AGP agp lobj CONFIG PCMCIA pemcia lobj CONFIG IPMI HANDLER ipmi lobj CONFIG HANGCHECK TIMER hangcheck timer o lobj CONFIG TCG TPM tpm lobj CONFIG PS3 FLASH ps3flash o lobj CONFIG RAMOOPS ramoops 0 lobj CONFIG JS RTC js rtc o js rtc y rtc o mini6410 leds o mini6410 obj CONFIG MINI6410 BUTTONS mini6410 buttons 0 lobj CONFIG MINI6410 BUZZER mini6410 pwm o lobj CONFIG MINI6410 ADC mini6410 adc o 4 Files generated that shall be
121. vis to use for this installation ob ddancted iloage cangra Whar driva would you lik to boot this installation rort Royan and madi partitiening layout t i Bet Next warning message will appear telling you to format the partition will continue to implement all of the data we generally use in Vmware virtual machine so you can choose Write changes to disk thenstart formatting retatster reqeres parttinng of your hard dre By defaut a partibonng layout is chosen which is reason abie for most users Yu can cithe choose Co we this or create your own Remeve Linux partitions on selected dnves and create detmut layout x Encrypt system Select the drivels to v The partitioning optoris you have selected ml foe be written Do disk Any data on cekted o reformatted partitions wi be lost T Adeanced storage Go back Arte changes to dek ss What drive would you Rayew and medfy partinoring layout ost ap Met This is the format process diagram SS http www esys ir 88633449 Embedded Designer in IRAN OOOO 88963982 info esys ir ee Embedded Designer in IRAN ardazesh Sabz ietaise gures partitioning of yaurherdidinve By dePauk 3 partitioning bet is chopan mhidhiis pes DAT de F riest wen thu can ether chose to Chis rcrt t Your ti Remove Linas partibens on sehecbed dives and create cle Fruit mira ut Encrypt system Select the drive s to uve for this installat
122. wnloaded to the development board to run it 1 9 3 Test button Program source code instructions Driver source code directory opt S3C6410 TFA linux linux 2 6 36 drivers char Driver Name S3C6410 TFA_buttons c Device type misc Device name dev buttons The test program source code directory opt S3C6410 TFA linux examples buttons Test program source code name buttons_test c Test program executable file name of the buttons Test program development board in the position description Key drivers have been compiled into the default kernel so can not be loaded using insmod Listing Include lt stdio h gt Include lt stdlib h gt Include lt unistd h gt Include lt sys ioctl h gt Include lt sys types h gt Include lt sys stat h gt Include lt fcntl h gt Include lt sys select h gt Include lt sys time h gt Include lt errno h gt int main void int buttons_fd char buttons 6 0 0 0 0 0 0 buttons_fd open dev buttons 0 if buttons fd lt 0 perror open device buttons exit 1 for http www esys ir is Embedded Designer in IRAN ardazesh Sabz char current_buttons 6 int count_of_changed_key int i if read buttons_fd current_buttons sizeof current_buttons Sizeof current_buttons perror read buttons exit 1 for i 0 count_of_chang
123. y types and speeds If you want to stop the web server then the command prompt enter the following command Etc rc d init d httpd stopTo restart enter Etc rc d init d httpd start 1 2 24 How to use Network File System NFS mount During the test before the PC NFS server side to build a good system then enter the following command at the command line assuming the server s IP address is 192 168 1 111 Mount t nfs o nolock 192 168 1 111 opt S3C6410 TFA linux rootfs_qtopia_qt4 mnt Mount successfully you can enter the mnt directory operation as shown below Cancel the mount command as follows Umount mnt 88633449 http www esys ir 982188963982 info Oesys ir 7 S Embedded Designer in IRAN ie tl u ardazesh Sabz i ZH 262 Ew Hig EZD KM D 0 S 2 r umraD Ts voot friend gAFM clearg server pid 274 port 80 lt Y nou pt ENFS BAER ft AES ant E 2 Bi 1 2 25 Set and save the real time clock Linux Change the time of the method in general use the date command in order to S3C2440 internal clock with the linux system with clock synchronization general use hwclock command thefollowing is their use 1 date s 042916352007 Set time to 2007 04 29 16 34 2 hwclock w to just set the internal RTC time into the S3C2440 3 Boot using the hwclock s command to restore linux system clock to RTC generally put intothe statement Etc init d
124. z ae 1 8 2 Production ubifs file system image Into the working directory opt S3C6410 TFA linux execute the following command Mkyaffs2image 128M rootfs_qtopia_qt4 rootfs_gtopia_gt4 ubi Repression of the directory will rootfs_qtopia_qt4 rootfs_gtopia_gt4 ubi UBIFS image file format it CD images Linux directory under the same name is the same using the SD card or USB download it can be programmed into the Nand Flash the burning Write the steps described in Brush Guide Note You can use this tool to rootfs_qtopia_qt4 s command to suppress the ubifs image file directory will not go 1 8 3 create ext3 file system image Into the working directory opt S3C6410 TFA linux execute the following command Mkext3image 128M rootfs_qtopia_qt4 rootfs_qtopia_qt4 ext3 Suppressed as EXT3 will rootfs_qtopia_qt4 catalog image file format rootfs_qtopia_qt4 ext3 it and CD images Linux directory under the same name is the same the instructions refer to section 3 3 copy it into the SD card you can use it running system Note You can use this tool to rootfs_qtopia_qt4 s command to suppress the ext3 image file directory will not go 1 9 Examples of embedded Linux applications This section embedded Linux development through the most simple example how to write and compile Linux applications and download to development board up and running If you have already performed the steps in section 4 4 1 you can opt S3C6410 TFA exampl

Download Pdf Manuals

image

Related Search

Related Contents

国電通仕第47号 直流電源装置  Sony VAIO VPCCA25FX  Phantom Tech Viewpoint VI0508 User's Manual  SuperBlade User's Manual  Operating Instructions  Kambrook SNUGASABUG KRH100 User's Manual    Emerson DLC3010 Instruction Manual  取扱説明書 - TOEX  Gebruiksaanwijzing Manuel d`utilisation Instruzioni per l`uso  

Copyright © All rights reserved.
Failed to retrieve file