hanni76 Posted July 5, 2017 Posted July 5, 2017 Hello guys, I am trying to build another kernel within your framework. Here is what I did: 1) copied sun8i.conf to userpaches/sources and modified kernel source url and branch 2) copied patches to userpatches/kernel/sun8i-dev and removed those that made compilation fail I was able to compile u-boot and kernel, but in the end I am getting the following issue: dpkg-deb: error: failed to read archive '/home/sergey/Projects/orangepi/armbian/output/debs/linux-image-dev-sun8i_5.32_armhf.deb': No such file or directory [ o.k. ] Kernel build done [ @host ] [ o.k. ] Target directory [ /home/sergey/Projects/orangepi/armbian/output/debs/ ] [ o.k. ] File name [ linux-image-dev-sun8i_5.32_armhf.deb ] [ o.k. ] Runtime [ 3 min ] The file 'debs/linux-image-dev-sun8i_5.32_armhf.deb' is absent but there is a file named 'linux-image-4.12.0-next-20170621-sun8i_5.32_armhf.deb'. Logs attached. What extra changes should I make in build scripts to make it work ? Thanks a lot. logs-05_07_2017-12_19_11.tgz
Igor Posted July 5, 2017 Posted July 5, 2017 You need packaging patch for proper deb packaging. Wrote on mobile
hanni76 Posted July 5, 2017 Author Posted July 5, 2017 Igor, thank you for reply. Can you give more details, please? I see that packaging is done in common.sh in the following code: # produce deb packages: image, headers, firmware, dtb eval CCACHE_BASEDIR="$(pwd)" ${toolchain:+env PATH=$toolchain:$PATH} \ 'make -j1 $kernel_packing KDEB_PKGVERSION=$REVISION LOCALVERSION="-"$LINUXFAMILY \ KBUILD_DEBARCH=$ARCH ARCH=$ARCHITECTURE DEBFULLNAME="$MAINTAINER" DEBEMAIL="$MAINTAINERMAIL" CROSS_COMPILE="$CCACHE $KERNEL_COMPILER" 2>&1' \ ${PROGRESS_LOG_TO_FILE:+' | tee -a $DEST/debug/compilation.log'} \ ${OUTPUT_DIALOG:+' | dialog --backtitle "$backtitle" --progressbox "Creating kernel packages..." $TTY_Y $TTY_X'} \ ${OUTPUT_VERYSILENT:+' >/dev/null 2>/dev/null'} I am not sure what I should tweak here....
Igor Posted July 5, 2017 Posted July 5, 2017 You need to include at least this patch and fix it if it has some problems: https://github.com/armbian/build/blob/master/patch/kernel/sun8i-dev/packaging-4.x-DEV-with-postinstall-scripts.patch from here: https://github.com/armbian/build/tree/master/patch/kernel/sun8i-dev
hanni76 Posted July 5, 2017 Author Posted July 5, 2017 Thank you! It worked like a charm! I have zeroed this file because I thought it would be useless.)
hanni76 Posted July 5, 2017 Author Posted July 5, 2017 Hey Igor build went fine BUT... I am unexpectedly missing /boot/overlay folder in the resulting image.. Where should I look at ? Seems like it is handled by add-overlay-compilation-support.patch ? Thanks
Igor Posted July 5, 2017 Posted July 5, 2017 1 hour ago, ssuloev said: Hey Igor build went fine BUT... I am unexpectedly missing /boot/overlay folder in the resulting image.. Where should I look at ? Seems like it is handled by add-overlay-compilation-support.patch ? Thanks Well, if you removed all patches, you can't expect the same functionality There is a lot of added value in there, more than what 4.12 brings. Some patches will need adjustment if you go up and down on kernel and we do that each time when version is jumped. I am afraid no other way
hanni76 Posted July 5, 2017 Author Posted July 5, 2017 Yes, you are right.. I had to manually adjust 'add-overlay-compilation-support.patch'. Now it works 1
martinayotte Posted July 6, 2017 Posted July 6, 2017 17 hours ago, ssuloev said: I had to manually adjust 'add-overlay-compilation-support.patch'. Now it works Did you had a lot of adjustments ? Maybe you work can save us some time when we will switch over 4.12 ...
hanni76 Posted July 9, 2017 Author Posted July 9, 2017 Not too much.. I had to disable a few patches (you will easily find them by monitoring compilation errors), and I also had to change 2 required patches. Both files are attached. My changes are specific to sun8i-dev. add-overlay-compilation-support.patch packaging-4.x-DEV-with-postinstall-scripts.patch
Recommended Posts