phintegrator Posted December 16, 2015 Share Posted December 16, 2015 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 More sharing options...
tkaiser Posted December 16, 2015 Share Posted December 16, 2015 FYI: https://github.com/igorpecovnik/lib/commit/06779fdfeebedd3d4b7b35334b2a209166972de6 Link to comment Share on other sites More sharing options...
phintegrator Posted December 17, 2015 Author Share Posted December 17, 2015 Hi Tkaiser, Thanks. This is a good start. But right now what Im trying to create is based mainly from sunxi howto. Regards. Link to comment Share on other sites More sharing options...
Igor Posted December 17, 2015 Share Posted December 17, 2015 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 More sharing options...
phintegrator Posted December 17, 2015 Author Share Posted December 17, 2015 Hi Igor, That solves the problem. Then another error occurs. OBJCOPY examples/standalone/hello_world.srecOBJCOPY examples/standalone/hello_world.binLDS u-boot.ldsLD u-bootDevice Tree Source is not correctly specified.Please define 'CONFIG_DEFAULT_DEVICE_TREE'or build with 'DEVICE_TREE=' argumentmake[1]: *** [arch/arm/dts/sun7i-a20-cubieboard2.dtb] Error 1make: *** [dts/dt.dtb] Error 2 I apologize for this newbie question. Thanks. Link to comment Share on other sites More sharing options...
Igor Posted December 17, 2015 Share Posted December 17, 2015 Have you made a configuration prior to compiling? make Cubieboard2_defconfig make Link to comment Share on other sites More sharing options...
phintegrator Posted December 17, 2015 Author Share Posted December 17, 2015 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 More sharing options...
Recommended Posts