[elbe-users] Missing gcc header with custom kernel source
Sagar Shubham
Sagar.Shubham at qrtech.se
Wed May 6 16:58:29 CEST 2020
Hi,
I'm trying to build a linux image for a Kontron SMARC sAMX6i board. Using the Tutorial<https://github.com/Linutronix/elbe/wiki/Tutorial:-rootfs-with-custom-debian-packages> in the wiki section, I end up with two fatal error: linux/compiler-gcc6.h: No such file or directory errors. I'll describe my procedure below which I tried to follow along with the tutorial.
0.0 I'm running the system inside a lxc container, with Debian Stretch as the operating system. The host operating system is Ubuntu Bionic Beaver on amd64 machine. kvm was added to the container, and user is part of kvm, libvirt, and libvirt-qemu groups.
* Did a 'elbe initvm create'. It ran successfully.
* Instead of /tmp, I build in a separate /Builder directory, where I add the edited tutorial.xml (attached in the bottom). In that file, I had to change the mirror tag to suite for stretch as well as change the <norecommend /> tag to <install-recommends /> .
* Did 'elbe pbuilder create --xmlfile tutorial.xml --writeproject tutorial.prj' . It ran succcessfully.
* The Linux Kernel is a special one; such that I got it from the working Yocto Build of our code base (I've built a Buildroot based system for the same hardware using the same kernel, so I can be sure it works). Thus it is pre-patched with the patches for our board, as well as comes with a defconfig, which I added as samx6i_defconfig in the arch/arm/configs/ folder. With 'elbe debianize' , I added the following terms:
* Version: 1.0 (No change)
* Name: elbe (No change, but earlier attempts showed Capital letters are not allowed, or maybe a similar issue)
* Release: Stable
* Arch: Armel
* Format: Native
* Mail: max at mustermann.org (Tried with my own too)
* Maintainer: Max Mustermann (Tried with my own too)
* Load Address: 0x10800000 (As required for my board)
* defconfig: samx6i_defconfig (as added in the arch/arm/configs/ folder)
* Image Format: Ui (I'm guessing this is for uImage, as required for my board.)
* Cross Compiler: arm-linux-gnueabi- (Since the board is armel)
* Kernel Version: 3.14.28 (As my kernel source version is)
* For the patch mentioned in the tutorial, presuming it was only for jessie, I still added the command to execute in the b/arch/arm/boot/install.sh file. Also, I added an installkernel file in the current folder with right permissions and script as mentioned in the patch file. The patch searches for elbe_installkernel and adds the same file name to the kernel source directory, but the tutorial says to edit installkernel file. I added them both in the boot/install.sh and in the kernel source directory as installkernel to stay consistent with the tutorial.
* Did 'elbe pbuilder build --project $PROJECT' (PROJECT was assigned as per the tutorial.prj in second step.)
* After a long wait, I get Pdeb finished with Error Info.
I'm attaching the tutorial.xml file, the installkernel file, as well as the terminal log.
Can you let me know what I've missed or done wrong in the process?
Thanks in advance.
Best Regards,
Sagar Shubham.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linutronix.de/pipermail/elbe-users/attachments/20200506/98936477/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: installkernel
Type: application/octet-stream
Size: 2671 bytes
Desc: installkernel
URL: <http://lists.linutronix.de/pipermail/elbe-users/attachments/20200506/98936477/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: terminal.log
Type: text/x-log
Size: 35714 bytes
Desc: terminal.log
URL: <http://lists.linutronix.de/pipermail/elbe-users/attachments/20200506/98936477/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tutorial.xml
Type: text/xml
Size: 1455 bytes
Desc: tutorial.xml
URL: <http://lists.linutronix.de/pipermail/elbe-users/attachments/20200506/98936477/attachment-0001.xml>
More information about the elbe-users
mailing list