summaryrefslogtreecommitdiff
path: root/libre/uboot4extlinux-am335x
diff options
context:
space:
mode:
Diffstat (limited to 'libre/uboot4extlinux-am335x')
-rw-r--r--libre/uboot4extlinux-am335x/PKGBUILD88
-rw-r--r--libre/uboot4extlinux-am335x/extlinux.conf21
-rw-r--r--libre/uboot4extlinux-am335x/uboot4extlinux-am335x.install37
3 files changed, 0 insertions, 146 deletions
diff --git a/libre/uboot4extlinux-am335x/PKGBUILD b/libre/uboot4extlinux-am335x/PKGBUILD
deleted file mode 100644
index 6d76ae497..000000000
--- a/libre/uboot4extlinux-am335x/PKGBUILD
+++ /dev/null
@@ -1,88 +0,0 @@
-# U-Boot: BeagleBone and BeagleBone Black
-# Maintainer: André Silva <emulatorman@hyperbola.info>
-# Contributor: Jookia <166291@gmail.com>
-# Contributor: Márcio Silva <coadde@hyperbola.info>
-
-pkgbase=uboot4extlinux-am335x
-pkgname=('uboot4extlinux-am335x_bone'
- 'uboot4extlinux-chiliboard')
-pkgver=2020.04
-pkgrel=1
-arch=('armv7h')
-url="http://git.denx.de/u-boot.git/"
-license=('GPL')
-makedepends=('bc' 'bison' 'dtc' 'flex' 'python' 'python2' 'swig')
-backup=(boot/extlinux/extlinux.conf)
-source=("ftp://ftp.denx.de/pub/u-boot/u-boot-${pkgver}.tar.bz2"
- 'extlinux.conf')
-sha256sums=('fe732aaf037d9cc3c0909bad8362af366ae964bbdac6913a34081ff4ad565372'
- 'SKIP')
-
-boards=('am335x_evm'
- 'chiliboard')
-
-prepare() {
- cd u-boot-${pkgver}
- echo 'CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=0x200' >> configs/am335x_evm_defconfig
-}
-
-build() {
- cd u-boot-${pkgver}
-
- unset CFLAGS CXXFLAGS LDFLAGS
-
- for i in ${boards[@]}; do
- mkdir -p ../bin_${i}
- make distclean
- make ${i}_defconfig
- echo 'CONFIG_IDENT_STRING=" Parabola GNU/Linux-libre"' >> .config
- make EXTRAVERSION=-${pkgrel}
- mv -f MLO u-boot.img ../bin_${i}
- done
-}
-
-package_uboot4extlinux-am335x_bone() {
- pkgdesc="U-Boot with Extlinux support for various BeagleBones, the AM335x GP EVM and EVM SK EVM SK"
-
- install=${pkgbase}.install
- provides=('uboot4extlinux-am335x')
- conflicts=('uboot-am335x_bone' 'uboot4grub-am335x_bone')
-
- install -d "${pkgdir}"/boot/extlinux
- install -d "${pkgdir}"/boot/u-boot/images/
-
- install -Dm644 \
- bin_am335x_evm/MLO \
- bin_am335x_evm/u-boot.img \
- "${pkgdir}"/boot/u-boot/images/
-
- install -Dm644 extlinux.conf "${pkgdir}"/boot/extlinux
-
- # Package documentation as well
- install -d "${pkgdir}"/usr/share/doc/u-boot
- # The README might move in doc/board/ at some point
- install -Dm644 u-boot-${pkgver}/board/ti/am335x/README "${pkgdir}"/usr/share/doc/u-boot/am335x_bone.txt
-}
-
-package_uboot4extlinux-chiliboard() {
- pkgdesc="U-Boot with Extlinux support for the ChiliBoard"
-
- install=${pkgbase}.install
- provides=('uboot4extlinux-am335x')
- conflicts=('uboot-chiliboard')
-
- install -d "${pkgdir}"/boot/extlinux
- install -d "${pkgdir}"/boot/u-boot/images/
-
- install -Dm644 \
- bin_chiliboard/MLO \
- bin_chiliboard/u-boot.img \
- "${pkgdir}"/boot/u-boot/images/
-
- install -Dm644 extlinux.conf "${pkgdir}"/boot/extlinux
-
- # Package documentation as well
- install -d "${pkgdir}"/usr/share/doc/u-boot
- # The README might move in doc/board/ at some point
- install -Dm644 u-boot-${pkgver}/board/grinn/chiliboard/README "${pkgdir}"/usr/share/doc/u-boot/chiliboard.txt
-}
diff --git a/libre/uboot4extlinux-am335x/extlinux.conf b/libre/uboot4extlinux-am335x/extlinux.conf
deleted file mode 100644
index 86d5e0df7..000000000
--- a/libre/uboot4extlinux-am335x/extlinux.conf
+++ /dev/null
@@ -1,21 +0,0 @@
-menu title Welcome to U-Boot with Extlinux support!
-
-timeout 50
-
-label Parabola GNU/Linux-libre, linux-libre kernel
- kernel /boot/vmlinuz-linux-libre
- initrd /boot/initramfs-linux-libre.img
- append coherent_pool=1M console=ttyO0,115200 root=/dev/mmcblk0p1 rw rootwait
- fdtdir /boot/dtbs/linux-libre
-
-label Parabola GNU/Linux-libre, linux-libre-lts kernel
- kernel /boot/vmlinuz-linux-libre-lts
- initrd /boot/initramfs-linux-libre-lts.img
- append coherent_pool=1M console=ttyO0,115200 root=/dev/mmcblk0p1 rw rootwait
- fdtdir /boot/dtbs/linux-libre-lts
-
-label Parabola GNU/Linux-libre, linux-libre-pck kernel
- kernel /boot/vmlinuz-linux-libre-pck
- initrd /boot/initramfs-linux-libre-pck.img
- append coherent_pool=1M console=ttyO0,115200 root=/dev/mmcblk0p1 rw rootwait
- fdtdir /boot/dtbs/linux-libre-pck
diff --git a/libre/uboot4extlinux-am335x/uboot4extlinux-am335x.install b/libre/uboot4extlinux-am335x/uboot4extlinux-am335x.install
deleted file mode 100644
index f33e8c1e3..000000000
--- a/libre/uboot4extlinux-am335x/uboot4extlinux-am335x.install
+++ /dev/null
@@ -1,37 +0,0 @@
-flash_instructions() {
- echo "# dd if=/boot/u-boot/images/MLO of=/dev/mmcblk0 count=1 seek=1 conv=notrunc bs=128k"
- echo "# dd if=/boot/u-boot/images/u-boot.img of=/dev/mmcblk0 count=6 seek=2 conv=notrunc bs=128k"
-}
-
-extlinux_warning() {
- echo "==> WARNING: Remember to set up your kernels in /boot/extlinux/extlinux.conf"
-}
-
-flash_uboot() {
- root=$(mount | awk '/ on \/ / { print $1; }')
- if [[ $root =~ ^/dev/mmcblk.*$ ]]; then
- root=${root:0:12}
- echo "A new U-Boot version needs to be flashed onto $root."
- echo "Do you want to do this now? [y|N]"
- read -r shouldwe
- if [[ $shouldwe =~ ^([yY][eE][sS]|[yY])$ ]]; then
- dd if=/boot/u-boot/images/MLO of=$root bs=128k seek=1 count=1 conv=notrunc
- dd if=/boot/u-boot/images/u-boot.img of=$root bs=128k seek=2 count=6 conv=notrunc
- else
- echo "You can do this later by running:"
- flash_instructions
- fi
- else
- echo "Flash the new U-Boot version onto your boot device. For example:"
- flash_instructions
- fi
- extlinux_warning
-}
-
-post_install() {
- flash_uboot
-}
-
-post_upgrade() {
- flash_uboot
-}