If the command contains string _$NB\_MYIP_ then this string is
replaced by IPv4 address of eth0 interface.
+ See also `uboot` keyword in ["NOVABOOT SCRIPT SYNTAX"](#novaboot-script-syntax)).
+
- --uboot-addr _name_=_address_
Load address of U-Boot's `tftpboot` command for loading _name_,
redirected to a file. The ordering of commands is the same as they
appear in the novaboot script.
+Lines starting with `uboot` represent U-Boot commands that are sent
+to the target if **--uboot** option is given. Having a U-Boot line in
+the novaboot script is the same as passing an equivalent
+**--uboot-init** option to novaboot.
+
Example (Linux):
#!/usr/bin/env novaboot
(2 font-lock-function-name-face))
("^load\\>.*?< \\(.*\\)"
(1 font-lock-string-face))
- ("^run\\>" . font-lock-keyword-face)
+ ("^\\(run\\|uboot\\)\\>" . font-lock-keyword-face)
("^\\([A-Z_]+\\)=" (1 font-lock-variable-name-face))
))
push @$generated, {command => $1};
next;
}
+ if (/^uboot (.*)/) { # uboot line
+ # TODO: If U-Boot supports some interactive menud, it might
+ # make sense to store uboot lines per novaboot script.
+ push @uboot_init, $1;
+ next;
+ }
die("novaboot: Cannot parse script '$last_fn' line $.. Didn't you forget 'load' keyword?\n");
}
If the command contains string I<$NB_MYIP> then this string is
replaced by IPv4 address of eth0 interface.
+See also C<uboot> keyword in L</"NOVABOOT SCRIPT SYNTAX">).
+
=item --uboot-addr I<name>=I<address>
Load address of U-Boot's C<tftpboot> command for loading I<name>,
redirected to a file. The ordering of commands is the same as they
appear in the novaboot script.
+Lines starting with C<uboot> represent U-Boot commands that are sent
+to the target if B<--uboot> option is given. Having a U-Boot line in
+the novaboot script is the same as passing an equivalent
+B<--uboot-init> option to novaboot.
+
Example (Linux):
#!/usr/bin/env novaboot