| /* SPDX-License-Identifier: GPL-2.0+ */ |
| |
| console=ttyS2,115200n8 |
| fdtfile=am3517-evm.dtb |
| fdtaddr=0x82C00000 |
| vram=16M |
| bootenv=uEnv.txt |
| mmcdev=0 |
| mmcpart=1 |
| mmcroot=/dev/mmcblk0p2 rw |
| mmcrootfstype=ext4 rootwait fixrtc |
| mmcargs=setenv bootargs console=${console} ${mtdparts} ${optargs} root=${mmcroot} rootfstype=${mmcrootfstype} ${cmdline} |
| nandargs=setenv bootargs console=${console} ${mtdparts} ${optargs} root=ubi0:rootfs rw ubi.mtd=rootfs rootfstype=ubifs rootwait ${cmdline} |
| loadbootenv=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${bootenv} |
| importbootenv=echo "Importing environment from mmc ..."; env import -t ${loadaddr} ${filesize} |
| bootscript=echo "Running bootscript from mmc ..."; source ${loadaddr} |
| loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${bootfile} |
| loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdtaddr} ${fdtfile} |
| mmcboot=echo "Booting from mmc ..."; run mmcargs; bootz ${loadaddr} - ${fdtaddr} |
| nandboot=echo "Booting from nand ..."; run nandargs; nand read ${loadaddr} 2a0000 800000; nand read ${fdtaddr} aa0000 80000; bootm ${loadaddr} - ${fdtaddr} |