アレゲメモリ

昨日のメモリ割り当てがなんでああなってるのか調べたら*1、どうやらカーネルのバグらしい。
OMAPpediaのFAQ

I get segfaults/sigbuses when compiling. What's wrong?
There's a bug in the kernel when running the pandaboard with 1GB of RAM, that causes some compilations to fail with "Segmentation Fault" or "SIGBUS". (ref)
The workaround until its fixed is to use the following on the kernel command line options:
mem=460M@0x80000000 mem=256M@0xA0000000
which makes the board boot with 768MB of RAM

Ubuntuのバグ報告でもディスカッションされてる。
Bug #633227 “instabilities with highmem activated” : Bugs : linux-ti-omap4 package : Ubuntu
EA1の報告しか見当たらないので、EA1に特有なのか、カーネルバージョンが同じならどのボードでも起きるのかはわからない。
特に問題は起きなかったが、一応公式にサポートされるまで戻しておくことにした。


追記:Gentoo Linuxのインストールガイドにも似たようなことが。
http://dev.gentoo.org/~armin76/arm/pandaboard/install.xml
やっぱりカーネルかな…

*1:修正する前に調べたほうがよかった気もする