[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gentoojp-users 841] snapshotを用意してのインストー ルで



 ネットワークに障害があるらしくemerge sync, emerge-webrsyncが
できません。この状態でインストールしようと以下の手順を試みました。
gentoo ppcをPowerMac 7600で使おうとしています。
 なお、MacOS上IE 4.5を用いることで
ftp://ftp.ecc.u-tokyo.ac.jp/GENTOO
から
stage3-ppc-1.4_final.tbz2
portage-20031113.tar.bz2
をダウンロードすることができています。gentooからこれらをhfs形式で
マウントしてtar展開すればlinux上で問題なく使用できるファイルに
なるはずと心得ます。
+ このURLをMLで小町様に教えていただきました。感謝です。
+ Netscape 7.0を用いた場合、まずダウンロードされません。自分が
使用法を誤っている可能性はありますが・・・。他のftpサイトでも
同様でした。

 以下、コマンド操作を列挙し、気づいた点およびトラブルをその間に
挿入する形で記します。

# mke2fs -j /dev/sda8
# mke2fs /dev/sda7
# mkswap /dev/sda7
# swapon /dev/sda7
# mkdir /mnt/gentoo
# mount /dev/sda8 /mnt/gentoo
# mkdir /mnt/mo
# mount -t hfs /dev/sdb /mnt/mo
(stage3-ppc-1.4_final.tbz2、portage-20031113.tar.bz2はscsi接続
されたmoディスク上にあります。)
# cd /mnt/gentoo
# tar -jpxvf /mnt/mo/stage3-ppc-1.4_final.tbz2
# mount -o bind /proc proc
# cd /mnt/gentoo
# mkdir lib/modules
# cp -a /lib/modules/* lib/modules/
# chroot /mnt/gentoo /bin/bash
# env-update
# source /etc/profile
+ /etc/resolv.conf, /etc/hostname, /etc/make.confの編集
# ln -sf /usr/share/zoneinfo/Asia/Tokyo /etc/localtime
# date
(PowerMac 7600をLiveCDから起動し、時計を確認。この段階でJSTで九時間
ほど進んでいます?が経験上インストールに影響なさそうです。)
# cd /usr
# rm -rf portage
# mkdir /mnt/mo
# mount -t hfs /dev/sdb /mnt/mo
# tar -jpxvf /mnt/mo/portage-20031113.tar.bz2
# ln -sf ppc-sources-2.4.22-r2 linux
(ここで/usr/src/linuxがなぜか存在しない/usr/src/linux-<version>に
対するリンクなっていましたので、あらためてリンクし直しました。
こうしないと次のコマンドでエラーが発生します。)
# emerge sys-kernel/ppc-sources
# cd /usr/src/linux
+ .configを用意
(これもMacOS経由ですが、make menuconfigしてあらためて保存し直し
て、経験上カーネルの構築に利用できる設定ファイルになっています。)
# make dep && make clear vmlinux modules modules_install

...
ILD_BASENAME=ll_rw_blk-DEXPORT_SYMTAB -c ll_rw_blk.c
gcc: internal error: Terminated (program cc1)
Please submit a full bug report.
See <URL: https://bugs.gentoo.org/> for instructions.
make[3]: *** [ll_wl_blk.o] Error 1
make[3]: Leaving directory `usr/src/ppc-sources-2.4.22-r2/drivers/block`
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `usr/src/ppc-sources-2.4.22-r2/drivers/block`
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `usr/src/ppc-sources-2.4.22-r2/drivers`
make[1]: *** [dir_drivers] Error2
{standard input}: Assembler messages:
{standard input}: Assembler messages: 4819: Warning: end of file not at end of a line: new line inserted
(複数の.configを試しましたがいつもこのエラーを表示してカーネルの
構築に成功しません。)

 上記のインストール作業に誤りがあるとしたらどのあたりか、
アドバイスをいただけないでしょうか。
stage3-ppc-1.4_final.tbz2
portage-20031113.tar.bz2
ともに、サイト上では最新のものを選びました。ですからsnapshot
(portage-20031113.tar.bz2)のディレクトリ構造がシステムと
合っていないという問題ではなさそうですけれどいかがでしょうか。
 他にもお気づきの点がありましたらぜひお願いします。

--
田中 元 BYH01337@xxxxxxxxxxx