ÀÌ ¸Å´º¾óÀº JKÀüÀÚ(JK Electronics) ¿¡ ÀÇÇؼ ¹ø¿ª, ¼öÁ¤, ÀÛ¼º µÇ¾ú°í ¼ÒÀ¯±Ç ¶ÇÇÑ JKÀüÀÚ(JK Electronics)ÀÇ °ÍÀÔ´Ï´Ù. ¼ÒÀ¯±ÇÀÚÀÇ Çã°¡¸¦ ¹ÞÁö ¾Ê°í ¹«´ÜÀ¸·Î ¼öÁ¤, »èÁ¦Çϰųª ¹èÆ÷ ÇÒ ¼ö ¾ø½À´Ï´Ù. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
S3C6410 Start Kit Linux User Guide |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
* Update history - 2011.1.13 : Ãʱâ Release |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
1.¸®´ª½º ½Ã¸®¾ó Æ÷Æ® Å͹̳Π¿¬°á 1.2 ¸®´ª½º ÇÁ·Î±×·¥ Å×½ºÆ® 1.2.1 MP3 Player 1.2.2 Using USB Storage 1.2.3 Using SD Memory card 1.2.4 ½Ã¸®¾ó Æ÷Æ®¸¦ ÀÌ¿ëÇÑ PCÆÄÀÏ Àü¼Û 1.2.5 LED ÄÁÆ®·Ñ 1.2.6 Button Test 1.2.7 Serial Test 1.2.8 Buzzer Test 1.2.9 LCD Backlight Test 1.2.10 I2C EEPROM Test 1.2.11 ADC Test 1.2.12 TV-OUT Test 1.2.13 USB wireless card or SD WiFi Test 1.2.14 Set network connection 1.2.15 How to set MAC address 1.2.16 Telnet log in 1.2.17 FTP setup 1.2.18 NFS ¼ºñ½º 1.2.19 RTC Test 1.2.20 Auto-run on boot time 1.2.21 How to screenshot 1.2.22 View memory information |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
1.¸®´ª½º ½Ã¸®¾ó Æ÷Æ® Å͹̳Π¿¬°á
¸®´ª½º ¼ÒÇÁÆ®¿þ¾î¸¦ °³¹ßÇÒ ¶§ ´ëºÎºÐÀÇ °³¹ßÀÚµéÀº ½Ã¸®¾ó Å͹̳ÎÀ» ÅëÇؼ °ÅÀÇ ¸ðµç ÀÛ¾÷À» ÇÏ°Ô µË´Ï´Ù. °³¹ßº¸µå°¡ Ãʱ⠺ÎÆýÿ¡ ´ÙÀ½°ú °°Àº ºñ½ÁÇÑ È¸éÀ» º¸°Ô µÉ °ÍÀÔ´Ï´Ù. °³¹ß ȯ°æ ±¸Ãà°ú ÄÄÆÄÀÏ °úÁ¤À» ÇϱâÀü¿¡ ¸®´ª½º¿¡¼ ¸î¸î ÇÁ·Î±×·¥ Å×½ºÆ®¸¦ ¸ÕÀú Çغ¸µµ·Ï ÇÏ°Ú½À´Ï´Ù. |
Test procedure name | led-player leds | ºñ°í |
Source file name | led-player.c, led.c | |
Example source file location | CD ROM\Linux\examples.tgz | |
Device name | /dev/leds | |
Kernal driver source code location |
Test procedure name | leds.cgi | ºñ°í |
Source file name | leds.cgi | |
Example source file location | °³¹ßº¸µåÀÇ /www directory | |
leds.cgi ´Â ¹ÙÀ̳ʸ® ÆÄÀÏÀÌ Shell ½ºÅ©¸³Æ® ¼Ò½º ÆÄÀÏ ÀÔ´Ï´Ù. À¥ ºê¶ó¿ìÀú¿¡¼ leds.html ÆÄÀÏ¿¡ ÀÇÇؼ È£ÃâÀÌ µË´Ï´Ù. |
Test procedure name | buttons | ºñ°í |
Source file name | Buttons_test.c | |
Example source file location | CD ROM\Linux\examples.tgz | |
Device name | /dev/buttons | |
Kernal driver source code location | Linux-2.6.36/drivers/char/mini6410_buttons.c |
¸®´ª½º °³¹ßº¸µåÀÇ ½Ã¸®¾ó Æ÷Æ® À̸§Àº "/dev/ttySAC0,1,2,3" Áß¿¡ ÇÑ°¡Áö ÀÔ´Ï´Ù. ¿©±â¼´Â ½Ã¸®¾ó Æ÷Æ® 2¹øÀ» Å×½ºÆ® ÇÏ·Á°í ÇÕ´Ï´Ù. ÀÌ Å×½ºÆ®¸¦ À§Çؼ PCÀÇ ½Ã¸®¾ó Å͹̳Π¼¼ÆÃÀ» ´ÙÀ½°ú °°ÀÌ ¼³Á¤ ÇÕ´Ï´Ù.
baud rate 115200, No flow control ³ª¸ÓÁö´Â ±âº»°ªÀ¸·Î ¼¼Æà ÇÕ´Ï´Ù. ¹°·Ð °³¹ßº¸µåÀÇ COM2Æ÷Æ®´Â ´Ù¸¥ PC³ª ¾Æ´Ï¸é °³¹ß¿ë PCÀÇ ´Ù¸¥ ½Ã¸®¾ó Æ÷Æ®¿¡ ¿¬°áÀÌ µÇ¾î ÀÖ¾î¾ß ÇÕ´Ï´Ù.
¾Æ·¡ ¸í·ÉÀ» ½ÇÇàÇÏ°í Ÿ°Ù º¸µå¿Í ¿¬°áµÈ PC Å͹̳Πâ¿¡¼ ¾Æ¹« ±ÛÀÚ³ª ÀÔ·ÂÀ» Çؼ Å×½ºÆ®¸¦ ÇØ º¾´Ï´Ù.
COM2: Å×½ºÆ®
#armcomtest -d /dev/ttySAC1 -o
COM3: Å×½ºÆ®
#armcomtest -d /dev/ttySAC2 -o
Test procedure name | pwm_test | ºñ°í |
Source file name | pwm_test.c | |
Example source file location | CD ROM\Linux\examples.tgz | |
Device name | ||
Kernal driver source code location |
¸®´ª½º Å͹̳Πâ¿¡¼ "pwm_test" ¸í·ÉÀ» ÀÔ·ÂÇϸé PWM ¿¡ ÀÇÇؼ ºÎÀú°¡ ¿ï¸®°Ô µÇ°í "+", "-" Å°¸¦ ÀÔ·ÂÇؼ Ãâ·Â ÁÖÆļö¸¦ Á¶Á¤ ÇÒ ¼ö ÀÖ½À´Ï´Ù. "ESC" Å°¸¦ ÀÔ·ÂÇϸé Å×½ºÆ®°¡ Á¾·á µË´Ï´Ù.
Note : ¾ÆÁ÷ ¹Ì ±¸ÇöµÈ ±â´É ÀÔ´Ï´Ù.
LCD Backlight device file : "/dev/backlight-1wire" ÀÔ´Ï´Ù. LCD Backlight Á¶Á¤Àº 0 ~ 127 ´Ü°è ±îÁö·Î Á¶Á¤ ÇÒ ¼ö ÀÖ½À´Ï´Ù. Å×½ºÆ®·Î ¾Æ·¡ ¸í·ÉÀº LCD Backlight¸¦ OFF ÇÏ´Â ¸ê¸í ÀÔ´Ï´Ù.
# echo 0 > /dev/backlight
±âº»ÀûÀ¸·Î´Â ¾Æ·¡¿Í °°ÀÌ 15 Á¤µµÀÇ ·¹º§ÀÇ ÄÁÆ®·Ñ ÇÏ¸é µË´Ï´Ù.
echo 15 > /dev/backlight
¸í·Éâ¿¡¼ "i2c -w" ¸¦ ÀÔ·ÂÇÏ¸é °³¹ßº¸µåÀÇ 24C08 EEPROM ¸Þ¸ð¸®¿¡ £¨0x00-0xff£©°ªÀ» Write ÇÕ´Ï´Ù.
¸í·Éâ¿¡¼ "i2c -r" ¸¦ ÀÔ·Â Çϸé 24C08 EEPROM ¸Þ¸ð¸®¿¡¼ µ¥ÀÌÅ͸¦ ÀÐ¾î ¿É´Ï´Ù.
Test procedure name | adc-test | ºñ°í |
Source file name | adc-test.c | |
Example source file location | CD ROM\Linux\examples.tgz | |
Device name | /dev/adc | |
Kernal driver source code location | Linux-2.6.36/drivers/char/mini6410_adc.c |
# adc-test ¸í·ÉÀ» ÀÔ·ÂÇÏ¸é °³¹ßº¸µåÀÇ °¡º¯ÀúÇ× W1ÀÇ °ªÀ» ÀÐ¾î¼ Å͹̳Πâ¿¡ º¸¿© ÁÝ´Ï´Ù. µå¶óÀ̹ö µîÀ» ÀÌ¿ëÇؼ W1ÀÇ °ªÀ» º¯°æÇØ º¾´Ï´Ù.
"/usr/bin" µð·ºÅ丮ÀÇ tv-test ¸í·ÉÀ» ½ÇÇà ÇÕ´Ï´Ù. ÀÌ ÇÁ·Î±×·¥Àº ÀÚµ¿À¸·Î "/usr/bin/TestVectors/wanted.264" ÆÄÀÏÀ» Ç÷¹ÀÌ Çؼ TVÃâ·ÂÀ¸·Î º¸¿© ÁÝ´Ï´Ù.}
#cd /usr/bin
#tv-test
1.2.13 USB wireless card or SD WiFi Test
´ÙÀ½°ú °°Àº 3°¡Áö Wireless ¼³Á¤ ÅøÀ» Á¦°ø ÇÕ´Ï´Ù. "/usr/sbin" µð·ºÅ丮¿¡ ½ÇÇà ÆÄÀÏÀÌ ÀÖ½À´Ï´Ù. ¿©±â¼ Å×½ºÆ®ÇÑ USB Wireless network card ¸ðµ¨Àº TL-WN321G+ ¿Í SD-Wifi ¸ðµâ ÀÔ´Ï´Ù. ¾Æ·¡ ±×¸²µé¿¡¼ º¸¿©Áö´Â °ÍµéÀ» ³×Æ®¿öÅ© Ä«µåÀÇ Á¾·ù¿¡ µû¶ó¼ Á¶±Ý¾¿ ´Þ¶ó Áú ¼ö ÀÖ½À´Ï´Ù.
- scan-wifi - Scan nearby wireless networks
- start-wifi - Used to open the wireless network connection
- stop-wifi - Stop using the wireless network contact
(1) Scan nearby wireless networks
#scan-wifi
À§ÀÇ ±×¸²¿¡¼ º¸¸é 3°³ÀÇ wireless AP¸¦ ¹ß°ß ÇÏ¿´°í ½ÅÈ£ ¼¼±â´Â "63%" ÀΰÍÀ» ¾Ë¼ö ÀÖ½À´Ï´Ù. ±×¸®°í º¸¾È ¼³Á¤ÀÌ µÇ¾î ÀÖ½À´Ï´Ù.
(2) Wireless network connection
¾Æ·¡ ¸í·ÉÀ» ÀÌ¿ëÇؼ ¿¬°áÀ» Çϰųª ÆĶó¹ÌÅ͸¦ ÁÖ¾î¼ ´Ù¸¥ AP¿¡ ¿¬°á ÇÒ ¼öµµ ÀÖ½À´Ï´Ù.
#start-wifi
¹«¼± ³×Æ®¿öÅ©ÀÇ º¸¾È Á¾·ù¿¡ µû¶ó¼ ´ÙÀ½°ú °°Àº ¸ðµå¸¦ ÁöÁ¤ ÇÒ ¼ö ÀÖ½À´Ï´Ù.
mode -
"wpa", "wpa2", "wep", "none".
"none" ¼³Á¤Àº º¸¾ÈÀÌ µÇÁö ¾ÊÀº ¹«¼± ³×Æ®¿öÅ© ¿¬°á ¸ðµå ÀÔ´Ï´Ù.
ssid - ¿¬°á ÇÒ ¹«¼± APÀÇ À̸§À» ÁöÁ¤ ÇÕ´Ï´Ù. ¿¹¸¦ µé¸é "FriendlyARM4", "NETGEAR" µî ÀÔ´Ï´Ù.
password - º¸¾ÈµÈ ¹«¼± ³×Æ®¿öÅ©ÀÇ Æнº¿öµå¸¦ ÀÔ·Â ÇÕ´Ï´Ù. º¸¾È ¹®ÀÚ¿©¼ ȸ鿡 Ç¥½Ã µÇÁö´Â ¾Ê½À´Ï´Ù.
* Connect the open wireless network without a password
Step1 : scan-wifi ¸í·ÉÀ» ÀÌ¿ëÇؼ wireless network À̸§À» ã½À´Ï´Ù.
Step2 : start-wifi none FriendlyARM-Test ¸í·ÉÀ» ÀÌ¿ëÇؼ wireless network ¿¡ ¿¬°á ÇÕ´Ï´Ù.
Àá½ÃÈÄ¿¡ °³¹ßº¸µå¿¡ IP ¾îµå·¹½º 192.168.3.10°¡ ÇÒ´çÀÌ µÇ°í º¸µå¿Í ¿¬°áµÈ °³¹ß¿ë PC IP address "192.168.3.1" ·Î Ping¸íÀ» Çغ¸¸é ¿¬°áÀÌ µÈ°ÍÀ» ¾Ë¼ö ÀÖ½À´Ï´Ù.
* Connection requires a password to secure wireless network
º¸¾ÈÀÌ ¾ø´Â ³×Æ®¿öÅ©¿¡ ¿¬°áÇÏ´Â ÀýÂ÷¿Í ºñ½ÁÇÏ°Ô ÇÏ¸é µË´Âµ¥, ÇÑ°¡Áö º¸¾È ÀÇ Á¾·ù¿Í Æнº¿öµå¸¦ Ãß°¡ÇØ ÁÖ¾î¾ß ÇÕ´Ï´Ù.
Step1 : scan-wifi ¸í·ÉÀ» ÀÌ¿ëÇؼ wireless network À̸§À» ã½À´Ï´Ù. À§¿¡¼¿Í´Â ´Ù¸£°Ô "FriendlyARM-Test" AP°¡ º¸¾ÈÀÌ ¼³Á¤µÇ¾î ÀÖÀ½À» ¾Ë ¼ö ÀÖ½À´Ï´Ù.
Step2 : "start-wifi wpa FriendlyARM-Test test1234" ¸í·ÉÀ¸·Î º¸¾È ¼³Á¤µÈ ¹«¼± AP ¿¡ ¿¬°á ÇÕ´Ï´Ù.
¹«¼± ³×Æ®¿öÅ©¸¦ Á¾·á ÇÒ¶§¿¡´Â "stop-wifi" ¸í·ÉÀ¸·Î ¿¬°áÀ» ´Ý½À´Ï´Ù.
³×Æ®¿öÅ© ¼³Á¤ ¸í·ÉÀº ÀϹÝÀûÀÎ ¸®´ª½º ¸Ó½Å°ú Å©°Ô ´Ù¸£Áö´Â ¾Ê½À´Ï´Ù. ÀϹÝÀûÀÎ ÀýÂ÷´Â ¾Æ·¡¿Í °°°í »ç¿ëÀÚÀÇ ³×Æ®¿öÅ© ȯ°æ¿¡ µû¶ó¼ IPµîÀº ´Ù¸¦ ¼ö ÀÖ½À´Ï´Ù.
°³¹ß¿ë PCÀÇ ¸í·É ÇÁ·ÒÇÁÆ® â¿¡¼
"ipconfig" ¸í·ÉÀ» Çغ¸¸é °³¹ß¿ë PC¿¡ ÇÒ´çµÈ IPÁÖ¼Ò¸¦ ¾Ë ¼ö ÀÖ½À´Ï´Ù.
°³¹ß º¸µå¿¡¼ "/etc/eth0-setting" ÆÄÀÏÀÇ ³»¿ëÀ» È®ÀÎ ÇÕ´Ï´Ù.
³×Æ®¿öÅ©¼³Á¤ÀÌ ¸ÂÁö ¾ÊÀ¸¸é "/etc/eth0-setting" ÆÄÀÏÀ» ¿¾î¼ ¼öÁ¤ ÇÕ´Ï´Ù.
# vi /etc/eth0-setting
°³¹ßº¸µå¸¦ ÀçºÎÆà ÇÏÁö ¾Ê°í DNS¼³Á¤ Á¤º¸¸¦ ¹Ù·Î Àû¿ëÇÏ·Á¸é ¾Æ·¡¿Í °°ÀÌ ÇÏ¸é µË´Ï´Ù. °³¹ßº¸µå¸¦ Àç ºÎÆà Çß´Ù¸é DNSÁ¤º¸ Ãß°¡ÇÏ´Â °úÁ¤Àº ÇÏÁö ¾Ê¾Æµµ µË´Ï´Ù.
¸ÕÀú ÀÌÀü¿¡ ÀÖ´ø ³×Æ®¿öÅ© Á¤º¸¸¦ »èÁ¦ ÇÕ´Ï´Ù.
# rm /etc/resolv.conf
³×Æ®¿öÅ© Á¤º¸ ÆÄÀÏÀ» »õ·Î »ý¼º ÇÕ´Ï´Ù.
#touch /etc/resolv.conf
DNS Á¤º¸¸¦ Ãß°¡ ÇÕ´Ï´Ù. ¹°·Ð vi ¿¡µðÅ͸¦ ÀÌ¿ëÇؼ ¼öÁ¤ Çصµ µË´Ï´Ù.
# echo nameserver 202.96.128.86 >> /etc/resolv.conf
¸ðµç ¼³Á¤ÀÌ ¿Ï·áµÇ¸é °³¹ß º¸µå¸¦ Àç ºÎÆà ½ÃÅ°°í "ifconfig" ¸í·ÉÀ¸·Î ¼³Á¤ ³»¿ëÀÌ ¿Ã¹Ù¸£°Ô ¹Ý¿µÀÌ µÇ¾ú´ÂÁö È®ÀÎ ÇÕ´Ï´Ù.
ping ¸í·ÉÀ» Çغ¾´Ï´Ù.
ÀÎÅÍ³Ý ºê¶ó¿ìÀú¸¦ ½ÇÇà½ÃÄÑ º¾´Ï´Ù.
°³¹ßº¸µå»óÀÇ MAC address¸¦ ipconfig ¸í·ÉÀ¸·Î ¼³Á¤ ÇÒ ¼ö ÀÖ½À´Ï´Ù. ¿ì¼± ifconfig ¸í·ÉÀ¸·Î ÇöÀçÀÇ ¼³Á¤À» º¾´Ï´Ù.
# ifconfig
ÇöÀçÀÇ MAC address°¡ "08£º90£º90£º90£º90£º90" ·Î ¼³Á¤µÈ°ÍÀ» º¼ ¼ö ÀÖ½À´Ï´Ù. ÀÌ ¼³Á¤°ªÀº Ä¿³Î ³×Æ®¿öÅ© µå¶óÀ̹ö¿¡ ±âº»°ªÀ¸·Î ¼³Á¤µÈ ÁÖ¼Ò ÀÔ´Ï´Ù. ÀÌ ¼³Á¤ °ªµéÀº ´ÙÀ½ ¸í·É¿¡ ÀÇÇؼ ´Ù½Ã ¼³Á¤ ÇÒ ¼ö ÀÖ½À´Ï´Ù.
# ifconfig eth0 down
# ifconfig eth0 hw ether 00:11:AA:BB:CC:DD
±×·¯°í ³ª¼ ´Ù½Ã ³×Æ®¿öÅ©¸¦ Å×½ºÆ® ÇØ º¾´Ï´Ù.
# ifconfig eth0 up
# ifconfig
# ping 192.168.1.1
°³¹ßº¸µå´Â ºÎÆýÿ¡ ÀÚµ¿À¸·Î telnet ¼ºñ½º°¡ ½ÃÀ۵Ǿî ÀÖ¾î¼ ´ÙÀ½°ú °°ÀÌ Windows ¿î¿µÃ¼Á¦¿¡¼ "telnet 192.168.0.46" ¸í·ÉÀ¸·Î °³¹ßº¸µåÀÇ telnet ¼½Ã½º¿¡ ¿¬°á ÇÒ ¼ö ÀÖ½À´Ï´Ù.
#! /bin/sh PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin: runlevel=S prevlevel=N umask 022 export PATH runlevel prevlevel # # Trap CTRL-C &c only in this shell so we can interrupt subprocesses. # trap ":" INT QUIT TSTP /bin/hostname FriendlyARM [ -e /proc/1 ] || /bin/mount -n -t proc none /proc [ -e /sys/class ] || /bin/mount -n -t sysfs none /sys [ -e /dev/tty ] || /bin/mount -t ramfs none /dev /bin/mount -n -t usbfs none /proc/bus/usb echo /sbin/mdev > /proc/sys/kernel/hotplug /sbin/mdev -s /bin/hotplug # mounting file system specified in /etc/fstab mkdir -p /dev/pts mkdir -p /dev/shm /bin/mount -n -t devpts none /dev/pts -o mode=0622 /bin/mount -n -t tmpfs tmpfs /dev/shm /bin/mount -n -t ramfs none /tmp /bin/mount -n -t ramfs none /var mkdir -p /var/empty mkdir -p /var/log mkdir -p /var/lock mkdir -p /var/run mkdir -p /var/tmp /sbin/hwclock -s syslogd /etc/rc.d/init.d/netd start echo " " > /dev/tty1 echo "Starting networking..." > /dev/tty1 sleep 1 /etc/rc.d/init.d/httpd start echo " " > /dev/tty1 echo "Starting web server..." > /dev/tty1 sleep 1 /etc/rc.d/init.d/leds start echo " " > /dev/tty1 echo "Starting leds service..." > /dev/tty1 echo " " sleep 1 echo " " > /dev/tty1 /etc/rc.d/init.d/alsaconf start echo "Loading sound card config..." > /dev/tty1 echo " " /sbin/ifconfig lo 127.0.0.1 /etc/init.d/ifconfig-eth0 /bin/qtopia & echo " " > /dev/tty1 echo "Starting Qtopia, please waiting..." > /dev/tty1 |