用意したのは「そんな装備でだいじょうぶか」というような低価格なUSBメモリ8GB容量です。2つのUSBスロットのどちらに差しても同じ結果になると思います。今回は下側に挿しました。
もとネタは、ぷらっとホームさんのページセルフ開発環境構築 をこの通りにやってみます。
(1) BootさせるUSBメモリの準備 sysinst
次は、ファームウェアの作成、Linuxカーネルのビルドを試みます。ssh 192.168.1.70 ls -l /tftpboot/uImage.initrd_R20110407
-rw-rw-r-- 1 root wheel 15951278 Apr 15 01:33 /tftpboot/uImage.initrd_R20110407
=> setenv bootargs root=/dev/ram rootdelay=15 console=ttyS0,115200
=> tftpboot 0x400000 192.168.1.70:uImage.initrd_R20110407
=> bootm 0x400000
(省略)
Image Name: 0.5-RELEASE-20110407
Created: 2011-04-14 14:34:50 UTC
(省略)
Welcome to SSD/Linux
ssd-linux login: root
Password:
ssd-linux[1]# dhclient eth0
ssd-linux[3]# fdisk -l /dev/sdb
Disk /dev/sdb: 8015 MB, 8015314944 bytes
43 heads, 43 sectors/track, 8466 cylinders
Units = cylinders of 1849 * 512 = 946688 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 5 8467 7823424 c W95 FAT32 (LBA)
ssd-linux[6]# sysinst
SSD/Linux 0.5-RELEASE-20110407/2.6.29 Installer
Are you sure to install [y/N] ?
Error: any partition for linux not detected.
run 'fdisk' and setup partition first.
ssd-linux[6]# fdisk /dev/sdb
(省略)
Disk /dev/sdb: 8015 MB, 8015314944 bytes
43 heads, 43 sectors/track, 8466 cylinders
Units = cylinders of 1849 * 512 = 946688 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 8000 7395978+ 83 Linux
/dev/sdb2 8001 8466 430817 82 Linux
Command (m for help): w
The partition table has been altered!
(省略)
Syncing disks.
ssd-linux[9]#
ssd-linux[9]#
ssd-linux[10]# sysinst
SSD/Linux 0.5-RELEASE-20110407/2.6.29 Installer
Are you sure to install [y/N] ?
Setup Filesystem
Use Boot Device MB FStype BSize fsck Mount Point
--- ---- ---------- ------ ------- ----- ----- -----------
0. * /dev/sdb1 7222 ext3 4096 no /
1. * /dev/sdb2 420 swap no swap
x. Exit this menu.
Enter number [0-1 or x] : 0
Setup /dev/sdb1
Use Boot Device MB FStype BSize fsck Mount Point
--- ---- ---------- ------ ------- ----- ----- -----------
> 0. * /dev/sdb1 7222 ext3 4096 no /
1. * /dev/sdb2 420 swap no swap
a. Toggle use this partition. c. Toggle mke2fs/mkswap with fsck.
f. Toggle fs type ext2/ext3. m. Enter/Change mount point.
b. Change block size.
x. Exit this menu.
Enter command [a, c, f, m, b or x] : x
Setup Filesystem
Use Boot Device MB FStype BSize fsck Mount Point
--- ---- ---------- ------ ------- ----- ----- -----------
0. * /dev/sdb1 7222 ext3 4096 no /
1. * /dev/sdb2 420 swap no swap
x. Exit this menu.
Enter number [0-1 or x] : x
Taking mkswap and mke2fs.
Are you sure [y/N] ? y
Setting up swapspace version 1, size = 441151 kB
no label, UUID=8a6cf799-bf7f-4c6d-ab2f-641c6584c290
Adding 430808k swap on /dev/sdb2. Priority:-1 extents:1 across:430808k
mke2fs 1.39 (29-May-2006)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
924768 inodes, 1848994 blocks
92449 blocks (5.00%) reserved for the super user
First data block=0
57 block groups
32768 blocks per group, 32768 fragments per group
16224 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632
Writing inode tables: 0/57 ...
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 27 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
kjournald starting. Commit interval 5 seconds
EXT3 FS on sdb1, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
Select Distributions
0. Kernel Modules : yes
1. Base : yes
2. System (/etc) : yes
3. Compiler : yes
4. Manuals : yes
5. Source : no
x. Exit this menu.
Enter number [0-5 or x] : x
Select install media
* Network : eth0
x. Exit this menu.
Enter command [x] : x
Setup for FTP download
0. FTP server : ftp.plathome.co.jp
1. Remote pathname : /pub/OBS600/0.5-RELEASE-20110407/powerpc-obs600/binary
2. Local pathname : /usr/INST
3. FTP proxy :
4. Login name : ftp
5. Login Password : Your_Mail_Address
x. Exit this menu.
Enter number [0-5 or x] : 5
Enter password : nkbmobile@gmail.com
Setup for FTP download
0. FTP server : ftp.plathome.co.jp
1. Remote pathname : /pub/OBS600/0.5-RELEASE-20110407/powerpc-obs600/binary
2. Local pathname : /usr/INST
3. FTP proxy :
4. Login name : ftp
5. Login Password : nkbmobile@gmail.com
x. Exit this menu.
Enter number [0-5 or x] : x
Start fetch binaries and extract.
Are you sure [y/N] ? y
Fetch kern.tgz ...
Fetch base.tgz ...
Fetch etc.tgz ...
Fetch comp.tgz ...
Fetch man.tgz ...
Extract kern.tgz ...
./uImage.initrd-cfboot
./System.map
./System.map.2629
./lib/modules/
./lib/modules/2.6.29/
./lib/modules/2.6.29/kernel/
./lib/modules/2.6.29/kernel/crypto/
./lib/modules/2.6.29/kernel/crypto/anubis.ko.gz
(省略)
./usr/share/man/cat8/
./usr/share/man/cat8/audit-packages.0
./usr/share/man/cat8/download-vulnerability-list.0
Make device files...
Write /etc/fstab.
Modify /etc/rc.conf.
Remove /mnt/usr/INST
Are you sure [y/N] ? N
Skip...
Set root passwd
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Boot from CF
Change 1st U-Boot environment area
Change 2nd U-Boot environment area
Boot device change to cf
Installation Completed.
Good luck...
ssd-linux[11]# reboot(2) USBメモリの/dev/sdb1からのBoot=> setenv bootargs root=/dev/sdb1 rootdelay=15 console=ttyS0,115200 => tftpboot 0x400000 192.168.1.70:uImage.initrd_R20110407 => bootm 0x400000 ssd-linux[4]# df 起動後は /dev/sdb1が rootになっています。 Filesystem 1K-blocks Used Available Use% Mounted on LABEL=/ 7279852 789024 6121032 12% / ssd-linux[65]# cat /proc/mounts|head -2 rootfs / rootfs rw 0 0 /dev/root / ext3 rw,errors=continue,data=ordered 0 0 ssd-linux[66]# dumpe2fs -h /dev/sdb1|grep volume dumpe2fs 1.39 (29-May-2006) Filesystem volume name: /
--

0 件のコメント:
コメントを投稿