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



 

S5PV210 SDK °³¹ßº¸µå Android °³¹ßÀÚ °¡À̵å

 

* Update history

- 2011.1.13 : Ãʱâ Release


 

1. Create Android development environment

À̹ø Àå¿¡¼­´Â ¾Èµå·ÎÀÌµå ½Ã½ºÅÛÀÇ Ä¿³Î ÄÄÆÄÀÏ ¹æ¹ý°ú ÆÄÀÏ ½Ã½ºÅÛ ±¸Ãà µî¿¡ ´ëÇؼ­ ¼³¸í ÇÕ´Ï´Ù. ¾Èµå·ÎÀÌµå ¾îÇø®ÄÉÀÌ¼Ç °³¹ß¿¡ ´ëÇؼ­´Â Android Application Developer Guide ¸¦ ÂüÁ¶ÇϽñ⠹ٶø´Ï´Ù.

1.1 ¾Èµå·ÎÀÌµå °³¹ß È£½ºÆ® PCÀÇ ¸®´ª½º ¼³Á¤

±âº»ÀûÀÎ °³¹ßȯ°æÀº VMWare6.0 ¿¡¼­ ¸®´ª½º È£½ºÆ®(Fedora 14, Fedora 15 32bit version)°ú Å©·Î½º ÄÄÆÄÀÏ·¯, ÆÄÀÏ ½Ã½ºÅÛ ±¸Ãà Åø(mktool) üÀÎ µîÀ» ÅëÇؼ­ Å×½ºÆ® ÇÏ¿´½À´Ï´Ù.
´Ù¸¥ ¸®´ª½º È£½ºÆ®¿¡¼­´Â ÄÄÆÄÀϽà ¿¡·¯°¡ ¹ß»ý ÇÒ ¼ö ÀÖ½À´Ï´Ù. Fedora's official address: http://fedoraproject.org/
Fedora14 ¼³Ä¡ÀÌ DNS, DHCP ¼­¹ö¸¸ »ç¿ëÇÏÁö ¾Ê´Â ´Ù¸é ´Ù¸¥ ¼³Á¤ÇÏ°í´Â ¹®Á¦°¡ µÇÁö ¾Ê½À´Ï´Ù.

Fedora14¿¡¼­ º¸Åë Å͹̳ΠÇÁ·Î±×·¥¿¡ ´ëÇÑ ¼³Á¤Àº /etc/pam.d/gdm ¿¡ ÀÖ½À´Ï´Ù.

# sudo vim /etc/pam.d/gdm



#auth required pam_succeed_if.so user != root quiet

gdm ÆÄÀÏ¿¡ À§ÀÇ ³»¿ëÀ» ¼öÁ¤(ÁÖ¼®Ã³¸®)ÇÑ ÈÄ ÀúÀåÇÕ´Ï´Ù.

# sudo vim /etc/pam.d/gdm-password



#auth required pam_succeed_if.so user != root quiet


gdm-password ÆÄÀÏ¿¡ À§ÀÇ ³»¿ëÀ» ¼öÁ¤(ÁÖ¼®Ã³¸®)ÇÑ ÈÄ ÀúÀåÇÕ´Ï´Ù.

À§ÀÇ °úÁ¤À» ¼öÇàÇÏ´Â ÀÌÀ¯´Â Fedora14ÀÇ GUI ȯ°æ¿¡¼­ root °èÁ¤À¸·Î ·Î±×ÀÎÀ» °¡´ÉÇÏ°Ô Çϱâ À§Çؼ­ ÇÏ´Â °ÍÀÔ´Ï´Ù.
¹°·Ð À§ÀÇ ÆÄÀϵéÀ» ¼öÁ¤ÇÏÁö ¾Ê°í ÀϹݰèÁ¤À¸·Î ·Î±×ÀÎ ÇÑ ÈÄ¿¡ Å͹̳ÎÀ» ¿­¾î¼­ root °èÁ¤À¸·Î su -l root ¸í·ÉÀ» ÀÌ¿ëÇؼ­ root ·Î ÀüȯÀ» Çصµ µË´Ï´Ù.

1.2 Install cross-build compiler

Å©·Î½º ÄÄÆÄÀÏ·¯·Î  arm-linux-gcc-4.5.1 ÄÄÆÄÀÏ·¯¸¦ ¼³Ä¡ ÇØ¾ß ÇÕ´Ï´Ù. ÀÌ ÄÄÆÄÀÏ·¯´Â armv6 Instruction set and support hardware floating-point operations µîÀ» Áö¿ø ÇÕ´Ï´Ù. ÀÚ¼¼ÇÑ ¼³Ä¡ ¹æ¹ýÀº ¸®´ª½º °³¹ßÀÚ °¡À̵带 ÂüÁ¶ÇϽñ⠹ٶø´Ï´Ù.

1. Linux °³¹ßÀÚ °¡À̵å(Ä¿³Î ÄÄÆÄÀÏ, ÆÄÀϽýºÅÛ, Qt Æ÷Æà µî)

1.3 Install mktools


¾Èµå·ÎÀ̵å ÆÄÀϽýºÅÛ »ý¼º Åø ¼³Ä¡ ÀÔ´Ï´Ù. ÀÚ¼¼ÇÑ »çÇ×Àº ¸®´ª½º °³¹ßÀÚ °¡À̵带 ÂüÁ¶ÇϽñ⠹ٶø´Ï´Ù.

1. Linux °³¹ßÀÚ °¡À̵å(Ä¿³Î ÄÄÆÄÀÏ, ÆÄÀϽýºÅÛ, Qt Æ÷Æà µî)

2.1 Unpacking the source code

¸ÕÀú ÀÛ¾÷ µð·ºÅ丮 "/opt/FriendlyARM/tiny210/android" ¸¦ »ý¼º ÇÕ´Ï´Ù.

# mkdir -p /opt/FriendlyARM/tiny210/android

(1) Android source code package Áغñ

Fedora 9 ¸®´ª½º ½Ã½ºÅÛÀÇ tmp µð·ºÅ丮¿¡ "/tmp/androi" ¸¦ »ý¼º ÇÕ´Ï´Ù. ±×¸®°í Á¦°ø CD ROM ¿¡¼­ ¾Èµå·ÎÀÌµå ¼Ò½º Àüü¸¦ º¹»ç ÇÕ´Ï´Ù.

# mkdir /tmp/android

Note : ¿©±â¼­ ¾Èµå·ÎÀÌµå ¼Ò½º¸¦ tmp µð·ºÅ丮¸¦ »ý¼ºÇÏ°í º¹»çÇÏ´Â °úÁ¤Àº ½ÇÁ¦ »ç¿ëÀÚ ¸¶´Ù ´Ù¸¦ ¼ö ÀÖ½À´Ï´Ù. ´ÜÁö ¿©±â¿¡¼­´Â ¿¹½Ã¸¦ ÇÑ °Í »ÓÀÔ´Ï´Ù.

(2) Extract the kernel source to install Android

ÀÛ¾÷µð·ºÅ丮 "/opt/FriendlyARM/tiny210/android" ¿¡¼­ ½ÇÇà ÇØ¾ß ÇÕ´Ï´Ù.

# cd /opt/FriendlyARM/tiny210/android
# tar xvzf /tmp/android/android-kernel-2.6.35.7-20111118.tar.gz


(3) Extract the package to install Android Source Code

# cd /opt/FriendlyARM/tiny210/android
# tar xvzf /tmp/android/android-2.3.1-fs-20110925.tar.gz


(4) Extract the Android root file system

# cd /opt/FriendlyARM/tiny210/android
# tar xvzf /tmp/android/rootfs_android-20110925.tar.gz

2.2 Linux kernel configuration and compilation

¾Èµå·ÎÀ̵å¿Í ÀÓº£µðµå ¸®´ª½ºÀÇ Ä¿³ÎÀºÁ¶±Ý ´Ù¸¨´Ï´Ù. ÇÏÁö¸¸  ºôµåÇÏ´Â ¹æ¹ýÀº ±²ÀåÈ÷ µ¿ÀÏ ÇÕ´Ï´Ù. ÄÄÆÄÀϽà ±âº» Ä¿³Î ¼³Á¤À¸·Î ÄÄÆÄÀÏ Çϱ⸦ ±ÇÀå ÇÕ´Ï´Ù.

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


make menuconfig ¸í·ÉÀ¸·Î Ä¿³Î ¼³Á¤À» ¼öÁ¤ ÇÒ ¼ö ÀÖ½À´Ï´Ù. ºôµå°¡ ¿Ï·áµÇ¸é "arch/arm/boot" µð·ºÅ丮¿¡ zImage ÆÄÀÏÀÌ »ý¼º µË´Ï´Ù.

2.4 Create Android from source

¾Èµå·ÎÀÌµå ½Ã½ºÅÛ ¼Ò½º´Â ³Ê¹«³ª ¹æ´ëÇؼ­ ÄÄÆÄÀÏ ÇÏ´Â µ¥¿¡¸¸ 1.5-4 hours Á¤µµ°¡ ¼Ò¿äµÉ Á¤µµ ÀÔ´Ï´Ù. ±×·¡¼­ ÄÄÆÄÀÏÀ» Á»´õ ½±°Ô Çϱâ À§Çؼ­ build-android, genrootfs.sh 2°³ÀÇ ½ºÅ©¸³Æ®¸¦ Á¦°ø ÇÕ´Ï´Ù.

# cd /opt/FriendlyARM/tiny210/android/Android-2.3.1
# ./build-android

Android-2.3 systemÀÇ ºôµå°¡ ½ÃÀÛ µË´Ï´Ù. ºôµå°¡ ¿Ï·áµÇ¸é ¾Æ·¡ ¸í·ÉÀ» ½ÇÇàÇؼ­ ¾Èµå·ÎÀ̵å ÆÄÀÏ ½Ã½ºÅÛ(rootfs_dir)À» »ý¼º ÇÕ´Ï´Ù.

# ./genrootfs.sh

android

2.5 Android Filesystem

2.5.1 yaffs2 filesystem

mkyaffs2image-128M ÅøÀ» ÀÌ¿ëÇؼ­ yaffs2 ÆÄÀϽýºÅÛ Æ÷¸ËÀ» »ý¼º ÇÒ ¼ö ÀÖ½À´Ï´Ù.

# cd /opt/FriendlyARM/tiny210/android/Android-2.3.1
# mkyaffs2image-128M rootfs_dir rootfs_android.img