November 11, 2019, 09:59:48 pm

News:

Have you visited the Allwinner Chipset wiki? - http://linux-sunxi.org/


SATA as root partition

Started by DigitalDaz, September 12, 2013, 08:33:52 pm

Previous topic - Next topic

DigitalDaz

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

patwood

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.

DigitalDaz


zopostyle


patwood


stulle

October 10, 2013, 08:13:03 am #5 Last Edit: October 10, 2013, 08:27:04 am by stulle
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 :)

djraffon

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

rose28357

@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.