<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
Hi,<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<br>
<br>
I'm trying to build a linux image for a Kontron SMARC sAMX6i board. Using the <a href="https://github.com/Linutronix/elbe/wiki/Tutorial:-rootfs-with-custom-debian-packages" style="" id="LPNoLP509125">
Tutorial</a> in the wiki section, I end up with two<i><b><u> </u></b></i><span><i><b><u>fatal error: linux/compiler-gcc6.h: No such file or directory</u></b></i></span> errors. I'll describe my procedure below which I tried to follow along with the tutorial.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
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.<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<ul>
<li>Did a 'elbe initvm create'. It ran successfully.<br>
</li><li>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 />
.</li><li>Did 'elbe pbuilder create --xmlfile tutorial.xml --writeproject tutorial.prj' . It ran succcessfully.<br>
</li><li>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:</li></ul>
<ol>
<ol style="list-style: outside none lower-alpha;">
<li>Version: 1.0 (No change)</li><li>Name: elbe (No change, but earlier attempts showed Capital letters are not allowed, or maybe a similar issue)</li><li>Release: Stable</li><li>Arch: Armel</li><li>Format: Native</li><li>Mail: max@mustermann.org (Tried with my own too)</li><li>Maintainer: Max Mustermann (Tried with my own too)</li><li>Load Address: 0x10800000 (As required for my board)</li><li>defconfig: samx6i_defconfig (as added in the arch/arm/configs/ folder)<br>
</li><li>Image Format: Ui (I'm guessing this is for uImage, as required for my board.)<br>
</li><li>Cross Compiler: arm-linux-gnueabi- (Since the board is armel)</li><li>Kernel Version: 3.14.28 (As my kernel source version is)<br>
</li></ol>
</ol>
<ul>
<li>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.<br>
</li><li>Did 'elbe pbuilder build --project $PROJECT' (PROJECT was assigned as per the tutorial.prj in second step.)</li><li>After a long wait, I get Pdeb finished with Error Info.</li></ul>
<div>I'm attaching the tutorial.xml file, the installkernel file, as well as the terminal log.
<br>
Can you let me know what I've missed or done wrong in the process?<br>
<br>
Thanks in advance.<br>
<br>
Best Regards,<br>
Sagar Shubham.<br>
</div>
</div>
</body>
</html>