ÀÌ ¸Å´º¾óÀº JKÀüÀÚ(JK Electronics) ¿¡ ÀÇÇؼ­ ¹ø¿ª, ¼öÁ¤, ÀÛ¼º µÇ¾ú°í ¼ÒÀ¯±Ç ¶ÇÇÑ
JKÀüÀÚ(JK Electronics)
ÀÇ °ÍÀÔ´Ï´Ù. ¼ÒÀ¯±ÇÀÚÀÇ Çã°¡¸¦ ¹ÞÁö ¾Ê°í ¹«´ÜÀ¸·Î ¼öÁ¤, »èÁ¦Çϰųª ¹èÆ÷ ÇÒ ¼ö ¾ø½À´Ï´Ù.

 

S3C6410 Start Kit Linux Developer Guide


 
* Update history

- 2011.1.13 : Ãʱâ Release


 


1. Environment Setup

1.1 Installation Fedora9

S3C6410 Startkit ÀÇ ¸ðµç ¿¹Á¦¿Í ÄÄÆÄÀÏ °úÁ¤Àº VMWare¿¡ ¼³Ä¡µÈ Fedora9 ¸Ó½Å¿¡¼­ ½ÇÇà ÇÏ¿´½À´Ï´Ù. ´Ù¸¥ ¸®´ª½º ȯ°æ¿¡¼­´Â Å×½ºÆ® µÇÁö ¾Ê¾Ò½À´Ï´Ù. Æóµµ¶ó ¸®´ª½ºÀÇ Àüü ¼³Ä¡ °úÁ¤Àº ¿©±â Installation Fedora9 À» ÂüÁ¶ÇϽñ⠹ٶø´Ï´Ù.

1.2 Add a new user

ºÎÆ®·Î´õ¿Í Ä¿³ÎµîÀ» ÄÄÆÄÀÏ ÇÏ°í Å©·Î½º ÄÄÆÄÀÏ·¯ ¼³Ä¡ ÀÛ¾÷µîÀ» ¼öÇàÇÒ ÀÏ¹Ý °èÁ¤À» »ý¼º ÇÕ´Ï´Ù.

Step1: Open the "Users and Groups Manager"



Step2: User Management window appears

s3c6410

Step3: Point toolbar "Add User" button to add new users, and set the password:

s3c6410

Point "OK" return, you can see has add "plg" users, while /home directory also add for plg user directory, as shown:

s3c6410

Point Add User button, the window to add new users, according to the prompts on it.


1.3 Access to Windows system files

¹öÃò¾ó ¸Ó½Å¿¡ ¼³Ä¡µÈ Fedora9 ½Ã½ºÅÛ¿¡¼­ HOST PCÀÎ À©µµ¿ìÁî ÆÄÀϽýºÅÛ¿¡ Á¢±Ù ÇØ¾ß ÇÒ Çʿ伺ÀÌ Àִµ¥ ÇÑ°¡Áö ¹æ¹ýÀº Host¿Í Guest OS°£ÀÇ ³×Æ®¿öÅ©¸¦ ÀÌ¿ëÇÏ´Â ¹æ¹ý°ú VMWareÀÇ shared file ±â´ÉÀ» ÀÌ¿ëÇÏ´Â ¹æ¹ýÀÔ´Ï´Ù. ÀÚ¼¼ÇÑ ¼³Á¤ °úÁ¤Àº ´ÙÀ½À» ÂüÁ¶Çϼ¼¿ä.

s3c6410

Step1: In Windows set the shared folder "share_f9" (Example)

s3c6410

Step2: In Fedora9 operating system:

s3c6410

Open figure window:

s3c6410

In Service type select "Windows share"

s3c6410

Enter the desired share Windows Host IP Address and the name of the shared folder:

s3c6410

Click "Connect" prompt window will appear as follows:

s3c6410

Do not care, direct "Connect" can be, you can see Windows Shared the contents of the document, and in this operation other directories as you can, like to use it.

s3c6410

Å͹̳ΠâÀÇ Ä¿¸Çµå ¶óÀο¡¼­ Á¢±Ù ÇÏ´Â ¹æ¹ýµµ ÀÖ½À´Ï´Ù.

s3c6410

Sharedµð·ºÅ丮¿ÍÀÇ ¿¬°á ÇØÁ¦ ¹æ¹ýÀº ¾Æ·¡ ±×¸²°ú °°ÀÌ Fedora ¸Þ´º¿¡¼­ "Unmount Volume" À» ½ÇÇà ÇÏ¸é µË´Ï´Ù.

s3c6410

Samba¸¦ ÀÌ¿ëÇÏ´Â ¹æ¹ýº¸´Ù´Â ¸®´ª½º¸¦ VMWare¿¡ ¼³Ä¡ ÇÏ¿´´Ù¸é VMWareÀÇ Shared Folder ¸¦ ÀÌ¿ëÇÏ´Â ¹æ¹ýÀÌ ´õ °£´Ü ÇÕ´Ï´Ù.

1.4 Configure NFS Services

´ÙÀ½ÀÇ NFS ¼­½Ã½º ¼³Á¤ °úÁ¤Àº ´ÜÁö ·¹ÆÝ·±½º¸¸ ÇϽñ⠹ٶø´Ï´Ù. ¸¹Àº ¸®´ª½º ½Ã½ºÅÛµéÀÌ ¾Æ·¡¿¡¼­ ¼³¸íÇÏ´Â ÀýÂ÷¿¡ ÀÇÇؼ­ µ¿ÀÏÇÑ °á°ú¸¦ ³»Áö ¾ÊÀ» ¼ö ÀÖ½À´Ï´Ù. ½ÉÁö¾î µ¿ÀÏÇÑ ¹öÁ¯°ú Fedora 9 ¿¡¼­ Á¶Â÷µµ »ç¿ëÀÚÀÇ ¼³Ä¡ ȯ°æ¿¡ µû¶ó¼­´Â µÇÁö ¾ÊÀ» ¼öµµ ÀÖ½À´Ï´Ù. ¼³Á¤ °úÁ¤Áß ¿À·ù »çÇ×Àº ÀÎÅÍ³Ý µî ´Ù¸¥ ÂüÁ¶ ÀڷḦ È°¿ë ÇϽñ⠹ٶø´Ï´Ù.

Step1: Set the shared directory

 

"root" °èÁ¤À¸·Î ·Î±×ÀÎÇÑ »óÅ¿¡¼­ ¾Æ·¡ ¸í·ÉµéÀ» ½ÇÇà Çϼ¼¿ä.

# gedit /etc/exports

NFS¼­ºñ½º profile À» ¼öÁ¤ ÇÕ´Ï´Ù.

/opt/FriendlyARM/mini6410/linux/root_qtopia_qt4 *(rw,sync,no_root_squash)

/opt/FriendlyARM/mini6410/linux/root_qtopia_qt4 : NFS·Î °øÀ¯ÇÒ µð·ºÅ丮 °æ·Î ÀÔ´Ï´Ù.

rw : read and write 񀀥

/opt/FriendlyARM/mini6410/linux/root_qtopia_qt4 µð·ºÅ丮´Â ¹Ì¸® »ý¼ºÀÌ µÇ¾î ÀÖ¾î¾ß ÇÕ´Ï´Ù.

Step2: Start NFS Services

Fedora½Ã½ºÅÛ¿¡¼­´Â ±âº»ÀûÀ¸·Î ÆÄÀ̾î¿ù ¶§¹®¿¡ NFS ¼­ºñ½º°¡ ¿Ã¹Ù¸£°Ô ½ÇÇà µÇÁö ¾Ê½À´Ï´Ù. ±×·¡¼­ ¸ÕÀú Firewall À» ÁßÁöÇÏ°í ½ÇÇà ÇØ¾ß ÇÕ´Ï´Ù. ¸í·É ¶óÀο¡¼­ "lokkit" ¸í·ÉÀ» ÀÌ¿ëÇؼ­ Firewall ±¸¼ºÀ» ½ÃÀÛ ÇÕ´Ï´Ù.

s3c6410

"Disabled" ¸¦ ¼±ÅÃÇÏ°í "OK" ¸¦ ´©·ì´Ï´Ù. ±×¸®°í ³ª¼­ NFS ¼­ºñ½º¸¦ ½ÃÀÛ ÇÕ´Ï´Ù.

# /etc/init.d/nfs start

NFS ¼­ºñ½º°¡ Á¦´ë·Î ½ÃÀ۵Ǿú´ÂÁö ´ÙÀ½°ú °°ÀÌ local ¿µ¿ªÀ» ¸ÕÀú ¸¶¿îÆ® ÇÕ´Ï´Ù.
# mount -t nfs localhost: /opt/FriendlyARM/mini6410/root_qtopia_qt4 /mnt/

´ÙÀ½Àº NFS ¼­ºñ½º¸¦ Á¾·á ½ÃÅ°´Â ¸í·É ÀÔ´Ï´Ù.
# /etc/init.d/nfs stop

NFS¼­ºñ½º¸¦ ½Ã½ºÅÛ ºÎÆýÿ¡ ÀÚµ¿À¸·Î ½ÇÇàÇϸé Á»´õ Æí¸® ÇÕ´Ï´Ù.
# serviceconf

s3c6410

Step3: NFS Start System
Ãʱ⠸®´ª½º °³¹ß½Ã¿¡´Â °³¹ßº¸µå°¡ ºÎÆýÿ¡ root filesystem À» NFS¸¦ ÅëÇؼ­ Linux host PC ÀÇ root ÆÄÀÏ ½Ã½ºÅÛÀ» ÂüÁ¶Çϵµ·Ï Çϴ°ÍÀÌ Æí¸® ÇÕ´Ï´Ù. superboot ¸Þ´º¿¡¼­ Linux ºÎÆà ÆĶó¹ÌÅÍ¿¡ ´ÙÀ½°°ÀÌ ÇÏ¸é µË´Ï´Ù.
s3c6410

°¢°¢ÀÇ IPÁÖ¼Ò¿¡ ´ëÇÑ ¼³¸í ÀÔ´Ï´Ù.

192.168.1.70 : Ÿ°Ù °³¹ßº¸µåÀÇ IP Address
192.168.1.111 : Linux HOST IP Address
192.168.1.111 : Ÿ°Ù °³¹ßº¸µåÀÇ Gateway
255.255.255.0 : Subnet mask
eth0 : Linux HOST PCÀÇ ³×Æ®¿öÅ© ÀÎÅÍÆäÀ̽º À̸§, ¸¶Áö¸·À¸·Î Linux HOST PCÀÇ È£½ºÆ® À̸§Àº ¾î¶² À̸§ÀÌµç ¹®Á¦°¡ µÇÁö ¾Ê½À´Ï´Ù.

s3c6410

"b" ¸í·É¾î·Î °³¹ßº¸µåÀÇ root ÆÄÀÏ ½Ã½ºÅÛÀº NFS ¼­¹öÀÇ µð·ºÅ丮¿¡ ¸¶¿îÆ® µÇ¸é¼­ ½ÃÀÛ ÇÏ°Ô µË´Ï´Ù.

s3c6410


1.5 Install cross-build compiler

ÀÓº£µðµå ¸®´ª½ºÀÇ ºÎÆ®·Î´õ, Ä¿³Î, QT µîÀ» ÄÄÆÄÀÏ Çϱâ À§Çؼ­´Â °³¹ß¿ë Linux PC¿¡ ARM¿ë Å©·Î½º ÄÄÆÄÀÏ·¯¸¦ ¼³Ä¡ ÇØ¾ß ÇÕ´Ï´Ù. ÀÌ °³¹ßº¸µå¸¦ À§Çؼ­´Â arm-linux-gcc-4.5.1 ÄÄÆÄÀÏ·¯¸¦ ¼³Ä¡ ÇØ¾ß ÇÕ´Ï´Ù. ÀÌ ÄÄÆÄÀÏ·¯´Â armv6 Instruction set and support hardware floating-point operations µîÀ» Áö¿ø ÇÕ´Ï´Ù. ÀÚ¼¼ÇÑ ¼³Ä¡ ¹æ¹ýÀº ¾Æ·¡¿Í °°Àº ÀýÂ÷´ë·Î ÇÏ½Ã¸é µË´Ï´Ù.

Step1 : CD-ROM/Linux/arm-linux-gcc-4.5.1-v6-vfp-20101103.tgz ÀÇ ÆÄÀÏÀ» °³¹ß¿ë PCÀÇ /tmp µð·ºÅ丮¿¡ º¹»ç ÇÕ´Ï´Ù. ±×¸®°í ³ª¼­ ´ÙÀ½ ¸í·ÉÀ» ÀÔ·Â ÇÕ´Ï´Ù.

# cd /tmp
# tar xvzf arm-linux-gcc-4.5.1-v6-vfp-20101103.tgz -C /

ÀÌ ¸í·É¾î´Â arm-linux-gcc ÄÄÆÄÀÏ·¯¸¦ /opt/FriendlyARM/toolschain/4.5.1 ¿¡ ¼³Ä¡ÇÕ´Ï´Ù.

Step2 : ¼³Ä¡ µð·ºÅ丮¸¦ »ç¿ëÀÚ °èÁ¤ shell ÆÄÀÏ¿¡ Ãß°¡ ÇÕ´Ï´Ù.

# gedit /root/.bashrc
export PATH=$PATH:/opt/FriendlyARM/toolschain/4.5.1/bin

s3c6410

Å͹̳ΠâÀ» Á¾·áÇÏ°í ´Ù½Ã ·Î±×ÀÎ ÇÑ ´ÙÀ½ "arm-linux-gcc -v" ¸í·ÉÀ» ½ÇÇà ÇÏ¸é ¾Æ·¡°ú °°Àº ¸Þ¼¼Áö°¡ ³ª¿Í¾ß ÇÕ´Ï´Ù.

s3c6410

1.6 Install source code and tool

´ÙÀ½°ú °°Àº ¼Ò½º¿Í Åø µéÀ» ¼³Ä¡ ÇÕ´Ï´Ù.

- Linux kernel source code
- Qtopia-2.2.0 platform source code (x86 and arm platform is divided into two versions)
- Arm-qt-extended-4.4.3 platform source code (that is Qtopia4, divided into two versions of x86 and arm)
- QtE-4.7.0 platform source code (arm version)
- Busybox-1.17 source code
- Linux source code programming examples
- U-boot source code
- Target file system directory
- Target file system image creation tools (including yaffs2 and UBIFS)
- GUI Linux logo creation tools logomaker

1.6.1 Unpacking the source code

¸ÕÀú "/opt/FriendlyARM/mini6410/linux" µð·ºÅ丮¸¦ »ý¼º ÇÕ´Ï´Ù. ¸ðµç ¼Ò½º ÄÚµå´Â ÀÌ µð·ºÅ丮¿¡ ¾ÐÃàÀ» ÇØÁ¦Çؼ­ ¼³Ä¡¸¦ ÁøÇà ÇÒ °ÍÀÔ´Ï´Ù.
# mkdir -p /opt/FriendlyARM/mini6410/linux

(1) Linux source code package Áغñ, "/tmp/linux" µð·ºÅ丮¸¦ »ý¼º ÇÕ´Ï´Ù.

#mkdir /tmp/linux

CD-ROM¾ÈÀÇ Linux µð·ºÅ丮ÀÇ ¸ðµç ÆÄÀϵéÀ» /tmp/linux ¿¡ º¹»ç ÇÕ´Ï´Ù.

(2) U-boot source code package Áغñ, "/opt/FriendlyARM/mini6410/linux" µð·ºÅ丮·Î À̵¿Çؼ­ ¸í·ÉµéÀ» ¼öÇà ÇÕ´Ï´Ù.

# cd /opt/FriendlyARM/mini6410/linux
# tar xvzf /tmp/linux/u-boot-mini6410-201012.31.tar.gz

u-boot-mini6410 µð·ºÅ丮°¡ »ý¼ºÀÌ µÇ°í U-boot ¼Ò½ºÄÚµåµéÀÌ »ý¼ºµÉ °ÍÀÔ´Ï´Ù.

(3) Unpacking the Linux kernel source code
"/opt/FriendlyARM/mini6410/linux" À» ¿öÅ· µð·ºÅ丮·Î ÇÏ¿© ¾Æ·¡ ¸í·ÉÀ» ¼öÇà ÇÕ´Ï´Ù. "linux-2.6.36-" ÀÌÈÄÀÇ ÆÄÀÏ À̸§Àº ¼Ò½º º£Æ÷ ³¯Â¥ À̹ǷΠ´Þ¶ó Áú ¼ö ÀÖ½À´Ï´Ù.

# cd /opt/FriendlyARM/mini6410/linux
# tar xvzf /tmp/linux/linux-2.6.36-20101115.tar.gz


À§ÀÇ ¸í·ÉÀ¸·Î "linux-2.6.36" µð·ºÅ丮 ¾È¿¡ Àüü Ä¿³Î ¼Ò½º Äڵ尡 »ý¼º µË´Ï´Ù.

(4) Extract the target file system installation

#cd /opt/FriendlyARM/mini6410/linux
#tar xvzf /tmp/linux/rootfs_qtopia_qt4-20101120.tgz


"rootfs_qtopia_qt4" µð·ºÅ丮°¡ »ý¼ºµÇ¸é qtopia ÆÄÀÏ ½Ã½ºÅÛ ¼Ò½º ÆÄÀϵéÀÌ »ý¼º µË´Ï´Ù. "rootfs_qtopia_qt4-" ÀÌÈÄÀÇ ÆÄÀÏ À̸§Àº ¼Ò½º º£Æ÷ ³¯Â¥ À̹ǷΠ´Þ¶ó Áú ¼ö ÀÖ½À´Ï´Ù.

(5) Unpacking the source code for embedded graphics system qtopia

"/opt/FriendlyARM/mini6410/linux" À» ¿öÅ· µð·ºÅ丮·Î ÇÏ¿© ´ÙÀ½ ¸í·ÉµéÀ» ½ÇÇà ½Ãŵ´Ï´Ù.

# cd /opt/FriendlyARM/mini6410/linux
# tar xvzf /tmp/linux/x86-qtopia-20100420.tar.gz
# tar xvzf /tmp/linux/arm-qtopia-20101105.tar.gz


"x86-qtopia" ¿Í "arm-qtopia" µð·ºÅ丮°¡ »ý¼ºµÇ°í qtopia °ü·Ã ¼Ò½º ÆÄÀϵéÀÌ ¼³Ä¡ µË´Ï´Ù. "x86-qtopia-" ÀÌÈÄÀÇ ÆÄÀÏ À̸§Àº ¼Ò½º º£Æ÷ ³¯Â¥ À̹ǷΠ´Þ¶ó Áú ¼ö ÀÖ½À´Ï´Ù.

(6) Extract the installation of embedded graphics system qt-extended-4.4.3 source code

"/opt/FriendlyARM/mini6410/linux" À» ¿öÅ· µð·ºÅ丮·Î ÇÏ¿© ¸í·ÉµéÀ» ½ÇÇà ½Ãŵ´Ï´Ù.

# cd /opt/FriendlyARM/mini6410/linux
# tar xvzf /tmp/linux/x86-qt-extended-4.4.3-20101003.tgz
# tar xvzf /tmp/linux/arm-qt-extended-4.4.3-20101105.tgz


À§ÀÇ ¸í·ÉÀ¸·Î "x86-qt-extended-4.4.3" and "arm-qt-extended-4.4.3" µð·ºÅ丮°¡ »ý¼ºµÇ°í qt-extendec ¼Ò½º°¡ ¼³Ä¡ µË´Ï´Ù.

(7) Extract the installation QtE-4.7.0 source code

"/opt/FriendlyARM/mini6410/linux" À» ¿öÅ· µð·ºÅ丮·Î ÇÏ¿© ¸í·ÉµéÀ» ½ÇÇà ½Ãŵ´Ï´Ù.

# cd /opt/FriendlyARM/mini6410/linux
# tar xvzf /tmp/linux/x86-qte-4.6.1-20100516.tar.gz
# tar xvzf /tmp/linux/arm-qte-4.7.0-20101105.tar.gz


"x86-qte-4.6.1" and "two arm-qte-4.7.0" 2°³ÀÇ µð·ºÅ丮°¡ »ý¼ºµÇ°í °ü·Ã ¼Ò½ºÆÄÀÏ µéÀÌ ¼³Ä¡ µË´Ï´Ù.

(8) Extract the source code to install busybox

Busybox is a lightweight linux command set of tools is used in this version of busybox-1.13.3. Download the latest version from their official website (http://www.busybox.net).

# cd /opt/FriendlyARM/mini6410/linux
# tar xvzf /tmp/linux/busybox-1.17.2-20101110.tgz


"Busybox-1.17.2" µð·ºÅ丮°¡ »ý¼ºµÇ°í °ü·Ã ¼Ò½º°¡ ¼³Ä¡ µË´Ï´Ù.

(9) Extract the installation of Linux sample program

# cd /opt/FriendlyARM/mini6410/linux
# tar xvzf /tmp/linux/examples-mini6410-20101110.tgz


"examples" µð·ºÅ丮°¡ »ý¼ºµÇ°í ¸®´ª½º ¿¡Á¦ ÇÁ·Î±×·¥µéÀÌ ¼³Ä¡ µË´Ï´Ù.

1.6.2 Create the target file system extract

ÆÄÀÏ ½Ã½ºÅÛÀº 2°³ÀÇ ¾ÐÃà ÆÄÀÏÀ» Á¦°øÇϴµ¥ 2°³ÀÇ Â÷ÀÌÁ¡Àº ´ÜÁö "/etc/friendlyarm-ts-input.conf" ÆÄÀϸ¸ ´Ù¸¨´Ï´Ù. "-s" °¡ ºÙÀº ÆÄÀÏ ½Ã½ºÅÛÀº four-wire resistive touch screen ¿¡ ÃÖÀûÈ­µÈ ÆÄÀÏ ½Ã½ºÅÛ ÀÔ´Ï´Ù. ÀϹÝÀûÀ¸·Î´Â "rootfs_qtopia_qt4-20101120.tgz" À» »ç¿ëÇÏ¸é µË´Ï´Ù.

* rootfs_qtopia_qt4-20101120.tgz
* rootfs_qtopia_qt4-s-20101120.tgz

¾Æ·¡ ¸í·É¾î·Î ¼³Ä¡ ÇÒ ¼ö ÀÖ½À´Ï´Ù.

# cd /opt/FriendlyARM/mini6410/linux
# tar xvzf /tmp/linux/rootfs_qtopia_qt4-20101120.tgz
# tar xvzf /tmp/linux/rootfs_qtopia_qt4-s-20101120.tgz


"rootfs_qtopia_qt4" and "rootfs_qtopia_qt4-s" 2°³ÀÇ µðÅØÅ丮°¡ »ý¼ºµÇ°í °Å±â¿¡ ¾Ë¸ÂÀº ÆÄÀÏ ½Ã½ºÅÛ ¼Ò½º°¡ ¼³Ä¡ µË´Ï´Ù. 2°³ÀÇ ÆÄÀÏ ½Ã½ºÅÛÀº ´ÙÀ½°ú °°Àº ±â´ÉÀ» Á¦°ø ÇÕ´Ï´Ù.

- Automatic identification NFS or a local start
- Automatic recognition of ordinary or high-speed SD card (maximum support 32G) and USB flash drives
- Automatic detection of USB mouse or touch screen
- Support for USB mouse and touch-screen co-existence (from the beginning to support Linux-2.6.36)

1.6.3 Extract the installation file system image tools

- mkyaffs2image : Nand Ç÷¡½Ã°¡ 64MB ÀΠŸ°Ù ½Ã½ºÅÛ¿ë ÆÄÀÏ ½Ã½ºÅÛ Åø ÀÔ´Ï´Ù.
- mkyaffs2image-128M : Nand Ç÷¡½Ã°¡ 128M/256M/512M/1GB ÀΠŸ°Ù ½Ã½ºÅÛ¿ë ÆÄÀÏ ½Ã½ºÅÛ Åø ÀÔ´Ï´Ù.

À§ÀÌ 2°³ Åø ÀÌ¿Ü¿¡¼­ UBIFS, EXT3 ÆÄÀÏ ½Ã½ºÅÛ À̹ÌÁö ÅøÀÌ ÀÖ½À´Ï´Ù. ¸ðµç Åø µéÀº ¾Æ·¡ ¸í·É¿¡ ÀÇÇؼ­ ¼³Ä¡°¡ µË´Ï´Ù.

# tar xvzf /tmp/linux/mktools.tar.gz -C /

À§À§ ¸í·É¿¡ ÀÇÇؼ­ /usr/sbin µð·ºÅ丮¿¡ mkyaffs2image, mkyaffs2image-128M, mkubimage, mkext3image À̹ÌÁö ÅøµéÀÌ ¼³Ä¡ µË´Ï´Ù.

1.6.4 Unpacking LogoMaker

LogoMaker ÅøÀº ¸®´ª½º ºÎÆ® ½ÃÀÛ À̹ÌÁö¸¦ ¹Ù²Ü¼ö ÀÖ°Ô ÇØÁÖ´Â Åø ÀÔ´Ï´Ù. ¾Æ·¡ ¸í·ÉÀ¸·Î ¼³Ä¡ ÇÒ ¼ö ÀÖ°í /usr/sbin µð·ºÅ丮¿¡ ¼³Ä¡°¡ µË´Ï´Ù. bmp, jpg, png image format À» ºÎÆ® ·Î°í·Î »ç¿ë ÇÒ ¼ö ÀÖ½À´Ï´Ù. ÀÚ¼¼ÇÑ »ç¿ë ¹æ¹ýÀº ÀÌÈÄÀÇ Àý¿¡¼­ ´Ù½Ã ¼³¸í ÇÕ´Ï´Ù.

# tar xvzf /tmp/linux/logomaker.tgz -C /

s3c6410

1.7 U-boot configuration and compilation

»ï¼ºÀüÀÚ´Â USB download¿Í Nand boot ±â´ÉµîÀ» Á¦°øÇÏ´Â ÁÁÀº Uboot ¼Ò½º¸¦ Á¦°ø ÇÕ´Ï´Ù. ¿ì¸®´Â ¿©±â¿¡¼­ Á»´õ °³¼±ÇÑ UBoot ÄÚµå¿Í ¹ÙÀ̳ʸ® Á¦°ø ÇÕ´Ï´Ù. ÁÖ¿ä ±â´ÉÀº ´ÙÀ½°ú °°½À´Ï´Ù.

- Increase the download menu, similar to the USB download menu Superboot
- Added SD card startup configuration
- Support for direct download file system image programming yaffs2
- Support for the Nboot programming WindowsCE BootLoader
- Support for WindowsCE programming function of the image
- Support for programming single-file image files, is commonly referred to as firmware
- Support for return to the original shell
- Added support for 256M DDR RAM

Here we introduce the configuration and compile it and use it.

1.8.1 Support NAND boot configuration compile U-boot

°³¹ßº¸µåÀÇ DDR RAM ¿ë·®¿¡ µû¶ó¼­ U-boot ÄÄÆÄÀϽà ´Ù¸¥ ¼³Á¤ ÆĶó¹ÌÅÍ·Î ÄÄÆÄÀÏ ÇØ¾ß ÇÕ´Ï´Ù.

(1) 128MB DDR RAM ¸Þ¸ð¸®°¡ ½ÇÀåµÈ °³¹ßº¸µå¸¦ ÄÄÆÄÀÏ ÇÏ´Â ¿¹Á¦ ÀÔ´Ï´Ù.

# cd /opt/FriendlyARM/mini6410/linux/u-boot-mini6410
# make mini6410_nand_config-ram128;make


(2) 256MB DDR RAM ¸Þ¸ð¸®°¡ ½ÇÀåµÈ °³¹ßº¸µå¸¦ ÄÄÆÄÀÏ ÇÏ´Â ¿¹Á¦ ÀÔ´Ï´Ù.

# cd /opt/FriendlyARM/mini6410/linux/u-boot-mini6410
# make mini6410_nand_config-ram256;make


1.8.2 Support SD boot configuration compile U-boot

(1) 128MB DDR RAM ¸Þ¸ð¸®°¡ ½ÇÀåµÈ °³¹ßº¸µå¸¦ ÄÄÆÄÀÏ ÇÏ´Â ¿¹Á¦ ÀÔ´Ï´Ù.

# cd /opt/FriendlyARM/mini6410/linux/u-boot-mini6410
# make mini6410_sd_config-ram128;make


(1) 256MB DDR RAM ¸Þ¸ð¸®°¡ ½ÇÀåµÈ °³¹ßº¸µå¸¦ ÄÄÆÄÀÏ ÇÏ´Â ¿¹Á¦ ÀÔ´Ï´Ù.

# cd /opt/FriendlyARM/mini6410/linux/u-boot-mini6410
# make mini6410_sd_config-ram256;make


1.8.3 Using U-boot

Not finished.

1.9 Configure and compile the kernel

°³¹ßº¸µåÀÇ LCDÁ¾·ù¿¡ µû¶ó¼­ ´Ù¸¥ ¼³Á¤ ÆÄÀÏÀ» »ç¿ëÇØ¾ß ÇÕ´Ï´Ù. LCDÀÇ Á¾·ùµéÀº ´ÙÀ½°ú °°½À´Ï´Ù.

config_mini6410_x35 - Sony 3.5" LCD£¬240x320
config_mini6410_n43 - NEC4.3" LCD£¬480x272
config_mini6410_l80 - Sharp 8" LCD£¬640x480
config_mini6410_a70 - Innolux 7" LCD£¬800x480
config_mini6410_vga1024x768 - 1024x768 VGA Module Adapter board
config_mini6410_vga800x600 - 800x600 VGA Module Adapter board
config_mini6410_vga640x480 - 640x480 VGA Module Adapter board
config_mini6410_ezvga800x600 - 800x600 Simple VGA Module Adapter board

".config" ÆÄÀÏÀÇ ±âº» ¼³Á¤Àº "config_mini6410_n43" ·Î µÇ¾î ÀÖ½À´Ï´Ù.

# cp config_mini6410_n43 .config

started compiling the kernel, you can also use the make command directly

# make zImage

s3c6410

ÄÄÆÄÀÏÀÌ ¿Ï·áµÇ¸é /arm/boot µð·ºÅ丮¿¡ zImage ÆÄÀÏÀÌ »ý¼ºÀÌ µË´Ï´Ù.

1.10 Configue and compiling busybox

busybox À¥»çÀÌÆ®¿¡¼­ ´Ù¿î·ÎµåÇÑ ¼Ò½ºÄÚµå´Â »ç¿ëÀÚÀÇ ¸ñÀû¿¡ µû¶ó¼­ ¼³Á¤À» ´Ù½Ã Çؼ­ ÄÄÆÄÀÏ ÇÒ ¼ö ÀÖ½À´Ï´Ù. ¿ì¸®´Â ±âº» ¼³Á¤ÀÎ fa.config ÆÄÀÏÀ» ÀÌ¿ëÇؼ­ ÄÄÆÄÀÏ Çß½À´Ï´Ù. busybox ¼Ò½ºÄڵ尡 ÀÖ´Â µð·ºÅ丮·Î À̵¿ÇÏ¿© ÄÄÆÄÀÏ ÇÕ´Ï´Ù.


# cp fa.config .config
# make


s3c6410

1.11 Make target file system image

1.11.1 Make yaffs2 file system image

"/opt/FriendlyARM/mini6410/linux" µð·ºÅ丮·Î À̵¿ÇÏ¿© ´ÙÀ½ ¸í·ÉÀ» ¼öÇà ÇÕ´Ï´Ù. ´Ù¸¥ °Íµé°ú ¸¶Âù°¡Áö·Î DDR RAM¿ë·®¿¡ µû¶ó¼­ ´Ù¸¥ ¸í·É¾î¸¦ »ç¿ëÇØ¾ß ÇÕ´Ï´Ù.

# mkyaffs2image-128M rootfs_qtopia_qt4 rootfs_qtopia_qt4.img

1.11.2 Make ubifs file system image

"/opt/FriendlyARM/mini6410/linux" µð·ºÅ丮·Î À̵¿ÇÏ¿© ´ÙÀ½ ¸í·ÉÀ» ¼öÇà ÇÕ´Ï´Ù.

# mkubimage rootfs_qtopia_qt4 rootfs_qtopia_qt4.ubi

1.11.3 Make ext3 file system image

"/opt/FriendlyARM/mini6410/linux" µð·ºÅ丮·Î À̵¿ÇÏ¿© ´ÙÀ½ ¸í·ÉÀ» ¼öÇà ÇÕ´Ï´Ù.

# mkext3image-128M rootfs_qtopia_qt4 rootfs_qtopia_qt4.ext3


1.12 Compile Qtopia-2.2.0

Qtopia-2.2.0À» ÄÄÆÄÀÏ ÇÏ´Â ¹æ¹ýÀº ¾Õ¿¡¼­ Çß´ø Ä¿³ÎÀ̳ª ºÎÆ®·Î´õ ÄÄÆÄÀÏ ¹æ¹ýº¸´Ù Á»´õ º¹ÀâÇÕ´Ï´Ù. ¾Æ·¡¿¡¼­ ÀÚ¼¼ÇÑ °úÁ¤À» ¼³¸í ÇÕ´Ï´Ù. x86, ARM ¹öÁ¯ÀÇ "run" ½ºÅ©¸³Æ®´Â ¾ÆÁÖ µ¿ÀÏ ÇÕ´Ï´Ù.

1.12.1 Compile and run x86 versions of Qtopia-2.2.0

ÀÛ¾÷ µð·ºÅ丮·Î À̵¿ Çؼ­ ºôµå, ÄÄÆÄÀÏ Çϴ½ð£Àº ½Ã½ºÅÛ¿¡ µû¶ó¼­ ¾à°£ Â÷ÀÌ°¡ ÀÖÀ»¼ö´Â ÀÖÁö¸¸ 30ºÐ Á¤µµ°¡ ¼Ò¿ä µË´Ï´Ù.


# cd /opt/FriendlyARM/mini6410/linux/x86-qtopia
# ./build-all

"build-all" ¿É¼ÇÀ¸·Î ÄÄÆÄÀÏ Çϸé Complete Qtopia and embedded browser °¡ ¸ðµÎ Æ÷ÇÔÀÌ µÇ¾î ÄÄÆÄÀÏÀÌ µÇ°í,
"build-konq" ¿É¼ÇÀ¸·Î ÄÄÆÄÀÏ ÇÏ¸é °¢°¢ ¸ðµâº°·Î ÄÄÆÄÀÏ ÇÒ ¼ö ÀÖ½À´Ï´Ù. ÄÄÆÄÀÏÀÌ ¿Ï·áµÇ°í ½ÇÇàÀ» ½ÃÅ°´Â °ÍÀº °£´Ü ÇÕ´Ï´Ù. ºôµå°¡ ¿Ï·áµÈ µð·ºÅ丮¿¡¼­

# ./run

Qtopia°¡ ½ÇÇàµÈ È­¸é ÀÔ´Ï´Ù.

s3c6410


s3c6410

1.12.2 Compile and run ARM versions of Qtopia-2.2.0

¹Ýµå½Ã "arm-linux-gcc-4.4.1" Å©·Î½º ÄÄÆÄÀÏ·¯¸¦ ÀÌ¿ëÇؼ­ ºôµå ÇØ¾ß ÇÕ´Ï´Ù.

# cd /opt/FriendlyARM/mini6410/linux/arm-qtopia
# ./build-all
# ./mktarget


Produced for target root file system image file binary package, will generate "target-qtopia-konq.tgz"

ÄÄÆÄÀÏµÈ Qtopia¸¦ °³¹ß º¸µå¿¡ ¼³Ä¡ ÇÕ´Ï´Ù.

#tar xvzf /home/plg/target-qtopia-konq.tgz -C /

s3c6410

"build-all" À̶ó´Â ½ºÅ©¸³Æ®¸¦ ÀÌ¿ëÇؼ­ ºôµå °úÁ¤À» ¸Å¿ì °£¼ÒÈ­ ½ÃÄ×½À´Ï´Ù. Àüü ºôµå°¡ ¾Æ´Ï¶ó Ç׸ñº° ºôµå Çϱâ À§Çؼ­´Â "build-all" ÆÄÀÏÀ» ¼öÁ¤Çؼ­ »ç¿ëÇϽñ⠹ٶø´Ï´Ù.


1.13 Compile QtE-4.7.0

1.13.1 compile and run ARM versions QtE-4.7.0

¹Ýµå½Ã

"arm-linux-gcc-4.5.1" ¸¦ ÀÌ¿ëÇؼ­ ºôµåÇØ¾ß ÇÕ´Ï´Ù. ÄÄÆÄÀÏ ÇÏ´Â ¹æ¹ýÀº "Qtopia-2.2.0" ÄÄÆÄÀÏ°ú µ¿ÀÏ ÇÕ´Ï´Ù.


# cd /opt/FriendlyARM/mini6410/linux/arm-qte-4.7.0
# ./build-all


ÄÄÆÄÀÏÀÌ ¿Ï·áµÇ¸é Ÿ°Ù °³¹ßº¸µå¿¡ ¼³Ä¡ ÇÕ´Ï´Ù.

#tar xvzf target-qte-4.7.0.tgz -C /

À§ÀÇ ¸í·ÉÀ» ÀÌ¿ëÇؼ­ ¼³Ä¡¸¦ Çϸé /usr/local/Trolltech µð·ºÅ丮¸¦ Æ÷ÇÔÇؼ­ ¼³Ä¡°¡ µË´Ï´Ù. ÀÌ¹Ì °³¹ßº¸µå¿¡ Trolltech µð·ºÅ丮°¡ Á¸Àç ÇÏ°í ÀÖ´Ù¸é »èÁ¦ÇÏ°í ´Ù½Ã ¼³Ä¡ ÇϽñ⠹ٶø´Ï´Ù.
±×¸®°í Qt4¸¦ ½ÇÇàÇϱâ À§Çؼ­´Â ¾Æ·¡ ±×¸²°ú °°ÀÌ ¸ÕÀú qt2¸¦ Á¾·áÇÏ°í ½ÇÇà ÇØ¾ß ÇÕ´Ï´Ù.

s3c6410

À§ÀÇ ¹æ¹ýÀÌ¿Ü¿¡ ´Ù¸£°Ô ½ÇÇà ÇÒ ¼ö ÀÖ´Â  ¹æ¹ýÀº /etc/init.d/rcS ¿¡ qtopia ½ÃÀÛ ¾ÆµðÅÛÀ» µî·Ï ÇÏ´Â °ÍÀÔ´Ï´Ù.

¾Æ·¡ ±×¸²Àº Qt4 °¡ ½ÇÇàµÈ È­¸é ÀÔ´Ï´Ù.

s3c6410

1.14 Qt-Extended-4.4.3
1.14.1 compile and run X86 versions QtE-4.4.3

¹Ýµå½Ã "arm-linux-gcc-4.5.1" ¸¦ ÀÌ¿ëÇؼ­ ºôµåÇØ¾ß ÇÕ´Ï´Ù. ÄÄÆÄÀÏ ÇÏ´Â ¹æ¹ýÀº "Qtopia-2.2.0" ÄÄÆÄÀÏ°ú µ¿ÀÏ ÇÕ´Ï´Ù.

# cd cd /opt/FriendlyARM/tiny210/linux/x86-qt-extended-4.4.3
# ./build


X86¹öÁ¯¿¡¼­ ½ÇÇàÇÏ´Â ¹æ¹ýÀº ´Ü¼øÈ÷ ¾Æ·¡¿Í °°Àº ¸í·É¾î·Î ½ÇÇà ÇÒ ¼ö ÀÖ½À´Ï´Ù.

# ./run

X86 PC¿¡¼­ ½ÇÇàµÈ È­¸é ÀÔ´Ï´Ù.

s3c6410

1.14.2 compile and run ARM versions QtE-4.4.3

¹Ýµå½Ã "arm-linux-gcc-4.5.1" ¸¦ ÀÌ¿ëÇؼ­ ºôµåÇØ¾ß ÇÕ´Ï´Ù. ÄÄÆÄÀÏ ÇÏ´Â ¹æ¹ýÀº "Qtopia-2.2.0" ÄÄÆÄÀÏ°ú µ¿ÀÏ ÇÕ´Ï´Ù.

# cd cd /opt/FriendlyARM/tiny210/linux/arm-qt-extended-4.4.3
# ./build


ÄÄÆÄÀÏÀÌ ¿Ï·áµÇ¸é °³¹ßº¸µå¿¡ ¼³Ä¡ ÇÕ´Ï´Ù.

#tar xvzf target-qtopia4.tgz –C /

À§ÀÇ ¸í·ÉÀ» ÀÌ¿ëÇؼ­ ¼³Ä¡¸¦ Çϸé /opt/Qtopia4.4.3 µð·ºÅ丮¸¦ Æ÷ÇÔÇؼ­ ¼³Ä¡°¡ µË´Ï´Ù. ÀÌ¹Ì °³¹ßº¸µå¿¡ Qtopia4.4.3 µð·ºÅ丮°¡ Á¸Àç ÇÏ°í ÀÖ´Ù¸é »èÁ¦ÇÏ°í ´Ù½Ã ¼³Ä¡ ÇϽñ⠹ٶø´Ï´Ù.
±×¸®°í Qt4¸¦ ½ÇÇàÇϱâ À§Çؼ­´Â ¾Æ·¡ ±×¸²°ú °°ÀÌ ¸ÕÀú qt2¸¦ Á¾·áÇÏ°í ½ÇÇà ÇØ¾ß ÇÕ´Ï´Ù.

s3c6410

À§ÀÇ ¹æ¹ýÀÌ¿Ü¿¡ ´Ù¸£°Ô ½ÇÇà ÇÒ ¼ö ÀÖ´Â  ¹æ¹ýÀº /etc/init.d/rcS ¿¡ qtopia ½ÃÀÛ ¾ÆµðÅÛÀ» µî·Ï ÇÏ´Â °ÍÀÔ´Ï´Ù.

# qtopia4 &

¾Æ·¡ ±×¸²Àº Qt4 °¡ ½ÇÇàµÈ È­¸é ÀÔ´Ï´Ù.

s3c6410