<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Building the imx8mminievk kernel from source in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Building-the-imx8mminievk-kernel-from-source/m-p/882004#M133727</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Apr 2019 13:34:14 GMT</pubDate>
    <dc:creator>Bio_TICFSL</dc:creator>
    <dc:date>2019-04-08T13:34:14Z</dc:date>
    <item>
      <title>Building the imx8mminievk kernel from source</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Building-the-imx8mminievk-kernel-from-source/m-p/882003#M133726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This guide will show you how to build the kernel for the imx8mminievk from source natively on the board. It will assume that you are on a Debian system (see my guide&lt;A href="https://community.nxp.com/thread/499892" rel="nofollow noopener noreferrer" target="_blank"&gt;debootstrap Debian Buster on imx8mminievk&lt;/A&gt;). Please note that you will need about 3GB of free disk space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First off we need to install some tools:&lt;/P&gt;&lt;PRE&gt;sudo apt install git build-essential bc&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clone the imx_4.14.78_1.0.0_ga branch from the linux-imx git repository:&lt;/P&gt;&lt;PRE&gt;git clone &lt;A href="http://source.codeaurora.org/external/imx/linux-imx" rel="nofollow noopener noreferrer" target="test_blank"&gt;http://source.codeaurora.org/external/imx/linux-imx&lt;/A&gt; --branch imx_4.14.78_1.0.0_ga --single-branch linux-imx_4.14.78_1.0.0_ga&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Copy the running linux configuration:&lt;/P&gt;&lt;PRE&gt;cd linux-imx_4.14.78_1.0.0_ga
zcat /proc/config.gz &amp;gt; .config&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Blank the CONFIG_LOCALVERSION, Debian packaging does not accept underscores:&lt;/P&gt;&lt;PRE&gt;sed -i 's/CONFIG_LOCALVERSION=.*/CONFIG_LOCALVERSION=""/' .config&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Optional&lt;/EM&gt;, Reconfigure the kernel:&lt;/P&gt;&lt;PRE&gt;sudo apt install libncurses5-dev
make menuconfig&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Build kernel and debian packages:&lt;/P&gt;&lt;PRE&gt;make -j$(nproc) bindeb-pkg&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Install the Debian kernel packages:&lt;/P&gt;&lt;PRE&gt;sudo dpkg -i ../linux-image-4.14.78-*deb ../linux-headers-4.14.78-*deb&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Backup old kernel and install new:&lt;/P&gt;&lt;PRE&gt;sudo mkdir /mnt/boot &amp;amp;&amp;amp; sudo mount /dev/mmcblk1p1 /mnt/boot
sudo cp /mnt/boot/Image /mnt/boot/Image.bak
sudo sh -c "zcat $(ls -t /boot/vmlinuz* | head -n1) &amp;gt; /mnt/boot/Image"&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reboot system:&lt;/P&gt;&lt;PRE&gt;sudo reboot&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Verify your kernel version with:&lt;/P&gt;&lt;PRE&gt;uname -a&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the new kernel won't boot, you can connect via serial console (usb-uart) and interrupt the u-boot booting and boot old kernel with:&lt;/P&gt;&lt;PRE&gt;setenv image Image.bak
boot&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Apr 2019 16:07:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Building-the-imx8mminievk-kernel-from-source/m-p/882003#M133726</guid>
      <dc:creator>andreasgustafss</dc:creator>
      <dc:date>2019-04-05T16:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: Building the imx8mminievk kernel from source</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Building-the-imx8mminievk-kernel-from-source/m-p/882004#M133727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Apr 2019 13:34:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Building-the-imx8mminievk-kernel-from-source/m-p/882004#M133727</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2019-04-08T13:34:14Z</dc:date>
    </item>
  </channel>
</rss>

