Building a variant of the linux-image archive used by the image-builder project

60 views
Skip to first unread message

Jon Seymour

unread,
Feb 15, 2017, 10:07:09 PM2/15/17
to BeagleBoard
I have been trying to build a linux-image debian archive from the tip of the 4.4 branch of https://github.com/beagleboard/linux.

I wasn't able to find a script which seemed to do this, so I ran a command like this in a chroot jail on an arm build host:

     make-kpkg --initrd --revision=acme kernel_image

I used the a kernel config from 4.4.26-ti-r59 that had been edited with make oldconfig to add one additional module.

The command ran without error and produced a package successfully, but the generated archive was missing all the expected .dtb files in /boot/dtbs/{version}. These files ARE in the version of the linux-image archive that the image builder uses to build new BeagleBone jessie images.

I checked the man pages for make-kpkg and kernel-package to see if there were any options I needed to specify to include the device tree binaries but I didn't see any.

I also tried running build_deb_in_arm_chroot.sh but this doesn't seem to produce a debian archive.

Is the script that builds the linux-image debian archive used by the image-builder available somewhere? 

jon.

Robert Nelson

unread,
Feb 15, 2017, 11:23:01 PM2/15/17
to Beagle Board, jon.s...@gmail.com
use "make deb-pkg"....

For, 4.4.26-ti-r59 would be:

fakeroot make -j5 ARCH=arm LOCALVERSION=-ti-r59 CROSS_COMPILE=
KDEB_PKGVERSION=1jessie KDEB_SOURCENAME=linux-upstream
KBUILD_DEBARCH=armhf DEBEMAIL=robert...@gmail.com
DEBFULLNAME=rcn-ee deb-pkg

replace, DEBEMAIL, DEBFULLNAME, and KDEB_PKGVERSION with your own versions..

Regards,

--
Robert Nelson
https://rcn-ee.com/

Jon Seymour

unread,
Feb 20, 2017, 6:16:57 PM2/20/17
to BeagleBoard, jon.s...@gmail.com


On Thursday, 16 February 2017 15:23:01 UTC+11, RobertCNelson wrote:
On Wed, Feb 15, 2017 at 9:07 PM, Jon Seymour <jon.s...@gmail.com> wrote:
> I have been trying to build a linux-image debian archive from the tip of the
> 4.4 branch of https://github.com/beagleboard/linux.
...


use "make deb-pkg"....

For, 4.4.26-ti-r59 would be:

fakeroot make -j5 ARCH=arm  LOCALVERSION=-ti-r59 CROSS_COMPILE=
KDEB_PKGVERSION=1jessie KDEB_SOURCENAME=linux-upstream
KBUILD_DEBARCH=armhf DEBEMAIL=robert...@gmail.com
DEBFULLNAME=rcn-ee deb-pkg

replace, DEBEMAIL, DEBFULLNAME, and KDEB_PKGVERSION with your own versions..

Robert,

Thanks for your reply - that did what I expected it t do.

jon.
Reply all
Reply to author
Forward
0 new messages