<?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: iMX6ULL Kernel Paging Request</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/iMX6ULL-Kernel-Paging-Request/m-p/1951158#M228264</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Somethings is bad in your building, you have to build a stand alone firts and see what happens, if you are porting kernel please check:&lt;/P&gt;
&lt;P&gt;&lt;A target="_blank"&gt;https://community.nxp.com/pwmxy87654/attachments/pwmxy87654/imx-processors/72525/1/i.MX_6_BSP_Porting_Guide.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Sep 2024 14:13:59 GMT</pubDate>
    <dc:creator>Bio_TICFSL</dc:creator>
    <dc:date>2024-09-10T14:13:59Z</dc:date>
    <item>
      <title>iMX6ULL Kernel Paging Request</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6ULL-Kernel-Paging-Request/m-p/1950304#M228211</link>
      <description>&lt;P&gt;Hi! I'm having trouble booting a custom board with a imx6ull processor.&lt;/P&gt;&lt;P&gt;I see errors like "&lt;EM&gt;Unable to handle kernel paging request at virtual address 00001030&lt;/EM&gt;" or "&lt;EM&gt;Kernel panic - not syncing: Attempted to kill the idle task!&lt;/EM&gt;".&lt;/P&gt;&lt;P&gt;Right now I'm attempting to set the calibration parameters when building U-Boot with Yocto. Im new to Yocto so I don't fully understand where to edit.&lt;/P&gt;&lt;P&gt;1) First of all, I want to build an image ready to burn on a SD card. So I have this on my local.conf file.&lt;/P&gt;&lt;P&gt;MACHINE ??= 'imx6ull14x14evk'&lt;BR /&gt;DISTRO ?= 'fsl-imx-xwayland'&lt;BR /&gt;UBOOT_CONFIG = "emmc"&lt;BR /&gt;IMAGE_FSTYPES = "wic.gz"&lt;/P&gt;&lt;P&gt;And I build '&lt;STRONG&gt;bitbake core-image-minimal&lt;/STRONG&gt;'.&lt;/P&gt;&lt;P&gt;U-Boot inits ok, but when booting the system it always shows errors like "&lt;EM&gt;zimage: Bad magic!&lt;/EM&gt;". SD card is not properly written or something. Is there anything that I'm doing wrong? I tried with and without UBOOT_CONFIG and IMAGE_FSTYPES settings.&lt;/P&gt;&lt;P&gt;2) Using a pre-built image I'm able to boot the system, but I found the kernel errors attached.&lt;/P&gt;&lt;P&gt;So I'm trying to build an image with ddr calibration set (I don't know if this would solve anything).&lt;/P&gt;&lt;P&gt;I'm able to print a message in 'clocks' command in U-Boot by editing build/tmp/work/imx6ull14x14evk-poky-linux-gnueabi/u-boot-imx/2024.04/git/arch/arm/mach-imx/mx6/clock.c.&lt;BR /&gt;Just to see if Yocto is reading my changes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also set the calibration parameters for the DDR3 on "build/tmp/work/imx6ull14x14evk-poky-linux-gnueabi/u-boot-imx/2024.04/git/board/freescale/mx6ul_14x14_evk/plugin.S".&lt;/P&gt;&lt;P&gt;I did this editing the values when writing&amp;nbsp;&lt;STRONG&gt;MMDC_P0_BASE_ADDR +&amp;nbsp;0x83C /&amp;nbsp;0x848 /&amp;nbsp;0x850&lt;/STRONG&gt;. Respectively: &lt;STRONG&gt;MPDGCTRL0&lt;/STRONG&gt;,&amp;nbsp;&lt;STRONG&gt;MPRDDLCTL&lt;/STRONG&gt;,&amp;nbsp;&lt;STRONG&gt;MPWRDLCTL&lt;/STRONG&gt;.&amp;nbsp;MPWLDECTRL0 is alsways 0x00000000.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yocto builds with no errors but I can't see if the calibrations parameters were set and the system won't boot because of a said on point 1.&lt;/P&gt;&lt;P&gt;Im some occations I can boot the system from U-Boot, executing '&lt;EM&gt;bootz ${loadaddr} - ${fdt_addr}&lt;/EM&gt;'. But it halts on "&lt;EM&gt;Starting kernel ...&lt;/EM&gt;".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;BR /&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 19:11:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6ULL-Kernel-Paging-Request/m-p/1950304#M228211</guid>
      <dc:creator>pedropr</dc:creator>
      <dc:date>2024-09-09T19:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: iMX6ULL Kernel Paging Request</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6ULL-Kernel-Paging-Request/m-p/1951133#M228261</link>
      <description>&lt;P&gt;Update ---&lt;/P&gt;&lt;P&gt;The ddr calibrations parameters were not set. Checked this in U-Boot with:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;MPWLDECTRL0&lt;/STRONG&gt;: md.l 0x021B080C 0x01&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;MPDGCTRL0&lt;/STRONG&gt;: md.l 0x021B083C 0x01&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;MPRDDLCTL&lt;/STRONG&gt;: md.l 0x021B0848 0x01&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;MPWRDLCTL&lt;/STRONG&gt;: md.l 0x021B0850 0x01&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Tue, 10 Sep 2024 13:31:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6ULL-Kernel-Paging-Request/m-p/1951133#M228261</guid>
      <dc:creator>pedropr</dc:creator>
      <dc:date>2024-09-10T13:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: iMX6ULL Kernel Paging Request</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6ULL-Kernel-Paging-Request/m-p/1951158#M228264</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Somethings is bad in your building, you have to build a stand alone firts and see what happens, if you are porting kernel please check:&lt;/P&gt;
&lt;P&gt;&lt;A target="_blank"&gt;https://community.nxp.com/pwmxy87654/attachments/pwmxy87654/imx-processors/72525/1/i.MX_6_BSP_Porting_Guide.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 14:13:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6ULL-Kernel-Paging-Request/m-p/1951158#M228264</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2024-09-10T14:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: iMX6ULL Kernel Paging Request</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6ULL-Kernel-Paging-Request/m-p/1955876#M228509</link>
      <description>&lt;P&gt;Hi! Thank you for your response.&lt;/P&gt;&lt;P&gt;I managed to porting u-boot and the kernel using this guideline:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/user-guide/IMX_PORTING_GUIDE.pdf" target="_blank"&gt;https://www.nxp.com/docs/en/user-guide/IMX_PORTING_GUIDE.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried with the toolchain generated by&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;bitbake core-image-minimal -c populate_sdk&lt;/LI-CODE&gt;&lt;P&gt;but I got an error of my device-tree-compiler being too old (although it was newer than the required version).&lt;/P&gt;&lt;P&gt;So I compiled u-boot and kernel from source using:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;export CROSS_COMPILE=/usr/bin/arm-linux-gnueabi-
export ARCH=arm&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The branches I used:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;u-boot&lt;UL&gt;&lt;LI&gt;lf_v2022.04 (default from &lt;STRONG&gt;git clone&lt;/STRONG&gt;)&lt;/LI&gt;&lt;LI&gt;v2017.01&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;kernel&lt;UL&gt;&lt;LI&gt;lf-6.6.y (according to porting guide)&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;And then uploaded to an SD card using guideline:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/user-guide/IMX_LINUX_USERS_GUIDE.pdf" target="_blank"&gt;https://www.nxp.com/docs/en/user-guide/IMX_LINUX_USERS_GUIDE.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I didn't know where to get the&amp;nbsp;&lt;STRONG&gt;rootfs&lt;/STRONG&gt; so I used one I found after executing:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;bitbate core-image-minimal&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think the all process went well because I was able to boot from the SD card on my custom board.&lt;/P&gt;&lt;P&gt;But it halts in '&lt;EM&gt;Starting kernel ...&lt;/EM&gt;'&lt;/P&gt;&lt;P&gt;I changed the DDR calibration parameters in &lt;EM&gt;&amp;lt;some_path&amp;gt;/uboot-imx/board/freescale/mx6ullevk/imximage.cfg&lt;/EM&gt; and I was able to read those (successfully updated) through tne &lt;STRONG&gt;md&lt;/STRONG&gt; u-boot command.&lt;/P&gt;&lt;P&gt;The boot log is the following:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;U-Boot 2022.04-dirty (Sep 17 2024 - 13:09:39 -0300)

CPU:   i.MX6ULL rev1.1 792 MHz (running at 396 MHz)
CPU:   Industrial temperature grade (-40C to 105C) at 48C
Reset cause: POR
Model: i.MX6 ULL 14x14 EVK Board
Board: MX6ULL 14x14 EVK
DRAM:  512 MiB
Core:  65 devices, 18 uclasses, devicetree: separate
MMC:   FSL_SDHC: 0, FSL_SDHC: 1
Loading Environment from MMC... OK
[*]-Video Link 0 (480 x 272)
        [0] lcdif@21c8000, video
In:    serial
Out:   serial
Err:   serial
switch to partitions #0, OK
mmc1 is current device
flash target is MMC:1
Net:
Error: ethernet@20b4000 address not set.

Error: ethernet@20b4000 address not set.

Error: ethernet@20b4000 address not set.

Error: ethernet@20b4000 address not set.
Could not get PHY for FEC0: addr 2

Error: ethernet@20b4000 address not set.

Error: ethernet@20b4000 address not set.
Could not get PHY for FEC0: addr 2
No ethernet found.

Fastboot: Normal
Normal Boot
Hit any key to stop autoboot:  0
switch to partitions #0, OK
mmc1 is current device
switch to partitions #0, OK
mmc1 is current device
Failed to load 'boot.scr'
9419152 bytes read in 401 ms (22.4 MiB/s)
Booting from mmc ...
45482 bytes read in 5 ms (8.7 MiB/s)
Kernel image @ 0x80800000 [ 0x000000 - 0x8fb990 ]
## Flattened Device Tree blob at 83000000
   Booting using the fdt blob at 0x83000000
   Using Device Tree in place at 83000000, end 8300e1a9
Modify /soc/bus@2200000/epdc@228c000 disabled

Starting kernel ...&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do see the message:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Modify /soc/bus@2200000/epdc@228c000 disabled&lt;/LI-CODE&gt;&lt;P&gt;And there was some warnings about that when compiling the kernel (I don't know what is).&lt;/P&gt;&lt;P&gt;Is there anything I did wrong or what could I try?&lt;BR /&gt;&lt;BR /&gt;Thank you for your time.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2024 20:05:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6ULL-Kernel-Paging-Request/m-p/1955876#M228509</guid>
      <dc:creator>pedropr</dc:creator>
      <dc:date>2024-09-17T20:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: iMX6ULL Kernel Paging Request</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6ULL-Kernel-Paging-Request/m-p/1955880#M228510</link>
      <description>&lt;P&gt;Forgot to mention:&lt;/P&gt;&lt;P&gt;For u-boot I used:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;make distclean
make mx6ull_14x14_evk_defconfig
make&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;and for kernel:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;make distclean
make imx_v7_defconfig
make -j 4&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And for booting I used:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;zImage&lt;/LI&gt;&lt;LI&gt;imx6ull-14x14-evk.dtb and&amp;nbsp;imx6ull-14x14-evk-emmc.dtb&lt;/LI&gt;&lt;LI&gt;u-boot-dbt.imx&lt;/LI&gt;&lt;LI&gt;rootfs&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Tue, 17 Sep 2024 20:22:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6ULL-Kernel-Paging-Request/m-p/1955880#M228510</guid>
      <dc:creator>pedropr</dc:creator>
      <dc:date>2024-09-17T20:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: iMX6ULL Kernel Paging Request</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6ULL-Kernel-Paging-Request/m-p/1957757#M228653</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;In this case you might try the DDR stress calibration:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/pwmxy87654/attachments/pwmxy87654/imx-processors/58620/1/i.MX6_DDR_Stress_Tester_User_Guide.pdf" target="_blank"&gt;https://community.nxp.com/pwmxy87654/attachments/pwmxy87654/imx-processors/58620/1/i.MX6_DDR_Stress_Tester_User_Guide.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;regards&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2024 13:46:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6ULL-Kernel-Paging-Request/m-p/1957757#M228653</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2024-09-19T13:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: iMX6ULL Kernel Paging Request</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6ULL-Kernel-Paging-Request/m-p/1961090#M228861</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I tried the ddr stress test with 4 boards. I run it on all of them 5 times each (20 tests total).&lt;/P&gt;&lt;P&gt;There was 0 errors running the test at 400MHz.&lt;/P&gt;&lt;P&gt;I tried to run the test at 200MHz and 300MHz to see what happens, by first setting the ddr init script using&amp;nbsp;i.MX 6/7 Series DDR Register Programming Aid (RPA).&lt;/P&gt;&lt;P&gt;Ref:&amp;nbsp;&lt;A href="https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/i-MX-6-7-Series-DDR-Tool-Release/ta-p/1271415" target="_blank"&gt;https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/i-MX-6-7-Series-DDR-Tool-Release/ta-p/1271415&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But at 200MHz and 300Mhz the test always fails. I could be doing something with the DDR RPA though ...&lt;/P&gt;&lt;P&gt;But I think the issue is still on the u-boot and kernel compilation.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;For &lt;STRONG&gt;U-Boot&lt;/STRONG&gt; I tried the &lt;STRONG&gt;imximage.cfg&lt;/STRONG&gt; file with 3 setups:&lt;BR /&gt;&lt;UL&gt;&lt;LI&gt;Default imximage.cfg file from repo.&lt;/LI&gt;&lt;LI&gt;Default imximage.cfg file from repo with calibration parameters set (taken from DDR Stress Test Tool).&lt;/LI&gt;&lt;LI&gt;Based on DDR RPA.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;For &lt;STRONG&gt;Kernel&lt;/STRONG&gt;&amp;nbsp;I didn't make any changes.&lt;/LI&gt;&lt;LI&gt;I noticed there are two&amp;nbsp;&lt;STRONG&gt;.dtb&lt;/STRONG&gt; files, one generated when compiling u-boot and another from kernel. I used both and no one works.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;The issue is always the same, it halts on:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Starting kernel ...&lt;/LI-CODE&gt;&lt;P&gt;I have an old image made with Yocto Project using&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;MACHINE=imx6ull14x14evk&lt;/LI-CODE&gt;&lt;P&gt;and it doesn't have this "Starting kernel ..." halt issue. (It has another boot issues that I'll address later).&lt;/P&gt;&lt;P&gt;&amp;nbsp;What else could I try?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 21:22:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6ULL-Kernel-Paging-Request/m-p/1961090#M228861</guid>
      <dc:creator>pedropr</dc:creator>
      <dc:date>2024-09-24T21:22:36Z</dc:date>
    </item>
  </channel>
</rss>

