Installing Debian

Mijzelf
Posts: 6199
Joined: Mon Jun 16, 2008 10:45 am

Re: Installing Debian

Post by Mijzelf » Sat Feb 22, 2014 9:41 am

lolcese wrote:So it looks good.
Actually not. Only the loopback interface is defined. Have a try with

Code: Select all

auto lo
iface lo inet loopback

auto eth0
allow-hotplug eth0
iface eth0 inet dhcp

auto egiga0
allow-hotplug egiga0
iface egiga0 inet dhcp
Actually the box contains a egiga0 or an eth0. The original Marvell kernel (2.6.22?) had an egiga0 interface. I think yours will have a (more canonical) eth0. But it won't hurt to try to initialize both. One of them just doesn't exist
How can I check if the uImage is properly redirecting to /dev/sda7?
By seeing it boot. If the box appears in the network, or something is written to /var/log/, it worked. If not, well, that's where a serial connection becomes handy. It is possible that you forgot a driver in your kernel, or that some script in the rootfs blocks everything, or that the rootfs after all is just bogus. A serial log can tell.
I realized that in your http://downloads.lacie.nas-central.org/ ... jzelf/tmp/ dir there are files like uImage_d2Network and rootfs.txz. Those are valid files?
Ah. I forgot about those. They are extracted from some lacie update package. The rootfs is not complete, it's designed to be written over an existing, working installation.
Here you can read it's story.

lolcese
Posts: 20
Joined: Tue Feb 18, 2014 12:47 am

Re: Installing Debian

Post by lolcese » Sun Feb 23, 2014 12:26 am

SUCCESS !!!! :lol: :lol:

As uImage, I used http://downloads.lacie.nas-central.org/ ... _d2Network

As rootfs, I followed the instructions in http://forum.doozan.com/read.php?2,5986,page=1 , with a bit of http://www.rigacci.org/wiki/doku.php/do ... d2_network (mainly for the final config).

And now, my final question: Is there any package for debian to create a web interface with similar functions to the lacie one? Of course, I can do everything in the console, but it's easier to do it viea web.

Mijzelf, thanks a lot. Really.
Last edited by lolcese on Wed Feb 26, 2014 1:47 pm, edited 1 time in total.

Mijzelf
Posts: 6199
Joined: Mon Jun 16, 2008 10:45 am

Re: Installing Debian

Post by Mijzelf » Sun Feb 23, 2014 11:44 am

As 'default Debian' package I'm only aware of Webmin, but my experience with it is not good. In 2009 it was too heavy for an Orion. Maybe it's better now.

You can also have a look at OpenMediaVault.

Personally I prefer the command line. I

lolcese
Posts: 20
Joined: Tue Feb 18, 2014 12:47 am

Re: Installing Debian

Post by lolcese » Sun Feb 23, 2014 12:14 pm

A bit offtopic, bit I will ask for your help again:
Almost everything is working fine, except the external usb disk. Here is all the info:

The result of uname -a is

Code: Select all

Linux lacie-NAS 2.6.22.7 #1 Mon Oct 25 15:17:58 CEST 2010 armv5tejl GNU/Linux
If I try to modprob usb_storage (I installed linux-source), I get

Code: Select all

FATAL: Module usb_storage not found.
After doing mount usbfs -t usbfs /proc/bus/usb, if I do lsusb, I get (the Iomega is the disk)

Code: Select all

Bus 002 Device 001: ID 0000:0000
Bus 001 Device 002: ID 059b:0370 Iomega Corp.
Bus 001 Device 001: ID 0000:0000
If I do a dmseg, I get (I connected and disconnected the disk a couple of times)

Code: Select all

Init Marvell USB port 0 => HOST
Marvell USB EHCI Host controller #0: c0493600
Init Marvell USB port 1 => HOST
Marvell USB EHCI Host controller #1: c0493400
ehci_marvell ehci_marvell.4523: new USB bus registered, assigned bus number 1
ehci_marvell ehci_marvell.4523: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
hub 1-0:1.0: USB hub found
ehci_marvell ehci_marvell.167817: new USB bus registered, assigned bus number 2
ehci_marvell ehci_marvell.167817: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
hub 2-0:1.0: USB hub found
ohci_hcd: 2006 August 04 USB 1.1 'Open' Host Controller (OHCI) Driver
USB Universal Host Controller Interface driver v3.0
usb 1-1: new high speed USB device using ehci_marvell and address 2
usb 1-1: USB disconnect, address 2
usb 1-1: new high speed USB device using ehci_marvell and address 3
usb 1-1: USB disconnect, address 3
usb 1-1: new high speed USB device using ehci_marvell and address 4
​It doesn't show in a fdisk -l​

Any ideas?
Thanks

Mijzelf
Posts: 6199
Joined: Mon Jun 16, 2008 10:45 am

Re: Installing Debian

Post by Mijzelf » Sun Feb 23, 2014 9:13 pm

FATAL: Module usb_storage not found.
The modules must fit on the used kernel. Modprobe searches in /lib/modules/<kernel-version>/ . For sure you don't have that directory. *Maybe* it's inside that incomplete rootfs.tgz file. If not, you'll have to compile the modules yourself. I *think* you have a /proc/config.gz, which contains the original .config from which your kernel was compiled.

lolcese
Posts: 20
Joined: Tue Feb 18, 2014 12:47 am

Re: Installing Debian

Post by lolcese » Wed Mar 26, 2014 5:04 pm

I'm back :)
I tried lots of different modules without luck, so I will compile the kernel from scratch. I setup a scratchbox environment following the instructions in http://balau82.wordpress.com/2010/03/14 ... on-ubuntu/ and I downloaded the lacie_2.2.x_GPL files. When I call ./build.sh in kernel-2.6.22.7-lacie dir, it asks for an initramfs.

Code: Select all

./build.sh: line 162: svn: command not found
** Error: Please specify a valid initramfs **
Which initramfs I need to specify?
Thanks !

Mijzelf
Posts: 6199
Joined: Mon Jun 16, 2008 10:45 am

Re: Installing Debian

Post by Mijzelf » Wed Mar 26, 2014 9:25 pm

The box should boot fine without initramfs, so if the script accepts when you just specify none...

lolcese
Posts: 20
Joined: Tue Feb 18, 2014 12:47 am

Re: Installing Debian

Post by lolcese » Thu Mar 27, 2014 11:15 am

Thanks, I built the kernel without problems, and I obtained a .tar.gz with all the modules. Then, I tried to compile the other about 70 directories, but most of the gave me errors. I think that it is safe to simply put the modules in a debian installed with a bootstrap, is this right? Also, how I make the uImage for sda6, just in case ?

Mijzelf
Posts: 6199
Joined: Mon Jun 16, 2008 10:45 am

Re: Installing Debian

Post by Mijzelf » Thu Mar 27, 2014 2:19 pm

lolcese wrote:I think that it is safe to simply put the modules in a debian installed with a bootstrap, is this right?
Yes. That's the way I do it.
Also, how I make the uImage for sda6, just in case ?
I would expect it to be generated, as Lacie also uses uImage. Have a look in arch/arm/boot/. If it isn't there, try a 'make uImage' in the kernel root.

lolcese
Posts: 20
Joined: Tue Feb 18, 2014 12:47 am

Re: Installing Debian

Post by lolcese » Thu Mar 27, 2014 8:18 pm

In arch/arm/boot are created Image and zImage, but not uImage. If I try to make uImage, it complains (after a while) that mkboot is not installed. mkboot is working in the host machine, but not inside scratchbox.

lolcese
Posts: 20
Joined: Tue Feb 18, 2014 12:47 am

Re: Installing Debian

Post by lolcese » Fri Mar 28, 2014 4:08 pm

Or, sda6 form a 2Big should also work (http://downloads.lacie.nas-central.org/ ... ig/sda6.gz)?

lolcese
Posts: 20
Joined: Tue Feb 18, 2014 12:47 am

Re: Installing Debian

Post by lolcese » Sat Mar 29, 2014 2:09 am

And now, I'm completely lost. I can't boot the 2.6.22.7 kernel from http://downloads.lacie.nas-central.org/ ... _d2Network (I swear I did it before). I see the booting process, but after uncompressing the kernel, it get stuck there. If I press a key to stop the booting process, it gets stuck and the red led starts blinking. Before, I needed to change the machine ID.
If I try a 2.6.36 uimage (http://www.rigacci.org/pub/Linux/kernel ... lacie.0.10), it starts complaining about missing modules (I expected that), but never shows in the dhcp, and again, I get a red blinking led when I try to enter in the booting process.

What I did wrong????

Mijzelf
Posts: 6199
Joined: Mon Jun 16, 2008 10:45 am

Re: Installing Debian

Post by Mijzelf » Sat Mar 29, 2014 8:24 am

lolcese wrote:Before, I needed to change the machine ID.
You changed the Machine ID? That *can* be the reason that your old kernel doesn't boot anymore, although I would expect some more output than nothing. Something like 'Unsupported board type, system halt'.
it starts complaining about missing modules (I expected that), but never shows in the dhcp
When it complains about missing modules it is already executing it's userland from disk. So the kernel just works. That it doesn't request an IP address can have 3 reasons:
  • The network is not configured
  • The nic is configured to have a static address.
  • The configuration uses the old nic-name egiga0, while the new kernel uses eth0.
In all this cases you'll have to edit /etc/network/interfaces.

BTW, don't you get a shell on serial?

lolcese
Posts: 20
Joined: Tue Feb 18, 2014 12:47 am

Re: Installing Debian

Post by lolcese » Sat Mar 29, 2014 2:50 pm

The first time that I installed the kernel, I needed to change the machine ID because it complained about that. Now, I made a fresh install of the uboot and doesn't work, I don't understand why.
What I get from the serial (http://downloads.lacie.nas-central.org/ ... _d2Network)?

Code: Select all

__ __ _ _

| \/ | __ _ _ ____ _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| | | | (_| | | \ V / __/ | |
|_| |_|\__,_|_| \_/ \___|_|_|
_ _ ____ _
| | | | | __ ) ___ ___ | |_
| | | |___| _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
\___/ |____/ \___/ \___/ \__| ** LOADER **
** MARVELL BOARD: DB-88F5182-LaCie LE

U-Boot 1.1.4 (Feb 9 2009 - 13:15:53) Marvell version: 2.4.9 LaCie : 1.00.0001

U-Boot code: 00200000 -> 0026FFF0 BSS: -> 00283280

Soc: 88F5182 A2 (DDR2)
CPU running @ 400Mhz
SysClock = 200Mhz , TClock = 166Mhz

DRAM CS[0] base 0x00000000 size 128MB
DRAM Total size 128MB 32bit width
[512kB@fff80000] Flash: 512 kB
Addresses 4M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (4M - 3M): Done

CPU : ARM926 (Rev 0)
88F5182 A2 streaming disabled

USB 0: host mode
USB 1: host mode
PCI 0: PCI Express Root Complex Interface
PCI 1: Conventional PCI, speed = 33000000
Net: egiga0 [PRIME]
POWER ON
Hit any key to stop autoboot: 0
mvEgigaInit: egiga0 mvEthPortEnable failed (error)
mvEgigaInit: egiga0 failed
Waiting for LUMP (2)
no lump receive; continuing

Reset IDE:
Marvell Serial ATA Adapter
Integrated Sata device found
Device 1: OK
Model: ST3750528AS Firm: CC38 Ser#: 5VP3APB9
Type: Hard Disk
Supports 48-bit addressing
Capacity: 715404.8 MB = 698.6 GB (1465149168 x 512)


Loading from IDE device 1, partition 6: Name: hdb6
Type: U-Boot
Image Name: Linux-2.6.22.7
Created: 2010-10-25 13:18:03 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1778644 Bytes = 1.7 MB
Load Address: 00008000
Entry Point: 00008000
## Booting image at 00400000 ...
Image Name: Linux-2.6.22.7
Created: 2010-10-25 13:18:03 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1778644 Bytes = 1.7 MB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
OK

Starting kernel ...

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

Mijzelf
Posts: 6199
Joined: Mon Jun 16, 2008 10:45 am

Re: Installing Debian

Post by Mijzelf » Sun Mar 30, 2014 1:28 pm

Can you see which commandline is passed to the kernel? It should be in the u-boot environment. If it doesn't contain a 'console=', maybe there is no kernel output. And if it doesn't contain a pointer to sda7 the kernel won't find it's rootfs.

Post Reply