ÀÌ ¸Å´º¾óÀº 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.¸®´ª½º ½Ã¸®¾ó Æ÷Æ® Å͹̳Π¿¬°á

¸®´ª½º ¼ÒÇÁÆ®¿þ¾î¸¦ °³¹ßÇÒ ¶§ ´ëºÎºÐÀÇ °³¹ßÀÚµéÀº ½Ã¸®¾ó Å͹̳ÎÀ» ÅëÇؼ­ °ÅÀÇ ¸ðµç ÀÛ¾÷À» ÇÏ°Ô µË´Ï´Ù. °³¹ßº¸µå°¡ Ãʱ⠺ÎÆýÿ¡ ´ÙÀ½°ú °°Àº ºñ½ÁÇÑ È­¸éÀ» º¸°Ô µÉ °ÍÀÔ´Ï´Ù. °³¹ß ȯ°æ ±¸Ãà°ú ÄÄÆÄÀÏ °úÁ¤À» ÇϱâÀü¿¡ ¸®´ª½º¿¡¼­ ¸î¸î ÇÁ·Î±×·¥ Å×½ºÆ®¸¦ ¸ÕÀú Çغ¸µµ·Ï ÇÏ°Ú½À´Ï´Ù.

s3c6410

1.2 ¸®´ª½º ÇÁ·Î±×·¥ Å×½ºÆ®
1.2.1 MP3 Player

Madplay´Â Æ÷Åͺí¿ë console based MP3 Player ÇÁ·Î±×·¥ ÀÔ´Ï´Ù. °¡Àå °£´ÜÇÑ Å×½ºÆ® ¹æ¹ýÀº ¾Æ·¡¿Í °°ÀÌ ÄܼÖâ¿¡¼­ ¸í·ÉÀ» ½ÇÇà ÇÕ´Ï´Ù.

#madplay your.mp3 (mp3 file name)

s3c6410

madplay ÇÁ·Î±×·¥Àº Linux-2.6.36 ALSAÀÎÅÍÆäÀ̽º, ¿Àµð¿À µå¶óÀ̹ö¸¦ ÀÌ¿ëÇؼ­ Play ÇÕ´Ï´Ù. ±×¸®°í ÇöÀç ½ÇÇàÁßÀÎ mayplay ÇÁ·Î±×·¥À» Á¾·á ÇÏ·Á¸é ÄܼÖâ¿¡¼­ Ctrl+c ¸¦ ´©¸£¸é µË´Ï´Ù.

1.2.2 Using USB Storage

USB ¸Þ¸ð¸®¸¦ °³¹ßº¸µå¿¡ »ðÀÔÇϸé ÀÚµ¿À¸·Î /udisk ¶ó´Â µð·ºÅ丮·Î ¸¶¿îÆ® µË´Ï´Ù. ½ÇÁ¦ÀûÀ¸·Î´Â /dev/mdisk µð¹ÙÀ̽º ÀÔ´Ï´Ù. USB ½ºÅ丮Áö µð¹ÙÀ̽º´Â ÀϹÝÀûÀ¸·Î FAT32/VFAT Æ÷¸Ë À̾î¾ß ÇÕ´Ï´Ù.

s3c6410

s3c6410

1.2.3 Using SD Memory card

SD ¸Þ¸ð¸® Ä«µå¸¦ °³¹ßº¸µå¿¡ »ðÀÔÇϸé ÀÚµ¿À¸·Î /sdcard ¶ó´Â µð·ºÅ丮·Î ¸¶¿îÆ® µË´Ï´Ù. ÀϹÝÀûÀ¸·Î FAT32/VFAT Æ÷¸Ë À̾î¾ß ÇÕ´Ï´Ù.

s3c6410

s3c6410


1.2.4 ½Ã¸®¾ó Æ÷Æ®¸¦ ÀÌ¿ëÇÑ PCÆÄÀÏ Àü¼Û

°³¹ßº¸µå¿Í PC¸¦ ½Ã¸®¾ó ÄÉÀϺí·Î ¿¬°áÇÑ ´ÙÀ½ "rz" or "sz" ¸í·ÉÀ» ÀÌ¿ëÇؼ­ Ÿ°Ù º¸µå¿¡ ½Ã¸®¾ó Åë½ÅÀ» ÅëÇؼ­ ÆÄÀÏÀ» Àü¼Û ÇÒ ¼ö ÀÖ½À´Ï´Ù.

(1) "sz" ¸í·ÉÀ» ÀÌ¿ëÇÑ ÆÄÀÏ º¸³»±â(Ÿ°Ù º¸µå¿¡¼­ PC·Î Àü¼Û)

HyperTerminal ¿¡¼­ "Receive File(ÆÄÀϹޱâ)" ¸Þ´ºÀ» ¼±Åà ÇÏ°í "¹Þ±â" ¹öÆ°À» ´©¸¨´Ï´Ù.

s3c6410

±×¸®°í ³ª¼­ ÄÜ¼Ö ¸í·Éâ¿¡¼­ "sz /root/Documents/sumflower.bmp" ¸í·ÉÀ» ½ÇÇà ÇÕ´Ï´Ù. ½Ã¸®¾ó ¸í·ÉÀ¸·Î ³Ê¹« »çÀÌÁî°¡ Å« ÆÄÀÏÀ» Àü¼ÛÇÏ´Â µ¥¿¡´Â ½Ã°£ÀÌ ¸¹ÀÌ ¼Ò¿ä µË´Ï´Ù. "sumflower.bmp" ÀÇ À̸§Àº Ÿ°Ù º¸µå¿¡ µû¶ó¼­ ´Ù¸¥ À̸§ÀÌ µÉ ¼ö ÀÖ½À´Ï´Ù. ¹Ýµå½Ã ÆÄÀϸíÀ» ÁöÁ¤ÇÒ¶§ µð·ºÅ丮 ·çÆ®¿¡¼­ºÎÅÍ Àüü °æ·Î¸íÀ» ¸ðµÎ Àû¾î ÁÖ¾î¾ß ÇÕ´Ï´Ù.

s3c6410

(2) "rz" ¸í·ÉÀ» ÀÌ¿ëÇÑ ÆÄÀÏ ¹Þ±â(PC¿¡¼­ Ÿ°Ù º¸µå·Î Àü¼Û)

HyperTerminal ¿¡¼­ "Send File(ÆÄÀϺ¸³»±â)" ¸Þ´ºÀ» ¼±Åà ÇÑ´ÙÀ½ ¾Æ·¡°ú °°ÀÌ ¼³Á¤ ÇÕ´Ï´Ù.

s3c6410

"Send" ¹öÆ°À» ´©¸£¸é ÆÄÀÏ Àü¼ÛÀÌ ½ÃÀÛ µË´Ï´Ù.

s3c6410

1.2.5 LED ÄÁÆ®·Ñ

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 ÆÄÀÏ¿¡ ÀÇÇؼ­ È£ÃâÀÌ µË´Ï´Ù.

(1) LED Server
°³¹ßº¸µå°¡ ºÎÆÃÀÌ µÇ¸é ÀÚµ¿À¸·Î LED Service( /etc/rc.d/init.d/leds )ÇÁ·Î±×·¥ÀÌ ½ÃÀÛ µË´Ï´Ù. ÀÌ°ÍÀº ½ÇÁ¦ÀûÀ¸·Î led-player ½ºÅ©¸³Æ®¿¡ ÀÇÇؼ­ ºÒ·ÁÁö°í ÀÌ°ÍÀº /tmp µð·ºÅ丮 ¹Ø¿¡¼­ ½ÇÇàÀÌ µÇ°í led-control ÆÄÀÏÀÌ »ý¼º µË´Ï´Ù. ±×¸®°í ¾Æ·¡¿Í °°ÀÌ ´Ù¸¥ Pipe line ÆĶó¹ÌÅÍ¿¡ ÀÇÇؼ­ Á¦¾î¸¦ ÇÒ ¼ö °¡ ÀÖ½À´Ï´Ù.

#echo 0 0.2 > /tmp/led-control
User LED 4¹øÀ» 0.2ÃÊ °£°ÝÀ¸·Î ±ô¹Ú °Å¸®µµ·Ï ÇÕ´Ï´Ù.

±×¹Û¿¡µµ ¾Æ·¡¿Í °°Àº ¸í·ÉÀ» ³»¸± ¼ö °¡ ÀÖ½À´Ï´Ù.

#echo 1 0.2 >/tmp/led-control
#/etc/rc.d/init.d/leds stop
#/etc/rc.d/init.d/leds start


(2) Individual control LED
/bin/leds ¸¦ ÅëÇؼ­ 1°³ÀÇ LED¸¦ ÄÁÆ®·Ñ ÇÒ ¼ö ÀÖ½À´Ï´Ù.

# led
Usage: leds led_no 0|1

led_no´Â 0 ~ 3±îÁö ¼±Åà ÇÒ ¼ö ÀÖ°í, 0:Off, 1:On ÀÔ´Ï´Ù. ¾Æ·¡´Â LED3À» On ½ÃÅ°´Â ¸í·É ÀÔ´Ï´Ù.
#led 2 1

1.2.6 Button Test

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  

¾Æ·¡ ¸í·ÉÀ» ½ÇÇàÇϸé ÇöÀç ¹öÆ°µéÀÇ »óŸ¦ Å͹̳Πâ¿¡ º¸¿© ÁÝ´Ï´Ù.

#buttons

s3c6410

1.2.7 Serial Test

¸®´ª½º °³¹ßº¸µåÀÇ ½Ã¸®¾ó Æ÷Æ® À̸§Àº "/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

s3c6410

1.2.8 Buzzer Test

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" Å°¸¦ ÀÔ·ÂÇϸé Å×½ºÆ®°¡ Á¾·á µË´Ï´Ù.

s3c6410

1.2.9 LCD Backlight Test

Note : ¾ÆÁ÷ ¹Ì ±¸ÇöµÈ ±â´É ÀÔ´Ï´Ù.

LCD Backlight device file : "/dev/backlight-1wire" ÀÔ´Ï´Ù. LCD Backlight Á¶Á¤Àº 0 ~ 127 ´Ü°è ±îÁö·Î Á¶Á¤ ÇÒ ¼ö ÀÖ½À´Ï´Ù. Å×½ºÆ®·Î ¾Æ·¡ ¸í·ÉÀº LCD Backlight¸¦ OFF ÇÏ´Â ¸ê¸í ÀÔ´Ï´Ù.
# echo 0 > /dev/backlight

±âº»ÀûÀ¸·Î´Â ¾Æ·¡¿Í °°ÀÌ 15 Á¤µµÀÇ ·¹º§ÀÇ ÄÁÆ®·Ñ ÇÏ¸é µË´Ï´Ù.
echo 15 > /dev/backlight

1.2.10 I2C EEPROM Test

¸í·Éâ¿¡¼­ "i2c -w" ¸¦ ÀÔ·ÂÇÏ¸é °³¹ßº¸µåÀÇ 24C08 EEPROM ¸Þ¸ð¸®¿¡ £¨0x00-0xff£©°ªÀ» Write ÇÕ´Ï´Ù.


s3c6410

¸í·Éâ¿¡¼­ "i2c -r" ¸¦ ÀÔ·Â Çϸé 24C08 EEPROM ¸Þ¸ð¸®¿¡¼­ µ¥ÀÌÅ͸¦ ÀÐ¾î ¿É´Ï´Ù.

s3c6410

1.2.11 ADC Test

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ÀÇ °ªÀ» º¯°æÇØ º¾´Ï´Ù.

s3c6410

1.2.12 TV-OUT Test

"/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

s3c6410

#scan-wifi

s3c6410

À§ÀÇ ±×¸²¿¡¼­ º¸¸é 3°³ÀÇ wireless AP¸¦ ¹ß°ß ÇÏ¿´°í ½ÅÈ£ ¼¼±â´Â "63%" ÀΰÍÀ» ¾Ë¼ö ÀÖ½À´Ï´Ù. ±×¸®°í º¸¾È ¼³Á¤ÀÌ µÇ¾î ÀÖ½À´Ï´Ù.

(2) Wireless network connection

¾Æ·¡ ¸í·ÉÀ» ÀÌ¿ëÇؼ­ ¿¬°áÀ» Çϰųª ÆĶó¹ÌÅ͸¦ Á־ ´Ù¸¥ AP¿¡ ¿¬°á ÇÒ ¼öµµ ÀÖ½À´Ï´Ù.

#start-wifi

s3c6410

¹«¼± ³×Æ®¿öÅ©ÀÇ º¸¾È Á¾·ù¿¡ µû¶ó¼­ ´ÙÀ½°ú °°Àº ¸ðµå¸¦ ÁöÁ¤ ÇÒ ¼ö ÀÖ½À´Ï´Ù.
mode - "wpa", "wpa2", "wep", "none". "none" ¼³Á¤Àº º¸¾ÈÀÌ µÇÁö ¾ÊÀº ¹«¼± ³×Æ®¿öÅ© ¿¬°á ¸ðµå ÀÔ´Ï´Ù.
ssid - ¿¬°á ÇÒ ¹«¼± APÀÇ À̸§À» ÁöÁ¤ ÇÕ´Ï´Ù. ¿¹¸¦ µé¸é "FriendlyARM4", "NETGEAR" µî ÀÔ´Ï´Ù.
password - º¸¾ÈµÈ ¹«¼± ³×Æ®¿öÅ©ÀÇ Æнº¿öµå¸¦ ÀÔ·Â ÇÕ´Ï´Ù. º¸¾È ¹®ÀÚ¿©¼­ È­¸é¿¡ Ç¥½Ã µÇÁö´Â ¾Ê½À´Ï´Ù.

* Connect the open wireless network without a password

Step1 : scan-wifi ¸í·ÉÀ» ÀÌ¿ëÇؼ­ wireless network À̸§À» ã½À´Ï´Ù.
s3c6410

Step2 : start-wifi none FriendlyARM-Test ¸í·ÉÀ» ÀÌ¿ëÇؼ­ wireless network ¿¡ ¿¬°á ÇÕ´Ï´Ù.

s3c6410

Àá½ÃÈÄ¿¡ °³¹ßº¸µå¿¡ IP ¾îµå·¹½º 192.168.3.10°¡ ÇÒ´çÀÌ µÇ°í º¸µå¿Í ¿¬°áµÈ °³¹ß¿ë PC IP address "192.168.3.1" ·Î Ping¸íÀ» Çغ¸¸é ¿¬°áÀÌ µÈ°ÍÀ» ¾Ë¼ö ÀÖ½À´Ï´Ù.

s3c6410

* Connection requires a password to secure wireless network

º¸¾ÈÀÌ ¾ø´Â ³×Æ®¿öÅ©¿¡ ¿¬°áÇÏ´Â ÀýÂ÷¿Í ºñ½ÁÇÏ°Ô ÇÏ¸é µË´Âµ¥, ÇÑ°¡Áö º¸¾È ÀÇ Á¾·ù¿Í Æнº¿öµå¸¦ Ãß°¡ÇØ ÁÖ¾î¾ß ÇÕ´Ï´Ù.

Step1 : scan-wifi ¸í·ÉÀ» ÀÌ¿ëÇؼ­ wireless network À̸§À» ã½À´Ï´Ù. À§¿¡¼­¿Í´Â ´Ù¸£°Ô "FriendlyARM-Test" AP°¡ º¸¾ÈÀÌ ¼³Á¤µÇ¾î ÀÖÀ½À» ¾Ë ¼ö ÀÖ½À´Ï´Ù.

s3c6410

Step2 : "start-wifi wpa FriendlyARM-Test test1234" ¸í·ÉÀ¸·Î º¸¾È ¼³Á¤µÈ ¹«¼± AP ¿¡ ¿¬°á ÇÕ´Ï´Ù.

¹«¼± ³×Æ®¿öÅ©¸¦ Á¾·á ÇÒ¶§¿¡´Â "stop-wifi" ¸í·ÉÀ¸·Î ¿¬°áÀ» ´Ý½À´Ï´Ù.

1.2.14 Set network connection

³×Æ®¿öÅ© ¼³Á¤ ¸í·ÉÀº ÀϹÝÀûÀÎ ¸®´ª½º ¸Ó½Å°ú Å©°Ô ´Ù¸£Áö´Â ¾Ê½À´Ï´Ù. ÀϹÝÀûÀÎ ÀýÂ÷´Â ¾Æ·¡¿Í °°°í »ç¿ëÀÚÀÇ ³×Æ®¿öÅ© ȯ°æ¿¡ µû¶ó¼­ IPµîÀº ´Ù¸¦ ¼ö ÀÖ½À´Ï´Ù.
°³¹ß¿ë PCÀÇ ¸í·É ÇÁ·ÒÇÁÆ® â¿¡¼­ "ipconfig" ¸í·ÉÀ» Çغ¸¸é °³¹ß¿ë PC¿¡ ÇÒ´çµÈ IPÁÖ¼Ò¸¦ ¾Ë ¼ö ÀÖ½À´Ï´Ù.

s3c6410

°³¹ß º¸µå¿¡¼­ "/etc/eth0-setting" ÆÄÀÏÀÇ ³»¿ëÀ» È®ÀÎ ÇÕ´Ï´Ù.

s3c6410

³×Æ®¿öÅ©¼³Á¤ÀÌ ¸ÂÁö ¾ÊÀ¸¸é "/etc/eth0-setting" ÆÄÀÏÀ» ¿­¾î¼­ ¼öÁ¤ ÇÕ´Ï´Ù.

# vi /etc/eth0-setting

s3c6410

°³¹ßº¸µå¸¦ ÀçºÎÆà ÇÏÁö ¾Ê°í DNS¼³Á¤ Á¤º¸¸¦ ¹Ù·Î Àû¿ëÇÏ·Á¸é ¾Æ·¡¿Í °°ÀÌ ÇÏ¸é µË´Ï´Ù. °³¹ßº¸µå¸¦ Àç ºÎÆà Çß´Ù¸é DNSÁ¤º¸ Ãß°¡ÇÏ´Â °úÁ¤Àº ÇÏÁö ¾Ê¾Æµµ µË´Ï´Ù.
¸ÕÀú ÀÌÀü¿¡ ÀÖ´ø ³×Æ®¿öÅ© Á¤º¸¸¦ »èÁ¦ ÇÕ´Ï´Ù.
# rm /etc/resolv.conf

³×Æ®¿öÅ© Á¤º¸ ÆÄÀÏÀ» »õ·Î »ý¼º ÇÕ´Ï´Ù.
#touch /etc/resolv.conf

DNS Á¤º¸¸¦ Ãß°¡ ÇÕ´Ï´Ù. ¹°·Ð vi ¿¡µðÅ͸¦ ÀÌ¿ëÇؼ­ ¼öÁ¤ Çصµ µË´Ï´Ù.
# echo nameserver 202.96.128.86 >> /etc/resolv.conf

¸ðµç ¼³Á¤ÀÌ ¿Ï·áµÇ¸é °³¹ß º¸µå¸¦ Àç ºÎÆà ½ÃÅ°°í "ifconfig" ¸í·ÉÀ¸·Î ¼³Á¤ ³»¿ëÀÌ ¿Ã¹Ù¸£°Ô ¹Ý¿µÀÌ µÇ¾ú´ÂÁö È®ÀÎ ÇÕ´Ï´Ù.

s3c6410

ping ¸í·ÉÀ» Çغ¾´Ï´Ù.

s3c6410

ÀÎÅÍ³Ý ºê¶ó¿ìÀú¸¦ ½ÇÇà½ÃÄÑ º¾´Ï´Ù.

s3c6410


1.2.15 How to set MAC address

°³¹ßº¸µå»óÀÇ MAC address¸¦ ipconfig ¸í·ÉÀ¸·Î ¼³Á¤ ÇÒ ¼ö ÀÖ½À´Ï´Ù. ¿ì¼± ifconfig ¸í·ÉÀ¸·Î ÇöÀçÀÇ ¼³Á¤À» º¾´Ï´Ù.


# ifconfig

s3c6410

ÇöÀçÀÇ 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

1.2.16 Telnet log in

°³¹ßº¸µå´Â ºÎÆýÿ¡ ÀÚµ¿À¸·Î telnet ¼­ºñ½º°¡ ½ÃÀ۵Ǿî À־ ´ÙÀ½°ú °°ÀÌ Windows ¿î¿µÃ¼Á¦¿¡¼­ "telnet 192.168.0.46" ¸í·ÉÀ¸·Î °³¹ßº¸µåÀÇ telnet ¼­½Ã½º¿¡ ¿¬°á ÇÒ ¼ö ÀÖ½À´Ï´Ù.

s3c6410



1.2.17 FTP setup

°³¹ß º¸µåÀÇ FTP¼­¹ö ¼­ºñ½º´Â ºÎÆýà ÀÚµ¿À¸·Î ½ÃÀ۵Ǵ ¼­ºñ½º ÀÔ´Ï´Ù. Windows °³¹ß PC¿¡¼­ ¾Æ·¡¿Í °°ÀÌ ·Î±×ÀÎÇؼ­ Å×½ºÆ®¸¦ ÇØ º¼¼ö ÀÖ½À´Ï´Ù. Âü°í·Î ¿©±â¼­´Â »ç¿ëÀÚ ID¿Í Æнº¿öµå°¡ ¸ðµå "plg", "plg" ·Î ÇÏ¿´½À´Ï´Ù. FTPÀü¼ÛÀÌ ¿Ï·áµÇ´Â /home/plg/test.mp3 ÆÄÀÏÀÌ Àִ°ÍÀ» È®ÀÎ ÇÒ ¼ö ÀÖ½À´Ï´Ù.



1.2.18 NFS ¼­ºñ½º

°³¹ß º¸µå¸¦ ´ÙÀ½ ¸í·ÉÀ¸·Î NFS¼­¹ö(server's IP address is 192.168.0.41)¿¡ ¿¬°á ÇÕ´Ï´Ù.

NFS¼­¹ö PCÀÇ IPÁÖ¼Ò¿Í NFS Shareµð·ºÅ丮´Â ´ÙÀ½°ú °°½À´Ï´Ù.
s3c6410

# mount -t nfs -o nolock 192.168.0.41:/home/nfs_share /mnt

s3c6410


NFS ¼­¹ö¿Í ¸¶¿îÆ®°¡ ¼º°øÇϸé /mnt µð·ºÅ丮¿¡ Ãß°¡°¡ µË´Ï´Ù. NFS µð·ºÅ丮ÀÇ ¸¶¿îÆ® ÇØÁ¦´Â ¾Æ·¡¿Í °°ÀÌ ÇÕ´Ï´Ù.

# umount /mnt


1.2.19 RTC Test

¾ÆÁ÷ º¸¿ÏÀÌ ÇÊ¿äÇÑ ¸í·É ÀÔ´Ï´Ù.

¸®´ª½º¿¡¼­ ÀϹÝÀûÀ¸·Î "date" ¸í·É¾î·Î ½Ã°£À» ¼³Á¤ ÇÒ ¼ö ÀÖ½À´Ï´Ù. ÀÌ °³¹ßº¸µå¿¡¼­´Â "hwclock" ¸í·É¿¡ ÀÇÇؼ­ ½Ã°£À» ¼³Á¤ ÇÒ ¼ö ÀÖ½À´Ï´Ù.

(1) date -s 042916352007 #Set time 2007-04-29 16:34
(2) hwclock -w #Set the time to deposit S3C6410 Internal RTC

1.2.20 Auto-run on boot time

°³¹ßº¸µå ºÎÆýÿ¡ ÀÚµ¿À¸·Î ´Ù¾çÇÑ ÇÁ·Î±×·¥µéÀ» ½ÇÇà ½Ãų ¼ö ÀÖ½À´Ï´Ù. °³¹ßº¸µåÀÇ "/etc/init.d/rcS" ÆÄÀÏ¿¡¼­ ¼³Á¤ ÇÒ ¼ö ÀÖ½À´Ï´Ù.
/etc/init.d/rcS ÆÄÀÏÀÇ ³»¿ë ÀÔ´Ï´Ù.

#! /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

1.2.21 How to screenshot

"snapshot" ¸í·ÉÀ» ÀÌ¿ëÇؼ­ LCDÈ­¸éÀÇ ³»¿ëÀ» png ±×·¡ÇÈ ÆÄÀÏ·Î ÀúÀå ÇÒ ¼ö ÀÖ½À´Ï´Ù. ½ÇÁ¦ ¸í·ÉÀº ¾Æ·¡¿Í °°½À´Ï´Ù.

#snapshot pic.png

1.2.22 View memory information

¡°cat /proc/meminfo" ¸í·ÉÀ» ÀÌ¿ëÇؼ­ °³¹ßº¸µåÀÇ ¸Þ¸ð¸® Á¤º¸¸¦ ¾Ë ¼ö ÀÖ½À´Ï´Ù.

linux

¶ÇÇÑ S3C6410ÀÇ Multimedia co-processorÀÇ Á¤º¸¸¦ º¸±âÀ§Çؼ­´Â cat /proc/videomem" ¸í·ÉÀ» ÀÌ¿ëÇؼ­ º¼ ¼ö ÀÖ½À´Ï´Ù.

linux

±×¸®°í °³¹ßº¸µåÀÌ ¹°¸®ÀûÀÎ ¸Þ¸ð¸® »çÀÌÁî´Â ¸®´ª½º ºÎÆýà U-boot ·Î±ëÀ» ÅëÇؼ­µµ º¼ ¼ö ÀÖ½À´Ï´Ù.DRAM »çÀÌÁî´Â °³¹ßº¸µå¿¡ µû¶ó¼­ 128MB ~ 1.0GB Àϼöµµ ÀÖ½À´Ï´Ù.

linux