diff options
author | Fathi Boudra <fathi.boudra@linaro.org> | 2016-11-17 10:23:25 +0200 |
---|---|---|
committer | Fathi Boudra <fathi.boudra@linaro.org> | 2016-11-17 09:53:14 +0000 |
commit | 99d27d6eaedc94283c22e7baa3f9cf0bcf44b70e (patch) | |
tree | 7bc32817ac4ddeb7153e783e00e3e66ae5e6e4b2 /96boards-b2260/hwpacks | |
parent | 0ef43cbcc522fff50a014c47a3fb8d025580a9b7 (diff) |
96boards-b2260: add b2260 bootrom in the boot partition
Change-Id: I8a95bd490c08765e0c3a1b860963bdf41dfccdad
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to '96boards-b2260/hwpacks')
-rw-r--r-- | 96boards-b2260/hwpacks/u-bootrom.script | 69 | ||||
-rw-r--r-- | 96boards-b2260/hwpacks/u-bootrom.script-kernel | 60 | ||||
-rw-r--r-- | 96boards-b2260/hwpacks/u-bootrom.script-netboot | 42 |
3 files changed, 0 insertions, 171 deletions
diff --git a/96boards-b2260/hwpacks/u-bootrom.script b/96boards-b2260/hwpacks/u-bootrom.script deleted file mode 100644 index 745be70630..0000000000 --- a/96boards-b2260/hwpacks/u-bootrom.script +++ /dev/null @@ -1,69 +0,0 @@ -# u-bootrom supports u-boot.2015 commands plus few extras. -# -# Extra variables: -# script_dev_usb 'usb X.Y' default usb instance:partition to boot from. -# script_dev_mmc 'mmc X.Y' default mmc instance:partition to boot from. -# script_dev $script_usb|mmc_dev depending on media where boot script was found. -# script_fsload 'fatload' or 'ext2load' depending on which was used to load boot script. -# dram_base DDR start address -# dram_size DDR size (in bytes) -# load_addr default load address (DDR start) -# board board id ("b2120", "b2260", ...) -# -# Extra commands: -# hpen holding pen reconfiguration and kick support, for SMP boot. -# boot_optee OPTEE specific boot command -# -# > -# > help boot_optee -# -# boot_optee s_entry [s_arg0 [s_arg1 [s_arg2 [s_arg3]]]] ns_entry -# -# - boot a secure and a non secure application -# 's_entry' is the secure application entry point -# 's_arg0-3' are the 4 parameters passed to the secure application -# 'ns_entry' is the non-secure application entry point. -# ns_entry has no argument. Secure application is -# expected to provide args, if any. Secure expects -# only an physical entry point from non secure. -# > -# > help hpen -# -# hpen prepare <addr> [1stage|2stage] -# -# - prepare a 1stage or a 2stage hpen sequence. -# <addr> specifies the address of the hpen kicker to use. hexa. -# -# hpen kick hpen|<entrypoint> -# -# - kick the loaded hpen. returns only once cores have all left -# the current hpen loop. -# -# <entrypoint> is the target address core shall branch to. -# -# Using string "hpen" allows to enter back to the hpen sequence. -# It allows to reprogram a specific hpen setup. -# -# At u-boot entry, secondary boot core are placed in a 1stage hpen -# sequence with a local ERAM cell address as hpen kicker: 0x094100A4. -# magic value! -# > -# -# Traces considerations: -# -# u-bootrom enables silent console. To get some logs from this script one -# can disable silent mode ("setenv silent;") and re-enable silent mode -# ("setenv silent 1") in this script. -# ----------------------------------------------------------------------- -# -# This is the default install: by default, boot the kernel for current board -# - -script_path="b2260/u-bootrom.script-kernel" - -setenv silent; -echo "[bootscript] boot from $script_path" -setenv silent 1 - -$script_fsload $script_dev $load_addr $script_path -source $load_addr $filesize diff --git a/96boards-b2260/hwpacks/u-bootrom.script-kernel b/96boards-b2260/hwpacks/u-bootrom.script-kernel deleted file mode 100644 index 6c9c3dfae5..0000000000 --- a/96boards-b2260/hwpacks/u-bootrom.script-kernel +++ /dev/null @@ -1,60 +0,0 @@ -# u-bootrom supports u-boot.2015 commands plus few extras. -# -# Extra variables: -# script_dev_usb 'usb X.Y' default usb instance:partition to boot from. -# script_dev_mmc 'mmc X.Y' default mmc instance:partition to boot from. -# script_dev $script_usb|mmc_dev depending on media where boot script was found. -# script_fsload 'fatload' or 'ext2load' depending on which was used to load boot script. -# dram_base DDR start address -# dram_size DDR size (in bytes) -# load_addr default load address (DDR start) -# board board id ("b2120", "b2260", ...) -# -# Extra commands: -# hpen holding pen reconfiguration and kick support, for SMP boot. -# boot_optee OPTEE specific boot command -# -# u-bootrom enables silent console. To get some logs from this script one -# can disable silent mode ("setenv silent;") and re-enable silent mode -# ("setenv silent 1") in this script. - -# disable silent mode to log kernel boot attempt -setenv silent; - -# images location - -fdt_path="stih410-b2260.dtb" -fdt_addr=0x47000000 - -kernel_path="uImage" -kernel_addr=0x60000000 - -# load images -echo "[bootscript] loadbooting from $script_dev using $script_fsload" - -$script_fsload $script_dev $fdt_addr $fdt_path -$script_fsload $script_dev $kernel_addr $kernel_path - -# boot images - -dcache flush; - -echo "[bootscript] prepare secondaries in holding pen: kicker at 0x094100A4" - -hpen prepare 0x094100A4 -hpen kick hpen - -setenv bootargs_sd 'console=ttyAS1,115200 CONSOLE=/dev/ttyAS1 consoleblank=0 root=/dev/mmcblk0p2 rootfstype=ext4 rw rootwait mem=992M@0x40000000 vmalloc=256m ' -setenv bootargs_usb 'console=ttyAS1,115200 CONSOLE=/dev/ttyAS1 consoleblank=0 root=/dev/sda2 rootfstype=ext4 rw rootwait mem=992M@0x40000000 vmalloc=256m ' - -setenv bootargs $bootargs_sd -if test "$script_dev" = "$script_dev_usb"; then setenv bootargs $bootargs_usb; fi - -setenv fdt_high 0xFFFFFFFF - -echo "[bootscript] kernel bootargs:" -echo $bootargs -echo -echo "[bootscript] booting kernel $kernel_addr, fdt $fdt_addr" - -bootm $kernel_addr - $fdt_addr diff --git a/96boards-b2260/hwpacks/u-bootrom.script-netboot b/96boards-b2260/hwpacks/u-bootrom.script-netboot deleted file mode 100644 index 4cc017a7ca..0000000000 --- a/96boards-b2260/hwpacks/u-bootrom.script-netboot +++ /dev/null @@ -1,42 +0,0 @@ -# u-bootrom supports u-boot.2015 commands plus few extras. -# -# Extra variables: -# script_dev_usb 'usb X.Y' default usb instance:partition to boot from. -# script_dev_mmc 'mmc X.Y' default mmc instance:partition to boot from. -# script_dev $script_usb|mmc_dev depending on media where boot script was found. -# script_fsload 'fatload' or 'ext2load' depending on which was used to load boot script. -# dram_base DDR start address -# dram_size DDR size (in bytes) -# load_addr default load address (DDR start) -# board board id ("b2120", "b2260", ...) -# -# Extra commands: -# hpen holding pen reconfiguration and kick support, for SMP boot. -# boot_optee OPTEE specific boot command -# -# u-bootrom enables silent console. To get some logs from this script one -# can disable silent mode ("setenv silent;") and re-enable silent mode -# ("setenv silent 1") in this script. - -# disable silent mode to log where we attemp to boot from -setenv silent; - -# images location - -setenv serverip 'X.X.X.X' - -script_path="boot_network_${board}.scr" - -# load images - -echo "[bootscript] fetching $script_path from tftp:$serverip" - -setenv autoload no -dhcp -tftp $load_addr $script_path - -# boot images - -echo "[bootscript] script found, source it." - -source $load_addr |