因為在重灌之前不會版本管理,重灌電腦之後才會...
使得之前建立的環境和資料通通都...沒關係,再重來一次
請以root身分執行以下動作,以免不必要的權限問題出現
1. Download the libusb-0.1.12.tar.gz
Analytics
2010年4月21日 星期三
2010年4月9日 星期五
小技巧,SCP指令的使用
這個學會之後應該可以完全在Linux下工作了
以前很笨的只會用WinSCP = ="
http://www.soezblog.com/plate/web/papermsg.jsp?UI=markcool&PI=1965
以前很笨的只會用WinSCP = ="
http://www.soezblog.com/plate/web/papermsg.jsp?UI=markcool&PI=1965
2010年4月7日 星期三
2010年2月25日 星期四
2010年2月24日 星期三
2010年1月16日 星期六
1/16,spidev_write,使用簡記
user space code :
unsigned long int ret=0;
int fd;
uint8_t buf[ ]; // 直接把1byte的資料放在這裡面
fd = open(spidev0.0,O_RDWR);
__u32 size =ARRAY_SIZE(buf);
ret = write(fd,buf,size);
printf("ret=%lu\n",ret);
close(fd);
測試結果:
用示波器看訊號都有出來
不管是要寫幾個byte的資料
但是比較奇怪的是
如果寫一個byte
ret =1
寫三個或五個
ret = 4294967295
@@"
unsigned long int ret=0;
int fd;
uint8_t buf[ ]; // 直接把1byte的資料放在這裡面
fd = open(spidev0.0,O_RDWR);
__u32 size =ARRAY_SIZE(buf);
ret = write(fd,buf,size);
printf("ret=%lu\n",ret);
close(fd);
測試結果:
用示波器看訊號都有出來
不管是要寫幾個byte的資料
但是比較奇怪的是
如果寫一個byte
ret =1
寫三個或五個
ret = 4294967295
@@"
2010年1月6日 星期三
測試自己加入的kernel module
首先在build kernel時,
#make menuconfig
記得要到Device Drivers -> Generic Driver Options
將Userspace firmware loading support設為<*>,也就是built-in
#make menuconfig
記得要到Device Drivers -> Generic Driver Options
將Userspace firmware loading support設為<*>,也就是built-in
訂閱:
文章 (Atom)