0
hanni76

Build framework can't grab resulting deb packages

Recommended Posts

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

Share this post


Link to post
Share on other sites

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.... 

 

Share this post


Link to post
Share on other sites

Thank you! It worked like a charm! 

I have zeroed this file because I thought it would be useless.)

 

Share this post


Link to post
Share on other sites

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

 

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

Yes, you are right.. 

I had to manually adjust 'add-overlay-compilation-support.patch'. 

Now it works

Share this post


Link to post
Share on other sites
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 ...

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
0