[Arm-netbook] next steps help request

joem joem at martindale-electric.co.uk
Wed Sep 4 11:17:09 BST 2013


On Tue, 2013-09-03 at 23:01 +0000, joem wrote:
> > "modify arch/arm/mach-sun7i/pm/Makefile to use $(CROSS_COMPILE)gcc-4.4"
> 
>  if you do not have arm-linux-gnueabihf-gcc-4.7 installed then you do
> not have to do that.
> 
> ====
> 
> Good, so I want take the next step: 
> deb http://ftp.uk.debian.org/emdebian/toolchains squeeze main
> deb http://ftp.uk.debian.org/emdebian/toolchains testing main
> 
> trouble is under ubuntu it has its own scheme for emdebian.
> 
> Ignoring that for now,  and doing this:
> 
> make -j3 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- KDIR=~/src/a10/linux-sunxi/ -C arch/arm/mach-sun7i/pm/standby all
> 
> failed miserably. 
> 
> The problem is CROSS_COMPILE=arm-linux-gnueabihf-
> where the parameter is reused and
> gets appended with gcc to arm-linux-gnueabihf-gcc, and of course
> it does not exist because in Ubuntu it is called arm-linux-gnueabihf-gcc-4.4
> 
> So I think I still need exact syntax of 
> "arch/arm/mach-sun7i/pm/Makefile to use $(CROSS_COMPILE)gcc-4.4" to get that corrected.
> 
> Anyway I symlinked arm-linux-gnueabihf-gcc to arm-linux-gnueabihf-gcc-4.4 and more progress,
> but now its looking for:
> 
> arm-linux-gnueabihf-gcc -I. -I/home/jm/src/a10/linux-sunxi//include -I/home/jm/src/a10/linux-sunxi//arch/arm/mach-sun7i/include .....
> 
> Obviously KDIR needs to be set correctly - so where do I get the sources or whatever
> that KDIR is supposed to point at? And is it A10 or A20?

Switched to other bits of work temporarily:

With instructions at http://rhombus-tech.net/allwinner/a20/boot/ for
compiling u-boot-sunxi

    git clone https://github.com/linux-sunxi/u-boot-sunxi.git
    cd u-boot-sunxi
    make CROSS_COMPILE=arm-linux-gnueabihf- EOMA68_A20_FEL

That worked with /usr/bin/arm-linux-gnueabihf-gcc sym linked to
arm-linux-gnueabihf-gcc-4.4  (Ubuntu 12.04.3)

[Spotted a potential bug in u-boot-sunxi/common/cmd_gpio.c line 30 need
to change ulong value; to ulong value=69; or something similar to
prevent uninitialised return value]



Going back to original problem...
Searching for linux-sunxi found it 
 -    git clone https://github.com/linux-sunxi/linux-sunxi.git


Then tried this again:
make -j3 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-
KDIR=~/code/linux-sunxi/ -C arch/arm/mach-sun7i/pm/standby all



I got this:


make: Entering directory
`/home/jm/code/linux/arch/arm/mach-sun7i/pm/standby'
rm -rf *.o ../*.o
arm-linux-gnueabihf-gcc -I. -I/home/jm/code/linux-sunxi//include
-I/home/jm/code/linux-sunxi//arch/arm/mach-sun7i/include  -g -c
-nostdlib -march=armv7-a -marm -D__STANDBY_MODULE__ -fno-unwind-tables
-fno-asynchronous-unwind-tables -mlittle-endian -O0
--min_array_alignment=4 --no_unaligned_access ./super/common.c
-o ./super/common.o
arm-linux-gnueabihf-gcc -I. -I/home/jm/code/linux-sunxi//include
-I/home/jm/code/linux-sunxi//arch/arm/mach-sun7i/include  -g -c
-nostdlib -march=armv7-a -marm -D__STANDBY_MODULE__ -fno-unwind-tables
-fno-asynchronous-unwind-tables -mlittle-endian -O0
--min_array_alignment=4 --no_unaligned_access ./super/common.c
-o ./super/common.o
arm-linux-gnueabihf-gcc -I. -I/home/jm/code/linux-sunxi//include
-I/home/jm/code/linux-sunxi//arch/arm/mach-sun7i/include  -g -c
-nostdlib -march=armv7-a -marm -D__STANDBY_MODULE__ -fno-unwind-tables
-fno-asynchronous-unwind-tables -mlittle-endian -O0
--min_array_alignment=4 --no_unaligned_access common.c           -o
common.o
cc1: error: unrecognized command line option "-fmin_array_alignment=4"
cc1: error: unrecognized command line option "-fno_unaligned_access"
make: *** [resume1] Error 1
make: *** Waiting for unfinished jobs....
cc1: error: unrecognized command line option "-fmin_array_alignment=4"
cc1: error: unrecognized command line option "-fno_unaligned_access"
make: *** [suspend] Error 1
cc1: error: unrecognized command line option "-fmin_array_alignment=4"
cc1: error: unrecognized command line option "-fno_unaligned_access"
make: *** [standby] Error 1
make: Leaving directory
`/home/jm/code/linux/arch/arm/mach-sun7i/pm/standby'



Not sure what cc1: error means.



More information about the arm-netbook mailing list