2013年3月28日 星期四

CNS3420VB cannot boot with Linux versions 3.3 and after (to v3.9-rc1)

The build procedure is as following:

make ARCH=arm cns3420vb_defconfig
make ARCH=arm zImage

The upstream Linux doesn't boot with version 3.3 and after with following message:
## Starting application at 0x04000000 ...
Uncompressing Li done, booting t

The suspect is located after git bisect:
commit 0536bdf33faff4d940ac094c77998cfac368cfff
Author: Nicolas Pitre <nicolas.pitre@linaro.org>
Date:   Thu Aug 25 00:35:59 2011 -0400

    ARM: move iotable mappings within the vmalloc region
  
    In order to remove the build time variation between different SOCs with
    regards to VMALLOC_END, the iotable mappings are now allocated inside
    the vmalloc region.  This allows for VMALLOC_END to be identical across
    all machines.
  
    The value for VMALLOC_END is now set to 0xff000000 which is right where
    the consistent DMA area starts.
  
    To accommodate all static mappings on machines with possible highmem usage,
    the default vmalloc area size is changed to 240 MB so that VMALLOC_START
    is no higher than 0xf0000000 by default.
  
    Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
    Tested-by: Stephen Warren <swarren@nvidia.com>
    Tested-by: Kevin Hilman <khilman@ti.com>
    Tested-by: Jamie Iles <jamie@jamieiles.com>

Commit 34ae6c96a6a7db4ed8ec0524bf7fa1086b9ab2ba has similar issue.

issue 1: if two iotable mappings overlapped, Linux boot failed with "Uncompressing Li done, booting t"

issue2: if mapping is good, but somehow GIC is not configured, Linux boot failed with "Calibrating delay loop...", for GIC is not set up properly.


FIX1: github mkl0301/linux branch cns3420vb-fix-3.2-not-boot


However even with the patch on v3.9-rc1 still doesn't boot, with the same message. While bisect-ing (with the patch, of course), it is found that sometimes it "half works", which likes scu/gic not set causes jiffies not updated, stuck at "Calibrating delay loop...".


The first commit that has this issue:
commit 384a290283fde63ba8dc671fca5420111cdac19a
Author: Nicolas Pitre
Date:   Wed Apr 11 18:55:48 2012 -0400

    ARM: gic: use a private mapping for CPU target interfaces
   
    The GIC interface numbering does not necessarily follow the logical
    CPU numbering, especially for complex topologies such as multi-cluster
    systems.
   
    Fortunately we can easily probe the GIC to create a mapping as the
    Interrupt Processor Targets Registers for the first 32 interrupts are
    read-only, and each field returns a value that always corresponds to
    the processor reading the register.
   
    Initially all mappings target all CPUs in case an IPI is required to
    boot secondary CPUs.  It is refined as those CPUs discover what their
    actual mapping is.
   
    Signed-off-by: Nicolas Pitre
    Acked-by: Will Deacon
ARM® Generic Interrupt Controller Architecture Specificationhttp://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ihi0048a/index.html

It seems that in function gic_dist_init(), the cpumask read from register GIC_DIST_TARGET is 0x0, which cause this issue.

It seems the arch/arm/common/gic.c has been modified many times, for the issue doesn't occur every time while bisecting. So this is only a temporary fix.

FIX2: github mkl0301/linux branch cns3420vb-fix-3.8-not-boot

Now we finally reach to the original issue
## Starting application at 0x04000000 ...
Uncompressing Li done, booting t

bisecting v3.9-rc1 and commit 384a2902. The first commit that doesn't boot is:

commit b8b499c86be58cb309964fcab5b62ac4a240a878
Author: Alexander Shiyan
Date:   Wed Dec 12 08:32:11 2012 +0100

    ARM: 7602/1: Pass real "__machine_arch_type" variable to setup_machine_tags() procedure
   
    This modification is needed to proper boot the custom machines with
    the IDs that are not described in the mach-types.h table.
   
    Signed-off-by: Alexander Shiyan
    Signed-off-by: Russell King
According to Documentation/arm/Booting, "5. Calling the kernel image", r1 should store the machine type number. This machine type number will be stored to variable __machine_arch_type before calling start_kernel() in arch/arm/kernel/head-common.S.

The variable __machine_arch_type is supposed to be used by setup_arch() to determine the machine type. But before commit  b8b499c8, it is machine_arch_type, which is a predefined machine number, instead of the __machine_arch_type, determines the machine type.

So there was no issues using u-boot command "go", which doesn't put machine type to r1 until commit  b8b499c8. But after commit  b8b499c8, Linux use the machine number given by the bootloader to determine the machine type. u-boot command "go" doesn't fulfil the requirement any more.

FIX3: The proper fix of this will be: using uImage+u-boot command "bootm".
(But I just hack the u-boot and have the command "go" store machine number in r1 with zImage....)

Finally, I could boot v3.9-rc1 with FIX1+FIX3.


2013年3月25日 星期一

ARM multi-platform


Supporting multi-platform ARM kernels [LWN.net]
http://lwn.net/Articles/496400/


2013年3月14日 星期四

羅勒子(小紫蘇/明列子)

小紫蘇 -知識百科-小紫蘇介紹
http://www.soku.com.tw/%E5%B0%8F%E7%B4%AB%E8%98%87/

羅勒子~代替山粉圓的好東西(小紫蘇/明列子) @ 翱翔的姿態 :: 痞客邦 PIXNET ::
http://tuanuu.pixnet.net/blog/post/27026945-%E7%BE%85%E5%8B%92%E5%AD%90~%E4%BB%A3%E6%9B%BF%E5%B1%B1%E7%B2%89%E5%9C%93%E7%9A%84%E5%A5%BD%E6%9D%B1%E8%A5%BF%28%E5%B0%8F%E7%B4%AB%E8%98%87-%E6%98%8E%E5%88%97%E5%AD%90%29

羅勒子致癌? - Luno 家 - 無名小站
http://www.wretch.cc/blog/Lu1114/24058087
(上一個連結也提到可能是假的)

菩提園羅勒籽 @ 阿福拉碎碎唸 :: 痞客邦 PIXNET ::
http://vein0309.pixnet.net/blog/post/11615632-%E8%8F%A9%E6%8F%90%E5%9C%92%E7%BE%85%E5%8B%92%E7%B1%BD



山粉圓

山粉圓-認識五穀雜糧 台灣糧倉 五穀雜糧的專家 五穀雜糧的好處 五穀雜糧飲食新主張 五穀雜糧也可以很美味 五穀雜糧的美學藝術
http://www.granary.tw/030.html

樂活營養師 - 山粉圓
http://www.foodcare.com.tw/label.aspx?article=939

山粉圓-山香
http://web.igarden.com.tw/magazine/show_one.php?serial_s=1884

最平民的健康食品-山粉圓 - 財團法人台灣大地文教基金會 - 台灣人拜台灣神 不做無根之民
http://www.taiwantt.org.tw/tw/index.php?option=com_content&task=view&id=2021&Itemid=57

神奇山粉圓 @ 就是愛騎馬 :: 痞客邦 PIXNET ::
http://gallopangel.pixnet.net/blog/post/25396038-%E7%A5%9E%E5%A5%87%E5%B1%B1%E7%B2%89%E5%9C%93

鈣質含量表(毫克/100克)((((山粉圓 1073 ))))
請問山粉圓..腎不好的人能吃嗎 - Yahoo!奇摩知識+
http://tw.knowledge.yahoo.com/question/question?qid=1007080905319
不可以的!
以下是100克山粉圓的營養成份:
鈉:5mg
鉀:528mg
鈣:1073mg
鎂:119mg
磷:485mg
鐵:10.1mg
鋅:2.8mg
其中磷的成份太高,不適合腎不好的人食用
參考資料 自己是食品營養系的學生和衛生署資料

2013年3月13日 星期三

Google Takeout

Google Takeout
https://www.google.com/takeout/

Google Takeout 打包再升級,支援 Blogger 和更多 Google+ 檔案匯出 | T客邦 - 我只推薦好東西
http://www.techbang.com/posts/12306-more-google-google-takeout-added-support-for-blogger-blog-and-file-exporting

Google Reader要吹熄燈號了!! Shit...

Official Blog: A second spring of cleaning
http://googleblog.blogspot.tw/2013/03/a-second-spring-of-cleaning.html

Official Google Reader Blog: Powering Down Google Reader
http://googlereader.blogspot.tw/2013/03/powering-down-google-reader.html

左手香(到手香)

咽喉腫痛:
感冒初起時扁桃腺發炎造成的咽喉腫痛,可以取七八片到手香葉,用紗布包住輕輕搓揉擠出原汁,加一點蜂蜜或鹽巴,慢慢的吞嚥,越慢越好,成人一次約50cc,小朋友一次約20cc即可,一天兩次,非常有效,原本連吞口水都很痛的症狀,喝完一次後大約不到半小時即能獲得改善,大概喝兩次後就改善很多了。

消炎消腫止癢:
當臉上長了很多紅痘痘而且會癢,時常忍不住想去抓它,或遇到跌打損傷瘀血黑青時,記得採些到手香葉,用紗布沾原汁貼敷於患處,很快就能消腫止癢及除瘀止痛了。

美白防皺:
這是老阿嬤的私房保養品,就像絲瓜水的保濕收斂一樣的有名,每天洗臉時採二三片鮮葉,將汁液擠入洗臉水中,用毛巾按摩臉部去角質的同時,也促進到手香美白防皺成分的吸收,只要持之以恆,讓妳的肌膚年輕十歲二十歲絕對不是夢。

(1)發燒:若有發燒現象
     材料:左手香100克,特級純蜂蜜。
     做法:左手香洗淨榨汁加入蜂蜜即可使用。
     本草甘露叮嚀妳...
     輕微發燒時,一天可食用多次。
 
(2)喉嚨痛:若有輕微喉嚨痛
     材料:左手香100克,細海鹽。
     做法:左手香洗淨榨汁加入細海鹽,攪拌均勻即可使用。 

小翎的分享天地: 左手香 - yam天空部落
http://diary.blog.yam.com/J220/article/8365835


到手香 @ 一個人與花草的生活 :: 隨意窩 Xuite日誌
http://blog.xuite.net/e2202778/boaboa/35986550-%E5%88%B0%E6%89%8B%E9%A6%99

左 手 香 的 功效、使用方法
http://www.360doc.com/content/11/1204/13/8225807_169569549.shtml

左手香超好用的 ^_^ - BabyHome 寶貝家庭
http://www.babyhome.com.tw/mboard.php?op=d&sID=1908314&bid=4


[香草.藥草] 摸到手就香的~到手香(左手香) @ 心是一畝田 :: 痞客邦 PIXNET ::
http://manonmoon99.pixnet.net/blog/post/20726288-%5B%E9%A6%99%E8%8D%89%EF%BC%8E%E8%97%A5%E8%8D%89%5D-%E6%91%B8%E5%88%B0%E6%89%8B%E5%B0%B1%E9%A6%99%E7%9A%84%EF%BD%9E%E5%88%B0%E6%89%8B%E9%A6%99%EF%BC%88%E5%B7%A6%E6%89%8B%E9%A6%99

大紀元 - 阿嬤的智慧─家有偏方 左手香—天然的消炎良方
http://www.epochtimes.com/b5/10/7/5/n2957376.htm

左手香搗碎敷眼 沒消腫、反失明 - 健康小叮嚀 - 健康話題 - udn健康醫藥
http://mag.udn.com/mag/life/storypage.jsp?f_ART_ID=395689
不可用來敷傷口與眼睛

2013年3月7日 星期四

奇異子(chia seed)

奇異子(chia seed)超級食物 - emome - PChome 個人新聞台
http://mypaper.pchome.com.tw/gfqbnqou/post/1323080550

Chia Seed 奇異子 超級食物 聽說美國好市多有賣 台灣有賣嗎?-COSTCO好市多
http://www.costcobbs.com/thread-6751-1-1.html

[討論] 奇異子(Chia seeds) - 看板 Road_Running - 批踢踢實業坊
http://www.ptt.cc/bbs/Road_Running/M.1315018454.A.7D4.html

奇異子(chia seed)超級食物 @ 澳洲SYD的阿喵 :: 痞客邦 PIXNET ::
http://aj218520.pixnet.net/blog/post/64520561-%E5%A5%87%E7%95%B0%E5%AD%90%28chia-seed%29%E8%B6%85%E7%B4%9A%E9%A3%9F%E7%89%A9

歐盟新穎健康綠色食品-鼠尾草籽(奇異子)Chia Seed - 健康樂活 - - PChome Online 網路家庭-開講
http://forum.pchome.com.tw/content/87/66516

<香草植物>鼠尾草的種類與應用 - 彥宇的香草廚房 - 無名小站
http://www.wretch.cc/blog/idylistgary/13325271

(營養補給站)現貨Navitas Naturals Raw Chia Seeds奇異子454g USDA認證 - 露天拍賣-搜尋4200萬件商品
http://goods.ruten.com.tw/item/qa?21212234599617

平安喜樂 健康過生活: 鼠尾草籽、名列子與山粉圓 傻傻分不清楚?!
http://jamespeacelove.blogspot.tw/2012/02/blog-post_4335.html

2013年3月4日 星期一

幸福102-宜蘭縣環縣健走12站


幸福102-宜蘭縣環縣健走12站活動場次一覽表 - 宜蘭縣政府衛生局
http://www.ilshb.gov.tw/news_contentx.php?cid=4&eid=2033

環縣健走第3站-「綠色森林尋獵人足跡」健走活動 - 宜蘭縣政府衛生局
http://www.ilshb.gov.tw/news_contentx.php?cid=4&eid=2093

卡打車紅豆餅

卡打車脆皮紅豆餅 : [高雄] 左營。卡打車脆皮紅豆餅 分享 by 高高 . - Yahoo!奇摩生活+ x iPeen愛評網
http://tw.ipeen.lifestyle.yahoo.net/comment/284805

高雄-蓮池潭 卡打車脆皮紅豆餅 (焦糖珍珠紅豆餅) - 你掉進湖中的是 金靠腰 還是 銀靠腰 - 無名小站
http://www.wretch.cc/blog/Anne0701/25647819

【高雄】誰說珍珠奶茶只能用喝的-卡打車脆皮紅豆餅(珍珠奶茶口味) - 星也傳奇*旅遊日誌 - 無名小站
http://www.wretch.cc/blog/shin5438/35446262

卡打車紅豆餅 - 山清水秀 - udn部落格
http://blog.udn.com/fgss50/3357115