summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjc_gargma <jc_gargma@iserlohn-fortress.net>2020-03-26 19:47:25 -0700
committerjc_gargma <jc_gargma@iserlohn-fortress.net>2020-03-26 19:47:25 -0700
commit397dbbc8ae21e823de9206b26c9a55fc218215ca (patch)
tree6f10c24de4286ebeb77ce48295cc9c53db6231f9
parentUpdated to build from source (diff)
downloaduboot-pinebookpro-397dbbc8ae21e823de9206b26c9a55fc218215ca.tar.xz
Updated to 20200308
-rw-r--r--PKGBUILD17
-rw-r--r--boot.txt23
-rw-r--r--mkscr9
3 files changed, 7 insertions, 42 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 97c2000..b2f2ceb 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,25 +9,23 @@
pkgname=uboot-pinebookpro
pkgver=2020.01
-pkgrel=4
+pkgrel=6
pkgdesc="U-Boot for Pinebook Pro"
arch=('aarch64')
#arch=('x86_64')
url='https://git.eno.space/pbp-uboot'
license=('GPL')
-backup=('boot/boot.txt' 'boot/boot.scr')
-depends=('uboot-tools')
+backup=('boot/extlinux/extlinux.conf')
makedepends=('arm-none-eabi-gcc' 'bc' 'dtc' 'git' 'python')
install=${pkgname}.install
_commit_atf=22d12c4148c373932a7a81e5d1c59a767e143ac2
source=("git+https://git.eno.space/pbp-uboot.git"
"git+https://github.com/ARM-software/arm-trusted-firmware.git#commit=$_commit_atf"
- 'boot.txt'
- 'mkscr')
+ 'extlinux.conf')
+ #'0001-nvme-support.patch')
b2sums=('SKIP'
'SKIP'
- 'cf03a62fd803187ab91db0942a5d7f835ffcf75c3b0b6ab8ca8c3e8a6762b328339580f3a80eeb1569bf4bca87a9cd60a83c3713338af2de4244717177c8d363'
- '4ea782264696aa85e30847413088bd338e2beb2ec4e57c2808f80af28ac613ab4ae82b37eb0ff902e66f8a12082a1f9a546bbf20dfeb4c43f59f465987043ede')
+ 'cf9a1e25f45de93fff23e015b92c0d8386ef0397643d9122e7a1a0560ed1531c66be1567399af71b1063841253a0a54367e821fb2a3273c91c65ac61b3dfe44d')
build() {
cd arm-trusted-firmware
@@ -43,8 +41,7 @@ build() {
package() {
cd pbp-uboot
- mkdir -p "${pkgdir}/boot"
+ mkdir -p "${pkgdir}/boot/extlinux"
cp idbloader.img u-boot.itb "${pkgdir}/boot"
- mkimage -A arm -O linux -T script -C none -n "U-Boot boot script" -d ${srcdir}/boot.txt "${pkgdir}/boot/boot.scr"
- cp ${srcdir}/{boot.txt,mkscr} "${pkgdir}"/boot
+ cp "${srcdir}"/extlinux.conf "${pkgdir}"/boot/extlinux
}
diff --git a/boot.txt b/boot.txt
deleted file mode 100644
index a10884f..0000000
--- a/boot.txt
+++ /dev/null
@@ -1,23 +0,0 @@
-# After modifying, run ./mkscr
-
-# MAC address (use spaces instead of colons)
-setenv macaddr da 19 c8 7a 6d f4
-
-part uuid ${devtype} ${devnum}:${bootpart} uuid
-setenv bootargs console=ttyS2,1500000 root=PARTUUID=${uuid} rw rootwait
-#setenv bootargs console=ttyS2,1500000 root=PARTUUID=${uuid} rw rootwait bootsplash.bootfile=bootsplash-themes/manjaro/bootsplash
-setenv fdtfile rockchip/rk3399-pinebook-pro.dtb
-
-if load ${devtype} ${devnum}:${bootpart} ${kernel_addr_r} /boot/Image; then
- if load ${devtype} ${devnum}:${bootpart} ${fdt_addr_r} /boot/dtbs/${fdtfile}; then
- fdt addr ${fdt_addr_r}
- fdt resize
- fdt set /ethernet@fe300000 local-mac-address "[${macaddr}]"
- if load ${devtype} ${devnum}:${bootpart} ${ramdisk_addr_r} /boot/initramfs-linux.img; then
- # This upstream Uboot doesn't support compresses cpio initrd, use kernel option to
- # load initramfs
- setenv bootargs ${bootargs} initrd=${ramdisk_addr_r},20M ramdisk_size=10M
- fi;
- booti ${kernel_addr_r} - ${fdt_addr_r};
- fi;
-fi
diff --git a/mkscr b/mkscr
deleted file mode 100644
index 272b6a7..0000000
--- a/mkscr
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/bash
-
-if [[ ! -x /usr/bin/mkimage ]]; then
- echo "mkimage not found. Please install uboot-tools:"
- echo " pacman -S uboot-tools"
- exit 1
-fi
-
-mkimage -A arm -O linux -T script -C none -n "U-Boot boot script" -d boot.txt boot.scr