Skip to content

Commit

Permalink
u-boot-xlnx-scr: Add PRE_BOOTENV variable for boot cmd files
Browse files Browse the repository at this point in the history
Based on github Pull Request #34. While that pull request is no longer
valid with other changes, the actual bug still exists.

Originally reported by Felix S(ubfx).

Signed-off-by: Sandeep Gundlupet Raju <[email protected]>
  • Loading branch information
grsandeep85 authored and mhatle committed Jul 25, 2023
1 parent bc6b462 commit 95f5ef2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
@@PRE_BOOTENV@@

@@KERNEL_BOOTCMD@@ @@KERNEL_LOAD_ADDRESS@@ @@RAMDISK_IMAGE_ADDRESS@@ @@DEVICETREE_ADDRESS@@
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@@PRE_BOOTENV@@

setenv sdbootdev @@SDBOOTDEV@@
setenv bootargs $bootargs root=/dev/mmcblk${sdbootdev}p2 rw rootwait earlycon clk_ignore_unused
fatload mmc $sdbootdev @@DEVICETREE_ADDRESS@@ @@DEVICE_TREE_NAME@@
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@@PRE_BOOTENV@@

if test -n "@@BITSTREAM@@"; then
fatload mmc $sdbootdev @@BITSTREAM_LOAD_ADDRESS@@ @@BITSTREAM_IMAGE@@ && fpga @@BITSTREAM_LOAD_TYPE@@ 0 @@BITSTREAM_LOAD_ADDRESS@@ ${filesize}
fi
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@@PRE_BOOTENV@@

setenv sdbootdev @@SDBOOTDEV@@
setenv bootargs $bootargs root=/dev/mmcblk${sdbootdev}p2 rw rootwait earlycon clk_ignore_unused
if test -n "@@BITSTREAM@@"; then
Expand Down

0 comments on commit 95f5ef2

Please sign in to comment.