Advertisement
venture37

simple boot.scr which import commands from a txt file

Oct 2nd, 2017
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. bootscr.txt
  2. -----------
  3. #mkubootimage -A arm -C none -O netbsd -T script -a 0 -n "NetBSD/evbarm boot" bootscr.txt boot.scr
  4. setenv myimportbootenv 'env import -t ${loadaddr} ${filesize}'
  5. setenv myloadbootenv 'fatload mmc ${mmcdev} ${loadaddr} myenv.txt'
  6. setenv prep 'mmc dev ${mmcdev}; mmc rescan;'
  7. setenv distro_bootcmd 'run prep; run myloadbootenv; run myimportbootenv; run ${board}_bootcmd'
  8.  
  9. myenv.txt (make sure there's a empty blank line at the end of the file)
  10. -----------------------------------------------------------------------
  11. am335x_bootcmd=fatload mmc ${mmcdev} 82000000 netbsd-BEAGLEBONE.ub; bootm 82000000 root=ld0a;
  12. jetson-tk1_bootcmd=fatload mmc 1:1 ${kernel_addr_r} netbsd-TEGRA.ub; fatload mmc 1:1 ${fdt_addr_r} tegra124-${board}.dtb; fdt addr ${fdt_addr_r}; bootm ${kernel_addr_r} - ${fdt_addr_r} root=ld1a;
  13. omap3_bootcmd=fatload mmc ${mmcdev} 81000000 netbsd-BEAGLEBOARD.ub; bootm 81000000 root=ld0a;
  14. p2371-2180_bootcmd=echo "Implement me"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement