Skip to content

Commit

Permalink
board vs device tree: give more hints
Browse files Browse the repository at this point in the history
Signed-off-by: Robert Nelson <[email protected]>
  • Loading branch information
RobertCNelson committed Apr 7, 2013
1 parent 8c7f581 commit 975f6ce
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tools/setup_sdcard.sh
Original file line number Diff line number Diff line change
Expand Up @@ -364,11 +364,17 @@ function boot_uenv_txt_template {

if [ ! "${need_dtbs}" ] ; then
cat >> ${TEMPDIR}/bootscripts/normal.cmd <<-__EOF__
#Board File:
xyz_mmcboot=run xyz_load_image; run xyz_load_initrd; echo Booting from mmc ...
#Device Tree File:
#xyz_mmcboot=run xyz_load_image; run xyz_load_initrd; run xyz_load_dtb; echo Booting from mmc ...
__EOF__
else
cat >> ${TEMPDIR}/bootscripts/normal.cmd <<-__EOF__
#Board File:
#xyz_mmcboot=run xyz_load_image; run xyz_load_initrd; echo Booting from mmc ...
#Device Tree File:
xyz_mmcboot=run xyz_load_image; run xyz_load_initrd; run xyz_load_dtb; echo Booting from mmc ...
__EOF__
Expand Down Expand Up @@ -434,11 +440,17 @@ function boot_uenv_txt_template {

if [ ! "${need_dtbs}" ] ; then
cat >> ${TEMPDIR}/bootscripts/normal.cmd <<-__EOF__
#Board File:
loaduimage=run xyz_mmcboot; run device_args; ${boot} ${kernel_addr} ${initrd_addr}:\${initrd_size}
#Device Tree File:
#loaduimage=run xyz_mmcboot; run device_args; ${boot} ${kernel_addr} ${initrd_addr}:\${initrd_size} ${dtb_addr}
__EOF__
else
cat >> ${TEMPDIR}/bootscripts/normal.cmd <<-__EOF__
#Board File:
#loaduimage=run xyz_mmcboot; run device_args; ${boot} ${kernel_addr} ${initrd_addr}:\${initrd_size}
#Device Tree File:
loaduimage=run xyz_mmcboot; run device_args; ${boot} ${kernel_addr} ${initrd_addr}:\${initrd_size} ${dtb_addr}
__EOF__
Expand Down

0 comments on commit 975f6ce

Please sign in to comment.