U-boot environment binary and SAM-BA scripts

AT91SAM9 Evaluation Boards

Moderator: nferre

mikepro
Posts: 27
Joined: Thu Jan 23, 2014 9:31 pm

U-boot environment binary and SAM-BA scripts

Wed Jul 02, 2014 10:32 pm

Hi

In sam-ba script (demo_script_linux_nandflash), there's a line for programming the u-boot environment binary file (ubootEnvtFileNandFlash.bin) to NAND flash, but there's also a whole different section for setting the same u-boot variables in the script file:

Code: Select all

set bootCmd [set_boot_cmd $boardFamily $dtbLoadAddr $dtbAddr $dtbSize $kernelLoadAddr $kernelAddr $kernelSize]

lappend u_boot_variables \
    "bootdelay=1" \
    "baudrate=115200" \
    "stdin=serial" \
    "stdout=serial" \
    "stderr=serial" \
    "bootargs=console=ttyS0,115200 mtdparts=atmel_nand:256k(bootstrap)ro,512k(uboot)ro,256k(env),256k(env_redundant),
     256k(spare),512k(dtb),6M(kernel)ro,-(rootfs) rootfstype=ubifs ubi.mtd=7 root=ubi0:rootfs rw" \
    "$bootCmd"
I don't understand the SAM-BA tcl script so well..

Which variables the U-boot will have after re-flashing the NAND with this script, the variables from the ubootEnvtFileNandFlash.bin or variables set in the script?

Thanks for any advice!

Return to “Evaluation and Development Boards”

Who is online

Users browsing this forum: No registered users and 1 guest