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

mo.ucina

mo.ucina at gmail.com
Fri Feb 26 10:27:47 UTC 2016


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 :

-rw-rw-r-- 1 user user    49332 Feb 26 07:27 
kernel-4.4.2-300.LR1.el7.centos.armv7hl.rpm
-rw-rw-r-- 1 user user 87721969 Feb 26 07:27 
kernel-4.4.2-300.LR1.el7.centos.src.rpm
-rw-rw-r-- 1 user user 18785384 Feb 26 07:29 
kernel-core-4.4.2-300.LR1.el7.centos.armv7hl.rpm
-rw-rw-r-- 1 user user 10452672 Feb 26 07:30 
kernel-devel-4.4.2-300.LR1.el7.centos.armv7hl.rpm
-rw-rw-r-- 1 user user  1012496 Feb 26 07:27 
kernel-headers-4.4.2-300.LR1.el7.centos.armv7hl.rpm
-rw-rw-r-- 1 user user 11844188 Feb 26 07:31 
kernel-modules-4.4.2-300.LR1.el7.centos.armv7hl.rpm
-rw-rw-r-- 1 user user   925980 Feb 26 07:31 
kernel-modules-extra-4.4.2-300.LR1.el7.centos.armv7hl.rpm
-rw-rw-r-- 1 user user   105452 Feb 26 07:27 
kernel-tools-4.4.2-300.LR1.el7.centos.armv7hl.rpm
-rw-rw-r-- 1 user user    65356 Feb 26 07:27 
kernel-tools-libs-4.4.2-300.LR1.el7.centos.armv7hl.rpm
-rw-rw-r-- 1 user user    52160 Feb 26 07:27 
kernel-tools-libs-devel-4.4.2-300.LR1.el7.centos.armv7hl.rpm

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 ?

Second observation , a one that is a bit of a concern is that , after 
installing the new  kernel I am missing bits :

user at bananapi /boot $ ls -l
total 43611
drwxr-xr-x. 5 root root     1024 Feb 25 22:21 
38f5ec9e217b471e8adee477d933f640
-rw-r--r--. 1 root root   171924 Nov 26 00:43 config-4.2.3-200.el7.armv7hl
drwxr-xr-x. 2 root root    15360 Dec  3 14:37 dtb-4.2.3-200.el7.armv7hl
drwxr-xr-x. 2 root root     1024 Dec  3 14:47 extlinux
drwxr-xr-x. 2 root root     1024 Jan  1  1970 grub
-rw-r--r--. 1 root root 34922581 Dec  3 14:46 
initramfs-4.2.3-200.el7.armv7hl.img
-rw-r--r--. 1 root root   592347 Dec  3 14:37 initrd-plymouth.img
drwxr-xr-x. 3 root root     1024 Dec  3 14:44 loader
drwx------. 2 root root    12288 Dec  3 14:31 lost+found
-rw-------. 1 root root  2879429 Nov 26 00:43 
System.map-4.2.3-200.el7.armv7hl
-rwxr-xr-x. 1 root root  5866104 Nov 26 00:43 vmlinuz-4.2.3-200.el7.armv7hl

I expected that I would be missing 'initramfs' as the install prog is 
still work-in-progress. And  I was prepared to create it with dracut . 
However I did not expect not to be missing all the other bits such as : 
config , dtb, system.map, vmlinuz . I did find my new kernel it was in 
that dir with a hex name :

user at bananapi /boot $ ls -l 38f5ec9e217b471e8adee477d933f640/*
38f5ec9e217b471e8adee477d933f640/0-rescue:
total 40652
-rw-r--r--. 1 root root 35427302 Dec  3 14:43 initrd
-rwxr-xr-x. 1 root root  6033128 Feb 25 22:26 linux

38f5ec9e217b471e8adee477d933f640/4.2.3-200.el7.armv7hl:
total 39995
-rw-r--r--. 1 root root 34923169 Dec  3 14:40 initrd
-rw-r--r--. 1 root root  5866104 Dec  3 14:44 linux

38f5ec9e217b471e8adee477d933f640/4.4.2-300.LR1.el7.centos.armv7hl:
total 41061
-rw-r--r--. 1 root root 35844934 Feb 25 22:24 initrd
-rw-r--r--. 1 root root  6033128 Feb 25 22:36 linux

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 .

Best Regards
Milorad

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





More information about the Arm-dev mailing list