Jump to content


Photo

kernel compilation error


  • Please log in to reply
2 replies to this topic

#1 jim

jim

    Advanced Member

  • Administrators
  • 3,385 posts

Posted 12 February 2015 - 09:30 PM

Hi Guys
I need to compile the pcduino kernel source code and burn it on board.

I was able to download the source code as advised and compile it too, 
i get a pcduino_a10_hwpack_20130729.tar.xz but fail while trying to achive a livesuit,
below is the output.

make[1]: Leaving directory `/usr/src/kernels/pcduino/kernel/linux-sunxi'
cd /usr/src/kernels/pcduino/kernel/build/sun4i_defconfig-linux && arm-linux-gnueabihf-objcopy -R .note.gnu.build-id -S -O binary vmlinux bImage
scripts/mk_hwpack.sh /usr/src/kernels/pcduino/kernel/output/pcduino_a10_hwpack_20130729.tar.xz
Debian/Ubuntu hwpack
Done.
scripts/mk_livesuit_img.sh -R /usr/src/kernels/pcduino/kernel/rootfs.img
!!!Packing!!!\n
Make sys configs: /usr/src/kernels/pcduino/kernel/allwinner-tools/livesuit/default/sys_config_linux.fex
scripts/mk_livesuit_img.sh: line 112: /usr/src/kernels/pcduino/kernel/allwinner-tools/bins/script: cannot execute binary file
make: *** [livesuit] Error 126


Thanks
Benny.C


  • ADalCoolve likes this

#2 jim

jim

    Advanced Member

  • Administrators
  • 3,385 posts

Posted 12 February 2015 - 09:30 PM

Please refer to http://pcduino.com/f...msg4864#msg4864

Code: [Select]

Some programs of the pack tool are 64bit, and there are close sourced by chip vendor.
So you can not make livesuit image on 32-bit host, but compile kernel should have no problem.



#3 jim

jim

    Advanced Member

  • Administrators
  • 3,385 posts

Posted 12 February 2015 - 09:31 PM

I solved the livesuit generation problem in a same Linux version with this:
 

Code: [Select]

apt-get -y install lib32stdc++6

Hope it helps!






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users