AnsweredAssumed Answered

What are the u-boot load addresses of kernel, fdt, ramdisk, and Android 9 OS for imx6q?

Question asked by Krishnandu Biswas on Mar 17, 2020
Latest reply on May 4, 2020 by Chee Huey Pun

Hey! everyone,

I'm trying to manually boot every component of android 9 on imx6q custom board and now I'm stuck (cpu restarts after sometime) at "Starting kernel..." if I load ramdisk.img. I works fine and starts the kernel with fdt and without ramdisk. 

Is there some addressing issue??

////////////////////////////////////////////////   uboot-env   ////////////////////////////////////////////////////

baudrate=115200

board_name=SABRESD
board_rev=MX6Q

bootcmd=run mmcboot

bootdelay=3
console=ttymxc4
ethprime=eth0

fdt_addr=0x18000000

fdt_file=imx6q-sabresd.dtb

fdt_high=0xffffffff

fdtcontroladdr=49f0adf0

kernel_addr=0x10008000

kernel=uImage
initrd_high=0xffffffff
loadaddr=0x12000000
loadbootscript=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};
loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}
loadimage=fatload mmc ${mmcdev}:${mmcpart} ${kernel_addr} ${kernel}

loadrd=fatload mmc ${mmcdev}:${mmcpart} ${rd_addr} ${rd}
mmcargs=setenv bootargs console=${console},${baudrate} root=${mmcroot}
mmcboot=echo Booting from mmc ...;mmc dev ${mmcdev}; run mmcargs; run loadfdt; run loadrd; run loadimage; bootm ${kernel_addr} ${rd_addr} ${fdt_addr};
mmcdev=1
mmcpart=1
mmcroot=/dev/mmcblk2p2 rootwait rw

rd=uramdisk.img

rd_addr=0x12000000
soc_type=imx6q
splashpos=m,m
tee=no

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////

 Also, how to determine the device for root parameter for rootfs of bootargs??

Can you tell me kernel execution process, like how is the fat loaded ramdisk and fdt being used by the kernel after bootm command call??

Outcomes