Author Topic: SATA as root partition  (Read 5972 times)

Offline DigitalDaz

  • Newbie
  • *
  • Posts: 27
  • Karma: +1/-0
    • View Profile
SATA as root partition
« on: September 12, 2013, 08:33:52 pm »
I'm woking down my list of weird and wonderful things to do with my board and I'm close to where I want to boot from SATA.

My understanding is that this will not be possible but I will be able to have my root filesystem on the SATA disk, providing that the drivers are compiled into the kernel rather loaded in a modular fashion.

Could someone please confirm this and also, are there any kernels that already have the SATA drivers compiled in?

TIA

Offline patwood

  • Linux geek
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1660
  • Karma: +129/-0
    • View Profile
Re: SATA as root partition
« Reply #1 on: September 12, 2013, 10:46:50 pm »
These kernels have SATA built in: http://dl.cubieforums.com/patwood/A10-kernel-3.4.43.tar.gz and http://dl.cubieforums.com/patwood/A20-kernel-3.4.43.tar.gz.

It is true that you cannot boot directly from SATA, but you can have a minimal boot file system on nand or sd with uboot, script.bin, and a kernel.

Offline DigitalDaz

  • Newbie
  • *
  • Posts: 27
  • Karma: +1/-0
    • View Profile
Re: SATA as root partition
« Reply #2 on: September 13, 2013, 03:40:09 am »
Thanks Pat!  ;D

zopostyle

  • Guest
Re: SATA as root partition
« Reply #3 on: October 07, 2013, 05:56:57 pm »
How do we install it?

Offline patwood

  • Linux geek
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1660
  • Karma: +129/-0
    • View Profile
Re: SATA as root partition
« Reply #4 on: October 07, 2013, 11:41:38 pm »
How do we install it?

The kernel or linux on SATA?

Offline stulle

  • Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: SATA as root partition
« Reply #5 on: October 10, 2013, 08:13:03 am »
im not sure but i think it would work this way (at least it would do so on x86):

-putting rootfs on your preferred prtition on /dev/sda

-putting kernel (with sata driver built0in of course) as uImage on formatted nanda (see http://www.cubieforums.com/index.php/topic,72.0.html)

-telling uBoot to load the kernel with root=/dev/sdax (no clue how to do it)

i"m also very interested in this question! did you find any solutions?


EDIT: just found this wonderful thread: http://www.cubieforums.com/index.php/topic,511.0.html
looks like with this we have all we need :) i will try this. if i dont answer i didnt find a solution and am stuck to a bricked cubie. but dont wait for me and leave me behind, you have to go on :)
« Last Edit: October 10, 2013, 08:27:04 am by stulle »

djraffon

  • Guest
Re: SATA as root partition
« Reply #6 on: October 11, 2013, 10:56:33 am »
you have to put "root=/dev/sda1 rootwait"
in the file "uEnv.txt" whitch is on the same location as uImage, in /dev/nand1 partition

Offline rose28357

  • Hero Member
  • *****
  • Posts: 567
  • Karma: +28/-0
    • View Profile
Re: SATA as root partition
« Reply #7 on: December 08, 2013, 06:29:33 am »
@stulle : the uEnv.txt tells the uImage/kernel where to find the rootfilesystem which included the libs.
Thats the reason why you have to have SATA driver compiled to uImage to use a STA-SSD for linux.