mdbananapi Posted November 2, 2015 Share Posted November 2, 2015 Hi! I am trying to compile a kernel for my banana pi with different configuration but I get error saying that kernel was not built. I am using Ubuntu 14.04. Below are the steps I make: 1) create a compile.sh file with contents from http://forum.armbian.com/index.php/topic/6-sdk-how-to-compile-your-own-kernel-and-sd-image/ 2) Change KERNEL_CONFIGURE= to yes 3) run the file with sudo ./compile.sh and after this it starts to work, download files, I choose that I need to create banana pi image, then I choose mainline linux and after it finishes downloading, the menuconfig appears, I make one change [ mark "Device Drivers -> Multimedia support -> Media USB Adapters -> USB Video Class" ] 4) Then save and exit and the process is resumed, and I get 2 errors after this, while compiling, and the process is stopped. (in compile.sh, I tried SOURCE_COMPILE="yes" and SOURCE_COMPILE="no" but the still is the same error.) I have posted a screenshot of the compiling process. It is begins from the downloading of git archive and shows all process until the error of compilation. Link to the screenshot: http://postimg.org/image/n2i6z3ylj/ Link to comment Share on other sites More sharing options...
Stefan aka a1d3s Posted November 16, 2015 Share Posted November 16, 2015 got the same error if i use trusty, wheezy or jessie , always kernel break i switched my gcc to 4.8 and g++ 4.8. sunxi 3.4. kernel doesnt build with gcc-5/g++-5 this is known Link to comment Share on other sites More sharing options...
Igor Posted November 16, 2015 Share Posted November 16, 2015 1. Use a supplied call script: https://github.com/igorpecovnik/lib/blob/second/compile.sh It looks like kernel was not download properly. Manually remove sources/linux-mainline and rerun the script. 2. That's ok 3. Also. Link to comment Share on other sites More sharing options...
Stefan aka a1d3s Posted November 17, 2015 Share Posted November 17, 2015 i cloned the whole git from you again and cleard all dirs , now make: *** No rule to make target 'zImage'. Schluss. Link to comment Share on other sites More sharing options...
Igor Posted November 17, 2015 Share Posted November 17, 2015 O.K. I believe you It's working here but yes it's possible that something is not quite right. I am doing code inspection ... Link to comment Share on other sites More sharing options...
Igor Posted November 17, 2015 Share Posted November 17, 2015 I found a problem. Fix is coming within next commit. Link to comment Share on other sites More sharing options...
Recommended Posts