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
相关文档:
总览
用iptables -ADC 来指定链的规
则
,-A添加 -D删除 -C 修改
iptables - [RI] chain rule num rule-specification[option]
用iptables - RI 通过规则的顺序指定
iptables -D chain rule num[option]
删除指定规则
iptables -[LFZ] [chain][option]
用iptables -LFZ 链名 [选项]
iptables -[NX] chain
用 -NX ......
一.Linux进入与退出系统
进入Linux系统:
必须要输入用户的账号,在系统安装过程中可以创建以下两种帐号:
1.root–超级用户帐号(系统管理员),使用这个帐号可以在系统中做任何事情。
2.普通用户–这个帐号供普通用户使用,可以进行有限的操作。
一般的Linux使用者均为普通用户,而系统管理 ......
说明:
大家好,我用的是虚拟机下linux环境进行安装的oracle 11g 数据库,有些不妥的地方请多多指教。
首先要参考原版的安装使用说明文档,根据上面的描述的要求进行安装操作。
如下是手动操作的方法:
一.检查linux环境RPM包的是否完全安装,并记录缺少的RPM包文件并进行安装。
[root@mylinux ~]# r ......
Linux 同步方法剖析
内核原子,自旋锁和互斥锁
文档选项
将此页作为电子邮件发送
级别: 中级
M. Tim Jones, 顾问工程师, Emulex
2007 年 11 月 19 日
在学习 Linux® 的过程中,您也许接触过并发(concurrency)、临界段(critical section)和锁定,但是如何在内核中使用这些概念呢?本文讨 ......