玄芝のカーネルを2.6.35にアップグレード(3)

この記事は2年以上前に書いたものです。
そのため情報が古い可能性があります。ご了承ください。m(_ _)m

玄芝のカーネルを2.6.35にアップグレード(2) の続き

3. TFTPD + NFS でブート

ビルドしたをいきなりKuroSheevaのNANDに書き込むのは、
ちょっと怖いので、ちゃんと動くことを確認してからにしたい。

ってことで、tftpd + NFSの環境を構築すれば、
NANDに手を加えずに起動できるらしいので、それをやる。

必要な物は、
・uImage
・rootfs
・tftpd-hpa
・nfs-server

手順は、
1. のrootfsを展開
2. ビルドしたカーネルで起動
3. KuroSheevaのNANDをmountして、全データを固める
4. 2で固めたデータを、NFSサーバに展開(オリジナルrootfs)
5. ビルドしたカーネル+↑で展開したオリジナルrootfs で起動

$ sudo aptitude install tftpd-hpa
$ sudo aptitude install nfs-kernel-server

クロスコンパイラ環境を作るときに、SheevaPlug_Host_SWsupportPackageLinuxHost1.2.zipを取得して展開しましたが、
その中に「 Host Filesystem – rootfs.tar.bz2」なるファイルも含まれているので、
そいつを展開するとrootfsv1.0 というディレクトリが出来る。

$ tar jtvf  Linux\ Host\ Filesystem\ -\ rootfs.tar.bz2
$ ls -l rootfsv1.0/
合計 68
drwxr-xr-x  2 root root  4096 2008-02-27 02:25 bin
drwxr-xr-x  4 root root 36864 2008-02-27 02:27 dev
drwxr-xr-x  3 root root  4096 2008-02-27 02:19 etc
drwxr-xr-x  2 root root  4096 2008-02-27 02:19 lib
lrwxrwxrwx  1 root root    11 2010-08-06 14:49 linuxrc -> bin/busybox
drwxr-xr-x  2 root root  4096 2009-02-25 13:45 mnt
drwxr-xr-x  2 root root  4096 2008-02-27 02:26 proc
drwxr-xr-x  2 root root  4096 2008-02-27 02:19 sbin
drwxr-xr-x 10 root root  4096 2008-02-27 02:25 usr

このディレクトリをNFSで公開する。

現状の設定は↓こんな感じ。

$ cat /etc/hosts | grep kurosheeva
127.0.1.1       kurosheeva-dev
192.168.0.44 kurosheeva
$ cat /etc/exports |grep root
/home/user/KuroSheeva/rootfsv1.0 kurosheeva(rw,no_root_squash,sync,no_subtree_check)
$ ifconfig | grep inet | grep 192
          inetアドレス:192.168.0.210  ブロードキャスト:192.168.0.255  マスク:255.255.255.0
$ sudo /etc/init.d/nfs-kernel-server restart

本体のIPアドレスは、192.168.0.44とした(ブラッグスの背番号と同じ)
そのIPアドレス向けに、/home/user/KuroSheeva/rootfsv1.0 というディレクトリを公開。
ちなみに、NFSサーバのIPアドレスは、192.168.0.210

tftpd-hpaの設定は、/etc/default/tftpd-hpa を修正するらしい。
ググったらOPTION, RUN_DAEMONを修正しろって出てくるけど、
そのオプションがそもそも無かったので、追加した。

$ cat /etc/default/tftpd-hpa
# /etc/default/tftpd-hpa

TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/var/lib/tftpboot"
TFTP_ADDRESS="0.0.0.0:69"
TFTP_OPTIONS="--secure"

RUN_DAEMON="yes"
OPTIONS="-c -l -s /var/lib/tftpboot"
$ sudo /etc/init.d/tftpd-hpa start

カーネルビルド時に作成したmoduleを、
rootfs内にコピーする。

$ sudo cp -pr /home/user/tftpboot/lib/modules /home/user/KuroSheeva/rootfsv1.0/lib/

これで、起動する準備が整ったので、
玄芝とPCをUSB-Serialケーブルで繋げて、玄芝を再起動。

Ubuntu 9.04 debian ttyS0

debian login: root
Password:
Linux debian 2.6.22.18 #1 Thu Mar 19 14:46:22 IST 2009 armv5tejl

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

To access official Ubuntu documentation, please visit:
http://help.ubuntu.com/
root@debian:~# reboot
root@debian:~#
Broadcast message from root@debian
        (/dev/ttyS0) at 1:51 ...

The system is going down for reboot NOW!
 * Stopping Samba daemons                                                [ OK ]
 * Saving the system clock
Stopping unfs3: unfs3.
 * Asking all remaining processes to terminate...                        [ OK ]
 * All processes ended within 2 seconds....                              [ OK ]
 * Stopping portmap daemon...                                            [ OK ]
 * not deconfiguring network interfaces: network file systems still mounted.
 * Unmounting temporary filesystems...                                   [ OK ]
 * Deactivating swap...                                                  [ OK ]
 * Stopping remaining crypto disks...                                    [ OK ]
 * Stopping early crypto disks...                                        [ OK ]
 * Will now restart
Restarting system.

         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_
| | | |___|  _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
 \___/    |____/ \___/ \___/ \__|
 ** MARVELL BOARD: SHEEVA PLUG LE

U-Boot 1.1.4 (Sep  7 2009 - 20:21:09) Marvell version: 3.4.16

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006CEE60

Soc: 88F6281 A0 (DDR2)
CPU running @ 1200Mhz L2 running @ 400Mhz
SysClock = 400Mhz , TClock = 200Mhz

DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000   size 256MB
DRAM CS[1] base 0x10000000   size 256MB
DRAM Total size 512MB  16bit width
Flash:  0 kB
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:512 MB

CPU : Marvell Feroceon (Rev 1)

Streaming disabled
Write allocate disabled


USB 0: host mode
PEX 0: interface detected no Link.
Net:   egiga0 [PRIME], egiga1
Hit any key to stop autoboot:  0
Marvell>>

SheevaPlug/NFSroot – PukiWiki
の通りに設定して、起動。

Marvell>> setenv ipaddr 192.168.0.44
Marvell>> setenv serverip 192.168.0.210
Marvell>> setenv rootpath '/home/user/KuroSheeva/rootfsv1.0'
Marvell>> setenv console_base console='ttyS0,115200 mtdparts=orion_nand:0x400000@0x100000(uImage),0x1fb00000@0x500000(rootfs) rw'
Marvell>> setenv bootargs_nfs 'root=/dev/nfs rw'
Marvell>> setenv bootnfs 'tftpboot $(loadaddr) $(image_name)'
Marvell>> setenv bootcmd_nfs 'setenv bootargs $(console_base) $(bootargs_nfs) nfsroot=$(serverip):$(rootpath) ip=$(ipaddr):$(serverip)$(bootargs_end); run bootnfs; bootm $(loadaddr)'
Marvell>> saveenv

「run bootcmd_nfs」を叩くと起動する。

Marvell>> run bootcmd_nfs
Using egiga0 device
TFTP from server 192.168.0.210; our IP address is 192.168.0.44
Filename 'uImage'.
Load address: 0x2000000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ####################################
done
Bytes transferred = 2844560 (2b6790 hex)
## Booting image at 02000000 ...
   Image Name:   Linux-2.6.35
   Created:      2010-08-06  18:48:15 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2844496 Bytes =  2.7 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Linux version 2.6.35 (user@kurosheeva-dev) (gcc version 4.2.1) #4 PREEMPT Sat Aug 7 03:48:11 JST 2010
CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: Marvell eSATA SheevaPlug Reference Board
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
Kernel command line: console=ttyS0,115200 mtdparts=orion_nand:0x400000@0x100000(uImage),0x1fb00000@0x500000(rootfs) rw root=/dev/nfs rw nfsroot=192.168.0.210:/home/user/KuroSheeva/rootfsv1.0 ip=192.168.0.44:192.168.0.210:::DB88FXX81:eth0:none
PID hash table entries: 2048 (order: 1, 8192 bytes)
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 256MB 256MB = 512MB total
Memory: 513356k/513356k available, 10932k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    DMA     : 0xffc00000 - 0xffe00000   (   2 MB)
    vmalloc : 0xe0800000 - 0xfe800000   ( 480 MB)
    lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .init : 0xc0008000 - 0xc002d000   ( 148 kB)
      .text : 0xc002d000 - 0xc0525000   (5088 kB)
      .data : 0xc0570000 - 0xc05a0040   ( 193 kB)
SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
        RCU-based detection of stalled CPUs is disabled.
        Verbose stalled-CPUs detection is disabled.
NR_IRQS:114
Console: colour dummy device 80x30
Calibrating delay loop... 1192.75 BogoMIPS (lpj=5963776)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
Kirkwood: MV88F6281-A0, TCLK=200000000.
Feroceon L2: Enabling L2
Feroceon L2: Cache support initialised.
bio: create slab <bio-0> at 0
vgaarb: loaded
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
cfg80211: Calling CRDA to update world regulatory domain
Switching to clocksource orion_clocksource
NET: Registered protocol family 2
IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
TCP established hash table entries: 16384 (order: 5, 131072 bytes)
TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 16384 bind 16384)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
JFFS2 version 2.2. (NAND) ツゥ 2001-2006 Red Hat, Inc.
JFS: nTxBlock = 4010, nTxLock = 32084
msgmni has been set to 1002
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
console [ttyS0] enabled
brd: module loaded
loop: module loaded
sata_mv sata_mv.0: version 1.28
sata_mv sata_mv.0: slots 32 ports 2
scsi0 : sata_mv
scsi1 : sata_mv
ata1: SATA max UDMA/133 irq 21
ata2: SATA max UDMA/133 irq 21
NAND device: Manufacturer ID: 0xec, Chip ID: 0xdc (Samsung NAND 512MiB 3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 1235 at 0x000009a60000
2 cmdlinepart partitions found on MTD device orion_nand
Creating 2 MTD partitions on "orion_nand":
0x000000100000-0x000000500000 : "uImage"
0x000000500000-0x000020000000 : "rootfs"
MV-643xx 10/100/1000 ethernet driver version 1.4
mv643xx_eth smi: probed
net eth0: port 0 with MAC address 00:50:43:01:44:67
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
orion-ehci orion-ehci.0: Marvell Orion EHCI
orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver ums-datafab
usbcore: registered new interface driver ums-freecom
usbcore: registered new interface driver ums-jumpshot
usbcore: registered new interface driver ums-sddr09
usbcore: registered new interface driver ums-sddr55
mice: PS/2 mouse device common for all mice
rtc-mv rtc-mv: rtc core: registered rtc-mv as rtc0
i2c /dev entries driver
cpuidle: using governor ladder
cpuidle: using governor menu
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
mmc0: mvsdio driver initialized, using GPIO 47 for card detection
mv_xor_shared mv_xor_shared.0: Marvell shared XOR driver
mv_xor_shared mv_xor_shared.1: Marvell shared XOR driver
mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
mv_xor mv_xor.1: Marvell XOR: ( xor fill cpy )
mv_xor mv_xor.2: Marvell XOR: ( xor cpy )
ata1: SATA link down (SStatus 0 SControl F300)
mv_xor mv_xor.3: Marvell XOR: ( xor fill cpy )
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
oprofile: hardware counters not available
oprofile: using timer interrupt.
TCP cubic registered
NET: Registered protocol family 17
lib80211: common routines for IEEE802.11 drivers
rtc-mv rtc-mv: setting system clock to 2010-08-08 10:03:14 UTC (1281261794)
IP-Config: Guessing netmask 255.255.255.0
IP-Config: Complete:
     device=eth0, addr=192.168.0.44, mask=255.255.255.0, gw=255.255.255.255,
     host=DB88FXX81, domain=, nis-domain=(none),
     bootserver=192.168.0.210, rootserver=192.168.0.210, rootpath=
eth0: link up, 1000 Mb/s, full duplex, flow control disabled
ata2: link is slow to respond, please be patient (ready=0)
ata2: SRST failed (errno=-16)
ata2: link is slow to respond, please be patient (ready=0)
ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
ata2.00: ATA-8: Hitachi HDS722020ALA330, JKAOA3EA, max UDMA/133
ata2.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32)
ata2.00: configured for UDMA/133
scsi 1:0:0:0: Direct-Access     ATA      Hitachi HDS72202 JKAO PQ: 0 ANSI: 5
sd 1:0:0:0: [sda] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB)
sd 1:0:0:0: Attached scsi generic sg0 type 0
sd 1:0:0:0: [sda] Write Protect is off
sd 1:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
 sda: sda1
sd 1:0:0:0: [sda] Attached SCSI disk
Looking up port of RPC 100003/2 on 192.168.0.210
Looking up port of RPC 100005/1 on 192.168.0.210
VFS: Mounted root (nfs filesystem) on device 0:13.
Freeing init memory: 148K
init started: BusyBox v1.7.0 (2008-02-26 19:25:17 IST)
starting pid 574, tty '': '/etc/init.d/rcS'
starting pid 576, tty '': '/bin/sh'
-sh-3.2#

起動できたので、のNANDをmount

-sh-3.2# cat /dev/mtdblock
cat: can't open '/dev/mtdblock': No such file or directory
-sh-3.2# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00400000 00020000 "uImage"
mtd1: 1fb00000 00020000 "rootfs"
-sh-3.2# mount /dev/mtdblock1 /mnt
mount: mounting /dev/mtdblock1 on /mnt failed: Invalid argument
-sh-3.2# mount -t jffs2 /dev/mtdblock1 /mnt
-sh-3.2# cd /
-sh-3.2# ls
bin      etc      linuxrc  proc     usr
dev      lib      mnt      sbin
-sh-3.2# cd mnt
-sh-3.2# tar zcf /rootfs_custom.tar.gz .
-sh-3.2#

これで玄芝本体から、オリジナルなrootfsが取得できたので、
NFSサーバ側からrootfs_custom.tar.gzを参照し、展開。

$ cd /home/user/KuroSheeva
$ ls
rootfsv1.0
$ mkdir rootfs_custom
$ cd rootfs_custom
$ sudo tar zxvfp ../rootfsv1.0/rootfs_custom.tar.gz
$ sudo cp -pr /var/lib/tftpboot/lib/modules/2.6.35 lib/modules/

rootfsv1.0と同じようにexport。

$ grep rootfs /etc/exports
/home/user/KuroSheeva/rootfsv1.0 kurosheeva(rw,no_root_squash,sync,no_subtree_check)
/home/user/KuroSheeva/rootfs_custom kurosheeva(rw,no_root_squash,sync,no_subtree_check)

玄芝がIPアドレスをで取得するような設定になっている場合、
起動時に失敗するので、staticに変更。

vi rootfs_custom/etc/network/interfaces
---
auto eth0
#iface eth0 inet dhcp
iface eth0 inet static
# /usr/share/doc/ifupdown/examples for more information.
address 192.168.0.44
netmask 255.255.255.0
gateway 192.168.0.20
---

玄芝本体を再起動

-sh-3.2# reboot
The system is going down NOW!
Sending SIGTERM to all processes
Requesting system reboot
sd 1:0:0:0: [sda] Synchronizing SCSI cache
Restarting system.

         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_
| | | |___|  _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
 \___/    |____/ \___/ \___/ \__|
 ** MARVELL BOARD: SHEEVA PLUG LE

U-Boot 1.1.4 (Sep  7 2009 - 20:21:09) Marvell version: 3.4.16

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006CEE60

Soc: 88F6281 A0 (DDR2)
CPU running @ 1200Mhz L2 running @ 400Mhz
SysClock = 400Mhz , TClock = 200Mhz

DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000   size 256MB
DRAM CS[1] base 0x10000000   size 256MB
DRAM Total size 512MB  16bit width
Flash:  0 kB
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:512 MB

CPU : Marvell Feroceon (Rev 1)

Streaming disabled
Write allocate disabled


USB 0: host mode
PEX 0: interface detected no Link.
Net:   egiga0 [PRIME], egiga1
Hit any key to stop autoboot:  0
Marvell>>

rootfs_customから起動するため、環境変数を変更。

Marvell>> setenv rootpath '/home/user/KuroSheeva/rootfs_custom'
Marvell>> saveenv
Marvell>> run bootcmd_nfs
Using egiga0 device
TFTP from server 192.168.0.210; our IP address is 192.168.0.44
Filename 'uImage'.
Load address: 0x2000000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ####################################
done
Bytes transferred = 2844560 (2b6790 hex)
## Booting image at 02000000 ...
   Image Name:   Linux-2.6.35
   Created:      2010-08-06  18:48:15 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2844496 Bytes =  2.7 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Linux version 2.6.35 (user@kurosheeva-dev) (gcc version 4.2.1) #4 PREEMPT Sat Aug 7 03:48:11 JST 2010
CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: Marvell eSATA SheevaPlug Reference Board
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
Kernel command line: console=ttyS0,115200 mtdparts=orion_nand:0x400000@0x100000(uImage),0x1fb00000@0x500000(rootfs) rw root=/dev/nfs rw nfsroot=192.168.0.210:/home/user/KuroSheeva/rootfs_custom ip=192.168.0.44:192.168.0.210:::DB88FXX81:eth0:none
PID hash table entries: 2048 (order: 1, 8192 bytes)
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 256MB 256MB = 512MB total
Memory: 513356k/513356k available, 10932k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    DMA     : 0xffc00000 - 0xffe00000   (   2 MB)
    vmalloc : 0xe0800000 - 0xfe800000   ( 480 MB)
    lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .init : 0xc0008000 - 0xc002d000   ( 148 kB)
      .text : 0xc002d000 - 0xc0525000   (5088 kB)
      .data : 0xc0570000 - 0xc05a0040   ( 193 kB)
SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
        RCU-based detection of stalled CPUs is disabled.
        Verbose stalled-CPUs detection is disabled.
NR_IRQS:114
Console: colour dummy device 80x30
Calibrating delay loop... 1192.75 BogoMIPS (lpj=5963776)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
Kirkwood: MV88F6281-A0, TCLK=200000000.
Feroceon L2: Enabling L2
Feroceon L2: Cache support initialised.
bio: create slab <bio-0> at 0
vgaarb: loaded
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
cfg80211: Calling CRDA to update world regulatory domain
Switching to clocksource orion_clocksource
NET: Registered protocol family 2
IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
TCP established hash table entries: 16384 (order: 5, 131072 bytes)
TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 16384 bind 16384)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
JFFS2 version 2.2. (NAND) ツゥ 2001-2006 Red Hat, Inc.
JFS: nTxBlock = 4010, nTxLock = 32084
msgmni has been set to 1002
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
console [ttyS0] enabled
brd: module loaded
loop: module loaded
sata_mv sata_mv.0: version 1.28
sata_mv sata_mv.0: slots 32 ports 2
scsi0 : sata_mv
scsi1 : sata_mv
ata1: SATA max UDMA/133 irq 21
ata2: SATA max UDMA/133 irq 21
NAND device: Manufacturer ID: 0xec, Chip ID: 0xdc (Samsung NAND 512MiB 3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 1235 at 0x000009a60000
2 cmdlinepart partitions found on MTD device orion_nand
Creating 2 MTD partitions on "orion_nand":
0x000000100000-0x000000500000 : "uImage"
0x000000500000-0x000020000000 : "rootfs"
MV-643xx 10/100/1000 ethernet driver version 1.4
mv643xx_eth smi: probed
net eth0: port 0 with MAC address 00:50:43:01:44:67
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
orion-ehci orion-ehci.0: Marvell Orion EHCI
orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver ums-datafab
usbcore: registered new interface driver ums-freecom
usbcore: registered new interface driver ums-jumpshot
usbcore: registered new interface driver ums-sddr09
usbcore: registered new interface driver ums-sddr55
mice: PS/2 mouse device common for all mice
rtc-mv rtc-mv: rtc core: registered rtc-mv as rtc0
i2c /dev entries driver
cpuidle: using governor ladder
cpuidle: using governor menu
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
mmc0: mvsdio driver initialized, using GPIO 47 for card detection
mv_xor_shared mv_xor_shared.0: Marvell shared XOR driver
mv_xor_shared mv_xor_shared.1: Marvell shared XOR driver
mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
mv_xor mv_xor.1: Marvell XOR: ( xor fill cpy )
mv_xor mv_xor.2: Marvell XOR: ( xor cpy )
ata1: SATA link down (SStatus 0 SControl F300)
mv_xor mv_xor.3: Marvell XOR: ( xor fill cpy )
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
oprofile: hardware counters not available
oprofile: using timer interrupt.
TCP cubic registered
NET: Registered protocol family 17
lib80211: common routines for IEEE802.11 drivers
rtc-mv rtc-mv: setting system clock to 2010-08-08 12:54:20 UTC (1281272060)
IP-Config: Guessing netmask 255.255.255.0
IP-Config: Complete:
     device=eth0, addr=192.168.0.44, mask=255.255.255.0, gw=255.255.255.255,
     host=DB88FXX81, domain=, nis-domain=(none),
     bootserver=192.168.0.210, rootserver=192.168.0.210, rootpath=
eth0: link up, 1000 Mb/s, full duplex, flow control disabled
ata2: link is slow to respond, please be patient (ready=0)
ata2: SRST failed (errno=-16)
ata2: link is slow to respond, please be patient (ready=0)
ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
ata2.00: ATA-8: Hitachi HDS722020ALA330, JKAOA3EA, max UDMA/133
ata2.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32)
ata2.00: configured for UDMA/133
scsi 1:0:0:0: Direct-Access     ATA      Hitachi HDS72202 JKAO PQ: 0 ANSI: 5
sd 1:0:0:0: [sda] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB)
sd 1:0:0:0: Attached scsi generic sg0 type 0
sd 1:0:0:0: [sda] Write Protect is off
sd 1:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
 sda: sda1
sd 1:0:0:0: [sda] Attached SCSI disk
Looking up port of RPC 100003/2 on 192.168.0.210
Looking up port of RPC 100005/1 on 192.168.0.210
VFS: Mounted root (nfs filesystem) on device 0:13.
Freeing init memory: 148K
 * Filesystem type 'fusectl' is not supported. Skipping mount.
 * Setting preliminary keymap...                                         [ OK ]
 * Starting kernel event manager...                                      [ OK ]
 * Loading hardware drivers...                                           [ OK ]
 * Loading kernel modules...                                                     * Loading manual drivers...                                                       [ OK ]
 * Setting kernel variables (/etc/sysctl.conf)...                        [ OK ]
 * Setting kernel variables (/etc/sysctl.d/10-console-messages.conf)...  [ OK ]
 * Setting kernel variables (/etc/sysctl.d/10-network-security.conf)...  [ OK ]
 * Activating swap...                                                    [ OK ]
 * Starting early crypto disks...                                        [ OK ]
 * Starting remaining crypto disks...                                    [ OK ]
 * Checking file systems...                                                     fsck 1.41.4 (27-Jan-2009)
                                                                         [ OK ]
 * Mounting local filesystems...                                         [fail]
 * Activating swapfile swap...                                           [ OK ]
 * Configuring network interfaces...                                     [ OK ]
 * Starting portmap daemon...                                            [ OK ]
 * Setting up console font and keymap...                                 [ OK ]
 * Starting system log daemon...
Ubuntu 9.04 debian ttyS0

debian login:                                                            [ OK ]
                                                                                * Starting kernel log daemon...                                                    [ OK ]
                                                                                * Starting system message bus dbus                                                 [ OK ]
                                                                                * Starting OpenBSD Secure Shell server sshd                                        [ OK ]
                                                                                * Starting Samba daemons                                                           [ OK ]
                                                                               Starting unfs3: unfs3.
            * Starting periodic command scheduler crond                  [ OK ]

Ubuntu 9.04 debian ttyS0

debian login:

起動成功!
続く?

カテゴリー: KURO-SHEEVA タグ: , , パーマリンク

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です