AnsweredAssumed Answered

how to know  address for mfgtool ucl2.xml

Question asked by jiu jin hong on Jul 31, 2018
Latest reply on Aug 6, 2018 by jiu jin hong

Hi,  We have download Yocto bsp(Uboot 2015.4, Kernel 4.X.X)  for building fsl-image-mfgtool-initramfs and generated U-boot\uImage\initramfs\dtb.

U-boot use below env for usb

  9 #define CONFIG_MFG_ENV_SETTINGS \
 10   "mfgtool_args=setenv bootargs console=" CONFIG_CONSOLE_DEV ",115200 " \
 11     "rdinit=/linuxrc " \
 12     "g_mass_storage.stall=0 g_mass_storage.removable=1 " \
 13     "g_mass_storage.file=/fat g_mass_storage.ro=1 " \
 14     "g_mass_storage.idVendor=0x066F g_mass_storage.idProduct=0x37FF "\
 15     "g_mass_storage.iSerialNumber=\"\" "\
 16     "enable_wait_mode=off "\
 17     CONFIG_MFG_NAND_PARTITION \
 18     "\0" \
 19     "initrd_addr=0x12C00000\0" \
 20     "initrd_high=0xffffffff\0" \
 21     "bootcmd_mfg=run mfgtool_args;bootz ${loadaddr} ${initrd_addr} ${fdt_addr};\0" \

 

So, how to fill load address for uImage\initramfs\dtb  in mfgtool in ucl2.xml (below ucl2.xml taken from others, take as refernce).

 

    <CMD state="BootStrap" type="boot" body="BootStrap" file ="u-boot-mx6q" >Loading U-boot</CMD>
    <CMD state="BootStrap" type="load" file="uImage" address="0x10800000"
        loadSection="OTH" setSection="OTH" HasFlashHeader="FALSE" >Loading Kernel.</CMD>
    <CMD state="BootStrap" type="load" file="initramfs.cpio.gz.uboot" address="0x10C00000"
        loadSection="OTH" setSection="OTH" HasFlashHeader="FALSE" >Loading Initramfs.</CMD>

 

In Manufacturing Tool V2 Linux or Android Firmware Development Guide V2.doc, mentioned some macro need to define in mx6sabre_common.h,  it need to apply to bsp as below?

 

  • #define CONFIG_BOOTCOMMAND      "bootm 0x10800000 0x10F00000  0x12000000"

Outcomes