2016年8月28日 星期日

一條河

【第二屆十大「節」出綠繪本.得獎作品賞】第一名:《海邊的診所》 - 環境通訊網
http://enw.e-info.org.tw/content/1949
【第二屆十大「節」出綠繪本.得獎作品賞】海大富獎:《海龜的願望》 - 環境通訊網
http://enw.e-info.org.tw/content/1954
The Survival of the Sea Turtle - YouTube
https://youtu.be/t-KmQ6pGxg4
【第二屆十大「節」出綠繪本.得獎作品賞】佳作:《不要的垃圾》 - 環境通訊網
http://enw.e-info.org.tw/content/1953
海邊什麼垃圾最多? - 台灣環境資訊協會
http://teia.tw/zh-hant/event/story/6974
世界烏龜日 淨灘垃圾化身繽紛大海龜 - 環境通訊網
http://enw.e-info.org.tw/content/2832
(18) 還地球幸福的笑臉 - 【分享30萬次,捐出30萬元!金曲歌后彭佳慧用音樂幫助小海龜】...
https://www.facebook.com/protect.earth.ocean/videos/642067719285206/

【賞讀.綠繪本】野溪整型記 | 台灣環境資訊協會-環境資訊中心
http://e-info.org.tw/node/112255

塑膠袋流浪記
https://youtu.be/eXoozwXK6RE

單元名稱:從山裡逃出來/垃圾,丟啊!
http://ee.tc.edu.tw/06edu%20popularize/99/picture%20book/98/teaching%20plan/book-1.pdf

海洋科學繪本-你為什麼住這裡?
https://youtu.be/eMAo7iQAWPQ

 

2016年8月25日 星期四

FATAL: kernel too old

I used buildroot to generate bzImage and rootfs.cpio.gz, but always get "FATAL: kernel too old", no matter how I config the BR2_KERNEL_HEADERS_XXX and BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_XXX.

Google said the glibc need --enable-kernel, but buildroot already gave that. Then I found that my 3.13 kernel include/linux/version.h has LINUX_VERSION_CODE configured to something like 3.4....

I'm using Linux kernel checkout by git. It seems that the include/linux/version.h was generated when I were using 3.4, which I don't even remember when.

So if you got this error, and happen to be using linux source checkout by git, maybe try

git clean -xfd
Hopes this save your day, cause I've spent mine on this stupid reason. sigh.

2016年8月24日 星期三

2016年8月8日 星期一

Linux perf "irq/sec"

perf top has a value "irq/sec"

linux/tools/perf/builtin-top.c, perf_top__mmap_read_idx(), top->samples is increased whenever read a sample.

linux/tools/perf/util/top.c, perf_top__header_snprintf(), the irq/sec is the value of samples_per_sec, which is calculated by:
        float samples_per_sec = top->samples / top->delay_secs;

Therefor, the irq/sec is, sample rate. Period.