Quantcast
Channel: Linux Device Hacking
Viewing all articles
Browse latest Browse all 3247

Installing Debian on STORA MS 2000 - Unable to boot (3 replies)

$
0
0
Hello everyone,

I’m facing several issues while installing Debian on a STORA MS2000 NAS using a USB stick.

I'm new to this type of installation and I've been on it for a good week, skimming Doozan's topics. I even tried booting via ttl but nothing works. I'm getting used to the idea that I'm not going to manage it without help!

Here's the context and the problems I've encountered:
Context:

I followed the steps in this tutorial successfully until the "running the installer" section. Everything went smoothly up to this point, but after this step, Debian starts but I’m facing multiple issues that prevent me from completing the installation.

Server connection issues:
The installer fails to find a site with a downloadable release.
I encounter either server connection issues or incorrect Debian version errors.

Due to these difficulties, I decided to bypass the issue and try the next step by creating a USB stick with Debian-5.6.7-kirkwood-tld-1-rootfs-bodhi.tar.bz2, to boot directly from it and continue from the "boot the system" section.
Steps taken so far:

Preparing the USB stick:
I used fdisk to partition the USB stick (formatted as ext3).
Debian was installed onto this USB stick.
The USB stick was configured with an /etc/fstab file for mounting the file system.

Issues encountered:
Root file system mounting issue: During boot on the NAS, I receive an error when trying to mount the root partition. The system attempts to mount /dev/sda1 but fails with the following error:

/sbin/init: error while loading shared libraries: libselinux.so.1: cannot stat shared object: Invalid argument


Kernel Panic: The system crashes with a kernel panic, as shown below:

Kernel panic - not syncing: Attempted to kill init!


Partitioning issues: Sometimes, it seems the partition isn't mounted correctly, and I’ve faced multiple errors related to formatting attempts with mkfs.

Additional details:
I tried repairing the partitions with fsck, but the problem persists.
I checked system file permissions and missing libraries.
I also attempted to force the installation of the libselinux.so.1 library, but that did not resolve the error.

         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_ 
| | | |___|  _ \ / _ \ / _ \| __| 
| |_| |___| |_) | (_) | (_) | |_ 
 \___/    |____/ \___/ \___/ \__| 
 ** MARVELL BOARD: RD-88F6281A LE 

U-Boot 1.1.4 (Sep  4 2009 - 09:36:11) Marvell version: 3.4.14

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

Soc: MV88F6281 Rev 3 (DDR2)
CPU running @ 1000Mhz L2 running @ 333Mhz
SysClock = 333Mhz , TClock = 200Mhz 

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

CPU : Marvell Feroceon (Rev 1)

Streaming disabled 
Write allocate disabled

Module 0 is RGMII
Module 1 is TDM

USB 0: host mode
PEX 0: interface detected no Link.
Net:   egiga0, egiga1 [PRIME]
Hit any key to stop autoboot:  0 
Marvell>> tftpboot 0x200000 uImage
egiga1 no link
Using egiga0 device
TFTP from server 192.168.1.60; our IP address is 192.168.1.90
Filename 'uImage'.
Load address: 0x200000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #######################
done
Bytes transferred = 1445784 (160f98 hex)
Marvell>> tftpboot 0x800000 uInitrd
Using egiga0 device
TFTP from server 192.168.1.60; our IP address is 192.168.1.90
Filename 'uInitrd'.
Load address: 0x800000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ################################################
done
Bytes transferred = 5236023 (4fe537 hex)
Marvell>> setenv bootargs $(console) root=/dev/sda1
Marvell>> bootm 0x200000 0x800000
## Booting image at 00200000 ...
   Image Name:   Debian kernel
   Created:      2010-08-05  19:13:44 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1445720 Bytes =  1.4 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 00800000 ...
   Image Name:   Debian ramdisk
   Created:      2010-08-05  19:13:44 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    5235959 Bytes =  5 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 2.6.33-2-kirkwood (2.6.33) (root@stora) (gcc version 4.4.4 (Debian 4.4.4-7) ) #4 Thu Aug 50
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine: Netgear MS2110
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/sda1
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 64MB 64MB = 128MB total
[    0.000000] Memory: 120432KB available (3416K code, 578K data, 116K init, 0K highmem)
[    0.000000] SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS:114
[    0.000000] Console: colour dummy device 80x30
[   21.475002] Calibrating delay loop... 992.87 BogoMIPS (lpj=4964352)
[   21.714913] Security Framework initialized
[   21.714936] SELinux:  Disabled at boot.
[   21.714970] Mount-cache hash table entries: 512
[   21.715324] Initializing cgroup subsys ns
[   21.715343] Initializing cgroup subsys cpuacct
[   21.715355] Initializing cgroup subsys devices
[   21.715366] Initializing cgroup subsys freezer
[   21.715376] Initializing cgroup subsys net_cls
[   21.715430] CPU: Testing write buffer coherency: ok
[   21.716356] devtmpfs: initialized
[   21.718126] regulator: core version 0.5
[   21.718348] NET: Registered protocol family 16
[   21.718917] Kirkwood: MV88F6281-A1, TCLK=200000000.
[   21.718931] Feroceon L2: Enabling L2
[   21.718971] Feroceon L2: Cache support initialised.
[   21.720198] PCI: bus0: Fast back to back transfers disabled
[   21.721843] bio: create slab <bio-0> at 0
[   21.722178] vgaarb: loaded
[   21.722714] Switching to clocksource orion_clocksource
[   21.727332] NET: Registered protocol family 2
[   21.727503] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[   21.728082] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[   21.728200] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[   21.728263] TCP: Hash tables configured (established 4096 bind 4096)
[   21.728274] TCP reno registered
[   21.728284] UDP hash table entries: 256 (order: 0, 4096 bytes)
[   21.728310] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[   21.728474] NET: Registered protocol family 1
[   21.728691] Unpacking initramfs...
[   22.127980] Freeing initrd memory: 5112K
[   22.128099] NetWinder Floating Point Emulator V0.97 (double precision)
[   22.128394] audit: initializing netlink socket (disabled)
[   22.128435] type=2000 audit(0.640:1): initialized
[   22.135921] VFS: Disk quotas dquot_6.5.2
[   22.136201] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[   22.136319] JFFS2 version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[   22.137006] msgmni has been set to 245
[   22.138930] alg: No test for stdrng (krng)
[   22.139075] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[   22.139089] io scheduler noop registered
[   22.139098] io scheduler deadline registered
[   22.139432] io scheduler cfq registered (default)
[   22.146674] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[   22.147213] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
[   22.476246] console [ttyS0] enabled
[   22.480443] NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,3V 8-bit)
[   22.489154] Scanning device for bad blocks
[   22.531056] Bad eraseblock 1014 at 0x000007ec0000
[   22.554657] Bad eraseblock 1521 at 0x00000be20000
[   22.578962] Creating 3 MTD partitions on "orion_nand":
[   22.584146] 0x000000000000-0x000000100000 : "u-boot"
[   22.589827] 0x000000100000-0x000000500000 : "uImage"
[   22.595429] 0x000000500000-0x000010000000 : "root"
[   22.601663] mice: PS/2 mouse device common for all mice
[   23.612762] rtc-mv rtc-mv: internal RTC not ticking
[   23.617765] i2c /dev entries driver
[   23.621844] cpuidle: using governor ladder
[   23.626122] cpuidle: using governor menu
[   23.630180] Registered led device: blue1
[   23.634214] Registered led device: blue2
[   23.638226] Registered led device: red1
[   23.642140] Registered led device: red2
[   23.646074] mv_xor_shared mv_xor_shared.0: Marvell shared XOR driver
[   23.652480] mv_xor_shared mv_xor_shared.1: Marvell shared XOR driver
[   23.692791] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[   23.732786] mv_xor mv_xor.1: Marvell XOR: ( xor fill cpy )
[   23.772787] mv_xor mv_xor.2: Marvell XOR: ( xor cpy )
[   23.812787] mv_xor mv_xor.3: Marvell XOR: ( xor fill cpy )
[   23.819187] TCP cubic registered
[   23.822435] NET: Registered protocol family 17
[   23.827329] registered taskstats version 1
[   23.832256] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[   23.838629] Freeing init memory: 116K
Loading, please wait...
[   23.933105] udev: starting version 158
[   24.315988] SCSI subsystem initialized
[   24.425930] MV-643xx 10/100/1000 ethernet driver version 1.4
[   24.431948] mv643xx_eth smi: probed
[   24.462699] net eth0: port 0 with MAC address c4:3d:c7:46:ba:be
[   24.544395] usbcore: registered new interface driver usbfs
[   24.551816] usbcore: registered new interface driver hub
[   24.557364] usbcore: registered new device driver usb
[   24.580217] sata_mv sata_mv.0: version 1.28
[   24.584603] sata_mv sata_mv.0: slots 32 ports 2
[   24.590000] scsi0 : sata_mv
[   24.594467] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   24.601173] scsi1 : sata_mv
[   24.604566] ata1: SATA max UDMA/133 irq 21
[   24.608682] ata2: SATA max UDMA/133 irq 21
[   24.612895] orion-ehci orion-ehci.0: Marvell Orion EHCI
[   24.618207] orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
[   24.652786] orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
[   24.672766] orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
[   24.678794] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[   24.685645] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   24.692921] usb usb1: Product: Marvell Orion EHCI
[   24.697651] usb usb1: Manufacturer: Linux 2.6.33-2-kirkwood ehci_hcd
[   24.704046] usb usb1: SerialNumber: orion-ehci.0
[   24.710166] hub 1-0:1.0: USB hub found
[   24.713991] hub 1-0:1.0: 1 port detected
[   24.972769] ata1: SATA link down (SStatus 0 SControl F300)
[   25.032772] usb 1-1: new high speed USB device using orion-ehci and address 2
[   25.198301] usb 1-1: New USB device found, idVendor=6557, idProduct=1021
[   25.205064] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   25.212236] usb 1-1: Product: USB DISK 2.0
[   25.216375] usb 1-1: Manufacturer:         
[   25.220580] usb 1-1: SerialNumber: 07038733EB370F30
[   25.342764] ata2: SATA link down (SStatus 0 SControl F300)
[   25.407163] Initializing USB Mass Storage driver...
[   25.412391] scsi2 : usb-storage 1-1:1.0
[   25.417753] usbcore: registered new interface driver usb-storage
[   25.423832] USB Mass Storage support registered.
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Waiting for root file system ... [   32.575548] scsi 2:0:0:0: Direct-Access              USB DISK 2.0     PMAP P6
[   32.621716] sd 2:0:0:0: [sda] 15654912 512-byte logical blocks: (8.01 GB/7.46 GiB)
[   32.631698] sd 2:0:0:0: [sda] Write Protect is off
[   32.636559] sd 2:0:0:0: [sda] Assuming drive cache: write through
[   32.652572] sd 2:0:0:0: [sda] Assuming drive cache: write through
[   32.658733]  sda: sda1
[   32.670072] sd 2:0:0:0: [sda] Assuming drive cache: write through
[   32.676229] sd 2:0:0:0: [sda] Attached SCSI removable disk
done.
Begin: Running /scripts/local-premount ... done.
[   32.915007] EXT3-fs (sda1): recovery required on readonly filesystem
[   32.921412] EXT3-fs (sda1): write access will be enabled during recovery
[   44.676540] kjournald starting.  Commit interval 5 seconds
[   44.682095] EXT3-fs (sda1): recovery complete
[   45.160083] EXT3-fs (sda1): mounted filesystem with ordered data mode
Begin: Running /scripts/local-bottom ... done.
done.
Begin: Running /scripts/init-bottom ... done.
/sbin/init: error while loading shared libraries: libselinux.so.1: cannot stat shared object: Invalid argument
[   45.302810] Kernel panic - not syncing: Attempted to kill init!
[   45.308799] [<c002be0c>] (unwind_backtrace+0x0/0xd8) from [<c02a6ddc>] (panic+0x40/0x120)
[   45.317065] [<c02a6ddc>] (panic+0x40/0x120) from [<c0044c00>] (do_exit+0x70/0x668)
[   45.324699] [<c0044c00>] (do_exit+0x70/0x668) from [<c0045284>] (do_group_exit+0x8c/0xc0)
[   45.332944] [<c0045284>] (do_group_exit+0x8c/0xc0) from [<c00452c8>] (sys_exit_group+0x10/0x1c)
[   45.341695] [<c00452c8>] (sys_exit_group+0x10/0x1c) from [<c0025e40>] (ret_fast_syscall+0x0/0x28)


Questions:

Compatibility with STORA MS2000: Are there specific steps to follow for installing Debian on this NAS? Are there any particularities related to the architecture of this model (Kirkwood)?
Missing libraries: Is it possible that critical files like libselinux.so.1 are missing from the rootfs archive I used? How can I fix this issue?
Boot and Kernel Panic: Do you have suggestions for bypassing the kernel panic and errors when accessing the file system?
Other ideas: Are there any additional configurations I should apply in fstab or elsewhere to make Debian work properly on this NAS?

Thank you so much for your help, any suggestions or ideas would be greatly appreciated!

Viewing all articles
Browse latest Browse all 3247

Trending Articles