This shows you the differences between two versions of the page.
|
ass:labs-2025:03:tasks:01 [2026/07/15 15:06] florin.stancu [01. Automatically booting our Linux] |
ass:labs-2025:03:tasks:01 [2026/07/15 15:33] (current) florin.stancu [01. Automatically booting our Linux] |
||
|---|---|---|---|
| Line 162: | Line 162: | ||
| Sample script: | Sample script: | ||
| <code> | <code> | ||
| - | preboot=fatload mmc 0:1 ${loadaddr} uboot.txt; env import -t ${loadaddr} ${filesize} | + | preboot=if fatload mmc 0:1 ${loadaddr} uboot.txt; then env import -t ${loadaddr} ${filesize}; fi |
| </code> | </code> | ||
| That's it! Create this file on your board's FAT32 partition (using the same ''key=value'' assignments separated by newlines syntax) and boot it! You should now see your new environment values (''env print'')! | That's it! Create this file on your board's FAT32 partition (using the same ''key=value'' assignments separated by newlines syntax) and boot it! You should now see your new environment values (''env print'')! | ||