ソラマメブログ
アクセスカウンタ
読者登録
メールアドレスを入力して登録する事で、このブログの新着エントリーをメールでお届けいたします。解除は→こちら
現在の読者数 1人
プロフィール
rikachann Aabye
rikachann Aabye
きままに遊んでます。
最近はものつくりをやりたいと思ってます。
なかなか思うように作れませんが試行錯誤の毎日です
よろしくね。

2009年10月25日

玄箱HGでOpenSim(Fedora11)その3

前回に引き続き、玄箱HGへのOpenSimの導入のメモです。
今回は

3、Fedora11のIP関係の設定変更

です。

玄箱HGのホスト名とIPアドレス等をあらかじめ決めます。

ホスト名: orion
IPアドレス: 192.168.1.28(ここではEMモード時にDHCPで自動取得されたIPを使用)
ネットマスク: 255.255.255.0
ゲートウェイ: 192.168.1.1

玄箱HGをhda1の標準Linuxで起動させます

前回説明した起動途中での下記入力モード時に1を選択します

Select the OS in 5 secs: (default is 4)
1: Linux
4: Fedora11(u-boot:/dev/hda3:kernel 2.6.29.4)

rootでパスワード kuroadminでログイン

デフォルトのホスト名を変更します。
lessで内容確認

root@KURO-BOX:/#
root@KURO-BOX:/# cd /mnt/hda3/etc
root@KURO-BOX:/mnt/hda3/etc# less hosts
127.0.0.1 localhost
192.168.11.150 KURO-BOX
root@KURO-BOX:/mnt/hda3/etc#

viでhostsを変更。
再度lessで確認。
root@KURO-BOX:/mnt/hda3/etc# less hosts
127.0.0.1 localhost
192.168.1.28 orion

root@KURO-BOX:/mnt/hda3/etc#

さらにnetwowkファイルのhostnameも変更、合わせてgatewayも変更

root@KURO-BOX:/mnt/hda3/etc#
root@KURO-BOX:/mnt/hda3/etc# cd sysconfig
root@KURO-BOX:/mnt/hda3/etc/sysconfig# less network
NETWORKING=yes
HOSTNAME=KURO-BOX
GATEWAY=192.168.11.1
root@KURO-BOX:/mnt/hda3/etc/sysconfig#

viでnetworkファイルを編集

root@KURO-BOX:/mnt/hda3/etc/sysconfig# less network
NETWORKING=yes
HOSTNAME=orion
GATEWAY=192.168.1.1
root@KURO-BOX:/mnt/hda3/etc/sysconfig#

次にIPアドレス変更、ifcfg-eth0ファイルを編集します

root@KURO-BOX:/mnt/hda3/etc/sysconfig#
root@KURO-BOX:/mnt/hda3/etc/sysconfig# cd network-scripts
root@KURO-BOX:/mnt/hda3/etc/sysconfig/network-scripts#
root@KURO-BOX:/mnt/hda3/etc/sysconfig/network-scripts# less ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
BROADCAST=192.168.11.255
IPADDR=192.168.11.150
NETMASK=255.255.255.0
NETWORK=192.168.11.0
root@KURO-BOX:/mnt/hda3/etc/sysconfig/network-scripts#

viでifcfg-eth0ファイルを編集

root@KURO-BOX:/mnt/hda3/etc/sysconfig/network-scripts# less ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
BROADCAST=192.168.1.255
IPADDR=192.168.1.28
NETMASK=255.255.255.0
NETWORK=192.168.1.0
root@KURO-BOX:/mnt/hda3/etc/sysconfig/network-scripts#

続いてresolv.confファイルを編集します

root@KURO-BOX:/mnt/hda3/etc/sysconfig/network-scripts# cd ..
root@KURO-BOX:/mnt/hda3/etc/sysconfig# cd ..
root@KURO-BOX:/mnt/hda3/etc# less resolv.conf
nameserver 192.168.11.1
root@KURO-BOX:/mnt/hda3/etc#

viでフresolv.confァイルを編集

root@KURO-BOX:/mnt/hda3/etc# less resolv.conf
nameserver 192.168.1.1
root@KURO-BOX:/mnt/hda3/etc#

これまでの設定で Fedora11が起動した後、telnet接続できるようになります。

Fedora11が起動は次のようなステップです

1、hda1の玄箱標準Linuxが起動する
2、玄箱標準Linuxからubootに制御が移る
3、ubootがhda3のFedora11を起動する。

ここで大事あのはubootとFedora11に制御が移るとシリアルコンソールが使えなくなることです^^;
(2009.10時点)

では、rebootして Fedora11を起動させてみます。
起動後windows機のコマンドプロンプトウインドウでpingコマンドで接続の確認をします。
ubootのところで無反応状態になりますが、じっと我慢します。

以下コマンドラインです

root@KURO-BOX:/mnt/hda3/etc# reboot

Broadcast message from root (console) Mon Oct 26 02:39:49 2009...

The system is going down for reboot NOW !!
INIT: Switching to runlevel: 6
INIT: Sending processes the TERM signal
INIT: SeStopping periodic command scheduler: cron.
Stopping internet superserver: inetd.
Start services: thttpdStop services: ppc_uartdSaving random seed... done.
Stop services: lpd
Stop servecies: atalkd afpd
Stopping system log daemon: klogd syslogd.
Stop services: smbd nmbd
Stop services: ppc_uartd
Sending all processes the TERM signal... dhcpcd[110]: terminating on signal 15

done.
Sending all processes the KILL signal... done.
Unmounting remote filesystems... done.
Deactivating swap... done.
Unmounting local filesystems... done.
Rebooting... flushing ide devices: hda
Restarting system.

******* Product Information *******
----------------------------------
Product Name: KURO-BOX/HG(IESHIGE)
VER: 1.00
Date: 2004/10/19 17:18:54
----------------------------------
Firmware check:done.

>>root=/dev/hda1
Now Loading...done.
Now Booting
Memory BAT mapping: BAT2=128Mb, BAT3=0Mb, residual: 0Mb
Linux version 2.4.17_mvl21 (root@toda_dev.melcoinc.co.jp) (gcc version 2.95.3 20010315 (release/MontaVista)) #24 2004? 10キ・19ニ・イミヘヒニ・17:17:03 JST
KURO-BOX (C) 2004 KUROUTO-SHIKOU.
On node 0 totalpages: 32768
zone(0): 32768 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/hda1
OpenPIC Version 1.2 (1 CPUs and 139 IRQ sources) at 80040000
decrementer frequency = 32.477950 MHz
Calibrating delay loop... 172.85 BogoMIPS
Memory: 124760k available (1244k kernel code, 556k data, 188k init, 0k highmem)
Dentry-cache hash table entries: 16384 (order: 5, 131072 bytes)
Inode-cache hash table entries: 8192 (order: 4, 65536 bytes)
Mount-cache hash table entries: 2048 (order: 2, 16384 bytes)
Buffer-cache hash table entries: 8192 (order: 3, 32768 bytes)
Page-cache hash table entries: 32768 (order: 5, 131072 bytes)
POSIX conformance testing by UNIFIX
PCI: Probing PCI hardware
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
Disabling the Out Of Memory Killer
Journalled Block Device driver loaded
pty: 256 Unix98 ptys configured
MELCO INC. RTC driver ver 1.00
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled
ttyS00 at 0x80004600 (irq = 138) is a 16550A
ttyS01 at 0x80004500 (irq = 137) is a 16550A
block: 128 slots per queue, batch=32
RAMDISK driver initialized: 16 RAM disks of 10000K size 1024 blocksize
Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
CMD680: IDE controller on PCI bus 00 dev 60
CMD680: chipset revision 2
CMD680: 100% native mode on irq 17
ide0: BM-DMA at 0xbffed0-0xbffed7, BIOS settings: hda:pio, hdb:pio
ide1: BM-DMA at 0xbffed8-0xbffedf, BIOS settings: hdc:pio, hdd:pio
hda: ST380011A, ATA DISK drive
ide0 at 0xbffef8-0xbffeff,0xbffef6 on irq 17
hda: 156301488 sectors (80026 MB) w/2048KiB Cache, CHS=9729/255/63, UDMA(100)
Partition check:
hda: hda1 hda2 hda3 hda4
FLASHDISK:Initialized [FUJITSU MBM29PL32TM]
eth0: RTL8169s/8110s Gigabit Ethernet driver supports Jambo Frame 1.8n4b <2004-3-16> at 0xc9000f00, 00:0d:0b:ad:81:0f, IRQ 16
eth0: Auto-negotiation Enabled.
eth0: 100Mbps Full-duplex operation.
SCSI subsystem driver Revision: 1.00
request_module[scsi_hostadapter]: Root fs not mounted
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
hcd.c: ehci-hcd @ 00:0e.2, PCI device 1033:00e0 (NEC Corporation)
hcd.c: irq 19, pci mem c9002f00
usb.c: new USB bus registered, assigned bus number 1
hcd/ehci-hcd.c: USB 2.0 support enabled, EHCI rev 1. 0
hub.c: USB hub found
hub.c: 5 ports detected
usb-ohci.c: USB OHCI at membase 0xc9004000, IRQ 19
usb-ohci.c: usb-00:0e.0, NEC Corporation USB
usb.c: new USB bus registered, assigned bus number 2
hub.c: USB hub found
hub.c: 3 ports detected
usb-ohci.c: USB OHCI at membase 0xc9006000, IRQ 19
usb-ohci.c: usb-00:0e.1, NEC Corporation USB (#2)
usb.c: new USB bus registered, assigned bus number 3
hub.c: USB hub found
hub.c: 2 ports detected
usb.c: registered new driver usblp
printer.c: v0.11: USB Printer Device Class driver
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 1024 buckets, 8Kbytes
TCP: Hash tables configured (established 8192 bind 8192)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
NET4: AppleTalk 0.18a for Linux NET4.0
RAMDISK: Compressed image found at block 0
Freeing initrd memory: 2137k freed
fff70000:4f4b4f4b
EXT2-fs warning: checktime reached, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem).
fff70000:4f4b4f4b
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
change_root: old root has d_count=2
Trying to unmount old root ... okay
Freeing unused kernel memory: 188k init
modprobe: modprobe: Can't locate module char-major-4
INIT: version 2.78 booting
Activating swap...
Adding Swap: 1028152k swap-space (priority -1)
EXT3 FS 2.4-0.9.17, 10 Jan 2002 on ide0(3,1), internal journal
************************************************
Select the OS in 5 secs: (default is 4)
1: Linux
4: Fedora11(u-boot:/dev/hda3:kernel 2.6.29.4)

** Default **
** No.4 **
uloader module loaded
uboot=/boot/u-boot-hg.ram.bin


U-Boot 1.2.0 (Jun 7 2009 - 20:10:41) LinkStation HG / KuroBox HG

CPU: MPC8245 Revision 1.4 at 262.144 MHz: 16 kB I-Cache 16 kB D-Cache
DRAM: 128 MB
FLASH: 4 MB
*** Warning - bad CRC, using default environment

00 0b 10ec 8169 0200 ff
00 0c 1095 0680 0101 ff
00 0e 1033 0035 0c03 ff
00 0e 1033 0035 0c03 ff
00 0e 1033 00e0 0c03 ff
Net: RTL8169#0
stdin : serial
stdout: serial
stderr: serial
IDE: Bus 0: OK
Device 0: Model: ST380011A Firm: 3.06 Ser#: 5JV8219J
Type: Hard Disk
Supports 48-bit addressing
Capacity: 76319.0 MB = 74.5 GB (156301488 x 512)
Boot in 01 seconds ('s' to stop)...
Loading 0:3:boot/vmlinux.UBoot

1988233 bytes read

2371 bytes read
## Booting image at 00800000 ...
Image Name: Linux-2.6.30.5_kurobox
Image Type: PowerPC Linux Kernel Image (gzip compressed)
Data Size: 1988169 Bytes = 1.9 MB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Booting using flat device tree at 0x7f0000
Using Buffalo Linkstation machine description
Linux version 2.6.30.5_kurobox (root@KUROHG-F11) (gcc version 4.4.1 20090725 (Red Hat 4.4.1-2) (GCC) ) #2 Wed Sep 16 07:31:03 JST 2009
console [udbg0] enabled
Adding PCI host bridge /soc10x/pci@fec00000
PCI host bridge /soc10x/pci@fec00000 (primary) ranges:
IO 0x00000000fe000000..0x00000000febfffff -> 0x0000000000000000
MEM 0x0000000080000000..0x00000000efffffff -> 0x0000000080000000
BUFFALO Network Attached Storage Series
(C) 2002-2005 BUFFALO INC.
Zone PFN ranges:
DMA 0x00000000 -> 0x00008000
Normal 0x00008000 -> 0x00008000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
0: 0x00000000 -> 0x00008000
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512
Kernel command line: root=/dev/sda3 netconsole=6666@192.168.11.150/,@192.168.11.149/
NR_IRQS:512
mpic: Setting up MPIC " EPIC " version 1.2 at 80040000, max 1 CPUs
mpic: ISU size: 4, shift: 2, mask: 3
mpic: Initializing for 12 sources
PID hash table entries: 512 (order: 9, 2048 bytes)
clocksource: timebase mult[7afe256] shift[22] registered
Console: colour dummy device 80x25
console handover: boot [udbg0] -> real [tty0]

この表示のあとは、シリアルコンソールの出力は無くなります。

HDの音が収まったら、windows機のコマンドプロンプトからpingコマンドを打ちます。

ping 192.168.1.28

無事接続されていると、反応が返ってきます。

玄箱HGでOpenSim(Fedora11)その3

次にいよいよ Fedora11にログインします。

Tera Termのファイル→新しい接続でTCP/IPをチェックして ホストを”192.168.1.28”に設定
OKを押します

SSH認証で ユーザー名 root バスフレーズ kuro を入力 okキーを押す
下のタブの192.168.1.28...を選択します。

ログインプロンプトが出ます^^

玄箱HGでOpenSim(Fedora11)その3

システム情報を表示

[root@orion ~]# uname -a
Linux orion 2.6.30.5_kurobox #2 Wed Sep 16 07:31:03 JST 2009 ppc ppc ppc GNU/Linux
メールが /var/spool/mail/root にあります
[root@orion ~]# uname -r
2.6.30.5_kurobox
[root@orion ~]#

無事インストールできたみたいです^^

次回に続きます^^




























同じカテゴリー(玄箱HG(Fedora11))の記事画像
玄箱HGでOpenSim0.7rc2にアップ
OpenSim玄箱Fedora11で0.6.8up
玄箱HGでOpenSim(Fedora11)補足します
玄箱HGでOpenSim(Fedora11)その7
玄箱HGでOpenSim(Fedora11)その6
玄箱HGでOpenSim(Fedora11)その4
同じカテゴリー(玄箱HG(Fedora11))の記事
 玄箱HGでOpenSim0.7rc2にアップ (2010-07-11 19:06)
 OpenSim玄箱Fedora11で0.6.8up (2010-01-04 15:39)
 玄箱HGでOpenSim(Fedora11)補足します (2009-12-12 20:46)
 玄箱HGでOpenSim(Fedora11)その7 (2009-11-01 21:20)
 玄箱HGでOpenSim(Fedora11)その6 (2009-11-01 18:12)
 玄箱HGでOpenSim(Fedora11)その5 (2009-10-30 21:56)
Posted by rikachann Aabye at 18:17│Comments(0)玄箱HG(Fedora11)
上の画像に書かれている文字を入力して下さい
 
<ご注意>
書き込まれた内容は公開され、ブログの持ち主だけが削除できます。