SD Card Hot Swappable in Android Phone?

SD card should be hot swappable in PC, or Card reader....
But until now, I don't try to eject SD card while reading or writing my SD card in real usage but work.
Recently, our QA team find out some SD issues from eject SD card.
Most of them are under writing or reading SD card.

Fortunately, Qualcomm just merge one solution for their platform.
After verifying, some issue could be solved by this patch.
Because of this, I didn't try to find out more solution now.
I still want to solve more possible issue on it but I got some other bugs to finish.

Even with the solution, I still don't recommend user remove your SD card while using SD.
It will not kill the system and not cause kernel panic.
But it will damage your file system possibly.
The worst case could be all the file in SD gone.
Some much worse case should be verified..... SD card would be physically damaged by the unsuitable usage.

The recommend steps is following:
1. Unmount your SD card in setting page.
2. Remove your SD.
3. Insert a new one. (Even another one)
Some device will even suggest remove SD after powering-off.

* 5/8, under recently test, it still cause system crash sometimes if we swap sd very fast.

台北車站凱撒美食街的日本料理-A10首度登場

不久前在台北車站發現武藏日本料理後,就一直想再吃生魚片蓋飯,或是生魚片定食!
今晚就鎖定凱撒美食街的日本料理店!

今天雖然帶著Garmin-Asus A50在身上,不過由於近日用的是Garmin-Asus還未曝光的A10,
所以照片全由A10拍出!

今天吃生魚片蓋飯套餐,上次在武藏吃的是刺身定食!
來看照片吧!

這飽滿的蓋飯,比起石牌的小店要略勝一籌!

套餐組合,菜色算豐盛!

手捲很清淡,##CONTINUE##

甜點好吃



外觀拍一張!

菜單拍一張

這店內桌上有熱茶,冷飲汽水免費無限供應,如果是朋友們聚餐來,應該挺划算,
今晚只是吃個晚餐,價位還可以接受,稍稍有些沒有飽足感就是了!生魚片蓋飯還挺好吃!

MTD block, Yaffs2 file system and booting

Recently, I found one issue on the booting of Android device.
At the booting sequence, Yaffs2 takes around 20 seconds for mounting MTD blocks.

According to the size of MTD blocks, the time will be changed.
The reason is the scan mechanism of Yaffs2 file system.
It should be done for the unsafe power off, but not for regular shut down.

Therefore, we have to make sure Yaffs2 is always got "ischeckpoint" before shut down.
The most important part, it is better to be the last one work before really power off.
Some recommend function are sys_sync(), emergency_sync(), or maybe do_sync() and sys_umount().

食記-武藏日本料理,隱藏在台北車站商圈中



今晚,一股想吃日本料理心情驅使,走在台北車站站前新光三越周遭,
在沒有做足功課,也沒有任何頭緒的情況下,尋找著日本料理,

就在準備就隨便吃個韓國小火鍋,或是拉麵的念頭閃過的瞬間,
不經意的往身旁小巷弄一瞥,隱身在巷弄裡的日式料理吸引了目光,
就這麼走了進去,就是他了!武藏日式料理!

前些日子在石牌附近吃了生魚丼飯,花了150,還算滿足好吃.
不過沒有印象深刻到發文推薦...今晚這可得稍稍介紹下!!菜單上點了"刺身定食" (他就是生魚丼)
就直接上照片了!!!使用的相機由於沒有計畫的情況下沒帶Sanyo CG9出門,
派出手邊準備要上市的Garmin-Asus A50 Android 手機來拍!

3+1+1份量不算大,但是新鮮好吃




眼看200元端上了這些菜色後已經感到滿足的時候!##CONTINUE##

又來了一盤冷盤花枝!!

身旁兩大長桌,坐滿了說著粵語的遊客...
看來這隱密的店家,連觀光客都曉得!我在台北長大,卻不知道,真是難為情啊....

台北市開封街一段14巷3號

User/developer of Android Smart Phone

Recently, I just finish one work, this is for user build.
What is user build?
The ROM image, or RAW image for Android smartphone is separated to two types.
The first one is for RD and developer, the other is for user.

The difference between this two:
Most important one is the authority of the kernel and Android system.
User got limited right of Android.
This might be the most critical point for hacker.
Some other difference are like there is no debug log on user build.
There is few back door for updating ROM image for user build.
There is almost no hot key for user build.
Sometimes, the usage of operator will be limited too.
So, hacker try hard on the iPhone to use other operator system.
There is still some difference that not suitable to discuss.

User of Android is lucky, there is ADB for Android. (Android Debugging Bridge)
According to ADB, user could install application, enter Linux kernel with limited authority.

About developer of Android smartphone:
Linux kernel should be open source after device into market.
From now on, I have to take care the coding style because of this.

For Android system:
For example, Qualcomm will release Modem, Kernel, and Device(Android) code with each version of Android (Cupcake, Donut, Eclair) to developer using their platform.
Developer will porting their device from the pure Qualcomm base.
The modified kernel will be released, but Android will not.

全家便利商店-買一送一 黑松茶花烏龍



還記得,不久前,總是在PTT還有老爹孔雀魚論壇上,拿玫瑰蝦,火焰蝦,換了很多的每朝健康黑烏龍茶,
前前後後也喝了不下幾十瓶,也許是喝的時間不夠久,膽固醇還是沒能降到標準值裡!

最近,公司的二階主管在大夥健康檢查完後,告訴大家他的膽固醇從過高已經降至標準了!
這一年來,還是燒肉火鍋照吃,不過每天一瓶"黑松茶花綠茶",是他當營養師的夫人給的建議!

從這之後,也開始一週大約5-7瓶的數量持續的喝著!!! 希望數月後,能看見膽固醇明顯的有下滑的趨勢!
全家一直都有的買一送一,近期都是週三週五,偶爾會有常喝的飲料在名單上,所以偶爾會用上買一送一的優惠!
4/9週五剛好有茶花新產品,茶花烏龍買一送一,在新產品推出後,就開始綠茶跟烏龍交替著喝!
趁這機會半夜0點一到,就殺到離家不遠的全家去掃了一箱!!
明早上班可能會考慮在公司的全家也掃個一箱來!

另外提一下,剛剛在全家刷了HAPPY GO卡,50元一點,4點可以折抵1元,年底會有HAPPY GO點數的特惠活動
還有就是買一送一還是可以拿喬巴點數^^

NAND & eMMC: Bad block management

The biggest issue I have ever met until now: NAND bad block management issue.

NAND flash, Qualcomm platform, Linux kernel, Yaffs2, Android^^

Already find the root cause of this issue, and Qualcomm already fix it 4 month ago.

The root cause is about clearing the NAND error status.
(I am not sure I can share the detail or not)

Though Qualcomm already fix it, but 2 more suspicious points wanna check.

One of them is the mechanism of marking block as bad.

The other is the status checking mechanism.

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

EMMC, Phison controller, Linux kernel, EXT3, VFAT, Android^^

This issue ccould not be monitored by myself....

I can't go through deeper into the controller. I have to wait for their reply.