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

dnw linux version

dnw in linux
Use xterm as a serial terminal. In Fedora 9
use "yum install screen" to install screen package.
Plug the USB-UART cable, see if there is a ttyUSB0 in /dev
Enter "screen /dev/ttyUSB0 115200,cs8,-ixon,-ixon,istrip" to connect to USB-UART.
Screen as Serial Terminal
Download the driver and dnw application from dwn_linux.rar
Unzip the rar, you will get 2 folder.
dnw - dnw application for download image to device
secbulk - Sumsung SMDK driver.
Build dnw application.
#cd dnw
#gcc -o dnw dnw.c
Build driver.
#cd secbulk
#make -C /lib/modules/`uname -r`/build M=`pwd` modules
dnw in linux
Fix for your product 
Our product ID is different with origin release, change the product ID in secbulk.c
// { USB_DEVICE(0x5345, 0x1234)},
{ USB_DEVICE(0x4E8, 0x1234)},
Change the RAM address from 0x32000000 to 0xC0000000 in dnw.c
// *((unsigned long*)file_buffer) = 0x32000000; //load address
*((unsigned long*)file_buffer) = 0xC0000000; //load address
Add checksum after for loop in dwn.c
*((unsigned short*)(file_buffer + file_stat.st_size + 8)) = sum;
Change the block size to 512, because the block size is define to 512 in secbulk.c. If you don't change the size, small image download is ok, but large image like kernel, file system will not success.
// size_t block_size = remain_size / 100;
size_t block_size = 512;
Start to download
Insert the USB-UART cable, and see if you get the ttyUSB0
#cd /dev
#ls
Set the xterm to serial console,
#screen /dev/ttyUSB0 115200,cs8,-ixon,-ixon,istrip
Power on the MB
Load the driver,
#cd secbullk
#insmod secbulk.ko
Use dmesg to see if our driver can find the MB
#dmesg
You need to see the "endpoint found!", if you can't see this , change your product id and do it again.
#secbulk:bulk out endpoint found!
Hit key to enter the uboot mode, and enter dnw to wait image transfer
#dnw
Enter the dnw folder, and use dnw application to transfer image
#cd dnw
#./dnw your_image_path
Re


Ïà¹ØÎĵµ£º

Linux¶à½ø³ÌÏà¹ØÄÚÈÝ

Linux¶à½ø³ÌÏà¹ØÄÚÈÝ
°æȨÉùÃ÷£º¿ÉÒÔÈÎÒâתÔØ£¬µ«×ªÔØʱ±ØÐë±êÃ÷Ô­×÷Õßcharlee¡¢Ô­Ê¼Á´½Óhttp://tech.idv2.com/2006/10/14/linux-multiprocess-info/ÒÔ¼°±¾ÉùÃ÷¡£
×î½üÔÚÓà perl дһ¸öLinuxϵĶà½ø³ÌÊØ»¤½ø³Ì£¬Òò´ËÑо¿ÁËÒ»ÏÂLinuxϵĽø³ÌÏà¹ØµÄ֪ʶ¡£ÏÖ½«ÐĵÃ×ܽáһϡ£Ö÷ÒªÊǹØÓÚ½ø³Ì´´½¨ºÍ»ØÊÕ¡£
fork
SIGCHLDÐÅ ......

ARM LinuxÇý¶¯µÄ±àÒ루2.6Äںˣ©

1¡¢½«Çý¶¯Ô´Âë·ÅÔÚ/drivers/char/ÏÂ
 
2¡¢ÐÞ¸Ädrivers/char/KconfigÎļþ£¬Ìí¼ÓÒÔÏÂÄÚÈÝ£º
config My_Buttons
        tristate "My_Buttons test"
        depends on ARCH_S3C2440
        default y if ARCH_S3C2 ......

Why do We Choose Linux?

Linux, named after the inventor, Linus Torvalds, is a so different OS for everyone against Windows. To everyone who used to use Windows, Linux need us to do more for everything which we usually do by computer, such as playing a video.
Someone says, Linux is for the ones who are good at the computer ......

¹ØÓÚLinux²Ù×÷ϵͳ½ø³Ì²Ù×÷£¨ps£©ÃüÁî¼ò½é

1¡¢ps ½ø³Ì״̬²éѯÃüÁî¡£
¡¡¡¡ÃüÁî¸ñʽ#ps [[Ñ¡Ïî]]
¡¡¡¡³£ÓÃÑ¡Ï
¡¡¡¡¡ñ -a,ÏÔʾËùÓÐÓû§½ø³Ì¡£
¡¡¡¡¡ñ -e,ÏÔʾ½ø³Ì»·¾³±äÁ¿¡£
¡¡¡¡¡ñ -l,¸ø³ö³¤ÁÐ±í¡£
¡¡¡¡¡ñ -r,Ö»ÏÔʾÕýÔÚÔËÐеĽø³Ì¡£
¡¡¡¡¡ñ -S,Ôö¼ÓCPUʱ¼äºÍÒ³Ãæ³ö´í¡£
¡¡¡¡¡ñ -w,°´¿í¸ñʽÏÔʾÊä³ö¡£Ä¬ÈÏÇé¿öÏ£¬Èç¹ûÊä³ö½á¹û²»ÄÜÔÚÒ»ÐÐÀïÏÔʾ£¬½«»áËõ¶Ì½ ......

linuxÏÂÊä³ö±ê×¼´íÎóµÄ·½·¨


GNU glibcÌṩһ¸ö¶ÔprintfµÄÀ©Õ¹£¬Ö±½Óprintf("%m"),¿ÉÒÔÊä³ö±ê×¼µÄ´íÎóÐÅÏ¢£¬ÀýÈçÏÂÃ棺
#include <stdio.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <string.h>
int main()
{
         ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ