<?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>i.MX ProcessorsのトピックRe: Enabling can0 on imx-image-multimedia image</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Enabling-can0-on-imx-image-multimedia-image/m-p/1267490#M173127</link>
    <description>&lt;P&gt;Just an update, using the command "wic ls" does show that the mx8qm-mek.dtb is included in the boot partition. So, I'm guessing either there is another file missing (scfw?) in the boot partition or, there is a udev rule or script that is not included in the rootfs?&lt;/P&gt;&lt;P&gt;Tony&lt;/P&gt;</description>
    <pubDate>Fri, 23 Apr 2021 21:31:25 GMT</pubDate>
    <dc:creator>tony-atlismv</dc:creator>
    <dc:date>2021-04-23T21:31:25Z</dc:date>
    <item>
      <title>Enabling can0 on imx-image-multimedia image</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Enabling-can0-on-imx-image-multimedia-image/m-p/1266859#M173073</link>
      <description>&lt;P&gt;I would like to know how to add the can0 driver to the Yocto imx-image-multimedia build image (wic) file for the imx8qmmek. Following the directions from the i.MX Yocto Project User’s Guide document, version L5.4.24_2.1.0, I am able to complete a build and load the wic file to the SD Card, but using an “ip link” command shows no canx nodes. I am using the imx-image-multimedia image since I didn't want the full build image, but did add the Qt libraries and qmake build tools to the base image build. Note, I am building a Qt project for Linux that uses the CAN bus which runs on the imx8qmmek.&lt;/P&gt;&lt;P&gt;So, do I have to config and rebuild the kernel with Yocto to enable the CAN drivers? Or, is there a specific dtb file that I am required to use, such as from the BSP L5.10.0_1.0.0? But, if I need use a specific dtb file, how do I go about using bitbake -c deploy imx-image-multimedia to ensure the dtb file is utilized in the wic image? I would prefer not to have to spend the time using "dd" to load a set of separate images to the SD card.&lt;/P&gt;&lt;P&gt;I did thought about cloning the SD card that came with the imx8qmmek kit, but unfortunately, some of the libraries within the image are too deprecated for what I am using it for.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Apr 2021 20:22:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Enabling-can0-on-imx-image-multimedia-image/m-p/1266859#M173073</guid>
      <dc:creator>tony-atlismv</dc:creator>
      <dc:date>2021-04-22T20:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling can0 on imx-image-multimedia image</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Enabling-can0-on-imx-image-multimedia-image/m-p/1266875#M173075</link>
      <description>&lt;P&gt;Hi Tony,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Make sure you have the baseboard connected, and that you're using the default dtb "imx8qm-mek.dtb". Once the kernel has booted up you can load the driver with "modprobe flexcan". Let me know if this works for you.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Apr 2021 21:14:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Enabling-can0-on-imx-image-multimedia-image/m-p/1266875#M173075</guid>
      <dc:creator>carter_mcbride</dc:creator>
      <dc:date>2021-04-22T21:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling can0 on imx-image-multimedia image</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Enabling-can0-on-imx-image-multimedia-image/m-p/1267486#M173126</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Yes, baseboard is connected, but is the file "imx8qm-mek.dtb" the default hardware file for the Yocto build imx-image-multimedia wic file? I ask this because even though modprobe shows the flexcan module, I'm unable to bring up a can node.&lt;/P&gt;&lt;P&gt;With modprobe:&lt;/P&gt;&lt;P&gt;root@imx8qmmek:~# modprobe flexcan&lt;BR /&gt;[ 18.700741] CAN device driver interface&lt;/P&gt;&lt;P&gt;But, if I do the following, I receive an error:&lt;/P&gt;&lt;P&gt;root@imx8qmmek:~# ip link set can0 up&lt;BR /&gt;Cannot find device "can0"&lt;/P&gt;&lt;P&gt;Is there a udev rule or script that I need to bring up the can0 to can2 devices with? Or, do I have to create an SD card image manually with a separate u-boot and rootfs partition?&lt;/P&gt;&lt;P&gt;Note, I did try the LF_v5.10_1.0.0 version of the imx-image-multimedia wic file, but had the same results as I mentioned above.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tony&lt;/P&gt;</description>
      <pubDate>Fri, 23 Apr 2021 20:58:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Enabling-can0-on-imx-image-multimedia-image/m-p/1267486#M173126</guid>
      <dc:creator>tony-atlismv</dc:creator>
      <dc:date>2021-04-23T20:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling can0 on imx-image-multimedia image</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Enabling-can0-on-imx-image-multimedia-image/m-p/1267490#M173127</link>
      <description>&lt;P&gt;Just an update, using the command "wic ls" does show that the mx8qm-mek.dtb is included in the boot partition. So, I'm guessing either there is another file missing (scfw?) in the boot partition or, there is a udev rule or script that is not included in the rootfs?&lt;/P&gt;&lt;P&gt;Tony&lt;/P&gt;</description>
      <pubDate>Fri, 23 Apr 2021 21:31:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Enabling-can0-on-imx-image-multimedia-image/m-p/1267490#M173127</guid>
      <dc:creator>tony-atlismv</dc:creator>
      <dc:date>2021-04-23T21:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling can0 on imx-image-multimedia image</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Enabling-can0-on-imx-image-multimedia-image/m-p/1268249#M173216</link>
      <description>&lt;P&gt;So I believe the issue is that the prebuilt boot container in Yocto partitions the SoC in such a way that the M4 has control over the CAN subsystem.&lt;/P&gt;
&lt;P&gt;Please try the following in Yocto:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;- add this line to the bottom of local.conf - IMXBOOT_TARGETS_imx8qmmek_append = " flash"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;- rebuild the image with bitbake imx-image-multimedia, or whatever image you were building previously&lt;/P&gt;
&lt;P&gt;&amp;nbsp;- once the build completes, you should see "imx-boot-imx8qmmek-sd.bin-flash" in the images directory&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Insert the SD card with your Linux image into your host machine, and run the following dd command to reprogram the boot container with this new image:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;- sudo dd if=&amp;lt;path to imx-boot-imx8qmmek-sd.bin-flash&amp;gt; of=/dev/sdX bs=1k seek=32 &amp;amp;&amp;amp; sync, where sdX is the SD card device as enumerated on your machine&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once the above steps are completed you should be able to boot up into Linux with the default dtb, verify the flexcan module is loaded, and then run ifconfig -a to see the CAN interfaces.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Apr 2021 15:45:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Enabling-can0-on-imx-image-multimedia-image/m-p/1268249#M173216</guid>
      <dc:creator>carter_mcbride</dc:creator>
      <dc:date>2021-04-26T15:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling can0 on imx-image-multimedia image</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Enabling-can0-on-imx-image-multimedia-image/m-p/1269825#M173376</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;It took me some time&amp;nbsp;but I was able to make a full Yocto build for my iMX8MP SBC with the instructions provided for the local.conf file as suggested and for my target MPU. I do get the following prompt:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yoctobuild.jpg" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/143552iDEC8E73C9ABC4E14/image-size/medium?v=v2&amp;amp;px=400" role="button" title="yoctobuild.jpg" alt="yoctobuild.jpg" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;yoctobuild.jpg&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 28 Apr 2021 19:31:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Enabling-can0-on-imx-image-multimedia-image/m-p/1269825#M173376</guid>
      <dc:creator>BrunoSenzio</dc:creator>
      <dc:date>2021-04-28T19:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling can0 on imx-image-multimedia image</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Enabling-can0-on-imx-image-multimedia-image/m-p/1269832#M173377</link>
      <description>&lt;P&gt;So I was able to build the imx-boot-imx8qmmek-sd.bin-flash file using the Yocto imx-image-multimedia build per the instructions above. I then created a new SD Card based on the instructions found in section 4.3 of the latest iMX Linux User's Guide, but was unable to boot the SD Card. I used the imx-boot-imx8qmmek-sd.bin-flash and instructions per above and also ensured that the imx8qm-mek.dtb file was included in the first partition of the SD Card. I also used the dtb files, the Image file and rootfs generated from the imx-image-multimedia Yocto build for the SD Card.&lt;/P&gt;&lt;P&gt;One other thing I did try was to flash the imx-image-multimedia wic file to the SD Card and ensured that it booted. But, if I flash the imx-boot-imx8qmmek-sd.bin-flash following the above instructions to the same SD Card flashed with the imx-image-multimedia wic file, it does not boot up. So, I'm guessing either a version mismatch or a sector offset mismatch?&lt;/P&gt;&lt;P&gt;So, what other settings/appends would I need to include in the local.conf file to build a release (wic file) with the imx-boot-imx8qmmek-sd.bin-flash file included? Is there a bitbake command to just deploy and create the wic file? I am assuming that in order to include the imx-boot-imx8qmmek-sd.bin-flash file into the bitbake build, I would need to modify the Yocto recipe which creates the wic file. Where would I find this recipe?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 28 Apr 2021 19:58:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Enabling-can0-on-imx-image-multimedia-image/m-p/1269832#M173377</guid>
      <dc:creator>tony-atlismv</dc:creator>
      <dc:date>2021-04-28T19:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling can0 on imx-image-multimedia image</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Enabling-can0-on-imx-image-multimedia-image/m-p/1270080#M173395</link>
      <description>&lt;P&gt;The&amp;nbsp; can driver is related to the kernel. not the rootfs of multi-media or full.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The can driver is enabled by default of the linux kernel.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why the multi media wic image could not see the can interface on A core side.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Because the bootloader for the default wic image&amp;nbsp;imx-image-multimedia-imx8qmmek.wic is with m4(bootloader imx-boot-imx8qmmek-sd.bin-flash_linux_m4), which assign the can to the m4 side hardware partition.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please replace the bootloader with&amp;nbsp;imx-boot-imx8qmmek-sd.bin-flash for the&amp;nbsp;imx-image-multimedia-imx8qmmek.wic&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the test after replacing the&amp;nbsp;imx-image-multimedia-imx8qmmek.wic bootloader with&amp;nbsp;imx-boot-imx8qmmek-sd.bin-flash&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the uuu command or you can use the dd for the sdcard.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;emmc: uuu -b emmc_all imx-boot-imx8qmmek-sd.bin-flash imx-image-multimedia-imx8qmmek.wic&lt;/P&gt;
&lt;P&gt;binary release script uuu.auto already using the&amp;nbsp;imx-boot-imx8qmmek-sd.bin-flash for emmc&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sdcard:uuu -b&amp;nbsp; sd_all imx-boot-imx8qmmek-sd.bin-flash imx-image-multimedia-imx8qmmek.wic&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/143584iEE5ED243DD0E0DF3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Untitled.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Apr 2021 05:52:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Enabling-can0-on-imx-image-multimedia-image/m-p/1270080#M173395</guid>
      <dc:creator>BiyongSUN</dc:creator>
      <dc:date>2021-04-29T05:52:45Z</dc:date>
    </item>
  </channel>
</rss>

