Home

Incomplete section 1 of user manual. See andahammer.com

image

Contents

1. 299 7 3 configuration and compile U Boot cccceeceeeseeeeeeees 301 7 3 1 configure and compile U Boot ccceccceeseeeeeeeeees 302 7 3 2 programmer put U Boot to the Mini2440 sesoses 303 Chapter VIII of the linux kernel configuration and compile cccceeees 307 8 1 using the default kernel configuration file cccceeeeeeeeeees 307 8 1 1 extract the kernel source code ccc eecceseeceseeeseeeeeeeeeees 307 8 1 2 Loading the default configuration files 008 308 Sls KEGRMEl eee cers aaa aaa aa 309 8 1 4 all Linux driver source code location ecee08 oe 311 Custom linux kernel 8 2 ccccceccsescceeceeeeeneeeees 312 8 2 1 How to Configure CPU Options cceeceeeeeeee ee 313 8 2 2 How to configure the various sizes of LCD driver support ccceees 315 8 2 3 How to configure the Touch Panel sesser 318 8 2 4 How to configure USB mouse and keyboard cccceseeeeeeeeeees 321 8 2 5 how to configure USB support cece eeeseeeeceeeeeeeneeees 324 8 2 6 how to configure the mesh and SMIC Micro USB camera etc 327 8 2 7 how to configure the network card driver CS8900 008 330 8 2 8 How to configure the sound card diver 0ecc00 51H 336 8 2 9 howto configure SD MMC card driver
2. 512H 340 8 2 10 How to configure the LED Criver cccccescccesccceeceeseeeeeneeeeeceeeeneeeeeeeeeeeaees 513H 341 8 2 11 How to configure key Criver ccccscccssecceseeceeeeeeseceeseeeeseeseseeseeeees 514H 342 8 2 12 how to configure serial port driver 06 515H 343 8 2 13 how to configure the RTC Real Time Clock driver 516H 344 8 2 14 how to configure file system Support yaffS cccceeeeees 517H 345 8 2 15 how to configure EXT2 VFAT NFS file system etc 000 518H 347 8 3 vaffs root file system image production 0006 352 Chapter IX 21H ceeeceeceeeeee es WinCE Development Guide 6 354 9 1 based development environment WinCES O 006 354 9 1 1 install Platform Builder 5 0 with latest patch 2007 354 Import 9 1 2 installed BSP 06 365 9 1 3 to install wireless card driver nesese 368 Examples of kernel engineering 9 1 4 esessesesscresresssses 371 Oiled EXPO SDKs aoniu 375 9 1 6 installed Embedded Visual C EVC oo cece ee eeeee 381 EVC install patches and 9 1 7 derived SDK 06 387 CE custom kernel 9 1 8 396 9 2 using ActiveSync synchronization with PC communications public 410 9 2 1 install ActiveSync 410 9 2 2 for synchronous communication to install USB d
3. A GPIO E a be 5 Volt Power COMO TTL SOTO a LEE COMO RS232 A D Test fini ULLEPEEL LEEPER iff s EEO v COM1 TTL z Ta Ea 4 E LED M e Py COM2 TTL PERO RRTEES Uae aan Py AT24C 8 a oa nas PWM Buzzer SD Socket 2M 64M 00 ry FE WOR FLASH NAND FLASH id RTC Battery aS USB Host M INGEN Ee te K F Remote e AEG MOM ue tae USB Slave L S pin Microphone USB Host ICED ie lt yi l A d Eai THF as N l Stereo Out i Be OL op NAND lt gt NOR JTAG System User NAND NOR Bus Buttons Remote 1 1 2 MINI2440 features and hardware resources Processor Samsung S3C2440A 400MHz Max 533Mhz RAM On board 64M SDRAM 32bit data bus clock frequency up to 100MHz FLASH storage 64MBytes Nand Flash 2MBytes Nor Flash with installed BIOS LCD Interface 4 wire Resistive Touch Panel interface 10 bit A D Supports 4 and 16 level gray scale 256 color 4096 color STN LCD screen size from 3 5 inch to 12 1 inch screen resolution up to 1024x768 Support 4 and 16 level gray scale 256 color 64K color True Color TFT LCD screen size from 3 5 inch to 12 1 inch screen resolution to 1024x768 pixels Configuration for the NEC 240x320 3 5 inch TFT true color LCD with Touch Panel Interface and resources 1 10 100M Ethernet RJ 45 interface DM9000 network chip 3 serial ports one configured for RS 232 COMO 1 USB Host 1 USB Slave B type interface 1 SD card sto
4. eee eee 193 4 3 2 through the USB to download to run 2440test 197 4 4 3 put 2440test programmer to Nand Flash running 201 4 5 UCOS2 compiler ANd programmer cseccsseecssceeseceeseeeeeeseeeenss 204 A125 COMIN CE UCOS Z 2 5i 65 itsosdecanen sectors tel E E 204 4 5 2 put uCos2 downloaded to the memory tO run cceeeeeeee eens 206 4 5 3 put uCos2 programmer to Nand Flash running 066 ee 210 4 6 NBOOT compiler and programmer cccesceseeceeeeeeeeees 213 A6 E Compiler NBOOT sis csescehseseisticeaucsbaadennGstasaesbasteee delete 213 4 6 2 put NBOOT programmer to Nand Flash 6 216 Chapter V set up Linux development environment 60 e8ee 219 5 1 Based on Redhat Linux9 0 development environment set up 219 5 1 1 fully graphical installation Redhat9 0 ccccecsesccesseeeeseeeeeees 219 5 1 2 set up cross compiling environment cccceescceeceeeeeeeeees 232 5 1 3 Configure Network File System NFS Services 06 233 5 1 4 your system through NFS cccssecssceeeeeeeseeeeeeeeeees os 234 5 1 5 configured PC Linux ftp Services cccceeecesseees 236 5 1 6 configured PC telnet services ccccceeecceeseeeeees 237 5 1 7 in Redhat add new USELSS ccccscccseeceseeceeceeseeeeeeees 238 Ch
5. 66 2 4 4 Playing VideO nasarnar 67 2 4 5 Photo brOWSer ssesssssesseeseessersersees 68 2A CAlCWIALON nean 68 24 7 Terminal COMMANG aneen eds 69 2 4 8 Network Settings ccccccccsseceseeeeseees 70 DAD PNE TOST oaan eE aOR 71 24107 DOWSE arosa etenin 73 2AN CED TES Ace eae eee 73 2 4 12 EEPROM read and write test cecceeeee 75 2 4 13 PWM control buzzer test 76 2 4 14 touch pen testing ccecceseceeeeeeees 77 2 4 15 bar code SCANNEL ccccseeceseeceeeeeneeeees 78 2 4 16 language SettiINGS cccceeecsssceseeeeees 79 2 4 17 rotating SCFEEN ccecesccseeseesceees 80 2 4 18 Backlight control and brightness adjustment 81 2 5 Linux non graphical interface system testing 81 254 Player MIPS canis aie telat 83 2 5 2 How to run the stay of proceedings s00 83 2 5 3 USB mobile hard disk 08 84 2 5 4 SD CardsS cccceeccees 85 2 5 5 USB camera capture 85 2 5 6 Communicating and sharing documents with a PC 86 2 5 7 How to display remote control via Web camera USB 88 2 5 8 LED Control cceeeceeeeeeees 90 2 5 9 Test panel buttons cece eeee ees 91 2 5 10 2 5 11 2 5 12 2 5 13 2 5 14 2 5 15 2 5 16 2 5 17 2 5 18 25 19 2 5 20 2 5 21 2
6. 1 word or two bytes 16 bits wide and all access is on even numbered addresses The smallest unit read is two bytes According to the schematic the design could use a total of 8 Mbyte of Nor Flash On the SST39V1601 chips A20 and A21 have no connection allowing 2 Mbytes of Nor flash The 64 MByte Nand Flash is only 8 bits wide Again the 16k data and instruction caches allow reasonable speed even if running code from Nand memory Most code is made of loops and sections that repeat Once in cache they run at full 400 MHz speed The Harvard architecture of the ARM9 allows fetching and pipelining instructions and data simultaneously from the two caches giving exceptional performance NAND FLASH VDD33V O U2 K9Fxx08 i 44 LDATA7 43 LDATA6 10K 42 LDATAS RnB 7 41 LDATA4 nFC a 32 LDATA3 CLE 16 31 LDATA2 ALE 17 30 LDATA1 nFWE 18 29 LDATAO nFRE 84 VDD33V 64 19 Q 13 36 za WE C10 0 1uF 1 3 4 Power Supplies 1 8 Volt regulator U14 provision for power control through software VDD33V O Cii one NOR FLASH U10 LADDR1 29 LADDR2 31 LADDR3 33 LADDR4 35 LADDRS 38 LADDRG 40 LADDR7 42 LADDRS 44 LADDRS 30 LADDR10 32 LADDR11 34 LADDR12 36 LADDR13 39 LADDR14 41 LADDR15 43 LADDR16 45 LADDR17 LADDR18 LADDR19 LADDR20 37 LADDR21 LADDR22 28 11 26 12 14 ee AM29LV160DB SST39VF1601 Three regulators are used to generate 3 3V 1 8V and 1 25V 1 25 Volt regulator LDATAO LDATA1
7. Ee 24 Lao DAG SNCS IT ICE sensa aE ENEO EN ee EER 25 LA GPO ronnen en E E O TE 26 1 3 18 CMOS CAMERA 13 19 system CUS INGERAC Ci ci ois casei a E er eaweees 28 Characteristic Soenens rnan S 1 3 LE AEN E A EE N A EE AE 29 1 4 WindowsCE characteristics cccccssecceeeeees 30 Chapter II Mini2440 004 31 2 1 Mini2440 set up and CONNECEL cccceseeceeeeeeeeees 31 2 1 1 Startup Mode SeIECTION ieii ee a 31 2 1 2 External interface connector sssssesseesssessserssreese 31 2 1 3 Setting HyperTerminal cccccccsesceceeseeceeeseessenes 31 2 2 Mini2440 BIOS function and USE eccceesececseeeeceeeeeeeees 35 2 3 1 boot into BIOS MOE 22 0 0 cc cece sececsccecscscscsccectcecscececssaccectaeceeecs 35 222 stall OSB OTIVG seus a OAN 36 2 3 3 Function description Main Menu cccccseececeseeeeenees 39 2 2 4 Zoning submenu FUNCTION noeeesesisceeinraria 42 2 2 5 set Linux boot parameters sub menu function 45 2 3 System test of Mini2440 resources 066 49 Download 2 3 1 to run testing procedures 49 2 3 2 external resources tO test cececcceeceeeceeceesseeeeeeeees 55 2 4 Qtopia graphical interface for Linux 62 24 1 Touch Panel Calibration escerai tive wes 64 2 4 2 The main interface sninn 65 243 WIPS PIAVER weiner ihe tee ae
8. 0 I C signal pin to an AT24C08 EEPROM with a capacity of 256 byte This is mainly used to test the I7C bus and I C code 1 3 14 Network Interface The Mini2440 uses a DM9000 10 100M LAN chip with network transformers and an RJ 45 connector Ordinary Cat5e cable can connect from the Mini2440 to your routers or switches Note Each Mini2440 s network MAC address is the same and can be configured by software See section 2 4 for Linux WinCE users refer to the BSP for the DM9000 driver code and the registry file platform reg VDD33V R16 1K HR911103A 1 3 15 Audio Interface The 3C2440 s built in 12S bus interface is directly connected to an external 8 16 bit stereo CODEC The Mini2440 to adopt Based on the IS bus UDA1341 audio decoder chip implementation system the chip initializes internal registers and settings are taken L3 bus with bus connection control of the implementation where we have used a Samsung design of public board respectively using the CPU s GPB2 GPB3 GPB4 port analog implementation of the L3 Bus specification L MODE L3DATA L3CLOCK their initialization End after UDA1341 are no longer useful so these three line of control can also use an ordinary single chip analog implementation The output of audio systems for the development of on board common aperture 3 5mm socket input is divided into two roads all the way for the onboard MAK Grams of the wind and the other road through the 2 0mm socket CON10
9. 2440 has a total of 6 user test buttons connected directly to the CPU interrupt pins The active low signals are held high by 10K resistors R17 R22 Connector 12 has the same 6 user button signals with ground and VDD 3 3V No external pull up is needed Pins 1 6 on Connector 12 are defined as K1 through K6 to match the on board buttons You can use more than one switch on each line The 6 user buttons correspond to external interrupts EINT8 EINT11 EINT13 EINT14 EINT15 EINT19 and depending on resister settings can also be set to GPIO GPGO GPG3 GPG5 GPG6 GPG7 GPG11 or nSS1 SPIMISO1 SPIMOSI1 SPICLK1 TCLK1 The Connector 12 functions are determined by Port G See the 3C2440 Data Sheet for Port G details Port G Control 10xx 101010xx 10xxxx10 11xx 111111xx 11xxxx11 OOxx 000000xx 00xxxx00 in Register gt O01xx 010101xx 01xxxx01 out Con12 1 EINT8 GPGO Con12 2 EINT11 nSS1 GPG3 Con12 3 EINT13 SPI MISO1 GPG5 Con12 4 EINT14 SPI MOSI1 GPG6 Con12 5 EINT15 SPI CLK1 GPG7 Con12 6 EINT19 TCLK1 GPG11 Con12 7 Vdd 3 3V Coni2 8 GND VDD33V Q EINT11 EINT19 GND VDD33V EINT13 EINT11 EINT19 GPG11 EINT15 GPG7 EINT14 GPGG EINT13 GPG5 EINT11 GPG3 EINT8 GPGO 4 7 67 24 147 37 2 1 1 3 8 A D input test The Mini2440 has an 8 channel 10 bit A D converter with sample and hold When a touchpad is used 4 channels are dedicated to touch pad conversion The other 4 are general purpose and are on connector 4 GPIO
10. 5 22 2 5 23 2 5 24 2 6 2 6 1 2 6 2 2 6 3 2 6 4 2 6 5 2 6 6 2 6 7 2 6 8 2 6 9 2 6 10 2 6 11 2 6 12 2 6 13 2 6 14 2 6 15 2 6 16 2 2 7 1 2 7 2 2 7 3 2 7 4 Serial Port 2 and 3 teSt ceeeeeeee 92 LESt DUZZ Oh orea S 94 Control of LCD backlight 94 test I2C EEPROM 066 95 use telnet on the DbS ceeeeeee eee 96 How do set up network to access the Internet web sit 98 Setting the MAC Address 4 100 How to use Telnet remote log Mini2440 eones 103 File transfers with FTP cccceseeeeee 103 through the website control panel LED cccecceecceeeceeseeeees 104 How to use the network file system mounted NFS 0000008 105 Save settings and real time clock system 106 How to Power down save data to Flash 106 How to set boot auto run programs 107 How to use the screenshot command 108 pre installed on WindowsCE functions and external resources to test 109 TES DUGCUOM secrete ticaciiete note a nals a 110 EDIE G esarcrearangen erences tenons ae pase T enemas 111 Rotating the SCrEEN testasin a A 112 Serial COMMUNICATION TEST aise a S 112 HOW to use the USB ciweis cocesn iad dnn e whaseateextariesen 114 How to use the SD MMC card ou se eee eeeeneeceeee caueecesceeeeenees 115 t
11. DR 29 0 Ox0o00 Gani je Ar ibi ACCS SIDE SROM SROM ne Ragen imGES3 inGCS3 SROM SROM ac Ox1000 0000 pe SROM SROM Oxoso00 OOo en SROM 128 MB ingeS0 Boot Internal SRAM 4KB oxooo00 Aiga fe Not using NAND flash for boot ROM Using NAND flash for boot ROM When the NOR NAND switch is in the NOR position the system conforms to the memory map on the left In the NAND position the The 3C2440 uses the memory map on the right SFR Area for special control register addresses The following are the device address space allocations and the definition of the chip select signals The nGCSO chip select space is different depending onstart up mode In NAND Flash boot mode the internal 4K Bytes BootSram is mapped to nGCSO Space In Nor Flash start mode non Nand Flash Boot Mode nGSCO is connected to external memory Nor Flash has been mapped to the chip select space nGCSO The 64 MByte SDRAM address space is Ox30000000 to 0x34000000 1 3 2 SDRAM storage systems The Mini2440 uses two external 32MByte SDRAMs for a total of 64M bytes of SDRAM memory which together form a 100 MHz 32 bit data bus RAM With its 16K each of data and instruction cache running at over 400 MHz the whole system performs much as if it had 400 MHz external buses Here is the SDRAM portion of the schematic LADDR2 LADDR3 LADDR4 LADDR5 LADDR6 LADDR7 LADDRS LADDR9 LADDR10 LADDR11 LADDR12 LADDR13 LADDR14 LADDR24 LADDR25 LnWBEO
12. Incomplete section 1 of user manual See andahammer com downloads page for the latest manuals 1 1 MINI ZAAO irra 10 1 1 1 MINI2Z440 appearance ccccccsccssccesceeseeeeeeeeneeeaeees 10 1 1 2 MINI2440 features hardware resources c 008 11 1 1 3 CD ROM resources that users ccccceseeeeneeeeeeeeees 12 1 2 Interface layout and jUMper ssssssssssseesssssssseessrrrssesssresse 12 1 2 1 JUIMPO FIDESCHOUION sarr E E E 13 1 2 2 intertace Layout acin a a sees 13 1 3 Interface description resources ccsecccceeeecceseeceeeeeeeaeenes 13 1 3 1 address space allocation and the definition of chip select signal 14 1 3 2 SDRAM storage systems sescciiccecsccsccctscscestesceonceaausents minn iien a earned eee 15 1 3 3 FLASH Strage Syste MS eanna E 15 1 3 4 Power Supply System and Interface cccccccseseecceeeecesesceeescesseeeseaeeseees 16 1335 SV SCI RESET enera E A 18 1 3 6 User CED oniranran a A eusen ane ues 18 1 3 7 U erT COM a a a er re ee 19 S ADNI TE E iae a a used euaduciaeehehaneaoran 19 1 3 9 PWM control DuUZZEr aan an E E E N a 20 MS NO Seral PON orea a ted tueewaaantaaut 20 TOLE USBInterice nanoa a a a EA 21 T1 LCDinterldcen sinare a a a a NA 22 T FEPROM eroaa a AEO 23 1 314 Network Inter ace 06 its ee r T he ees 23 T15 Avdio INTC MACS ccc ats cccdacescoaponeaesutootienaceds
13. LDATA2 LDATA3 LDATA4 LDATAS LDATAG LDATA7 LDATAS LDATAS LDATA10 LDATA11 LDATA12 LDATA13 LDATA14 LDATA15 VDD33V Q LnOE LnWeE VDD33V nGCSo Q R7 nRESET 10K R69 1 OK2 0 The Mini2440 s power supply system is rather simple and requires an external 5V power supply Please note The Mini2440 is not designed for handheld mobile devices so it does not have full power management circuitry The S1 DIP switch controls the system power and there is no VDD1 25V O C13 C43 10uF 10V 104 R31 Most installations eventually need a power connection more permanent than a simple barrel jack CON8 should be used to supply the 5V power This 2 0mm pitch single row socket needs 5V on each outside pin and both inner pins are GND Note that the two input voltages are not connected VDDIN powers the on board parts through the regulators VDD5V goes to CONS the system bus expansion connector S1 CONS 1 3 5 System Reset The Mini2440 conditions reset with the MAX811 reset chip to provide a clean low level reset to the CPU nRESET 1 3 6 User LED LEDs are commonly used for status indication The Mini2440 has four user programmable LEDs They are connected to the 3C2440 GPIO lines and are active low light on when signal is low LED1 LED2 LED3 LED4 GPB5 GPB6 GPB7 GPB8 1 3 7 User buttons or keys The user buttons are controlled by Port G which can be used to assign several functions to the pins The Mini
14. La WBEI1 LSCKE LSCLKO 1 3 3 FLASH storage systems wWwWINININ Led bed OO AW fe be gt L E AO Al A2 A3 A4 AS A6 A7 AS A9 wv v v NO de 2 N m Vail Wik 36 HY57V561620 32MB NJ jmo DAA k AA CDT AAAA AY AA AN k V pt 0 o DE LDATAO LDATAI LDATA2 LDATA3 LDATA4 LDATAS5 LDATA6 LDATA7 LDATAS LDATA9 LDATAI0 LDATAI1 LDATAI12 LDATAI13 LDATAI4 LDATAI5 LaSCSO LaSRAS LaSCAS LaWE VDD33V Q LADDR2 LADDR3 LADDR4 LADDR5 LADDR6 LADDR7 LADDRS LADDR9 LADDR10 LADDR11 LADDR12 LADDR13 LADDR14 LADDR24 LADDR25 LnWBE2 LnWBE3 LSCKE LSCLKI1 Pre Ld Lied Led Led Lie OO AIM 12 tao Lo gt iS iS gt WIWIN wv jv DJIN 4 bo N Nite o V V a ol 7 AO Al A2 A3 A4 AS A6 A7 AS A9 g AQ V i i f v A A A AAA A OQ YT Woo Mle 1O EVE Ve VEY k HY57V561620 32MB LDATA16 LDATA17 LDATA18 LDATA19 LDATA20 LDATA21 LDATA22 LDATA23 LDATA24 LDATA25 LDATA26 LDATA27 LDATA28 LDATA29 LDATA30 LDATA31 LaSCSO LoaSRAS LaSCAS LaWE VDD33V The Mini2440 has two kinds of Flash one is the 2MByte Nor Flash model SST39VF1601 The other is the 64 MByte Nand Flash model K9F1208 The S3C2440 supports starting from either Flash The slide switch S2 chooses Nand or Nor The Nor Flash uses A1 A22 for a total of 22 address lines Why not AO Because the memory is
15. ONING cccecceeseceeeeeeeees 472 2 2 2 t restore BIOS credete neice 473 Linux kernel programmer 3 2 3 ccccecceeseceeeeeees 475 3 2 4 programmer yaffs based on the root file system 477 Restart the system 3 2 5 cceccecccseeceseeeeeeeees 479 3 3 INStalled WINCE scinni 479 Nand Flasn On 3 3 1 ZONING osorioi 480 33 2 tOre tore BIO Sse cesdxcnscctsnanaadaedaadeaadaduass ones danse mens 481 3 5 5 proerammer EDOOL moniaita mieaincsede 482 Wince kernel programmer 3 3 4 cccccseecesscceeeeeeeeeneeeees 483 Appendix 3 using SJF2440 programmer BIOS cceeeeee ee 487 1 installed driver GIVEIO cc eeccceeceeseceeeeeseceeeeeees 487 2 use SJF2440 programmer BIOS ccccsecseeeeeeeees 493 MINI2440 Introduction About 1 1 MINI2440 The mini2440 is a practical low cost ARM9 Single Board Computer SBC with a very high performance cost ratio With the Samsung 3C2440 microprocessor and the use of professional layout and quality peripheral chips it is very robust The Mini2440 uses a four layer board with gold immersion processing and has high quality equal length bus routing in timing critical areas The production environment and quality control are the same as those of modern high speed motherboards 1 1 1 MINI2440 Component Side CMOS LCD Connector LCD Voltage Camera RESET Power Switch a oe ae mini2440 i AANA BE 4 oh
16. Pins 5 6 7 8 are AINO AIN1 AIN2 AIN3 AINO is connected to a pot on the PCB for testing If you need AINO remove the pot or cut the trace from the pot center pin to pind of CON4 The trace is on the bottom of the PCB with quite a bit of free space around it VDD33V Wi 10K AINO 3 1 3 9 PWM Control buzzer The Mini2440 has a small buzzer which can be controlled somewhat through PWM The signal is from GPIO pin 31 GPBO VDD5V 1 3 10 Serial The Samsung S3C2440 chip supports three serial ports UARTO UART1 UART2 Each has a connector with TTL level signals and also connects to CON4 the GPIO connector UARTO also has TTL to RS 232 conversion and uses the COMO DB9 connector to work with any RS232 device COMO boots at 115 000 BAUD N O 1 and is fully supported by Linux and WinCE 7 N ae 2 O O O O O O aalala afaale x X Q Z x XxX Q Z I gt O k C gt O 1 3 11 USB interface The Mini2440 has two USB interfaces A USB Host like an ordinary PC s USB interface can be used with a USB camera keyboard mouse wifi dongle etc The USB Slave is the smaller squarish connector like you find on printers and is generally used to download to the target board When the Mini2440 is running WinCE it can ActiveSync software with Windows When the Mini2440 is running a Linux system there is no corresponding driver and application Ethernet is usually preferred for data transfer in Linux The USB Slave can be contr
17. apter VI of Embedded Linux Application Development Getting Started Guide 240 6 1 Helo Word een aAA 240 6 1 1 Hello World source code essssssssssssssersesssssere 240 6 1 2 compiler Hello World ccccccececseeeeseeeeeeeees 240 6 1 3 put Hello World downloaded to the Mini2440 to run 240 6 2 Introduction to Embedded Linux Development 66068 244 6 2 1 LED test procedure ccccccseceeseeeeeeeeeeees 244 B22 MCSE DULCOIM irrar TA 245 6 2 3 UDP network programming ccceseeceeseees 247 6 2 4 Examples of math library calls neseser 252 6 2 5 Thread programming examples ccccccesceseeeeeeees 253 6 2 6 Examples of application programming pipeline 06 255 6 2 7 Based on C The Hello World cece ee eeee 260 6 3 The most simple embedded Linux driver module 261 6 3 1 Hello Module source code 2 ce eeceececeeesce sense 261 6 3 2 put Hello Module add kernel code tree and compile 262 6 3 3 put Hello Module Download and install the Mini2440 to use 265 6 4 Simple EXa Ml cisassswachacsineedes aasvereeaatsertenc LINUX driver cececeeceeseeeeeee eens 266 Bae LED DRIVER earar tases asec vonnesetasacabaceasian seni turnestaneeana Sen aneaors 266 64 2 KEY GRIVENS mian ci elon terse ene 270 6 5 Embe
18. dded Linux Examples transplantation procedures cccseceeees 276 6 5 1 mp3 player madplay Detailed transplantation process 276 1 set up working directory copy the source code package 0066 277 2 extract the source code package cccsesecesscecesceceeeeeeeeceeeeeees 277 3 rely on the compiler madplay library file cccceeeee 278 4 compiler installed Madplay ccccceseeceseceeseeeeeees 279 5 to test PC version Of Madplay cccceececeeseceeseeeeeeeeeees 282 6 script to build the compiler build X86 esns 282 7 to build and amend the ARM version of the compiler script build arm 283 8 Download madplay to the Mini2440 to run the test 287 Chapter VII of the common bootloader configuration and compiler 289 7 1 configuration and compile vivi ceeecesceceeeeceeececeseeeaeeeeeeees 290 7 1 1 compiler using the default configuration s sssseseessresseessrressessressessresserrserrssesses 290 7 1 2 Configuration vivi start from the Nor Flash cccceeseeee seen 293 7 2 use the ADS compiler YL BIOS s sossssnssusssssssessesserserserseesseee 294 7 2 1 the use of ADS compiler YL BIOS ccceecceeeees 294 7 2 2 put YL BIOS download into memory to run 06 296 7 2 3 programmer YL BIOS to the Mini2440
19. e code including the DM9000 driver all kinds of TFT LCD drivers sound card driver Touch Panel Driver YAFFS source code SD card driver RTC driver serial port expansion drive the USB camera driver USB mouse and keyboard USB drives etc 13 Embedded graphical interface Qtopia source code package Embedded browser source code package 14 Mini2440 schematic diagram PDF format 15 User s manual pdf format 1 2 Interface layout and jumpers 1 2 1 Jumper Description There is only one on board jumper J2 It is used to select the LCD driver board input voltage For NEC3 5 inch LCD set voltage selector for 5V 1 2 2 Interface Layout Mini2440 interface layout is shown in the diagram above An optional cable and connector kit has a cable for every connector and a connector for every cable 1 3 Interface resources This section details each interface or module with pin definitions and occupied CPU resources 1 3 1 address space allocation and the definition of chip select signals The 3C2440 supports two modes Boot from NAND Flash or boot from NOR Flash The boot mode determines the configuration of the memory map as shown in this table OM A1 0 04 10 Boot Internal SRAM 4KB OM 1 0 00 oxhood aaga i SROM SDRAM SROM SDRAM OMBAMBSMB M16MB nGls InGCS PAM BS4M B 28MB SROMSDRAM SROM SDRAM 2MBAMB SMB 16MB inGtls6 inces PAM BAM BA 28MB Oesoo00 Oooo pe SROM SROM a SROM SROM aa nGCS4 inGCs4 rane jo HAD
20. eeseeeeeeeees 145 J2 ZONNE sanace Aa eles eerie eens 145 3 2 2 AStA POCtOAG er T enna esate 147 3 2 3 INStaNWINUX KENMC lixcsecs ese cutest iat oe ckaesSesatnstesdacces 149 3 2 4 to install the root file system ccceccccssceceeseeeeeeeeees 150 3 3 installed WinCE system ccecccesceeseceeeeeeeeceeeeeeeees 153 Seok LONINE aoee O A E 153 5 3 2 install Dootloader nonnene 154 39 NSt CDOOC saa a aA EA 156 3 3 4 install wince kernel image ccccceeceeseeeeeeeeeeeees 157 Downloaded to the memory tO run 3 4 ceeeeecceseeeeseee eens 161 34 1 tunning 244 OUEST ocra NNT 161 34 2 SUMMING UCOSAN 166 34 TUNNINE LINUX nores a seats 171 SAA TUNNINE WINGE serenate Ge eet Sures 174 Chapter IV ADS1 2 use integrated development environment 177 4 1 the use of ADS to create LED Engineering cccccesccsssceeeseeeees 177 AACE SEL Usa OI OCU oen ete senausonns case samo emmeaamueean 177 4 1 2 compile and link the project rnein 182 4 2 the use Of H JTAG debug code 2 0 eeccceeeceeeceeneceeneeteeeeeees 189 4 2 1 forthe H JTAG configuration AXD DEBUGGER ceseeceseeeees 189 4 2 4 the use of H JTAG in ADS1 2 simulation debugging environment 192 4 3 compiler programmer running 2440teSt cccceeeeeeeeeeee 192 4 3 1 Compile and use of H JTAG debug 2440test
21. he use of Windows Media Player to play Mp3 ccceeee 116 How to use the super smooth player SD card playback Mpeg4 movie 117 Ethernet test ee eee eee 117 log in through telnet target board ceccceeceseeceeeceeeee ceeeeeeeeeneees 118 use ftp to send files to the target version cccccescceseceee seeeeeees 119 Webserver testine soriana ieee iiates a r eeoeeds 120 Save Touch Panel Calibration esesscssesee cecceeeceeeeeeeeeees 121 use ActiveSync for USB synchronous COMMUNICATION aesssssesrssreeress 122 Wireless Card TO TES Senma a sisters ccaseceen sans 123 How do set up real time clock ANd SAVE c cece eeceseeee ee secsec 124 H JTAG programmer Express BIOS to the Mini2440 all the process of mouse 125 HATA GAME OG UCONN rone ibeateaaateieianseneeanuaels 125 install and Set UP H STAG cceccceeceeseceeeeeeeeeaeeeeeees 126 Model settings and Flash programmer BIOS 000008 130 Frequently Asked QUESTIONS cccseccesecceeceeneeeeeeeeeceseeseees 136 Chapter III of backup and recovery system and install the update 137 3 1 backup and recovery system cccseecesceeeecesceeeeeeeeeeeeees 137 Std BACKUP Syste Muinoaren ee 137 3 1 2 use the backup file to restore the system 06 142 3 2 installed ON LINUX SYSTEMS cecccescesscceeeceseeeeec
22. mpile Qt Embedded cccccceccceeeseeseeeeeeees 460 H2 2 simulated in the PC running Qtopia cccsseceeeeeeeeees 460 2 3 compiler Hello World sample ccccsesceseseeeneeeees 460 2 4 run a separate Hello World cccccsecesseecsseeeeeeeees 461 2 5 Running Hello World in Qtopia ccccceeeceseeeeeeeees 461 ARM compiler 256H3 the Qtopia platform and Hello World and embedded browser 462 3 1 compile Qt Embedded ccccccceeseeeseceseeeeeeeeees 462 3 2 compiler Hello World sample cccssccseeeeseees 463 3 3 Download Hello World to a target board and run 463 To use their own 260H3 4 compiled Qtopia update the production file system 467 Frequently Asked Questions 4 ccccceceesceeeeeeees 467 262H4 1 the implementation of build errors cceeceee eee 468 Hello 4 2 compile errors ccceeccesceeeeceeseeeeeeeeseees 469 Hello 264H4 3 compile error occurs when the second information 469 in Appendix 2 of the command line using the BIOS update and programmer system 470 1 1 How to enter the BIOS of the command line mode 470 1 1 1 from menu to enter the command line mode 470 Nand Flash in 1 1 2 starts to enter the command line mode 471 2 2 Sta RUX ceai ae T ale teenth sana 471 Nand Flash on 2 2 1 Z
23. olled with a GPC5 register bit to set USB_EN or disable It can be disabled to conserve CPU resources VDD5V R27 15K USB HOST USB Port A type USB HOST SOCKET USB 5V USB_EN 1 R29 o USB Port B type 1 3 12 LCD interface The Mini2440 LCD interface has a 41 Pin 0 5mm pitch white connector which contains common LCD control signals line field scanning the clock enable etc and complete RGB output of 8 8 8 supporting a maximum of 16 million colors The LED backlight can be turned on or off with GPB1 The backlight signal is called LCD_ PWR PWM output and reset signals nRESET one of the backlight control signals is LCD_ PWR In addition pins 37 38 39 40 are for the four wire touch screen interface They can be directly connected to a Touch Panel See figure J2 for the LCD driver board power supply select signal All the currently used LCD controllers use a 5V power supply OlaAlal lt lt OlOl lt lt lt lt lt lt lt lt a lt lt lt lt 2j0jvjr z v 2 0 0 0 0 0 0 0 0 2 0 0 0 0 o lt x 5 Dig IN Niaiaia 4 4 0lg o ainN o 2 2 n al NOO o n a rR 2 POTD DO DOT d Lard Land Lond Lam ad ked n e A Gd ked E a e S C a ad Gan dita sleale eee EEs 3r dlalalalwlol lt clclelelalelel lt elelelelele lt ixXiri aimicioioicioizicicicoicoliclicicliso VIDA PML NIN j a ja jg jajaja INOW z m Yjv jajo j injo iadt 1 3 13 EEPROM The Mini2440 has a direct connection from the 3C244
24. rage interface no size limit 1 Channel Stereo audio output interface 1 Built in microphone 1 Microphone input 1 2 0mm pitch 10 pin JTAG interface 4 USER LEDs 6 USER buttons with connection to GPIO connector and 8 pin user connector 1 buzzer PWM control 1 adjustable resistor for A D test 1 IIC bus AT24C08 chip for IIC Bus Test or configuration data holds 256 bytes 2 0 mm pitch 20PIN camera interface Power Interface 5V with power switch and indicator light System Clock Source Passive crystal Internal real time clock with back up lithium battery Expansion Interface 1 34 pin 2 0mm GPIO interface 1 40 pin 2 0mm system bus interface Size 100 x 100 mm Supported Operating Systems Linux 2 6 29 WindowsCE NET 5 0 6 0 uC OS II 1 1 3 CD ROM resources 1 ADS1 2 Setup 2 H JTAG debugging software programmer 3 Windows Flash programmer software SJF2440 4 Linux Nand Flash programmer software Jflash 2440 with source code 5 Serial tools CRT dnw 6 C language tool chain 7 USB drive WindowXP 2000 under installation 8 vivi source code for Linux The bootloader 9 Test code for LED lights on the board 10 A collection of sample apps that test system I O 11 WindowsCE BSP and sample project files 12 linux development tools and kernel source code package Arm linux gcc 4 3 2 tool chain used for kernel Qtopia 2 2 0 user apps Yaffs file system mapping tool mkyaffsimage Linux 2 6 29 for MINI2440 kernel sourc
25. rivers 415 9 2 3 transfer using ActiveSync synchronization tool to copy files 419 9 2 4 ActiveSync to connect with Platform Builder and implement of communications screenshot 422 9 2 5 use ActiveSync with the Platform Builder online editing the registry 429 EVC s 9 3 create a Hello World and downloaded to the compiler Mini2440 running 430 9 4 create applications VS2005 2008 and downloaded to the compiler Mini2440 running 437 Create PrO t IA Dornie a E A 438 Mini2440 to connect BG ZSCCUNV ES arera A N 440 Download 9 4 3 compiler Mini2440 to run sesssssssesserssesessee 443 9 5 LED driver sample preparation and testing cccseccsseceseeeeeeeees 444 9 5 1 understanding of hardware connection sesssssessseessrsserreseresres 445 9 5 2 LED prepared 24H streaming driver cccseccsscecseceeseeneeeeees 446 9 5 3 put LED driver added to the BSP in order to compile 452 9 5 4 prepare and compile the test application LED 454 LED testing procedures put 247H 9 5 5 added to the core and set up a desktop shortcut 457 Appendix 1 Qt embedded graphics development entry e8cceees 459 H1 Set up development environment ccccecccseseceeseeceeeceeneeeaees 459 H2 Compiled X86 and Qtopia platform Hello World and embedded browser 459 H2 1 co
26. white leads Two way audio input of the driver are different at present only CON10 interface corresponding recording channel can be used please refer to our website update information the two channels of our most Will drive up the end C45 10uF 16V UDA1341TS 10uF 16V VDD33V Incomplete See andahammer com downloads page for the latest updates on translated user manuals

Download Pdf Manuals

image

Related Search

Related Contents

Toshiba GA-1330 Scanner User Manual  Redevance incitative, c`est parti!  GasAlertMicro  ハンドパレットトラック ハンドリフター 足踏み油圧式リフター テーブルリフト  Supermicro P8SGA  Hitachi 60VX500 Projection Television User Manual  User manual - AETA Audio Systems  Bedienungsanleitung    

Copyright © All rights reserved.
Failed to retrieve file