Hello.
I'm trying to recover my NAS (ls-x1.0tl) after bad flash.
I use TFTP boot method, described at FAQ 2/5 . My nas recognizes TFTP server and downloads the two files : initrd.buffalo, uImage.buffalo (from official 164 firmware). But after that, my nas goes to reboot and again tries to download files.
I trace the boot procedure and can see, that the problem is in the Marvell Ethernet Driver .
Here's the log
** LOADER **
** BUFFALO BOARD: MVLSXL-GE-V2 LE
** Board ID: 0x86
U-Boot 1.1.4 (Sep 6 2011 - 17:43:38) Marvell version: 3.5.3
U-Boot code: 00600000 -> 0066FFF0 BSS: -> 006BF4C0
BUFFALO_BOOTVER=0.26
Soc: 88F6192 A1CPU running @ 800Mhz L2 running @ 400Mhz
SysClock = 200Mhz , TClock = 166Mhz
DRAM (DDR2) CAS Latency = 3 tRP = 3 tRAS = 8 tRCD=3
DRAM CS[0] base 0x00000000 size 64MB
DRAM Total size 64MB 16bit width
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:No NAND device found!!!
0 MB
[512kB@f8000000] Flash: 512 kB
CPU : Marvell Feroceon (Rev 1)
Streaming disabled
Write allocate disabled
USB 0: host mode
HDD0 Power ON
Marvell Serial ATA Adapter
Integrated Sata device found
HDD is not found
Resetting EthPhy
Net: egiga0, egiga1
*** TFTP boot mode
Hit any key to stop autoboot: 0
Using egiga0 device
TFTP from server 192.168.11.1; our IP address is 192.168.11.150
Filename 'uImage.buffalo'.
Load address: 0x100000
Loading: T #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
##############
done
Bytes transferred = 2729768 (29a728 hex)
Using egiga0 device
TFTP from server 192.168.11.1; our IP address is 192.168.11.150
Filename 'initrd.buffalo'.
Load address: 0x800000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#####################################################
done
Bytes transferred = 9585622 (9243d6 hex)
## Booting image at 00100000 ...
Image Name: Linux-2.6.31.8
Created: 2012-06-08 2:07:34 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2729704 Bytes = 2.6 MB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 00800000 ...
Image Name: initrd
Created: 2012-07-26 5:26:48 UTC
Image Type: ARM Linux RAMDisk Image (gzip compressed)
Data Size: 9585558 Bytes = 9.1 MB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
Starting kernel ...
Uncompressing Linux......................................................................................................................................................................... done, booting the kernel.
Linux version 2.6.31.8 (root@NAS) (gcc version 4.2.0 20070413 (prerelease)) #1 Fri Jun 8 11:07:30 JST 2012
CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
CPU: VIVT data cache, VIVT instruction cache
Machine: Feroceon-KW
Using UBoot passing parameters structure
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 16256
Kernel command line: console=ttyS0,115200 root=/dev/sda2 rw initrd=0x00800040,12M panic=5 BOOTVER=0.26 mtdparts=nand_mtd:0x1000000(boot),0xfe800000(rootfs),0x800000(reserve) tftpboot=yes
PID hash table entries: 256 (order: 8, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 64MB = 64MB total
Memory: 39500KB available (4972K code, 271K data, 152K init, 0K highmem)
Hierarchical RCU implementation.
NR_IRQS:128
Console: colour dummy device 80x30
Calibrating delay loop... 797.90 BogoMIPS (lpj=3989504)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
xor: measuring software checksum speed
arm4regs : 726.000 MB/sec
8regs : 550.800 MB/sec
32regs : 616.400 MB/sec
xor: using function: arm4regs (726.000 MB/sec)
NET: Registered protocol family 16
Feroceon L2: Enabling L2
Feroceon L2: Cache support initialised.
CPU Interface
-------------
SDRAM_CS0 ....base 00000000, size 64MB
SDRAM_CS1 ....disable
SDRAM_CS2 ....disable
SDRAM_CS3 ....disable
PEX0_MEM ....base e0000000, size 128MB
PEX0_IO ....base f2000000, size 1MB
PEX1_MEM ....no such
PEX1_IO ....no such
INTER_REGS ....base f1000000, size 1MB
NFLASH_CS ....base fa000000, size 2MB
SPI_CS ....base f4000000, size 16MB
BOOT_ROM_CS ....no such
DEV_BOOTCS ....no such
CRYPT_ENG ....base f0000000, size 2MB
Marvell Development Board (LSP Version KW_LSP_5.1.3_patch13)-- MVLSXL-GE-V2 Soc: 88F6192 A1 LE
Detected Tclk 166666667 and SysClk 200000000
MV Buttons Device Load
Marvell USB EHCI Host controller #0: c2040800
PEX0 interface detected no Link.
PCI: bus0: Fast back to back transfers enabled
mvPexLocalBusNumSet: ERR. Invalid PEX interface 1
bio: create slab <bio-0> at 0
SCSI subsystem initialized
raid6: int32x1 80 MB/s
raid6: int32x2 94 MB/s
raid6: int32x4 90 MB/s
raid6: int32x8 78 MB/s
raid6: using algorithm int32x2 (94 MB/s)
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
NET: Registered protocol family 1
Trying to unpack rootfs image as initramfs...
rootfs image is not initramfs (no cpio magic); looks like an initrd
Freeing initrd memory: 12288K
RTC has been updated!!!
rtc mv_rtc: rtc core: registered kw-rtc as rtc0
RTC registered
MICON ctrl (C) BUFFALO INC. V.1.00 installed.
Buffalo Gpio Control Driver (C) BUFFALO INC. Ver.1.00 installed.
Buffalo CPU Inerupts Driver (C) BUFFALO INC. Ver.0.01 alpha1 installed.
Kernel event proc (C) BUFFALO INC. V.1.00 installed.
initial_polarity_val = 0x0c020000
initial_polarity_val_high = 0x00000000
Buffalo GPIO SATA Hotplug Event Driver (C) BUFFALO INC. Ver.1.00 installed.
XOR registered 4 channels
XOR 2nd invalidate WA enabled
cesadev_init(c000fd64)
MV Buttons Driver Load
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
JFFS2 version 2.2. (NAND) ?L 2001-2006 Red Hat, Inc.
fuse init (API version 7.12)
SGI XFS with ACLs, security attributes, large block numbers, no debug enabled
SGI XFS Quota Management subsystem
msgmni has been set to 101
alg: No test for cipher_null (cipher_null-generic)
alg: No test for ecb(cipher_null) (ecb-cipher_null)
alg: No test for digest_null (digest_null-generic)
alg: No test for compress_null (compress_null-generic)
alg: No test for stdrng (krng)
alg: No test for hmac(digest_null) (hmac(digest_null-generic))
async_tx: api initialized (sync-only)
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
io scheduler noop registered
io scheduler anticipatory registered (default)
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
console [ttyS0] enabled
serial8250.1: ttyS1 at MMIO 0xf1012100 (irq = 34) is a 16550A
brd: module loaded
loop: module loaded
Integrated Sata device found
mvSataInitAdapter : regVal changed(0x00000010)
IRQ 21/mvSata: IRQF_DISABLED is not guaranteed on shared IRQs
scsi0 : Marvell SCSI to SATA adapter
scsi1 : Marvell SCSI to SATA adapter
Loading Marvell Ethernet Driver:
o Cached descriptors in DRAM
o DRAM SW cache-coherency
o 2 Giga ports supported
o Single RX Queue support - ETH_DEF_RXQ=0
o Single TX Queue support - ETH_DEF_TXQ=0
o Receive checksum offload supported
o Transmit checksum offload supported
o Network Fast Processing (Routing) supported - (Disabled)
o Driver ERROR statistics enabled
o Driver INFO statistics enabled
o Proc tool API enabled
o SKB Reuse supported - (Disabled)
o SKB Recycle supported - (Disabled)
o Gateway support enabled
o Using Marvell Header Mode
o L2 IGMP support
o Rx descripors: q0=128
o Tx descripors: q0=532
o Loading network interface(s):
o register under mv88fx_eth platform
o eth0, ifindex = 2, GbE port = 0
mvBoardIsSwitchConnected: Illegal port number(1)
mvBoardIsSwitchConnected: Illegal port number(1)
mvBoardIsSwitchConnected: Illegal port number(1)
o Loading Gateway interface(s):
Unable to handle kernel NULL pointer dereference at virtual address 0000003c
pgd = c0004000
[0000003c] *pgd=00000000
Internal error: Oops: 5 [#1]
Modules linked in:
CPU: 0 Not tainted (2.6.31.8 #1)
PC is at mvBoardSwitchCpuPortGet+0x44/0x64
LR is at mvBoardSwitchCpuPortGet+0x18/0x64
pc : [<c004b408>] lr : [<c004b3dc>] psr: 80000013
sp : c201fee0 ip : c201fee0 fp : c201fef4
r10: c0544024 r9 : 00000001 r8 : c201e000
r7 : c12fb600 r6 : c2cfb600 r5 : 00000002 r4 : 00000001
r3 : 00000024 r2 : 00000020 r1 : c050f6f0 r0 : 00000000
Flags: Nzcv IRQs on FIQs on Mode SVC_32 ISA ARM Segment kernel
Control: 0005397f Table: 00004000 DAC: 00000017
Process swapper (pid: 1, stack limit = 0xc201e270)
Stack: (0xc201fee0 to 0xc2020000)
fee0: 00000002 00000001 c201ff44 c201fef8 c002021c c004b3d4 00000002 c2cfb600
ff00: c12fb600 c201e000 00000001 c0544024 c201ff34 c201ff20 c0082db4 00000000
ff20: 00000002 c2cfb600 c12fb600 c201e000 00000001 c0544024 c201ff8c c201ff48
ff40: c001ef74 c0020214 00000000 00000001 c201ff8c 00000000 e64c0000 b8e5c576
ff60: 00000000 c0027e70 c0027f1c c0027b90 00000000 c201e000 c001ec70 c0533c00
ff80: c201ffd4 c201ff90 c002e320 c001ec80 c02ba2c0 32317190 00000037 00000000
ffa0: 00000080 c0515d04 c0027b90 c0027e70 c0027f1c c0027b90 00000000 00000000
ffc0: 00000000 00000000 c201fff4 c201ffd8 c00087a0 c002e2f8 00000000 00000000
ffe0: 00000000 00000000 00000000 c201fff8 c0084c94 c0008710 00000000 00000000
Backtrace:
[<c004b3c4>] (mvBoardSwitchCpuPortGet+0x0/0x64) from [<c002021c>] (mv_gtw_net_setup+0x18/0x61c)
r4:00000001
[<c0020204>] (mv_gtw_net_setup+0x0/0x61c) from [<c001ef74>] (mv_eth_init_module+0x304/0x6bc)
[<c001ec70>] (mv_eth_init_module+0x0/0x6bc) from [<c002e320>] (do_one_initcall+0x38/0x1b0)
[<c002e2e8>] (do_one_initcall+0x0/0x1b0) from [<c00087a0>] (kernel_init+0xa0/0x110)
[<c0008700>] (kernel_init+0x0/0x110) from [<c0084c94>] (do_exit+0x0/0x61c)
r6:00000000 r5:00000000 r4:00000000
Code: e591007c e1a03104 e0833002 e0833000 (e5930018)
---[ end trace c9a7f3f25733edc4 ]---
Kernel panic - not syncing: Attempted to kill init!
Backtrace:
[<c00330f0>] (dump_backtrace+0x0/0x114) from [<c0033238>] (dump_stack+0x18/0x1c)
r6:c0534fb8 r5:c2019c40 r4:0000000b
[<c0033220>] (dump_stack+0x0/0x1c) from [<c0081f68>] (panic+0x4c/0x128)
[<c0081f1c>] (panic+0x0/0x128) from [<c0085280>] (do_exit+0x5ec/0x61c)
r3:c0512e84 r2:60000013 r1:c201fd08 r0:c04a71a4
[<c0084c94>] (do_exit+0x0/0x61c) from [<c0033398>] (die+0x13c/0x15c)
[<c003325c>] (die+0x0/0x15c) from [<c0036000>] (__do_kernel_fault+0x6c/0x7c)
[<c0035f94>] (__do_kernel_fault+0x0/0x7c) from [<c0036178>] (do_page_fault+0x168/0x264)
r7:0000003c r6:c2019c40 r5:00000000 r4:c050df98
[<c0036010>] (do_page_fault+0x0/0x264) from [<c0036378>] (do_translation_fault+0x80/0x88)
[<c00362f8>] (do_translation_fault+0x0/0x88) from [<c002e284>] (do_DataAbort+0x3c/0xa0)
r4:c050df98
[<c002e248>] (do_DataAbort+0x0/0xa0) from [<c002ea2c>] (__dabt_svc+0x4c/0x60)
Exception stack(0xc201fe98 to 0xc201fee0)
fe80: 00000000 c050f6f0
fea0: 00000020 00000024 00000001 00000002 c2cfb600 c12fb600 c201e000 00000001
fec0: c0544024 c201fef4 c201fee0 c201fee0 c004b3dc c004b408 80000013 ffffffff
r8:c201e000 r7:c12fb600 r6:c2cfb600 r5:c201fecc r4:ffffffff
[<c004b3c4>] (mvBoardSwitchCpuPortGet+0x0/0x64) from [<c002021c>] (mv_gtw_net_setup+0x18/0x61c)
r4:00000001
[<c0020204>] (mv_gtw_net_setup+0x0/0x61c) from [<c001ef74>] (mv_eth_init_module+0x304/0x6bc)
[<c001ec70>] (mv_eth_init_module+0x0/0x6bc) from [<c002e320>] (do_one_initcall+0x38/0x1b0)
[<c002e2e8>] (do_one_initcall+0x0/0x1b0) from [<c00087a0>] (kernel_init+0xa0/0x110)
[<c0008700>] (kernel_init+0x0/0x110) from [<c0084c94>] (do_exit+0x0/0x61c)
r6:00000000 r5:00000000 r4:00000000
Rebooting in 5 seconds..Set reboot flag in force.
bfSetMagicKey > Changed to 0x2b from 0x00
Reseting !!
Can somebody make a copy initrd.buffalo and uImage.buffalo from working ls-xl NAS and send it to me, please ?