Skip to content

Instantly share code, notes, and snippets.

@btgoodwin
Created January 19, 2017 14:23
Show Gist options
  • Save btgoodwin/4080bf834e76d5ce3728d7dae04912c4 to your computer and use it in GitHub Desktop.
Save btgoodwin/4080bf834e76d5ce3728d7dae04912c4 to your computer and use it in GitHub Desktop.
MicroZed Target
setenv envload 'mmc info && if fatload mmc 0 0x1000 uEnv.txt; then echo Importing uEnv.txt; env import -t 0x1000 $filesize; fi;'
setenv bootcmd 'run envload; run $modeboot'
saveenv
reset
kernel_image=uImage
devicetree_image=microzed-zynq7.dtb
bootargs=console=ttyPS0,115200 root=/dev/mmcblk0p2 rw rootwait earlyprintk
uenvcmd=echo Copying Linux from SD to RAM... && fatload mmc 0 0x3000000 ${kernel_image} && fatload mmc 0 0x2A00000 ${devicetree_image} && bootm 0x3000000 - 0x2A00000
modeboot=uenvcmd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment