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

cancel
Showing results for 
Search instead for 
Did you mean: 

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

443 Views
Contributor II

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??

Labels (3)
0 Kudos
2 Replies

79 Views
NXP Employee
NXP Employee

Hello,

All the information regarding the storage partitions. It can be found in the Android_User's_Guide, there is a table where it specifies the size of every needed partition.

Android storage partitions.jpg

Hope this information may be useful to you.

Best regards,

Diego.

79 Views
Contributor II

unpack_bootimg --boot_img boot.img --out ab_dir.

The unpack_bootimg will tell you the memory address to load the ramdisk , kernel and device tree.

You can get a copy from android_build drectory. Just do a locate unpack_bootimg

android_build/system/core/mkbootimg/unpack_bootimg

0 Kudos