åèï¼
http://www.it165.net/os/html/201409/9334.htmlç³»ç»ubuntu12.04ï¼éèææºä¸ï¼
mini2440
CPUåå·ï¼ S3C2440AL-40
Nanflashåå·ï¼K9F1G08
Norflashåå·ï¼SST39VF1601
LCDï¼ ç»å® 240 x 320
$ï¼ æ®éè´¦æ·
#ï¼rootè´¦æ·
*å½shellä¸è¾å
¥è·¯å¾æ¶å¯ä½¿ç¨tabé®èªå¨è¡¥å
¨
ï¼ä¸ï¼å»ºç«äº¤åç¼è¯ç¯å¢
1.å°mini2440å
çä¸çlinuxæ件夹æ·è´å° /home/lianghuiyong 并æ¹å为Linux_share
ï¼å
¶ä¸ä¸¤ä¸ªæ档为æåé¢æ·»å è¿å»çï¼
2.Ctrl+Alt+Tæå¼shell
3.$ su - root ï¼åæ¢rootæéï¼
4.# cd /home/lianghuiyong/Linux_share
5.解åå®è£
arm-linux-gccç¼è¾å¨
# tar xvzf arm-linux-gcc-4.4.3.tar.gz âC / //注æï¼Cåé¢æä¸ªç©ºæ ¼
æ§è¡è¯¥å½ä»¤,å°æ arm-linux-gcc å®è£
å°/usr/loca/arm/4.4.3 ç®å½ãè¿å¥æ¥èªmini2440ç¨æ·æåï¼æåç°å
¶å®æ¯å®è£
å° /opt/FriendlyARM/toolchain/4.4.3 ç®å½
6.# vim /root/.bashrc
7.å¨æåä¸è¡æ·»å ï¼export PATH=$PATH:/opt/FriendlyARM/toolschain/4.4.3/bin //opt/FriendlyARM/toolschain/4.4.3/bin 为arm-linux-gcc ç¯å¢åé
ï¼wqä¿åéåºã
# source ~/.bashrc
8.# sudo gedit /etc/environment
gamesåé¢æ·»å æ è®°é¨å
9.# arm-linux-gcc -v //gccåé¢æç©ºæ ¼
æµè¯hello.cï¼è¿æ¯å¨å®è£
äºç¬¬äºé¨åçlinux示ä¾ç¨åºææexamples/helloç®å½ï¼
# cd /opt/FriendlyARM/mini2440/examples/hello
# arm-linux-gcc -o hello hello.c
# ./hello
(äº)å®è£
æºä»£ç åå
¶ä»å·¥å
·
å建工ä½ç®å½ï¼ä»¥ä¸é½ä¸ºrootç¯å¢ä¸ï¼ï¼
# mkdir -p /opt/FriendlyARM/mini2440
1>>解åå®è£
linuxå
æ ¸æºä»£ç
# cd /opt/FriendlyARM/mini2440
# tar xvzf /home/lianghuiyong/Linux_share/linux-2.6.32.2-mini2440-20100106.tar.gz
2>>解åå®è£
åµå
¥å¼å¾å½¢ç³»ç»qtopiaæºä»£ç
# cd /opt/FriendlyARM/mini2440
# tar xvzf /home/lianghuiyong/Linux_share/x86-qtopia.tgz
# tar xvzf /home/lianghuiyong/Linux_share/arm-qtopia.tgz
3>>解åå®è£
åµå
¥å¼å¾å½¢ç³»ç» QtE-4.6.1 æºä»£ç
# cd /opt/FriendlyARM/mini2440
# tar xvzf /home/lianghuiyong/Linux_share/arm-qte-4.6.3-20100802.tar.gz
4>>解åå®è£
busybox æºä»£ç
# cd /opt/FriendlyARM/mini2440
# tar xvzf /home/lianghuiyong/Linux_share/busybox-1.13.3-mini2440.tgz
5>>解åå®è£
Linux 示ä¾ç¨åº
# cd /opt/FriendlyARM/mini2440
# tar xvzf /home/lianghuiyong/Linux_share/examples-20100108.tgz
6>>解åå®è£
vboot æºä»£ç
# cd /opt/FriendlyARM/mini2440
# tar xvzf /home/lianghuiyong/Linux_share/vboot-src-20100106.tar.gz
7>>解åå®è£
bootloader æºä»£ç
# cd /opt/FriendlyARM/mini2440
# tar xvzf /home/lianghuiyong/Linux_share/bootloader.tgz
8>>解åå建ç®æ æ件系ç»
# cd /opt/FriendlyARM/mini2440
#tar xvzf /home/lianghuiyong/Linux_share/rootfs_qtopia_qt4-20100816.tar.gz
9>>解åå®è£
ç®æ æ件系ç»æ 象å¶ä½å·¥å
· mkyaffs2image
# cd /opt/FriendlyARM/mini2440
# tar xvzf /home/lianghuiyong/Linux_share/mkyaffs2image.tgz âC /
10>>解åå®è£
LogoMaker
# cd /opt/FriendlyARM/mini2440
# tar xvzf /home/lianghuiyong/Linux_share/logomaker.tgz âC /
ï¼ä¸ï¼å®å¶linuxå
æ ¸åå¶ä½æ件系ç»
config_mini2440_x35 â éç¨äº Sony 3.5â LCD çå
æ ¸é
ç½®æ件
config_mini2440_t35 â éç¨äºç»å® 3.5â LCD çå
æ ¸é
ç½®æ件
config_mini2440_l80 â éç¨äº Sharp 8â LCD(æå
¼å®¹)çå
æ ¸é
ç½®æ件
config_mini2440_n35 â éç¨äº NEC3.5â LCD çå
æ ¸é
ç½®æ件
config_mini2440_h43 â éç¨äº 4.3â LCD çå
æ ¸é
ç½®æ件
config_mini2440_a70 â éç¨äºç¾¤å 7â LCD çå
æ ¸é
ç½®æ件
config_mini2440_vga1024x768 â éç¨äº VGA æ¾ç¤ºè¾åº(å辨ç 1024x768ï¼æ¨¡åçå
æ ¸
é
ç½®æ件
1.é
置缺çæ件config_t35 (ç»å®240x320)
# cd /opt/FriendlyARM/mini2440/linux-2.6.32.2
# cp config_mini2440_t35 .config
# make menuconfig
åºç°çé¢
ä¸åæ´æ¹ï¼exitéåºãè¿æ ·åæ¯ä¸ºäºçæç¸åºé
ç½®ï¼ç»å®240x320ï¼ç头æ件ã
2.ç¼è¯å
æ ¸
å¨/opt/FriendlyARM/mini2440/linux-2.6.32.2 ç®å½ä¸ç¼è¯å
æ ¸
#make zImage
ç¼è¯ç»æå,ä¼å¨ arch/arm/boot ç®å½ä¸çæ linux å
æ ¸æ 象æ件:zImageï¼zImage å¯ä¸è½½å°å¼åæ¿æµè¯ï¼
3.å®å¶linuxå
æ ¸(æ ¹æ®ç¨æ·æåæ¥èµ°ä¸é)
# cd /opt/FriendlyARM/mini2440/linux-2.6.32.2
# make menuconfig
åºç°é
ç½®é项ï¼
3.1é
ç½®cpu
主èå-->System --> Type S3C2400 Machines --> FriendlyARM Mini2440 development board
3.2é
ç½®lcd驱å¨
主èå-->Device Drivers-->Graphics support-->Support for frame buffer devices-->Backlight-->LCD select-->3.5 inch 240x320 Toppoly LCD
3.3é
置触æ¸å±
主èå-->Device Drivers-->Input device support-->Touchscreens-->Samsung s3c24410 touchscreen input driver
3.4é
ç½®usbé¼ æ åé®ç
主èå-->Device Drivers-->hid devices-->USB Human interface Device
3.5 é
ç½®ä¼ç
主èå-->Device Drivers-->SCSI device support--> SCSI disk
3.6é
ç½®ä¸è½é©±å¨USBæå头
主èå-->Device Drivers-->Multimedia devices-->Video capture adapters -->V4L USB devices-->GSPCA based webcams-->ALi USB m 5602 Camera Driver
3.7 é
ç½®CMOSæå头驱å¨
主èå-->Device Drivers-->Multimedia devices-->Video capture adapters-->OV9650 on the s3c2440 driver
3.8é
ç½®ç½å¡é©±å¨
主èå-->Netwoking support-->Networking options -->éæ©UnixåTCP/IP
主èå-->Device Drivers-->Network device support-->Ethernet (10 or 100Mbit)-->
éæ© <*> Generic Media Independent Interface device support
<*> DM9000 support
3.9 é
ç½®USBæ 线ç½å¡é©±å¨
主èå-->Netwoking support-->wireless-->IEEE 802.11
主èå-->Device Drivers-->Netwoking device support-->wireless LAN-->Wireless LAN(IEEE 802.11)-->Ralink driver support-->
3.10 é
ç½®é³é¢é©±å¨
主èå-->Device Drivers-->Sound card supprt-->OSS Mixer API -->ALSA for Soc audio support-->SoC Audio for the samsung S3Cxxxx Chips
3.11 é
ç½®SD/MMCå¡é©±å¨
主èå-->Device Drivers-->MMC/SD/SDIO card-->samsung S3C SD/MMC card
3.12 é
ç½®çé¨ç驱å¨æ¯æ
主èå-->Device Drivers-->Watchdog Timer-->s3c2440 Watchdog
3.13 é
ç½®LED驱å¨
主èå-->Device Drivers-->Character devices-->LED support for Mini2440
3.14 é
ç½®æé®é©±å¨
主èå-->Device Drivers-->Character devices-->Buttons driver
3.15 é
ç½®PWMæ§å¶è鸣å¨é©±å¨
主èå-->Device Drivers-->Character devices-->buzzer driver for
3.16 é
ç½®AD转æ¢é©±å¨
主èå-->Device Drivers-->Character devices-->ADC driver for
3.17 é
置串å£é©±å¨
主èå-->Device Drivers-->Character devices-->Serial drivers-->samsung S3C2440/S3C2442
3.18 å¦ä½é
ç½®RTCå®æ¶æ¶é驱å¨
主èå-->Device Drivers-->Real Time Clock-->samsung S3C series SoC RTC
3.19 é
ç½®I2C-EEPROM驱å¨æ¯æ
主èå-->Device Drivers-->I2C support -->I2C Hardware Bus support-->S3C2410 I2C Driver
3.20 é
ç½®yaff2sæ件系ç»çæ¯æ
主èå-->Device Drivers-->MTD-->NAND Device Support -->NAND FLASH Support
主èå-->File systems-->Miscellaneous filesystems -->YAFFS2 file system support
3.21 é
ç½®EXT2/VFAT/ NFSçæ件系ç»
主èå-->File systems-->Network File Systems -->root file system on NFS
为äºæ¯æFAT32 æ件系ç».
主èå-->File systems-->DOS/FAT/NT Filesystems -->VFAT (windows-95) fs support
å
³äºmini2440 linuxå
æ ¸è£åªå°æ¤ä¸ºæ¢ï¼éåºåæä¸ä¸ªæ¯å¦ä¿åæ示ï¼éæ©ä¿åï¼
3.22 å¶ä½Linux logo
æ¬æ¥æ³ä½¿ç¨Logomakerï¼ç»æçæçå¾çé½æ¯æ æ°æ®çï¼è¿å¯è½åç³»ç»å
ä¸äºåæ°æå
³
使ç¨å½ä»¤æ¹å¼å¶ä½logoï¼
å¨å¾çï¼open_show.pngï¼ç®å½ä¸
# pngtopnm open_show.png > temp.ppm
# ppmquant 224 temp.ppm >temp2.ppm
# pnmnoraw temp2.ppm > logo.ppm
å°ç®å½ä¸çæçlogo.ppmæ¹ælinux_logo_clut224.ppmï¼æ¿ä»£linux2.6.32.2/drivers/video/logo ç®å½ä¸çååæ件