Please select To the mobile version | Continue to access the desktop computer version

OrangePi

 Login            
 Register            
Search
Hot search: orangepi
123Next
Return to list New
View: 15569|Reply: 21

[TUTO] How to compile Kernel & Headers (from banana pi github)

[Copy link]

5

Threads

37

Posts

136

Credits

Registered member

Rank: 2

Credits
136
Post time 2015-1-25 17:30:52 | Show all posts |Read mode
Edited by Tankafaire at 2015-1-25 16:15

Hi all,
I have compiled a new kernel for Orange Pi with success, here is the tutorial step by step:

  1. sudo apt-get install git build-essential libncurses5-dev u-boot-tools uboot-mkimage
  2. git clone https://github.com/silentcreek/bananapi-kernel --depth 1
  3. cd bananapi-kernel
  4. make sun7i_defconfig
  5. make menuconfig                      # exit & save     
  6. make -j2 uImage modules          # ~ 2.5h working
  7. sudo make modules_install
  8. sudo mount /dev/mmcblk0p1 /boot
  9. sudo mv /boot/uImage /boot/uImage_old  # save precedent uImage, can be restored
  10. sudo cp arch/arm/boot/uImage /boot
  11. sudo reboot
Copy the Code

http://forum.lemaker.org/thread-2657-1-1-howto_build_and_install_a_modified_linux_kernel_directly_on_bananian.html

1

Threads

25

Posts

212

Credits

Intermediate member

Rank: 3Rank: 3

Credits
212
Post time 2015-1-25 19:22:44 | Show all posts
This is build guide on board. We can cross compile kernel on x86 machine. It'll be faster.

5

Threads

37

Posts

136

Credits

Registered member

Rank: 2

Credits
136
 Author| Post time 2015-1-25 19:32:34 | Show all posts
Yes, I have another tutorial to share, but I want to try it before !
Post time 2015-1-25 21:11:59 | Show all posts
Tankafaire,Thank you.

6

Threads

402

Posts

2701

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
2701
Post time 2015-1-25 21:56:17 | Show all posts
Edited by igorpec at 2015-1-25 15:00

Here is my script:
https://github.com/igorpecovnik/BananaPI-Debian

Maybe a bit more complex but it has more value and advantages then others.

It download sources, compile and creates .deb packed kernel + headers + libc. You can boot it also with mainline u-boot and you can build your own modules on the system.

If you run it as nonroot, you can compile kernel+uboot (ignore a lot of errors), with root (no errors) you get out an raw boot ready image with desired system (wheezy, jessie, ubuntu trusty).

Note that kernel is gzip compressed which is not default for old / standard installations. You can either convert it to uImage or use new bootloader with proper u-boot scripts.

1

Threads

25

Posts

212

Credits

Intermediate member

Rank: 3Rank: 3

Credits
212
Post time 2015-1-26 01:36:27 | Show all posts
I'm think banana pi patches should be merged into linux-sunxi sources. This making unnecessary mess with support for allwinner platforms.

11

Threads

59

Posts

326

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
326
Post time 2015-1-26 02:26:49 | Show all posts
Which kernel version did you recompile? 3.4 ? Or a newer one (Fedora gave me 3.17)
You can also reach me on freenode irc, channel #orangepi username eFfeM

1

Threads

25

Posts

212

Credits

Intermediate member

Rank: 3Rank: 3

Credits
212
Post time 2015-1-26 02:43:29 | Show all posts
The 3.4 kernel from linux-sunxi supports video acceleration, and more then mainline kernels: http://linux-sunxi.org/Linux_mainlining_effort.

6

Threads

402

Posts

2701

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
2701
Post time 2015-1-26 05:13:34 | Show all posts
ryba84 replied at 2015-1-25 18:36
I'm think banana pi patches should be merged into linux-sunxi sources. This making unnecessary mess  ...

This should be done differently. I think (not 100% sure) this patch breaks Cubietruck GMAC so you can't just merge ... maybe this is fixed in u-boot.

5

Threads

37

Posts

136

Credits

Registered member

Rank: 2

Credits
136
 Author| Post time 2015-1-26 06:08:06 | Show all posts
For the Mali driver:
Is this tutorial http://forum.lemaker.org/thread-5757-1-1-installing_mali_r3p2_kernel_drivers_into_lemaker_kernel_3_4.html
can be adapted for 3.4.104+ (or 3.4.105+), or is it just for 3.4.103+ ? or just for banana ?

In fact I tried a little and it fails for 3.4.105+ (don't remember the exact error, but "space blank" I think)
You have to log in before you can reply Login | Register

Points Rules

Archiver|Mobile edition|Darkroom|OrangePi En ( 粤ICP备14086627号-2

2017-11-22 17:07 GMT+8 , Processed in 0.036293 second(s), 22 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list