Announcement

Collapse
No announcement yet.

Updating u-boot imx6-rex pro

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #31
    I have changed bootargs, image and mmcroot and saved them (in uboot).

    this is my printenv output right now:

    Code:
    baudrate=115200
    boot_fdt=try
    bootargs=console=ttymxc0,115200 console=tty0 root=/dev/mmcblk0p1 rootwait video=HDMI-A-1:[email protected]
    bootcmd=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
    bootdelay=1
    bootscript=echo Running bootscript from mmc ...; source
    console=ttymxc0
    ethprime=FEC
    fdt_addr=0x18000000
    fdt_file=imx6-rexpro.dtb
    fdt_high=0xffffffff
    image=uImage
    initrd_high=0xffffffff
    loadaddr=0x10800000
    loadbootscript=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};
    loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}
    loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}
    mmcargs=setenv bootargs console=${console},${baudrate} ${video} root=${mmcroot}
    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=0
    mmcpart=1
    mmcroot=/dev/mmcblk0p1
    netargs=setenv bootargs console=${console},${baudrate} ${video} root=/dev/nfs ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp
    netboot=echo Booting from net ...; run set_ethernet; run netargs; tftp ${tftp_dir}/${image}; if test ${boot_fdt} = yes || test ${boot_fdt} = try; then if tftp ${fdt_addr} ${tftp_dir}/${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;
    script=boot-imx6-rexpro.scr
    set_ethernet=if test -n ${ethaddr}; then; else setenv ethaddr  XX:XX:XX:XX:XX:XX; fi; if test -n ${ipaddr}; then; else setenv ipaddr   192.168.0.150; fi; if test -n ${serverip}; then; else setenv serverip 192.168.0.1; fi; if test -n ${netmask}; then; else setenv netmask  255.255.255.0; fi
    spics=2
    spidev=2
    tftp_dir=imx6
    uboot=u-boot-imx6-rexpro.imx
    update_fdt=run set_ethernet; run update_set_filename; if mmc dev ${mmcdev}; then if tftp ${tftp_dir}/${upd_fdt}; then fatwrite mmc ${mmcdev}:${mmcpart} ${loadaddr} ${fdt_file} ${filesize}; fi; fi
    update_kernel=run set_ethernet; run update_set_filename; if mmc dev ${mmcdev}; then if tftp ${tftp_dir}/${upd_kernel}; then fatwrite mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image} ${filesize}; fi; fi
    update_script=run set_ethernet; run update_set_filename; if mmc dev ${mmcdev}; then if tftp ${tftp_dir}/${upd_script}; then fatwrite mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script} ${filesize}; fi; fi
    update_set_filename=if test -n ${upd_uboot}; then; else setenv upd_uboot u-boot-imx6-rexpro.imx; fi; if test -n ${upd_kernel}; then; else setenv upd_kernel zImage-imx6-rexpro; fi; if test -n ${upd_fdt}; then; else setenv upd_fdt    imx6-rexpro.dtb; fi; if test -n ${upd_script}; then; else setenv upd_script boot-imx6-rexpro.scr; fi
    update_uboot=run set_ethernet; run update_set_filename; if sf probe ${spidev}:${spics}; then if tftp ${tftp_dir}/${upd_uboot}; then setexpr align_sz ${filesize} + 0x7FFF; setexpr align_sz ${align_sz} / 0x8000; setexpr align_sz ${align_sz} * 0x8000; sf erase 0x0 ${align_sz}; sf write ${loadaddr} 0x400 ${filesize}; fi; fi
    What else should I change?

    Comment


    • #32
      Suriken did you consider to take our Learn the Essentials of creating uBoot, Linux and YOCTO online course? Maybe it could help you

      I am not really sure what should I answer - the uBoot environmental settings depends on the way how you use and boot up the board. There is quite good help in the uboot, when you run it, you can figure out what the current settings are and how you need to change them to

      Comment

      Working...
      X