Skip to content

Commit

Permalink
i.mx6q: configs: Add fdt_high and initrd_high variables
Browse files Browse the repository at this point in the history
To be able to load the device tree and initrd correctly, set
the fdt_high and initrd_high environment variables.

Using 0xffffffff implies that the device tree and the initrd
are initially copied to working addresses. This will avoid an
additional copy.

Loading the device tree to 0x30000000 and the initrd to 0x3c000000
should work for both boards, the ARM2 and SabreLite.

Example (SabreLite):

fatload mmc 0:2 0x10000000 uImage
fatload mmc 0:2 0x3c000000 uInitrd
fatload mmc 0:2 0x30000000 board.dtb
bootm 0x10000000 0x3c000000 0x30000000

Note: This requires that the kernel has CONFIG_HIGHMEM enabled.

Signed-off-by: Dirk Behme <[email protected]>
CC: Jason Liu <[email protected]>
CC: Stefano Babic <[email protected]>
Acked-by: Jason Liu <[email protected]>
  • Loading branch information
dirkbehme authored and albert-aribaud-u-boot committed Feb 12, 2012
1 parent 8e7d7b6 commit 7e9603e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/configs/mx6qarm2.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@
"script=boot.scr\0" \
"uimage=uImage\0" \
"console=ttymxc3\0" \
"fdt_high=0xffffffff\0" \
"initrd_high=0xffffffff\0" \
"mmcdev=1\0" \
"mmcpart=2\0" \
"mmcroot=/dev/mmcblk0p3 rootwait rw\0" \
Expand Down
2 changes: 2 additions & 0 deletions include/configs/mx6qsabrelite.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@
"script=boot.scr\0" \
"uimage=uImage\0" \
"console=ttymxc3\0" \
"fdt_high=0xffffffff\0" \
"initrd_high=0xffffffff\0" \
"mmcdev=0\0" \
"mmcpart=2\0" \
"mmcroot=/dev/mmcblk0p3 rootwait rw\0" \
Expand Down

0 comments on commit 7e9603e

Please sign in to comment.