rockboxとlinuxの作業メモ

rockbox事始め

今日からrockboxについて何か書いていこうと思います。

初回は、コンパイル方法について。
って、コンパイル済みのパッケージを使っている人がほとんどだとは思いますが。
#この辺の話はrockboxのofficial wikiの中に書いてあったりします。

以下、Linuxを想定しています。
適当な作業ディレクトリでソースを持ってくる。

 $ svn co svn://svn.rockbox.org/rockbox/trunck rockbox

toolsディレクトリの中にクロス環境構築用のスクリプトがあるのでこれを実施。

 $ cd rockbox/tools
 $ vi rockboxdev.sh
----
#!/bin/sh

# this is where this script will store downloaded files and check for already
# downloaded files
dlwhere="/tmp/rbdev-dl"

# will append the target string to the prefix dir mentioned here
# Note that the user running this script must be able to do make install in
# this given prefix directory. Also make sure that this given root dir
# exists.
prefix="/usr/local"
・・・
---

prefixあたり自分は変えますね。

prefix="/home/idak/rockboxdev"

とか。で、

 $ chmod +x rockboxdev.sh
 $ ./rockboxdev.sh
Download directory: /tmp/rbdev-dl (edit script to change dir)
Install prefix: /home/idak/rockboxdev/[target] (edit script to change dir)
Build dir: /tmp/rbdev-build (edit script to change dir)

Select target arch:
s - sh (Archos models)
m - m68k (iriver h1x0/h3x0, ifp7x0 and iaudio)
a - arm (ipods, iriver H10, Sansa, etc)
all - all three compilers
---


ここではallを選んでおきましょうか。
これでクロス環境が作成されます。

後は
~/.bashrcか~/.bash_profileあたりに

/home/idak/rockboxdev/sh-elf/bin/
/home/idak/rockboxdev/arm-elf/bin/
/home/idak/rockboxdev/m68k-elf/bin/


のパスを通しておきましょう。

今日はここまでで終了。
次回は、作成されたクロス環境を使用してrockboxのブートローダとか、
本体とかをコンパイルしましょう。


※ こういったサイトのお約束として、書いてあることを実施する場合は自己責任でお願いします。
【続きを読む】
テーマ:プログラミング - ジャンル:コンピュータ