玄人志向「玄箱」で自宅サーバ Part13at MYSV
玄人志向「玄箱」で自宅サーバ Part13 - 暇つぶし2ch324:DNS未登録さん
09/05/07 00:57:49 9657jxtQ
>>323
> 1) MTDドライバのOF何たらサポートを組み込んで、*.dts (device tree) にFLASHの情報を記述する
> 2) drivers/mtd/maps/以下に専用のmapドライバを作る
> 3) 2.6.25 を真似て physmap_set_partions() でパーティションを登録する

この中だと1)が有望そうだけど、だめだったか。2)は牛刀だし、3)は場当たり感があるなぁ。

で、ちょっと調べてみたらLKMLがひっかかった。
URLリンク(lkml.org)
> Subject [PATCH] powerpc: fix linkstation and storcenter compilation breakage
> Defining flash partition table in platform code is deprecated, and due to
> recent changes linkstation and storcenter do not compile any more with
> their default configurations because of undefined references to
> physmap_set_partitions(). Instead of fixing them by using the correct
> kernel configuration macro in preprocessor conditional, remove partition
> table definitions altogether. Instead add support for partition definition
> on the command-line and in device tree to the default configurations.

『プラットフォームごとにパーティションを定義するphysmap_set_partitions()が無くなったので、LinkStation用のコードがコンパイルできなくなったよ! パーティション定義のコードは消した。かわりにカーネルコマンドラインとデバイスツリーで定義しる』
# しかし肝心のカーネルコマンドラインはどこにも書いてない...

このパッチがmergeされたのが2.6.29-rc8からなので、2.6.28.xの人はセーフなのかな?
カーネルに追加する引数はこんな感じでいいんだろうか。玄箱HGは実家に置いてきたので試せない。誰かお願い。
mtdparts=physmap-flash.0:0x300000(firmimg),0x70000(loader),0x10000(status),0x80000(loader-env)


次ページ
続きを表示
1を表示
最新レス表示
レスジャンプ
類似スレ一覧
スレッドの検索
話題のニュース
おまかせリスト
オプション
しおりを挟む
スレッドに書込
スレッドの一覧
暇つぶし2ch