[Arm-dev] Kernel for BananaPi R1 (Lamobo R1)

Fri Feb 26 16:42:43 UTC 2016
Fabian Arrotin <arrfab at centos.org>

On 26/02/16 11:27, mo.ucina wrote:
> Hello Guys,
> 
> I have been compiling the Fedora 4.4.2-300 kernel for Centos , using the 
> new Centos image for the Banana-pi . I have used the Fedora src rpm and 
> then added the patch for the switch drivers specific for R1 (Lamobo R1) 
> , then compiled it within the Centos dev arm environment I have . I ran 
> into a couple of things : one cosmetic , the other one not so . Firstly 
> the cosmetic one is that my packages came out looking like this :
> 
<snip>
> 
> They all have "centos" as part of the name , which I did not expect . I 
> did not get that when compiling in Fedora. How do you remove that ?

It's actually coming from the default dist tag (in the
/etc/rpm/macros.dist) :
%dist .el7.centos

So when you build with mock , you can define yourself a specific dist
tag with "--define 'dist .el7' "

> 
> Second observation , a one that is a bit of a concern is that , after 
> installing the new  kernel I am missing bits :
> 
<snip>
> 
> So my question is how do I go from these 2 files above , to the 
> situation where I can boot into the new kernel 
> 4.4.2-300.LR1.el7.centos.armv7hl .

Well, still something we need to find a workaround for , and I wrote
initially a mail for the newer kernels to be tested :
https://lists.centos.org/pipermail/arm-dev/2016-January/001597.html
(see the part about generating initramfs with dracut and then editing
/boot/extlinux.conf)

> 
> Best Regards
> Milorad
> 
> PS Once I have verified that the switch driver works , I will post it here .
> 

Cool. I have also already rebuilt it (kernel-4.4.2-300.el7.armv7hl.rpm)
Are the patches under GPL licenses and somewhere to be seen ? If you
have to patch the Fedora kernel, that means that even Fedora doesn't
have it at the moment, so wondering why.

Thanks a lot for having a look at this ! I'm pretty sure that a lot of
people will find that useful

-- 
Fabian Arrotin
The CentOS Project | http://www.centos.org
gpg key: 56BEC54E | twitter: @arrfab

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: <http://lists.centos.org/pipermail/arm-dev/attachments/20160226/3a1cba7d/attachment-0006.sig>