<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 id="divtagdefaultwrapper" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri,Arial,Helvetica,sans-serif,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols;" dir="ltr">
<p>Hi Paolo / Oliver,</p>
<p><br>
</p>
<p>Thank you for your email.</p>
<p><br>
</p>
<p></p>
<div>> On Wed, Feb 22, 2017 at 10:19:25AM +0100, Oliver Grawert wrote:<br>
> > > The AppArmor patches that we ported from the <br>
> > > http://kernel.ubuntu.com/git/ppisati/ubuntu-vivid.git/tree/arch/arm/c<br>
> > > onfigs/snappy?h=snappy_v3.10<br>
> > > <br>
> > > are for the linux kernel 3.10.<br>
> > > <br>
> > > But the kernel that we are referring to is from 96boards - linux<br>
> > > kernel 4.4.<br>
> > <br>
> > this is definitely wrong, for 4.4 kernels you indeed need to use a 4.4<br>
> > patch set, another thing for paolo to answer (i'm not even sure you<br>
> > need any patches at all on a 4.4 kernel, all bits might be in-tree<br>
> > already and just some config options might be enough)...<br>
> <br>
> Unfortunately he is not using our Xenial kernel, so he still needs some patches<br>
> for AA - here's a updated delta of patches on top of stable/linux-4.4.y:<br>
> <br>
> https://github.com/piso77/sample-kernels/commits/stable-4.4.y<br>
> <br>
<div>We downloaded the kernel source from: <span><a href="https://github.com/piso77/sample-kernels.git" class="OWAAutoLink">https://github.com/piso77/sample-kernels.git</a><br>
<br>
Checked out the "<span>stable-4.4.y</span>" branch. The kernel version is 4.4.50 <br>
(Blurry Fish Butt).<br>
<br>
This kernel has all the latest patches that you have mentioned.<br>
<br>
So, we just ran the below commands to merge our defconfig with snappy,<br>
and distro.config:<br>
<br>
<span>ARCH=arm64 ./scripts/kconfig/merge_config.sh arch/arm64/configs/defconfig kernel/configs/distro.config</span><br>
<br>
<div>cp .config arch/arm64/configs/defconfig<br>
<br>
ARCH=arm64 ./scripts/kconfig/merge_config.sh arch/arm64/configs/defconfig kernel/configs/snappy/*.config<br>
</div>
<br>
<span>cp .config arch/arm64/configs/defconfig</span><br>
<br>
</span>Then checked in the code.<br>
<br>
Our snapcraft.yaml is at: <a href="http://pastebin.com/Na76t2ks" class="OWAAutoLink">
http://pastebin.com/Na76t2ks</a><br>
<br>
<a href="http://pastebin.com/Na76t2ks" class="OWAAutoLink"></a>We are able to build the kernel snap successfully. Build
<br>
logs at: <a href="http://pastebin.com/fphxyh46" class="OWAAutoLink">http://pastebin.com/fphxyh46</a><br>
<br>
We are able to build the ubuntu os snap successfully by using the <br>
kernel snap from your kernel and gadget snap from the older source <br>
that we had got.<br>
<br>
But when we boot the kernel, we are getting stuck in kernel boot. It <br>
seems the kernel is not getting the initrd. The bootlogs are <br>
at: <a href="http://pastebin.com/eF2sCiyJ" class="OWAAutoLink">http://pastebin.com/eF2sCiyJ</a><br>
<br>
Can you please let us know if we are missing something ?</div>
<br>
Also, the dts files are different as compared to the 4.4.23 kernel source.<br>
So is there some work ongoing. Because the prebuilt binaries has already <br>
SMP booting enabled, while the current latest kernel version has only a <br>
primary core booting.<br>
<br>
> depending of the 4.4.x revision you are using, if you apply all the patches<br>
> above the "Linux 4.4.50" commit, you will  get all you need.<br>
> </div>
Are we missing any patches that you are referring to as we have <br>
pulled the latest kernel ?<br>
<br>
One more observation:<br>
We are using the below command to build the kernel using snapcraft.yaml:<br>
<div>  sudo snapcraft --target-arch arm64 snap<br>
<br>
So, if we want to do a incremental build for the kernel, how can we achieve that ?<br>
<br>
Thanks,<br>
Sunny<br>
</div>
<br>
<a href="http://pastebin.com/eF2sCiyJ" class="OWAAutoLink"></a>
<p></p>
</div>
************************************************************************************************************************************************************* eInfochips Business Disclaimer: This e-mail message and all attachments transmitted with it are intended
 solely for the use of the addressee and may contain legally privileged and confidential information. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you
 are hereby notified that any dissemination, distribution, copying, or other use of this message or its attachments is strictly prohibited. If you have received this message in error, please notify the sender immediately by replying to this message and please
 delete it from your computer. Any views expressed in this message are those of the individual sender unless otherwise stated. Company has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused
 by any virus transmitted by this email. *************************************************************************************************************************************************************
</body>
</html>