Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make_deb.sh generates packages with wrong architecture #28

Open
QuickJack opened this issue May 2, 2016 · 5 comments
Open

make_deb.sh generates packages with wrong architecture #28

QuickJack opened this issue May 2, 2016 · 5 comments

Comments

@QuickJack
Copy link

I want to create a kernel headers package that allows me to cross compile out of tree kernel modules. After cloning the repo on an amd64 platform and calling make_deb.sh a deb package like linux-headers-4.1.18-bone-rt-r20_1cross_armhf.deb is generated. This package includes binaries in the scripts subfolder that are indeed built for the amd64 platform. However the Architecture property of the generated Debian package is armhf. As a result, the package cannot be installed/ used.

It would be nice to have the script fixed or any alternative method to generate a kernel headers package that allows the above mentioned cross compilation procedure.

@RobertCNelson
Copy link
Owner

@QuickJack patches welcome, cross building via the "builddeb" script which "make_deb.sh" utilizes has been broken forever.

https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/scripts/package/builddeb

It's never worked on x86 when building an armhf deb header package, i wouldn't expect it to work on arm64.

Regards,

@mhaberler
Copy link

we jumped the gun by building on amd64 in a docker container, using qemu - so no arm buildslave needed

takes about 9mins on a AMD Opteron 6320 so acceptable

see .jenkins directory here: https://github.com/mhaberler/linux-xlnx/tree/zynq_4_4_rt-work

Gemi @kinsamanka came up with the method: https://github.com/kinsamanka/rpi_linux

@RobertCNelson
Copy link
Owner

@QuickJack @mhaberler

Does this fix cross for you?

https://lkml.org/lkml/2016/3/31/720

Regards,

@QuickJack
Copy link
Author

QuickJack commented May 19, 2016

I have also started using Docker. My base is socialdefect/raspbian-jessie-core. I am now able to compile the kernel module as well as the dtbo in one environment. It is a bit slow but it seems to work perfectly.

This procedure allows me to use the kernel headers from the rcn-ee.com repo which simplifies compiling out of tree kernel modules dramatically.

@mhaberler
Copy link

@RobertCNelson I did not try - using docker containers for all builds including kernels these days, for instance https://jenkins.machinekit.io/view/machinekit/job/socfpga-kernel-4.1-ltsi-rt/

even if they fixed the scripts arch issue, the debian numbering is still horrible and needs manually patching of scripts/package or so

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants