General NAS-Central Forums

Welcome to the NAS community
It is currently Tue Apr 25, 2017 12:49 am

All times are UTC




Post new topic Reply to topic  [ 18 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Debian on ED Mini v2
PostPosted: Wed Oct 07, 2009 7:23 pm 
Offline

Joined: Thu Jun 12, 2008 10:59 pm
Posts: 8
Location: Kladno, Czech Republic
Hi All,
I've tried to summarize everything to run Debian Lenny on ED Mini v2. If you are interested check out http://malat.biz/view/Projects/LacieEDMiniV2


Top
 Profile  
 
 Post subject: Thank You!
PostPosted: Thu Oct 08, 2009 11:35 pm 
Offline

Joined: Sun Jul 19, 2009 11:39 pm
Posts: 16
Thankyou for your wonderful tutorial.

I've already a debian (etch) chroot on USB attached to the Lacie and I've got a SATA-USB cable and another computer with debian lenny.

I didn't find the link to the "easy way".

What are the features of the "Big Kernel" (2.6.xx ?)
What is working and what not?
- USB host
- USB client
- audio/ video
- second SATA


What about wake-on-lan or similar?

Greetings and big thanks!!!!!


Top
 Profile  
 
 Post subject: Re: Debian on ED Mini v2
PostPosted: Sat Oct 10, 2009 9:47 pm 
Offline

Joined: Thu Jun 12, 2008 10:59 pm
Posts: 8
Location: Kladno, Czech Republic
I haven't publish the easy method yet, because I have to know original uboot settings - I've updated uboot and changed the settings and in "easy method" I want to be 100% sure it will works.

With knowledge of these settings It is possible to hardcode kernel commandline which will boot lenny from any partition. Installation is then simple:
untar rootfs.tgz, copy kernel in right place, reboot...

Main advantage of big kernel is that it comes with a lot of modules for advanced networking, usb etc.


Top
 Profile  
 
PostPosted: Wed Oct 28, 2009 1:27 am 
Offline

Joined: Sun Jul 19, 2009 11:39 pm
Posts: 16
I'm still working with Etch (in a chroot on a USB device).

I didn't apply your instructions because I think there is missing something.

When I tried "Lenny" on the USB device, it didn't work, because of the kernel.

In your installing instructions there is no mention about installing a new kernel.

I don't believe that "Lenny" works with the old kernel.



Please help me!!!
I've got already a working system (with optware packages on one side and a chroot of "Etch" in the other hand.)
There must be only little to change.
What about your "Big kernel"? How does it become effective?


Greetings


Top
 Profile  
 
PostPosted: Wed Oct 28, 2009 5:07 am 
Offline

Joined: Thu May 08, 2008 11:23 am
Posts: 112
Location: near Toulouse, France
gerdich wrote:
I don't believe that "Lenny" works with the old kernel.

IIRC Debian Lenny needs a kernel >= 2.6.16 so it does not run on the stock LaCie kernel.

I am sure that I have already discussed this in another topic (and also how to generate and install a new kernel).

Cheers,
Chris


Top
 Profile  
 
PostPosted: Sun Nov 01, 2009 10:28 pm 
Offline

Joined: Thu Jun 12, 2008 10:59 pm
Posts: 8
Location: Kladno, Czech Republic
gerdich wrote:
I don't believe that "Lenny" works with the old kernel.

I've installed it at the time lenny was testing. Glibc was probably updated since that and the current version requires newer kernel. Which I have as I've started to use my own build.
Quote:
I've got already a working system (with optware packages on one side and a chroot of "Etch" in the other hand.)
There must be only little to change.
You can update the kernel - if you are able to connect your ED Mini harddisk to linux system, you can backup the original kernel and than restore it if something goes wrong.


Top
 Profile  
 
 Post subject: Re: Debian on ED Mini v2
PostPosted: Sun Nov 01, 2009 11:32 pm 
Offline

Joined: Sun Jul 19, 2009 11:39 pm
Posts: 16
I'm araid of such a change.

I don't use dd very often. With dd you can make big mistakes!!!

I'm very unsecure with the manner the kernel is saved.

Could someone be so nice and write down the instructions to backup the kernel (or even to verify the backup)

I would like to install the "Big kernel".


Top
 Profile  
 
 Post subject: Re: Debian on ED Mini v2
PostPosted: Mon May 31, 2010 9:14 am 
Offline

Joined: Sat May 29, 2010 6:37 pm
Posts: 160
I am really interested in this thing! I have this NAS as well and want to get more out of it (hence the CPU).

I can chroot into it but it's not that complete to fully work with it.

Since it's the same hardware, isn't it possible to make a dd dump of your running Debian? And when installed, do you need the JTAG cable every time you need to boot the box?

Sorry for the bump on this one, but i am working on this matter for quite some time and this really seems to be a good workout!


Top
 Profile  
 
 Post subject: Re: Debian on ED Mini v2
PostPosted: Sat Jun 05, 2010 1:49 am 
Offline

Joined: Wed Apr 16, 2008 4:23 am
Posts: 14
petris wrote:
I haven't publish the easy method yet, because I have to know original uboot settings - I've updated uboot and changed the settings and in "easy method" I want to be 100% sure it will works.

With knowledge of these settings It is possible to hardcode kernel commandline which will boot lenny from any partition. Installation is then simple:
untar rootfs.tgz, copy kernel in right place, reboot...

Main advantage of big kernel is that it comes with a lot of modules for advanced networking, usb etc.


Hi petris,

if you wish to know the original uboot settings, now is the time. I have updated uboot with Albert's new uboot with Macronix flash support, and the only thing I have changed is the mach_type in order to be able to continue booting the stock kernel and distro. I have not changed anything else. So I hope these will help you with the "easy" method... let me know if you need anything else:

Marvell>> printenv
bootargs=console=ttyS0,115200 root=/dev/sda7 ro
bootcmd=if lump 2; then ; else run disk_disk; fi
baudrate=115200
loads_echo=0
kernel_addr=0x400000
boot_disk=disk ${kernel_addr} 1:6
snap_disk=if snapboot 1:9 ${kernel_addr}; then; else run boot_disk; fi
disk_disk=ide reset; run snap_disk; bootm ${kernel_addr};
ethaddr=00:d0:4b:85:98:46
stdin=serial
stdout=serial
stderr=serial
cpuName=926
CASset=min
enaMonExt=no
enaFlashBuf=yes
enaCpuStream=no
MALLOC_len=4
ethprime=egiga0
bootdelay=3
disaMvPnp=no
overEthAddr=no
usb0Mode=host
usb1Mode=device
ethact=egiga0
mach_type=526

Environment size: 572/8188 bytes
Marvell>> bdinfo
arch_number = 0x000006DC
env_t = 0x00000000
boot_params = 0x00000100
DRAM bank = 0x00000000
-> start = 0x00000000
-> size = 0x04000000
DRAM bank = 0x00000001
-> start = 0xFFFFFFFF
-> size = 0x00000000
DRAM bank = 0x00000002
-> start = 0xFFFFFFFF
-> size = 0x00000000
DRAM bank = 0x00000003
-> start = 0xFFFFFFFF
-> size = 0x00000000
ethaddr = 00:D0:4B:85:98:46
ip_addr = 0.0.0.0
baudrate = 115200 bps
Marvell>>


Top
 Profile  
 
 Post subject: Re: Debian on ED Mini v2
PostPosted: Sun Jun 06, 2010 7:35 am 
Offline

Joined: Sat May 29, 2010 6:37 pm
Posts: 160
I have the V2, but mine is not configured with XFS partitions, my scheme is this:

sda1 -> 3 Gb EXT3 with all configfiles home dirs
sda2 -> 512 Mb swap
sda3 -> (all disk space) EXT3 home dir, usable space
sda4 -> extended
sda5 -> 8 Mb unformatted
sda6 -> 16 Mb unformatted
sda7 -> 48 Mb EXT3 i think this is the boot partition (as soon as i delete this partition it won't boot anymore :D)

So what would be the workaround for this in your tutorial? I don't want to compile kernels etc (i am not good at compiling kernels) so i'd rather have a precompiled one from someone if i really need one. I have a clone of the original disk, so i can mess up whatever i want, so what would i have to do on this scheme to let your tutorial work?

I flashed my U-Boot to newer version, so i've already done that :).

Any help would be appreciated coz i am stuck now...


Top
 Profile  
 
 Post subject: Re: Debian on ED Mini v2
PostPosted: Sun Jun 06, 2010 8:34 am 
Offline

Joined: Thu May 08, 2008 11:23 am
Posts: 112
Location: near Toulouse, France
langerak wrote:
I don't want to compile kernels etc (i am not good at compiling kernels) so i'd rather have a precompiled one from someone if i really need one.
Martin Michlmayr regularly supplies precompiled kernels for armel.
He is also very helpful if you have problems ;-)
You could try http://people.debian.org/~tbm/armel/ker ... _armel.deb
It seems to be in a Debian package but the kernel should be easy to extract.
See also, for instance, this page on his site http://www.cyrius.com/debian/orion/
He doesn't mention the EDmini v2 but I don't see why it shouldn't work (within the limitations of my port to mainline Linux ;-) ).


Top
 Profile  
 
 Post subject: Re: Debian on ED Mini v2
PostPosted: Sun Jun 06, 2010 9:18 am 
Offline

Joined: Sat May 29, 2010 6:37 pm
Posts: 160
Thanks for the info, however, if i extract the kernel image i end up with 3 folders:
boot/
lib/
usr/

I used dpkg-deb -x to extract the .deb package.

How can i convert that into a uImage? :P


Top
 Profile  
 
 Post subject: Re: Debian on ED Mini v2
PostPosted: Sun Jun 06, 2010 11:55 am 
Offline

Joined: Thu May 08, 2008 11:23 am
Posts: 112
Location: near Toulouse, France
langerak wrote:
Thanks for the info, however, if i extract the kernel image i end up with 3 folders:
boot/
lib/
usr/
I have not looked but I guess that :
boot/ will contain the kernel itself
lib/ will contain kernel modules
usr/ will contain kernel includes

langerak wrote:
How can i convert that into a uImage? :P
I thought there would be a uImage in /boot.
Otherwise the command mkimage can be used to create one. The problem is getting the right arguments :(
I always build my own kernels and let the kernel Makefiles handle this.
I recommend you do the same ;-)
This kernel may not even have all the necessary .config options.
I do not remember whether you have a serial console.
If you don't and you want to use CLUNC you will need the CONFIG_NETCONSOLE option and I doubt that it will be in this precompiled kernel.

In short I highly recommend you compile your own kernel which you can configure to your needs.


Top
 Profile  
 
 Post subject: Re: Debian on ED Mini v2
PostPosted: Sun Jun 06, 2010 12:11 pm 
Offline

Joined: Sat May 29, 2010 6:37 pm
Posts: 160
As of yesterday i have a serial connection between the LaCie and my PC ;). I even flashed U-Boot with it!

Serial is much better and less laggy as Clunc, so gonna use that and gonna try add a serial header on the box for later on purposes :).

Compiling my own kernel... Hmmmm that will be alot of work, had some tries yesterday and none of them succeeded... I always end up with compile errors and the damn ARM toolchain, now i downloaded one from CodeSourcery, the ARM gnueabi tools, so hopefully that works a bit better...

The boot folder contains this:
Code:
totaal 2400
drwxr-xr-x 2 root root    4096 2010-05-19 18:38 .
drwxr-xr-x 5 root root    4096 2010-05-19 18:38 ..
-rw-r--r-- 1 root root   88559 2010-05-19 18:38 config-2.6.34-1-orion5x
-rw-r--r-- 1 root root 1003111 2010-05-19 18:38 System.map-2.6.34-1-orion5x
-rw-r--r-- 1 root root 1353644 2010-05-19 18:36 vmlinuz-2.6.34-1-orion5x


Top
 Profile  
 
 Post subject: Re: Debian on ED Mini v2
PostPosted: Sun Jun 06, 2010 12:51 pm 
Offline

Joined: Sat May 29, 2010 6:37 pm
Posts: 160
Just to inform, i am actually compiling my own kernel! Whoa, finally it's compiling for ARM :D.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 18 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group