Welcome! Log In Create A New Profile

Advanced

Install Debian to SATA?

Posted by shatterstar78 
Install Debian to SATA?
August 14, 2014 02:50PM
Just wondering if its possible to Install Debian to SATA on a Pogoplug V3?
Re: Install Debian to SATA?
August 14, 2014 03:15PM
Re: Install Debian to SATA?
August 14, 2014 10:38PM
Cool Thanks. First of all i'm very new to Linux in genaral, so please excuse my ignorance if this sounds stupid. So if going with the SATA boot does anything need to be touched on a stock Pogoplug V3 clasic other than the "Boot envs"?
Re: Install Debian to SATA?
August 15, 2014 12:26AM
shatterstar78,

Unfortunately, it is a little more complicated on this device than all other plugs. Because at this stage, there are a few options and that made it confusing.

What I have done is what I recommend and support fixing problems that might come with it.

To boot SATA, install new U-Boot image and new Debian rootfs:

1. Create a USB Debian rootfs: http://forum.doozan.com/read.php?2,16044
2. Install new U-Boot: http://forum.doozan.com/read.php?3,16017
3. Get it running, and then change U-Boot envs to boot SATA. Of course, SATA/eSATA connector must already been installed after opening up the case.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Install Debian to SATA?
August 15, 2014 01:49AM
bodhi Wrote:
-------------------------------------------------------
> shatterstar78,
>
> Unfortunately, it is a little more complicated on
> this device than all other plugs. Because at this
> stage, there are a few options and that made it
> confusing.
>
> What I have done is what I recommend and support
> fixing problems that might come with it.
>
> To boot SATA, install new U-Boot image and new
> Debian rootfs:
>
> 1. Create a USB Debian rootfs:
> http://forum.doozan.com/read.php?2,16044
> 2. Install new U-Boot:
> http://forum.doozan.com/read.php?3,16017
> 3. Get it running, and then change U-Boot envs to
> boot SATA. Of course, SATA/eSATA connector must
> already been installed after opening up the case.

What about the stock kernel, can that stay as is?
Re: Install Debian to SATA?
August 15, 2014 02:50AM
shatterstar78,

The stock kernel and rootfs are on other MTDs (U-boot is on mtd0), they are untouched. But you will not be able to access them after you installed new U-Boot. You can only use USB or SATA for rootfs (which include the new kernel).

Do you have another plug that you have installed Debian or Arch? If not, this is a not a good device to start with :) the easiest ones are: GoFlex Net, GoFlex Home, Pogoplug E02, and Dockstar. With these, you can start with Jeff's Debian Squeeze script to get a functioning system. And then upgrade or replace rootfs to run latest Linux. And then install new U-Boot. This Pogo V3 is a bit harder to do modding (there is a good chance that will change in the future). The instruction I have is manual installation procedure, therefore more risky. Pls read the disclaimer in each post before starting!

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Install Debian to SATA?
August 15, 2014 03:49AM
Unfortunately I don't have any of those devices. But I do have a serial cable and I made a full NAND backup. So if I get in trouble hopefully that will be enough to get me back up and running.
Re: Install Debian to SATA?
August 15, 2014 10:33AM
shatterstar78 Wrote:
-------------------------------------------------------
> bodhi Wrote:
> --------------------------------------------------
> -----
> > shatterstar78,
> >
> > Unfortunately, it is a little more complicated
> on
> > this device than all other plugs. Because at
> this
> > stage, there are a few options and that made it
> > confusing.
> >
> > What I have done is what I recommend and
> support
> > fixing problems that might come with it.
> >
> > To boot SATA, install new U-Boot image and new
> > Debian rootfs:
> >
> > 1. Create a USB Debian rootfs:
> > http://forum.doozan.com/read.php?2,16044
> > 2. Install new U-Boot:
> > http://forum.doozan.com/read.php?3,16017
> > 3. Get it running, and then change U-Boot envs
> to
> > boot SATA. Of course, SATA/eSATA connector must
> > already been installed after opening up the
> case.
>
> What about the stock kernel, can that stay as is?


Well something went wrong. The only problem I had with the install was "fw_printenv", said it was not found when trying to run it. I also did not flash "uboot environment" I figured I shouldn't because I don't tink I have FDT kernel. So I rebooted, and Now just stuck at flashing green light. This is my serial console output.

U-Boot SPL 2013.10 (Apr 27 2014 - 19:08:27)
  Boot device: NAND
Attempting to set PLLA to 800 MHz ...
  plla_ctrl0 : 0000030a
  plla_ctrl1 : 00400000
  plla_ctrl2 : 007f0068
  plla_ctrl3 : 00000193

PLLA Set


U-Boot 2013.10-tld-3 (May 15 2014 - 14:54:14) for OXNAS

DRAM:  128 MiB
NAND:  128 MiB
NAND read from offset 100000 failed -74
*** Warning - readenv() failed, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   
Led:	GREEN
mii0
Main Loop
switch to net console

U-Boot SPL 2013.10 (Apr 27 2014 - 19:08:27)
  Boot device: NAND
Attempting to set PLLA to 800 MHz ...
  plla_ctrl0 : 0000030a
  plla_ctrl1 : 00400000
  plla_ctrl2 : 007f0068
  plla_ctrl3 : 00000193

PLLA Set


U-Boot 2013.10-tld-3 (May 15 2014 - 14:54:14) for OXNAS

DRAM:  128 MiB
NAND:  128 MiB
NAND read from offset 100000 failed -74
*** Warning - readenv() failed, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   
Led:	GREEN
mii0
Main Loop
switch to net console

U-Boot SPL 2013.10 (Apr 27 2014 - 19:08:27)
  Boot device: NAND
Attempting to set PLLA to 800 MHz ...
  plla_ctrl0 : 0000030a
  plla_ctrl1 : 00400000
  plla_ctrl2 : 007f0068
  plla_ctrl3 : 00000193

PLLA Set


U-Boot 2013.10-tld-3 (May 15 2014 - 14:54:14) for OXNAS

DRAM:  128 MiB
NAND:  128 MiB
NAND read from offset 100000 failed -74
*** Warning - readenv() failed, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   
Led:	GREEN
mii0
Main Loop
switch to net console

So how bad is it?

edit:
Just tested and it looks like I can still boot alarm from SATA. Just need to know what whent wrong and how I can fix it.

edit2:
WOW can't believe I did that, just realized that the "FDT kernel" is in reference to the kernel on the Debian rootfs and not the stock kernel on the POGO. So after flashing "uboot environment" its up and running. This dead giveaway was this....
NAND read from offset 100000 failed -74
*** Warning - readenv() failed, using default environment



Edited 2 time(s). Last edit at 08/15/2014 12:21PM by shatterstar78.
Re: Install Debian to SATA?
August 15, 2014 07:53PM
Cool! it really helps to see the obvious problem so quickly when you have serial console.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: