[Arm-netbook] SATA - ATAS

joem joem at martindale-electric.co.uk
Mon Sep 9 17:22:43 BST 2013


On Mon, 2013-09-09 at 18:05 +0200, Arokux X wrote:
> 
> 
> 
> On Mon, Sep 9, 2013 at 6:02 PM, joem <joem at martindale-electric.co.uk>
> wrote:
>         On Mon, 2013-09-09 at 17:46 +0200, Arokux X wrote:
>         >
>         
>         >
>         >         > >> > From
>         http://rhombus-tech.net/allwinner/a20/boot/
>         >         > >> > When I run
>         >         > >> >
>         >         > >> > make -j3 ARCH=arm
>         CROSS_COMPILE=arm-linux-gnueabihf-
>         >         > >> > KDIR=~/src/a10/linux-sunxi/ -C
>         >         arch/arm/mach-sun7i/pm/standby all
>         >         > >>
>         >         > >>  the KDIR environment variable is a standard
>         linux kernel
>         >         environment
>         >         > >> variable, which says "my (K)ernal (DIR)ectory
>         is
>         >         ~/src/....".  so,
>         >         > >> obviously, you have to adjust that for your
>         setup.
>         >         > >
>         >         > >
>         >         > > That is what got me confused - is the kernel
>         sources sub
>         >         directory not
>         >         > > in the linux directory already?
>         >         >
>         >         >  there *is* no quotes subdirectory - it *is* the
>         kernel
>         >         sources.
>         >         >
>         >         > > If its not in there, what am I
>         >         > > downloading when I do git clone
>         >         http://git.hands.com/linux.git ?
>         >         >
>         >         >  linux kernel sources.  there is only linux kernel
>         sources.
>         >
>         >
>         >
>         >         Hmmmm.... going in circles - the instructions read:
>         >
>         >         git clone http://git.hands.com/linux.git
>         >         cd linux   <----- so you are in the linux kernel
>         sources
>         >         directory
>         >         git checkout -b lkcl-3.3-a20
>         >         make -j3 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-
>         >         KDIR=~/src/a10/linux-sunxi/ -C
>         arch/arm/mach-sun7i/pm/standby
>         >         all
>         >
>         >
>         >         At no stage in instruction at
>         >         http://rhombus-tech.net/allwinner/a20/boot/
>         >         does it say where to download and set up
>         >         linux-sunxi. Where is linux-sunxi directory? Why set
>         KDIR
>         >         again to
>         >         something somewhere else like linux-sunxi
>         >         if you are in the linux kernel directory already?
>         >
>         >         That be why I am confused and going in circles.
>         >
>         > I think you need to adjust KDIR so it points to your linux
>         directory.
>         
>         
>         
>         Ah!
>         
>         I'm running Ubuntu 12.04.3
>         So should I point it at kernel sources for Ubuntu 12.04.3
>         or should I do git clone
>         git://github.com/linux-sunxi/linux-sunxi.git
>         and then point it at linux-sunxi directory?
>         
> Wait wait wait! You did git clone http://git.hands.com/linux.git, now
> you have linux directory somewhere. Point KDIR to this  directory.

Yes - that would be at ~/code is where I set up the clone
and KDIR should then be set to ~/code/linux
because when cloning  http://git.hands.com/linux.git, it drops the
files into a sub directory called linux (NOT linux-sunxi !!!!!!!!!!).

Can you then begin to imagine the amount of confusion if following the
instruction at  http://rhombus-tech.net/allwinner/a20/boot/ as is???

There is never going to be a linux-sunxi sub directory and you are toast
at the first line because there is hint on how to progress. (I really
wonder how many people have gotten past the first line now! :)  )

I try it later tonight if not tomorrow and update documentation when it
works.

Thanks Arokux





More information about the arm-netbook mailing list