Bananian

Howto: Build and install a modified linux kernel directly on Bananian

33 24829
tkaiser  
Mr_Blonde replied at Thu Feb 5, 2015 02:45
I went down the road to compile the lastest kernel as Igor's doesn't include the ap6210 driver. When ...

Starting with Igor's 2.1 mainline image it should simply be possible to just compile this module from within the running system. Have you tried that already?

tkaiser  
Edited by tkaiser at Thu Feb 5, 2015 04:47
lmsilva replied at Thu Feb 5, 2015 02:33
Trust me, I do NOT want to compile the kernel unless absolutely necessary... )


Me neither.

But since I'm interested to use Banana Pi and similar boards combined with SATA disk as a cheap backup target for other machines I have a great interest in

  • ensuring reliable operation at the maximum possible speed (tweaking configs, especially cpufreq stuff that automatically involves research about necessary passive cooling)
  • using btrfs with LZO (checksums and hassle-free snapshots are great for data integrity, LZO compression great to increase I/O throughput)

I'm somewhat forced to play with this stuff (cpufreq still not adjustable from within mainline kernel so there's the need to tweak u-boot settings prior to compilation, and since btrfs heavily relies on the kernel version and features -- for example enhanced integrity checks -- there's also the need to build the kernel manually).

In the past always Bananian was faster in my use case scenarios. I compared default settings and kernel config in detail between Bananian's and Igor's image but still found not all the necessary config details. This is another reason I play early adopter right now: To spend some time and research on what's necessary to get mainline as stable and fast on el cheapo A20 boards as with 3.4.x today.

The situation with such a slow SMP setup is challenging and very small tweaks that might have no measurable effect on a x86 CPU at all will have great impact on A20

tkaiser replied at Thu Feb 5, 2015 04:18
Starting with Igor's 2.1 mainline image it should simply be possible to just compile this module f ...

I did, but ran into another problem. :-(
(I opened a thread about it under troubleshooting)

al_si  
  1. mount /dev/mmcblk0p1 /boot
Copy the Code
is causing following error on my banana pi:
  1. mount: /dev/mmcblk0p1 already mounted or /boot busy
  2. mount: according to mtab, /dev/mmcblk0p1 is already mounted on /boot
Copy the Code
what to do?

Julius  
Bananian replied at Fri Oct 24, 2014 11:00
cross-compiling on my i5 processor is finished within some minutes...

Hi,

I compiled too the 3.19.3 kernel, but somehow only one of the cpu core is online. :-(
Do you have any idea what went wrong?

Thanks

igorpec  
Edited by igorpec at Tue Apr 21, 2015 18:47
Julius replied at Tue Apr 21, 2015 13:57
Hi,

I compiled too the 3.19.3 kernel, but somehow only one of the cpu core is online. :-(


Yes, you have to switch boot loader.
  1. wget http://mirror.igorpecovnik.com/u-boot/linux-u-boot-3.19.3-bananapi_2.6_armhf.deb
  2. dpkg -i linux-u-boot-3.19.3-bananapi_2.6_armhf.deb
  3. reboot

Copy the Code

Julius  
igorpec replied at Tue Apr 21, 2015 11:44
Yes, you have to switch boot loader.

Thanks Igor for you quick reply!

Unfortunatelly I'm running a different distro (Arch), but based on your u-boot source I could compile a working u-boot and Arch linux image.

Regards

Edited by samos123 at Wed Sep 16, 2015 07:50

Julias could you share your image? I'm too noob to do what you i've done. I have a running Archlinux image for banana pro but would like to upgrade my kernel. Current kernel is 3.4

schasch  
Hello

tried to build an own kernel (with 15.08 on R1)  like explained in http://www.lemaker.org/forum.php ... 57&fromuid=4122
...but "make -j2 uImage modules" fails with:
---------------------------------------------------------------
...
..
.
/usr/include/elf.h:500:1: error: stray ‘\226’ in program
/usr/include/elf.h:500:1: error: stray ‘\321’ in program
/usr/include/elf.h:500:1: error: stray ‘\201’ in program
/usr/include/elf.h:500:1: error: stray ‘\320’ in program
/usr/include/elf.h:500:1: error: stray ‘\242’ in program
/usr/include/elf.h:500:1: error: stray ‘\323’ in program
/usr/include/elf.h:500:1: error: stray ‘\231’ in program
/usr/include/elf.h:500:1: error: stray ‘\320’ in program
/usr/include/elf.h:500:1: error: stray ‘\266’ in program
scripts/Makefile.host:118: recipe for target 'scripts/mod/mk_elfconfig' failed
make[2]: *** [scripts/mod/mk_elfconfig] Error 1
scripts/Makefile.build:443: recipe for target 'scripts/mod' failed
make[1]: *** [scripts/mod] Error 2
Makefile:506: recipe for target 'scripts' failed
make: *** [scripts] Error 2
root@R1:/run/sda1/1508_my-kernel2/linux-bananapi#

Any ideas?
Other way/procedure?

regards

schasch  
Ok...replaced the /usr/include/elf.h and now it#s working on bananian 15.08

You have to log in before you can reply Login | Sign Up

Points Rules