mini2440 7 lcd touch screen factory
The M2440 comes standard with 64MB each of SDRAM and NAND flash, expandable via an SD card slot, along with 2MB of NOR flash. The board has camera and LCD interfaces, and with a built-in 3.5-inch QVGA (320x240) TFT TouchScreen LCD .
WinCE BSP and example project file. Boot up very fast in 5 seconds. Support your own logo pitcture. Note: Latest mini2440 does not support wince5.0 any longer, suggest using wince6.0.
2.7 inch TFT TouchScreen LCD(+10 for a panel around and fix the LCD, +25USD for 8 inch LCD, +55USD for 10inch LCD, +30usd for plastic enclosure, +50usd for aluminum enclosure).3.1 Serial cable
2.4.20 RTC Setup..........................................................................................................................................402.4.21 Non-valitaile Data in Flash................................................................................................................402.4.22 Automatic Script When Power Up......................................................................................................402.4.23 How to do Screen Shoot.....................................................................................................................402.5 WINDOWS CE FUNCTION...............................................................................................................................412.5.1 USB Keyboard Simulation....................................................................................................................412.5.2 LED Test...............................................................................................................................................422.5.3 Screen Rotation....................................................................................................................................432.5.4 COM Debugger....................................................................................................................................442.5.5 Use U-Disk...........................................................................................................................................442.5.6 Use SD/MMC Card..............................................................................................................................452.5.7 Use Windows Media Player.................................................................................................................462.5.8 Use Super Player.................................................................................................................................462.5.9 Ethernet Test.........................................................................................................................................472.5.10 Telnet..................................................................................................................................................472.5.11 Ftp......................................................................................................................................................482.5.12 Web Server..........................................................................................................................................492.5.13 Touch Screen Calibration...................................................................................................................492.5.14 ActiveSync with PC............................................................................................................................512.5.15 Wireless Lan Card Test......................................................................................................................512.6 INSTALL BIOS BY SJF2440...........................................................................................................................532.6.1 Install GIVEIO Driver..........................................................................................................................532.6.2 Burn BIOS............................................................................................................................................533. OS INSTALLATION.........................................................................................................................................553.1 BACKUP AND RESTORE SYSTEM ....................................................................................................................553.2 INSTALL LINUX ..............................................................................................................................................593.2.1 Nand Flash Make Partition..................................................................................................................603.2.2 BIOS Recovery.....................................................................................................................................603.2.3 Install Kernel........................................................................................................................................623.2.4 Install yaffs...........................................................................................................................................633.2.5 Start OS................................................................................................................................................643.3 INSTALL WINCE .............................................................................................................................................643.3.1 Nand Flash Make Partition..................................................................................................................643.3.2 BIOS Recovery.....................................................................................................................................653.3.3 Install EBoot........................................................................................................................................663.3.4 Install Kernel........................................................................................................................................67APPENDIX: OS INSTALLATION BY COMMAND LINE..............................................................................691. HOW TO ENTER COMMAND LINE MODE ............................................................................................................691.1 From BIOS main menu............................................................................................................................691.2 From Nand Flash boot............................................................................................................................69
2. LINUX INSTALLATION ......................................................................................................................................702.1 Nand Flash Make Partition.....................................................................................................................702.2 BIOS Recovery........................................................................................................................................712.3 Install Linux............................................................................................................................................722.4 Install yaffs..............................................................................................................................................732.5 Start OS...................................................................................................................................................743. WINCE INSTALLATION......................................................................................................................................743.1 Nand Flash Make Partition.....................................................................................................................743.2 BIOS Recovery........................................................................................................................................753.3 Install EBoot...........................................................................................................................................763.4 Install Kernel..........................................................................................................................................77
Flash- 64M or 128M Nand Flash,- 2M Nor Flash,BIOS installedLCD- 4 wire resistive touch screen interface- Up to 4096 color STN,3.5 inches to12.1 inches, up to 1024x768 pixels- Up to 64K color TFT,3.5 inches to 12.1 inches, up to1024x768 pixelsInterface and Resource- 1 10/100M Ethernet RJ-45(DM9000)- 3 Serial Port- 1 USB Host- 1 USB Slave Type B- 1 SD Card Interface- 1 Stereo Audio out, 1 Micro In;- 1 20-Pin JTAG- 4 USER LEDs- 6 USER buttons- 1 PWM Beeper- 1 POT can be used for A/D converter adjust- 1 AT24C08 for I2C test- 1 20-Pin Camera Interface- 1 Battery for RTC- Power In(5V), with switch and lampOscillator Frequency- 12MHzRTC- InternalExpand Interface- 1 34-Pin 2.0mm GPIO- 1 40-Pin 2.0mm System BusDimension- 100 x 100(mm)OS Support- Linux 2.6- Android- WinCE 5 and 6
1.2 Hardware Resource1.2.1 Memory Map and Chip SelectionS3C2440 support 2 boot mode: Nand Flash boot and Nor Falsh boot. Memory map and chipselection is different based on different boot mode:For Nand Flash Boot, 4k Bytes BootSram mapped to nGCS0 spaceFor Nor Flash Boot, Nor Flash mapped to nGCS0 spaceSDRAM address space: 0x30000000-0x340000001.2.2 JumpersMINI2440 has 1 Jumper, J2:(1) J2 Power voltage selection for LCD module3,5“ LCD → 5V7,0“ LCD → 5V
1.3 Linux FeaturesVersion- Linux 2.6File system- yaffs- cramfs- Ext2- Fat32- NFSBasic driver(with source code)- 3 serial driver- DM9000 driver- Audio driver- RTC driver- LED driver- USB Host driver- LCD driver- Touch screen driver- USB camera- USB mouse, keyboard, U-disk, mobile-disk- SD Card driverLinux Application- busybox1.2.0- Telnet、 Ftp、 inetd- boa(web server)- madplay- snapshot- ishow- ifconfig、 ping、 routeEmbedded GUI(with source code)- Qt/Embedded
1.4 Windows CE FeaturesVersion- WindowsCE.net 5.0Features- DM9000 driver(source code)- USB keyboard、 USB mouse、 USB disk、 mobile hard disk- 3 serial port COM driver- USB ActiveSync- Audio driver- SD driver- Real time clock- Registry saving- Flash save when power lost- Screen rotatingDefault features(Simplify Chinese)- XP style interface- Windows Media Player 9.0(mp3, mpeg2, mpeg4, wmv, wav)- Super Player- Photo viewer, Note Pad- IE6- ftp,telnet,httpd server- COM debugger
Input “s” to set parameter.How to set mach_typeThe default mach_type is 782. You can change this parameter if you complier your kernel withMACH_TYPE 867.How to set linux command lineLinux_cmd_line is a very often used parameter for kernel startup. Here is an example for how tochange default tty terminal from serial 0 to serial 1:View current parameters:Linux_cmd_line: noinitrd root=/dev/mtdblock2 init=/linuxrc console=ttySAC0Input “s”, and then input “linux_cmd_line”, input “return”, and then input:“noinitrd root=/dev/mtdblock2 init=/linuxrc console=ttySAC1,115200”After parameter successfully saved, linux will startup and logon from serial 1
(3) Save ParameterInput “w” to save parameters(4) Recover ParameterInput “r” to recover default kernel startup parameters2.3 Test Program without OSTest program 2440test can be used to test PWM beeper, RTC clock, AD converter, button, touchscreen, LCD, infra, I2C bus, audio in, audio out, SD Card and CMOS Camera.2.3.1 Download 2440testInstall USB driver on Windows and setup Windows Hypterminal for serial cable connection.Connect USB cable and launch DNW for 2440test binary image downloading. The USB downloadaddress in DNW should be 0x30000000.
2.4.5 Use USB CameraMINI2440 can support USB camera with vimicro chipset. As soon as USB camera plug in, thefollowing device will automatically be installed:Use spcacat to capture the picture:#spcacat –p 100ms –N 5For a better quality of picture:#spcacat –s 384x288 –p 100ms –N2 -o2.4.6 Transfer file with PCUser can transfer(sz/rz) files with PC when he/she login linux by serial console.2.4.7 Remotely display USB CameraMINI2440 has an embedded web server:http://192.168.1.230There is a remote USB camera control and play function embedded in the main page.
#/etc/rc.d/init.d/ledsstart4 leds will start to flash(2) Separately control of LED/bin/leds is a separately controller of leds. User need to stop led-player before leds#/etc/rc.d/init.d/leds stop[root@fa /]#ledUsage: leds led_no 0|1Led_no is number of leds(0-3), 0 represent off, 1 represent on2.4.9 Button TestRun “buttons” to test buttons on board2.4.10 Serial 2 and 3 TestUser need an expand board for serial port 2 and serial port 3 test. Set Hypterminal on PC to 115200Baudrate and no hardware flow control.#armcomtest –d /dev/tts/1 –o#armcomtest –d dev/tts/2 –oResult screen from serial port 2 or serial port 3:
2.4.11 Beeper testSource code location:Kernel-2.6.13/drivers/char/qq2440_pwm.c2.4.12 LCD BacklightSource code location:Kernel-2.6.13/drivers/char/mini2440_backlight.c[root@FriendlyARM/]#bl 0
Close LCD backlight[root@FriendlyARM/]#bl 1Open LCD backlight[root@FriendlyARM/]#2.4.13 I2C TestSource code location:Kernel-2.6.13/drivers/i2c/busses/i2c-s3c2410.c
2.4.20 RTC SetupUse hwclock command to connect linux clock with MINI2440 hardware RTC chip:(1) date –s 042916352007(2) hwclock –w(3) hwclock –s #this command had been put into /etc/init.d/rcS script for automatically run afterpower on.2.4.21 Non-valitaile Data in FlashYaffs file system will not lost any data in case system power failure.2.4.22 Automatic Script When Power UpPlease check with /etc/init.d/rcS2.4.23 How to do Screen Shoot#snapshotpic.png
2.5.9 Ethernet Test2.5.10 TelnetA telnet server is configured in WinCE. The default IP address of Wince is 192.168.1.217. Nopassword needed for telnet logon.
2.6 Install BIOS by SJF2440SJF2440 is a tool from Samsung to burn flash on development board. It can support K9F1208 NandFlash, AMD29LV800BB Nor Flash, etc.Note: We suggest to do these operations on a PC with intel chipset mother board. SometimeJTAG board with parallel port will fail on the mother board with chipset from other vendors2.6.1 Install GIVEIO Driver2.6.2 Burn BIOSNote: The development board had been pre-loaded BIOS before shipment. We suggest you do nottry the procedures in this section if you are not familiar with S3C2440 and low level details of theboard.First of all, connect JTag board to MINI2440 jtag port and connect other end of JTag board to yourPC parallel port with GIVEIO driver already installed.(1) Copy the folder \windows tools\SJF2440 on CD-ROM to PC. Double click onSJF2440_supervivi.bat to start. Select function “2” and then select Nor Flash(AM29LV160) to startburn.
3. OS InstallationNote:To avoid Windows “blue screen failure” during USB downloading:1. Do not plug in USB cable before target board power on2. Do not plug in USB cable when reset target board3. Plug in USB cable after supervivi main menu appears4. Plug out USB cable after programming success5. Current Linux kernel does not support USB device6. Plug in USB cable after wince startup3.1 Backup and Restore SystemBackup content in Nand Flash
3.2 Install LinuxLinux binary image file is in image/linux folder. Connect MINI2440 board with USB cable and poweron the board to enter supervivi main menu. Watch indicator on DNW title bar to check if USBconnection success:Major steps for linux installation:(1) format Nand Flash(make partition)(2) Install bootloader(3) Install kernel(4) Install file system
3.2.5 Start OSPlease un-plug USB cable after system successfully updatedInput [b] under BIOS or power cycle/reset the board. Supervivi will restart and boot linuxautomatically.3.3 Install WinceWince binary image file is on image/wince folder. Connect MINI2440 board with USB cable andpower on the board to enter supervivi main menu. Watch indicator on DNW title bar to check if USBconnection success:Major steps for Wince installation:(1) format Nand Flash(make partition)(2) Install bootloader(3) Install Eboot(4) Install Wince3.3.1 Nand Flash Make Partition
Appendix: OS Installation by CommandLineNote: We recommend you use supervivi main menu to update software but we still list commandline commands here for your reference.1. How to enter command line modeSupervivi will enter main menu when board is set to Nor Flash boot mode. Select function [q] toenter command line mode1.1 From BIOS main menu1.2 From Nand Flash bootUser can also enter supervivi command line interface when board is booting from Nand Flash.Connect the board with PC by serial cable and USB cable. Open Windows hypterminal and DNW.Hold on space bar in Hypterminal. Power on MINI2440 and then you can enter command lineinterface:
2. Linux InstallationLinux binary image file is on image/linux folder. Connect MINI2440 board with USB cable and poweron the board to enter supervivi command line mode. Watch indicator on DNW title bar to check ifUSB connection success:Major steps for linux installation:(1) format Nand Flash(make partition)(2) Install bootloader(3) Install kernel(4) Install file system2.1 Nand Flash Make PartitionUnder BIOS: bon part 0 320k 2368kDescription: bon is command to make partition, the command above is to make 3 partition fromNand Flash address 0:0-320k: size is 320k320k-2368k: size is 2M2368k-64M: size is 62M
2.5 Start OSPlease un-plug USB cable after system successfully updatedInput “boot” under BIOS or power cycle/reset the board. Supervivi will restart and boot linuxautomatically.3. Wince InstallationWince binary image file is on image/wince folder. Connect MINI2440 board with USB cable andpower on the board to enter supervivi command line mode. Watch indicator on DNW title bar tocheck if USB connection success:Major steps for Wince installation:(1) format Nand Flash(make partition)(2) Install bootloader(3) Install Eboot(4) Install Wince3.1 Nand Flash Make PartitionUnder BIOS: bon part 0 320k 2368kDescription: bon is command to make partition, the command above is to make 3 partition fromNand Flash address 0:
Micro2440 development board is constituted of CPU board Micro2440 and mother board micro2440SDK.Mini2440 CPU board is a minimum system development board, it includes the basic system configuration.
Mini2440SDK based on the mini2440 CPU board is the function-verification motherboard which includes standard RJ-45 network interface, audio input ad output,USB and SD card and etc.
Mini2440SDK has 6 user testing buttons leading to the CPU interrupt pins (active-low) and these pins can be used as GPIO and special function interface for users. And the 6 pins is also lead to CON8.
LCD1 interface is a 41pin 0.5mm white mount which is same as mini2440, including the most control signals and RGB outputs of the common LCD, we also draw out the PWM output and nRESET signals. In addition, 37、38、39、40 is 4-wire touch screen interface.
Mini2440’s system bus interface is CON5 including 16 dataline(D0-D15), 25 address line(A0-A24) and other control singal line(CS, RESET,W/R), CON5 can provide 5V voltage. Actually few user expands peripherals via bus.
Q. How to configure the kernel support for different size of the LCD screen? For WinCE, users only need to choose according to their own LCD screen display resolution modify the macro definition of different screen in the file "bsp_cfg.h" under the directory "\SRC\INC".
For Linux QT, execute the command "make menuconfig" , then setting according to the following directory "Device Drivers –> Graphics support –> Support for frame buffer devices" , select the corresponding LCD screen LCD Type. Detailed methodology please refer to the corresponding user manual.
For Android, if you are switching between resistive screen, you can modify the parameters of LCD in the bootargs under the uboot environment variable. If you are switching between the resistive and capacitive touch panel screen, you need to execute "make menuconfig" in the kernel, then setting according to the following directory "Device Drivers –> Input device support –> Touchscreens" , select the appropriate option to configure.
Friendly ARM Mini 2440 is a Single-Board Computer(SBC) built on 400 MHz Samsung S3C2440 ARM9 processor & 3.5” Touch screen LCD is provided with mini 2440.
Friendly Arm Mini2440 is factory preloaded with Linux Qtopia operating system.This post is intended to revive the operating system in case of non booting of device.
Mini2440 has a Flash NAND ROM of 1 GB & 2MB NOR alternate Bootloader.Top left is switch S2 for NOR/NAND boot selection.To the bottom left is the power ON/OFF switch S1.Slide this switch to left for power ON..
Mini 2440 comes preloaded with a SuperVivi bootloader in NOR flash.It is used to install Operating system on to NAND flash.SuperVivi is the BIOS for mini2440 & is used as a tool to download & burn OS image to the Flash onboard.
Your Host Computer operating system may be Windows 7 /XP or Linux Ubuntu 12.04.It is easier to install Qtopia on FriendlyArm devicefrom a Windows 7 running PC.Later we shall see how to develop programs in Linux Environment & load it to Mini2440.
2.Under Serial line enter the port number (in our case it is COM2).To know the port no. allotted ,open up Device manager & under Ports(Com&Lpt) you see the COM port number allotted to the USB-UART board we have used to connect DB9 of mini2440 to PC.