From 02f538346f2f5aef302113383b2fdd55b16ef853 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Fri, 31 Oct 2014 10:00:20 +0100 Subject: [PATCH] uboot: Add default addresses for --uboot-addr --- README.md | 3 +++ novaboot | 9 +++++++++ 2 files changed, 12 insertions(+) diff --git a/README.md b/README.md index 47d45f5..08028ee 100644 --- a/README.md +++ b/README.md @@ -458,6 +458,9 @@ can currently be accomplished by the following options: **--amt**, where name is one of _kernel_, _ramdisk_ or _fdt_ (flattened device tree). + The default addresses are ${_name_\_addr\_r}, i.e. U-Boot environment + variables used by convention for this purpose. + - --uboot-cmd=_command_ Specifies U-Boot command used to execute the OS. If the command diff --git a/novaboot b/novaboot index 6146f3f..42743a7 100755 --- a/novaboot +++ b/novaboot @@ -110,6 +110,12 @@ GetOptions ("target|t=s" => \$explicit_target); my ($amt, @append, $bender, @chainloaders, $concat, $config_name_opt, $dhcp_tftp, $dump_opt, $dump_config, @exiton, $exiton_timeout, @expect_raw, $gen_only, $grub_config, $grub_prefix, $grub_preamble, $grub2_prolog, $grub2_config, $help, $ider, $iprelay, $iso_image, $interactive, $kernel_opt, $make, $man, $no_file_gen, $off_opt, $on_opt, $pulsar, $pulsar_root, $qemu, $qemu_append, $qemu_flags_cmd, $remote_cmd, $remote_expect, $reset, $reset_cmd, $rom_prefix, $rsync_flags, @scriptmod, $scons, $serial, $server, $stty, $tftp, $tftp_port, $uboot, %uboot_addr, $uboot_cmd, @uboot_init); +%uboot_addr = ( + 'kernel' => '${kernel_addr_r}', + 'ramdisk' => '${ramdisk_addr_r}', + 'fdt' => '${fdt_addr_r}', + ); + $rsync_flags = ''; $rom_prefix = 'rom://'; $stty = 'raw -crtscts -onlcr 115200'; @@ -1628,6 +1634,9 @@ Load address of U-Boot's C command for loading I, where name is one of I, I or I (flattened device tree). +The default addresses are ${I_addr_r}, i.e. U-Boot environment +variables used by convention for this purpose. + =item --uboot-cmd=I Specifies U-Boot command used to execute the OS. If the command -- 2.39.2