<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de-AT">
	<id>https://becomwiki.live.md-websolutions.com/index.php?action=history&amp;feed=atom&amp;title=Linux_kernel_development</id>
	<title>Linux kernel development - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://becomwiki.live.md-websolutions.com/index.php?action=history&amp;feed=atom&amp;title=Linux_kernel_development"/>
	<link rel="alternate" type="text/html" href="https://becomwiki.live.md-websolutions.com/index.php?title=Linux_kernel_development&amp;action=history"/>
	<updated>2026-05-13T14:11:59Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in BECOM Systems Support</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://becomwiki.live.md-websolutions.com/index.php?title=Linux_kernel_development&amp;diff=306&amp;oldid=prev</id>
		<title>Peter: 1 Version importiert</title>
		<link rel="alternate" type="text/html" href="https://becomwiki.live.md-websolutions.com/index.php?title=Linux_kernel_development&amp;diff=306&amp;oldid=prev"/>
		<updated>2023-10-31T08:03:09Z</updated>

		<summary type="html">&lt;p&gt;1 Version importiert&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;de-AT&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version vom 31. Oktober 2023, 10:03 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;de-AT&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(kein Unterschied)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Peter</name></author>
	</entry>
	<entry>
		<id>https://becomwiki.live.md-websolutions.com/index.php?title=Linux_kernel_development&amp;diff=305&amp;oldid=prev</id>
		<title>en&gt;Peter: 1 Version importiert</title>
		<link rel="alternate" type="text/html" href="https://becomwiki.live.md-websolutions.com/index.php?title=Linux_kernel_development&amp;diff=305&amp;oldid=prev"/>
		<updated>2023-08-22T19:35:52Z</updated>

		<summary type="html">&lt;p&gt;1 Version importiert&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Kernel configuration in OpenEmbedded =&lt;br /&gt;
&lt;br /&gt;
You can configure the Linux kernel using OpenEmbedded and the devshell:&lt;br /&gt;
 robert@bltLinux:~/oe/btmxc$ bitbake -c devshell [machine]-kernel&lt;br /&gt;
&lt;br /&gt;
 robert@bltLinux:~/.../git$ cp arch/arm/configs/[defaultconfig] .config&lt;br /&gt;
 robert@bltLinux:~/.../git$ make menuconfig&lt;br /&gt;
&lt;br /&gt;
If you want to know what the default config file for your kernel is, please have a look at your kernel recipe, e.g.&lt;br /&gt;
 harald@WS-HP4600-35:~/oe/btmxc$ grep &amp;quot;\.config&amp;quot; ../openembedded/recipes/linux/sbc-imx51-kernel_git.bb&lt;br /&gt;
     cp arch/arm/configs/imx51_i.fly_defconfig .config || die &amp;quot;No default configuration for ${MACHINE} available.&amp;quot;&lt;br /&gt;
 harald@WS-HP4600-35:~/imx/oe51/btmxc$&lt;br /&gt;
In the above example, the default config is &amp;#039;&amp;#039;imx51_i.fly_defconfig&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
If your new configuration works as expected, don&amp;#039;t forget to store it back to your git kernel-source&lt;br /&gt;
tree (&amp;#039;&amp;#039;btmxc-linux&amp;#039;&amp;#039;) and check it in!&lt;br /&gt;
&lt;br /&gt;
= Kernel development (OE) =&lt;br /&gt;
&lt;br /&gt;
If you modify the kernel sources in &amp;#039;&amp;#039;btmxc-linux&amp;#039;&amp;#039; and want to build a new image with OpenEmbedded, you have to make the following steps:&lt;br /&gt;
* Commit the changes to your Linux kernel (Note that the &amp;#039;&amp;#039;.config&amp;#039;&amp;#039; file isn&amp;#039;t tracked by GIT, please copy it to arch/arm/configs/ as explained above)&lt;br /&gt;
 git commit -a&lt;br /&gt;
* Clean the kernel and image packages&lt;br /&gt;
 bitbake -c clean sbc-imx51-kernel sbc-imx51-console-image&lt;br /&gt;
* Recompile the image, e.g.&lt;br /&gt;
 bitbake sbc-imx51-console-image&lt;br /&gt;
* For NFS, unpack the rootfs again:&lt;br /&gt;
 scripts/rootfs_unpack.sh&lt;br /&gt;
or&lt;br /&gt;
 prepare_nfs_zImage.sh&lt;br /&gt;
&lt;br /&gt;
= Kernel development without OpenEmbedded =&lt;br /&gt;
&lt;br /&gt;
During kernel development, i.e. if you have the need of many edit-compile-run cycles, we recommend to circumvent OpenEmbedded. Building the Linux kernel directly (using the OpenEmbedded tool chain) is easy, and replacing just the kernel and the kernel modules of your target software is many times faster than recompiling kernel and image with OpenEmbedded each time.&lt;br /&gt;
&lt;br /&gt;
Steps (we assume that you load your kernel via TFTP and boot the rootfs via NFS):&lt;br /&gt;
* Go to &amp;#039;&amp;#039;oe/btmxc-linux/&amp;#039;&amp;#039;&lt;br /&gt;
* Execute a little script that sets up the necessary environment:&lt;br /&gt;
 . set_cross_envs&lt;br /&gt;
* Copy the default configuration file to &amp;#039;&amp;#039;.config&amp;#039;&amp;#039;&lt;br /&gt;
 cp arch/arm/configs/[configfile] .config&lt;br /&gt;
* If you want to change the kernel configuration&lt;br /&gt;
 make menuconfig&lt;br /&gt;
* Compile the kernel&lt;br /&gt;
 make&lt;br /&gt;
* Install the modules to the CWD&lt;br /&gt;
 make modules_install&lt;br /&gt;
* Copy the kernel to &amp;#039;&amp;#039;/tftpboot&amp;#039;&amp;#039;&lt;br /&gt;
 cp arch/arm/boot/zImage /tftpboot&lt;br /&gt;
* NOW SHUT DOWN YOUR TARGET, it should not access NFS anymore.&lt;br /&gt;
* Delete the old modules&lt;br /&gt;
 sudo rm -rf ../btmxc/tmp/deploy/glibc/images/[machine]/rootfs/lib/modules&lt;br /&gt;
* Copy the new modules&lt;br /&gt;
 sudo cp -rpP lib/modules ../btmxc/tmp/deploy/glibc/images/[machine]/rootfs/lib/&lt;br /&gt;
* Now boot your target again&lt;br /&gt;
* On the target, log in as &amp;#039;&amp;#039;root&amp;#039;&amp;#039;, and update the module dependencies (for command like &amp;#039;&amp;#039;modprobe&amp;#039;&amp;#039; to work correctly)&lt;br /&gt;
 depmod -a&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:OpenEmbedded]]&lt;br /&gt;
[[Category:i.MX]]&lt;/div&gt;</summary>
		<author><name>en&gt;Peter</name></author>
	</entry>
</feed>