Kernel Compiling for Pi 2

Source: Internet
Author: User

https://www.raspberrypi.org/forums/viewtopic.php?f=66&t=101188&p=807579&hilit=cross+compile+pi+ source+code#p807579

By Seabug»sat, 4:20 Pmhi,

I am trying tocompile the Raspbian kernel for my new Pi 2 (I-Need support for Elo/egalax Touch).
I can ' t find any hints how to configure the kernel sources/makefile to generate me a kernel7.img
Anyone, who can help?

Thanks, Steffen
Posts: 7
Joined: Sat, 3:55 pm
By n1ks»sat, 10:06 pm Steffen,

Hi, when compiling-the rpi.v2 I used bcm2709_defconfig for the config instead of Bcmrpi_defconfig. Other than, the steps is the same as compiling for RPI.V1.
OnceCross compile is complete I copied arch/arm/boot/image (or zimage for a smaller kernel) to kernel7.img then Copie D it on to the SD card.

Hope that makes sense.

Nik
Posts: 9
Joined: Sat Jan, 8:51 pm
By Seabug»sun Feb, 1:25 pm Thanks, Nik.
I got the kernel compiled now (build on thePi 2 with the power of 4 processor kernels).
Steffen
Posts: 7
Joined: Sat, 3:55 pm
By Wyattwong»sun, 3:01 pm
Seabug wrote:Thanks, Nik.
I got the kernel compiled now (build in the Pi 2 with the power of 4 processor kernels).
Steffen


Can provide the steps tocompile the kernel and generate kernel.img and kernel7.img? Maybe a simple tutorial?

What ' s the difference between kernel.img and kernel7.img?
Posts:
Joined: Fri Mar, 3:18 pm
Location
: Hong Kong
By Seabug»mon Feb 12:27 pm actually I followed the instruction in the manual.
Since I was new to kernel compiling too, I made the assumption, the compiling generates both images, which is wrong.
The difference is made by the. config file, which determins the architecture. However, the make generates a compressed image and a uncompressed image.
To generate a Pi2 Image, you can use the bcm2709_defconfig instead of Bcmrpi_defconfig to prepare your. config file.
After I used Menuconfig to find and activate my modules.
It is quite time consuming, so I opened the. config with VI and just changed the entries for my ELO and Egalax touch.
The compiling worked fine. I had problems using the uncompressed kernel, but the zimage worked fine.
However, I still didn ' t get my touch-screens working, but this seems to bee a problem of the device aliases.
Still working on it.

Steffen
Posts: 7
Joined: Sat, 3:55 pm
By n1ks»tue Feb 12:40 pm If You run rpi-update you should find Egalax touchscreen module have now been added to the Kern El. (with tested on vanilla Raspbian install using RPI v.2)

cross-Compile is no longer required.

You'll however still need to calibrate the screen using Xinput_calibrator.

Nik
Posts: 9
Joined: Sat Jan, 8:51 pm
By Eriktheitalian»tue Feb, 12:47 pm I ' m curious about BFS CPU Scheduler patch. Is it effective or not? I cant using enough 中文版 language. My writings can be wrong grammer.$
"In Micro$oft we don't trust"

Posts: 355
Joined: Thu 1:03 pm
By Seabug»tue, 1:24 pm
N1ks wrote: If you run rpi-update should find Egalax touchscreen module have now been added to the kernel.
(with tested on vanilla Raspbian install using RPI v.2)
cross-Compile is no longer required.
You'll however still need to calibrate the screen using Xinput_calibrator.

Nik


Hi Nik,

I found some posts regarding the activated Egalax in the kernel config.
When I copied the sources, it is already activ in the config, but compiled kernels not yet available.
I am really looking forward to this. Anyway I still need ELO too, so I'll have the toCompile my own kernel.
Compiling with Make-j 6 is fast. I am to lazy to switch hard disks to Ubuntu in my PC and do not yet try tocross compile it under FreeBSD, even thought the ARM cross compiler is available under FreeBSD too. Maybe I'll give it a try in the next days.
Elo/penmount and Egal touch screens is quite cheap now and I see many pi projects going on WI Th it.
I actually plan to replace a arm-linux based PLC, which have touch support-but I don ' t need IO cards.
I'll use remote IOs, so the pi 2 are much more versatile, much faster and cheaper too.
I just could not yet find any help regarding the unrecognised Penmount touch.

Regards, Steffen


Update:i got it working
all touchscreens included, ELO, Egalax, Penmount.
The some issues with xinput_calibration, values is in the wrong order, but once you know, can correct manually.
Btw:compiling the kernel in exactly 2.5h
Posts: 7
Joined: Sat, 3:55 pm
By Andrea.cane»tue 6:10 pm Hello

is very interesting I ' m in the same situation, I has a LCD touchscrenn and would like tocompile a kernel with all drivers for supported touch because I don't know what's the mine, but I can not find a GUI De that'll explain step by step-clear how to fill the new kernel, your may share it with me and also with the group the S Teps or help you followed to be able to compile without error.

Thanks in advance and good work
Posts: 3
Joined: Tue, 11:23 am
By Seabug»wed 8:24 am Hi Andrea,

Please take a look at my post from February 23rd. I used VI (or any other editor) to modify the. config file, rather than using the script. Currently I am in my Vietnam office and I has not touchscreen here, but in around I'll return to Germany andcompile a new kernel. I can send you the result or also the. config file for further modifications.

Regards, Steffen
Posts: 7
Joined: Sat, 3:55 pm
By Andrea.cane»wed 9:02 am Thanks
I am in the same situation so you were in February and you talk to following the manual, which kind of manual has you follo Wed. I want to learn howCompile the new kernels because in the future I'll be is able to replay and rebuild another to follow my different goal S.
I can modify the file. config and add all driver for the touch screens with a command

Mkdir.. /kernel
Make o=. /kernel/arch=arm Cross_compile=/usr/bin/arm-linux-gnueabi-bcmrpi_cutdown_defconfig
Make o=. /kernel/arch=arm Cross_compile=/usr/bin/arm-linux-gnueabi-xconfig

After that, I can compile (minute) but I don't know what I had to does after.

Best regard Andrea

Kernel Compiling for Pi 2

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.