<?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 Choosing appropriate u-boot loadaddr in i.MX Solutions</title>
    <link>https://community.nxp.com/t5/i-MX-Solutions/Choosing-appropriate-u-boot-loadaddr/m-p/1263715#M140</link>
    <description>&lt;P&gt;I'm configuring a Linux kernel for use on an i.MX7, and the settings I've configured make the kernel larger than the default settings for the boot partition. I've increased the size of the boot partition but now when u-boot tries to load the kernel it gives "Error loading kernel image"&lt;/P&gt;&lt;P&gt;After some searching it seems the u-boot needs to load the kernel into a larger memory location, but I'm unclear how to do this or choose the right address space? I've attached my printenv output below&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=&amp;gt; printenv&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;P&gt;args_from_script=&lt;BR /&gt;baudrate=115200&lt;BR /&gt;boot_fdt=try&lt;BR /&gt;bootcmd=mmc dev ${mmcdev};mmc dev ${mmcdev}; if mmc rescan; then if run loadbootscript; then run bootscript; else if run loadimage; then run mmcboot; else run netboot; fi; fi; else run netboot; fi&lt;BR /&gt;bootcmd_mfg=run mfgtool_args;if iminfo ${initrd_addr}; then if test ${tee} = yes; then bootm ${tee_addr} ${initrd_addr} ${fdt_addr}; else bootz ${loadaddr} ${initrd_addr} ${fdt_addr}; fi; else echo "Run fastboot ..."; fastboot 0; fi;&lt;BR /&gt;bootdelay=3&lt;BR /&gt;bootscript=echo Running bootscript from mmc ...; source&lt;BR /&gt;cmd_rgb=fdt set fb_rgb status disabled;fdt set bl_rgb status disabled&lt;BR /&gt;cmd_ts=run cmd_ts_rgb;&lt;BR /&gt;cmd_ts_rgb=fdt set ts_con_rgb/ar1021_rgb status disabled; fdt set ts_con_rgb/ilitek_aim_rgb status disabled; fdt set ts_con_rgb/sitronix_rgb status disabled; fdt set ts_con_rgb/egalax_ts_rgb status disabled; fdt set ts_con_rgb/edt-ft5x06_rgb status disabled; fdt set ts_con_rgb/mxt1664_ts_rgb status disabled;&lt;BR /&gt;console=ttymxc0&lt;BR /&gt;dfu_alt_info=image raw 0 0x800000;u-boot raw 0 0x4000;bootimg part 0 1;rootfs part 0 2&lt;BR /&gt;emmc_dev=2&lt;BR /&gt;ethaddr=00:1a:f1:10:09:11&lt;BR /&gt;ethprime=eth0&lt;BR /&gt;fastboot_dev=mmc2&lt;BR /&gt;fb_rgb=Innolux-AT070TN:24:33336667,800,480,89,164,75,75,10,10,0,0,1,0&lt;BR /&gt;fdt_addr=0x83000000&lt;BR /&gt;fdt_file=imx7dea-ucom-kit_v2-m4.dtb&lt;BR /&gt;fdt_high=0xffffffff&lt;BR /&gt;fdtaddr=83000000&lt;BR /&gt;fdtcontroladdr=bdf55318&lt;BR /&gt;fileaddr=83000000&lt;BR /&gt;filesize=9fb1&lt;BR /&gt;fmac_txrx_opt=brcmfmac.sdio_wq_highpri=1&lt;BR /&gt;image=zImage&lt;BR /&gt;initrd_addr=0x83800000&lt;BR /&gt;initrd_high=0xffffffff&lt;BR /&gt;ip_dyn=yes&lt;BR /&gt;kboot=bootz&lt;BR /&gt;loadaddr=0x80800000&lt;BR /&gt;loadbootscript=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};&lt;BR /&gt;loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}&lt;BR /&gt;loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}&lt;BR /&gt;loadm4image=fatload mmc ${mmcdev}:${mmcpart} ${m4addr} ${m4image}&lt;BR /&gt;m4addr=0x00902000&lt;BR /&gt;m4autoboot=no&lt;BR /&gt;m4boot=if itest.s "xyes" == "x${m4autoboot}"; then if run loadm4image; then dcache flush; bootaux ${m4addr}; fi; fi;&lt;BR /&gt;m4image=m4_ocram.bin&lt;BR /&gt;mfgtool_args=setenv bootargs console=${console},${baudrate} rdinit=/linuxrc clk_ignore_unused&lt;BR /&gt;mmcargs=setenv bootargs console=${console},${baudrate} root=${mmcroot} ${fmac_txrx_opt} ${args_from_script} uart_from_osc&lt;BR /&gt;mmcautodetect=yes&lt;BR /&gt;mmcboot=echo Booting from mmc ...; run mmcargs; if test ${boot_fdt} = yes || test ${boot_fdt} = try; then if run loadfdt; then bootz ${loadaddr} - ${fdt_addr}; else if test ${boot_fdt} = try; then bootz; else echo WARN: Cannot load the DT; fi; fi; else bootz; fi;&lt;BR /&gt;mmcdev=2&lt;BR /&gt;mmcpart=1&lt;BR /&gt;mmcroot=/dev/mmcblk2p2 rootwait rw&lt;BR /&gt;netargs=setenv bootargs console=${console},${baudrate} root=/dev/nfs ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp ${args_from_script}&lt;BR /&gt;netboot=echo Booting from net ...; run netargs; if test ${ip_dyn} = yes; then setenv get_cmd dhcp; else setenv get_cmd tftp; fi; ${get_cmd} ${image}; if test ${boot_fdt} = yes || test ${boot_fdt} = try; then if ${get_cmd} ${fdt_addr} ${fdt_file}; then bootz ${loadaddr} - ${fdt_addr}; else if test ${boot_fdt} = try; then bootz; else echo WARN: Cannot load the DT; fi; fi; else bootz; fi;&lt;BR /&gt;panel=Hannstar-XGA&lt;BR /&gt;script=boot.scr&lt;BR /&gt;serial#=009191a0deadbeef&lt;BR /&gt;soc_type=imx7d&lt;/P&gt;&lt;P&gt;Environment size: 3074/8188 bytes&lt;/P&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Apr 2021 18:41:03 GMT</pubDate>
    <dc:creator>KathyinCT</dc:creator>
    <dc:date>2021-04-16T18:41:03Z</dc:date>
    <item>
      <title>Choosing appropriate u-boot loadaddr</title>
      <link>https://community.nxp.com/t5/i-MX-Solutions/Choosing-appropriate-u-boot-loadaddr/m-p/1263715#M140</link>
      <description>&lt;P&gt;I'm configuring a Linux kernel for use on an i.MX7, and the settings I've configured make the kernel larger than the default settings for the boot partition. I've increased the size of the boot partition but now when u-boot tries to load the kernel it gives "Error loading kernel image"&lt;/P&gt;&lt;P&gt;After some searching it seems the u-boot needs to load the kernel into a larger memory location, but I'm unclear how to do this or choose the right address space? I've attached my printenv output below&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=&amp;gt; printenv&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;P&gt;args_from_script=&lt;BR /&gt;baudrate=115200&lt;BR /&gt;boot_fdt=try&lt;BR /&gt;bootcmd=mmc dev ${mmcdev};mmc dev ${mmcdev}; if mmc rescan; then if run loadbootscript; then run bootscript; else if run loadimage; then run mmcboot; else run netboot; fi; fi; else run netboot; fi&lt;BR /&gt;bootcmd_mfg=run mfgtool_args;if iminfo ${initrd_addr}; then if test ${tee} = yes; then bootm ${tee_addr} ${initrd_addr} ${fdt_addr}; else bootz ${loadaddr} ${initrd_addr} ${fdt_addr}; fi; else echo "Run fastboot ..."; fastboot 0; fi;&lt;BR /&gt;bootdelay=3&lt;BR /&gt;bootscript=echo Running bootscript from mmc ...; source&lt;BR /&gt;cmd_rgb=fdt set fb_rgb status disabled;fdt set bl_rgb status disabled&lt;BR /&gt;cmd_ts=run cmd_ts_rgb;&lt;BR /&gt;cmd_ts_rgb=fdt set ts_con_rgb/ar1021_rgb status disabled; fdt set ts_con_rgb/ilitek_aim_rgb status disabled; fdt set ts_con_rgb/sitronix_rgb status disabled; fdt set ts_con_rgb/egalax_ts_rgb status disabled; fdt set ts_con_rgb/edt-ft5x06_rgb status disabled; fdt set ts_con_rgb/mxt1664_ts_rgb status disabled;&lt;BR /&gt;console=ttymxc0&lt;BR /&gt;dfu_alt_info=image raw 0 0x800000;u-boot raw 0 0x4000;bootimg part 0 1;rootfs part 0 2&lt;BR /&gt;emmc_dev=2&lt;BR /&gt;ethaddr=00:1a:f1:10:09:11&lt;BR /&gt;ethprime=eth0&lt;BR /&gt;fastboot_dev=mmc2&lt;BR /&gt;fb_rgb=Innolux-AT070TN:24:33336667,800,480,89,164,75,75,10,10,0,0,1,0&lt;BR /&gt;fdt_addr=0x83000000&lt;BR /&gt;fdt_file=imx7dea-ucom-kit_v2-m4.dtb&lt;BR /&gt;fdt_high=0xffffffff&lt;BR /&gt;fdtaddr=83000000&lt;BR /&gt;fdtcontroladdr=bdf55318&lt;BR /&gt;fileaddr=83000000&lt;BR /&gt;filesize=9fb1&lt;BR /&gt;fmac_txrx_opt=brcmfmac.sdio_wq_highpri=1&lt;BR /&gt;image=zImage&lt;BR /&gt;initrd_addr=0x83800000&lt;BR /&gt;initrd_high=0xffffffff&lt;BR /&gt;ip_dyn=yes&lt;BR /&gt;kboot=bootz&lt;BR /&gt;loadaddr=0x80800000&lt;BR /&gt;loadbootscript=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};&lt;BR /&gt;loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}&lt;BR /&gt;loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}&lt;BR /&gt;loadm4image=fatload mmc ${mmcdev}:${mmcpart} ${m4addr} ${m4image}&lt;BR /&gt;m4addr=0x00902000&lt;BR /&gt;m4autoboot=no&lt;BR /&gt;m4boot=if itest.s "xyes" == "x${m4autoboot}"; then if run loadm4image; then dcache flush; bootaux ${m4addr}; fi; fi;&lt;BR /&gt;m4image=m4_ocram.bin&lt;BR /&gt;mfgtool_args=setenv bootargs console=${console},${baudrate} rdinit=/linuxrc clk_ignore_unused&lt;BR /&gt;mmcargs=setenv bootargs console=${console},${baudrate} root=${mmcroot} ${fmac_txrx_opt} ${args_from_script} uart_from_osc&lt;BR /&gt;mmcautodetect=yes&lt;BR /&gt;mmcboot=echo Booting from mmc ...; run mmcargs; if test ${boot_fdt} = yes || test ${boot_fdt} = try; then if run loadfdt; then bootz ${loadaddr} - ${fdt_addr}; else if test ${boot_fdt} = try; then bootz; else echo WARN: Cannot load the DT; fi; fi; else bootz; fi;&lt;BR /&gt;mmcdev=2&lt;BR /&gt;mmcpart=1&lt;BR /&gt;mmcroot=/dev/mmcblk2p2 rootwait rw&lt;BR /&gt;netargs=setenv bootargs console=${console},${baudrate} root=/dev/nfs ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp ${args_from_script}&lt;BR /&gt;netboot=echo Booting from net ...; run netargs; if test ${ip_dyn} = yes; then setenv get_cmd dhcp; else setenv get_cmd tftp; fi; ${get_cmd} ${image}; if test ${boot_fdt} = yes || test ${boot_fdt} = try; then if ${get_cmd} ${fdt_addr} ${fdt_file}; then bootz ${loadaddr} - ${fdt_addr}; else if test ${boot_fdt} = try; then bootz; else echo WARN: Cannot load the DT; fi; fi; else bootz; fi;&lt;BR /&gt;panel=Hannstar-XGA&lt;BR /&gt;script=boot.scr&lt;BR /&gt;serial#=009191a0deadbeef&lt;BR /&gt;soc_type=imx7d&lt;/P&gt;&lt;P&gt;Environment size: 3074/8188 bytes&lt;/P&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Apr 2021 18:41:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Solutions/Choosing-appropriate-u-boot-loadaddr/m-p/1263715#M140</guid>
      <dc:creator>KathyinCT</dc:creator>
      <dc:date>2021-04-16T18:41:03Z</dc:date>
    </item>
  </channel>
</rss>

