Hack BBS

[全部のスレッド一覧][新規投稿][記事の削除・変更] [Home Page]

返信投稿はタイトルのリンクをクリックして下さい
スレッド【No.5711】の中の記事をすべて表示しています

【No.5711】のスレッド
10/04/23(金) 19:02:03 投稿者[bontakun] [No.5711]のスレッド内
【No.5711】 タイトル[SheevaPlug+の復元] この記事がスレッドの最初です
付属CDによるNAND システムの復元をおこなったのですが、kernel ubuntu 共に復元されず、元のままでした。
最終手段としてU-Boot以外を削除しましたが復元はされず、当然のごとく起動できなくなってしまいました。
システムの復元ができないのは私の環境だけかもしれませんが、同じような状況になってしまった時の参考になればと思い投稿させていただきます。

尚、正確な状況をお伝えするため、ヒューマンエラーを含め(お恥ずかしい話です)全ての作業を記載しています。
ご承知ください。

山下様、ご好意感謝いたします。

10/04/23(金) 19:05:46 投稿者[bontakun] [No.5711]のスレッド内
【No.5712】 タイトル[起動しなくなったSheevaPlug+] 【No.5711】に対する返信
まずは、起動しなくなった原因と現状です。

mtd1&mtd2を消した。
flash_eraseall -j /dev/mtd1
flash_eraseall -j /dev/mtd2

ノートPCを付属CD SheevaPlug+ Working Kit から起動して、システムの復元を実行。
3〜5分かかると表示されるが、1分半強で終了。
SheevaPlug+をreset
__ __ _ _
| \/ | __ _ _ ____ _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| | | | (_| | | \ V / __/ | |
|_| |_|\__,_|_| \_/ \___|_|_|
_ _ ____ _
| | | | | __ ) ___ ___ | |_
| | | |___| _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
\___/ |____/ \___/ \___/ \__|
** MARVELL BOARD: SHEEVA PLUG LE

U-Boot 1.1.4 (Jan 12 2010 - 00:04:28) Marvell version: 3.4.27

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

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
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:512 MB
Flash: 0 kB

CPU : Marvell Feroceon (Rev 1)

Streaming disabled
Write allocate disabled


USB 0: host mode
PEX 0: interface detected no Link.
Net: egiga0 [PRIME]
Hit any key to stop autoboot: 3 2 1 0
(Re)start USB...
USB: scanning bus for devices... 1 USB Device(s) found
Waiting for storage device(s) to settle before scanning...
0 Storage Device(s) found
** Bad partition 1 **
## Booting image at 00800000 ...
Bad Magic Number
Error! cmd : 8, err : 0201
Error! cmd : 55, err : 0201
Error! cmd : 41, err : 0201
Error! cmd : 55, err : 0201
Error! cmd : 41, err : 0201
Error! cmd : 55, err : 0201
Error! cmd : 41, err : 0201
Error! cmd : 55, err : 0201
Error! cmd : 41, err : 0201
Error! cmd : 55, err : 0201
Error! cmd : 41, err : 0201
Error! cmd : 55, err : 0201
Error! cmd : 41, err : 0201
Error! cmd : 55, err : 0201
Error! cmd : 41, err : 0201
Error! cmd : 55, err : 0201
Error! cmd : 41, err : 0201
Error! cmd : 55, err : 0201
Error! cmd : 41, err : 0201
Error! cmd : 55, err : 0201
Error! cmd : 41, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
No MMC card found
Error! cmd : 8, err : 0201
Error! cmd : 55, err : 0201
Error! cmd : 41, err : 0201
Error! cmd : 55, err : 0201
Error! cmd : 41, err : 0201
Error! cmd : 55, err : 0201
Error! cmd : 41, err : 0201
Error! cmd : 55, err : 0201
Error! cmd : 41, err : 0201
Error! cmd : 55, err : 0201
Error! cmd : 41, err : 0201
Error! cmd : 55, err : 0201
Error! cmd : 41, err : 0201
Error! cmd : 55, err : 0201
Error! cmd : 41, err : 0201
Error! cmd : 55, err : 0201
Error! cmd : 41, err : 0201
Error! cmd : 55, err : 0201
Error! cmd : 41, err : 0201
Error! cmd : 55, err : 0201
Error! cmd : 41, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
No MMC card found
** Bad partition 1 **
## Booting image at 00800000 ...
Bad Magic Number

NAND read: device 0 offset 0x100000, size 0x400000

Reading data from 0x4ff800 -- 100% complete.
4194304 bytes read: OK
## Booting image at 00800000 ...
Bad Magic Number
Marvell>>

システムは復元されず、起動しない。
U-Bootの環境変数を見ると

Marvell>> printenv
CASset=min
MALLOC_len=1
autoload=no
baudrate=115200
bootargs_end=:::DB88FXX81:eth0:none
bootargs_root=root=/dev/mtdblock2 ro
cesvcid=ULULULULULULPPULULULULULDA
console=console=ttyS0,115200
ethact=egiga0
ethaddr=00:50:43:01:43:DB
ethmtu=1500
ethprime=egiga0
image_name=uImage
ipaddr=10.10.0.1
loadaddr=0x02000000
loads_echo=0
mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500
mvPhoneConfig=mv_phone_config=dev0:fxs,dev1:fxs
nandEcc=1bit
netmask=255.255.0.0
netretry=no
rcvrip=169.254.100.100
rootpath=/mnt/ARM_FS/
run_diag=no
serverip=10.10.0.2
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000;
usb0Mode=host
yuk_ethaddr=00:00:00:EE:51:81
arcNumber=2097
bootargs_nand=console=ttyS0,115200 mtdparts=nand_mtd:0x400000@0x100000(uImage),0x1fb00000@0x500000(rootfs) rw root=/dev/mtdblock2 rw rootfstype=jffs2 ip=10.4.50.4:10.4.50.5:10.4.50.5:255.255.255.0:DB88FXX81:eth0:none
bootcmd_nand=setenv bootargs $(bootargs_nand); nand read.e 0x800000 0x100000 0x400000; bootm 0x800000
bootargs_mmc=console=ttyS0,115200 root=/dev/mmcblk0p2 rootdelay=10 rw
bootcmd_mmc=setenv bootargs $(bootargs_mmc); mmcinit; mmcinit; ext2load mmc 0 0x800000 /uImage.bin; bootm 0x800000 ;
bootargs_usb=console=ttyS0,115200 root=/dev/sda2 rootdelay=10 rw
bootcmd_usb=setenv bootargs $(bootargs_usb); usb start; ext2load usb 0:1 0x800000 /uImage.bin; bootm 0x800000 ;
bootcmd=run bootcmd_usb; run bootcmd_mmc; run bootcmd_nand;
stdin=serial
stdout=serial
stderr=serial
mainlineLinux=yes
enaMonExt=no
enaCpuStream=no
enaWrAllo=no
pexMode=RC
disL2Cache=no
setL2CacheWT=yes
disL2Prefetch=yes
enaICPref=yes
enaDCPref=yes
sata_dma_mode=yes
netbsd_en=no
vxworks_en=no
bootdelay=3
disaMvPnp=no
enaAutoRecovery=yes
pcieTune=no
bootargs=console=ttyS0,115200 mtdparts=nand_mtd:0x400000@0x100000(uImage),0x1fb00000@0x500000(rootfs) rw root=/dev/mtdblock2 rw rootfstype=jffs2 ip=10.4.50.4:10.4.50.5:10.4.50.5:255.255.255.0:DB88FXX81:eth0:none

Environment size: 2029/131068 bytes
Marvell>>

ethaddrが変わっている。
U-Bootは復元されたみたい?

10/04/23(金) 19:17:25 投稿者[bontakun] [No.5711]のスレッド内
【No.5714】 タイトル[tftp&nfsでブート(1)] 【No.5712】に対する返信
まずは、tftp&nfsを使ってブートを試みる。

第69回 GW特別企画・電源プラグ型コンピューターSheevaPlugの使い方(1):基礎編
http://gihyo.jp/admin/serial/01/ubuntu-recipe/0069
を参考に、tftp & nfsサーバーを準備する。詳細は上記HPをご覧ください。

サーバーに使用したのは、ハックキットをインストールしたLinkStation LS-GL。

U-Boot環境変数の変更
*起動デバイスによりbootargsを書き換える設定になっています。
*後々の為にtftp&nfs用のbootargsも残しておきたいので、同じ形式にしています。

Marvell>> setenv ipaddr 172.29.64.32 ←SheevaPlug+用のIP
Marvell>> setenv serverip 172.29.64.1 ←tftp & nfsサーバーIP
Marvell>> setenv boottarg_tftp 'console=ttyS0,115200 mtdparts=nand_mtd:0x100000@0x000000(u-boot),0x400000@0x100000(uImage),0x1f800000@0x500000(rootfs)rw root=/dev/nfs rw nfsroot=$(serverip):/srv/nfs/rootfsv1.0 ip=$(ipaddr):::DB88FXX81:eth0:none;'
*後述しますが、↑この行ヒューマンエラーありです。
Marvell>> setenv bootcmd_tftp 'setenv bootargs $(bootargs_tftp); tftpboot 0x2000000 uImage.sheeva.040309; bootm 0x2000000 ;'
Marvell>> setenv bootcmd 'run bootcmd_tftp;'
Marvell>> saveenv
Saving Environment to NAND...
Erasing Nand...Writing to Nand... done
Marvell>>

resetする。

Marvell>> reset

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

U-Boot 1.1.4 (Jan 12 2010 - 00:04:28) Marvell version: 3.4.27

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

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
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:512 MB
Flash: 0 kB

CPU : Marvell Feroceon (Rev 1)

Streaming disabled
Write allocate disabled


USB 0: host mode
PEX 0: interface detected no Link.
Net: egiga0 [PRIME]
Hit any key to stop autoboot: 3 2 1 0
Using egiga0 device
TFTP from server 172.29.64.1; our IP address is 172.29.64.32
Filename 'uImage.sheeva.040309'.
Load address: 0x2000000
Loading: *#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
###############
done
Bytes transferred = 2070316 (1f972c hex)
## Booting image at 02000000 ...
Image Name: Linux-2.6.22.18
Created: 2009-04-04 1:49:44 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2070252 Bytes = 2 MB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux......................................................... done, booting the kernel.

失敗。

kernelをかえてみる。
http://sheeva.with-linux.com/sheeva/2.6.33.2/から、sheeva-2.6.33.2-uImage をいただく。
*このカーネルは正常動作時にアップデートし、起動実績があります。

U-Boot環境変数の変更
Marvell>> setenv bootcmd_tftp 'setenv bootargs $(bootargs_tftp); tftpboot 0x2000000 sheeva-2.6.33.2-uImage; bootm 0x2000000 ;'
Marvell>> saveenv
Saving Environment to NAND...
Erasing Nand...Writing to Nand... done
Marvell>>

再び、resetする。

Marvell>> reset

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

U-Boot 1.1.4 (Jan 12 2010 - 00:04:28) Marvell version: 3.4.27

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

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
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:512 MB
Flash: 0 kB

CPU : Marvell Feroceon (Rev 1)

Streaming disabled
Write allocate disabled


USB 0: host mode
PEX 0: interface detected no Link.
Net: egiga0 [PRIME]
Hit any key to stop autoboot: 3 2 1 0
Using egiga0 device
TFTP from server 172.29.64.1; our IP address is 172.29.64.32
Filename 'sheeva-2.6.33.2-uImage'.
Load address: 0x2000000
Loading: *#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#########
done
Bytes transferred = 2706200 (294b18 hex)
## Booting image at 02000000 ...
Image Name: Linux-2.6.33.2
Created: 2010-04-02 22:37:20 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2706136 Bytes = 2.6 MB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

同じ。
kernel以外に原因がある?

10/04/23(金) 19:20:22 投稿者[bontakun] [No.5711]のスレッド内
【No.5715】 タイトル[tftp&nfsでブート(2)] 【No.5714】に対する返信
U-Boot環境変数の確認

Marvell>> printenv
CASset=min
MALLOC_len=1
autoload=no
baudrate=115200
bootargs_end=:::DB88FXX81:eth0:none



ipaddr=172.29.64.32
serverip=172.29.64.1
boottarg_tftp=console=ttyS0,115200 mtdparts=nand_mtd:0x100000@0x000000(u-boot),0x400000@0x100000(uImage),0x1f800000@0x500000(rootfs)rw root=/dev/nfs rw nfsroot=$(serverip):/srv/nfs/rootfsv1.0 ip=$(ipaddr):::DB88FXX81:eth0:none;
bootcmd=run bootcmd_tftp;
bootcmd_tftp=setenv bootargs $(bootargs_tftp); tftpboot 0x2000000 sheeva-2.6.33.2-uImage; bootm 0x2000000 ;


綴りが違う。boottarg_tftp ではなく、bootargs_tftp が正解。IPが変数のまま。

Marvell>> setenv boottarg_tftp
Marvell>> setenv bootargs_tftp console=ttyS0,115200 mtdparts=nand_mtd:0x100000@0x000000(u-boot),0x400000@0x100000(uImage),0x1f800000@0x500000(rootfs)rw root=/dev/nfs rw nfsroot=$(serverip):/srv/nfs/rootfsv1.0 ip=$(ipaddr):::DB88FXX81:eth0:none
*後述しますが、↑この行またしてもヒューマンエラーありです。
kernelを戻す。
Marvell>> setenv bootcmd_tftp 'setenv bootargs $(bootargs_tftp); tftpboot 0x2000000 uImage.sheeva.040309; bootm 0x2000000 ;'
Marvell>> saveenv
Saving Environment to NAND...
Erasing Nand...Writing to Nand... done
Marvell>>

確認

Marvell>> printenv bootargs_tftp
bootargs_tftp=console=ttyS0,115200 mtdparts=nand_mtd:0x100000@0x000000(u-boot),0x400000@0x100000(uImage),0x1f800000@0x500000(rootfs)rw root=/dev/nfs rw nfsroot=172.29.64.1:/srv/nfs/rootfsv1.0 ip=172.29.64.32:::DB88FXX81:eth0:none
Marvell>> tf printenv bootcmd_tftp
bootcmd_tftp=setenv bootargs $(bootargs_tftp); tftpboot 0x2000000 uImage.sheeva.040309; bootm 0x2000000 ;
Marvell>>

再々reset

Marvell>> reset



USB 0: host mode
PEX 0: interface detected no Link.
Net: egiga0 [PRIME]
Hit any key to stop autoboot: 3 2 1 0
Using egiga0 device
TFTP from server 172.29.64.1; our IP address is 172.29.64.32
Filename 'uImage.sheeva.040309'.
Load address: 0x2000000
Loading: *#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
###############
done
Bytes transferred = 2070316 (1f972c hex)
## Booting image at 02000000 ...
Image Name: Linux-2.6.22.18
Created: 2009-04-04 1:49:44 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2070252 Bytes = 2 MB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux......................................................... done, booting the kernel.

同じ。
もう一度kernelを変える。

Marvell>> setenv bootcmd_tftp 'setenv bootargs $(bootargs_tftp); tftpboot 0x2000000 sheeva-2.6.33.2-uImage; bootm 0x2000000 ;'
Marvell>> saveenv
Saving Environment to NAND...
Erasing Nand...Writing to Nand... done
Marvell>>

再々々reset

Marvell>> reset



USB 0: host mode
PEX 0: interface detected no Link.
Net: egiga0 [PRIME]
Hit any key to stop autoboot: 3 2 1 0
Using egiga0 device
TFTP from server 172.29.64.1; our IP address is 172.29.64.32
Filename 'sheeva-2.6.33.2-uImage'.
Load address: 0x2000000
Loading: *#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#########
done
Bytes transferred = 2706200 (294b18 hex)
## Booting image at 02000000 ...
Image Name: Linux-2.6.33.2
Created: 2010-04-02 22:37:20 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2706136 Bytes = 2.6 MB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Linux version 2.6.33.2 (kelly@speedy) (gcc version 4.4.3 (Sourcery G++ Lite er) ) #1 PREEMPT Fri Apr 2 16:37:14 MDT 2010
CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
CPU: VIVT data cache, VIVT instruction cache
Machine: Marvell 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=nand_mtd:0x100000@0x000000(u-boot),0x400000@0x100000(uImage),0x1f800000@0x500000(rootfs)rw root=/dev/nfs rw nfsroot=172.29.64.1:/srv/nfs/rootfsv1.0 ip=172.29.64.32:::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: 513664KB available (4760K code, 863K data, 132K init, 0K highmem)
SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
NR_IRQS:114
Console: colour dummy device 80x30
Calibrating delay loop... 1192.75 BogoMIPS (lpj=5963776)
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: Using static regulatory domain info
cfg80211: Regulatory domain: 00
(start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
(2402000 KHz - 2472000 KHz @ 40000 KHz), (600 mBi, 2000 mBm)
(2457000 KHz - 2482000 KHz @ 20000 KHz), (600 mBi, 2000 mBm)
(2474000 KHz - 2494000 KHz @ 20000 KHz), (600 mBi, 2000 mBm)
(5170000 KHz - 5250000 KHz @ 40000 KHz), (600 mBi, 2000 mBm)
(5735000 KHz - 5835000 KHz @ 40000 KHz), (600 mBi, 2000 mBm)
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) c 2001-2006 Red Hat, Inc.
JFS: nTxBlock = 4014, nTxLock = 32117
msgmni has been set to 1003
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
NAND device: Manufacturer ID: 0xec, Chip ID: 0xdc (Samsung NAND 512MiB 3,3V 8-bit)
Scanning device for bad blocks
mtd: bad character after partition (r)
Creating 3 MTD partitions on "orion_nand":
0x000000000000-0x000000100000 : "u-boot"
0x000000100000-0x000000500000 : "uImage"
0x000000500000-0x000020000000 : "root"
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:43:db
libertas_sdio: Libertas SDIO driver
libertas_sdio: Copyright Pierre Ossman
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, lacking card detect (fall back to polling)
Registered led device: plug:green:health
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 )
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: 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-04-22 06:39:51 UTC (1271918391)
IP-Config: Device `none' not found.
Looking up port of RPC 100003/2 on 172.29.64.1
rpcbind: server 172.29.64.1 not responding, timed out
Root-NFS: Unable to get nfsd port number from server, using default
Looking up port of RPC 100005/1 on 172.29.64.1
rpcbind: server 172.29.64.1 not responding, timed out
Root-NFS: Unable to get mountd port number from server, using default
Root-NFS: Server returned error -101 while mounting /srv/nfs/rootfsv1.0
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "nfs" or unknown-block(2,0)
Please append a correct "root=" boot option; here are the available partitions:
1f00 1024 mtdblock0 (driver?)
1f01 4096 mtdblock1 (driver?)
1f02 519168 mtdblock2 (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
[<c002e614>] (unwind_backtrace+0x0/0xdc) from [<c03bf408>] (panic+0x48/0x124)
[<c03bf408>] (panic+0x48/0x124) from [<c0008ec8>] (mount_block_root+0x1c8/0x208)
[<c0008ec8>] (mount_block_root+0x1c8/0x208) from [<c0009160>] (prepare_namespace+0x164/0x1bc)
[<c0009160>] (prepare_namespace+0x164/0x1bc) from [<c0008448>] (kernel_init+0xe8/0x124)
[<c0008448>] (kernel_init+0xe8/0x124) from [<c002a42c>] (kernel_thread_exit+0x0/0x8)

NFSに問題があるが、進歩。
NFSサーバーののログにアクセス記録がない。
ということは、SheevaPlug+側の問題。

10/04/23(金) 19:22:15 投稿者[bontakun] [No.5711]のスレッド内
【No.5716】 タイトル[tftp&nfsでブート(3)] 【No.5715】に対する返信
環境変数の再確認。

Marvell>> printenv bootargs_tftp
bootargs_tftp=console=ttyS0,115200 mtdparts=nand_mtd:0x100000@0x000000(u-boot),0x400000@0x100000(uImage),0x1f800000@0x500000(rootfs)rw root=/dev/nfs rw nfsroot=172.29.64.1:/srv/nfs/rootfsv1.0 ip=172.29.64.32:::DB88FXX81:eth0:none
ip=のあとにserveripがない。
再設定
Marvell>> setenv bootargs_tftp console=ttyS0,115200 mtdparts=nand_mtd:0x100000@0x000000(u-boot),0x400000@0x100000(uImage),0x1f800000@0x500000(rootfs)rw root=/dev/nfs rw nfsroot=$(serverip):/srv/nfs/rootfsv1.0 ip=$(ipaddr):$(serverip):::DB88FXX81:eth0:none
Marvell>> printenv bootargs_tftp
bootargs_tftp=console=ttyS0,115200 mtdparts=nand_mtd:0x100000@0x000000(u-boot),0x400000@0x100000(uImage),0x1f800000@0x500000(rootfs)rw root=/dev/nfs rw nfsroot=172.29.64.1:/srv/nfs/rootfsv1.0 ip=172.29.64.32:172.29.64.1:::DB88FXX81:eth0:none
Marvell>>

再々々々reset

Marvell>> reset



Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Linux version 2.6.33.2 (kelly@speedy) (gcc version 4.4.3 (Sourcery G++ Lite er) ) #1 PREEMPT Fri Apr 2 16:37:14 MDT 2010
CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
CPU: VIVT data cache, VIVT instruction cache
Machine: Marvell 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=nand_mtd:0x100000@0x000000(u-boot),0x400000@0x100000(uImage),0x1f800000@0x500000(rootfs)rw root=/dev/nfs rw nfsroot=172.29.64.1:/srv/nfs/rootfsv1.0 ip=172.29.64.32:172.29.64.1:::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: 513664KB available (4760K code, 863K data, 132K init, 0K highmem)
SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
NR_IRQS:114
Console: colour dummy device 80x30
Calibrating delay loop... 1192.75 BogoMIPS (lpj=5963776)
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: Using static regulatory domain info
cfg80211: Regulatory domain: 00
(start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
(2402000 KHz - 2472000 KHz @ 40000 KHz), (600 mBi, 2000 mBm)
(2457000 KHz - 2482000 KHz @ 20000 KHz), (600 mBi, 2000 mBm)
(2474000 KHz - 2494000 KHz @ 20000 KHz), (600 mBi, 2000 mBm)
(5170000 KHz - 5250000 KHz @ 40000 KHz), (600 mBi, 2000 mBm)
(5735000 KHz - 5835000 KHz @ 40000 KHz), (600 mBi, 2000 mBm)
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) c 2001-2006 Red Hat, Inc.
JFS: nTxBlock = 4014, nTxLock = 32117
msgmni has been set to 1003
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
NAND device: Manufacturer ID: 0xec, Chip ID: 0xdc (Samsung NAND 512MiB 3,3V 8-bit)
Scanning device for bad blocks
mtd: bad character after partition (r)
Creating 3 MTD partitions on "orion_nand":
0x000000000000-0x000000100000 : "u-boot"
0x000000100000-0x000000500000 : "uImage"
0x000000500000-0x000020000000 : "root"
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:43:db
libertas_sdio: Libertas SDIO driver
libertas_sdio: Copyright Pierre Ossman
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, lacking card detect (fall back to polling)
Registered led device: plug:green:health
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 )
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: 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-04-22 07:32:45 UTC (1271921565)
IP-Config: Guessing netmask 255.255.0.0
IP-Config: Complete:
device=eth0, addr=172.29.64.32, mask=255.255.0.0, gw=255.255.255.255,
host=DB88FXX81, domain=, nis-domain=(none),
bootserver=172.29.64.1, rootserver=172.29.64.1, rootpath=
Looking up port of RPC 100003/2 on 172.29.64.1
eth0: link up, 1000 Mb/s, full duplex, flow control disabled
Looking up port of RPC 100005/1 on 172.29.64.1
VFS: Mounted root (nfs filesystem) on device 0:13.
Freeing init memory: 132K
init started: BusyBox v1.7.0 (2008-02-26 19:25:17 IST)
starting pid 544, tty '': '/etc/init.d/rcS'
starting pid 546, tty '': '/bin/sh'
-sh-3.2#

やっと起動。

-sh-3.2# mount
rootfs on / type rootfs (rw)
/dev/root on / type nfs (rw,relatime,vers=2,rsize=4096,wsize=4096,namlen=255,hard,nolock,proto=udp,port=65535,timeo=11,retrans=3,sec=sys,mountport=65535,mountproto=,addr=172.29.64.1)
proc on /proc type proc (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,gid=4,mode=620)
-sh-3.2#

rootfsもマウントされている。

10/04/23(金) 19:24:12 投稿者[bontakun] [No.5711]のスレッド内
【No.5717】 タイトル[NANDへの書き込み] 【No.5716】に対する返信
第70回 GW特別企画・電源プラグ型コンピューターSheevaPlugの使い方(2):インストール編
http://gihyo.jp/admin/serial/01/ubuntu-recipe/0070
を参考に進める。

必要ファイルの存在確認。

-sh-3.2# ls
bin proc
dev sbin
etc sheeva-2.6.33.2-uImage
lib ubuntu-9.0.5.Release.jffs2
linuxrc usr
mnt
-sh-3.2#

sheeva-2.6.33.2-uImage
ubuntu-9.0.5.Release.jffs2
共にある。

-sh-3.2# ls /usr/sbin/flash_eraseall
/usr/sbin/flash_eraseall
-sh-3.2# ls /usr/sbin/nandwrite
/usr/sbin/nandwrite
-sh-3.2#

書込みプログラムもある。

念のため、mtdデバイスの確認。

-sh-3.2# cat /proc/mtd
dev: size erasesize name
mtd0: 00100000 00020000 "u-boot"
mtd1: 00400000 00020000 "uImage"
mtd2: 1fb00000 00020000 "root"
-sh-3.2#

問題なし。

uImageの書き込み。

-sh-3.2# /usr/sbin/flash_eraseall -j /dev/mtd1



Erasing 128 Kibyte @ 3e0000 -- 96 % complete. Cleanmarker written at 3e0000.
-sh-3.2# /usr/sbin/nandwrite -p /dev/mtd1 /sheeva-2.6.33.2-uImage
Writing data to block 0
Writing data to block 20000
Writing data to block 40000



Writing data to block 240000
Writing data to block 260000
Writing data to block 280000

filesystemの書込み

-sh-3.2# /usr/sbin/flash_eraseall -j /dev/mtd2



Erasing 128 Kibyte @ 1fae0000 -- 99 % complete. Cleanmarker written at 1fae0000.
-sh-3.2# /usr/sbin/nandwrite -p /dev/mtd2 /ubuntu-9.0.5.Release.jffs2
Writing data to block 0
Writing data to block 20000
Writing data to block 40000



Writing data to block 4180000
nfs: server 172.29.64.1 not responding, still trying
nfs: server 172.29.64.1 not responding, still trying
nfs: server 172.29.64.1 OK
nfs: server 172.29.64.1 OK
Writing data to block 41a0000
Writing data to block 41c0000
Writing data to block 41e0000



Writing data to block 8780000
Writing data to block 87a0000
Writing data to block 87c0000
-sh-3.2#

途中何度か、nfs: server 172.29.64.1 not responding, still tryingが出たが、書き込めたよう。
マウントして確認する。

-sh-3.2# mkdir /test
-sh-3.2# mount -t jffs2 /dev/mtdblock2 /test
-sh-3.2# ls /test
bin etc media proc selinux tmp
boot home mnt root srv usr
dev lib opt sbin sys var
-sh-3.2#

いけてる、と思う。
rebootしてU-Bootの環境変数を戻す。

-sh-3.2# reboot
The system is going down NOW!
Sending SIGTERM to all processes
-sh-3.2# Sending SIGKILLRequesting system reboot
Restarting system.

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

U-Boot 1.1.4 (Jan 12 2010 - 00:04:28) Marvell version: 3.4.27

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

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
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:512 MB
Flash: 0 kB

CPU : Marvell Feroceon (Rev 1)

Streaming disabled
Write allocate disabled


USB 0: host mode
PEX 0: interface detected no Link.
Net: egiga0 [PRIME]
Hit any key to stop autoboot: 0
Marvell>> setenv bootcmd 'run bootcmd_usb; run bootcmd_mmc; run bootcmd_nand;'
Marvell>> printenv bootcmd
bootcmd=run bootcmd_usb; run bootcmd_mmc; run bootcmd_nand;
Marvell>>

ethaddrも元に戻す。

Marvell>> setenv ethaddr 00:05:43:**:**:** ←ケースのシールに書いてある。
Marvell>> printenv ethaddr
ethaddr=00:05:43:**:**:**
Marvell>> saveenv
Saving Environment to NAND...
Erasing Nand...Writing to Nand... done
Marvell>>



10/05/03(月) 20:59:26 投稿者[boutakun] [No.5711]のスレッド内
【No.5721】 タイトル[NANDへの書き込み - 追加] 【No.5717】に対する返信
付属CDの「UーBOOTの更新」を実行してしまっていたため、見落としていました。

U-Boot環境変数の初期値は、
mainlineLinux=no
arcNumber 設定なし
と、なっているようです。

申し訳ありません。以下の手順を追加してください。

Marvell>> setenv mainlineLinux yes
Marvell>> setenv arcNumber 2097
Marvell>> printenv mainlineLinux arcNumber

mainlineLinux=yes
arcNumber=2097
Marvell>> saveenv

Saving Environment to NAND...
Erasing Nand...Writing to Nand... done
Marvell>>

10/04/23(金) 19:26:12 投稿者[bontakun] [No.5711]のスレッド内
【No.5718】 タイトル[NANDからの起動] 【No.5717】に対する返信
NANDから起動してみる。

Marvell>> reset

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

U-Boot 1.1.4 (Jan 12 2010 - 00:04:28) Marvell version: 3.4.27

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

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
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:512 MB
Flash: 0 kB

CPU : Marvell Feroceon (Rev 1)

Streaming disabled
Write allocate disabled


USB 0: host mode
PEX 0: interface detected no Link.
Net: egiga0 [PRIME]
Hit any key to stop autoboot: 3 2 1 0
(Re)start USB...
USB: scanning bus for devices... 1 USB Device(s) found
Waiting for storage device(s) to settle before scanning...
0 Storage Device(s) found
** Bad partition 1 **
## Booting image at 00800000 ...
Bad Magic Number
Error! cmd : 8, err : 0201
Error! cmd : 55, err : 0201
Error! cmd : 41, err : 0201
Error! cmd : 55, err : 0201
Error! cmd : 41, err : 0201
Error! cmd : 55, err : 0201
Error! cmd : 41, err : 0201
Error! cmd : 55, err : 0201
Error! cmd : 41, err : 0201
Error! cmd : 55, err : 0201
Error! cmd : 41, err : 0201
Error! cmd : 55, err : 0201
Error! cmd : 41, err : 0201
Error! cmd : 55, err : 0201
Error! cmd : 41, err : 0201
Error! cmd : 55, err : 0201
Error! cmd : 41, err : 0201
Error! cmd : 55, err : 0201
Error! cmd : 41, err : 0201
Error! cmd : 55, err : 0201
Error! cmd : 41, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
No MMC card found
Error! cmd : 8, err : 0201
Error! cmd : 55, err : 0201
Error! cmd : 41, err : 0201
Error! cmd : 55, err : 0201
Error! cmd : 41, err : 0201
Error! cmd : 55, err : 0201
Error! cmd : 41, err : 0201
Error! cmd : 55, err : 0201
Error! cmd : 41, err : 0201
Error! cmd : 55, err : 0201
Error! cmd : 41, err : 0201
Error! cmd : 55, err : 0201
Error! cmd : 41, err : 0201
Error! cmd : 55, err : 0201
Error! cmd : 41, err : 0201
Error! cmd : 55, err : 0201
Error! cmd : 41, err : 0201
Error! cmd : 55, err : 0201
Error! cmd : 41, err : 0201
Error! cmd : 55, err : 0201
Error! cmd : 41, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
No MMC card found
** Bad partition 1 **
## Booting image at 00800000 ...
Bad Magic Number

NAND read: device 0 offset 0x100000, size 0x400000

Reading data from 0x4ff800 -- 100% complete.
4194304 bytes read: OK
## Booting image at 00800000 ...
Image Name: Linux-2.6.33.2
Created: 2010-04-02 22:37:20 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2706136 Bytes = 2.6 MB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Linux version 2.6.33.2 (kelly@speedy) (gcc version 4.4.3 (Sourcery G++ Lite er) ) #1 PREEMPT Fri Apr 2 16:37:14 MDT 2010
CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
CPU: VIVT data cache, VIVT instruction cache
Machine: Marvell 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=nand_mtd:0x400000@0x100000(uImage),0x1fb00000@0x500000(rootfs) rw root=/dev/mtdblock2 rw rootfstype=jffs2 ip=10.4.50.4:10.4.50.5:10.4.50.5:255.255.255.0: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: 513664KB available (4760K code, 863K data, 132K init, 0K highmem)
SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
NR_IRQS:114
Console: colour dummy device 80x30
Calibrating delay loop... 1192.75 BogoMIPS (lpj=5963776)
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: Using static regulatory domain info
cfg80211: Regulatory domain: 00
(start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
(2402000 KHz - 2472000 KHz @ 40000 KHz), (600 mBi, 2000 mBm)
(2457000 KHz - 2482000 KHz @ 20000 KHz), (600 mBi, 2000 mBm)
(2474000 KHz - 2494000 KHz @ 20000 KHz), (600 mBi, 2000 mBm)
(5170000 KHz - 5250000 KHz @ 40000 KHz), (600 mBi, 2000 mBm)
(5735000 KHz - 5835000 KHz @ 40000 KHz), (600 mBi, 2000 mBm)
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) c 2001-2006 Red Hat, Inc.
JFS: nTxBlock = 4014, nTxLock = 32117
msgmni has been set to 1003
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
NAND device: Manufacturer ID: 0xec, Chip ID: 0xdc (Samsung NAND 512MiB 3,3V 8-bit)
Scanning device for bad blocks
Creating 3 MTD partitions on "orion_nand":
0x000000000000-0x000000100000 : "u-boot"
0x000000100000-0x000000500000 : "uImage"
0x000000500000-0x000020000000 : "root"
MV-643xx 10/100/1000 ethernet driver version 1.4
mv643xx_eth smi: probed
net eth0: port 0 with MAC address 00:05:43:01:52:b1
libertas_sdio: Libertas SDIO driver
libertas_sdio: Copyright Pierre Ossman
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, lacking card detect (fall back to polling)
Registered led device: plug:green:health
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 )
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: 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-04-22 09:27:59 UTC (1271928479)
IP-Config: Complete:
device=eth0, addr=10.4.50.4, mask=255.255.255.0, gw=10.4.50.5,
host=DB88FXX81, domain=, nis-domain=(none),
bootserver=10.4.50.5, rootserver=10.4.50.5, rootpath=
eth0: link up, 100 Mb/s, full duplex, flow control disabled
Empty flash at 0x087dd338 ends at 0x087dd800
VFS: Mounted root (jffs2 filesystem) on device 31:2.
Freeing init memory: 132K
* Setting preliminary keymap... [ OK ]
* Setting the system clock
modprobe: FATAL: Could not load /lib/modules/2.6.33.2/modules.dep: No such file or directory

Cannot access the Hardware Clock via any known method.
Use the --debug option to see the details of our search for an access method.
* Unable to set System Clock to: Thu Apr 22 09:28:13 UTC 2010
* Starting basic networking... [ OK ]
* Starting kernel event manager... [ OK ]
* Loading hardware drivers... uncorrectable error :
uncorrectable error :
end_request: I/O error, dev mtdblock0, sector 0
Buffer I/O error on device mtdblock0, logical block 0
uncorrectable error :
uncorrectable error :
end_request: I/O error, dev mtdblock0, sector 8
Buffer I/O error on device mtdblock0, logical block 1
uncorrectable error :
uncorrectable error :
end_request: I/O error, dev mtdblock0, sector 16
Buffer I/O error on device mtdblock0, logical block 2
uncorrectable error :
uncorrectable error :
end_request: I/O error, dev mtdblock0, sector 24
Buffer I/O error on device mtdblock0, logical block 3
uncorrectable error :
uncorrectable error :
end_request: I/O error, dev mtdblock0, sector 0
Buffer I/O error on device mtdblock0, logical block 0
[ OK ]
* Setting the system clock
* 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 ]
* Setting kernel variables (/etc/sysctl.d/10-process-security.conf)... [ OK ]
* Setting kernel variables (/etc/sysctl.d/10-tcp-timestamps-workaround.conf)... [ OK ]
* Activating swap... [ OK ]
FATAL: Could not load /lib/modules/2.6.33.2/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/2.6.33.2/modules.dep: No such file or directory
* Starting early crypto disks... [ OK ]
FATAL: Could not load /lib/modules/2.6.33.2/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/2.6.33.2/modules.dep: No such file or directory
* Starting remaining crypto disks... [ OK ]
* Checking file systems... fsck 1.41.3 (12-Oct-2008)
[ OK ]
* Mounting local filesystems... [ OK ]
* Activating swapfile swap... [ OK ]
* Configuring network interfaces... modprobe: FATAL: Could not load /lib/modules/2.6.33.2/modules.dep: No such file or directory

modprobe: FATAL: Could not load /lib/modules/2.6.33.2/modules.dep: No such file or directory

[ OK ]
* Setting up console font and keymap... [ OK ]
* Starting system log daemon... [ OK ]
* Starting kernel log daemon... Killed
[fail]
* Starting OpenBSD Secure Shell server sshd [ OK ]

Ubuntu jaunty (development branch) debian ttyS0

debian login: * Starting periodic command scheduler crond [ OK ]
fat: version magic '2.6.22.18 mod_unload ARMv5 ' should be '2.6.33.2 preempt mod_unload ARMv5 '
insmod: error inserting '/boot/fat.ko': -1 Invalid module format

Ubuntu jaunty (development branch) debian ttyS0

debian login:

無事起動
uImage(sheeva-2.6.33.2-uImage)とfilesystem(ubuntu-9.0.5.Release.jffs2)のバージョンが異なるため、/lib/modules/2.6.33.2がない。

10/04/23(金) 19:29:32 投稿者[bontakun] [No.5711]のスレッド内
【No.5719】 タイトル[カーネルモジュールのインストール] 【No.5718】に対する返信
(ここからは、インターネットに接続されている別のネットワークに接続を変えました。DHCPサーバーがあります。)

http://sheeva.with-linux.com/sheeva/2.6.33.2/にあるsheeva-2.6.33.2-Modules.tar.gzを展開すればよいと思うが、抜けがないようにカーネルアップデートを行う。
カーネルのアップデート http://www.yamasita.jp/sheevaplug/2009/12/post-31.html
カーネル 2.6.33.2 のインストール http://www.yamasita.jp/sheevaplug/2010/04/post-65.html
の通りに進める。

apt用のディレクトリを作る。
root@debian:~# mkdir -p /var/cache/apt/archives/partial

wgetのインストール
-------04/24追記-------
root@debian:~# apt-get update
Get:1 http://ports.ubuntu.com jaunty Release.gpg [189B]
Get:2 http://ports.ubuntu.com jaunty Release [74.6kB]
Get:3 http://ports.ubuntu.com jaunty/main Packages [1234kB]
Get:4 http://ports.ubuntu.com jaunty/restricted Packages [865B]
Get:5 http://ports.ubuntu.com jaunty/universe Packages [4442kB]
Get:6 http://ports.ubuntu.com jaunty/multiverse Packages [159kB]
Fetched 5910kB in 33s (176kB/s)
Reading package lists... Done
-----------------------
root@debian:~# apt-get install wget
Reading package lists... Done
80%Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libx11-data libxcb1 libxau6 libxdmcp6 libxcb-xlib0 libx11-6
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
wget
0 upgraded, 1 newly installed, 0 to remove and 103 not upgraded.
Need to get 244kB of archives.
After this operation, 1970kB of additional disk space will be used.
Get:1 http://ports.ubuntu.com jaunty/main wget 1.11.4-2ubuntu1 [244kB]
Fetched 244kB in 2s (102kB/s)
Selecting previously deselected package wget.
(Reading database ... 10231 files and directories currently installed.)
Unpacking wget (from .../wget_1.11.4-2ubuntu1_armel.deb) ...
Setting up wget (1.11.4-2ubuntu1) ...

resolv.confの編集
root@debian:~# echo nameserver 192.168.150.254 >> /etc/resolv.conf
root@debian:~# cat /etc/resolv.conf
nameserver 127.0.0.1
nameserver 192.168.150.254

README-2.6.33.2の取得
root@debian:~# wget http://sheeva.with-linux.com/sheeva/README-2.6.33.2
wget http://sheeva.with-linux.com/sheeva/README-2.6.33.2
--2010-04-22 09:34:53-- http://sheeva.with-linux.com/sheeva/README-2.6.33.2
Resolving sheeva.with-linux.com... 216.146.103.100
Connecting to sheeva.with-linux.com|216.146.103.100|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3765 (3.7K) [text/plain]
Saving to: `README-2.6.33.2'

100%[======================================>] 3,765 --.-K/s in 0.04s

2010-04-22 09:34:55 (84.2 KB/s) - `README-2.6.33.2' saved [3765/3765]

README-2.6.33.2の実行
root@debian:~# bash -x README-2.6.33.2 --nandkernel
+ set -e
+ set -u
+ KVer=2.6.33.2
+ [[ 1 < 1 ]]
+ [[ --nandkernel == \-\-\n\a\n\d\k\e\r\n\e\l ]]
+ Download
+ echo 'Downloading files'
Downloading files
+ local f=
+ for f in Modules.tar.gz Modules.tar.gz.md5 uImage uImage.md5 System.map
+ [[ ! -f sheeva-2.6.33.2-Modules.tar.gz ]]
++ which wget
+ [[ -z /usr/bin/wget ]]
+ wget -c http://sheeva.with-linux.com/sheeva/2.6.33.2/sheeva-2.6.33.2-Modules.tar.gz
--2010-04-22 09:36:06-- http://sheeva.with-linux.com/sheeva/2.6.33.2/sheeva-2.6.33.2-Modules.tar.gz
Resolving sheeva.with-linux.com... 216.146.103.100
Connecting to sheeva.with-linux.com|216.146.103.100|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4322319 (4.1M) [application/x-tar]
Saving to: `sheeva-2.6.33.2-Modules.tar.gz'

100%[======================================>] 4,322,319 53.8K/s in 79s

2010-04-22 09:37:26 (53.6 KB/s) - `sheeva-2.6.33.2-Modules.tar.gz' saved [4322319/4322319]

+ [[ ! -f sheeva-2.6.33.2-Modules.tar.gz ]]
+ for f in Modules.tar.gz Modules.tar.gz.md5 uImage uImage.md5 System.map
+ [[ ! -f sheeva-2.6.33.2-Modules.tar.gz.md5 ]]
++ which wget
+ [[ -z /usr/bin/wget ]]
+ wget -c http://sheeva.with-linux.com/sheeva/2.6.33.2/sheeva-2.6.33.2-Modules.tar.gz.md5
--2010-04-22 09:37:26-- http://sheeva.with-linux.com/sheeva/2.6.33.2/sheeva-2.6.33.2-Modules.tar.gz.md5
Resolving sheeva.with-linux.com... 216.146.103.100
Connecting to sheeva.with-linux.com|216.146.103.100|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 65 [text/plain]
Saving to: `sheeva-2.6.33.2-Modules.tar.gz.md5'

100%[======================================>] 65 --.-K/s in 0s

2010-04-22 09:37:26 (1.52 MB/s) - `sheeva-2.6.33.2-Modules.tar.gz.md5' saved [65/65]

+ [[ ! -f sheeva-2.6.33.2-Modules.tar.gz.md5 ]]
+ for f in Modules.tar.gz Modules.tar.gz.md5 uImage uImage.md5 System.map
+ [[ ! -f sheeva-2.6.33.2-uImage ]]
++ which wget
+ [[ -z /usr/bin/wget ]]
+ wget -c http://sheeva.with-linux.com/sheeva/2.6.33.2/sheeva-2.6.33.2-uImage
--2010-04-22 09:37:26-- http://sheeva.with-linux.com/sheeva/2.6.33.2/sheeva-2.6.33.2-uImage
Resolving sheeva.with-linux.com... 216.146.103.100
Connecting to sheeva.with-linux.com|216.146.103.100|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2706200 (2.6M) [application/octet-stream]
Saving to: `sheeva-2.6.33.2-uImage'

100%[======================================>] 2,706,200 53.1K/s in 49s

2010-04-22 09:38:16 (53.4 KB/s) - `sheeva-2.6.33.2-uImage' saved [2706200/2706200]

+ [[ ! -f sheeva-2.6.33.2-uImage ]]
+ for f in Modules.tar.gz Modules.tar.gz.md5 uImage uImage.md5 System.map
+ [[ ! -f sheeva-2.6.33.2-uImage.md5 ]]
++ which wget
+ [[ -z /usr/bin/wget ]]
+ wget -c http://sheeva.with-linux.com/sheeva/2.6.33.2/sheeva-2.6.33.2-uImage.md5
--2010-04-22 09:38:16-- http://sheeva.with-linux.com/sheeva/2.6.33.2/sheeva-2.6.33.2-uImage.md5
Resolving sheeva.with-linux.com... 216.146.103.100
Connecting to sheeva.with-linux.com|216.146.103.100|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 57 [text/plain]
Saving to: `sheeva-2.6.33.2-uImage.md5'

100%[======================================>] 57 --.-K/s in 0s

2010-04-22 09:38:16 (1.45 MB/s) - `sheeva-2.6.33.2-uImage.md5' saved [57/57]

+ [[ ! -f sheeva-2.6.33.2-uImage.md5 ]]
+ for f in Modules.tar.gz Modules.tar.gz.md5 uImage uImage.md5 System.map
+ [[ ! -f sheeva-2.6.33.2-System.map ]]
++ which wget
+ [[ -z /usr/bin/wget ]]
+ wget -c http://sheeva.with-linux.com/sheeva/2.6.33.2/sheeva-2.6.33.2-System.map
--2010-04-22 09:38:17-- http://sheeva.with-linux.com/sheeva/2.6.33.2/sheeva-2.6.33.2-System.map
Resolving sheeva.with-linux.com... 216.146.103.100
Connecting to sheeva.with-linux.com|216.146.103.100|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1040968 (1017K) [text/plain]
Saving to: `sheeva-2.6.33.2-System.map'

100%[======================================>] 1,040,968 53.4K/s in 20s

2010-04-22 09:38:36 (52.1 KB/s) - `sheeva-2.6.33.2-System.map' saved [1040968/1040968]

+ [[ ! -f sheeva-2.6.33.2-System.map ]]
+ Md5Compare sheeva-2.6.33.2-Modules.tar.gz sheeva-2.6.33.2-Modules.tar.gz.md5
++ cat sheeva-2.6.33.2-Modules.tar.gz.md5
++ cut '-d ' -f1
++ md5sum sheeva-2.6.33.2-Modules.tar.gz
++ cut '-d ' -f1
+ [[ de2744a54dd3ba55c311b047a9bc813b != de2744a54dd3ba55c311b047a9bc813b ]]
+ Md5Compare sheeva-2.6.33.2-uImage sheeva-2.6.33.2-uImage.md5
++ cat sheeva-2.6.33.2-uImage.md5
++ cut '-d ' -f1
++ md5sum sheeva-2.6.33.2-uImage
++ cut '-d ' -f1
+ [[ 9f0d903151243a50b92422693f592cdb != 9f0d903151243a50b92422693f592cdb ]]
+ CheckSize
+ local uImageFile=sheeva-2.6.33.2-uImage
++ grep uImage /proc/mtd
++ cut '-d ' -f1
++ sed s#:##
+ local mtd=mtd1
++ grep uImage /proc/mtd
++ cut '-d ' -f2
+ local mtdHexSize=00400000
+ local mtdSize=
+ let mtdSize=0x00400000
++ stat -c%s sheeva-2.6.33.2-uImage
+ local uImageSize=2706200
+ (( uImageSize > mtdSize ))
+ ExtractModules
+ echo 'Extracting modules'
Extracting modules
+ tar x -C / --overwrite -zf sheeva-2.6.33.2-Modules.tar.gz
+ [[ -d /boot ]]
+ cp sheeva-2.6.33.2-System.map /boot/
+ depmod -eF /boot/sheeva-2.6.33.2-System.map 2.6.33.2
+ NandKernel
+ echo 'Flashing kernel to NAND'
Flashing kernel to NAND
++ grep uImage /proc/mtd
++ cut '-d ' -f1
++ sed s#:##
+ local Mtd=mtd1
+ flash_eraseall -j /dev/mtd1
Erasing 128 Kibyte @ 3e0000 -- 96 % complete. Cleanmarker written at 3e0000.
+ nandwrite -pm /dev/mtd1 sheeva-2.6.33.2-uImage
Writing data to block 0
Writing data to block 20000
Writing data to block 40000
Writing data to block 60000
Writing data to block 80000
Writing data to block a0000
Writing data to block c0000
Writing data to block e0000
Writing data to block 100000
Writing data to block 120000
Writing data to block 140000
Writing data to block 160000
Writing data to block 180000
Writing data to block 1a0000
Writing data to block 1c0000
Writing data to block 1e0000
Writing data to block 200000
Writing data to block 220000
Writing data to block 240000
Writing data to block 260000
Writing data to block 280000
root@debian:~#

**注意:README-2.6.33.2に記載されている
####### change bootargs, replace nand_mtd with orion_nand and add rootfstype=jffs2
# setenv bootargs rootfstype=jffs2 console=ttyS0,115200 mtdparts=orion_nand:0x400000@0x100000(uImage),0x1fb00000@0x500000(rootfs) rw root=/dev/mtdblock1 rw ip=192.168.1.9:192.168.1.4:192.168.1.4:255.255.255.0:DB88FXX81:eth0:none
は、実行しないでください。
なぜかmtdデバイスを2つと認識するようで、起動しなくなります。

再起動
root@debian:~# shutdown -r now

Broadcast message from root@debian
(/dev/ttyS0) at 9:39 ...

The syste * Saving the system clock
* Asking all remaining processes to terminate... [ OK ]
* All processes ended within 1 seconds.... [ OK ]
* Deconfiguring network interfaces... [ OK ]
* Unmounting temporary filesystems... [ OK ]
* Deactivating swap... [ OK ]
/proc/misc: No entry for device-mapper found
Is device-mapper driver missing from kernel?
Failure to communicate with kernel device-mapper driver.
/proc/misc: No entry for device-mapper found
Is device-mapper driver missing from kernel?
Failure to communicate with kernel device-mapper driver.
Incompatible libdevmapper 1.02.27 (2008-06-25)(compat) and kernel driver
Command failed
/proc/misc: No entry for device-mapper found
Is device-mapper driver missing from kernel?
Failure to communicate with kernel device-mapper driver.
/proc/misc: No entry for device-mapper found
Is device-mapper driver missing from kernel?
Failure to communicate with kernel device-mapper driver.
Incompatible libdevmapper 1.02.27 (2008-06-25)(compat) and kernel driver
Command failed
* Will now restart
Restarting system.

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

U-Boot 1.1.4 (Jan 12 2010 - 00:04:28) Marvell version: 3.4.27

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

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
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:512 MB
Flash: 0 kB

CPU : Marvell Feroceon (Rev 1)

Streaming disabled
Write allocate disabled



NAND read: device 0 offset 0x100000, size 0x400000

Reading data from 0x4ff800 -- 100% complete.
4194304 bytes read: OK
## Booting image at 00800000 ...
Image Name: Linux-2.6.33.2
Created: 2010-04-02 22:37:20 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2706136 Bytes = 2.6 MB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
OK

Starting kernel ...




* Loading hardware drivers... uncorrectable error :
uncorrectable error :
end_request: I/O error, dev mtdblock0, sector 0
Buffer I/O error on device mtdblock0, logical block 0
sata_mv sata_mv.0: version 1.28
sata_mv sata_mv.0: slots 32 ports 2
uncorrectable error :
scsi0 : sata_mv
scsi1 : sata_mv
uncorrectable error :
end_request: I/O error, dev mtdblock0, sector 8
Buffer I/O error on device mtdblock0, logical block 1
ata1: SATA max UDMA/133 irq 21
ata2: SATA max UDMA/133 irq 21
uncorrectable error :
uncorrectable error :
end_request: I/O error, dev mtdblock0, sector 16
Buffer I/O error on device mtdblock0, logical block 2
uncorrectable error :
uncorrectable error :
end_request: I/O error, dev mtdblock0, sector 24
Buffer I/O error on device mtdblock0, logical block 3
uncorrectable error :
uncorrectable error :
end_request: I/O error, dev mtdblock0, sector 0
Buffer I/O error on device mtdblock0, logical block 0
ata1: SATA link down (SStatus 0 SControl F300)
ata2: SATA link down (SStatus 0 SControl F300)
[ OK ]
* Setting the system clock
* 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 ]
* Setting kernel variables (/etc/sysctl.d/10-process-security.conf)... [ OK ]
* Setting kernel variables (/etc/sysctl.d/10-tcp-timestamps-workaround.conf)... [ OK ]
* Activating swap... [ OK ]
* Starting early crypto disks... [ OK ]
* Starting remaining crypto disks... [ OK ]
* Checking file systems... fsck 1.41.3 (12-Oct-2008)
[ OK ]
* Mounting local filesystems... [ OK ]
* Activating swapfile swap... [ OK ]
* Configuring network interfaces... [ OK ]
* Setting up console font and keymap... [ OK ]
* Starting system log daemon... [ OK ]
* Starting kernel log daemon... Killed
[fail]
* Starting OpenBSD Secure Shell server sshd [ OK ]

Ubuntu jaunty (development branch) debian ttyS0

debian login: * Starting periodic command scheduler crond [ OK ]
fat: version magic '2.6.22.18 mod_unload ARMv5 ' should be '2.6.33.2 preempt mod_unload ARMv5 '
insmod: error inserting '/boot/fat.ko': -1 Invalid module format

Ubuntu jaunty (development branch) debian ttyS0

debian login:

まだエラーが残っている。


10/04/23(金) 19:32:22 投稿者[bontakun] [No.5711]のスレッド内
【No.5720】 タイトル[パッケージのアップデート] 【No.5719】に対する返信
パッケージのアップデート http://www.yamasita.jp/sheevaplug/2009/10/post-11.html の通り進める。
過程は省略。

/etc/rc.local を以下のように修正
root@debian:~# cat /etc/rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
#insmod /boot/fat.ko
#insmod /boot/vfat.ko
mkdir -p /var/cache/apt/archives/partial
#/root/discoverd
#cd /
#./demo.sh
#date 012618002009
hwclock -w

exit 0

再起動

shutdown -r now

Broadcast message from root@debian
(/dev/ttyS0) at 8:45 ...

The syste * Saving the system clock
* Asking all remaining processes to terminate... [ OK ]
* All processes ended within 2 seconds.... [ OK ]
* Deconfiguring network interfaces... [ OK ]
* 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 (Jan 12 2010 - 00:04:28) Marvell version: 3.4.27

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

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
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:512 MB
Flash: 0 kB

CPU : Marvell Feroceon (Rev 1)

Streaming disabled
Write allocate disabled


USB 0: host mode
PEX 0: interface detected no Link.
Net: egiga0 [PRIME]
Hit any key to stop autoboot: 3 2 1 0
(Re)start USB...
USB: scanning bus for devices... 1 USB Device(s) found
Waiting for storage device(s) to settle before scanning...
0 Storage Device(s) found
** Bad partition 1 **
## Booting image at 00800000 ...
Bad Magic Number
Error! cmd : 8, err : 0201
Error! cmd : 55, err : 0201
Error! cmd : 41, err : 0201
Error! cmd : 55, err : 0201
Error! cmd : 41, err : 0201
Error! cmd : 55, err : 0201
Error! cmd : 41, err : 0201
Error! cmd : 55, err : 0201
Error! cmd : 41, err : 0201
Error! cmd : 55, err : 0201
Error! cmd : 41, err : 0201
Error! cmd : 55, err : 0201
Error! cmd : 41, err : 0201
Error! cmd : 55, err : 0201
Error! cmd : 41, err : 0201
Error! cmd : 55, err : 0201
Error! cmd : 41, err : 0201
Error! cmd : 55, err : 0201
Error! cmd : 41, err : 0201
Error! cmd : 55, err : 0201
Error! cmd : 41, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
No MMC card found
Error! cmd : 8, err : 0201
Error! cmd : 55, err : 0201
Error! cmd : 41, err : 0201
Error! cmd : 55, err : 0201
Error! cmd : 41, err : 0201
Error! cmd : 55, err : 0201
Error! cmd : 41, err : 0201
Error! cmd : 55, err : 0201
Error! cmd : 41, err : 0201
Error! cmd : 55, err : 0201
Error! cmd : 41, err : 0201
Error! cmd : 55, err : 0201
Error! cmd : 41, err : 0201
Error! cmd : 55, err : 0201
Error! cmd : 41, err : 0201
Error! cmd : 55, err : 0201
Error! cmd : 41, err : 0201
Error! cmd : 55, err : 0201
Error! cmd : 41, err : 0201
Error! cmd : 55, err : 0201
Error! cmd : 41, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
No MMC card found
** Bad partition 1 **
## Booting image at 00800000 ...
Bad Magic Number

NAND read: device 0 offset 0x100000, size 0x400000

Reading data from 0x4ff800 -- 100% complete.
4194304 bytes read: OK
## Booting image at 00800000 ...
Image Name: Linux-2.6.33.2
Created: 2010-04-02 22:37:20 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2706136 Bytes = 2.6 MB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Linux version 2.6.33.2 (kelly@speedy) (gcc version 4.4.3 (Sourcery G++ Lite er) ) #1 PREEMPT Fri Apr 2 16:37:14 MDT 2010
CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
CPU: VIVT data cache, VIVT instruction cache
Machine: Marvell 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=nand_mtd:0x400000@0x100000(uImage),0x1fb00000@0x500000(rootfs) rw root=/dev/mtdblock2 rw rootfstype=jffs2 ip=10.4.50.4:10.4.50.5:10.4.50.5:255.255.255.0: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: 513664KB available (4760K code, 863K data, 132K init, 0K highmem)
SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
NR_IRQS:114
Console: colour dummy device 80x30
Calibrating delay loop... 1192.75 BogoMIPS (lpj=5963776)
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: Using static regulatory domain info
cfg80211: Regulatory domain: 00
(start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
(2402000 KHz - 2472000 KHz @ 40000 KHz), (600 mBi, 2000 mBm)
(2457000 KHz - 2482000 KHz @ 20000 KHz), (600 mBi, 2000 mBm)
(2474000 KHz - 2494000 KHz @ 20000 KHz), (600 mBi, 2000 mBm)
(5170000 KHz - 5250000 KHz @ 40000 KHz), (600 mBi, 2000 mBm)
(5735000 KHz - 5835000 KHz @ 40000 KHz), (600 mBi, 2000 mBm)
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) c 2001-2006 Red Hat, Inc.
JFS: nTxBlock = 4014, nTxLock = 32117
msgmni has been set to 1003
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
NAND device: Manufacturer ID: 0xec, Chip ID: 0xdc (Samsung NAND 512MiB 3,3V 8-bit)
Scanning device for bad blocks
Creating 3 MTD partitions on "orion_nand":
0x000000000000-0x000000100000 : "u-boot"
0x000000100000-0x000000500000 : "uImage"
0x000000500000-0x000020000000 : "root"
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:43:db
libertas_sdio: Libertas SDIO driver
libertas_sdio: Copyright Pierre Ossman
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, lacking card detect (fall back to polling)
Registered led device: plug:green:health
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 )
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: 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-04-23 08:45:49 UTC (1272012349)
IP-Config: Complete:
device=eth0, addr=10.4.50.4, mask=255.255.255.0, gw=10.4.50.5,
host=DB88FXX81, domain=, nis-domain=(none),
bootserver=10.4.50.5, rootserver=10.4.50.5, rootpath=
eth0: link up, 100 Mb/s, full duplex, flow control disabled
VFS: Mounted root (jffs2 filesystem) on device 31:2.
Freeing init memory: 132K
* Filesystem type 'fusectl' is not supported. Skipping mount.
* Setting preliminary keymap... [ OK ]
* Starting kernel event manager... [ OK ]
* Loading hardware drivers... 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
ata1: SATA link down (SStatus 0 SControl F300)
ata2: SATA link down (SStatus 0 SControl F300)
[ 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 ]
* Setting up console font and keymap... [ OK ]
* Starting system log daemon... [ OK ]
* Starting kernel log daemon...
Ubuntu 9.04 debian ttyS0

debian login: [ OK ]
* Starting OpenBSD Secure Shell server sshd [ OK ]
* Starting periodic command scheduler crond [ OK ]

Ubuntu 9.04 debian ttyS0

debian login:

出荷時と同じにはならなかったが、終了

最後まで読んでくださった方、ありがとうございました。