Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

LinuxǶÈëʽ²ËÄñÖ®Âà µãÁÁledµÆ

ÕÛÌÚÁËÒ»ÍíÉÏ£¬ÔÚLinuxÏÂÖÕÓÚ°ÑS3C2440¿ª·¢°åµÄLEDµÆ¸øµãÁÁÁË£¬Ð˷ܲ»ÒÑ£¬ÓÚÊÇÖøÎÄÒÔ¼ÇÖ®¡£
³ÌÐòÊÇΤ¶«É½ÀÏʦ±àÖøµÄ¡¶Ç¶ÈëʽLinuxÓ¦Óÿª·¢ÍêÈ«Êֲᡷ£¬±àÒëÔ´ÎļþÕÕÊéÉÏ×ö¾Í¿ÉÒÔÁË£¬Ö÷ÒªÊÇÔÚÉÕµ½¿ª·¢°åÉϳöÁËÎÊÌâ
ʹÓÃJflash-s3c2440Èí¼þ燒д³ÌÐòµÄʱºò³öÏÖÁËÈçϵÄÎÊÌ⣺
ʹÓÃJflash-s3c2440Èí¼þ燒д³ÌÐòµÄʱºò³öÏÖÁËÈçϵÄÎÊÌ⣺
[root@localhost for_linux]# ./Jflash-s3c2440 /work/hardware/led_on/led_on.bin /t=5
+------------------------------------+
| SEC JTAG FLASH for 2440+
| modified by Quasar 2003.9.22+
+------------------------------------+
> flashType=5
> S3C2440X(ID=0x0032409d) is detected.
[K9S1208 NAND Flash JTAG Programmer]

ÔÚÍíÉÏÕÒµ½ÁËÒ»¸öOpenJTAG燒д¹¤¾ß£¬¸ã¶¨£¡
¹ØÓÚOpenJTAG燒д¹¤¾ß£¬²Î¼û£º
http://www.100ask.net/showtopic.aspx?page=end&topicid=2465#12537
OpenJTAGÉÕд¹¤¾ß¹ý³ÌÈçÏ£º
[root@localhost oflash]# ./oflash 1 2 0 0 0 led_on.bin
+---------------------------------------------------------+
| Flash Programmer v1.3 for OpenJTAG of www.100ask.net |
| OpenJTAG is a USB to JTAG & RS232 tool based FT2232 |
| This programmer supports both of S3C2410X & S3C2440 |
| Author: Email/MSN(thisway.diy@163.com), QQ(17653039) |
+---------------------------------------------------------+
Usage:
1. oflash, run with cfg.txt or prompt
2. oflash [file], write [file] to flash with prompt
3. oflash [-f config_file]
4. oflash [jtag_type] [cpu_type] [flash_type] [read_or_write] [offset] [file]
Select the JTAG type:
0. OpenJTAG
1. Dongle JTAG(parallel port)
Enter the number: 1
Select the CPU:
1. S3C2410X
2. S3C2440X
Enter the number: 2
S3C24X0 detected, cpuID = 0x0032409d
[Main Menu]
0:Nand Flash prog 1:Nor Flash prog 2:Memory Rd/Wr 3:Exit
Select the function to test:0
[NAND Flash JTAG Programmer]
Scan nand flash:
Device 0: NAND 128MiB 3,3V 8-bit, sector size 128 KiB
Total size: 128 MiB
0:Nand Flash Program 1:Nand Flash Print BlkPage 2:Exit
Select the


Ïà¹ØÎĵµ£º

Èý¿î Linux ϵÄÃâ·Ñ×ÀÃ漶ɱ¶¾Èí¼þ(ͼ)


ÓÉÓÚ Linux Á¼ºÃµÄÓû§È¨ÏÞ¹ÜÀíÌåϵ£¬²¡¶¾ÍùÍùÊÇ Linux ϵͳ¹ÜÀíÔ±×îºó²ÅÐèÒª¿¼ÂǵÄÎÊÌâ¡£ÒÔÍù£¬Linux ÉϵÄɱ¶¾Èí¼þÖ÷ÒªÊÇΪÆóÒµµÄÓʼþºÍÎļþ·þÎñÆ÷ËùÉè¼ÆµÄ¡£Èç½ñ£¬Ëæ×Å Linux ×ÀÃæÓû§ÊýÁ¿µÄÔö³¤£¬×ÀÃæÓû§ÔÚÊÜÒæÓÚ Linux ϵͳ¶Ô²¡¶¾½ÏÇ¿µÄÌìÈ»ÃâÒßÁ¦µÄͬʱ£¬Ò²ÐèҪɱ¶¾Èí¼þÇåÀí´ÓÍøÂç»òUÅÌ´øÀ´µÄWIndows²¡¶¾¡£¾¡¹ÜÄÇЩ ......

linux Ö´Ðкǫ́ÃüÁî

nohupÃüÁîÓ÷¨¼ò½é
nohup
Èç¹ûÄãÕýÔÚÔËÐÐÒ»¸ö½ø³Ì£¬¶øÇÒÄã¾õµÃÔÚÍ˳öÕÊ»§Ê±¸Ã½ø³Ì»¹²»»á½áÊø£¬ÄÇô¿ÉÒÔʹÓÃn o h u pÃüÁî¡£¸ÃÃüÁî¿ÉÒÔÔÚÄãÍ˳öÕÊ»§Ö®ºó¼ÌÐøÔËÐÐÏàÓ¦µÄ½ø³Ì¡£n o h u p¾ÍÊDz»¹ÒÆðµÄÒâ˼( no hang up)¡£
¸ÃÃüÁîµÄÒ»°ãÐÎʽΪ£º
´úÂë:
nohup command &
ʹÓÃnohupÃüÁîÌá½»×÷Òµ
Èç¹ûʹÓÃn o h u pà ......

LinuxÏÂʹÓÃQt±à³ÌÖÐÎÄÂÒÂëµÄ½â¾ö


ÔÚQTÖпÉÒÔÖ±½ÓʹÓÃQTextCodecÀ´×ª»»×Ö·û´®µÄ±àÂë¡£
ÀýÈ磬ÎÒÃÇÏëÔÚ³ÌÐòÖÐʹÓÃÖÐÎÄ£¬ÀàËÆtr£¨“飬ÄãºÃÂ𣿔£©¡£ÎÒÃÇÒªÔÚmainº¯ÊýÖÐÔö¼ÓÒÔϼ¸ÌõÓï¾ä£¬ÖØÐÂÉèÖÃÒ»ÏÂĬÈϵıàÂëÆ÷¡£
Ïȵ÷ÓÃÏÂÃæÁ½¸öº¯ÊýÖ®Ò»
QTextCodec *codec=QTextCodec::codecForName(”gbk”);
QTextCodec *codec=QTextCodec ......

Linux Socketѧϰ±Ê¼Ç£¨2£© SocketµÄ½éÉÜ

Socket ¾ÍÊÇÌ×½Ó×Ö¡£
Socket ¿ÉÒԺͱ¾µØĿ¼°ó¶¨£¬Ò²¿ÉÒÔºÍÒ»¸öIPµØÖ·°ó¶¨¡£
int socketpair(sa_family, socket_type, protocal,  int sz[2]);
sa_family: AF_LOCAL( ºÍ AF_UNIXÒ»Ñù) ±íʾ±¾µØµÄsocket Á¬½Ó
                 A ......

Linux³£ÓÃÃûÁî 1Îļþ²Ù×÷ÃüÁî

1. ls£ºÁгöÎļþÁбí
       ¸ñʽ£º ls  option£¬option¿ÉÒÔÊÇ£º -a ÁгöÒþ²ØÎļþ£¬-l ÁгöÎļþÏêϸÐÅÏ¢
2. pwd£º²é¿´µ±Ç°Ä¿Â¼
3. mkdir£º ´´½¨Ä¿Â¼
4. touch£º ´´½¨Îļþ
5. cd£º Çл»Ä¿Â¼
6. cp£º ¿½±´Îļþ/Ŀ¼
      ¸ñʽ£º cp  srcfile desfi ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ