General NAS-Central Forums

Welcome to the NAS community
It is currently Thu Jul 27, 2017 10:41 pm

All times are UTC




Post new topic Reply to topic  [ 54 posts ]  Go to page 1, 2, 3, 4  Next
Author Message
 Post subject: Installing Debian
PostPosted: Tue Feb 18, 2014 1:27 am 
Offline

Joined: Tue Feb 18, 2014 12:47 am
Posts: 20
Splitted from NEED HELP for hard drive replacement

I'm in the same spot, with my disk dead and no images :cry:
I will try the Debian way, anybody has an advice about where to start? http://www.rigacci.org/wiki/doku.php/do ... d2_network has a detailed tutorial to install Debian together with LaCie operating system. I think that I can adapt the procedure to an empty disk, but better if somebody has a better idea.
Thanks


Top
 Profile  
 
PostPosted: Tue Feb 18, 2014 8:41 am 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6015
http://lacie-nas.org/doku.php?id=debian_install


Top
 Profile  
 
PostPosted: Tue Feb 18, 2014 10:33 am 
Offline

Joined: Tue Feb 18, 2014 12:47 am
Posts: 20
Thanks a lot
The Debian repository (http://ftp.nl.debian.org/debian/dists/t ... ole/lacie/) is empty, do you know where I can get the files?
Also, in ftp://lacie-nas.org/u-boot there are files for the d2 network v2, but not for the d2 network. They are the same or I need to compile them?


Top
 Profile  
 
PostPosted: Tue Feb 18, 2014 1:53 pm 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6015
Uhm. Posted too soon, I think. The D2 is not Kirkwood based, it has an Orion chip, so this installer won't work anyway.

And no, the u-boot of the D2v2 is not compatible with the D2.

I'm not aware of an installer for the Orion, but it can be installed manually. Just compile a compatible uImage, and write it (raw) to partition sda6. U-boot will load it, and execute it with 'root=/dev/sda7,ro' in the command line.
So put a Debian rootfs in sda7, and the system will boot into Debian. No need to exchange u-boot, so far.

Having a serial connection is highly recommended.


Top
 Profile  
 
PostPosted: Thu Feb 20, 2014 6:07 pm 
Offline

Joined: Tue Feb 18, 2014 12:47 am
Posts: 20
Mijzelf, thanks a lot for your help. I managed to successfully compile uImage (at least, I have a file called uImage), and I wrote it to /dev/sda6. Now, I'm lost, how can I put a Debian rootfs?
Thanks again


Top
 Profile  
 
PostPosted: Thu Feb 20, 2014 7:37 pm 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6015
Which kernel version?


Top
 Profile  
 
PostPosted: Thu Feb 20, 2014 7:39 pm 
Offline

Joined: Tue Feb 18, 2014 12:47 am
Posts: 20
arm kernel. I followed (more or less) the instructions in http://www.rigacci.org/wiki/doku.php/do ... d2_network


Top
 Profile  
 
PostPosted: Thu Feb 20, 2014 7:42 pm 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6015
No, I meant which number (2.6.??). That defines which Debian version can run upon it.


Top
 Profile  
 
PostPosted: Thu Feb 20, 2014 7:43 pm 
Offline

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


Top
 Profile  
 
PostPosted: Thu Feb 20, 2014 7:57 pm 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6015
Ah. In that case you can run a recent one. Having a quick look in the download section I guess this one can do. Do you have serial access?


Top
 Profile  
 
PostPosted: Thu Feb 20, 2014 9:57 pm 
Offline

Joined: Tue Feb 18, 2014 12:47 am
Posts: 20
No, I haven't serial access. So, I dd uImage to sda6, debian-wheezy-arm.tar.gz to sda7 and...


Top
 Profile  
 
PostPosted: Fri Feb 21, 2014 1:00 am 
Offline

Joined: Tue Feb 18, 2014 12:47 am
Posts: 20
Well, something is working, as the blue led is on and the disk is spinning. But nothing shows in the router asking for DHCP. Any ideas?


Top
 Profile  
 
 Post subject: Re: Installing Debian
PostPosted: Fri Feb 21, 2014 6:55 pm 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6015
Several.
1) I chose this rootfs on base of it's name, I don't know anything about it. The poster doesn't seem to have posted anything in the forum. So I don't know the network configuration either. Maybe it has a fixed address. Have a look in /etc/network/interfaces. More info here.
2) Have a look in /var/log/ to see if something interesting is logged.
3) It is possible the rootfs is readonly, as the u-boot command line specifies so. You can edit /etc/fstab to solve that, add a line
Code:
/dev/sda7            /      auto   noatime,rw   0 0


Top
 Profile  
 
 Post subject: Re: Installing Debian
PostPosted: Fri Feb 21, 2014 10:53 pm 
Offline

Joined: Tue Feb 18, 2014 12:47 am
Posts: 20
First at all, thanks Mijzelf, i really appreciate your help.

/etc/network/interfaces contains
Code:
auto lo
iface lo inet loopback
So it looks good.

I cleaned /var/log, booted again and still empty, so is seems that debian is not booting.

/etc/fstab didn't existed, so I created it with (and also placed a copy in /etc/fstab.d:
Code:
/dev/sda7            /      auto   noatime,rw   0 0
/dev/sda2            /home  auto   defaults,noatime      0      1


How can I check if the uImage is properly redirecting to /dev/sda7?


Top
 Profile  
 
 Post subject: Re: Installing Debian
PostPosted: Sat Feb 22, 2014 2:28 am 
Offline

Joined: Tue Feb 18, 2014 12:47 am
Posts: 20
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?


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


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