2011年8月5日 星期五

Logitech QuickCam Pro 4000 on x86 android

Yuv420 data can be obtained from webcam through ioctl.
Before encoded to jpeg image the yuv420 data needs to be converted to yuyv, i.e. yuv 4:2:2 format.
Since converter and encoder are ready, jpeg image can be produced.
However the preview can't be seen because it could probably be turned off in gingerbread-x86 while it is turned on in froyo-x86  but causes errors.
Working on preview function.

  • yuv420 to yuyv colorspace converter migrated from guvcview to android.
  • jpeg encoder migrated from guvcview to android.
  • picture functions.
  • working on preview function.

2011年8月2日 星期二

Lars and the Real Girl

It's a process that Lars faces his emotion and his fear about female things.
In this process Lars touched everyone's heart in his town through a love doll.
Town people gradually took the love doll as real, because they love Lars, even the love doll projecting mysterious and good side of Lars.
Happy for Lars he finally found a real one.
The doctor is wise.

2011年7月31日 星期日

30天打造OS! 作業系統 自作入門 (30日でできる! OS自作入門) 第一天

書中範例程式碼用nasm編譯
第42行左右發生invalid operand type錯誤

42: RESB 0x1fe-$

因為nasm不支援這種運算
嘗試一陣子
總算找到可以代替$(dollar sign)的方法

1. 在程式碼起始點加入一個label aa
2. 在第42行加入一個label bb
3. 將第42行改寫成

42: bb RESB 0x1fe - (bb-aa)

4. 用nasm編譯即可產生.img檔案

rt3070 wifi chipset integration on x86 Android

Porting rt3070 following http://blog.linuxconsulting.ro/2010/04/porting-wifi-drivers-to-android.html
Status and ideas is sorted out below:
  • rt2870sta is loaded for rt3070 chipset when kernel starts.
  • rt2870sta is loaded again when android wifi HAL starts.
  • Disable rt2870sta in kernel configuration and make android wifi HAL load rt2800usb, rt2800usb works fine for rt3070 chipset.
  • Perhaps rt2870sta works fine if it is just loaded once, how to make rt2870sta loaded just once?
  • There is password remembering issue on rt2800usb.Wifi can now automatically reconnect to AP, providing wpa_supplicant.conf is writable.
  • to be listed...