Uboot configuration

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
6,666件の閲覧回数
vasileiostzizil
Contributor III

Hello

I want to change the configuration of the Uboot for iMX6.

The uboot as I understand has a configuration that goes that after you download it to eMMC or SD card goes and writes that configuration in the emmc before the main partition.

So even if you change uboot that configuration remainsis it is not formatted. You can change that configuration if you run some commands from the uboot have installed and write that conf.

That configuration is if the uboot will look from ethernet the linux image and etc.

My problem is that in the board I have I do not have a console output to set the configuration file after I download this uboot, So I have to set them up in the bin.

The ltib I am using has just the basic for building the uboot. Does anyone knows where exactly is the source  file for that or another more detail way to configure uboot

Thank you

Vasilis

タグ(3)
0 件の賞賛
返信
1 解決策
3,341件の閲覧回数
GraceH
Senior Contributor II

First run command  "dd if=/dev/zero of=/dev/mmcblk0 bs=512 seek=1536 count=16" to clean up u-boot parameter in  SD/eMMC card. If there is no boot parameter in SD/eMMC  card, the default boot parameter will be used.

Then modify u-boot-2009.08/include/configs/mx6dl_sabresd.h(depends which platform you use).

#define CONFIG_EXTRA_ENV_SETTINGS         \

    "netdev=eth0\0"           \

    "ethprime=FEC0\0"         \

    "uboot=u-boot.bin\0"      \

    "kernel=uImage\0"       \

    "nfsroot=/opt/eldk/arm\0"       \

    "bootargs_base=setenv bootargs console=ttymxc0,115200\0"\

    "bootargs_nfs=setenv bootargs ${bootargs} root=/dev/nfs "\

      "ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp\0"\

    "bootcmd_net=run bootargs_base bootargs_nfs; "    \

      "tftpboot ${loadaddr} ${kernel}; bootm\0" \

    "bootargs_mmc=setenv bootargs ${bootargs} ip=dhcp "     \

      "root=/dev/mmcblk0p1 rootwait\0"                \

    "bootcmd_mmc=run bootargs_base bootargs_mmc; "   \

    "mmc dev 3; " \

    "mmc read ${loadaddr} 0x800 0x2000; bootm\0"  \

    "bootcmd=run bootcmd_net\0"                             \

Grace

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
3,342件の閲覧回数
GraceH
Senior Contributor II

First run command  "dd if=/dev/zero of=/dev/mmcblk0 bs=512 seek=1536 count=16" to clean up u-boot parameter in  SD/eMMC card. If there is no boot parameter in SD/eMMC  card, the default boot parameter will be used.

Then modify u-boot-2009.08/include/configs/mx6dl_sabresd.h(depends which platform you use).

#define CONFIG_EXTRA_ENV_SETTINGS         \

    "netdev=eth0\0"           \

    "ethprime=FEC0\0"         \

    "uboot=u-boot.bin\0"      \

    "kernel=uImage\0"       \

    "nfsroot=/opt/eldk/arm\0"       \

    "bootargs_base=setenv bootargs console=ttymxc0,115200\0"\

    "bootargs_nfs=setenv bootargs ${bootargs} root=/dev/nfs "\

      "ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp\0"\

    "bootcmd_net=run bootargs_base bootargs_nfs; "    \

      "tftpboot ${loadaddr} ${kernel}; bootm\0" \

    "bootargs_mmc=setenv bootargs ${bootargs} ip=dhcp "     \

      "root=/dev/mmcblk0p1 rootwait\0"                \

    "bootcmd_mmc=run bootargs_base bootargs_mmc; "   \

    "mmc dev 3; " \

    "mmc read ${loadaddr} 0x800 0x2000; bootm\0"  \

    "bootcmd=run bootcmd_net\0"                             \

Grace

0 件の賞賛
返信
3,341件の閲覧回数
vasileiostzizil
Contributor III

Thank you

Vasilis

0 件の賞賛
返信
3,341件の閲覧回数
prasannakulkarni
Contributor IV

Hi Grace,

Am facing the same problem in the 2017.03 uboot.... We have got imx6s processor custom board... So using config for imx6dl defconfigs for building uboot... But it is not detecting emmc as a boot device... It is taking sd3 as boot device and tells mmc card not found.... Where to set this... can u plz help me.

0 件の賞賛
返信