看i.MX51文件時,一個蠻有意思的用法,用man的話,資質駑鈍的我實在抓不到他的意思...XD
~$ man dd | grep skip
skip = BLOCKS
skip BLOCS ibs-sized blocks at start of input
文件內有一段是這樣說︰The above u-boot.bin has 1024KB padding at the head of file,for example first executable instruction is at the offset 1KB. If you want to generate a no-padding image, you need do below dd command in host.
$ sudo dd if=./u-boot.bin of=./u-boot-no-padding.bin bs=1024 skip=1
Usually this no-padding uboot image is used in the SD card, for example, program this no-padding uboot image into 1KB offset of SD card so that we do not overwrite the MBR (including partition table) within first 512B on the SD card.
看完man以及文件說明後,就可以推敲出來skip的實際用意。
用上面那個例子簡單來說︰
原本的u-boot填滿前面1KB而不使用,從1K開始的位置開始有實際資料,而後來的u-boot-no-padding,則不填滿那前面的1KB,在寫入SD Card時,則是從offset 1KB開始寫入,前面則是保留給MBR來使用(因為會用到partition table)。
2010年11月22日 星期一
Chome & iBus
揪竟~會擦出什麼火花呢!?
就是...iBus在chrome上會有輸入的Bug...按下Backspace後,就無法看到輸入的字,必須要重新切換輸入法才可以再次輸入... 囧,使用上真的有時候會用得很火大...
這個大Bug還蠻容易Google到的: Google表示...
簡易說明: 因為我本身是使用ubuntu 10.04,所以這邊介紹如何在ubuntu10.04上更新iBus和安裝符合新版iBus的新酷音!
1. 加入 repository PPA address: https://launchpad.net/~shawn-p-huang/+archive/ppa
~$ sudo add-apt-repository ppa:shawn-p-huang/ppa
~$ sudo apt-get update
~$ sudo apt-get install ibus-gtk ibus-qt4 ibus-pinyin ibus-pinyin-db-open-phrase
~$ im-switch -s ibus
Logout and re-login
2. 此時只有拼音可以用...(廢話,剛才下載了一堆pinyin套件XD)
~$ sudo apt-get install ibus-chewing
就可以用iBus和新酷音~在chrome上面也沒有!
新的問題產生...選字時,會將上一次輸入的字也加入一 一...
就是...iBus在chrome上會有輸入的Bug...按下Backspace後,就無法看到輸入的字,必須要重新切換輸入法才可以再次輸入... 囧,使用上真的有時候會用得很火大...
這個大Bug還蠻容易Google到的: Google表示...
簡易說明: 因為我本身是使用ubuntu 10.04,所以這邊介紹如何在ubuntu10.04上更新iBus和安裝符合新版iBus的新酷音!
1. 加入 repository PPA address: https://launchpad.net/~shawn-p-huang/+archive/ppa
~$ sudo add-apt-repository ppa:shawn-p-huang/ppa
~$ sudo apt-get update
~$ sudo apt-get install ibus-gtk ibus-qt4 ibus-pinyin ibus-pinyin-db-open-phrase
~$ im-switch -s ibus
Logout and re-login
2. 此時只有拼音可以用...(廢話,剛才下載了一堆pinyin套件XD)
~$ sudo apt-get install ibus-chewing
就可以用iBus和新酷音~在chrome上面也沒有!
新的問題產生...選字時,會將上一次輸入的字也加入一 一...