2015年1月29日 星期四

Executable and Linking Format (ELF)

http://www.jollen.org/EmbeddedLinux/Executable_Linking_Format.html

.bss section: uninitialized data section

http://www.jollen.org/blog/2006/12/bss_section_uninitialized_data.html

http://www.jollen.org/blog/2006/12/bss_section_2.html

http://www.jollen.org/blog/2006/12/bss_section_3.html

Jserv's blog
http://blog.linux.org.tw/~jserv/archives/002030.html

What are the Major changes that Android makes to the Linux kernel?

https://www.quora.com/What-are-the-major-changes-that-Android-made-to-the-Linux-kernel

Here is a concise list of the changes we made to the Linux kernel:
  • ashmem (Android Shared Memory), a file-based shared memory system.
  • Binder, an inter-process communication (IPC) and remote procedure call (RPC) system.
  • logger, a high-speed in-kernel logging mechanism optimized for writes.
  • Paranoid Networking, a mechanism to restrict network I/O to certain processes.
  • pmem (Physical Memory), a driver for mapping large chunks of physical memory into user-space.
  • Viking Killer, a replacement OOM killer that implements Android's "kill least recently used process" logic under low memory conditions.
  • wakelocks, Android's unique power management solution, in which the default state of the device is sleep and explicit action is required (via a wakelock) to prevent that.

Android ION Memory Manager

https://github.com/LegacyXperia/Wiki/wiki/What-is-ION%3F

history:
http://android-revolution-hd.blogspot.tw/2013/08/the-android-ion-memory-manager.html

Implemented Code:
https://groleo.wordpress.com/2012/07/24/ion-buffer-sharing-mechanism/

Code path and API overview in Android
http://wonview.blog.163.com/blog/static/5850132720130242511995/

For Android 4.0 (aka Ice Cream Sandwich), Google was finally fed up with the private memory manager structure and decreed that all newer devices with Android 4.0 native should use the new, so called "ION" memory manager.

wiki(!?)
https://wiki.linaro.org/BenjaminGaignard/ion

LWN
https://lwn.net/Articles/565469/
http://lwn.net/Articles/576966/
http://lwn.net/Articles/480055/

簡中介紹
http://blog.csdn.net/crazyjiang/article/details/7927260

http://blog.csdn.net/kris_fei/article/details/8588661

http://blog.csdn.net/kris_fei/article/details/8618587

http://www.360doc.com/content/13/0628/14/3779243_296136371.shtml

2015年1月28日 星期三

Android 上放個自製busybox

http://blog.csdn.net/a345017062/article/details/6250619

假设现在我们自己想手工添加一个shell命令mycommand,只要在system/core/toolbox/目录下面新建一个mycommand.c文件,并在里面实现一个mycommand_main函数,然后在system/core/toolbox/Android.mk中添加mycommand.c即可。Android.mk会自动把它编译进toolbox程序,并在编译生成的Android系统/system/bin目录下为这个命令生成一个指向toolbox的连接。

自己拿busybox的程式碼來編譯並且安裝到 Android系統裡

http://blog.csdn.net/liaoshengjiong/article/details/3957725

https://gforge.ti.com/gf/project/omapandroid/wiki/?pagename=Installing+Busybox+command+line+tools

http://www.omappedia.com/wiki/Android_Installing_Busybox_Command_Line_Tools

2015年1月26日 星期一

Android下,手動設定RJ-45網路

假定網路裝置名稱為eth0

# ifconfig eth0 up
# netcfg eth0 dhcp
# setprop net.dns1 168.95.1.1

這樣設定成dhcp讓他自己去取得ip, 並且透過168.95.1.1為DNS就能連到外面去

2015年1月24日 星期六

電影院擴點 電影市場 電影人口

http://home.appledaily.com.tw/article/index/20150119/36336475/news/

我認為,不進場看電影的人,不會因為戲院開在家門口了就改變想法進場
我認為,看電影的人,不會因為多了一間又新又大的戲院,就特地進場多看一場

所以三大影城大動作拓點,初步想了兩種推測角度

1. 從台灣近兩年來電影票房成長速度來看,營收已經頂到目前硬體設備所能提供的上限,且目前營收足以安心積極拓點

2. 從台灣近兩年來票房成長速度來看,營收已頂到上限,雖仍不足以安心拓點,但從電影人口成長情況來判斷,若不拓點卡位在全台佈點,未來會更難經營;所以三大影城不敢落於人後,不約而同急著拓點


預測衝擊

從現有表格看來,國賓在兩北市布局最快,有可能把原本前往台北西門或東區一帶的人口留在新北

基於我認為,西門電影街的電影院所受衝擊可能最大

2015年1月21日 星期三

SD/MMC 內部暫存器

http://www.cnblogs.com/Efronc/archive/2010/03/27/1698474.html

SD Card Registers
Name    Width                                         Description
CID      128   Card identification number: individual card number for identification.
RCA      16    Relative card address
CSD      128   Card specific data: information about the card operation conditions.
SCR      64    SD Configuration Register: information about the SD Card’s special features capabilities.
OCR      32    Operation Condition Register
SD 卡寄存器
名称   宽度     描述
CID    128  卡的识别码:用于识别单个卡的编号。
RCA  16    卡的相对地址(这个寄存器在 SPI 模式下不可用)
CSD  128  卡的特性数据:是关于这个卡工作条件的相关信息。
SCR   64   SD配置寄存器:关于这个SD卡的特殊功能的特性信息。
OCR   32   工作条件寄存器(电压)

2015年1月16日 星期五

作RD? 作武器店老闆?

你可以幫客人修理維護武器裝備  或是接受訂單客製化打造某人專屬裝備

或是按自己想法做出一大批有你獨特風格的裝備

2015年1月12日 星期一

Android CTS GMS 分幾個等級

http://www.jollen.org/blog/2012/09/asus-aliyun-cts-issue.html

授權等級
Google 針對 Android 裝置的授權:
1. 通過 CTS,授與 Android 商標使用權,但沒有 GMS 授權。
2. 通過 CTS,授與 Android 商標使用權,取得部份的 GMS 授權,但沒有 Google 商標使用權。
3. 通過 CTS,授與 Android 商標使用權,取得完整的 GMS 授權,有 Google 商標使用權。

2015年1月8日 星期四

店家開店前需要先訂出菜單

其實店家可能甚麼都做得出來
不管是價值5塊的一口飯還是6塊的一口飯+滷汁
要細分下去都不是做不出來的料理

但沒有店家會這麼訂店內規則

店家作的就是事先計算好  拍案決定開放給客人選擇的菜單
只可以是50小便當
或80雞腿便當
或300懷石便當

這裡的好處, 或說是這裡的不得已的苦衷在於
人類這個高等智慧生物的極限

讓一個人天天站在罰球線上投籃  練一萬球以後就算是櫻木花道這種傻蛋也能練到穿心進球
把所有線擦掉  逼他在隨機不固定的位置投籃  就無法保證了

當人類接收到刺激  且該刺激是以往接受過的  有經驗過的
神經元有記憶  還記得以前是怎麼作的
則面對這次的刺激時就是有本可循的
可以減少錯誤率  減少摸索時間  減少嘗試錯誤的次數
其結果就是很快的達成目標