Skip to content

Commit 528f3e4

Browse files
committed
labs/sysdev-kernel-cross-compiling: use \arch instead of \board
The logic to show the final U-Boot command used \board instead of \arch to decide between bootz and booti, which worked fine when we had just BeaglePlay as an ARM64 platform, but will fail with more ARM64 platforms supported. Fix that. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
1 parent 84bf3f7 commit 528f3e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

labs/sysdev-kernel-cross-compiling/sysdev-kernel-cross-compiling.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ \section{Load and boot the kernel using U-Boot}
254254
reset. Reset the board, and customize \code{bootcmd}:
255255
256256
\begin{ubootinput}
257-
=> setenv bootcmd 'tftp %\zimageboardaddr\ \ifdefstring{\board}{beagleplay}{Image.gz}{zImage}; tftp \dtbboardaddr\ {\dtname}.dtb; \ifdefstring{\board}{beagleplay}{booti}{bootz} \zimageboardaddr\ - \dtbboardaddr'%
257+
=> setenv bootcmd 'tftp %\zimageboardaddr\ \ifdefstring{\board}{beagleplay}{Image.gz}{zImage}; tftp \dtbboardaddr\ {\dtname}.dtb; \ifdefstring{\arch}{ARM64}{booti}{bootz} \zimageboardaddr\ - \dtbboardaddr'%
258258
=> saveenv
259259
\end{ubootinput}
260260

0 commit comments

Comments
 (0)