summaryrefslogtreecommitdiff
path: root/package/u-boot-avr32/files
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2017-07-17 20:24:44 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2017-07-17 20:25:13 +0200
commit18f01ece1b4915d8ddc400abcb48a8123a1ea863 (patch)
tree1b1738cb35ec51ebd45e39369ba0a4c4e03ff144 /package/u-boot-avr32/files
parentef32829062c1e25705502d49f28c34dbf263f3d0 (diff)
u-boot-avr32: add latest u-boot with avr32 support
Diffstat (limited to 'package/u-boot-avr32/files')
-rw-r--r--package/u-boot-avr32/files/boot.script.bpi4
-rw-r--r--package/u-boot-avr32/files/boot.script.clearfog4
-rw-r--r--package/u-boot-avr32/files/boot.script.imx64
-rw-r--r--package/u-boot-avr32/files/fw_env.config1
-rw-r--r--package/u-boot-avr32/files/uEnv.txt.bbb12
-rwxr-xr-xpackage/u-boot-avr32/files/uboot_print_env5
-rwxr-xr-xpackage/u-boot-avr32/files/uboot_set_env5
7 files changed, 35 insertions, 0 deletions
diff --git a/package/u-boot-avr32/files/boot.script.bpi b/package/u-boot-avr32/files/boot.script.bpi
new file mode 100644
index 000000000..754c43dba
--- /dev/null
+++ b/package/u-boot-avr32/files/boot.script.bpi
@@ -0,0 +1,4 @@
+setenv bootargs console=tty0 console=ttyS0,115200 root=/dev/mmcblk0p1 rootwait
+ext4load mmc 0:1 0x42000000 boot/${fdtfile}
+ext4load mmc 0:1 0x48000000 boot/kernel
+bootm 0x48000000 - 0x42000000
diff --git a/package/u-boot-avr32/files/boot.script.clearfog b/package/u-boot-avr32/files/boot.script.clearfog
new file mode 100644
index 000000000..78c2bfdc3
--- /dev/null
+++ b/package/u-boot-avr32/files/boot.script.clearfog
@@ -0,0 +1,4 @@
+setenv bootargs 'console=ttyS0,115200 root=/dev/mmcblk0p1 rootwait'
+ext2load mmc 0:1 0x01800000 /boot/armada-388-clearfog.dtb
+ext2load mmc 0:1 0x02000000 /boot/kernel
+bootz 0x02000000 - 0x01800000
diff --git a/package/u-boot-avr32/files/boot.script.imx6 b/package/u-boot-avr32/files/boot.script.imx6
new file mode 100644
index 000000000..24d1b2a93
--- /dev/null
+++ b/package/u-boot-avr32/files/boot.script.imx6
@@ -0,0 +1,4 @@
+setenv bootargs 'console=ttymxc0,115200 video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24,bpp=32 root=/dev/mmcblk0p1'
+ext4load mmc 0:1 0x18000000 boot/${fdtfile}
+ext4load mmc 0:1 0x10800000 boot/kernel
+bootz 0x10800000 - 0x18000000
diff --git a/package/u-boot-avr32/files/fw_env.config b/package/u-boot-avr32/files/fw_env.config
new file mode 100644
index 000000000..5571d60e0
--- /dev/null
+++ b/package/u-boot-avr32/files/fw_env.config
@@ -0,0 +1 @@
+/mnt/uboot.env 0x0000 0x4000
diff --git a/package/u-boot-avr32/files/uEnv.txt.bbb b/package/u-boot-avr32/files/uEnv.txt.bbb
new file mode 100644
index 000000000..3d83fe424
--- /dev/null
+++ b/package/u-boot-avr32/files/uEnv.txt.bbb
@@ -0,0 +1,12 @@
+loadaddr=0x82000000
+fdtaddr=0x88000000
+fdt_high=0xffffffff
+mmcroot=/dev/mmcblk0p2
+mmcfs=ext4
+kernelfile=kernel
+console=ttyO2,115200n8
+loadximage=load mmc 0:2 ${loadaddr} /boot/${kernelfile}
+loadxfdt=load mmc 0:2 ${fdtaddr} /boot/${fdtfile}
+loadall=run loadximage; run loadxfdt;
+mmcargs=setenv bootargs console=${console} root=${mmcroot} rootfstype=${mmcfs}
+uenvcmd=run loadall; run mmcargs; bootz ${loadaddr} - ${fdtaddr};
diff --git a/package/u-boot-avr32/files/uboot_print_env b/package/u-boot-avr32/files/uboot_print_env
new file mode 100755
index 000000000..7231e1a47
--- /dev/null
+++ b/package/u-boot-avr32/files/uboot_print_env
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+mount -r /dev/mmcblk0p1 /mnt
+fw_printenv "$@"
+umount /mnt
diff --git a/package/u-boot-avr32/files/uboot_set_env b/package/u-boot-avr32/files/uboot_set_env
new file mode 100755
index 000000000..7b5a33ccc
--- /dev/null
+++ b/package/u-boot-avr32/files/uboot_set_env
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+mount /dev/mmcblk0p1 /mnt
+fw_setenv "$@"
+umount /mnt