Home

Mini2451 User`s Manual

image

Contents

1. DE Mew Soul a 1251430 TERTA BGO on03 All Locations All ETE 2 5 4 Play Video Go to the Application page click on the video icon select a video file and click on play SEEE EHA Yii Playlist Options gt a a panda m oat All Locations All abed a WETE ia i A Boy Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com E 4 7 On Complete ARM Solutions Gian Design Development and Manufacturing Sip f zg MI Expertise on Embedded Linux Android WindowsCE 2 5 5 Image Viewer Go to the Application page click on the pictures icon and you will be able to browse pictures E Pictures Image View J 3 eo er sion oer ae i ve PM mini 440 sunflower eles al d abe a Ml BE Joos 2 5 6 Auto Mount of SD Card After your system is loaded if you plug an SD card or a USB flash drive you will see a mobile storage device icon appear on the right bottom All files in the MMC SD card will be listed in the Documents page Note this auto mount function is developed by FriendlyARM and currently it can only recognize the card s first section and formats of VFAT FAT32 FA
2. Image File to Fuse I superbootsuperboot 20110511 bin SU Drive ls Name Physical Disk Size Available Result Designed by FnendlyARM sc ll RKeFormat ReLayout All rights reserved www arms ret Yer 111T Step2 click on mm to select your bootloader file Image File to Fuse Cama ee En SD Drive s Name Physical Disk Size Available Reports Desi d by FnendlyARM ee etree ReLayout All nghts reserved www anng _net Ver 13526 Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com B 22 W 2g Complete ARM Solutions riendly Design Development and Manufacturing Bis ERNI Expertise on Embedded Linux Android WindowsCE Step3 insert a FAT32 SD card into your host s SD card socket you can also use a USB card reader to connect to a PC backup your data in the card and click on Scan all recognized SD cards will be listed Step4 click on ReLayout the following dialog will pop up prompting you that the data in your card will be lost Just click on Yes gt Relayout Disk i All data in the Disk will be lost are you sure ae After formatting is done you will be directed back to the main menu Clic
3. root FriendlyARM ifconfig Board s IP Address eth Link encap Ethernet HWaddr 08 00 3E 26 0A 5B inet addr 192 168 1 230 Bcast 192 168 1 255 Mask 255 255 255 0 UP BROADCAST RUNNING MULTICAST MTU 1500 Metric 1 RX packets 14 errors 0 dropped U overruns 0 frame TX packets 0 errors 0 dropped 0 overruns 0 carrier 0 collisions 0 txqueuelen 1000 RE bytes 1193 1 1 KiB TX bytes 0 0 0 B Interrupt 53 Base address 0x300 Lo Link encap Local Loopback inet addr 127 0 0 1 Mask 255 0 0 0 UP LOOPBACK RUNNING MTU 16436 Metric 1 RX packets 0 errors 0 dropped 0 overruns 0 frame 0 TX packets 0 errors 0 dropped 0 overruns 0 carrier 0 collisions 0 txqueuelen 0 RX bytes 0 0 0 B TX bytes 0 0 0 5j root FriendlyARM ping 192 168 1 1 Connection Successful PING 192 168 1 1 192 168 1 1 56 data bytes 64 bytes from 192 168 1 1 icmp seq 0 ttl 64 time 6 5 ms 64 bytes from 192 168 1 1 icmp seq 1 ttl 64 time 0 9 ms Then configure your router s IP route add default gw 192 168 1 1 Now you can telnet a BBS Here we visited bbs scut edu cn Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 84 Hi File Edit View Options Transfer Script Window Help and Gd oH Qs amp aos 2
4. Click on connect the following window will show up Enter Password Password required for share share _f9 on 192 168 1 123 Username 0 Domain MYGROUP Password Forget password immediately O Remember password until you logout cancel Connect O Remember forever Go ahead and connect again you will see the shared files you just set in your windows system Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 124 Complete ARM Solutions Design Development and Manufacturing sA File Ecit View Places Hep port ng sample arm linux gcc 95 arm linux gcc 3 3 3 tqz tgz arm linux gcc 3 4 1 arm qtopia tgz busybox 1 2 0 tgz Lyz examples tgz ipaq qtooia tgz Nasi12440 tgz D G share_f9 on 132 16 v 19 items Expertise on Embedded Linux Android WindowsCE If you want to access this directory from the command line utility you can do it by hitting the TAB key File Edit View Terminal Tabs Help root tom i ls root qvfs mini2440 on 192 168 1 123 share_f9 on 192 168 1 123 root tom _ ls root gqvfs share f9 on 192 168 1 123 arm Linux gcc 2 95 3 TgzZ porting samp e arm Ll
5. Action Install OS Linux LCD Type W35 USB Mode No VerifyNandWrite Yes Status Type Beeperl LED Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com B 37 HK On Complete ARM Solutions riendly Design Development and Manufacturing FRN Expertise on Embedded Linux Android WindowsCE Linux BootLoader superboot2451 bin Linux part Linux Kernel Linux zImage Linux CommandLine CommandLine root dev mtdblock2 rootfstype yaffs2 init linuxrc console ttyS ACO 115200 Linux RootFs Installfmage Linux rootfs_qtopia_qt4 img Note currently our supported LCD types include H43 W50 and S70 Step2 make sure your SD card has the following files actually you can copy the whole image directory to your SD card s root directory Becks Cc images superboot245 1 bin Bootloader It can boot Linux and other OS It can be run from an SD card images Linux zImage Linux kernel It can automatically detect mee images Linux rootfs_qtopia_qt4 1img Linux file sysem image images FriendlyARM ini Configuration file Step3 insert the SD card to the board s SD socket and switch S2 to the SD side When power on the board you will hear a beep and see a progress bar on
6. Pllinuxre 6354K 2010 04 20 Tag ENE EE 2 5 10 Network Setting Go to FriendlyARM click on the network setting and you will be able to see the following screenshot Shetek ete Ethernet Device dmg00 Static IP 192 168 1 230 ae Mask 255 255 255 0 Gateway 192 168 1 1 Close DNS 192 166 1 1 Designed by FriendiyARM MISC 08 90 50 90 90 90 All rights reserved waww arms met AE ey BR Q 2 qos You can set your network parameters and save it to the etc ethO setting Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 47 X Complete ARM Solutions riendly Design Development and Manufacturing f gt MI Expertise on Embedded Linux Android WindowsCE 2 5 11 Ping Test After configure your network please go to FriendlyARM and click on Ping Testing Pare Ees m ping forever IP Address 192 168 1 1 Buttons LEDNA LEDS i USB HfL FS aL Psa ee E VS Designed by FriendlyARM All nights reserved wav anma rel 2 5 12 Browser Go to FriendlyARM click on Browser open the soft keypad on the left bottom and you can type a website in the address bar Address Room 1705 Block Al L
7. Create User Date and Time Hardware Profile If you would like to understand what those restrictions are please visit http fedoraproject org wiki Legal Licenses LicenseAgreement Understood please proceed ema Step17 create new users We ignored user creation and went to the next step Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 108 W Complete ARM Solutions Design Development and Manufacturing Expertise on Embedded Linux Android WindowsCE Welcome i jae Create User Information It is recommended that you create a username for regular non Create User administrative use of your system To create a system username Date and Time please provide the information requested below Hardware Profile Username Full Name Password Confirm Password If you need to use network authentication such as Kerberos or NIS please click the Use Network Login button Use Network Login ema Press continue to go on Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fa
8. a f Applications 4C system 3S Open the window below Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 122 Complete ARM Solutions Design Development and Manufacturing Service type Public FTP Server Optional information Port Folder Add bookmark Bookmark name 3 Help cancel Connect Select Windows share in the service type field Connect to Server Service type Windows share Server Optional information Share Folder User Name Domain Name _ Add bookmark Bookmark name 3 Help cancel Connect Input the shared file s name and its windows machine IP Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 123 i Complete ARM Solutions Design Development and Manufacturing Folder User Name Domain Name Add bookmark Bookmark name
9. 162 H 2g Complete ARM Solutions riendly Design Development and Manufacturing FRV Expertise on Embedded Linux Android WindowsCE bin sh type 0 period 1 case QUERY STRING in ping type 0 counter type l Stop type 2 esac case QUERY STRING in s Low period 0 25 norma period 0 125 fast period 0 0625 esac bin echo type period gt tmp led control echo Content type text html charset gb2312 echo bin cat led result template exit 0 5 2 10 Hello World with C source Code Location S S SSCCSCSCSC S S S S s S S S S river o C a a Test Program Source Code Location opt FriendlyARM mini2451 examples C A Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 163 i On Complete ARM Solutions riendly Design Development and Manufacturing f tlyi Expertise on Embedded Linux Android WindowsCE Note to utilize math libraries you need to include its header file pthread h and add an compile option libpthread Program Hinclude lt iostream gt Hinclude lt cstring gt using namespace std class String private char str public String ch
10. 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 59 F Complete ARM Solutions Design Development and Manufacturing check if there is any offset or vibration This can be done via the penpad utility Click on the penpad icon in the FriendlyARM tab Poe Pose see File Help 2S Ti Buttons LED Lihi LEDs ii B USE Bee REA BB disco l Ba SABIE The penpad utility is an easy to use program developed by Friendly ARM Start it and a yellow drawing area will show up Draw whatever you like in the area the pen color is black its width is 1 pixel go to File gt Save you will save what you draw to a png file in the Documents tab the Documents image png directory The file name begins with 001 The maximum number of files that can be saved is 999 The following screenshot shows that our writing was smooth which meant our pen was accurate Eer ESAE see eel File Help Pai E 22 0 00 01 Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 60 T Complete ARM Solutions riendly Design Development a
11. System Swap 1983 Vendor VMware Inc System VMware Virtual Platform None Form factor unknown Kernel 2 6 25 14 fc9 1686 SELinux Enabled True SELinux Policy targeted iw bet J gt Send Profile Do not send profile On the popup window shown below just click on the red marked button Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 112 HW Complete ARM Solutions Design Development and Manufacturing Welcome License Information Create User smolt Is a hardware profiler for The Fedora Project submitting your profile is a great way to give back to the community as this information is used to help focus our efforts on popular hardware and platforms Hardware Profile Submissions are anonymous Sending your profile will enable a monthly update UUID 0895b853 99d0 47d7 85dc 07c9815d24eb A Date and Time OS Fedora release 9 Sulphur Default runlevel 5 Language en_US UTF 8 Are you sure you wouldn t like to send the profile Submitting your profile is a valuable source of information for our development and can help troubleshoot issues that may come up with your hardware Reconsider sending No do not send orm fact
12. TestSpeed 19200 TestSpeed 38400 TestSpeed 57600 TestSpeed 115200 TestSpeed 230400 Error Bad speed return l 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 l t tty s speed 7 l e x l o Bowe fprintf stderr 7 7 bit n LA fprintf stderr x hex mode n fprintf stderr o output to stdout too n fprintf stderr c stdout output use color n fprintf stderr h print this help n exit 1 static inline void WaitFdWriteable int Fd fd set WriteSetFD FD ZERO amp WriteSetFD FD SET Fd amp WriteSetFD if select Fd 1 NULL amp WriteSetFD NULL NULL lt 0 Error strerror errno int main int argc char argv int CommFd TtyFd struct termios TtyAttr struct termios BackupTtyAttr int DeviceSpeed B115200 Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 149 On Complete ARM Solutions riendly Design Development and Manufacturing FRIV Expertise on Embedded Linux Android Wi
13. lt source port gt root capbily udptalk x86 udptalk 192 168 0 230 2000 192 168 O 1 2000 peer peer Hello Capbily Hello SBC 2410X peer x86 udptalk running on host oO2 Dec 2030 18 41 57 0000 boa server version Boa 0 94 13 O Dec 2030 18 41 57 0000 boa server built Feb 28 2004 at 2 Oo2 Dec 2030 18 41 57 0000 boa starting server pid 34 port 0 Please press Enter to activate this console BusyBox v0O 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 peer peer Hello SBC 2410 X arm udptalk running on board Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 156 W 4 n Complete ARM Solutions riendly Design Development and Manufacturing FRV Expertise on Embedded Linux Android WindowsCE 5 2 7 Utiliz Math Libraries Program Description opt FriendlyARM mini2451 examples math lathtest Test Program s Location in Board Note to utilize math libraries you need to include its header file math h and add an compile option libm Program Hi
14. pthread mutex init amp mutex NULL pthread create amp reader NULL void amp reader function NULL writer function j void writer function void while 1 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 j void reader function void Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 158 W Og Complete ARM Solutions riendly Design Development and Manufacturing fot E MI Expertise on Embedded Linux Android WindowsCE while 1 pthread mutex lock amp mutex if buffer has item 1 buffer 0 printf consume item n buffer has item 0 pthread mutex unlock amp mutex j Makefile CROSS arm inux all pthread H note it includes the thread library libphread marked in red pthread CROSS gec static o pthread main c lpthread clean rm vf pthread 0 5 2 9 Pipe Programming Manipulating LED Remotely Program Description wwe S S E C Deien OOOO S Note to utilize math libraries you need to include its header file pthread h and add an compile opt
15. root FriendlyARH route add default gw 192 168 1 1 root FriendlyARH telnet 262 772 177 137 EE Hh PANES 5p 2hbbs FER AHRBBS IRIE SPER TTD LAWER Entering character mode Escape character is ia lay sob ea is nese a ARs Hitt bbs qznet edu cn 262 112 17 137 Warmly Welcome to Bulletin Board Service BBS of CERHET Southern Regional Center If you have any problems please send email to Sscutbbs scut edu cn AA PS SESE RICERNETARP Sel RATE Aidra nn E Mr i 1 H HR t All guest y EHHA Hl Ready serial COMI 30 50 30 Rows TT Cols Linux 2 6 14 File Transfer with FTP After the system boots normally it will automatically start a telnet service Users can ftp a remote host via ftp in the command line utility in both Linux and Windows Users can transfer files to the board from a host PC Note please make sure you have a file ready in your FTP directory Here we had test mp3 The account for login is plg and the password is plg Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation Email for Tech Support dev_friendlyarm 163 com 85 H Complete ARM Solutions Design Development and Manufacturing After file transfer is doen you will see a test mp3 file in your target board s home plg directory oc Cr WINDOWS systemd icu
16. 168 1 230 leds html Wow RGRER USBI IR KT Rh E o g This is a web server test page please visit our website internet You can test each of these items The LED Test manipulates the LEDs via CGI and it includes two display modes and three display rates To stop the web service you need to type the following commands etc rc d init d httpd stop Then restart the service etc rc d init d httpd start 2 6 16 Mount NFS Please make sure you have set up the NFS server in your host PC and then type the Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com B 87 1 Complete ARM Solutions Design Development and Manufacturing following command our server s IP is 192 168 1 111 mount t nfs o nolock 192 168 1 111 opt FriendlyARM mini2451 rootfs qtopia mnt After a successful mount you will be able to enter mnt and operate your files To unmount it type the command below umount mnt root PriendlyARM mount t nfs o nolock 192 168 1 111 opt Friend1lyARM oc 40 root_nfs mnt mount NFS to mnt i ls fie nt Fi linuxre shanghaitan mp3 root PriendlyARM ed mnt root PriendlyARM mnt madplay shanghaitan mp3 MPEG Audio Dec
17. Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Sales 86 20 85201025 Tech Support 86 13719442657 Email for Business and Cooperation capbily 163 com Website http www arm9 net Fax 86 20 85261505 Email for Tech Support dev_friendlyarm 163 com 34 H Complete ARM Solutions Design Development and Manufacturing gg My development board Flash options Connected Low format flash C Skip cali To Android Select the files for flash your board Location images path Select all Invert Selection ay Windows CE amp Linux BootLoader mnt fatyang 2451 so Mini2451 images Superboot2451 bin Fen a Linux Kernel User bin No OS SS ee mnt fa yang 2451 iso Mini2451 images Linux zImage Eze settings Kemel CommandLine Se HE ee root dev midblock rootfstype yafis2 init linuxre console ttySACO0 115200 About T Linux Ramdisk 7 Linux RootFs mnt fa yang 2451 iso Mini2451 images Linux rootts_gqtopia_qt4 img ea Information Clear SMAS Board connected S302451 534MHz 128MB 256MB SLC ID ECDA1095 1 wire W35 Auto v1 5a build130912 With the Minitools utility you can update either the whole system all image files or individual image files e g the kernel image file After you are done with your installation configuration please click on Start installation Address Room 1705 Block Al Longyuan Plaza Longkou
18. Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 101 H Complete ARM Solutions Design Development and Manufacturing fedora Installation requires partitioning of your hard drive By default a partitioning layout is chosen which is reasonable for most users You can either choose to use this or create your own Remove Linux partitions on selected drives and create default layout v Encrypt system Select the drive s to use for this installation Formatting file system vE Jb Advanced storage configuration What drive would you like to boot this installation from 0 Review and modify partitioning layout ema Step 11 select the installation type in this example we chose customize Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 102 H Complete ARM Solutions Design Development and Manufacturing Expertise on Embedded Linux Android WindowsCE The default installation of Fedora include
19. Linux commands are very similar 99 of them are identical across different versions Before step in this section please set up your super terminal properly Below is a screenshot of system login via super terminal Just press Enter as prompted to continue Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 70 W Complete ARM Solutions Design Development and Manufacturing Expertise on Embedded Linux Android WindowsCE etty50 2452255 WFE H ee CP c E AER H UDAL34AE Sol Audio Codec asoc UDALSI4H lt gt sicedexe izs mapping ok ALSA device list 0 SaC24EX UDALS4E UDALS4E TCF cubic registered RPL Registered udp transport module RPL Registered tcp transport module siacv41l0 rtc a3c2410 rtc hetosys invalid datetime vafis dey is 32505658 name is mtdblock vafis passed flaga vafis Attempting HTD mount on 31 2 mtdblockz yetis read super isCheckpointed O VFS Mounted root yatts filesystem on device 31 2 Freeing init memory 144E hwolock settimeoctday failed Invalid argument Ul Jan 1970 00 00 08 0000 bos server version Boa U 94 15 Ul Jan 1970 00 00 08 0000 boa server built Feb 28 7004 at 21 47 Ul Jan 1970 00 00 08 00
20. Please set the date and time for the system Date and Time Hardware Profile i i Date amp Time Network Time Protocol Time Zone Date Time lt March gt lt 2009 gt Current Time 11 05 20 Sun Mon Tue Wed Thu al ee iu 8 Minute 2 Second 53 A Step19 confirm hardware information We just clicked on Finish Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 1l1 R Complete ARM Solutions Design Development and Manufacturing Welcome License Information Create User smolt Is a hardware profiler for The Fedora Project submitting your profile is a great way to give back to the community as this information is used to help focus our efforts on popular hardware and platforms Hardware Profile Submissions are anonymous Sending your profile will enable a monthly update UUID 0895b853 99d0 47d7 85dc 07c9815d24eb A Date and Time OS Fedora release 9 Sulphur Default runlevel 5 Language en_US UTF 8 Platform 1686 BogoMIPS 3330 46 CPU Vendor Genuinelntel CPU Model InteR Core TM 2 CPU T5500 1 66GHz Number of CPUs 1 CPU Speed 1661 System Memory 1038
21. WindowsCE 2 Copy to Board Insert your drive to your board s USB host it will be automatically mounted under udisk Please execute the following command cd udisk hello execute hello Note if you take out your drive directly you need to go back to the root directory and execute umount udisk for the next mount Product DataTraveler 2 0 Manufacturer Kingston SerialNumber OOLAADADBF1ACBC1155A0318 configuration 1 chosen from 1 choice SCSI emulation for USB Mass Storage devices 0 5 Kingston DataTraveler 2 0 1 00 PO 0 ANSI 2 512 byte hardware sectors 4 00 GBZ73 72 GiB ata Protect 1 ASSuming drive cach Write through 7823296 Sl2 byte hardware sectors 4 00 GB 3S 72 61B Write Protect is off Assuming drive cache write through 1 Er GF Gr er ooo oo naa Gg amp g a Pa Pa Paes Fd ee A A A a oe ee sda Attached SCSI removable disk a recommended I charset for FAT filesystems T CLE A AAAA m rj tf ndlyARM cd udisk ndlyARHM udisk ls yudisk hello judisk 2 FTP File Transfer Note login your board via FTP transfer your executable to it and change its file property to executable First execute your commands in PC Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation
22. arm linux gcc v if the messages depicted in the screen shot below appear it indicates the compile environment Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 127 Complete ARM Solutions Design Development and Manufacturing Expertise on Embedded Linux Android WindowsCE has been set up successfully root tom File Edit View Terminal Tabs Help root tom arm Linux gcc w Using built in specs Target arm none linux gnueabi Configured with opt FriendLyARM mini2440 build toolschain working src gcec 4 4 3 configure build 1386 build redhat linux gnu host 1386 build redhat linux gnu target arm none Linux gnueabi pre Tix opt FriendlLyARM tooLlschain 4 4 3 with sysroot opt FriendLyARM toolschain 4 4 3 arm none linu x gnueabi sys root enable Languages c c disable multilib with arch armv4t with cpu arm920 t with tune arm920t with float soft with pkgversion ctng 1 6 1 disable sjl exceptions ena ble cxa atexit with gmp opt FriendlLyARM toolschain 4 4 3 with mpfr opt FriendlyARM toolschal n 4 4 3 with ppl opt FriendLyARM toolschain 4 4 3 with cloog opt FriendlLyARM toolschain 4 4 3 with mpc opt FriendLyARM toolschain 4 4 3 with local pre
23. eth0 link up 100Mbps full duplex lpa Ox45FE1 root FriendlyARM 7 root Friend1yArM armocomtest d devettySaACl o JJIJIIIJI IJ J XRReREEAAE_ 2 6 8 PWM Buzzer Test Type pwm test in a terminal and you will be able to hear beeps Press or you can turn up or down Press ESC to exit root FriendlyARH root FriendlyARH root FriendlyARH pw pwd pwm_test root Friend1lyARH pwm_test BUZZER TEST i PWM Control 3 Press to increase reduce the frequency of BUZZER Press ESC key to Exit this program Freq 1010 Freq 1020 Freq 1030 Freq 1020 Freq 1010 Freq 1000 Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 77 H Complete ARM Solutions Design Development and Manufacturing Expertise on Embedded Linux Android WindowsCE 2 6 9 IZC EEPROM Test Type 12c w in a terminal you will be able to write data Ox00 Oxff to 24C08 root FriendlyARH root FriendlyARH root FriendlyARM 12C w Open deveizec 0 with bit mode Writing UxU0 Untf into 24CL08 OOO0 OO 01 02 03 04 OS O68 OF 08 09 Oa Ob Oc Od De OF 0010 10 11 12 13 14
24. in the following steps will be uncompressed in this work directory 1 Get Linux source code ready In Fedora9 create a temporary director tmp by running the following command mkdir tmp Copy all the files in the linux directory in the shipped CD to tmp 2 Uncompress the Linux kernel source code In the work directory opt FriendlyARM mini245 1 run the commands below cd opt FriendlyARM mini245 1 tar xvzf tmp linux linux 3 6 20130826 tar gz A linux 3 6 directory will be created it includes a complete copy of linux kernel source code Note 20130826 is the date when FriendlyARM released the new version the file name Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com a 129 Og Complete ARM Solutions Gian Design Development and Manufacturing CARM E Expertise on Embedded Linux Android WindowsCE in the shipped CD may be different 3 Uncompress and install Qtopia source code In the work directory opt FriendlyARM mini245 1 run the commands below cd opt FriendlyARM mini245 1 tar xvzf tmp linux x86 qtopia 20100420 tar gz tar xvzf tmp linux arm qtopia 20100108 tar gz An x86 qtopia directory and an arm qtopia directory will be created and their source code wil
25. ms Ger v LNumber eal Oo i i E 25A O103 i tho interface ethkh link down console f usb i 1 new full speed USB device using amp 3c2410 ohci Hg Toe device found idVendor 27008 idProduct 2018 device strings Mfr 1 Product SerialNumber 3 ane nufacturer Hisun Flash Disk configuration 1 chosen fron 1 choice CI emulation for USE Massa St orage deyicez ro oot Frier f Direct sda sda i sda a marrari Lt ch i i ti oi i sda IlyaARM Access Hisun Flash Disk 2 10 PQ 4124664 S12 byte hardware sectors 2 11 GBe 1 96 Write Protect is off Assuming drive cache write through 4124664 S1l2 byte hardware sectors 2 11 GB71 Write Protect is off ASSuming drive cache write through Attached SCSI removable disk elt The USB drive has a device name dev udisk Entering the udisk directory you will be able to browse its contents Note if your drive cannot be detected please check whether it is FAT32 VFAT Address Sales Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 86 20 85201025 Email for Business and Cooperation capbily 163 com Website http www arm9 net Tech Support 86 13719442657 Fax 86 20 85261505 Email for Tech Support dev_friendlyarm 163 com B 72 7 Complete ARM Solutions Design Development and Manufacturing iendlyaARM udisk ls id mp
26. t shutdown or reboot effectively we changed its code to make it work 2 5 28 Watchdog The Watchdog is a very basic utility in embedded systems The S3C2451 chip already has a watchdog The latest Linux kernel has drivers for it Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com B 67 Hh Complete ARM Solutions Design Development and Manufacturing WATCHDOG I Caution Once START NO WAY OUT FEED the dog or else REBOOT Designed by FriendlyARM All rights reserved www armn _net A PTEN R AL fons Note before take any action please read the notes in the red area once start no way out feed the dog or else reboot Here we set a countdown time 15 seconds To feed the dog click on the Feed button Keep feeding it will always have bones and the system will not reboot eee PELE e WATCHDOG Once START NO WAY OUT FEED the dog or else REBOOT Feed Designed by FriendlyARM All nights reserved www armn _net Bad R AL f ons Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Coope
27. there is a space after C and C is a capital letter These commands will install arm linux gcc in the opt FriendlyARM toolschain 4 4 3 Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 126 Complete ARM Solutions Gian Design Development and Manufacturing IER MI Expertise on Embedded Linux Android WindowsCE Step 2 run the command below to add the compiler s path to system variables gedit root bashrc This is to edit the root bashrc file Update the last line with export PATH PATH opt Friendly ARM toolschain 4 4 3 bin in the opened file save and exit the file bashre gedit File Edit View Search Tools Documents Help Wd amp amp 9 eA A New Open Save Print Undo Paste Find Replace bashrc 3 bashre j User specific aliases and functions alias rm rm 1 alias cp cp 1 alias mv myv 1 Source global definitions if f fetc bashre then fetc bashre fi Export PATH PATH opt FriendlLyARM toolschain 4 4 3 bin Ln 14 Col 56 Logout and login the system again no need to reboot the system just go to start gt logout the above settings will take into effect Type
28. 0 and Qt E 4 8 5 Users can switch between these two GUIs freely By default the Linux GUI is Qtopia 220 Q EBH Ea yF i H Dgr B FHES sm el T RGLA 2 5 1 Calibrate Touch Screen Note if you didn t calibrate well you can reflash the board or use a USB mouse to calibrate after Linux is loaded In the following two scenarios the calibration screen will be brought up 1 Reflash your board and restart your board for the first time Click on follow it till the end position and Android will resume After it is completely booted you will see the following screen Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 40 F Complete ARM Solutions Design Development and Manufacturing Touch crosshair to calibrate 2 After enter the system go to start gt setting and click on the calibrate icon you will see the above screen too 2 5 2 Introduction to Main Pages After Linux qtopia is loaded you will see the following screen oe RIS leg ee ee le ore eS Documents Be FAL e itis Ie ae FEO eae iE OB a A j oo s6 There are five pages which represent five categories of software and utilities Click on the sta
29. 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 135 W Og Complete ARM Solutions Gian Design Development and Manufacturing FRN Expertise on Embedded Linux Android WindowsCE 5 Development with Linux This section lists some sample Linux programs for users reference All the following programs are compiled with arm linux gcc 4 4 3 We don t guarantee they can be compiled and run with other corss compilers To check your compiler please type arm linux gcc v 5 1 Hello World 5 1 1 Souce Code The source code of Hello World is under opt FriendlyARM mini2451 examples hello Its contents are as follows include lt stdio h gt int main void printf hello FriendlyARM n j 5 1 2 Compile Enter the directory where the source code is located and execute make cd opt FriendlyARM mini2451 examples hello arm linux gcc o hello main c Or type the command below make A hello executable will be generated and you can check whether it 1s for ARM by commanding file Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 136 W Complete ARM Solutions rienaty Design D
30. 5 5 2 Compile and Run Qtopia 2 2 0 for X86 ccccccsssnsssssssseeeeeecccceeeeeeseesaaaaaseeseeeeeeeeeeees 172 Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com S 5 On Complete ARM Solutions riendly Design Development and Manufacturing fh Expertise on Embedded Linux Android WindowsCE 5 5 3 Compile and Run Qtopia 2 2 0 for ARM 0 0 0 0 cccccccssssssesseeeeecccccceeeeeeeesaaaaeaesseeeeeeeeeees 173 S30 CO MPH OTEA SS sssins Sass Sead ser saab aces sa es baa seit Sas casting cas Son soaelinsd cane dou diaws auhsewalouidandtaubsonateuhsasdiauaies 175 5 6 1 Uncompress and Install Source Code c ccc ccccceseessseseseesseeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeees 175 5 6 2 Compile and Run QtE 4 8 5 for ARM ou ccccccccnssnsssesesseeececccceeeeeeseeaaaaaaseseeeeeeeeeeees 175 Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com BS 6 H J Complete ARM Solutions Gian Design Development and Manufacturing CARM E Expertise on Embedde
31. 7V to 6V support sleep mode PCB Dimension Dimension 100 x 100 mm Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com BS 9 F Complete ARM Solutions Design Development and Manufacturing Expertise on Embedded Linux Android WindowsCE Software Superboot 2451 Linux 3 6 Qtopia 2 2 0 Qt 4 4 3 Qt 4 8 5 WindowsCE 6 0 uCos2 1 1 2 Schematics Unit mm 100 D 3 Min i2451 1307 C nT E 5 C gt u j Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 10 H Complete ARM Solutions Design Development and Manufacturing Expertise on Embedded Linux Android WindowsCE 1 2 Mini2451 Software Feature 1 2 1 Lmux Feature Cross compiler arm linux gcc 4 4 3 Same as Mini2440 it supports hard floating point arithmetic Superboot 2451 It supports SD card burning and can install Linux WinCE uCos2 systems It supports bin file YAFFS2 EXT3 EXT4 etc It supports Nand Flash burning Linux kernel Kernel version
32. Error Unable to set tty return Q0 You can compile the program download it and run 5 2 6 UDP Program Program Description Source Code Location opt Friendl yARM mini2451 linux 3 6 drivers net Driver Device Name Test Program Source Code Location Test Program Name Executable Name Test Program s Location in Board udptalk Example for Matrix V this program applies to the mini2451 system too X Copyright C 2004 capbily friendly arm capbily hotmail com include lt sys types h gt include lt sys socket h gt include lt arpa inet h gt include lt stdio h gt define BUFLEN 255 int main int argc char argv struct sockaddr in peeraddr remote IP and socket socket address localaddr Local socket address int sockfd char recmsg BUFLEN 1 int socklen n if arge 5 printf s lt dest IP address gt lt dest port gt lt source IP address gt lt source port gt n argvl 0 Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 153 W On Complete ARM Solutions riendly Design Development and Manufacturing exit 0 3 FRV Expertise on Embedded Linux Android WindowsCE sockfd sock
33. Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 160 W Complete ARM Solutions Design Development and Manufacturing Expertise on Embedded Linux Android WindowsCE int null writer fd for read endpoint not blocking when control process exit double period 0 5 led fd open dev leds0 0 if ed fd lt 0 led fd open dev leds 0 j 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 0 RDONLY 0 NONBLOCK if led control pipe lt 0 perror open control pipe for read exit 1 j null writer fd open tmp led control O0 WRONLY O NONBLOCK if null writer fd lt 0 perror open control pipe for write exit 1 Loe toe 4 fd set rds struct timeval step int ret FD_ ZERO amp rds FD SET led control pipe amp rds step tv_sec period step tv usec period step tv sec 1000000L ret select led control pipe 1 amp rds NULL NULL amp step if ret lt 0 perror select exit 1 j if ret 0 push leds else if FD_ISSET led control pipe amp rds static char buffer 200 for 3 1 Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 51
34. and S70 The default setting is W35 This defines whether the board will enter the USB download mode If it 1s No the board will be reflashed with SD card yes system will verify after burning is done This is more reliable No system will not verify this takes less time The default setting is No Perform low level formatting on the NAND Flash The default setting is Yes Status of the burning process LED Beeper and LED Beeper The default setting is LEDI Beeper Bootloader file The default setting is Linux BootLoader superboot2451 bin Kernel image The default setting is Linux Kernel Linux zImage Linux CommandLine Boot arguments When using the yaffs2 system the suggested default commandline is Linux CommandLine _ root dev mtdblock2 rootfstype yaffs2 init linuxrc console ttyS ACO 115200 If you want to skip the calibration step please add skipcali yes File system image now only the yaffs2 system is available Linux RootFs Installlmage Notes The default setting is Linux RootFs Installlmage Linux rootfs 245 1 img 1 Statements after will not be executed by Superboot Actually any character except key words can be used to comment is just widely accepted 2 To prevent our Superboot from being illegally copied we make it a rule that the first Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guan
35. arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com P 12 W Complete ARM Solutions riendly Design Development and Manufacturing ARM Expertise on Embedded Linux Android WindowsCE a Bewe o www Wemos o A Language setting It includes three options Chinese English and Japanese Qt 4 8 5 switcher It can be used to switch between Qtopia 2 2 0 and Qt 4 8 5 Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 13 W Complete ARM Solutions Design Development and Manufacturing Expertise on Embedded Linux Android WindowsCE d 1 3 Interface and Port LCD CMOS Camera Reset 1 Power Switch Power Input CON8 Power ese m CON1 UARTO us Arripeer i St i sae fi Pa COMO RS232 4 ue a fa Se ear ft n CON2 UART1 CONS5 GPIO r Be eli a jasua v CON3 UART2 CON4 UART3 SD Card Slot Ethernet JSS a B A Sere co Sal i EEPROM ene EEEIEE RT s i Jemal ADC Test RTC Battery miniUSB MIC USB Host I GA Audio Out NN ce tt on i fiaae wie oe oe ee RE leo ba a PEREP da User Buttons LED1 4 PowerL
36. capbily 163 com Email for Tech Support dev_friendlyarm 163 com 138 i Complete ARM Solutions Design Development and Manufacturing r root tom opt FriendlyARM mini2440 examples hello File Edit View Terminal Tabs Help root tom hello ls hello hello c Makefile root tom hello ftp 192 168 1 230 1 Login Connected to 192 168 1 230 192 168 1 23u 220 FriendlyARM FTP server Version 6 4 0penBSD Linux ftod 9 17 ready Name 192 168 1 238 root plg 331 Password required for plg Password 230 User plg Logged in Remote system type is UNIX Using binary mode to transfer files ftp gt bin 3 Set file transfer format 200 Type set to I ftp gt put hello 4 Upload hello local hello remote hello 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 gt by 5 Logout 221 Goodbye root tom hello J 2 Type name and password Go to your board and execute the following commands 5 2 Sample Application Code 5 2 1 LED Test Program The source code of the LED test program is under opt Friendly A RM mini2451 linux 3 6 drivers char Its contents are as follows Program Description opt Friendly ARM mini245 1 linux 3 6 drivers char Mini2451_leds Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www a
37. com 121 Complete ARM Solutions Design Development and Manufacturing Expertise on Embedded Linux Android WindowsCE To access shared files in Windows please following the steps below Step 1 set a shared directory in Windows Here we set a share _ f9 Fe Cit Vew Fovetes took heb O O Pismo rates gt PK ID E Aee O ee Properties TE i Sent rss a 3 a share f You can shae er folda with other uiers on your MONI2440_ MINIZ440_ MINE240 MINID40_ rran To enable chaning for thin bakda click Share the A F Do not shave tie fokdar gre amp a mazeo Shave tus folder 1 TL Meos miou umbenglate Share name ihare 19 Useri Macau allowed Allows this number of vaeri 3 To set pamnsona for users who sccets tin Permasone folder over the neterork click Peamissiona T y Corpse settings tor offline socas cich Caching New Shwe t objects select Woden Feels corki io afon Gia lakier be hives OOOO wath other computers on the nehsok O Hepe RMS senes run on the Samsung 5302440 A and FLASH memory The built in to ensure the stabdity of the be 4 iayers board adopting the ENG farhesiany aod oeefeetinnal amraldanath wenn ts ane the Comedatenees of the eeinale af the kev cinnal Step 2 set Fedora9 r Floppy Drive Ta Network pa mini2440 on 192 168 1 123 Connect to Server dh Search for Files
38. ess ecco sesstsec actin EE OE OAE eed aeitiacduttoesGe 11 1 3 INTERFACE AND PORT iacreesrcucansscaceatactsidcntacuiawseavscnunsre ving taoneniaainiacntawshaendaenbaqesayebouniagumachiagsiaonia oviaobiaeus 14 2 GET STARTED wicesaccsaccecxtconacenacacseseqsassancenseeuisouseauiassaeeeiacsdeeasnaceen tase tPS Pe riwseiessiaasicaciaaeeasseuasenanbsonteackaonasanaventeas 15 2 1 SYSTEM SETUP AND CONFIGURATIONS ccccceccceccscccccecccucccsccesccesccusccsscessceescesccesccescensecesceesceeens 15 2L OU UNI spats stearate oi cen ai wet ee eto eee wat eee eel 15 2 1 2 mnterface and POG oases aces wate eos cc nsabacad eet AEE aG 16 2 1 3 Setting up HyperTerminal 00cccccccccccccccccccccccceceeeeceeaeesesssecececececeeeeeeeeeaaaaassssseeeeeeeeceeeeeeeeeaaas 17 2 2 BURN SUPERBOOT TO SD CARD osessesssssssessesssrssesssrssesssrserscrsersserserssessorsseserserserserssrosoreerseosereeeesere 20 2 2 1 Burn Superboot to SD Card ou cccccccccccccseeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeseeeeeeeeeeeeeeeeeseseeees 20 2 2 2 Rest re SD Card oenen ises a EEEE EA AN E O EEN 25 22 3 INCOSE SONS euu AE E a a aai 27 2 2 4 Copy Images to SD Card o ccccccccccccccceeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeseeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeees 28 2 2 5 Configure FriendlyARM Anb cccccccccccccccccccccccceeceaaessesseeeeeeccccceeeeeeeeeaaaaassseseeeeeeeeceeeeeeeeeaaas 28 2 3 INSTALL SYSTEMS WITH MINI
39. led Usage leds led_no Ol led_no the LED you want to manipulate 0 1 2 3 0 and 1 represents turn off and turn on respectively led 2 1 This will turn on LED3 2 6 6 User Button Test Type the buttons command press a user button and you will see the following scenario Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 75 W On Complete ARM Solutions Gian Design Development and Manufacturing Sip f Tag M Expertise on Embedded Linux Android WindowsCE root FriendlyARM 1 buttons key 1 is down 1 key 1 is up key 1 is down key 2 1s down key 2 15 up key 1 1s up key 3 is down key 3 1s up key 1 is down key 1 1s up key 1 is down key 3 1s down key gt 15 up key 1 is up 2 6 7 Serial Port Test Note the armcomtest utility is a straightforward and easy to use program developed by FriendlyARM for Linux It doesn t rely on system calls or hardware After Linux is loaded Serial Ports1 2 3 and 4 correspond to dev ttySACO 1 2 and 3 To test Serial Port 2 you need a PC with a serial port Please connect CON2 to the PC via our extension board Type the following command armcomtest d dev ttySAC1 o Now if you type characters in Seri
40. running 02440 Sd1 running s3c2440 sd1 running o card at ace ess lla mmcU llad SDUSG 7 42 GiB i a wok SS Deeg Bins Dag Soa Os E E i to be Ee tt tt i E g E i Lendly RM The system will create a sdcard directory and mount the SD card on it Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com E 73 W Complete ARM Solutions Design Development and Manufacturing esc2v440 sdi running at 198kHz requested 197kHz esc2440 sdi running at 16875kHz requested 25000kHz e3c 440 sdi running at 16875kHz requested 25000kHz SDHC card at address llad mmc liad SDOSG 7 42 Gib pl root Friend1yARH o t ls sdcard MFriendlyARH mount type E Pe rw i type yaffa rw type proc rw n faaie type syst rw proce hus uwusb type usbts rw 1 dev type ramis rw 7 dev pts type devpts ryv mode 62 2 f deve shm type hii rw tm P type tents rw rar type rants rw rd on sdc ard type vfat rv syne nosulid nodev noatime nodiratime inask 0022 codepage cp43 1ocharset 1s06859 1 mdadlyARH 2 6 5 LED Test 1 LED Server After the system starts up it will automatically start a LED se
41. the LCD will show USB Mode Connected Now you can start installing systems with the Minitools To change the installation method back to SD card installation you just need to change the USB Mode yes to USB Mode no Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com P 32 0 Complete ARM Solutions Design Development and Manufacturing Please enter the USB download mode and connect your board to your PC which runs the Minitools via USB F gt lt Download My development board Connected i Android Welcome to MiniTools a Windows CE USB Flashing Tool for FriendlyARM Boards Efficient and Effective A Linux l Development board information User bin No OS Superboot 2451 Version 0 99a 20130814 Settings P E CPU 5302451 534MHz English raw RAM 128MB amp NAND 256MB SLC ID ECDA1095 About Touch Device 1 wire LCD Type W345 Auto About Quick Boot In the USB download mode clicking on Quick Boot will directly boot the system that exists in the NAND Flash without switching 2 This is convenient for debug and development Note after the system is booted the USB connection will be disconnected On the left bottom of the windo
42. to Serial cable to your board you can extend your serial ports Its ANN device name generally is dev ttyUSBO 1 2 and 3 which implies you can use a USB hub to extend your serial ports Connect your serial port extension board to the Mini2451 s CON2 3 4 and connect to a PC via a crossover serial cable Go to the FriendlyARM tab and click on the serial port assistant icon to open the interface fdevitvsAal Hoot abt C HI HG A DHR Buttons EEPROM LCDiillist i Ping USB iak a ih Setting Connect A ee S gaps a X QB is ae The title bar of the utility shows the default setting 1s ttySAC1 115200 8N1 C and it implies the default port is Serial Port Deivce dev ttySAC1 it corresponds to the second port UART1 Bits Per Second 115200 Data Bits 8 Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com Re 52 W 2g Complete ARM Solutions riendly Design Development and Manufacturing Bis ERNI Expertise on Embedded Linux Android WindowsCE Flow Control None Stop Bits 1 C stands for the character mode H stands for Hex There are two edit areas in the interface the top one shows received d
43. 00 bos starting server pid 496 port 80 Try to bring ethl interface up eth0 link down Done Please press Enter to activate this console root Friendly kM Diti 0 05 21 AHSIW 115200 8 H 1 2 6 1 Play MP3 The madplay utility is an mp3 player migrated by FriendlyARM It can be run in various ways and the most straightforward one is this madplay your mp3 This command will play your mp3 in its default way You can get help by running madplay h Below is a screenshot of how it works 2 6 2 Terminate Program To terminate a running program you can press Ctrl C in a terminal For instance if you are running madplay you can press Ctrl C to terminate it If a program runs in the Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com B 711 7 Complete ARM Solutions Design Development and Manufacturing Expertise on Embedded Linux Android WindowsCE background you need to issue the kill command to terminate it 2 6 3 Mount USB Drive Portable Hard Disk After inserting a USB drive the system will automatically create a udisk directory and mount the drive on it you will see the following messages CL if Co Cok Ch Gk ok n ty 2j a fl r
44. 0640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 161 H Complete ARM Solutions Design Development and Manufacturing Expertise on Embedded Linux Android WindowsCE char c int len strlen buffer if len gt sizeof buffer 1 memset buffer 0 sizeof buffer break j if read led control pipe amp c 1 1 break if c r continue if c nw int tmp type double tmp period if sscanf buffer d l1f amp tmp type amp tmp period 2 type tmp_type period tmp period fprintf stderr type is d period is lf n type period memset buffer 0 sizeof buffer break j bufferllen c close led fd return 0 make will generate a led player executable which is run as a server under sbin The leds cgi gateway source code is under www leds cg1 on the board It 1s a shell script and can be invoked by leds html as an action Here is the shell file leds cgi Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com
45. 1 tdefine die if a msg do do die if a msg LINE while 0 void do die if int b char msg int line if 1b return fprintf stderr Error at line d s 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 printf n 4x addr else if i 8 0 printi J printf 2x ch fflush stdout fprintf stderr n n return 0 static int write to eeprom struct eeprom e int addr int 1 for i 0 addr 0 i lt 256 i addr if i 16 0 printf n 4x addr else if i 8 0 Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 146 H Complete ARM Solutions Design Development and Manufacturing Expertise on Embedded Linux Android WindowsCE printf printi 2x i fflush stdout die if eeprom write byte e addr i write error fprintf stderr n n return 0 int main int argc char argv struct
46. 1025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation Email for Tech Support dev_friendlyarm 163 com 117 HW a Complete ARM Solutions Friendly Design Development and Manufacturing fox MI Expertise on Embedded Linux Android WindowsCE iasn FF Add Remove Software T Authentication ro Date amp Time gt Wl Display SiE Firewall ap Network Network Device Control d Printing Jel SELinux Management 74 Preferences Administration B Help About GNOME About Fedora About this Computer 3 Services F Log Out root E Software Sources mooo Shut Down Update System f Applications Places amp fe Users and Groups Step 2 open the Users Manager window Address Room 1705 Block A1 Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com B 118 7 File Edit Help DE Add User Add Group Groups User Name User ID Complete ARM Solutions Design Development and Manufacturing Expertise on Embedded Linux Android WindowsCE User Manager g Refresh Help Search lter Apply filter Primary Group Full Name Login Shell Home Directory Step 3 click on
47. 10640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 18 W Complete ARM Solutions riendly Design Development and Manufacturing fh Expertise on Embedded Linux Android WindowsCE x HyperTerminal i Before HyperTerminal can dial or make connections you must provide information about your location A popup window will require you to name this connection In this example we typed ttySO Windows does not accept names like COM1 that have already been used by the system Connection Description _ x a New Connection Enter a name and choose an icon for the connection Hame JtwSo hoor cence After naming this connection another window will require you to select a serial port that will be used to connect the Mini2451 board Here we selected COM1 2x Enter details for the phone number that pou want to dial Country regiorn kd ea code Phone number Connect using cancel Lastly also the most important step is to set up the port properties Note you Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Em
48. 15 16 1 18 19 la 1b le ld le lf OO20 20 21 22 23 24 25 26 2 28 29 2a 2b 2c 2d 2e Zf OO30 30 31 32 33 34 35 36 37 38 39 3a 3b 3c 3d 3e J OO40 40 41 42 43 44 45 46 47 48 49 da db dc dd de 4f OO50 50 51 52 53 54 55 56 57 58 59 Sa Sb Se Sd Se Sf 0060 60 61 62 63 64 65 66 67 68 69 a b c d be bE 0070 70 71 72 73 74 75 76 77 78 79 7a 7b 7c 7d 7e 7E gogol 80 81 82 83 84 8S 86 87 88 89 a 8b Bc Bd Be BE 0030 30 91 92 93 94 95 96 97 98 99 Ja 9b Jc Jd Ye Jf OOa0 al al a a3 a4 a5 a a af a aa ab ac ad ae af O0Ob0 bO bl b2 b3 b b5 b b7 b b9 ba bb bc bd be bf 00c c ci c c3 c4 c5 c c7 c8 c9 ca cb cc cd ce cf 00d dO di d2 d3 d4 dS d d7 d d9 da db dc dd de df OOe0 el el e e3 e4 e5 eb e7 es e9 ea eb ec ed ee ef OOfO 0 f1 f2 3 4 f5 6 fS 9 fa fb fc fd fe ff root FriendlyARM Type 12c r in a terminal you will be able to read data from 24C08 OOf0 0 1 2 3 4 5 6 7 f8 9 fa fb fc fd fe ff root Friend lyARH i c r Open dev1izgc U with 6bit mode Reading 256 bytes from Ux 0000 OO 01 02 03 04 OS O06 OF 08 09 Oa Ob Oc Od Oe OF 0010 10 11 12 13 14 15 16 1 18 19 la 1b le ld le lft 0020 20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f 0030 30 31 32 33 34 35 36 37 38 39 3a 3b 3c 3d 3e J OO40 40 41 42 43 44 45 46 47 48 49 da db dc 4d de 4f 0050 50 51 52 53 54 55 56 57 58 59 Sa Sb Se Sd Se St 0060 60 61 62 63 64 65 66 67 68 69 ba 6b c d
49. 230 Bcast 192 168 1 255 Mask 255 UP BROADCAST RUNNING MULTICAST MTU 1500 Metric RX packets 66 errors 8 dropped 68 overruns 68 frame 6 TX packets 8 errors 6 dropped 0 overruns 6 carrier 6 collisions 6 txqueuvelen 16686 RX bytes 4791 4 6 KiB TX bytes 672 672 6 B Interrupt 53 Base address 686x366 Link encap Local Loopback inet addr 127 0 0 1 WMask 255 6 6 8 UP LOOPBACK RUNNING MTU 16436 Metric R amp A packets 68 errors 8 dropped 8 overruns frame 6 TX packets 6 errors 6 dropped 68 overruns 68 carrier 6 collisions 6 txqueuelen R amp bytes 6 8 0 B TX bytes 0 8 80 B root Friend1lyARM ping 192 168 1 1 PING 192 168 1 1 192 168 1 1 56 data bytes 64 bytes from 192 168 1 1 icmp_seqg 6 ttl 64 time 3 2 m Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Sales 86 20 85201025 Tech Support 86 13719442657 Fax Email for Business and Cooperation capbily 163 com Website 55 55 http www arm9 net 86 20 85261505 Email for Tech Support dev_friendlyarm 163 com E 83 T Complete ARM Solutions Design Development and Manufacturing Expertise on Embedded Linux Android WindowsCE 2 6 13 Telnet Telnet is a popular utility If your board is connected to the internet you can telnet a bbs First make sure your board s IP is 192 168 1 230 and your board is communicating with other machines sh can t access tty job control turned off
50. 3 infinity 2008 mp3 endlyARM udisk mount type rootfs rw root orn type yatfis rw on proc type proc rv on sys type sysfs rw on proc bus usb type usbfis rw on dey type ramis rw on devepts type devpts rw mode 67 on deveshm type tmpfts rw on tmp type ramis rw on var type ramts rw fudisk on udisk type viat rv sync nosuid hodev no atime nodiratime fmask dmask 0072 codepa ge cp4 4 i Loc hars SeBh 1e0885 Dt PriendlyaARH udisk _ cL C mt i nm r 1 a m m mm m m gz j j fo ES rr 2 6 4 Mount SD Card Similar to USB drive mounting an SD card will be automatically detected and mounted After inserting an SD card you will see the following messages Jan 1970 00 00 08 0000 bos starting server pid 496 port 80 to bring eth interface up eth0 link down press Enter to activate this console nd yARH l ndlyARH z ndlyARH a3c2440 sdi s3c2 440 sd1 running at UkHz La ia pie Mb requested 197kHz requested 197kHz requested 197kH z requested 197kHz requested 197kHz requested 197kHz i tegue sted 137k Hz 7 SkHz requested 5000kHz PokHz requested 2S5U00KHz 3c2440 sdi1 running at 3c2440 sdi1 running at Sc2440 sdi running at 3c2440 sdi1 running at j 2440 sdi running at c2440 Sd1 running at at t 4 O 40 N N DI D n om m jc2440 sdi1
51. 45 1 run the commands below cd opt FriendlyARM mini245 1 tar xvzf tmp linux examples 20100108 tgz An examples directory will be created all the source code will be extracted into this directory Note all these sample programs are developed by FriendlyARM 3 4 2 Create Target File System Please execute the following commands cd opt FriendlyARM mini245 1 tar xvzf tmp linux rootfs_qtopia_qt4 20130918 tgz A rootfs_qtopia_qt4 will be created This package includes qtopia 2 2 0 busybox and some command line utilities It has the following excellent features auto detection of NFS reboot or local reboot auto detection of touch screen and launching the calibration utility if necessary If no touch screen is connected system will enable the mouse auto detection of command or high speed SD cards up to maximum memory of 32G Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 131 H Complete ARM Solutions riendly Design Development and Manufacturing Op fort E MI Expertise on Embedded Linux Android WindowsCE and flash drives auto detection of USB mouse or touch screen include Qtopia 2 2 0 and QtE 4 8 5 3 4 3 Install Utilities 1 Install mkyaffs2image To burn a t
52. 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 142 On Complete ARM Solutions riendly Design Development and Manufacturing FRIV Expertise on Embedded Linux Android WindowsCE if lisatty STDIN FILENO fprintf stderr this problem should be run at a terminal n exit 1 save terminal setting if tegetattr 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 tesetattr STDIN FILENO TCSANOW amp newt lt 0 perror set terminal exit 1 ch getchar restore termial setting if tesetattr STDIN FILENO TCSANOW amp oldt lt 0 perror restore the termial setting exit 1 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 ie ted p 0 4 ioctl fd PWM _IOCTL_STOP close fd Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business
53. 9 Fedoral5 Ubuntul1 2 04 64 bit systems Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com B 31 W Og Complete ARM Solutions Gian Design Development and Manufacturing FRN Expertise on Embedded Linux Android WindowsCE Please login and execute the installation as root Please copy the MiniTools Linux Y YYYMMDD tgz in the tools directory from your DVD to your PC and untar the ball and run the start sh command to the installation 2 3 2 Enter USB Download Mode In order to work with the Minitools you need to enter the USB Download mode You can enter this mode in two ways 1 Please make sure S2 is switched to NAND press and hold K1 and power on your board 2 Enter the USB Download Mode via SD booting 1 Flash the superboot to an SD card with SD Flasher 2 Create an images directory in the root directory of the SD card and copy the FriendlyARM ini from your DVD to the SD card s images 3 Open the FriendlyARM in1 set USB Mode yes save and close 4 Power on the board you will see the LCD showing USB Mode Waiting if everything works correctly 5 Please connect your board to your PC via a USB cable 6 If the connection is successful
54. A E EAEE EEEE E EE EANA 42 Ze AY WOO igs sad actors coin E E ia aac ah adelni ge oan eens aee nissan Seo esesiaw ors oa A 43 2 5 5 Image Viewer agit sesaiestacsaheciacienesiuensiestasaeiestactshesiacieaestacteiasiaaeeiesiaesihenceaes eens n 44 2 5 6 Auto Mount Of SD Card sucoiscccccecccciaseesadieiwseaceadcinsddadexsabceddeaediedwsise deudwbivaddadwkis deawaivaddedeeecdauveseddedubivec 44 eT Ce MCU ACO Saget decc stan ds peenddes ces dec AE AAEN E OTA 45 2 5 9 TE Mhal geo crests seats te ge ws eas sees iow ve sc gett acta 46 2 5 9 File Mamager ccccssssesssessssscecccccssececccsssssessssssseseccccanenececsssssvssssssssecccccacneeeeeessssesssesesseeseccenenees 46 2 5 10 Network Setting occcncccncscnnnannann ei dam can events ui dam ean ausaccee ui can eanauacanui dancuatauacseeicancasat 47 Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com B 3 1 Og Complete ARM Solutions riendly Design Development and Manufacturing FRV Expertise on Embedded Linux Android WindowsCE Z n ES E E EEE N 48 ZSA DT OVET a E NE AEE E EEN E EEE ETE O E AOE O EENAA E EE 48 ZS LE D TES aen cons Secs cers E T E ETE T R 49 2 5 14 EEPROM Reading and Writing
55. ARCH 3C2416 default m if MACH FRIENDLY ARM MINI2440 help Mini2446 0024408 module sample config MINI2440 BUTTONS tristate Buttons driver for FriendlyARM Mini2440 002440 development boa rds depends on MACH FRIENDLY ARM MINI2446 default y if MACH FRIENDLY ARM MINI2440 Save and exit When you run make menuconfig in the linux 2 6 32 2 directory you will see your item in Device Drivers gt Character devices Press the space key it will be marked lt M gt This means this souce code will be compiled as a module Press the Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 166 W Complete ARM Solutions _ Design Development and Manufacturing Expertise on Embedded Linux Android WindowsCE space key again it will be marked lt gt This means it will be compiled into the kernel Here we chose lt M gt root tom opt FriendlyARM mini2440 linux 2 6 29 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 Virtual
56. ARM sng 3 All nights reserved www arma net A ae As QB N o7 se Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 56 H Complete ARM Solutions riendly Design Development and Manufacturing CARM Expertise on Embedded Linux Android WindowsCE This utility has two modes auto and manual Auto loop loops automatically Executing it presents red yellow white sky 29 66 blue dark blue green pink and black During the loop clicking on any place on the screen will return 2 5 19 Backlight Control In the Friendly ARM tab clicking on Backlight Control will start this utility Backy es mtn Tap the to toggle the backlight ADH Buttons EEPROM gt B LEDINA LEDs Ping G B Q USE ese REY smi meem E Designed by FriendlyARM All nights reserved www arma nmel 44 OB ai SAL 07 45 2 5 20 A D Conversion The Samsung S3C2451 chip has 10 A D conversion channels but only one converter In general AIN6 AIN7 AIN8 and AIN9 are used as YM YP XM and XP channels via a four wire resistor We extended AINs 0 3 which reside on CONS For easier testing AINO Address Room 1705 Block
57. ARM Solutions Design Development and Manufacturing Expertise on Embedded Linux Android WindowsCE serine Welcome information Cente There are a few more steps to take before your system is ready to use oe The Setup Agent will now guide you through some basic configuration Date and Time Please click the Forward button in the lower right corner to continue Hardware Profile Step 16 skip this license page and go forward Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Tech Support dev_friendlyarm 163 com 107 H Email for Business and Cooperation capbily 163 com Complete ARM Solutions Design Development and Manufacturing Expertise on Embedded Linux Android WindowsCE Welcome n License Information Information l l E Thank you for installing Fedora Fedora is a compilation of software packages each under its own license The compilation is made available under the GNU General Public License version 2 There are no restrictions on using copying or modifying this code However there are restrictions and obligations that apply to the redistribution of the code either in its original or a modified form Among other things those restrictions obligations pertain to the licensing of the redistribution trademark rights and export control
58. Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com B 57 H Complete ARM Solutions Design Development and Manufacturing Expertise on Embedded Linux Android WindowsCE is directly connected to an adjustable resistor W1 How do they share a common converter The following screenshots will show you Click on the ADC Testing icon in the FriendlyARM tab dla Dial up CMOS Camera File Browser GFRS Dial up GFRS SMS gt K z ose If EEPROM Konqueror Language setting LCD Test LED rik Ss G J LED s Magic Geometry Metwork Setting Penpad a pa AR O2 Turning the W1 adjustable resistor you will see the conversion changes It has 10 digit precision therefore the minimum value is close to O and the maximum value is close to 1024 AE emy HBY Twist resistor W1 Get the RESULT Tap screen Drop off AINO Converting Designed by FriendlyARM a an a a a Close All nights reserved www arms net A PE B62 fj os 27 When you click on the touch screen the A D converter will take the touch screen as the channel you will see the result 1 when you move your touch pen away from the screen the A D converter will take AINO as the channel again Address Room 1705 Block Al Long
59. Complete ARM Solutions eet it ei and seisakkeena SGSP A DEER Buttons es gt CMOS EEPROM LCDiilizt 3k LEDs Ping r 26 KTT INT a z ACIC K l Aie TH me ooo aT TF lt a eye er er a ij vee USB RR AMF ON E a REVISION ORIGINATOR REV DATE Guangzhou FriendlyARM Co Ltd Spetember 26 2013 Guangzhou FriendlyARM Computer Tech Co Ltd Confidential l eT Guangzhou FriendlyARM This document and information contained in it shall not be reproduced Computer Tech Co Ltd by used by or disclosed to others except as expressly authorized in Guangzhou China writing by Guangzhou FriendlyARM Co Ltd Copyright 2007 2013 Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com B 1 1 Complete ARM Solutions riendly Design Development and Manufacturing Op fort E MI Expertise on Embedded Linux Android WindowsCE COPYRIGHT STATEMENT The content content being images text programs and scripts of this English manual is copyright Guangzhou FriendlyARM Computer Tech Co Ltd All rights expressly reserved Any content of the manual printed or downloaded may not be sold licensed transferred copied or reproduced in whole or in
60. ED JTAG CON15 Buzzer S2 Boot Mode Switch SDIO Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 14 7 Complete ARM Solutions Design Development and Manufacturing Expertise on Embedded Linux Android WindowsCE By default all our boards have been preinstalled with Linux therefore you can just power on and play 2 1 System Setup and Configurations 2 1 1 Boot Option The Mini2451 supports booting from either SD card or Nand Flash Users can switch between by toggling the S2 switch Toggle S2 to SD and the board will boot This is for booting from SD from your SD card card or system burning Toggle S2 to NAND and the board will Default and Standard booting boot from the NAND Flash Usually S2 is switched to Nand unless users need to boot from an SD card or reflash the system Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 15 W Complete ARM Solutions Design Development and Manufacturing 2 1 2 Int
61. Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation Email for Tech Support dev_friendlyarm 163 com 174 capbily 163 com Og Complete ARM Solutions Gian Design Development and Manufacturing CARM E Expertise on Embedded Linux Android WindowsCE 5 6 1 Uncompress and Install Source Code Please refer to 3 4 1 5 6 2 Compile and Run QtE 4 8 5 for ARM Note please use our arm linux gcc 4 4 3 and Fedora9 to compile We offered a build all script for users to easily compile QtE 4 8 5 Please enter the source code directory and type the following command cd opt FriendlyA RM mini2451 arm qte 4 8 5 build sh The build process takes a while And after it is done please run the mktarget script and a target qte 4 8 5 tgz will be generated Please follow the command below tar xvzf target qte 4 8 5 tgz C A Trolltech directory will be generated under usr local which includes all needed libraries and executables Since our shipped Linux already includes QtE 4 8 5 to test your build you can delete the one on your board by rm the whole usr local Trolltech directory Before running QtE 4 8 5 please stop the current running Qtopia 2 2 0 Go to Settings gt Shutdown and you will see the following screen Click on Terminate Server to shut down Qtopia 2 2 0 Address Ro
62. HIH Is mini hello module ko Lroot Friend1lyARHW 2 6 29 4 Friend1 lyARHI H pwd flib modules 6 29 4 Friend1lyARM Lroot FriendlyARM 2 6 29 4 FriendlyARHMI H cd Z Lroot FPriend lyARM 1H modprobe mini24460_ hello module Hello Hini2446 module is installed Lroot FriendlyARM ZI lsmod minie 446 hello module 1088 6 Live xbf le p p Lroot FriendlyARH 1 Lroot FriendlyARM 14 Lroot Friend1lyvARM 14 rmmod mini2446_hello_ module Good bye Hinizv446 module was removed Lroot FriendlyARH 1 Lroot Friend1lyARM ZI lsmod Lroot Priend lyARH 14H lt DiE 0 45 07 AHSIW 115200 8 H 1 Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 169 i Complete ARM Solutions Design Development and Manufacturing Expertise on Embedded Linux Android WindowsCE 5 4 Sample Linux Driver 5 4 1 LED Driver In this example we will present an LED driver program which can drive the 4 LEDs on the board LED CPU Pin LED1 GPB5 LED2 GPB6 LED3 GPB7 LED4 GPB8 To manipulate an IO you need to set up its register by invoking some functions and macros Here we used read and writel They can directly read and write corresponding registers Besides you need some other drive
63. Linux 3 6 Complete BSP It supports Open source Y AFFS2 CRAMES NES UBIFS FAT32 ADC driver channel AINO Driver for ARM touch screen One wire precise touching driver LCD back light driver it allows users to Open source adjust the board s backlight up to 127 levels Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com P 1 H an Complete ARM Solutions riendly Design Development and Manufacturing fut M Expertise on Embedded Linux Android WindowsCE USB Device driver Open source SD card driver Open source Serial port driver Open source SD WiFi driver N A USB WiFi driver it comes with the kernel but Open source can only drive limited types USB WiFi driver it supports more types Audio driver WM8960 it supports audio recording and playing ALSA API and type D amplifier Open source It includes code for both X86 and ARM Qt Embedded 4 8 5 Open source It includes code for ARM Application 3G Dial up utility It supports WCDMA CDMA2000 TD SCDMA and auto dial up GPRS messaging It supports serial port USB or GPRS Modem messaging and group messaging Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www
64. OCK mode memset amp TtyAttr 0 sizeof struct termios TtyAttr c iflag IGNPAR TtyAttr c_cflag DeviceSpeed HUPCL ByteBits CREAD CLOCAL TtyAttr c_ccLVMIN 1 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 tcegetattr TtyFd amp BackupTtyAttr lt 0 Error Unable to get tty if tcsetattr TtyFd TCSANOW amp TtyAttr lt 0 Error Unable to set tty ton a i unsigned char Char 0 fd set ReadSetFD void OutputStdChar FILE File char Buffer 10 int Len sprintf Buffer OutputHex 2X 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 k Gy if select max CommFd TtyFd 1 amp ReadSetFD NULL NULL NULL lt 0 Error strerror errno undef max Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 151 H On Complete ARM Solutions riendly Design Developmen
65. RH ping www 163 com PING wwwicache split netease com 220 181 28 54 bytes bytes bytes bytes bytes From From From From From 220 181 28 54 220 181 28 54 220 181 28 54 220 181 28 54 220 181 28 54 icmp_seq icmp_seq 1 icmp seq 2 icmp seq 4 icmp seq 5 rm fetc resoluy conf touch etc resoly conf echo nameserver 2627 96 178 86 gt gt fetc resoly _cconf cat fetc resoly _conf 262 96 128 86 ttl 53 ttl 53 tt1l 53 tt1l 53 tt1l 53 56 data bytes time 1353 8 ms time 1378 6 ms time 1398 1 ms time 1356 6 ms time 1314 9 ms www cache split netease com ping statistics 7 packets transmitted round trip min favg max root Friend1lyARM 8 _ 5 packets received 1314 9 71368 1 1398 1 ms 2 6 12 Configure MAC Address 28 packet loss The MAC address in the Mini2451 is soft therefore you can change it via ifconfig First check your current MAC address via ifconfig ifconfig ot Friend 1 yARH si ro gt t Friend1yARM r I ho F oe m H i m a root Friendly kHM 192 Link inet UP BR R A i ic Li pa Link inet UF RE packets packets colli RE bytes U TH i A DL ekets d colt collis RE by Inter 168 1 1 Ethernet 192 168 1 addr 15 Est rity Lon tes 5236 5 rupt 51 addr 127 TE i LOOPBACK mou I NG 3 0 errors 0 errors taqueuelen 0 TH bytes 1on 0 O 0 By J itcontig A
66. ST RUNNING E n a a G 0 tzequeuvuelen 1 KiB encap Loc ae Loc opbac k Mask MTU i64 1 dro Ja 0 dro Dy J 5 4 1500 verruns U Ter Lr Wt non ric rruns 0 rruns E E i 255 5 Mask z255 MHetric l Erama U U Carri rt 977 0 B 1 trame U 0 carrier Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com P 82 W Complete ARM Solutions Design Development and Manufacturing In our example the MAC was 08 90 90 90 90 90 this is the default MAC address and has been hard coded in the kernel If you want to update it you have to recompile the kernel In order to change the MAC dynamically you need to close your network connection and then fill your new MAC ifconfig ethO down ifconfig ethO hw ether 00 11 AA BB CC DD note a b c d e f could be lower case Restart the network check your MAC via ifconfig and verify your network via ping ifconfig ethO up ifconfig ping 192 168 1 1 froot Friend1lyARM ifconfig eth hw ether 686 11 aa bb cc dd froot Friend1lLyARM ifconfig eth up root Friend1lyARM ifconfig eth Link encap Ethernet HWaddr 66 11 AA BB CC DD inet addr 192 168 1
67. Support dev_friendlyarm 163 com 120 KH Complete ARM Solutions Design Development and Manufacturing Expertise on Embedded Linux Android WindowsCE root tom Tabs File Edit view Terminal Help root tom ls home plg root tom 3 2 2 Access Windows Files You can easily access shared files in Windows from either a virtual machine or a real Fedora9 system as long as they can communicate To connect to a Windows from a virtual machine the easiest way is to set Guest to Bridge in the network configuration Firtual achine Settings Hardware Options Device status Connected Connect ab power on Device Summary JE Memory 916 MB Hard Disk SCSI 20 GE fa J COIDVD IDE Using File C Pr H Floppy Auto detect J Network Adapter Bridged Bridged Connected directly to the physical network Network connection use Controller Present Replicate physical network connection state pi Sound Card Suto detect O a eg ete a Bl bisplay Sioda MAT Used to share the hosts IP address SE Processors l Host only A private network shared with the host Custom Specific virtual network oc cancel Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163
68. T 16 Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com BW 44 Hi gt Complete ARM Solutions riendly Design Development and Manufacturing eis f gt MI Expertise on Embedded Linux Android WindowsCE Pictures Documents Edit View n wanted TER HBS Hh i ae EAST Esty me ER FriendlyARM Plug in Remove MMC SD Card Remove USB Flash Drive Ro 6 f 03 10 5 All types Bcd at 3 Click on the Applications gt Storage you will see the card s data 7 eE version Storage Memon Root 61 MB Mi Used 42 MB E Free 19 MB MMCYSD Card 7002 MB mm Mi Used 765 ME E Free 7037 MB U Disk 3671 MB Tes BrO los0 2 5 7 Calculator Go to Applications and click on the calculator icon You can select Simple Fraction Scientific and Conversion Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com E 45 W Complete ARM Solutions riendl
69. TOOLS 0 0cccceccceccesccncccecccucccsccesccecccusccsccsscauccaeccusccusccsceescesseneeens 30 2 3 1 Install NUM OONS voi oscdecisdccdicdscoedcedscgeldddadseddecacdedihis oecdicdadsedd Meceadcdaddald dda dedidaie dedi cdadeeteededaliddededbieiees 30 2 3 1 1 Install on WING OWS saiseccccesccarccccearseaccesvecassccseeceseeceeosacasensecondencecssend bie eeeeahsneceeesecameucecoaseeacess 30 2 3 1 2 Install on Linux 2000000 cecceccecccscceccecccccceccccescceccscesccescuscescesccscescesscescescesscescescesceuseescs 31 2 3 2 Enter USB Download Mode ccc cccceccsccecceccccccecceccescceccscescceccuscesccsccescescescesscesceeceescesees 32 2 3 3 Install Systems with Minitools ccccccccccccccccccccccceeessseeeeeecccccceeeeeeeeeaaaasassseeeeeeeeceeeeeeeeeaaas 33 2 4 INSTALL SYSTEMS WITH SD CARD 0 000 ccc cecceecccecccecceccccccccccccesccesccasccusccscesscetscesccusccusccscetscesseusens 37 DW PMNS OAM UG nan a EEEE ett E E OAOE 37 2 5 NAVIGATE D NL OD issnsssicvaserdivraccreccviacbdacndiontevnssoedanaiandevnaadebewaniehdasseaghiaciebiahdesiviacsievendondeseiaondareaiosdavvhecsiav s 40 2 5 1 Calibrate Touch Screen cccccccecccscceccesccscceccccesccecceccescceccescesccescescescceccescescesccescuseescesecesees 40 2 5 2 Introduction to Main Pages sisissscsisdesosccccwnososedsssaasceassntaceanenessonsssssdenseedcenseanddnovonedasevsussdeasseedcaanies 41 23S Py MES a
70. Version 4 ICP IPv4 Properties _ You can get IP settings assigned automatically if your network supports this capability Otherwise you need to ask your network administrator for the appropriate IF settings 6 Obtain an IP address automatically Use the following IP address IP address 192 Subnet mask 255 Default gateway 192 Obtain DNS server address automatically Use the following DNS server addresses Preferred DNS server 202 96 128 86 Alternate DNS server E Validate settings upon exit The one in our example was 202 96 128 86 Therefore we set our board as follows rm etc resolv conf This is to remove the existing configuration file touch etc resolv conf This is to generate a resolv conf file echo nameserver 202 96 128 86 gt gt etc resolv conf Set up the DNS configuration file resolv conf with your DNS IP or you can edit it with vi Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com B 81 W Complete ARM Solutions Design Development and Manufacturing Expertise on Embedded Linux Android WindowsCE root Friend1lyaARM root Friend1lyARM root Friend1lyARHM root Friend1lyARM nhakeserver root Friend1lyA
71. after you press this button the system will shutdown reboot and enter the supervivi main menu If your system boots from the Nand Flash after you press this button the system will shutdown reboot and enter the Qtopia interface Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 66 T Complete ARM Solutions ES Design Development and Manufacturing f MI Expertise on Embedded Linux Android WindowsCE Note Reboot is different from the Watchdog function we will introduce The Watchdog is cold reboot and doesn t end programs or services but reset the system instead Restart Server it restarts the Qtopia system only It doesn t interrupt the running Linux Terminate Server it shuts down the Qtopia system After press this button the Qtopia interface will be disabled What is left on the screen 1s the left data in RAM and it is not an active graphic interface E Shutdown Terminate shutdown Restart Server Reboot These termination options are provided primarily for use while developing and testing the Gtopia system In a normal environment these concepts are UMAeCeSsary ed R ALi o7 Note the original Qtopia 2 2 0 system doesn
72. ail for Tech Support dev_friendlyarm 163 com 19 W On Complete ARM Solutions riendly Design Development and Manufacturing By FRV Expertise on Embedded Linux Android WindowsCE must select No in the data flow control field otherwise you will only be able to see outputs In addition the bits per second should be set to 115200 zjx Fort Settings Bits per second 115200 D ata bits E Parity None Stop bits f Flow contro Es Restore Defaults covet ao After setting up all properties turn on the board s power supply if the connection gets set properly you will see a bootloader startup interface If everything runs well please save this connection 2 2 Burn Superboot to SD Card In order to boot from an SD card you need to burn BIOS to it FriendlyARM offers a flashing utility SD Flasher exe which can burn our Bootloader Superboot2451 bin to an SD card 2 2 1 Burn Superboot to SD Card We tested the following steps on Windows7 Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 20 W Complete ARM Solutions Design Development and Manufacturing Expertise on Embedded Linux Android WindowsCE Note users compl
73. ain e g host domain com Miscellaneous Settings Gateway ee Primary DNS Secondary DNS qE Back gt Next Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 95 J Address Sales 86 20 85201025 Email for Business and Cooperation Complete ARM Solutions Design Development and Manufacturing Expertise on Embedded Linux Android WindowsCE In our example we didn t set it as DHCP we used a static IP instead and typed the IP and subnet mask as follows Edit Interface Network Dev Active on Boc Advanced Micro Devices AMD 79c970 PCnet32 LANCE Hardware address 00 0c 29 27 87 51 a i Enable IPv4 support O Dynamic IP configuration DHCP Manual configuration Hant IP Address Prefix Netmask ostname i p 192 168 1 108 4 255 255 255 0 Set the hostni A automatica O Enable IPv6 support manually Miscellaneou Gateway Primary DNS Secondary DN cancel ZI0K f 4a Back gt Next Click on the OK button and go on to set the machine name gateway and DNS Room 1705 Block Al L
74. ained that some notebook s integrated SD card reader cannot work properly with card burning or reading So far we haven t encountered this issue and we suggest that you should try a common card reader in this case Our SD Flasher exe formats a 130M space for the bootloader therefore an SD card whose memory is less than 256M cannot work and we recommend using one whose memory 1s at least 4G Stepl launch the SD Flasher exe in your shipped CD under tools Note this program should be run as administrator BG PMI Application 12 213 KB 06 27PM File folder 0627 PM File folder MN AFT OKA File falder When the utility is launched a message box will pop up Select your Machine please select Mini2451 Tiny245 1 lt Select your Machine T Machine Type 0 Mini64i10 Tinyb4i0 0 MiniZ10 Tiny210 MiniZ451 Tiny2451 C Mini4412 Tinyd412 Below is the dialog you will see after it is started Note the ReLayout is enabled and we will format the SD card with this function Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com B 21 W Complete ARM Solutions Design Development and Manufacturing se FriendlyyARM D Memory Card Fusing Tool Lalaj 3
75. al Port Assistant on your board they will be output to your PC s super terminal simultaneously and vice versa To test Serial Port 3 you need to connect CON3 via our extension board and type the command below Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 76 W Complete ARM Solutions Design Development and Manufacturing Expertise on Embedded Linux Android WindowsCE armcomtest d dev ttySAC2 o Here 1s a screenshot RPC Registered udp transport module RPC Registered tcp transport module s3c2410 lt rte s3ce2d410 rtc setting system clock to 2080 02 10 11 43 18 UTC 34 7479 0998 vafis dev is 32505856 name is mtdblock yaf fs passed flags vaf fs Attempting HTD mount on 31 2 mtdblock yatts_read_super isCheckpointed 0 VFS Mounted root yaffs filesystem on device 31 2 Freeing init memory 144K hwclock settimeofday failed Invalid argument OS5 Jan1944 05 15 09 0000 boa server version Bosa 0 94 13 O05 Jan 1944 05 15 09 0000 boa server built Feb 28 2004 at 21 47 23 O5 Jan 1944 05 15 09 0000 bos starting server pid 495 port 80 Try to Bring eth interface up eth0 link down Done Please press Enter to activate this console
76. and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com B 143 HW Complete ARM Solutions Design Development and Manufacturing Expertise on Embedded Linux Android WindowsCE 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 j 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 nBUZZER TEST PWM Control 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 tFreq d n freq key getchQ switch key case F 2 if freq lt 20000 freq 10 break case 3 if freq gt 11 freq 10 Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com E 144 H Og Complete ARM Solutions riendly Design Development and Manufa
77. ar s int lenght strlen s str new charllenght 1 strcpy str s String cout lt lt Deleting str n deleteL str void display Q cout lt lt str lt lt endl j i int main void String sl I like FriendlyARM cout lt lt sl sl display Q return 0 double num ans cout lt lt Enter num Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 164 H Complete ARM Solutions Design Development and Manufacturing The Hello World introduced in the previous section runs in user mode Now we will present a program Hello World that runs in kernel mode and take this as an example to show you how to write a driver 5 3 1 Souce Code of Hello Module Program Description Source Code Location Driver Device Type Device Name Test Program Source Code Location opt Friendl yARM mini2451 linux 3 6 drivers char Test Program Name Test Program s Location in Board ee f Hinclude lt linux kernel h gt include lt linux module h gt static int init mini2451 hello module init void printk Hello Mini2451 module is installed n return 0 static void exit mini2451 hello module cl
78. ar empty mkdir p var log mkdir p var lock mkdir p var run mkdir p var tmp sbin hwclock s syslogd etc re d init d netd start echo gt dev ttyl echo Starting networking gt dev ttyl sleep 1 etc re d init d httpd start echo gt dev ttyl echo Starting web server gt dev ttyl sleep 1 etc re d init d leds start echo gt dev ttyl echo Starting leds service gt dev ttyl echo sleep 1 echo gt dev ttyl etc re d init d alsaconf start echo Loading sound card config gt dev ttyl echo sbin ifconfig lo 127 0 0 1 etc init d ifconfig eth0 bin qtopia amp echo gt dev ttyl echo Starting Qtopia please waiting gt dev tty1 Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 90 F Complete ARM Solutions Design Development and Manufacturing Users can take screenshots with snapshot and save them as png files snapshot pic png Executing this command will take a screenshot of the current LCD display and save it as pic png Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http w
79. arget file system to the board you need to make the file system an image first We have a tool that can be used to make file images mkyaffs2image Below are the steps to install cd tar xvzf tmp linux mktools 20130822 2451 tar gz This will create those tools in the usr sbin directory Note C 1s capitalized and means change If your system has been installed a Mini2440 s mkyafts2image it will be overwritten But you don t need to worry about it since they are identical 2 Install LogoMaker LogoMaker is developed by FriendlyARM for making linux logos There are many resources describing how to convert image files such as bmp jpg png and so on to linux logos using command line tools We created this graphic version which is based on Fedora9 Execute the command below Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 132 H Complete ARM Solutions Design Development and Manufacturing ot AT Expertise on Embedded Linux Android WindowsCE cd tar xvzf tmp linux logomaker tgz C Note C 1s capitalized and means change After executing the above commands LogoMaker will be installed in the usr sbin directory It only has one file After installin
80. ata which cannot be edited the bottom one shows sent data which can be edited via a USB keyboard or a soft keyboard Click on the Connect button to open dev ttySAC1 type some characters in the edit area click on the Send button and it will send data to the connected serial port device The screenshot below shows what a Windows super terminal receives Note the settings for this super terminal should be 115200 8N1 MevitySACe H00 ANTE www arm net Disconnect Clean Close send Nez a Gates uli arn net Click on Disconnect to disconnect the connection Click on Setting to enter the parameter setting interface which lists some basic serial port parameters Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com E 53 Complete ARM Solutions Design Development and Manufacturing Expertise on Embedded Linux Android WindowsCE Comm Port you can choose dev ttySAC0 1 2 or the USB to Serial dev ttyUSBO 1 2 3 Note in this utility SACO corresponds to CON1 SAC1 corresponds to CON2 and etc Speed bits per second Data data bits 8 or 7 usually 8 Hex input and output data in Hex format Sete Pores Sethe Pores Comm Port
81. be f OO7O 70 71 72 73 74 75 76 77 78 79 7a 7b 7c 7d 7e 7E OO80 80 81 82 83 84 8S 86 87 68 69 a 6b Bc Bd Be BE 0090 9390 91 92 93 94 95 96 97 98 99 Ja 9b Jc Jd Ye JE OOa0 al al a a3 ad a5 a a a a9 aa ab ac ad ae af 00b0 b bl b2 b3 b4 b5 b b7 b bY ba 00c cO cl c2 c3 c4 cS coc c c9 ca 00d dO di d2 d3 d4 dS d d7 d d9 da db dc dd de df O0Oe0 el el e e3 e4 e5 eb eF eb e ea OOfO 0 f1 f2 3 f4 f5 6 f7 fe 9 fa fb fe fd fe ft root FriendlyaARH Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 78 W Complete ARM Solutions Design Development and Manufacturing 2 6 10 AD Conversion Test Type adc test in a terminal you will be able to test AD conversion By adjusting the W1 resistor you will observe the output root Friend1lyARM adc test press Ctrl C to stop ADL Value U ADC Value ADC Value ADC Value ADC Value ADC Value ADC Value ADL Value ADL Value ADC Value ADC Ualue 2 6 11 Ethernet Configuration Connect your board to the internet write down your gateway IP the one in our example was 192 168 1 1 and configure your router route add default gw 192 168 1 1 Now you can visit an IP address on the inter
82. c cc cccccccccssssssseseeeeccecccceeeeeeeeaaaaasassseeeeececeeeeeeeeeeaaas 49 2315 PWM Buzzer TeS eee E E EEE E EE ET 50 2 5 16 Serial Port ASSISUaIt o40coi0seiescasessscasaseanacgueaiessssersactvasieaeeusnaoctwasssdaseseneactiaatwsaseseasaetsasiedeeeneieanterss 51 2o Ando RECODO naeia RAS E E EAE EN 54 PAE E T E AE T A E E A E A E 56 ZSA Ba MOEN CONTO eria EE E AE E 57 PA VDE OMY CES ON E A E A A 57 2 321 User Botlon TeSt oniani a E N E T E ashes 59 2S2 TON EO US 0 a E E A E O A A draweeds 59 PAPRA EET A T OE ETE EIEE PEE TE ATE E E EIEE A E E DE PEE A E AT A 61 2 5 24 Time Zone Date Time and Alarm Setting 0 00 ccccsceseccccccccceeeeeeccaeaeeeseseeeeeeeeceeeeeeeeeaaas 62 ZS ROE SCLC gcc en ceca E TE E NOE 64 2 5 26 Set up AutoRun Program 5955 c550ie5s serena sanscdodisrcvscsndcancdahdsenondadaasalebbanvecapdcahedehdanuondadanhaladdnewedssdcatees 65 29 27 SyS eM SM OW UM seinor e E EEA 66 PA VV AUC E AE EE A E EE EEE 67 ZB e EO D o S sss srs E A T EA O OT E A A E O uke 69 2 6 NAVIGATE LINUX VIA COMMANDLINE ccccssssscessssnncececceeeeeeeeeeesseeesssssnnnaeeeeeeeeeeeeeeeseeeeeeseesnaaaaegees 70 2 6 1 Play MP3 annnnnnnnnnnnseoeeeeeeeeeennnnnsssssssssssserereeresssssssssssssseererreeeossssssssssssseerrereeessssssssssssseeerereeesesssss 71 2 6 2 Terminate Program eeeeeeeeeessessesssssrecccceeresssssssssssssseccceerersssssssssseresscteereesssss
83. cnraseasosivssecauassbuiauiasenasiadseinesiaveinuesavbensabselnesonndabidesindeinoealbyaesvetoreoias 135 5 DEVELOPMENT WITH LINUX sinsiecsscsisscicseesecaaicusessdeicowiedecaieveadsaavivavins salcawieied astsdieawdelvuslewdeaitalecueiseu eedsadteebedwaliwslenddedsededee 136 SIL HALO WOR D a S 136 SLE 0 1 oe C O s S E ES E EET EEES EEE EIES AEE E EAE ERTE 136 SA2 OOTP eea E EE E E E E E neecetecstesste 136 5 1 3 Download and Runn ccc ccc ccc cccceccecccsccecceccesccuccscescceccscesceescscesccescscescceccscesceescesceseceseusees 137 5 2 SAMPLE APPLICATION CODE voisoccessosdosecsccanaccadedaccnsdnseacsssdaseanieanaacanedaccnuanseaosacadanacnseansecaledasecsaineacaseies 139 5 2 1 LED Test Program ccccc ccc ccccccccceasssseeeeeeeececccceeeeeeeeaaaaaasssseeeeeeeeeceeeeeeseseaaaaaaasseseeeeeeeeees 139 5 2 2 User Button Test Proer aay scsisccccsseasacacitedancscwcovionsasaivsiisdancaunicttaecnedaassicasdehuecasdawiecdaaenvinedaacseusetaanices 140 5 23 PWM Bozzer Propran eirocisiiprriiiieniiiis eas ikinanta AEAEE A TEREA 142 5 2 4 I2C EEPROM Program oennennnnnserrrrrrrrrrrrrrrrrrrrrrrrrrrrererrrrrrrerererererrreerereeeereeeeereeeeerereeeeeeees 145 5 2 5 Serial Port Program 0 0 c ccc ccecceseeeeeeeseseseeeeseseseeeseseseeeeeeeeeeeeeeeeeeeseeeseeeeeeeeeeeeeeeseeeeeeeeeeeeees 148 Be UDP Pror AU i et eh ai ca i cian EOE dv an daa lave O 153 5 2 7 Utiliz Math Libraries scic
84. cturing fot E MI Expertise on Embedded Linux Android WindowsCE break case ESC KEY case EOF stop buzzer exit 0 default break You can compile the program download it and run 5 2 4 I2C EEPROM Program opt FriendlyARM mini2451 linux 3 6 drivers i2c busses opt FriendlyARM mini2451 examples i2c Note the following program depends on 24cxx c in the same directory Hinclude lt stdio h gt Hinclude lt fcntl h gt H include lt getopt h gt H Hinclude lt unistd h gt Hinclude lt stdlib h gt H Hinclude lt errno h gt Hinclude lt string h gt Hinclude lt sys types h gt Hinclude lt sys stat h gt H include 24cXX h tdefine usage if a do do usage if a LINE while O void do usage if int b int line Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 145 H On Complete ARM Solutions riendly Design Development and Manufacturing 3 lM Expertise on Embedded Linux Android WindowsCE const static char eeprog usage T2C 24C08 256 bytes Read Write Program ONLY FOR TEST n FriendlyARM Computer Tech 2009 n if 1b return fprintf stderr s n line d n eeprog usage line exit
85. d exe ftp 192 168 1 230 Cosminiz446 gt ftp 192 168 1 238 Connected ee 220 FeiendlyARM FIP server Uersion 6 4 0penBSD Linux ftpd 86 17 gt ready User 192 168 1 238 none gt gt plg 31 Password required for plg SSword 230 User plg logged in a bin HH Type set to I ftp gt ls HH PORT command successful 156 Opening ASCIT mode data connection for file list ash_history 226 Transfer complete ftp Well 14 Z HET Seconds 14000 80Kbytes sec ftp put test mp3 HH PORT command successful 156 Opening BINARY mode data connection for TEST MP3 226 Transfer complete ftp ok 1804924 37 HET 1 648econds 1699 89Kbytes sec ftp Is HH PORT command successful 156 Opening ASCII mode data connection for file list TEST MP3 ash_history 226 Transfer complete W 24 75 FART Seconds 24000 0 Kbytes sec 2 6 15 Control LED Remotely Click on Manipulating LEDs via HTML on the test page of our web server the following page will be loaded Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 86 T Complete ARM Solutions Design Development and Manufacturing O USBERAREERMARA Windows Internet Explorer go v http 192
86. d Linux Android WindowsCE 1 Introduction The Mini2451 development board is an ARM9 embedded processing board that uses the Samsung S3C2451 System On Chip SOC Its highest frequency is 522MHz As a successor of the Mini2440 its ports interfaces and layout is almost 99 compatible with the Mini2440 In addition compared to the Mini2440 the Mini2451 has a better power system and overall design therefore it can avoid strong electrical interference and extreme temperature fluctuations These features make it fit the most needs of outdoor applications Compared to the Mini2440 the Mini2451 runs much faster and can work with larger RAMs It has four serial ports Its USB supports USB2 0 The 2451 supports SD card booting and therefore we developed a Superboot 2451 which enables installing OS via an SD card 1 1 Mimi2451 Board Here is a Mini2451 s photo Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com B 7 1 Complete ARM Solutions oe Design Development and Manufacturing E Expertise on Embedded Linux Android WindowsCE TU 128MB DDR2 RAM 133M Hz FLASH SLC NAND Flash 256MB optional 256MB 1GB LCD interface 41Pin 1 0 mm spacing compatible with Mini2440 Mini6410 M
87. d cannot be loaded via insmod GPGO K2 K3 GPG3 GPG K4 GPG6 Ko GPG7 GPG11 EINTS EINTII EINTI3 EINT14 EINT15 EINT19 5 5 Compile Qtopia 2 2 0 To make it easy for users we compile all the steps into one build script Executing this script will compile thewhole qtopia platform and its utiliti es You can start them by commanding run The compiling scripts for x86 and arm are a little bit different 5 5 1 Uncompress and Install Source Code Please refer to 3 4 1 Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China Sales 86 20 85201025 Tech Support 86 13719442657 Email for Business and Cooperation capbily 163 com Email 510640 Website http www arm9 net Fax 86 20 85261505 for Tech Support dev_friendlyarm 163 com 171 Complete ARM Solutions Design Development and Manufacturing Expertise on Embedded Linux Android WindowsCE 5 5 2 Compile and Run Qtopia 2 2 0 for X86 All our programs have been verified on Fedora9 We didn t try them on other platforms We strongly recommend our users to use Fedora9 and download it from ftp download fedora redhat com pub fedora linux releases 9 Fedora 1386 1so Fedora 9 1386 DVD 1so Enter the working directory and run the following command cd opt FriendlyA RM mini2451 x86 qtopia build all this process takes about 30 minutes Note build all will automatically compile the complete Qtopia and its embedde
88. d web browser You can execute build first and then build konq to compile them separately To run your qtopia you can type the command below run You will see the following screen root tom opt FriendlyARM mini2440 x86 qtopia Virtual framebuft root tom x86 qtopia ls build build kong kong build all fonts tar gz kong tar gz gqtopia 2 2 0 tar qz root tom x86 qtopia run Using display Warning QSocket writeBlock Socket is not open Need to run firstuse and its not null Warning Loading opt FriendLyARM mini2446 x86 qtopia gqtopia 2 2 0 FriendLyARM q topla image opt Qtopia il n en US qt qm Warning Loading opt FriendLyARM mini2440 x86 qtopia gqtopia 2 2 0 FriendlLyARM q topla image opt Qtopia il n en US qpe qm Warning Loading opt FriendLyARM mini2446 x86 qtopia gqtopia 2 2 0 FriendLyARM gq topla image opt Qtopia il8n en US Libgqpe qm Warning Loading opt FriendLyARM mini2440 x86 qtopia gqtopia 2 2 0 FriendlLyARM gq topla image opt Qtopia il n en US Libqtopia qm Warning Loading opt FriendLyARM mini2446 x86 qtopia gqtopia 2 2 0 FriendLyARM gq topla image opt Qtopia il8n en US Language qm Warning Loading opt FriendLyARM mini2440 x86 qtopia gqtopia 2 2 0 FriendlLyARM q topla image opt Qtopia il n en US timezone qm Warning Loading opt FriendLyARM mini2440 x86 qtopia gqtopia 2 2 0 FriendLyARM q topla image opt Qtopia il8n en US systemtime qm Tap anywhere on the screen to continue Add
89. developed by Friendly ARM to test serial ports It is very similar to minicom in Linux and independent of hardware Its source code can be applied in both any arm linux platforms and PCs This program is developed by Friendly ARM and unauthorized usage of it is forbidden Program include lt stdio h gt 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 HH H H H H H H HF 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 j static void Warning const char Msg fprintf stderr Warning s n Msg static int SerialSpeed const char SpeedString int SpeedNumber atoi SpeedString Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 148 H On Complete ARM Solutions riendly Design Development and Manufacturing 3 FRV Expertise on Embedded Linux Android WindowsCE define TestSpeed Speed if SpeedNumber Speed return B Speed TestSpeed 1200 TestSpeed 2400 TestSpeed 4800 TestSpeed 9600
90. dewttyoAct al dewitys Aco Speed 119200 bps Speed fdevitysAc Comm Part dew Tty oA CZ Data O hits 4 Data fdewityUSBO fdewityUsBb1 Hex Hes dew tyUsBe fdevityUSB3 Ok Cancel Ok Cancel a Designed by FriendlyARM Designed by FriendlyARM All nghts reserved waww ann _ net All rights reserved waww arma nel a EEN MEIA EN AL hoas 2 5 17 Audio Recording Go to the FriendlyARM tab and click on the recorder icon Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 8 54 H Complete ARM Solutions Design Development and Manufacturing AD Buttons EEPROM PRESS TO RECORD fs LEDIA LEDs Ping J E5 USB ies ER 00 00 P iy i REC Clase Al H Ree Tote al a e HENG Se soho FS A BQ 2 03 57 H M Click on the REC button to start recording When you speak to the microphone on the Designed by FriendlyARM All nights reserved www arma nmel R o ALI o3 58 board you will see audio waves shown on the screen Click on the STOP button to stop recording FERRE ELH FERRE EEC ELeH RCORDING PRESS TO PLAY 00 15 00 21 swp mos coe new r Pey cn D
91. e Notes O 2 Music O PA Notes O i Pictures Designed by FriendiyARM All nghts reserved aww arma met SEA by R 6 82 Jisas Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 65 H On Complete ARM Solutions riendly Design Development and Manufacturing Bis FRN Expertise on Embedded Linux Android WindowsCE To disable auto run for a program just click on Clean and Close a message box will pop up click on Yes the auto run for that program will be disabled Seea Frogram list status Auto star 5 Designed by FriendlyARM I Afi amers F Hl All nights reserved Www arma mel Bad Gy R AS fies 2 5 27 System Shutdown In the Settings tab click on the shutdown icon you will see four options on the shutdown window Shutdown Press this button Linux will end all the programs and services to shutdown the whole system After the whole system is shutdown the CPU will not be running and the system consumes lest power However since our system doesn t have a hardware power down circuit you still can see the power LED on the board is on Reboot This is a hot reboot button If your system boots from the Nor Flash
92. e default layout v C Encrypt system Select the drive s to use for this installation db Advanced storage configuration What drive would you like to boot this installation from O Review and modify partitioning layout i Click on Next it will warn the user that all the data will be deleted Usually we would do this installation in VMWARE so we chose Write changes to disk and disk format would begin Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 100 W Complete ARM Solutions Design Development and Manufacturing fedora Installation requires partitioning of your hard drive By default a partitioning layout is chosen which is reasonable for most users You can either choose to use this or create your own Remove Linux partitions on selected drives and create default layout v l Encrypt system Select the drive s to u 7 Writing partitioning to disk mw The partitioning options you have selected will now be written to disk Any data on deleted or reformatted partitions will be lost Jh Advanced storage Write changes to disk What drive would you I 0 Review and modify partitioning layout fe Here is the format process
93. eanup void printk Good bye Mini2451 module was removed n module init mini2451 hello module init module exit mini2451 hello module cleanup MODULE_LICENSE GPL Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 165 W Complete ARM Solutions Design Development and Manufacturing Expertise on Embedded Linux Android WindowsCE Please follow the steps below to include the module into the kernel and compile Note actually the following steps have been set up and you only need to directly compile it Step1 configure Kconfig add this module in the drivers and it will appear in make menuconfig Open linux 2 6 32 2 drivers char Kconfig add lined marked in yellow root tom opt FriendlyARM mini2440 linux 2 6 29 drivers char File Edit View Terminal Tabs Help fdev kmem device is rarely used but can be used for certain kind of kernel debugging operations When in doubt say N config LEDS MINI2440 tristate LED Support for Mini2446 002448 GPIO LEDs depends on ARCH 53C2410 help This option enables support for LEDs connected to GPIO lines on Mini2440 002440 boards config f MINI2440 JELLO MODULE tristate Mini2440 QQ2440 module sample depends on
94. ebsite http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 140 gt Complete ARM Solutions riendly Design Development and Manufacturing TH Expertise on Embedded Linux Android WindowsCE Device Type misc dev buttons Test Program Source Code opt FriendlyARM mini2451 examples buttons Location Test Program Name button test c Executable Name buttons Test Program s Location in Board Note the button driver has been compiled into the kernel by default and you cannot load it via insmod Program include lt stdio h gt include lt stdlib h gt include lt unistd h gt include lt sys ioctl h gt Hinclude lt sys types h gt Hinclude lt sys stat h gt Hinclude lt fcntl h gt Hinclude lt sys select h gt Hinclude lt sys time h gt Hinclude 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 l j for G i char current buttons 6 int count of changed key int 1 if read buttons fd current buttons sizeof current buttons sizeof current buttons perror read buttons exit 1 for i 0 count of changed key 0 i lt sizeof button
95. ed to copy the whole Images directory to the root directory of the SD card 2 2 5 Configure FriendlyA RM ini When installing systems you will need the FriendlyARM in1 file Its content is as follows FriendlyARM 1ini File This line cannot be removed by FriendlyARM www arm9 net USBMode Yes Action Install OS Linux LCD Type W35 VerifyNand Write Yes Check CRC32 No Status Type Beeperl LED Linux part Linux BootLoader superboot245 1 bin Linux Kernel Linux zImage Linux CommandLine root dev mtdblock2 rootfstype yaffs2 init linuxrc console ttyS ACO 115200 Linux RootFs InstallImage Linux rootfs 245 1 img We listed the details of each item in the table below Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 28 W Complete ARM Solutions Design Development and Manufacturing Expertise on Embedded Linux Android WindowsCE Comment the default configurations are different for different systems Set actions Install Run Null Install Install to the NAND Flash Run Run from SD card Null No action The default setting is Install Operating system to be loaded The default setting is Linux LCD type W35 H43 W50
96. eeprom e int op op 0 usage if argc 2 argv 1 0 argv 1 2 0 op argy Lli LL 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 i case r fprintf stderr Reading 256 bytes from 0x0 n read from eeprom amp e 0 256 break case w fprintf stderr Writing 0x00 0xff into 24C08 n write to eeprom amp e 0 break default usage if 1 exit 1 eeprom close ke return OQ You can compile the program download it and run Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 147 gt Complete ARM Solutions riendly Design Development and Manufacturing Expertise on Embedded Linux Android WindowsCE 5 2 5 Serial Port Program Program Description opt Friend yARM mini2451 linux 3 6drivers serial Device ee O O S Test Program s Location in Board E Note you can get two versions one for x86 and the other for ARM Both are generated from the same source code The comtest utility is
97. erface and Port on Embedded Linux Android WindowsCE The Mini2451 has the following interfaces ports and sockets LCD CMOS Camera Reset 1 Power Switch Power Input CON8 Power CON1 UARTO COMO RS232 CON2 UART1 Es CONS GPIO CONS UART2 CON4 UART3 SD Card Slot Ethernet EEPROM ADC Test RTC Battery miniUSB MIC USB Host Audio Out User Buttons LED1 4 PowerLED JTAG CON15 Buzzer S2 Boot Mode Switch SDIO Please follow the steps below to hook up the board gt Connect the Mini2451 board s serial portO Debug Serial Port to a PC s serial port with the shipped crossover serial cable blue one in the package gt Connect the Mini2451 board s Ethernet to a PC with the shipped crossover cable Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 16 W Ogg Complete ARM Solutions Gian Design Development and Manufacturing ERNI Expertise on Embedded Linux Android WindowsCE this step can be skipped if you don t need to connect to the internet gt Connect the shipped 5V power supply adapter to the 5V power supply interface on the board do it with care to prevent damaging the interface gt Connect a headphone or speaker to the audio inpu
98. esigned by FriendlyARM All nights reserved www armare Ne Designed by FriendlyARM All nights reserved www arma met Saas R OASI uo Sas RALI o Click on the PLAY button to play what you recorded and you can see what you recorded has been saved as WAV files in the Documents directory Room 1705 Block A1 Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Fax 86 20 85261505 Tech Support 86 13719442657 Email for Tech Support dev_friendlyarm 163 com 55 Address Sales 86 20 85201025 Email for Business and Cooperation capbily 163 com Complete ARM Solutions rienaty Design Development and Manufacturing AMI _ Expertise on Embedded Linux Android WindowsCE FERRE BAC eLeH Documents PLAYING Q New Soul g sun Jan sunflower 14 04 00 42 eUz Designed by FriendiyARM All nights reserved www arma met All types E a ALI oos Te SALI o Note Qtopia 2 2 0 has a recorder utility by itself But it cannot record audio We leave it as what it Is 2 5 18 LCD Test Go to the FriendlyARM tab click on the LCD icon you will see the following dialog pop up Er Fes ttre Display different color at full screen A DHH Buttons EEPROM oe LED Lo Diliizt LEDs o E5 USB aL zepi Auto loop O Manual control i p Close el H Psa eS Designed by Friendly
99. et AF INET SOCK DGRAM 0 if sockfd lt 0 printf socket creating err in udptalk n exit l socklen sizeof struct sockaddr in memset amp peeraddr 0 socklen peeraddr sin family AF_ INET peeraddr sin port htons atoi argv 2 if inet pton AF INET argv l1 amp peeraddr sin addr lt 0 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 f 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 recv amp send message loop n recvfrom sockfd recmsg BUFLEN 0 amp peeraddr amp socklen if n lt 0 printf recvfrom err in udptalk n exit 4 telset received data recmsg n 0 printf peer s recmsg Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Supp
100. evelopment and Manufacturing Sy f gt MI Expertise on Embedded Linux Android WindowsCE root tom opt FriendlyARM mini2440 examples hello Ale Edit View Terminal Tabs Help buttons camtest hello Lled player math pwm root tom examples cd hello root tom hello ls hello hello c Makefile root tom hello 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 hello 5 1 3 Download and Run You can download your executable to the board in any of the following ways Copy to a media such as flash drives FTP file transfer recommended File transfer via serial port Run via NES 1 Copy to Flash Drive Note copy your executable to a flash drive mount it to your board and copy the file to bin 1 Copy to Flash Drive Connect your flash drive to your PC and execute the following commands mount dev sdal mnt mount your drive cp hello mnt copy your file to the drive umount mnt unmount your drive Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 137 H Complete ARM Solutions Design Development and Manufacturing Expertise on Embedded Linux Android
101. fix opt FriendlLyARM toolschain 4 4 3 a rm none Linux gnueabi sys root disable nls enable threads posix enable symvers gnu enable c 99 enable Long long enable target optspace Thread model posix gcc version 4 4 3 ctng 1 6 1 root tom 3 4 Uncompress Source Code and Install Application Utilities This section will introduce how to uncompress all the source code that users may need and install some application utilities including Linux kernel source code Qtopia 2 2 0 source code for x86 and arm QtE 4 8 5 for ARM Busybox 1 13 source code Sample programs code developed by FriendlyArm Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 128 H J Complete ARM Solutions Gian Design Development and Manufacturing CARM E Expertise on Embedded Linux Android WindowsCE Target file system directory File system image maker for YAFFS2 and UBIFS Linux logo maker logo_maker Note all source code and utilities should be uncompressed and compiled with arm linux gcc 4 4 3 3 4 1 Uncompress Source Code Firstly create a working directory opt FriendlyARM mini245 After execute command mkdir p opt FriendlyARM mini2451 all the source code
102. for Business and Cooperation Complete ARM Solutions Design Development and Manufacturing Image File to Fuse E SI Drive ls Name Physical Disk Size Label Available Result I Disk 3 7304M SDCARD No Reports Scanning Found 1 Disks Ss Fuse Designed by FriendlyARM Al ihsreserved wwwatm net All rights reserved wwer armd_net Yer 132T 2 2 3 Notes to Users Common SD cards are used as storage cards therefore on Vista Windows7 SD Flasher automatically formats an SD card to two sections one is FAT32 named FriendlyARM and the other by default 130M is reserved for the bootloader In fact Vista Windows7 s system security policies don t permit unauthorized users to start auto burning an SD card thus common users need to format the SD card first and then burn data into it To burn Superboot please run the SD Flasher on Windows7 Running SD Flasher on XP may not work Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com B 27 WH a Complete ARM Solutions riendly Design Development and Manufacturing f z MI Expertise on Embedded Linux Android WindowsCE 2 2 4 Copy Images to SD Card When installing systems with an SD card you ne
103. for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com B 173 KH Gry y CARM Complete ARM Solutions Design Development and Manufacturing Expertise on Embedded Linux Android WindowsCE To remove your old Qtopia system you just need to delete all the files under opt Then you can uncompress your target qtopia konq tgz to the board s root directory via a flash drive In our example we had it under home plg Please run the command below tar xvzf home plg target qtopia konq tgz C C means Change and 7 after C means it will be uncompressed to the root directory After you are done reboot your board and you will see that all your GUI components are in English now and there is a browser under the FriendlyARM tag This is your own Qtopia Note your new system may load parameters from etc pointercal you can delete that file too and will be directed to the calibration screen after reboot ER Applications F es al E3 F Friendiy ARM os af I 3 3 2 Calculator Calendar Camera Web l Browser Clock contacts Help A E MIUS C Motes Fictures oyster Info Tasks Terminal zagaa Teya AL pon MaA a AL j osoz The above procedure is a simplied one We hide all technical details in the build all script you can look into it for more details Address Room 1705 Block Al Longyuan Plaza Longkouxi Road
104. g it type logomake in a command line window you will see the following screenshot Friendly Linux Logo Maker File Help Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com E 133 W Complete ARM Solutions Design Development and Manufacturing 4 1 Compile Linux Kernel Type the following command to compile GG 99 cp mini2451_linux_config config there is a space after config and prior to make menuconfig begins to compile config Linux arm 3 6 0 Kernel Configuration 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 module lt gt module capable Patch physical to virtual translations at runtime eneral setup gt nable loadable module support gt nable the block layer gt ystem Type gt us Support gt ernel Features gt oot options gt PU Power Management gt Loating point emulation gt serspace binary formats gt ower management options gt N two
105. gzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 104 H Complete ARM Solutions Design Development and Manufacturing fedora fedora ui v atseaag 20 of 1148 packages completed Installing evolution data server doc 2 22 1 2 fc9 i386 4 MB Documentation files for evolution data server Step14 installation complete Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 105 W Complete ARM Solutions riendly Design Development and Manufacturing ARM fedora Congratulations the installation is complete Press the Reboot button to reboot your system spf Reboot Step15 after installation completed click on the reboot button on the page shown in step 14 Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 106 W Complete
106. gzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 29 W Og Complete ARM Solutions Gian Design Development and Manufacturing CARM E Expertise on Embedded Linux Android WindowsCE line of the ini file cannot be edited or deleted It is This line cannot be removed by FriendlyARM www arm9 net Note no space or any other character after the last is allowed 2 3 Install Systems with Minitools The Muinitools utility is a FriendlyARM developed USB download tool which allows users to install systems more easily and conveniently It has the following features Only need a USB cable with the Minitools users only need a USB cable to install systems One key action no need to type any command Compitable with 32 64 bit OS it can be installed on both 32 bit and 64 bit Windows systems Cross platform it can be installed on both Windows and Linux systems 2 3 1 Install Minitools 2 3 1 1 Install on Windows Double click on the MiniToolsSetup exe icon in the tools directory in your shipped DVD and you will be guided to install it Just follow the prompts and take the default options When it asks whether you want to install the driver please go by continue anyway After installation is done please unplug and plug the USB cable Window
107. ini210S LCD supports one wire precise touching LCDs supported from 3 5 to 12 1 resolution up to 1024 x 768 10 100M Ethernet interface RJ45 using DM9000AEP Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com H a Complete ARM Solutions riendly Design Development and Manufacturing f To MI Expertise on Embedded Linux Android WindowsCE Standard Configuration 1x DB9 RS232 serial port 1x miniUSB 2 0 1x 3 5mm stereotype audio output 1x integrated microphone 1 x one speaker port which can drive an 8Q 1W speaker 1x USB Host 2 0 1x standard SD card socket 1x 5V power input DC 23B On Board Hardware I2C EEPROM 256byte for I2C bus test Resource LED Green Interrupt Style Push Button on module adjustable resistor for ADC testing PWM buzzer backup battery for on board real time clock External Resource TTL socket 2 0 mm spacing three wire serial port JTAG 10 pin 2 0mm spacing 1x SDIO 20 pin 2 0mm spacing includes 1 x SPI 1 x HC and 1 x serial port for SD WiFi 1x CMOS 20pin 2 0mm spacing can work with CCD cameras 1x GPIO including SDIO 34 pin 2 0mm spacing includes AD inputs interrupts I2C SPI PWM and 5V amp 3 3V power pin Power 3
108. inux gcc 3 3 2 tqz readme txt arm linux gcec 3 4 1 tg7 root default tg7 arm qtopia tgz root mizi tgz busybox 1 2 0 tgz root nfs tgz examples tgz root qtopia mouse tgz ipaq qtopia tgz root qtopia lt p tgz jf Lash2440 tgz Vivi tgz kernel 2 6 13 nini2440 20081127 tgz x86 qtopia tgz nkyaffsimage tyz rool lon Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 125 H GO Complete ARM Solutions riendly Design Development and Manufacturing ERV y Expertise on Embedded Linux Android WindowsCE To disconnect the shared directory right click on the shared directory and following the operations in the screenshot below Stretch Icon Unmount Volume Properties share_f9 on 192 168 1 123 3 3 Setup Cross Compile Environment To compile kernels Qtopia bootloader and other programs in Linux you need a cross compile environment We used arm linux gcc 4 4 3 The following steps will introduce how to build a compile environment Step 1 copy the compressed file arm linux gcc 4 4 3 tgz in the shipped CD into a system s directory e g tmp enter this directory and execute the following commands cd tmp tar xvzf arm linux gcc 4 4 3 tgz C Note
109. ion libpthread Program include lt stdio h gt include lt stdlib h gt include lt unistd h gt include lt sys ioctl h gt Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 159 W On Complete ARM Solutions riendly Design Development and Manufacturing FRIV Expertise on Embedded Linux Android WindowsCE Hinclude lt sys types h gt H Hinclude lt sys stat h gt include lt fcntl h gt include lt sys select h gt Hinclude lt sys time h gt Hinclude 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 j break case 1 if step gt 255 step 0 j led bitmap step break default led bitmap steptt for G 0 1 lt 4 as ioctl ed fd led bitmap amp 1 i led bitmap gt gt 1 a gt int main void Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657
110. ise on Embedded Linux Android WindowsCE We take WindowsXP s super terminal for instance You can find it by going to Start gt Programs gt Accessories gt Communications After it starts the following dialog will pop up please click on the No button Default Telnet Program x Wie recommend that you make HyperTerminal your default telnet program Do you want to do this Don t ask me this question again Click on the Cancel button on the following dialog Location Information P x Before vou can make any phone or modem connections Windows needs the following information about your current location What country region are Pou in now What area code or city code are you in now IF you need to specify a camer code what i it IF you dial a number to access an outside line what is it The phone system at this location uses f Tone dialing Pulse dialing Click on the Yes button and the OK button to the next step Confirm Cancel xX Windows needs telephone information about the location From which you will be dialing IF you cancel without providing this information this program may nok Function correctly when dialing In addition some applications respond to your canceling this dialog box by immediately re posting it Are you sure you want to cancel Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 5
111. k on Scan you will see that a FriendlyARM section available SI Drives Name Physical Disk Size Label Avatlable Result E Disk 3 7584M FRIENDLUARM Yes Step5 click on Fuse Superboot will be safely burned into the SD card You can burn this card in WindowsXP without worrying about its FAT32 data being lost or damaged Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 23 W Complete ARM Solutions riendly Design Development and Manufacturing ERN Expertise on Embedded Linux Android WindowsCE lt FriendlyARM SD Memory Card Fusing Tool Image File to Fuse C h images superboot 451 bin SD Drive s Name Physical Disk Size Label Available Result D Disk 1 3724M FRIENDLYARM Ves Reports Scanning Found 1 Diskts Designed by FriendiyARM eit inet inicio lei ReFormat ReLayout Cai t All nights reserved Wav arms riel Ver 1328 The Superboot in your SD card is invisible To verify it you can insert your SD card into your board s SD card socket and connect your board to a PC via a serial cable Switch S2 to the SDBOOT mode reboot your board and if messages pop up from the hyperterminal it is indicating that
112. l be uncompressed into these two directories Note in this release supports for mouse and tp are all included in one package 4 Uncompress and install QtE 4 8 5 source code In the work directory opt FriendlyARM mini245 1 run the commands below cd opt FriendlyARM mini245 1 tar xvzf tmp linux arm qte 4 8 5 20130922 tar gz An arm qte 4 8 5 will be created and their source code will be uncompressed into it 5 Uncompress and install busybox source code The Busybox is a compact Linux tool kit Here we used busybox 1 20 2 Users can download its latest version from http www busybox net In the work directory opt FriendlyARM mini245 1 run the commands below cd opt FriendlyARM mini245 1 tar xvzf tmp linux busybox 1 20 2 Mini245 1 tgz A busybox 1 20 2 directory will be created and its source code will extracted into Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 130 W A Complete ARM Solutions Gian Design Development and Manufacturing CARM E Expertise on Embedded Linux Android WindowsCE this directory Note for the sake of users we have made a default configuration file fa config 6 Uncompress and install Linux sample programs In the work directory opt FriendlyARM mini2
113. n that Minitools shows the board isn t connected to PC It is very likely that the USB download driver is not properly installed on your PC and you can try to manually install the USB download driver which is under the Minitools directory in the shipped DVD Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com BS 36 W Og Complete ARM Solutions riendly Design Development and Manufacturing ARMI a Expertise on Embedded Linux Android WindowsCE di C Program Files x86 FrendlyARM MiniTools usb_d rivers AFER Y i it ER ERAR ZEA Ku Dropbox amd64 2012 11 15 13 27 FS 1386 2012 11 15 13 27 H android_winusb int 2012 11 14 11 10 GRhE Ef androidwinusb86 cat 2012 9 11 13 56 RN Ef androidwinusbab4 cat 2012 9 11 13 56 source properties 0127 9 11 13 56 PROPERTIES 374 2 4 Install Systems with SD Card You can flash the Mini2451 with an SD card 2 4 1 Install Linux Note before read the following sections please burn Superboot to your SD card and copy corresponding installation files to your card Step1 insert the SD card to a PC open the images FriendlyARM ini file and modify it as follows This line cannot be removed by FriendlyARM www arm9 net
114. nanes anaes 84 2 6 14 File Transfer with FT P cccccccscssssssssssessssssssccccccecsecccccssssevessssesscccccccsseeeecessssesssssssssecccceeenees 85 2 6 15 Control LED Remotely ixccsscdaiiccsindaiscessadcivaadsacainsdecdaleeselacdaiecesvadaleaaseadavaestadsiadd secaenedeudaensdaadaxetiteddecead 86 2010 Monnt NE esses conse E E E 87 2 6 17 Set System Clock cccccccccccccsssssssseeseeeeecccceeeeeeaeaaaaasssssseeeeeeeeceeeeeeeeaaaaaaaaseseeeeeeecceeeeeeeeeaaas 88 2 6 18 Save Data to Flash Permanently ccccccccccccsssssssseeseeecccccceeeeeeeeeaauaaaesesseeeeeeeceeeeeeeeeaaas 89 2 6 19 Setup Autorun Program on System Startup ccccccccccecsccccccccccccceeeeeeecaaaeseseseeeeeeeeceeeeeeeeeaaas 89 2 6 20 Take Screenshot with Srnapshot cccccc ccc cccccccceeseeeeeeseeeeccecccceeeeeeeeaaaaasssseeeeeeeeceeeeeeeeeaaas 9 3 SET UP FEDORA 9 0 DEVELOPMENT ENVIRONMENT 0 cccccccceeeeseeeeeessnnnaeeeeeeeeeeeeeeeesseeeseeeenaaaeeeeeeeeeeeeeees 92 Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 4 7 Og Complete ARM Solutions riendly Design Development and Manufacturing RNV Expertise on Embedded Linux And
115. nclude lt stdio h gt Hinclude lt stdlib h gt Hinclude lt math h gt note including this header file is a must int main void double a 8 733243 printf sart f f n a sqrt a return 0 Makefile CROSS arm inux all mathtest It includes the math library libm marked in red mathtest CROSS gec o mathtest main c lm clean rm vf mathtest o 5 2 8 Thread Programming Program Description Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 157 H gt Complete ARM Solutions riendly Design Development and Manufacturing Expertise on Embedded Linux Android WindowsCE Driver Device Type Device Name Test Program Name pthread test c pthread test Executable Name Test Program s Location in Board Note to utilize math libraries you need to include its header file pthread h and add an compile option libpthread Program Hinclude lt stddef h gt H Hinclude lt stdio h gt H include lt unistd h gt Htinclude pthread h including this header is a must void reader function void void writer function void char buffer int buffer has item 0 pthread mutex t mutex main pthread t reader
116. nd Manufacturing Bis RNV Expertise on Embedded Linux Android WindowsCE 2 5 23 Language Setting Qtopia 2 2 0 has a language setting utility which is different from the one in Qtopia 1 7 0 It only supports English Therefore we developed a new utility located in the FriendlyARM tab the icon is a waving flag Earme eH LJ Ping USB Sigs SORE supported Language list TE B C English rd J gt FENO KHMER M ae Japanese dank iy G Babeatr sehbss Close i Designed by FriendlyARM All nights reserved www arma nmel l a g is a BB EEM ETAN 88 913 29 It now supports three languages English Chinese and Japanese When you select English then click on OK a message will popup asking you if you want to change your language setting Clicking on Yes Qtopia will reboot clicking on No it will return Note the Chinese and Japanese versions only have file names translated Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com B 61 W Complete ARM Solutions Design Development and Manufacturing 5 calculator calendar Contacts Help Pictures oveterm Info Terminal 6 ag Today Video
117. nd sound as well Clicking on the Stop button stops the buzzer Patek EH re es PWM and Buzzer Testing 1130Hz stop Designed by FriendlyARM CI All nights reserved wayw anms ret TE an R ALi ozo 2 5 16 Serial Port Assistant Note before start this program please connect the serial port your want to test to your board The on board CON1 2 3 and 4 are CPU UARTO 1 2 and 3 UARTO has been converted to RS232 and extended to COMO via DB9 On system startup it has been set to the console terminal so it cannot be tested via this utility The other three ports CON2 3 and 4 must be converted to RS232 before they can communicate with a PC serial port FriendlyARM has a OneCom RS232 conversion module When connect the ports to a PC please make sure to use a correct serial cable crossover serial line This program also supports common USB to Serial cables Now most laptops don t have serial ports For the sake of users most of our agents provide those conversion cables Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com B 51 7 Complete ARM Solutions Gian Design Development and Manufacturing ERNI Expertise on Embedded Linux Android WindowsCE Connecting a USB
118. ndowsCE int TtySpeed B115200 int ByteBits CS8 const char DeviceName dev ttyS0 const char TtyName dev tty int OutputHex 0 int OutputToStdout 0 int UseColor 0 opterr 0 nom ay d int c getopt argc argv d s t 7xoch if e 1 break switch c case d DeviceName optarg break case t TtyName optarg break cance s if optargl0 d DeviceSpeed SerialSpeed optarg 1 else if optargl0O t TtySpeed SerialSpeed optarg 1 else TtySpeed DeviceSpeed SerialSpeed optarg break case o OutputToStdout 1 break case T ByteBits CST break case x OutputHex 1 break case c UseColor 1 break case case h Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 150 W On Complete ARM Solutions riendly Design Development and Manufacturing 3 FRV Expertise on Embedded Linux Android WindowsCE default PrintUsage i j if optind argc PrintUsage Q CommFd open DeviceName O RDWR 0 if CommFd lt 0 Error Unable to open device if fentl CommFd F_SETFL 0 NONBLOCK lt 0 Error Unable set to NONBL
119. net e g you can ping bbs scut edu cn IP 202 112 17 137 ping 202 112 17 137 Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 79 W Complete ARM Solutions Design Development and Manufacturing Expertise on Embedded Linux Android WindowsCE If it is a success you will see the following output root Friend1lyARM route add default gw 192 168 1 1 froot FriendlyARM ping 262 112 17 137 PING 2802 112 17 137 2802 112 17 137 56 data bytes 64 bytes from 202 112 417 137 icmp seg 6 ttl 52 time 1569 6 ms 64 bytes from 202 412 417 137 icmp seg 1 ttl 52 time 1426 6 ms 64 bytes from 202 412 417 137 icmp seg 2 ttl 52 time 1446 8 ms To ping through an outside website you also need to configure your DNS You may get it from your network manager Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 80 H Complete ARM Solutions Design Development and Manufacturing Expertise on Embedded Linux Android WindowsCE Internet Protocol
120. o module drivers char mini2440 hello module c drivers char mini2440 hello module ko drivers char mini2440 hello module mod c drivers char mini2440 hello module mod o drivers char mini2440 hello module o root tom Linux 2 6 29 Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 168 W Complete ARM Solutions Design Development and Manufacturing Expertise on Embedded Linux Android WindowsCE 5 3 3 Download Hello Module Please transfer mini2451_ hello module ko to the board via FTP and move it to lib modules 3 6 0 FriendlyA RM modprobe mini2451_hello_module You can observe that the module has been loaded note to load a module with modprobe you don t need to add the ko extension Run the following command you will observe that the module has been unmounted rmmod mini2451_ hello module Note to load a module correctly you need to move your module to the boards s lib modules 3 6 0 FriendlyARM directory In addition if your kernel s version 1s different from the example here please create a new directory for your kernel Here it is lib modules 3 6 0 FriendlyA RM SVT EI See CE Se FAY ei fT ABAD CH Lroot Friend lyARMW 2 6 29 4 FriendlyAR
121. oder 0 15 0 beta Copyright 2000 2003 Robert Lesli Title Ep i i Artist HiX Play MP3 in NFS Year Zuu Genre Goa 2 6 17 Set System Clock The Linux command for updating time is date to synchronize the S3C2451 time with Linux s system time you can use hwclock 1 date s 042916352007 set time to 2007 04 29 16 34 2 hwclock w save your setting to S3C2451 s RTC 3 Command hwclock s to update Linux s system time with RTC Usually this Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 88 T Complete ARM Solutions Design Development and Manufacturing Expertise on Embedded Linux Android WindowsCE command will be included in etc init d rcS for auto run Note our system s etc init d rcS includes hwclock s already 2 6 18 Save Data to Flash Permanently The Mini2451 system supports yaffs2 thus can save data permenantly even when the system is powered off After the system boots please try the following command cp shanghaitan mp3 home plg This will create a duplicate file under home plg Power off and on you will observe that the file still exists 2 6 19 Setup Autorun Program on System Startup Use
122. om 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com a 175 H Complete ARM Solutions r jendly Design Development and Manufacturing PRM Expertise on Embedded Linux Android WindowsCE E Shutdown Terminate shutdown Restart Server Reboot Terminate Server These termination options are provided primarily for use while developing and testing the Gtopia system In a normal environment these concepts are Unnecessary aa B 621 01 94 Or you can shut it down either by commenting out the qtopia option in the init script etc init d rcS and rebooting the system or commanding kill all to terminate related process there are many options you can even delete the whole opt shut down qtopia 2 2 0 and run qt4 Path Stroking Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 3 176 KW
123. ongyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 48 H Complete ARM Solutions Design Development and Manufacturing BooMAsgQaaaa http kernel org E for the Linus kernel source but it has much more than just Linux kernels Frequently Asked Buttons LED LEDNA LEDs Giuestions 6I M Protocol Location HTTP http Awa kernelorg pub ETE fip ftp kernel orgipubi RYNG rsync rsync kernel org pub SS D wang Ro ATI 03 34 2 5 13 LED Test Go to Friendly ARM and click on LED Testing EER Festi A 3 otop led player Close All nghts reserved www arms nmet es R ALi ozn 2 5 14 EEPROM Reading and Writing Go to FriendlyARM and click on I2C EEPROM Click on Write Data below into Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Fax 86 20 85261505 Sales 86 20 85201025 Tech Support 86 13719442657 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com E 49 R On Complete ARM Solutions riendly Design Development and Manufacturing RNV Expertise on Embedded Linux Android WindowsCE EEPROM via IC yo
124. ongyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Tech Support 86 13719442657 Fax 86 20 85261505 capbily 163 com Email for Tech Support dev_friendlyarm 163 com 96 Tl Complete ARM Solutions Design Development and Manufacturing F Ee olge Network Devices Active on Boot Device Pv4 Netmask etho IPv6 Prefix Edit 192 168 1 108 24 Disabled Hostname Set the hostname O automatically via DHCP manually tom e g host domain com Miscellaneous Settings Gateway 192 168 1 1 Primary DNS 192 168 1 1 Secondary DNS Step 7 set the time zone We chose Asia Shanghav Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax Email for Business and Cooperation capbily 163 com 86 20 85261505 Email for Tech Support dev_friendlyarm 163 com B 97 Hh A Complete ARM Solutions riendly Design Development and Manufacturing f MI Expertise on Embedded Linux Android WindowsCE fedora Please select the nearest city in your time zone aipei Asia lt 2 gt Selected city Shanghai Asia east China Beijing Guangdong Shanghai etc Asia Shanghai v v System clock uses UTC tas Step 8 set up the administrator s password 1 e the root s pa
125. or unknown Kernel 2 6 25 14 fc9 1686 SELinux Enabled True SELinux Policy targeted we Ea Sah gt Send Profile Do not send profile Back Finish Step 20 on the login page login as root Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com B 113 R Complete ARM Solutions Design Development and Manufacturing tom cone Wed Mar 25 5 38 AM Input the password we just created for root Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation Email for Tech Support dev_friendlyarm 163 com 114 W Complete ARM Solutions Design Development and Manufacturing tom Ox Mon Mar 23 11 08 AM When login as root the following popup window will show up just click on Continue Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation Email for Tech Support dev_friendlyarm 163 com 115 Complete ARM Solution
126. ort dev_friendlyarm 163 com 154 H ys Complete ARM Solutions Gian Design Development and Manufacturing CARMI E Expertise on Embedded Linux Android WindowsCE 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 Please compile udptalk c There are two executables under opt FriendlyARM mini245 1 examples udptalk one x86 udptalk and the other arm udptalk The make command will generate both Please download arm udptalk to the board the preinstalled Linux doesn t have this In our example the host IP is 192 168 1 108 and the board s IP is 192 168 1 230 Type the following command on your host x86 udptalk 192 168 1 230 2000 192 168 1 108 2000 Type the following command on your board arm udptalk 192 168 1 108 2000 192 168 1 230 2000 You will see the following results Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 155 W Complete ARM Solutions Design Development and Manufacturing root capbily udptalk x86 udptalk x86 udptalk lt dest IP address gt lt dest port gt lt source IP address gt
127. part in any manner or in or on any media to any person without the prior written consent of Guangzhou FriendlyARM Computer Tech Co Ltd including but not limited to e transmission by any method e storage in any medium system or program display in any form e performance hire lease rental or loan Requests for permission to reproduce material from this manual should be addressed to Guangzhou FriendlyARM Computer Tech Co Ltd Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com B 2 1 4 n Complete ARM Solutions riendly Design Development and Manufacturing fot E MI Expertise on Embedded Linux Android WindowsCE Index MS NR CONN ate E tee cic E E AE E E ESAE eb ac ha E A A E A E E E S EEA 1 1 MINI2Z451 BOARD 000 0 c cece cece eecccecccscccsccccccuccccsccscccsccesccesccusccusccscessecsccesccesccusecsceuscesscesscesccusccuscesceuees 7 1 1 1 Mimi2451 Hardware Feature ccc ccccccccccccccscceccccccccceccesccuccescescesccuscescesscescesceeceescescessceseuscs K2 Schemat S ee NT dS POOP NR aE eI Te ee eee 10 1 2 MINI2451 SOFTWARE FEATURE ccccccecccecccccecccucccucccccccsccusccucccusccsscceccesccusccesccsccsccesceuscesseacens 11 L21 Ln Fea
128. plit A 2 gt E Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com E 63 W N 4 SB o2 54 Complete ARM Solutions riendly Design Development and Manufacturing os ERNI Expertise on Embedded Linux Android WindowsCE Besides you can set the alarm clock When it is triggered you will hear a beeping sound which lasts about one minute and the following popup window will show up Click on OK to close the alarm clock 2 5 25 Rotate Screen Click on the rotation icon in the settings tab to enter its interface You can rotate the screen in four directions kl Fotation Hanannaa E l O a The chosen rotation will take effect immediately OB o O Oo N a PTEN R 02i ozs Select the direction you want click on OK you will see the screen rotate Note sometimes you need to reboot Qtopia to see the rotation It is a Qtopia utility and we haven t made any change to it In addition the rotation effect is implemented via Qtopia software and has nothing to do with LCD drivers After rotation you will notice that all Friendly ARM utilities get rotated too We implemented this feature to make our utilities displayed properly with different LCDs Addres
129. r related functions too such as misc_register module_init module_exit and filling the file_operations Structure Program Description Source Code Location opt Friend yARM mini2451 linux 3 6 drivers char Driver Mini2451 leds c Device Type Misc auto generated Device Name dev leds Test Program Source Code Location opt FriendlyARM mini2451 examples leds Test Program Name led c Executable Name Led Test Program s Location in Board Note the LED driver has been compiled into the kernel by default and cannot be loaded via insmod Program Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 3 170 KH Complete ARM Solutions Asin 5 4 2 Button Driver Program Description Source Code Location Mini2451 buttons c Misc dev buttons Driver Device Type Device Name Test Program Source Code Location Test Program Name buttons test c Executable Name buttons Test Program s Location in Board Design Development and Manufacturing Expertise on Embedded Linux Android WindowsCE opt FriendlyARM mini2451 linux 3 6 drivers char auto generated opt FriendlyARM mini2451 examples buttons Note the button driver has been compiled into the kernel by default an
130. ration capbily 163 com Email for Tech Support dev_friendlyarm 163 com E 68 T Og Complete ARM Solutions riendly Design Development and Manufacturing os ERNI Expertise on Embedded Linux Android WindowsCE 2 5 29 Start QtE 4 8 5 In order for users to switch freely and smoothly between different systems we implemented a feature that allows Qtopia 2 2 0 and QtE 4 8 5 to co exist in the same file system In Qtopia 2 2 0 by clicking on a common application icon users will be able to start QtE 4 8 5 After close the QtE 4 8 5 utility users will be able to return to Qtopia 2 2 0 QtE 4 8 5 runs as follows It is a program manager that displays a CoverFlow effect You can drag it left and right and run it by clicking on one of the Covers Path Stroking Zz b Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 69 T a Complete ARM Solutions riendly Design Development and Manufacturing f z MI Expertise on Embedded Linux Android WindowsCE You can exit QtE 4 8 5 by clicking on Exit Embedded Demo and return to Qtopia 2 2 0 Exit Embedded Demo 2 6 Navigate Linux via Commandline Note every Linux fan may need to get familiar with the command line utility All
131. ress Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 172 Complete ARM Solutions Gian Design Development and Manufacturing is f zag MI Expertise on Embedded Linux Android WindowsCE Follow the default options to continue and you will see the following screen Virtual framebuff File View Help Camera Clock Contacts Help B g Music Motes Pictures ewr p oyster Info Tasks Terminal 3 5 5 3 Compile and Run Qtopia 2 2 0 for ARM Please make sure your compiler is arm linux gcc 4 4 3 and platform is Fedora 9 Enter the working directory and type the command below cd opt FriendlyARM mini2451 arm qtopia build all this process takes about 30 minutes mktarget this makes a file system image and will generate target qtopia konq tgz Note build all will automatically compile a complete Qtopia system and the web browser and generate Jpeg GIF PNG image files You can execute build first and then build konq to compile them separately Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email
132. rking support gt evice Drivers gt ile systems gt ernel hacking gt ecurity options gt ee ee o a a U l a l l lt Select gt lt Exit gt lt Help gt Actually you don t need to do anything just select lt Exit gt a configuration file will be generated Then please command make After the compilation is done an image file zImage will be generated under arch arm boot Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 134 H 2g Complete ARM Solutions riendly Design Development and Manufacturing Bis ERNI Expertise on Embedded Linux Android WindowsCE 4 2 Make File System Image Please make sure you have installed the mkyaffs2image tool Enter opt FriendlyARM mini245 1 and execute the following command mkyaffs2image rootfs_qtopia_qt4 rootts_qtopia_qt4 1mg This will compress the whole rootfs gtopia qt4 into a yaffs2 rootfs qtopia_ qt4 1mg file It is the same as the one in images Linux in the shipped CD Download it to your board s NAND Flash Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86
133. rm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 139 i S Complete ARM Solutions riendly Design Development and Manufacturing FRV Expertise on Embedded Linux Android WindowsCE Executable Name Test Program s Location in Board SS Note the LED driver has been compiled into the kernel by default and you cannot load it via insmod Program include lt stdio h gt include lt stdlib h gt include lt unistd h gt include lt sys i1octl h gt int main int argc char argv int on int led_no int fd Check parameters if argc 3 Il sscanf argv 1 d amp led_no 1 Il sscanf argv 2 d amp on 1 Il on lt Q ll on gt 1 Il led_no lt O ll led_no gt 3 fprintf stderr Usage leds led_no OI1 n exit 1 Open dev leds 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 Manipulate led via ioctl and input parameters 1octl fd on led_no Close device close fd return 0 You can compile the program download it and run 5 2 2 User Button Test Program Program Description opt FriendlyARM mini2451 linux 3 6 drivers char Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 W
134. roid WindowsCE 3 1 INSTALL FEDORA QU nicioni a aa aa iaai 92 3 2 BASIC SETTINGS AND SERVICES icicsiceesdanSsavddact cancdondscad ask sows deus gawd veri dace tasdsondGauk sous beuicawetasd dane tashsoudtesages 117 3 2 1 Add User ACCOM rissa ccc daiscicscdsncicsecavceitadavatcbccavabdsedaionadsdcaeatdiudaiccddeddavatesuddswedecdaitaidsadcveddsecaseadiadacde alls 3 2 2 Access Windows FUleS ccccccceccesccecceccesccecceccesccucceccescescceccesceuccescescesceescscescesccescescessescans 121 3 3 SETUP CROSS COMPILE ENVIRONMENT 0 csccccsecccsscccscccsscccscccscccssccssceuscccsscenscceusccessceescenseeees 126 3 4 UNCOMPRESS SOURCE CODE AND INSTALL APPLICATION UTILITIES cccccsecceccceccceceeeceues 128 3 4 1 Uncompress Source Code vgs sacedsecectetsdicetsineesetiivtieetsdtessdsdsieindeeeeleidieeeeedeleddiee eden 129 3 4 2 Create Target File yy SOG INN ss oieacc ita cecotncaceraiatacecouncaceceiatacecotncacecsintacecouncacecsitacecounerenceiataceeouncneasdees 13 3 4 3 Install UHHtICS icc eis sesso scence aa a ead case a a dacdain eee basa laud cee ace adada eia 132 4 MAKE LINUX KERNEL AND FILE SYSTEM 0 0 0 ccccscccecccecccucccsccesccesccuscccccusceuscesccesccesccusccscesscetscensenecens 134 4 1 COMPILE LINUX KERNEL 2 00 cece cecceecccecccecccccccccucccucccsccesccesccusccusccuscesccesccusccusecesccuseesscascensceesceues 134 4 2 MAKE FILE SYSTEM MAGE nc coesoes
135. rs can set up programs that will be automatically run on system startup in the boot script It is similar to Window s Autobat It is under the etc init d rcS directory the contents are as follows they may be different in differed systems bin sh PATH sbin bin usr sbin usr bin usr local bin runlevel s prevlevel N umask 022 export PATH runlevel prevlevel Trap CTRL C amp c only in this shell so we can interrupt subprocesses trap INT QUIT TSTP bin hostname FriendlyARM e proc 1 bin mount n t proc none proc e sys class bin mount n t sysfs none sys e dev tty bin mount t ramfs none dev bin mount n t usbfs none proc bus usb echo sbin mdev gt proc sys kernel hotplug Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 89 Complete ARM Solutions Design Development and Manufacturing Expertise on Embedded Linux Android WindowsCE 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 v
136. rt on the left bottom you will see five sub menus which are the same as Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 41 1 omplete ARM Solutions Design Development and Manufacturing these five pages The FriendlyARM page contains software utilities that are all developed or migrated by us All the other utilities and documents in other pages are Open source E MHAI E Ras Documents IGS LF A D Convert Buttons CMOSHHA SL y d EEPROM GPRSias_5 Fl GPRSIais LEEMA Leo oe we amp LEDs Ping Recorder SMPlayer qt J J otat Qt4 7 0 start USB feist a OENE E Bcd R AD j oo 02 2 5 3 Play MP3 Go to the Application page click on the music icon select an mp3 and click on 4 play 9 Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 42 7 Og Complete ARM Solutions riendly Design Development and Manufacturing ERN Expertise on Embedded Linux Android WindowsCE E Music Playlist Options gt 8
137. rvice etc rc d init d leds It actually runs a led player script After the led player script is run a pipe file led control will be created in the tmp directory Users can change an LED s flashing by setting its parameters echo 0 0 2 gt tmp led control After this command is executed each of the 4 LEDs will be flashing one by one with 0 2 second in between echo 1 0 2 gt tmp led control After this command is executed 4 LEDs will be running one by one with 0 2 second in between Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 8 74 H Complete ARM Solutions riendly Design Development and Manufacturing Op fort E MI Expertise on Embedded Linux Android WindowsCE etc rc d init d leds stop After this command is executed all 4 LEDs will be turned off etc rc d init d leds start After this command is executed all 4 LEDs will be turned on 2 Manipulating a Single LED The bin leds utility can be used to manipulate a single led To launch this utility users need to stop the led player service first etc rc d init d leds stop This command will stop the led player service To get more information for the usage of led you can type the following command root fa
138. ry for the Superboot When you no longer need your SD card for system burning you might want to restore your card to what it was You can do it this way launch SD Flasher exe as an administrator click on scan and ReFormat you will see the following dialog Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 25 W Complete ARM Solutions Design Development and Manufacturing Expertise on Embedded Linux Android WindowsCE Pue EPEE a A eN a FnendlyARM SD Memory Card Fusing Tool Image File to Fuse D superboot superboot 20110511 bin SD Drive s Name Physical Disk Size Label Available J Disk 1 1876M FRIENDLYARM Yes Reports Scanning Found 1 Diskis Designed by FriendlyARM All nights reserved www armi rmet Click on Yes and one moment later click on Scan again you will find your card becomes no available and your card is restored successfully Room 1705 Block A1 Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Tech Support 86 13719442657 Fax 86 20 85261505 Email for Tech Support dev_friendlyarm 163 com SB 26 J Address Sales 86 20 85201025 capbily 163 com Email
139. s 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com P 92 0 Complete ARM Solutions Design Development and Manufacturing Expertise on Embedded Linux Android WindowsCE Welcome to Fedora 9 fnstall or upgrade an existing system Install or upgrade an existing system text mode Rescue installed system Boot from local drive Memory test Press Tab to edit options Automatic boot in 59 seconds Step2 The system will check the installation disk It can be ignored just press Skip to the next step I Disc Found To begin testing the media before installation press OK Choose Skip to skip the media test and start the installation k AIL ib b C I Ta L Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Tech Support dev_friendlyarm 163 com E 93 F Email for Business and Cooperation Complete ARM Solutions Design Development and Manufacturing Expertise on Embedded Linux Android WindowsCE Step3 it enters the graphic interface click on the Next button fedora fedora oe Cega aa Step4 set the installation language In this example we chose the simplified English fedora What language would you like to u
140. s sizeof buttons 0 i if buttonsli current buttons i Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 141 Og Complete ARM Solutions riendly Design Development and Manufacturing NMI Expertise on Embedded Linux Android WindowsCE buttons i current buttons i printf skey d is s count of changed key 7 77 itl buttonsli 0 up down count of changed key j if count of changed key printf w close buttons_fd return 0 You can compile the program download it and run 5 2 3 PWM Buzzer Program Program Description Source Code Location opt FriendlyARM mini2451 linux 3 6 drivers char Driver Test Program Source Code Location Test Program s Location in Board Be Hinclude lt stdio h gt Hinclude lt termios h gt Hinclude lt unistd h gt Hinclude lt stdlib h gt H define PWM IOCTL SET FREQ 1 H define PWM IOCTL STOP 2 H define ESC KEY Oxlb static int getch void struct termios oldt newt int ch Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax
141. s Design Development and Manufacturing Expertise on Embedded Linux Android WindowsCE This session is running as a privileged user Running a session as a privileged user should be avoided for security reasons If possible you should log in as a normal user Continue Below is the interface the user will see after a successful login Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation Email for Tech Support dev_friendlyarm 163 com 116 W Complete ARM Solutions Design Development and Manufacturing rf pplicatic S Places System RA Accessories gt ze root Mon Mar 23 11 10 AM a al Games gt 3 Graphics gt internet gt H Office gt lt T Programming gt E p s A Sound amp video gt System Tools gt G Disk Management Disk Usage Analyzer File Browser Phone Manager Power Statistics Gel SELinux Policy Generation Tool oY SELinux Troubleshooter A System Log G system Monitor 3 2 Basic Settings and Services 3 2 1 Add User Account To create a new user not root account here are the steps Step 1 go to Users and Groups Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website Sales 86 20 8520
142. s Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 64 K Complete ARM Solutions Design Development and Manufacturing By setting auto run you can make Qtopia launch its own or your programs after it boots up It is very similar to what you see in Windows Programs gt Startup Click on the Auto Start Setting icon 1n the FriendlyARM tab oe Hee Be bet epee Program list Status O M Calendar TA O Si world Time PN O voice Notes O music O PM Notes O M Pictures O Hep Designed by FriendiyARM All nights reserved sasi armi nmel C1 AC amara ee HI 4 SEa Eig B S Jisaz Those programs listed are available programs including all Qtopia programs The status column indicates whether a program is set to auto start The status is unique For instance if the Serial Port Assistant 1s checked its status will show Auto Start click on Save a message box will pop up prompting that the net setting has been successfully saved Close this utility reboot the system you will see the Serial Port Assistant is auto run Se ee ae eo eee Program list Status oF Calendar Auto stal O SS world Time O Voic
143. s Voice Motes 8 A R AL ios E aa a oS F a VAIL YS 7S SS SSeS SE OOs RALI 02 50 2 5 24 Time Zone Date Time and Alarm Setting When you get our system the date and time usually might not be accurate You can adjust them by yourself Because the CPU has its own RTC and the board has a backup battery after you adjust the date and time they will be saved To adjust them click on the time zone area at the right bottom of the screen a menu will show up Please select Set time and open the setting interface where you can set parameters such as time Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com P 62 W Complete ARM Solutions Design Development and Manufacturing ae Calculator i Time l1 5 Date Thursday 20 January 2000 Contacts ETE Week starts Sunday Pictures Date format Dh r x m ki nan Today widens VNC Yoice Motes BF Gy A Af Select Clock from the menu Saturday 1 January z000 A PELE B82 j ozs click on Stop Watch to open a stopwatch utility Ei Clock aClock Stop Watch Alarm th X E E nn on AE LILI LILI LILI X r l apii 00 G0 0 z e oo EEDE DR Lap s
144. s a set of software applicable for general internet usage What additional tasks would you like your system to include support for Please select any additional repositories that you want to use for software installation 0 Additional Fedora Software v Fedora h Add additional software repositories Modify repository You can further customize the software selection now or after install via the software management application Customize later Customize now Back gt Next Step 12 configure the server item as follows Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 103 W Complete ARM Solutions Design Development and Manufacturing Ten f fedora Desktop Environments a O Clustering IA Applications DNS Name Server Development Eta FTP Server Legacy Network Server Base System O Mail Server MySQL Database E Network Servers Languages These packages include servers for old network protocols such as rsh and telnet Back gt Next Step 13 begin installation Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guan
145. s will Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 30 H Complete ARM Solutions Design Development and Manufacturing Expertise on Embedded Linux Android WindowsCE prompt that it is updating drivers After Windows updating is done you can continue If your installation is successful there will be an icon on your desktop You can double click on it to run The minitools main window is shown below _ i j yd Download My development board Connected iG Android Welcome to MiniTools an Windows CE USB Flashing Tool for FriendlyARM Boards Efficient and Effective A Linux User bin No OS Development board information Superboot 2451 Version 0 99a 20130814 Settings P i 8 CPU 53C2451 534MHz Enelish chy RAM 128MB g j NAND 256MB SLC ID ECDAI095 About Touch Device 1 wire LCD Type W35 Auto About Quick Boot In the USB download mode clicking on Quick Boot will directly boot the system that exists in the NAND Flash without switching 2 This is convenient for debug and development Note after the system is booted the USB connection will be disconnected 2 3 1 2 Install on Linux We tested installing the Minitools on Fedora
146. sccicceiscesecanscdssceatiauecaasedecdwascadscnanccectucttacacen tad iedantdectdwascddsdeutwsedsabedsadentsesees 157 5 2 8 Thread Programming ccccccccccccccsssssssseseseececccccceeeeeeeaaaasassssseeeeeeecceeeeeeesessaaaaasasseeeeeeeeeeess 157 5 2 9 Pipe Programming Manipulating LED Remotely cccccccccssstssesseeeeeeeeeeeees 159 5 2 10 Hello World with CAF ivieies cdecve sccrscicteaceicesinndiaSetiadiatiubins die swnioeneaistabigadencisdeddedauise dcsisweldsanutudidadeatwieadeadas 163 5 3 SAMPLE LINUX MODULE ces ctrssiet reien EE E eats santas eb ii 165 5 3 1 Souce Code of Hello Module ccc cece ec cecceccesccscceccescescceccscesccescscesccescescesceescescescceseesees 165 5 3 2 Install Hello Modulle ccc ecccccceccecccscceccesccsccescescesccescscesceescscescceccescescesscsceseceseesees 166 5 3 3 Download Hello Module cece ccc ccc ceccecccsccecceccescceccescesccescccesceescscescescescesceescscescesseesees 169 SA SAMPLE LINUX DRIVER senracie E AE OA EON 170 Be TD DI uh ivreecccacesceaciensececacnariceaseedudenccaaecaaniiacateoancnaeicetatanedaandeceeeasGesucaanducucnanitesacacacnavenaseadeteancnaieeeee 170 54 2 Button Driver sanieren een ne EE A A ee ee ere ee ee 171 SSC ONTE OTOA a E E T A ATAA E TA E ATAA TN 171 5 5 1 Uncompress and Install Source Code ccccccceeesssseeseeseeeeeeeeeeseeeeeeseeeseeeeeeeeeeeeeseeeeeees 171
147. se during the installation process 2 gt Chinese Simplified ETEP t Chinese Traditional HRP Croatian Hrvatski Czech Cestina Danish Dansk Dutch Nedernands English English Estonian eesti keel Finnish suomi French Francais German Deutsch Greek EAAnVUKG Gujarati 4 a S i Back mp Next Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 94 7 Complete ARM Solutions oe Design Development and Manufacturing E Expertise on Embedded Linux Android WindowsCE Tiendiy ARM Step5 set the keyboard in this example we chose the U S key board fedora Select the appropriate keyboard for the system i gt Slovak qwerty Slovenian Spanish Swedish Swiss French Swiss French latin1 Swiss German Swiss German latin1 Tamil Inscript Tamil Typewriter Turkish U S English U S International Ukrainian United Kingdom Step 6 configure the network fedora Network Devices Active on Boot Device IPv4 Netmask IPw6 Prefix Hostname Set the hostname O automatically via DHCP manually localhost localdom
148. sssssesseeceeereesssssses 71 2 6 3 Mount USB Drive Portable Hard Disk 0 0 0c ccccessssseecceccceeeeeeeeeaaaaaesseseeeeeeeeceeeeeeeeeaaas 72 20 4 Mount SD Card aos secs shosaswssuinnsaainsstn san setonsossa waa avadelnias a an i idr aii 73 2 6 5 LED TSU assis sacs caso tosstiveda rats eo ataacressyecis res nesion aes abanai etna ens aeshee aces aeedar asta sana esteoennenedoaensaedastateneoses 74 2 6 6 User Button Test ooeeeeeeeeeeessssssssssssrescccreressssssssssssrescceeeresssssssssssssesccteereessssssssssesrescceereessssssss 75 20 7 OU NAN Port OSG sy sicgi a sceacee cece avatasccauieacensiivspacaeovaadsakaitesavaeasees eiiaieatondeasuadcata vada uses EEEE 76 20 5 PWM B zzer Tesi oeron A EE E EE E 71 2 6 9 I2C EEPROM Test 20 0 0 cccccccccssssssseseeeeceecceeeeeeeeessaaasssseeeeeceeeeeeeeeeeeeaaaaaaaesseeeeeeeeceeeeeeeeeaaas 78 2 6 10 AD Conversion TOS scisesisesssissssnnesiasisaccenvensvsxxesisassin ssa asisavhant delvnivassssusssqesee sosnrncudbouessessssayseessusddnnnicds 79 2 6 11 Ethernet Configuration 0 eoeoesesssereccceeerrsssssssssssesesscecererssssesssssesrsecceererssessssssseseeeceeereessssssss 79 2 6 12 Configure MAC Address ccc ccesessssssseecccccccceeeeececaaaasseeseeeeeeeccceeeeeeeecaaaaasaesseeeeeeeeeeeeeeeeeeaaas 82 2 6 13 Telnet os sagsscaatosesocet onaaeatoearsaeeaiveatacssaennvonacetnainiaesipasasatoeas eet ieanasaieeianatiasetnostacenacsaoesaeutne
149. ssword root is the super user It should be at least 6 characters Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 98 Tl Complete ARM Solutions riendly Design Development and Manufacturing ARM JA Ee olge the system Enter a password for the root g The root account is used for administering user Root Password s Confirm i 4a Back gt Next Step 9 disk partition We followed the default option Before do this please back up disk data Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 99 F a Complete ARM Solutions riendly Design Development and Manufacturing f zg MI Expertise on Embedded Linux Android WindowsCE f fedora Installation requires partitioning of your hard drive By default a partitioning layout is chosen which is reasonable for most users You can either choose to use this or create your own Remove Linux partitions on selected drives and creat
150. t and Manufacturing 3 lM Expertise on Embedded Linux Android WindowsCE if FD_ISSET CommFd amp ReadSetFD while read CommFd amp Char 1 1 WaitFdWriteable TtyFd if write TtyFd amp Char 1 lt 0 Error strerror errno if OutputToStdout if UseColor fwrite xlb 01 34m 1 8 stdout OutputStdChar stdout if UseColor fwrite xlb 00m 1 8 stdout tt lush stdout j 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 xlb 01 3lm 1 8 stderr OutputStdChar stderr if UseColor fwrite xlb 00m 1 8 stderr fflush stderr if Char xlb EscKeyCount if EscKeyCount gt 3 goto ExitLabel else EscKeyCount 0 ExitLabel Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 152 H Og Complete ARM Solutions riendly Design Development and Manufacturing NI Expertise on Embedded Linux Android WindowsCE if tcsetattr TtyFd TCSANOW amp BackupTtyAttr lt 0
151. t green on the board gt Connect an LCD touch screen if the user has one to the LCD interface on the board following the data bus arrow 2 1 3 Setting up HyperTerminal Note some users attempt to expand the board s serial ports by using a USB to serial port cable Sometimes this operation would cause error codes This might be an indication that the cable doesn t work Most of our agents have these conversion cables for sale Users can contact them In addition we strongly recommend users to use our shipped crossover serial cable Other serial cables might not work properly To connect the Mini2451 board to a host PC via a serial cable you should use a simulation terminal There are many tools available A most widely used one is the MS Windows super terminal In Windows9x you need to install it by checking that option during installation Windows2000 and later A common Linux desktop version has a similar terminal too and it is minicom It is a command line utility which may not be easy for beginners Interested users can search the internet for more resources Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com B 17 HW Complete ARM Solutions Design Development and Manufacturing Expert
152. terminal Support for binding and unbinding console drivers fdev kmem virtual device support LED Support for Mini2440 002440 GPIO LEDs Mini2446 002448 module sample Buttons driver for FriendlLyARM Mini2440 002440 development bo Buzzer driver for FriendLlLyARM Mini24460 002440 development boa ADC driver for FriendLyARM Mini2440 002440 development boards Non standard serial port support Serial drivers gt lt Exit gt lt Help gt Step2 the previous step still cannot include it into the kernel when compiling You need to linkthe kernel configuration to the source code in makefile Open lnux 2 6 32 2 drivers char Makefile add the marked line shown below save and exit Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 167 H Complete ARM Solutions Design Development and Manufacturing File Edit View Terminal Tabs Help ob S CONFIG IPMI HANDLER ipmi ob S CONFIG HANGCHECK TIMER hangcheck timer o ob S CONFIG TCG TPM tpm ob S CONFIG PS3 FLASH ps3flash o ob S CONFIG JS RTC js rtc o js rtc y rtc o obj CONFIG LEDS MINI2440 mini2440 leds o obj CONFIG MINI2440 HELLO MODULE mini2440 hello module o obj CONFIG MINI2440 BUTTONS mini2446 bu
153. the Add User button type the user name and password Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com B 119 R Complete ARM Solutions Design Development and Manufacturing Expertise on Embedded Linux Android WindowsCE Create New User User Name plg Full Name plg Password babii Confirm Password EERER Legin Shell Join bash vV Create home directory Home Directory home plg si Create a private group for the user _ Specify user ID manually C Specify group ID manually 9 Cancel 30K Click on OK you will see that a new plg user has been created and a plg directory has been created in the home directory too User Manager File Edit Help a Add User Add Group elet Refresh Help Search filter Appl Users Groups UserName UserID v Primary Group Full Name Logir Shell Home Dire plg 501 501 plg bin jbash home plg Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech
154. the LCD 1v3 INOW Sy PE Step4 after system burning is done you will hear two continuous beepings and the LCD will show the burning status Switch S2 to the Nand Flash side reboot the system you will see Linux loading Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com E 38 W Complete ARM Solutions Design Development and Manufacturing Expertise on Embedded Linux Android WindowsCE If you are running Linux for the first time you will see the following calibration screen neaiy4yARA Enhanced calibration utility Touch crosshair to calibrate TouchDevice dev touchscreen lwire Click on follow it till the end position and Linux will resume Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 39 F a Complete ARM Solutions riendly Design Development and Manufacturing ft MI yr Expertise on Embedded Linux Android WindowsCE 2 5 Navigate Linux The Linux image we prepare for the Mini2451 includes Qtopia2 2
155. ttons o obj CONFIG MINI2440 BUZZER mini2446 pwm o obj CONFIG MINI2446 ADC mini2446 adc o Files generated that shall be removed upon make clean clean files consolemap deftbl c defkeymap c quiet cmd conmk CONMK a cmd conmk scripts conmakehash lt gt ob consolemap deftbl c src FONTMAPFILE Step3 go back to the linux 2 6 32 2 source code directory run make modules a mini2451_hello_module ko module will be generated Prior to executing make modules you need to run make zImage This only needs to be run once root tom opt FriendlyARM mini2440 linux 2 6 29 File Edit MWew Terminal Tabs Help make 1 incLude asm arm mach types h is up to date CHK incLude Linux utsreLease h SYMLINK incLlLude asm gt incLude asm arm scripts checksyscaLLls sh 1097 2 warning warning syscall fadvise64 not implemented 1265 2 warning warning syscall migrate pages not implemented 1321 2 warning warning syscall pselect6 not implemented 1325 2 warning warning syscall ppoLll not implemented 1365 2 warning warning syscall epoll pwait not implemented cc M drivers char mini2440 hello module oa cc M drivers scsi scsi wait scan o Building modules stage 2 MODPOST 2 modules drivers char mini24460 hello module mod o drivers char mini2440 hello module ko drivers scsi scsl wait scan mod oa drivers scsi scsi wait scan koa root tom Linux 2 6 29 ls drivers char mini2440 hell
156. u will see the writing process ILFfEEPROM Testing ang long ago there lived a king He loved horses Une day he asked an artist to draw him a beautiful horse The artist hs id ote Read EEPROM Data via IC Writing About Close A R AD ozo Click on Read EEPROM Data via IIC you will see the reading process ICVEEPROM Testing ne a ni i Write Data below into EEPROM via IE ong long ago there lived a I ADERI EEPROMi E king He loved horses Une day he asked an artist to draw him 4 3 a beautiful horse The artist oge said LEDNA o Read EEFR OM Data via IC USB Fast i Da sng Status Ck About Close tE BAB 52 SEs a R B ke 2 5 15 PWM Buzzer Test Go to the FriendlyARM tab and click on the PWM Buzzer Testing icon to open the interface By default the output frequency of PWM is 1000Hz Click on the Start Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 50 H 2 Complete ARM Solutions Gian Design Development and Manufacturing lM Expertise on Embedded Linux Android WindowsCE button the buzzer will beep Clicking on the or button will change its frequency a
157. w there is an LED which is green indicating the board is connected successfully On the left bottom there is a button which can start your board directly without switching to NAND Before install systems please select the system you want to install e g Linux then its configuration will be presented as follows Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com E 33 Complete ARM Solutions Design Development and Manufacturing Download My development board Flash options Connected _ Low format flash _ Skip cali ifa Android Select the tiles for flash your board Location images path Selectall Invert Selection ae Windows CE C Linux BootLoader a Linux Kernel amp User bin No OS Settings Kernel Command_Line English P About F Linux Ramdisk C Linux RootFs C E Information Clear chattel Board connected S3C2451 534MHz 128MB 256MB SLC ID ECDA1095 1 wire W35 Auto v1 5a build130912 You can just click on the images button to select an images directory which contains complete installation files for all systems and the Minitools will show all the info listed in the FriendlyARM 1n1
158. ww arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com B 91 Wl Og Complete ARM Solutions Gian Design Development and Manufacturing CARM E Expertise on Embedded Linux Android WindowsCE 3 Set up Fedora 9 0 Development Environment This section will guide you through the steps on how to install Fedora 9 0 on a PC and set up your Linux development environment All our software development and testing for the Mini2451 were based on Fedora 9 0 We didn t test it on other platforms We strongly suggest you use this platform as we do which you can download from its website tp download fedora redhat com pub fedora linux releases 9 Fedora i386 iso Fedora 9 1386 DVD 1so The reason why we chose Fedora 9 0 is that later versions such as Fedora 14 Ubuntul2 don t support development work with Qtopia2 2 0 and are more complicated and therefore may not be easy for beginners Fedora 8 and earlier versions are a little bit obsolete Please follow the steps below to install 3 1 Install Fedora 9 0 Stepl Insert the first disk in the CDROM DVD set the boot sequence to CDROM in the BIOS After reboot the system it will prompt the user to the following interface just press enter Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sale
159. x 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 109 W Complete ARM Solutions Design Development and Manufacturing Expertise on Embedded Linux Android WindowsCE proi Create User Information It is recommended that you create a usemame for regular non BED sigs st administrative use of your system To create a system username Date and Time please provide the information requested below Hardware Profile Username Full Name Password Confirm Password It is highly recommended that a personal user ros or NIS account be created If you continue without an account you can only log in with the root account which is reserved for administrative use only Use Network Login Continue Create account Back gt Forward Step18 setup date and time We ignored this and went to the next step Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 110 W Complete ARM Solutions Design Development and Manufacturing Expertise on Embedded Linux Android WindowsCE Welcome ieee Date and Time Information Create User
160. xi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 35 W Complete ARM Solutions Design Development and Manufacturing Expertise on Embedded Linux Android WindowsCE f My development board Flash options Connected Low format flash 1 Skip cali ings Android Select the files for flash your board ae Windows CE iw Linux BootLoader Mmntfa yang 2451 iso Mini2451 images Superboot245 1 bin Linux User bin No OS Linux Kernel Mmint ta yang 2451 iso Mini2451 images Linux zlmage settings Kemel CommandLine ee at root dev midblock2 rootfstype yaffs2 init linuxre console ttySACO0 115200 About Linux Ramdisk Linux RootFs mint fa yang 2451 iso Mini2451 images Linux rootfs_qtopia_qt4 img Information Clear Installing bootloader succeed send File completed Waitting Installing kernel Installing kernel succeed Send File completed Waitting Updating Linux Command Line Linux Command Line Saved j p Flashing Linux RootFs Step4 4 x Attalia k Board connected 5302451 534MHz 128MB 256MB SLC ID ECDA1095 1 wire W35 Auto v1 54 build130912 After installation is done you can boot your board and enter your system Note sometime users complai
161. y Design Development and Manufacturing fh Expertise on Embedded Linux Android WindowsCE E Calculator Scientific Conversion Fraction Scientific simple 2 5 8 Terminal Go to Applications click on the terminal icon and you will be able to type Linux commands Terminal Ej Font Options owe amp ls bir opt gtopia sd info wpne sys dey Proc opla sd pnez Ap ete gtopia calc pnz Seep ad ater Sere touch prz hone gtopia fa pnz rod touch pmz lik qiopia Aainapns shin usr Linuerc a OP sa en per ene gde ar War Ant E gtopia p hoto pnz start png ll ed kal R 6 22 goa 2 5 9 File Manager Go to FriendlyARM click on the file manager icon and you will see your system s Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com E 46 W Complete ARM Solutions riendly Design Development and Manufacturing RNV Expertise on Embedded Linux Android WindowsCE file structure Hiehtarnrager Dir Sort SeAxkh amp Ue Pu cebu Bont 288B 2010 05 26 prac OB 1970 01 01 Froot 5766 2000 01 01 sbin 26K 2010 04 08 Ssdcard 4 0K 1970 01 01 sys OB 1970 01 01 Simp OB 2000 01 01 usr 4166 2010 05 26 Sjvar OB 2000 01 01 Sw 6646 2010 04 08
162. your SD card is functioning If there are no output messages from your serial port it may indicate your burning was not successful The following cases could result in this failure 1 You might use a notebook and the notebook s the card reader might not work We suggest using an external usb card reader 2 You might use a bad SD card We suggest using one whose memory is at least 4G Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Business and Cooperation capbily 163 com Email for Tech Support dev_friendlyarm 163 com 24 HK J Complete ARM Solutions Gian Design Development and Manufacturing fort E MI Expertise on Embedded Linux Android WindowsCE or SDHC 3 You might use an SD card Please use a standard SD card which can be directly connected to your card reader 4 The SD card booting function is integrated in Samsung s chip and the ROM is preinstalled It might not recognize some cards In this case we suggest you try some different cards 5 Poor contact might be another reason In this case you could try a few more times by unplugging and plugging the core board and the base board if your board is a tiny board and unplugging and plugging the SD card 2 2 2 Restore SD Card Note we tested the following steps on Windows7 Using SD Flasher exe will reserve 130M memo
163. yuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support 86 13719442657 Fax 86 20 85261505 Email for Tech Support dev_friendlyarm 163 com 58 H Email for Business and Cooperation capbily 163 com Complete ARM Solutions riendly Design Development and Manufacturing FERNI Expertise on Embedded Linux Android WindowsCE AE Eerste Twist resistor W1 Get the RESUL Tap screen Drop off AINO Converting Designed by FriendlyARM ee a ee lose Al ng M TeSerned naana aiT on I Haz i A A os 2 5 21 User Button Test Note the user buttons don t have dedicated functions and they are just for testing low level drivers Click on the Buttons icon in the FriendlyARM tab Press down any buttons on the board the corresponding button icons will change to blue release them their icons will change back to grey EHHE Fe PRESS any button s on the board for togting EEPROM lve KB K5 KA os 3 LCDs G B USE H25 SAL alee 4 dank ee 3 Ping r ha F a TE Designed by FriendiyARM x al All nghts reserved www arma rmel Bf y QB ie AL e z 2 5 22 Touch Pen Test To test whether or not a touch pen works properly you can draw a line on the LCD Address Room 1705 Block Al Longyuan Plaza Longkouxi Road Guangzhou China 510640 Website http www arm9 net Sales 86 20 85201025 Tech Support

Download Pdf Manuals

image

Related Search

Related Contents

User Manual (English) - k  User Manual  ビ ジ ネ ス ホ ン に 使 い や す さ の 発 想 。  Fitness  SB-28DX  Viewsonic LED LCD VA926-LED    advertencia - pdf.lowes.com  プロファイル取扱説明書 《注意》  N° 1 Juillet 2005  

Copyright © All rights reserved.
Failed to retrieve file