Kernel compiling for Pi 2
https://www.raspberrypi.org/forums/viewtopic.php?f=66&t=101188&p=807579&hilit=cross+compile+pi+source+code#p807579
http://blog.retep.org/2012/07/08/compiling-a-kernel-on-the-raspberry-pi/
http://blog.csdn.net/jinzheng_2010/article/details/8676213
http://tieba.baidu.com/p/3285267721?pid=57194282015&cid=0#57194282015
http://blog.csdn.net/embbnux/article/details/17394793
http://bbs.elecfans.com/forum.php?mod=viewthread&tid=455214&extra=
https://github.com/notro/fbtft
http://www.eeboard.com/bbs/thread-41500-1-1.html
编译内核的时候,.config文件最好从现成的板子上拷贝出来,这样就免去了自己选择配置menuconfig的麻烦,具体参见:
http://blog.csdn.net/jinzheng_2010/article/details/8676213
I am trying to compile 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 Feb 21, 2015 3:55 pm
Hi, when compiling for the
RPI.v2 i used bcm2709_defconfig for the config instead of
bcmrpi_defconfig. Other than that, the steps are the same as compiling
for rpi.v1.
Once cross compile was complete i copied arch/arm/boot/Image (or zImage for a smaller kernel) to kernel7.img then copied it on to the sd card.
Hope that makes sense.
nik
- Posts: 9
- Joined: Sat Jan 24, 2015 8:51 pm
I got the kernel compiled now (build on the Pi 2 with the power of 4 processor kernels
Steffen
- Posts: 7
- Joined: Sat Feb 21, 2015 3:55 pm
Seabug wrote:Thanks, Nik.
I got the kernel compiled now (build on the Pi 2 with the power of 4 processor kernels).
Steffen
Can you provide the steps to compile the kernel and generate kernel.img and kernel7.img ? Maybe a simple tutorial ?
What's the difference between kernel.img and kernel7.img ?
- Posts: 18
- Joined: Fri Mar 15, 2013 3:18 pm
- Location: Hong Kong
Since I was new to kernel compiling too, I made the assumption that 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 bcm2709_defconfig instead of bcmrpi_defconfig to prepare your .config file.
After I used menuconfig to find and activate my modules.
It was 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 Feb 21, 2015 3:55 pm
touchscreen module has now been added to the kernel. (Have tested on
vanilla Raspbian install using rpi v.2)
Cross-compile is no longer required.
![]()
You will however still need to calibrate the screen using xinput_calibrator.
nik
- Posts: 9
- Joined: Sat Jan 24, 2015 8:51 pm
"in micro$oft we not trust"
-
- Posts: 355
- Joined: Thu Feb 19, 2015 1:03 pm
n1ks wrote:If you run rpi-update you should find egalax touchscreen module has now been added to the kernel.
(Have tested on vanilla Raspbian install using rpi v.2)
Cross-compile is no longer required.![]()
![]()
You will 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 was 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 will have to compile my own kernel.
Compiling with make -j 6 is fast. I am to lazy to switch hard disks to Ubuntu in my PC and did not yet try to cross compile it under FreeBSD, even thought the ARM cross compiler is available under FreeBSD too. Maybe I will give it a try in the next days.
ELO/Penmount and Egal touch screens are quite cheap now and I see many Pi projects going on with it.
I actually plan to replace a ARM-Linux based PLC, which has touch support - but I don't need IO cards.
I will use remote IOs, so the Pi 2 is 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.
Have some issues with xinput_calibration, values are in wrong order, but once you know, you can correct manually.
BTW: Compiling the kernel in exactly 2.5h ![]()
- Posts: 7
- Joined: Sat Feb 21, 2015 3:55 pm
is very interesting I'm in the same situation, I have a LCD touchscrenn and would like to compile
a kernel with all drivers for supported touch because I do not know
what is the mine, but I can not find a guide that will explain step by
step clear
how to fill the new kernel, you may share it with me and also with the group the steps or help you followed to be able to compile without error.
thanks in advance and good work ![]()
- Posts: 3
- Joined: Tue Jul 28, 2015 11:23 am
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 have not touchscreen here, but in around 10 days I will
return to Germany and compile a new kernel. I can send you the result or also the .config file for further modifications.
regards, Steffen
- Posts: 7
- Joined: Sat Feb 21, 2015 3:55 pm
i am in the same situation that you
was in february, you talk to following the manual, which kind of manual
have you followed. i want to learn how compile the new kernels because in the future i will be able to replay and rebuild another to follow my different goals.
i can modify the file .config and add all driver for the touch screen 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 (20 minute) but i don't know what i have to do after.
best regard andrea
Kernel compiling for Pi 2的更多相关文章
- 在ubuntu上编译rasbian kernel(for raspberry pi 1)
raspberry pi官网的编译手册写的简洁有力,照着操作即可 https://www.raspberrypi.org/documentation/linux/kernel/building.md ...
- How to emulate a Raspberry Pi on your PC
How to emulate a Raspberry Pi on your PC I am very interested in trying simulators and emulators for ...
- How to: Compile Linux kernel 2.6
Compiling custom kernel has its own advantages and disadvantages. However, new Linux user / admin ...
- How to compile and install Linux Kernel 5.1.2 from source code
How to compile and install Linux Kernel 5.1.2 from source code Compiling a custom kernel has its adv ...
- Using MultiPath TCP to enhance home networks
Over the last few months I’ve been playing with MultiPath TCP and in this post I will show how I use ...
- 从源码编译rpi的内核
Kernel Building https://www.raspberrypi.org/documentation/linux/kernel/building.md There are two mai ...
- Unity基础—Computer Shader
Computer Shader是什么? Computer shader是一段运行在GPU上的一段程序. 什么时候用Computer shader? 假如我们把一个cube当作单独的点,用许多个(cub ...
- Compiling a kernel module for the raspberry pi 2 via Ubuntu host
Compiling a kernel module for the raspberry pi 2 via Ubuntu host Normally compiling a kernel module ...
- Raspberry Pi 3 --- Kernel Building and Run in A New Version Kernal
ABSTRACT There are two main methods for building the kernel. You can build locally on a Raspberry Pi ...
随机推荐
- 通过 ANE(Adobe Native Extension) 启动Andriod服务 推送消息(一)
项目组用air来开发手游, 但有些在原生应用里很容易实现的功能没有办法在air中直接调用,比如说震动,服务等等.但Adobe 提供了一种方法让air间接调用本地代码(java,object-c...) ...
- 关于学习HTML5中自己犯的错误
7.1写错了 siblings()这个函数写成了sibling,在jQuery中并没有这个函数的定义 在查找错误的过程中,自己也发现了一个学习jQuery的网站http://www.365mini.c ...
- javascript 事件流及应用
当页面元素触发事件的时候,该元素的容器以及整个页面都会按照特定顺序发生该元素的触发 事件,事件传播的顺序叫做事件流 1.事件流的分类: A.冒泡型事件(所有浏览器都支持) 由明确的事件源到最不确定 ...
- 默认时,销毁会话,session_unset, session_destory
<?php /** 一般我们登录时,开启了会话,就会自动生成 session 有关的文件, 保存有相关的用户登录信息,所以正常情况下得退出登录, 同时也要清空 session 有关的文件和相关的 ...
- js事件流、事件处理程序/事件侦听器
1.事件流 事件冒泡 IE的事件流叫做事件冒泡(event bubbling),即事件开始时由最具体的元素(文档中嵌套层次最深的那个节点)接收,然后逐级向上传播到较为不具体的节点(文档). 事件捕获 ...
- #Leet Code# Populating Next Right Pointers in Each Node II
描述:注意需要先self.connect(right)再self.connect(left),否则会有case通不过,原因是左边递归执行时依赖与右边的next已经建立,而先执行connect(left ...
- WPF中增加Month Calendar月历控件
XAML代码:(这里使用了codeproject.com网站上的一个Dll,你可以在这里下载它:http://www.codeproject.com/cs/miscctrl/MonthCalendar ...
- [swift] NSClassFromString 无法获得该类
在写OC的时候需要用 NSClassFromString(classStringName)获得一个类,如果存在就用这个类型来声明一个对象, 但是在swift的时候却往往得不到这个类,为什么呢? 从截图 ...
- 简单的网页采集程序(ASP.NET MVC4)
因为懒人太多,造成现在网页数据采集非常的流行,我也来写个简单的记录一下. 之前写了MVC的基本框架的搭建随笔,后面因为公司太忙,个人感情问题:(,导致不想写了,就写了两篇给删除了,现在就搁浅了, 本人 ...
- [BZOJ 2738] 矩阵乘法 【分块】
题目链接:BZOJ - 2738 题目分析 题目名称 “矩阵乘法” 与题目内容没有任何关系..就像VFK的 A+B Problem 一样.. 题目大意是给定一个矩阵,有许多询问,每次询问一个子矩阵中的 ...