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

 

S5PV210 SDK °³¹ßº¸µå Linux Developer Guide


 
* Update history

- 2012.2.23 : Ãʱâ 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/tiny210/linux/root_qtopia_qt4 *(rw,sync,no_root_squash)

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

* : client ¿¡¼­ ÀÌ µð·ºÅ丮¸¦ ¸¶¿îÆ® Çϵµ·Ï Çã¿ë ÇÕ´Ï´Ù.
rw : read and write 񀀥
no_root_squash : client¿¡¼­ ÀÌ µð·ºÅ丮¸¦ ¸¶¿îÆ® ÇßÀ»¶§ hostÀÇ ¿ÏÀüÇÑ root ±ÇÇÑÀ» Çã¿ë Çϵµ·Ï ÇÕ´Ï´Ù.

/opt/FriendlyARM/tiny210/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/tiny210/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 ºÎÆà ÆĶó¹ÌÅÍ¿¡ ´ÙÀ½°°ÀÌ ÇÏ¸é µË´Ï´Ù.



console=ttySAC0 root=/dev/nfs nfsroot=192.168.1.111:/opt/FriendlyARM/tiny210/root_qtopia_qt4 ip=192.168.1.70:192.168.1.111:192.168.1.111:255.255.255.0:tiny210.arm9.net:eth0:off


°¢°¢ÀÇ 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


2. 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

2.1 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
- Target file system directory
- Target file system image creation tools (including yaffs2 )
- GUI Linux logo creation tools logomaker

2.1.1 Unpacking the source code

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

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

#mkdir /tmp/linux

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

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

# cd /opt/FriendlyARM/tiny210/linux
# tar xvzf /tmp/linux/linux-2.6.35-20111118.tar.gz


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

(3) Extract the target file system installation

#cd /opt/FriendlyARM/tiny210/linux
#tar xvzf /tmp/linux/rootfs_qtopia_qt4-
20111118.tgz

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

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

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

# cd /opt/FriendlyARM/tiny210/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-" ÀÌÈÄÀÇ ÆÄÀÏ À̸§Àº ¼Ò½º º£Æ÷ ³¯Â¥ À̹ǷΠ´Þ¶ó Áú ¼ö ÀÖ½À´Ï´Ù.

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

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

# cd /opt/FriendlyARM/tiny210/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 ¼Ò½º°¡ ¼³Ä¡ µË´Ï´Ù.

(6) Extract the installation QtE-4.7.0 source code

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

# cd /opt/FriendlyARM/tiny210/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°³ÀÇ µð·ºÅ丮°¡ »ý¼ºµÇ°í °ü·Ã ¼Ò½ºÆÄÀÏ µéÀÌ ¼³Ä¡ µË´Ï´Ù.

(7) 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/tiny210/linux
# tar xvzf /tmp/linux/busybox-1.17.2-20101110.tgz


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

(8) Extract the installation of Linux sample program

# cd /opt/FriendlyARM/tiny210/linux
# tar xvzf /tmp/linux/examples-mini210-20111118.tgz


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

2.1.2 Create the target file system extract

ÀϹÝÀûÀ¸·Î "rootfs_qtopia_qt4-20111118.tgz" À» »ç¿ëÇÏ¸é µË´Ï´Ù.

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

# cd /opt/FriendlyARM/tiny210/linux
# tar xvzf /tmp/linux/rootfs_qtopia_qt4-20111118.tgz


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

- 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.35)

2.1.3 Extract the installation file system image tools

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

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

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

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

2.1.4 Unpacking LogoMaker

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

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

s3c6410

3. Configure and compile the kernel
3.1 Kernel compile


¸®´ª½º¿Í ¾Èµå·ÎÀ̵å´Â µ¿ÀÏÇÑ ¹öÁ¯ÀÇ Ä¿³Î°ú ¼Ò½º¸¦ »ç¿ëÇÏ°í ÀÖ½À´Ï´Ù. ´ÜÁö OS¿¡ µû¶ó¼­ Ä¿³Î ¼³Á¤¸¸ ´Ù¸¦ »ÓÀÔ´Ï´Ù.

# cd /opt/FriendlyARM/tiny210/android/ linux-2.6.35.7
# cp mini210_linux_defconfig .config

started compiling the kernel, you can also use the make command directly. ¶ÇÇÑ make menuconfig ¸í·ÉÀ» ÀÌ¿ëÇؼ­ Ä¿³Î ¿É¼ÇµéÀ» ´Ù½Ã ¼³Á¤ ÇÒ ¼ö ÀÖ½À´Ï´Ù.

# make

s3c6410

ÄÄÆÄÀÏÀÌ ¿Ï·áµÇ¸é arch/arm/boot µð·ºÅ丮¿¡ zImage ÆÄÀÏÀÌ »ý¼ºÀÌ µË´Ï´Ù. ¿©±â¿¡ »ý¼±µÈ Ä¿³Î(zImage) ÆÄÀÏÀ» °³¹ßº¸µå¿¡ SDºÎÆÃÀ» ÀÌ¿ëÇؼ­ ǻ¡ ÇÏ½Ã¸é µË´Ï´Ù.

3.2 Configue and compiling busybox

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


# cp fa.config .config
# make


s3c6410


4 Make target file system image

4.1 Make yaffs2 file system image

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


Nand Flash°¡ SLC Type(K9F2G/4Gxx) ÀÎ °æ¿ì¿¡´Â ¾Æ·¡¿Í °°ÀÌ Build ÇÕ´Ï´Ù.

# mkyaffs2image-128M rootfs_qtopia_qt4 rootfs_qtopia_qt4.img

Nand Flash°¡ MLC(K9F8Gxx) Type ÀÎ °æ¿ì¿¡´Â ¾Æ·¡¿Í °°ÀÌ Build ÇÕ´Ï´Ù.

# mkyaffs2image-mlc2 rootfs_qtopia_qt4 rootfs_qtopia_qt4_mlc2.img

5. Qtopia-2.2.0
5.1 Compile Qtopia-2.2.0

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

5.2 Compile and run x86 versions of Qtopia-2.2.0

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


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

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

# ./run

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

s3c6410


s3c6410

5.3 Compile and run ARM versions of Qtopia-2.2.0

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

# cd /opt/FriendlyARM/tiny210/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" ÆÄÀÏÀ» ¼öÁ¤Çؼ­ »ç¿ëÇϽñ⠹ٶø´Ï´Ù.


6. QtE-4.7.0
6.1 compile and run ARM versions QtE-4.7.0

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

# cd /opt/FriendlyARM/tiny210/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


7. Qt-Extended-4.4.3
7.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

7.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