Jump to content

Mainline u-boot w/ sunxi-3.4 kernel


Recommended Posts

Hi,

 

Anyone here ever tried to build a mainline uboot for sunxi-3.4 kernel.

 

As mentioned here v2015.10 support NAND spl.

https://linux-sunxi.org/Mainline_U-Boot#v2015.10

 

 

I'm in the first part of doing it, but unfortunately I'm always stuck with this error.

 

  OBJCOPY examples/standalone/hello_world.srec
  OBJCOPY examples/standalone/hello_world.bin
  LDS     u-boot.lds
  LD      u-boot
  DTC     arch/arm/dts/sun7i-a20-ainol-aw1.dtb
In file included from arch/arm/dts/sun7i-a20-ainol-aw1.dts:10:0:
arch/arm/dts/sun7i-a20.dtsi:47:54: fatal error: dt-bindings/interrupt-controller/arm-gic.h: No such file or directory
 #include <dt-bindings/interrupt-controller/arm-gic.h>
                                                      ^
compilation terminated.
make[2]: *** [arch/arm/dts/sun7i-a20-ainol-aw1.dtb] Error 1
make[1]: *** [arch-dtbs] Error 2
make: *** [dts/dt.dtb] Error 2
 

Maybe anyone here already try this, it can help a lot to speed-up the process.

 

Thanks

Link to comment
Share on other sites

Just an idea how to fix this. Perhaps (I haven't check the code) the device tree for sun7i-a20-ainol-aw1.dts is faulty - remove it from the arch/arm/dts/Makefile ... and try to compile again.

Link to comment
Share on other sites

Hi Igor,

 

That solves the problem. Then another error occurs.

 

OBJCOPY examples/standalone/hello_world.srec
OBJCOPY examples/standalone/hello_world.bin
LDS u-boot.lds
LD u-boot

Device Tree Source is not correctly specified.
Please define 'CONFIG_DEFAULT_DEVICE_TREE'
or build with 'DEVICE_TREE=' argument

make[1]: *** [arch/arm/dts/sun7i-a20-cubieboard2.dtb] Error 1
make: *** [dts/dt.dtb] Error 2

 

I apologize for this newbie question.

 

Thanks.

Link to comment
Share on other sites

Hi Igor,

 

Yes, I did. Exact sequence below.

root@ubuntu1404-VirtualBox:/home/ubuntu1404/Desktop/LITE/u-boot# make clean
root@ubuntu1404-VirtualBox:/home/ubuntu1404/Desktop/LITE/u-boot# make mrproper
root@ubuntu1404-VirtualBox:/home/ubuntu1404/Desktop/LITE/u-boot# make CROSS_COMPILE=arm-linux-gnueabihf- Cubieboard2_defconfig
root@ubuntu1404-VirtualBox:/home/ubuntu1404/Desktop/LITE/u-boot# make CROSS_COMPILE=arm-linux-gnueabihf-

I attached the  log file.

 

Thanks.

 

complete_logs.txt

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines