<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Sep 10, 2013 at 1:06 PM, joem <span dir="ltr"><<a href="mailto:joem@martindale-electric.co.uk" target="_blank">joem@martindale-electric.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="im">On Tue, 2013-09-10 at 11:17 +0100, Philip Hands wrote:<br>
<br>
<br>
> Joe, Would this have worked better for you?<br>
><br>
> git clone <a href="http://git.hands.com/linux.git" target="_blank">http://git.hands.com/linux.git</a> <a href="http://linux-from-git.hands.com" target="_blank">linux-from-git.hands.com</a><br>
> cd <a href="http://linux-from-git.hands.com" target="_blank">linux-from-git.hands.com</a><br>
> git checkout -b lkcl-3.3-a20<br>
> make -j3 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- KDIR="$PWD" -C arch/arm/mach-sun7i/pm/standby all<br>
> make -j3 ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- uImage modules<br>
><br>
> Just so you follow what I've changed, first I've given the clone an<br>
> extra parameter, which names the new directory explicitly, rather than<br>
> just using the 'linux' bit of the URL, and secondly I'm using $PWD,<br>
> which contains the current directory, rather than leaving whatever my<br>
> directory might be called in the cut&paste -- obviously, that only works<br>
> if you've cd-ed to the right directory, but then again, it's not really<br>
> going to work if you don't.<br>
<br>
</div>Thank you Phil, that is much more script friendly and less human<br>
intervention.<br>
Hope to make a complete script out of it soon enough.<br>
I am running commands on the netbook now - will know in a while.<br>
<br>
The build environment is Ubuntu 12.04.3 and it works 100% with<br>
linux-sunxi for Cubieboard2 A20 CPU. Results for trying to compile<br>
<a href="http://git.hands.com/linux.git" target="_blank">http://git.hands.com/linux.git</a> cloned yesterday are here:
</blockquote><div><br>I am really sorry for you struggling with this. I'll add few remarks. You do not need to clone all the time, just make sure your kernel tree is clean by issuing<br><br></div><div>make clean<br>
<br></div><div>You may also check with git to see if you changed something unintentionally<br><br>git status<br><br></div><div>The option -j3 is not general, 3 stands (as a rule of thumb) for the number_of_cpu_cores + 1, maybe your PC has more then 2 cores...<br>
<br></div><div>Also, what about kernel config? There is one at <a href="http://rhombus-tech.net/allwinner/a20/boot/">http://rhombus-tech.net/allwinner/a20/boot/</a> but you do not use it? Normally someone needs to issue make blah_defconfig or the like. Or the existing config could be copied to .config<br>
<br></div><div>cp eoma68-a20-config /path/to/kernel/dir/.config<br><br></div><div>I think that could probably solve your current issue. But as you I'm learning here, so warranty whatsoever. :)<br></div><div><br></div>
<div>Anyway, I encourage you and others here to switch as soon as possible to the sunxi-3.4 kernel supported by linux-sunxi community. It is very well supported and you can always find someone on the irc. Once you decide to give it a try just show up there for help!<br>
</div></div></div></div>