Sponsored Link

« Armadillo-9とは? | メイン | Debianの初期設定 »

2005年11月08日

Debianのインストール

DebianとはLinuxのディストリビューションのこと。
Flash内のLinuxでは厳しいので、Debian化します。
このイメージもCDに付属してるし、アットマークテクノのHPにもあります。
アットマークテクノのHowToにもインストール方法が載ってますが、この方法だと本体のFlashメモリ内のカーネルから起動するので、カーネルのバージョンアップも兼ねて、CF(1Gバイト以上がいい)内のカーネルで起動させようと思います。

1. Debianのイメージとカーネルイメージをあらかじめ用意する
2. Armadillo-9にCFを刺しジャンパーピンをオープンで起動
3. ログイン
login: root
password: root
4. パーティションの設定
# fdisk /dev/hdc
hdc: hdc1

Command (m for help): d
Selected partition 1

Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-992, default 1): 1
Last cylinder or +size or +sizeM or +sizeK (1-992, default 992): 992

Command (m for help): t
Selected partition 1
Hex code (type L to list codes): 83

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
hdc: hdc1
hdc: hdc1
Syncing disks.
5. パーティションの初期化
# mke2fs -O none /dev/hdc1
6. CFと転送ファイル用のramfsをマウント
# mount /dev/hdc1 /mnt
# mount -t ramfs none /home/ftp/pub
# chmod 777 /home/ftp/pub
7. CFにDebianのイメージファイルをFTPクライアントで/home/ftp/pubにアップロード→Telnetクライアントで展開削除をファイルの数だけ繰り返す。
# tar zxvf /home/ftp/pub/arm-sarge-20050310-1.tgz -C /mnt
# rm -f /home/ftp/pub/arm-sarge-20050310-1.tgz
# tar zxvf /home/ftp/pub/arm-sarge-20050310-2.tgz -C /mnt
# rm -f /home/ftp/pub/arm-sarge-20050310-2.tgz
# tar zxvf /home/ftp/pub/arm-sarge-20050310-3.tgz -C /mnt
# rm -f /home/ftp/pub/arm-sarge-20050310-3.tgz
# tar zxvf /home/ftp/pub/arm-sarge-20050310-4.tgz -C /mnt
# rm -f /home/ftp/pub/arm-sarge-20050310-4.tgz
# tar zxvf /home/ftp/pub/arm-sarge-20050310-5.tgz -C /mnt
# rm -f /home/ftp/pub/arm-sarge-20050310-5.tgz
8. FTPクライアントで/home/ftp/pubにカーネルイメージをアップロードし/mnt/boot/にコピー
# cp /home/ftp/pub/linux-2.6.12.3-a9-1.bin.gz /mnt/boot/Image.gz
9. CFのアンマウント後電源を切る
# umount /mnt
10. CFからブート
ジャンパーピンをショートに設定し、CFを挿入してArmadillo-9を再起動すると、CFのカーネルイメージからブートします。
Debianの初期ユーザとパスワードは以下のもの。
login: root (guest)
password: root (guest)

投稿者 chihansen : 2005年11月08日 23:54

コメント

コメントしてください




保存しますか?