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
Ïà¹ØÎĵµ£º
uname -a
cat /proc/version
cat /etc/issue
lsb_release -a (ÊÊÓÃÓÚËùÓеÄlinux£¬°üÀ¨Redhat¡¢SuSE¡¢DebianµÈ·¢Ðа棬µ«ÊÇÔÚdebianÏÂÒª°²×°lsb£¬²»°²×°¼ÓÉÏ£a²ÎÊý²é¿´²¿·Ö)
È磺
·¢Ðа棺
# cat /etc/issue
Äںˣº
# uname -r
......
Ò». ÊØ»¤½ø³Ì¼°ÆäÌØÐÔ
(1)×îÖØÒªµÄÌØÕ÷ÊǺǫ́ÔËÐÐ
(2)±ØÐëÓëÔËÐÐÇ°µÄ»·¾³¸ôÀ뿪À´¡£ÕâЩ»·¾³Í¨³£ÊÇÊØ»¤½ø³Ì´ÓÖ´ÐÐËüµÄ¸¸½ø³ÌÖм̳ÐÏÂÀ´µÄ¡£»·¾³°ü À¨»¹Î´¹Ø±ÕµÄÎļþÃèÊö·û£¬¿ØÖÆÖնˣ¬»á»°ºÍ½ø³Ì×飬¹¤×÷Ŀ¼ÒÔ¼°Îļþ´´½¨ÑÍÄ£µÈ¡£
(3)Æô¶¯·½Ê½¡£¿ÉÒÔÓÉÓû§ÖÕ¶ËÖ´ÐУ¬Ò²¿ÉÒÔ´ÓÆô¶¯½Å±¾/etc/rc.dÖÐÆô¶¯¡£
×ÜÖ®£¬± ......
LinuxÏÂת»»×Ö·û¼¯(UTF8ת»»)£¨×ª£© ÊÕ²Ø
ÔÚLINUXÉϽøÐбàÂëת»»Ê±,¼È¿ÉÒÔÀûÓÃiconvº¯Êý×å±à³ÌʵÏÖ,Ò²¿ÉÒÔÀûÓÃiconvÃüÁîÀ´ÊµÏÖ,Ö»²»¹ýºóÕßÊÇÕë¶ÔÎļþµÄ,¼´½«Ö¸¶¨Îļþ´ÓÒ»ÖÖ±àÂëת»»ÎªÁíÒ»ÖÖ±àÂë¡£
Ò»¡¢ÀûÓÃiconvº¯Êý×å½øÐбàÂëת»»
iconvº¯Êý×åµÄÍ·ÎļþÊÇiconv.h,ʹÓÃÇ°Ðè°üº¬Ö®¡£
#include <iconv.h& ......
ÔÚдÕâƪÎÄÕµÄʱºò£¬ÓÐ323¸ö²»Í¬µÄ·¢Ðаæ
±»
distrowatch.com¹Ø×¢¡£Óеı»³Æ×÷Ehad£¬ÓеĽÐ×öEstrellaRoja¡£ºÜ¶àÃû×ÖÀïÃ涼ÓаüÀ¨Ò»¸ö“X”×Öĸ£¬Ò»Ð©Õ¹Ê¾ÌØÐԵļªÏé
ÎïºÍ×Ô¼ºµÄ½»Á÷ÉçÇø¡£ËûÃǵ±Öв¢²»ÊÇËùÓеĶ¼ÊÇÍêÈ«»ùÓÚLinux»ù´¡¿ò¼ÜºÍ·¢Õ¹»îÔ¾µÄ£¬µ«´ó¶àÊýÖ÷Á÷·¢ÐаæÈç´Ë¡£ÕâÊÇÒ»¸öÑ¡Ôñ¶àÑùµÄÊÀ½ç£¬ÊÇ ......
˵Ã÷£º
´ó¼ÒºÃ£¬ÎÒÓõÄÊÇÐéÄâ»úÏÂlinux»·¾³½øÐа²×°µÄoracle 11g Êý¾Ý¿â£¬ÓÐЩ²»Í׵ĵط½Çë¶à¶àÖ¸½Ì¡£
Ê×ÏÈÒª²Î¿¼Ô°æµÄ°²×°Ê¹ÓÃ˵Ã÷Îĵµ£¬¸ù¾ÝÉÏÃæµÄÃèÊöµÄÒªÇó½øÐа²×°²Ù×÷¡£
ÈçÏÂÊÇÊÖ¶¯²Ù×÷µÄ·½·¨£º
Ò»£®¼ì²élinux»·¾³RPM°üµÄÊÇ·ñÍêÈ«°²×°£¬²¢¼Ç¼ȱÉÙµÄRPM°üÎļþ²¢½øÐа²×°¡£
[root@mylinux ~]# r ......