免責聲明

Disclaimer (免責聲明)
繼續閱覽代表您接受以上的免責聲明.
To continue reading means you accept the above disclaimer.

2012年12月30日 星期日

Customized ROM for Rooted Kindle Fire

Android 平板 : 安裝了Android 作業系統(Operating System, OS)的
平板電腦(tablet, pad).
大部分新的平板都具備觸控螢幕(touchscreen) ,
所以 mouse click 變成 finger tap ...

原始的android os 由 google 釋出
針對不同的硬體/廠商 (Samsung, Asus, Acer, Amazon, Google...)
及不同的應用(軟體)需求
就有人打包不同的驅動程式(driver) 與 應用程式集(Apps)
稱為客製化的(customized) ROM.

之所以稱ROM 是因為平板的內建磁碟
大部分都是 flash memory, (也就是SSD? solid-state disk)
即使沒有電 資料不會消失 就跟傳統的EEPROM一樣 ...
[其實比較正式的說法是 內部儲存體/裝置(internal storage/ internal storage device)]

所謂的刷機就是把整個 os image file ,  寫到平板的內建磁碟裡?

[Q] ROM, Flash Memory, SSD 的不同?


//=== 
針對 KindleFire,
之前裝了 CyanogenMod 的CM9 ,
CM9是奠基於  android 4.0 ICS (Ice Cream Sandwich).

Android 4.1 JB (Jelly Bean) 出來後就跟著有了 CM10 ,
網路上搜尋之後 莫名其妙 [1] 導到 Hashcode ROM
就試試看吧 ...
下載customROM.zip [2] 之後
另外下載gApps.zip [3] 

之前已經安裝了TWRP Recovery

長按電源鈕讓KFire關機 
重新開機, 畫面出現後 
再按一次電源鈕, 選擇Twrp

Wipe -> Factory Reset
Install -> browse to select the downloaded  customROM.zip and gApps.zip
Wipe Cache/Dalvik

Reboot


[Q] AOSP 是啥?
--> Android Open Source Project [5]

[ref]
0. 
http://blog.the-ebook-reader.com/2012/02/21/kindle-fire-hacking-using-twrp-recovery-to-install-roms-and-backup/

1. http://forum.xda-developers.com/showthread.php?t=1765288
2. http://goo.im/devs/hashcode/otter/aosp/
3. http://goo.im/gapps

4. http://source.android.com/faqs.html 
5. http://source.android.com/faqs.html#what-is-the-android-open-source-project


2012年12月16日 星期日

Ubuntu 12 tips, 如何輸入繁體中文, 如何檢查Ubuntu版本

Ubuntu 12.04.1 LTS

//===
本來不習慣 Unity 界面
發現start button的用處後 還滿好用的
按下鍵盤上winlogo 鍵 就相當於按螢幕左方直條選單最上方的
UbuntuLogo ;
想找應用程式 只要打幾個英文字母下去搜尋即可
e.g Term, Text, lang, ...



//===
System settings(像齒輪的那個icon) -->  language support -->
* install/remove languages ...
* keyboard input method system --> iBus

登出再登入, 螢幕右上方有個小鍵盤/酷音/拼音的圖示

iBus preferences --> select an input method --> chinese -->
預設安裝有 Pinyin, Bopomo, Chewing, ...

[ 安裝ibus-m17n 後會看到許多其他的
sudo apt-get install ibus-m17n
不過似乎簡體字繁體字並存 同音字的選擇頗煩 ... ]

預設的Pinyin 並未支援四聲的輸入 用不習慣 
Bopomo 沒去試 自從聽老有的建議改用漢語拼音後 
bo, po, mo 真的忘了大半...
Chewing 預設的鍵盤似乎是標準的注音鍵盤排列

在 iBus preferences 的選單中無法改變 Chewing的鍵盤排列
必須將 iBus preferences 的 "show language panel " 設為 Always
如此 當切換到Chewing(酷音?) 中文輸入時就會在桌面右下方出現酷音專屬的工具列 --> 按下"設定"的按鈕 --> "鍵盤" --> 鍵盤排列  --> 漢語


ps.
[Q]  如何列出目前所在的Ubuntu  版本?
> lsb_release -a
Distributor ID:    Ubuntu
Description:    Ubuntu 12.04.1 LTS
Release:    12.04
Codename:    precise



或者
System Settings (像齒輪的那個icon) ---> Details(也是像齒輪的那個icon) - -->



[ref]
http://pinyinjoe.com/linux/ubuntu-12-chinese-setup.htm
https://help.ubuntu.com/community/CheckingYourUbuntuVersion

2012年12月11日 星期二

Win8 tip, 從MBR磁碟開機, boot from mbr disk

[Q] 新出的筆電內附的硬碟通常是GPT分割, 所安裝的BIOS 通常也是新的UEFI bios, 這時若從usb插入傳統MBR分割的硬碟, 要如何開機呢?

[try]
0. 啟動UEFI 的bios 相容模式 ...
1. 在boot的選項中加入 usb-hd or usb-zip
2. reboot, 看到開機logo時 隨即按下ESC
此時將出現boot 選單, 切記不要選UEFI 開頭的

ps.
看到開機logo時 按下F2 或 DEL 鍵 是進入bios 設定
與按下ESC 效果不同


//=== Win8 本身也有一些開機的選項
以前的Windows是透過在reboot 適當的時候按下F8 來進入
但在Win8 似乎不靈光 可試試以下的方法

0. 在命令列視窗下
 shutdown /r /o

1. 在登入畫面 shutdown 的選單內
按下 shift+restart

2. "Change PC settings" -->  General-> Advanced startup ...


[ref]
http://blogs.msdn.com/b/b8/archive/2012/05/22/designing-for-pcs-that-boot-faster-than-ever-before.aspx

http://3hitek.blogspot.tw/2012/12/win8-tips-kindlefire.html

USB的接頭

USB 一堆接頭 搞不清楚 試著釐清

接頭 == connector
插頭  == 公頭 == plug == male connector
插座  == 母頭 == socket == receptacle == jack == female connector

USB2.0以下的 接頭至少有八類/累
Standard-A, Standard-B, (4pins : VBus, Ground,  differential pair)
Mini-A, Mini-B, Mini-AB, Micro-A, Micro-B, Micro-AB
(5pins : Standard 4pins + 1 ID pin)


其中 Mini-A, Mini-AB 從2007五月就 deprecated ?

Micro-AB , Mini-AB 都只有母頭
其他的則分別有公頭與母頭的型式 

Micro 是比較新的規範, 尺寸也較小, 新出的平板/手機/數位相機都採用?
Mini-B 則是早期的數位相機/數位相框 
Standard-A : PC
Standard-B : Hub, Printer, Scanner

[Q]  USB OTG cable 與 一般的 USB cable 的不同?
[A] 至少有一邊的接頭是Micro-B 或 Micro-A的公頭? 有五條線?

USB OTG 的特色在於不需要透過電腦 就可以讓2個USB裝置得以直接互連
例如手機或平板的USB port 原本是當作 B-device(peripheral, client)連到PC,
讓PC可以存取平板的'磁碟'資料; 如果手機或平板的USB port 支援OTG,
通常是 Micro-AB receptacle, ...

[ref]
http://en.wikipedia.org/wiki/Universal_Serial_Bus
http://en.wikipedia.org/wiki/Gender_of_connectors_and_fasteners
http://en.wikipedia.org/wiki/Universal_Serial_Bus#Mini_and_Micro_connectors

http://www.2cm.com.tw/technologyshow_content.asp?sn=0701010213

http://en.wikipedia.org/wiki/USB_3.0
http://pinoutsguide.com/Slots/usb_3_0_connector_pinout.shtml


ps.
//===
USB1.0/1.1  --> USB2.0 --> USB3.0
Low speed 1.5Mbps , Full speed 12Mbps --> Hi-Speed 480Mbps --> Super Speed 5Gbps

//=== USB3.0 特色摘要
5Gbps
Full duplex (dual simplex, 收發各一對線)
Power management
No need of polling (NRDY, ERDY)
Stream protocol

//=== USB3.0 connector
為了提升傳輸速率 又要考慮與USB2.0的相容性
也就有了對應的接頭
USB3.0 Standard-A, Standard-B 
(9pins == 4pins for USB2.0 + 4pins for Tx/Rx differential pair + 1pin for signal ground)

USB3.0 Powered-B (11pins == USB3.0 standard 9 pins + 2pins for device power)

USB3.0 Micro-B ?



2012年12月10日 星期一

win8 tips, 導火於kindlefire 的發現

[Q] where is the "old start menu"  for programs?
C:\ProgramData\Microsoft\Windows\Start Menu\Programs

[Q] where is PC settings?
0. C:\ProgramData\Microsoft\Windows\Start Menu\Programs  -> "PC settings" short cut
 -> 傳統的控制台

1. right-side menu -> Gear icon -> bottom "Change PC settings" ->  傳統的控制台 + 其他的選項


//=== 試著在win8  enterprise 上安裝 google usb driver for KindleFire
http://3hitek.blogspot.tw/2012/08/kindle-fire-root-try.html ]
卻出現問題

"Android adb interface ...
the hash for the file is not present on the specified catalog file ... "

google 搜尋發現 問題與 "windows driver signing enforcement" 有關 ...

[Q] How to disable "driver signing" check ?

[try 1]
"Change PC settings"-->  General-> Advanced startup  --> Restart now
[ On the blue screen select Troubleshoot --> Advanced options -->
Startup Settings. Click Restart button ]
After rebooting,  the blue screen with Startup settings will  appear agian.
Choose "Disable driver signature enforcement" by press F7

[try 2] 

run cmd prompt with admin privilege

bcdedit  /set  loadoptions DISABLE_INTEGRITY_CHECKS
bcdedit  /set   testsigning OFF
reboot


[ref]
http://tivadj-tech.blogspot.tw/2012/09/certificate-check-error-when-installing.html