Choosing appropriate u-boot loadaddr

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Choosing appropriate u-boot loadaddr

1,022 Views
KathyinCT
Contributor I

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"

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 

 

=> printenv

Spoiler

args_from_script=
baudrate=115200
boot_fdt=try
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
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;
bootdelay=3
bootscript=echo Running bootscript from mmc ...; source
cmd_rgb=fdt set fb_rgb status disabled;fdt set bl_rgb status disabled
cmd_ts=run cmd_ts_rgb;
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;
console=ttymxc0
dfu_alt_info=image raw 0 0x800000;u-boot raw 0 0x4000;bootimg part 0 1;rootfs part 0 2
emmc_dev=2
ethaddr=00:1a:f1:10:09:11
ethprime=eth0
fastboot_dev=mmc2
fb_rgb=Innolux-AT070TN:24:33336667,800,480,89,164,75,75,10,10,0,0,1,0
fdt_addr=0x83000000
fdt_file=imx7dea-ucom-kit_v2-m4.dtb
fdt_high=0xffffffff
fdtaddr=83000000
fdtcontroladdr=bdf55318
fileaddr=83000000
filesize=9fb1
fmac_txrx_opt=brcmfmac.sdio_wq_highpri=1
image=zImage
initrd_addr=0x83800000
initrd_high=0xffffffff
ip_dyn=yes
kboot=bootz
loadaddr=0x80800000
loadbootscript=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};
loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}
loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}
loadm4image=fatload mmc ${mmcdev}:${mmcpart} ${m4addr} ${m4image}
m4addr=0x00902000
m4autoboot=no
m4boot=if itest.s "xyes" == "x${m4autoboot}"; then if run loadm4image; then dcache flush; bootaux ${m4addr}; fi; fi;
m4image=m4_ocram.bin
mfgtool_args=setenv bootargs console=${console},${baudrate} rdinit=/linuxrc clk_ignore_unused
mmcargs=setenv bootargs console=${console},${baudrate} root=${mmcroot} ${fmac_txrx_opt} ${args_from_script} uart_from_osc
mmcautodetect=yes
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;
mmcdev=2
mmcpart=1
mmcroot=/dev/mmcblk2p2 rootwait rw
netargs=setenv bootargs console=${console},${baudrate} root=/dev/nfs ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp ${args_from_script}
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;
panel=Hannstar-XGA
script=boot.scr
serial#=009191a0deadbeef
soc_type=imx7d

Environment size: 3074/8188 bytes

 

0 Kudos
Reply
0 Replies