From 3d749b1ad99bb4315ccaf65f5db09434a73a648f Mon Sep 17 00:00:00 2001 From: Kevin Mihelich Date: Sat, 22 Oct 2016 18:25:42 +0000 Subject: [PATCH] alarm/uboot-usbarmory to 2016.09-1 --- .../0001-arch-linux-arm-modifications.patch | 12 ++++++------ alarm/uboot-usbarmory/PKGBUILD | 8 ++++---- alarm/uboot-usbarmory/boot.txt | 17 +++++++++++++++-- 3 files changed, 25 insertions(+), 12 deletions(-) diff --git a/alarm/uboot-usbarmory/0001-arch-linux-arm-modifications.patch b/alarm/uboot-usbarmory/0001-arch-linux-arm-modifications.patch index c7921de47..61016a68e 100644 --- a/alarm/uboot-usbarmory/0001-arch-linux-arm-modifications.patch +++ b/alarm/uboot-usbarmory/0001-arch-linux-arm-modifications.patch @@ -1,4 +1,4 @@ -From bc3a7ffa4219dd717b88cf2b38d7476bb9fa2efb Mon Sep 17 00:00:00 2001 +From d3e9ed9d66d16bd9beb17f9ab7970499ef039adb Mon Sep 17 00:00:00 2001 From: Kevin Mihelich Date: Sat, 27 Jun 2015 12:37:40 -0600 Subject: [PATCH] arch linux arm modifications @@ -8,18 +8,18 @@ Subject: [PATCH] arch linux arm modifications 1 file changed, 2 insertions(+) diff --git a/include/configs/usbarmory.h b/include/configs/usbarmory.h -index 8568663..8abae4b 100644 +index 23092db..995532a 100644 --- a/include/configs/usbarmory.h +++ b/include/configs/usbarmory.h -@@ -22,6 +22,8 @@ +@@ -23,6 +23,8 @@ #include +#define CONFIG_IDENT_STRING " Arch Linux ARM" + - /* U-Boot commands */ - /* U-Boot environment */ + #define CONFIG_ENV_OFFSET (6 * 64 * 1024) + #define CONFIG_ENV_SIZE (8 * 1024) -- -2.9.0 +2.10.0 diff --git a/alarm/uboot-usbarmory/PKGBUILD b/alarm/uboot-usbarmory/PKGBUILD index 60de2613f..311fd58bf 100644 --- a/alarm/uboot-usbarmory/PKGBUILD +++ b/alarm/uboot-usbarmory/PKGBUILD @@ -5,7 +5,7 @@ buildarch=4 pkgname=uboot-usbarmory -pkgver=2016.07 +pkgver=2016.09 pkgrel=1 pkgdesc="U-Boot for USB armory" arch=('armv7h') @@ -18,9 +18,9 @@ source=("ftp://ftp.denx.de/pub/u-boot/u-boot-${pkgver}.tar.bz2" '0001-arch-linux-arm-modifications.patch' 'boot.txt' 'mkscr') -md5sums=('425a3fa610a7d972e5092a0e92276c70' - '6929dfaf24a8f8516149e65e64d7ada4' - '3e9799661eec04d1ce0f3fe20ed21838' +md5sums=('2e69dda70eb28f8042d2f9fbeb1feaa1' + '99bdb7f9887216634e688888d878efcb' + '45535e1c506ce5083bb916492b6d820f' '021623a04afd29ac3f368977140cfbfd') prepare() { diff --git a/alarm/uboot-usbarmory/boot.txt b/alarm/uboot-usbarmory/boot.txt index 623b178cc..c544c65aa 100644 --- a/alarm/uboot-usbarmory/boot.txt +++ b/alarm/uboot-usbarmory/boot.txt @@ -1,12 +1,25 @@ +# After modifying, run ./mkscr + +# Uncomment to set the USB OTG port to host mode (default is peripheral) +#setenv otg_host yes + part uuid ${devtype} ${devnum}:${bootpart} uuid setenv bootargs console=ttyGS0,115200 console=${console} root=PARTUUID=${uuid} rw rootwait if load ${devtype} ${devnum}:${bootpart} ${kernel_addr_r} /boot/zImage; then if load ${devtype} ${devnum}:${bootpart} ${fdt_addr_r} /boot/dtbs/${fdtfile}; then + if test -n ${otg_host}; then + echo USB OTG: Host mode + fdt addr ${fdt_addr_r} + fdt get value usbotg /__symbols__ usbotg + fdt set ${usbotg} dr_mode host + else + echo USB OTG: Peripheral mode + fi if load ${devtype} ${devnum}:${bootpart} ${ramdisk_addr_r} /boot/initramfs-linux.img; then bootz ${kernel_addr_r} ${ramdisk_addr_r}:${filesize} ${fdt_addr_r}; else bootz ${kernel_addr_r} - ${fdt_addr_r}; - fi; - fi; + fi + fi fi