2011年1月5日 星期三

dd fail - dd前請注意partition是否有起來

今天dd uboot發現怎麼還是有問題
就在dd一次就ok了

checko說要看partition是否有起來
使用
cat /proc/partitions


nelsonchung@ubuntu:~/ReleaseFromGPS1004$ cat /proc/partitions
major minor  #blocks  name

   7        0   30457856 loop0
   8        0  312571224 sda
   8        1  153597433 sda1
   8        2          1 sda2
   8        5  158963143 sda5
   8       16    1985024 sdb
   8       17    1316322 sdb1
   8       18     207018 sdb2
   8       19          1 sdb3
   8       20     134757 sdb4
   8       21     156209 sdb5
   8       22     152303 sdb6


透過Facebook分享

2011年1月4日 星期二

將android ap 放到實際android機器上 via eclipse

build error

Description Resource Path Location Type
The project was not built since its build path is incomplete. Cannot find the class file for java.lang.Object. Fix the build path then try building this project RTKGPSDemoApp Unknown Java Problem
The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files GPSDemo.java /RTKGPSDemoApp/src/rtk/gpsdemo/app line 1 Java Problem
Unable to resolve target 'android-8' until the SDK is loaded. RTKGPSDemoApp Unknown Android Target Problem

--
設定環境
執行Eclipse
Window->Preference->Android->SDK Location: /nelsonchung/Develop/android-sdk-linux_86/
Apply

出現兩個Targe name
Android 2.2
Android 2.3

選擇其中一個
按下OK鍵

build ok
--

參考
產生新的AVD

設定完之後就可以跑在emulator上面嚕

--

如果不想run在emulator
而是run在實際機器上
請follow下列步驟
1. 開啟機器, 插上usb cable, eclipse會自動偵測



2. 執行下方圖片run icon (滑鼠指標旁)


3. 點選Run Configuration

4. 點選target

5. 點選Manual


6. 按下run後 選擇你要執行的機器


--

改變系統預設java的路徑

目前java的設定為openjdk
nelsonchung@ubuntu:/etc/alternatives$ ll java
lrwxrwxrwx 1 root root 40 2010-12-08 09:09 java -> /usr/lib/jvm/java-6-openjdk/jre/bin/java*

我有兩個java - openjdk and java-6-sun
nelsonchung@ubuntu:/etc/alternatives$ ls /usr/lib/jvm
java-1.6.0-openjdk  java-6-openjdk  java-6-sun  java-6-sun-1.6.0.22

修改java path
sudo update-alternatives --config java

nelsonchung@ubuntu:/etc/alternatives$ sudo update-alternatives --config java
There are 2 choices for the alternative java (providing /usr/bin/java).

  Selection    Path                                      優先級  Status
------------------------------------------------------------
* 0            /usr/lib/jvm/java-6-openjdk/jre/bin/java   1061      auto mode
  1            /usr/lib/jvm/java-6-openjdk/jre/bin/java   1061      manual mode
  2            /usr/lib/jvm/java-6-sun/jre/bin/java       63        manual mode

Press enter to keep the current choice[*], or type selection number: 2
update-alternatives: using /usr/lib/jvm/java-6-sun/jre/bin/java to provide /usr/bin/java (java) in manual mode.
nelsonchung@ubuntu:/etc/alternatives$ ll java
lrwxrwxrwx 1 root root 36 2011-01-04 17:43 java -> /usr/lib/jvm/java-6-sun/jre/bin/java*

改變嚕

nelsonchung@ubuntu:/etc/alternatives$ java -version
java version "1.6.0_22"
Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
Java HotSpot(TM) Server VM (build 17.1-b03, mixed mode)


透過Facebook分享

Kconfig的用途

Kconfig是用來建立make選單內容

會存在於kernel內各個目錄中
將設定結果回存到kernel根目錄下的.config
make啟動後透過read .config就可以知道某一個flag(功能)有沒有被啟動

linux 2.4版叫做config.in (Ref: http://huenlil.pixnet.net/blog/post/23493757
有說明Kconfig的內容意義

以下面內容為例

config A_A1
       tristate "B"
       depends on C
       default n
       help
         You can describe your function here.

A_A1:定義的flag名稱
B: tristate後面接, 為選單上顯示的稱呼
C: depends on後面接, 與C flag有依賴的關係
default: n or y (也可以使用判斷)決定預設是要enable or disable (使用m會跟y效果相同??怪怪)

help後面就是接上說明嚕

透過Facebook分享

2011年1月3日 星期一

git merge --no-ff VerifyA2Panel_from_VerifyBluetooth

nelsonchung@gps1004:~/myandroid9.1/kernel_imx$ git merge --no-ff VerifyA2Panel_from_VerifyBluetooth
Auto-merging arch/arm/mach-mx5/mx51_babbage.c
Merge made by recursive.
Auto packing the repository for optimum performance. You may also
run "git gc" manually. See "git help gc" for more information.
Counting objects: 10580, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (10363/10363), done.
Writing objects: 100% (10580/10580), done.
Total 10580 (delta 7774), reused 0 (delta 0)
 arch/arm/mach-mx5/mx51_babbage.c    |   58 +++++++++-------
 drivers/input/keyboard/Makefile     |    2 +
 drivers/input/keyboard/rtk_vkeyb.c  |  129 +++++++++++++++++++++++++++++++++++
 drivers/mxc/ipu3/Makefile           |    2 +
 drivers/mxc/ipu3/ipu_device.c       |    2 +
 drivers/mxc/ipu3/ipu_disp.c         |    8 +-
 drivers/mxc/pmic/mc13892/pmic_adc.c |   96 +++++++++++++-------------
 drivers/video/mxc/Makefile          |    2 +
 drivers/video/mxc/ldb.c             |   12 ++--
 drivers/video/mxc/mxc_epdc_fb.c     |    1 +
 drivers/video/mxc/mxc_ipuv3_fb.c    |    6 +-
 drivers/video/mxc/mxcfb_epson.c     |    2 +
 12 files changed, 236 insertions(+), 84 deletions(-)
 create mode 100644 drivers/input/keyboard/rtk_vkeyb.c


透過Facebook分享

與老婆約定35歲要到雪梨跨年


透過Facebook分享

Android 2.2 bt連線手機出現paired but not connected

可以與手機(sony erisson k510i) pair但是無法建立connection, 會出現paired but not connected

可以與耳機建立連線
與HBH-DS229可以連線. 連線成功後顯示 Connected to phone and media audio與WBS-802可以連線. 連線成功後顯示 Connected to phone and media audio

From http://source.android.com/porting/bluetooth.html
可以知道目前2.2版支援HFP的程度

  • Handsfree Profile 1.5 in Audio Gateway role
    • Three-way calling
    • Phonebook over AT commands
    • Volume synchronization
    • eSCO
    • Extensive bug fixes and compatibility improvements

From
http://www.bluetooth.com/English/Technology/Works/Pages/HFP.aspx


Getting Technical

The HFP defines two roles, that of an Audio Gateway (AG) and a Hands-Free unit (HF):
  • Audio Gateway (AG) – This is the device that is the gateway of the audio, both for input and output, typically a mobile phone.
  • Hands-Free Unit (HF) – This is the device acting as the Audio Gateway's remote audio input and output mechanism. It also provides some remote control means.


包含audio gateway(AG)以及控制端的HF兩個部份

所以應該是Hands-Free Unit的部份尚未實做 所以會得到paired but not connected的結果

Vincent說 3rd party會處理此部份

ps.
bluetooth profile應用的介紹
http://en.wikipedia.org/wiki/Bluetooth_profile
for Auron

透過Facebook分享

Simon的求婚照片

http://www.flickr.com/photos/kaeida/sets/72157625599936469/with/5314984164/

看到Simon這幾個月為了求婚所做的努力
終於在2010的年末實現了

這過程中
我看到他所展現成為新人的喜悅
也祝他與他的未婚妻幸福一輩子

祝即將成為新人的大家
要好好享受建立一個家庭帶來的苦與樂
我想那是珍藏一輩子的回憶

自己的求婚(附上part 2 )

透過Facebook分享

install bluez

nelsonchung@gps1004:~/Build/9.1$ sudo apt-get install bluez
[sudo] password for nelsonchung:
Reading package lists... Done
Building dependency tree    
Reading state information... Done
The following extra packages will be installed:
  libbluetooth3
The following NEW packages will be installed:
  bluez libbluetooth3
0 upgraded, 2 newly installed, 0 to remove and 44 not upgraded.
Need to get 483kB of archives.
After this operation, 1,466kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://tw.archive.ubuntu.com/ubuntu/ lucid/main libbluetooth3 4.60-0ubuntu8 [71.9kB]
Get:2 http://tw.archive.ubuntu.com/ubuntu/ lucid/main bluez 4.60-0ubuntu8 [411kB]
Fetched 483kB in 3s (141kB/s)
Selecting previously deselected package libbluetooth3.
(Reading database ... 64610 files and directories currently installed.)
Unpacking libbluetooth3 (from .../libbluetooth3_4.60-0ubuntu8_i386.deb) ...
Selecting previously deselected package bluez.
Unpacking bluez (from .../bluez_4.60-0ubuntu8_i386.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
Setting up libbluetooth3 (4.60-0ubuntu8) ...

Setting up bluez (4.60-0ubuntu8) ...

Processing triggers for libc-bin ...
ldconfig deferred processing now taking place


nelsonchung@ubuntu:~$ hcitool dev
Devices:
hci0 70:F3:95:42:EA:76




透過Facebook分享

2011年1月2日 星期日

顯示硬體資訊 - lshw

顯示部份資訊-顯示卡

*-display:0
             description: VGA compatible controller
             product: Mobile 4 Series Chipset Integrated Graphics Controller
             vendor: Intel Corporation
             physical id: 2
             bus info: pci@0000:00:02.0
             version: 07
             width: 64 bits
             clock: 33MHz
             capabilities: bus_master cap_list rom
             configuration: driver=i915 latency=0
             resources: irq:32 memory:f2400000-f27fffff memory:d0000000-dfffffff(prefetchable) ioport:1800(size=8)
        *-display:1 UNCLAIMED
             description: Display controller
             product: Mobile 4 Series Chipset Integrated Graphics Controller
             vendor: Intel Corporation
             physical id: 2.1
             bus info: pci@0000:00:02.1
             version: 07
             width: 64 bits
             clock: 33MHz
             capabilities: bus_master cap_list
             configuration: latency=0
             resources: memory:f2100000-f21fffff
        *-usb:0


透過Facebook分享

gnumake rule

一個標準的gnumake rule是長成這樣


targets : prerequisites
             recipe
             ...

因為也可以允許recipe與targets and prerequisites同一行

使用分號(semicolon)來作識別


targets : prerequisites ; recipe
             recipe
             ...





透過Facebook分享