summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libre/uboot4extlinux-am335x/PKGBUILD88
-rw-r--r--libre/uboot4extlinux-omap3/PKGBUILD85
-rw-r--r--libre/uboot4extlinux-omap3/uboot4extlinux-omap3.install37
-rw-r--r--libre/uboot4extlinux-ti-soc/0001-omap34xx-SPL-enable-MMC-raw-boot-with-u-boot.img.patch (renamed from libre/uboot4extlinux-omap3/0001-omap34xx-SPL-enable-MMC-raw-boot-with-u-boot.img.patch)0
-rw-r--r--libre/uboot4extlinux-ti-soc/PKGBUILD168
-rw-r--r--libre/uboot4extlinux-ti-soc/extlinux-am335x.conf (renamed from libre/uboot4extlinux-am335x/extlinux.conf)0
-rw-r--r--libre/uboot4extlinux-ti-soc/extlinux-omap.conf (renamed from libre/uboot4extlinux-omap3/extlinux.conf)0
-rw-r--r--libre/uboot4extlinux-ti-soc/uboot4extlinux-ti-soc.install (renamed from libre/uboot4extlinux-am335x/uboot4extlinux-am335x.install)0
8 files changed, 168 insertions, 210 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-omap3/PKGBUILD b/libre/uboot4extlinux-omap3/PKGBUILD
deleted file mode 100644
index 786e33996..000000000
--- a/libre/uboot4extlinux-omap3/PKGBUILD
+++ /dev/null
@@ -1,85 +0,0 @@
-# U-Boot: BeagleBoard
-# Maintainer: André Silva <emulatorman@hyperbola.info>
-# Contributor: Jookia <166291@gmail.com>
-# Contributor: Márcio Silva <coadde@hyperbola.info>
-
-pkgbase=uboot4extlinux-omap3
-pkgname=('uboot4extlinux-omap3_beagle')
-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"
- '0001-omap34xx-SPL-enable-MMC-raw-boot-with-u-boot.img.patch'
- 'extlinux.conf')
-sha256sums=('fe732aaf037d9cc3c0909bad8362af366ae964bbdac6913a34081ff4ad565372'
- 'SKIP'
- 'SKIP')
-
-boards=('omap3_beagle')
-
-prepare() {
- cd u-boot-${pkgver}
-
- # The default is 0x300 512b blocks which forces u-boot.img to be locarted at
- # 384k on the microSD. As u-boot.img is big, it often goes over the 1MB empty
- # space that is created by default when partitioning block devices. That
- # corrupts the first partition. Using 0x200 leaves more space to u-boot.img
- # and is well aligned to 128k.
- echo 'CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=0x200' >> configs/omap3_beagle_defconfig
-
- # See the 0001-omap34xx-SPL-enable-MMC-raw-boot-with-u-boot.img.patch for
- # rationale for this configuration
- echo '# CONFIG_SPL_RAW_IMAGE_SUPPORT is not set' >> configs/omap3_beagle_defconfig
-
- # We want to enable users to use both RAW mode and filesystems to install
- # u-boot, but as filesystems are more complicated due to constraints that
- # need to be respected for it to work we default to raw block. This patch
- # restores the ability of using RAW block mode. RAW partitions have not been
- # tested yet and may or may not work but they have constraints as well.
- patch -Np1 -i ../0001-omap34xx-SPL-enable-MMC-raw-boot-with-u-boot.img.patch
-}
-
-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-omap3_beagle() {
- pkgdesc="U-Boot with Extlinux support for various BeagleBoards"
-
- install=${pkgbase}.install
- provides=('uboot4extlinux-omap3')
- conflicts=('grub-omap3_beagle'
- 'grub-omap3_beagle_xm'
- 'grub-omap3_beagle_xm_ab'
- 'uboot-omap3_beagle')
-
- install -d "${pkgdir}"/boot/extlinux
- install -d "${pkgdir}"/boot/u-boot/images/
-
- install -Dm644 \
- bin_omap3_beagle/MLO \
- bin_omap3_beagle/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 be converted to ReStructuredText at some point and be moved because of that
- install -Dm644 u-boot-${pkgver}/doc/README.omap3 "${pkgdir}"/usr/share/doc/u-boot/
-}
diff --git a/libre/uboot4extlinux-omap3/uboot4extlinux-omap3.install b/libre/uboot4extlinux-omap3/uboot4extlinux-omap3.install
deleted file mode 100644
index f33e8c1e3..000000000
--- a/libre/uboot4extlinux-omap3/uboot4extlinux-omap3.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
-}
diff --git a/libre/uboot4extlinux-omap3/0001-omap34xx-SPL-enable-MMC-raw-boot-with-u-boot.img.patch b/libre/uboot4extlinux-ti-soc/0001-omap34xx-SPL-enable-MMC-raw-boot-with-u-boot.img.patch
index d746bde6e..d746bde6e 100644
--- a/libre/uboot4extlinux-omap3/0001-omap34xx-SPL-enable-MMC-raw-boot-with-u-boot.img.patch
+++ b/libre/uboot4extlinux-ti-soc/0001-omap34xx-SPL-enable-MMC-raw-boot-with-u-boot.img.patch
diff --git a/libre/uboot4extlinux-ti-soc/PKGBUILD b/libre/uboot4extlinux-ti-soc/PKGBUILD
new file mode 100644
index 000000000..c59c42bdb
--- /dev/null
+++ b/libre/uboot4extlinux-ti-soc/PKGBUILD
@@ -0,0 +1,168 @@
+# U-Boot: BeagleBoard, BeagleBone, BeagleBone Black
+# Maintainer: André Silva <emulatorman@hyperbola.info>
+# Contributor: Jookia <166291@gmail.com>
+# Contributor: Márcio Silva <coadde@hyperbola.info>
+
+pkgbase=uboot4extlinux-ti-soc
+pkgname=('uboot4extlinux-am335x_bone'
+ 'uboot4extlinux-chiliboard'
+ 'uboot4extlinux-omap3_beagle'
+ 'uboot4extlinux-omap4_panda')
+pkgver=2020.07
+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"
+ '0001-omap34xx-SPL-enable-MMC-raw-boot-with-u-boot.img.patch'
+ 'extlinux-am335x.conf'
+ 'extlinux-omap.conf')
+sha256sums=('c1f5bf9ee6bb6e648edbf19ce2ca9452f614b08a9f886f1a566aa42e8cf05f6a'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP')
+
+boards=('am335x_evm'
+ 'chiliboard'
+ 'omap3_beagle'
+ 'omap4_panda')
+
+prepare() {
+ cd u-boot-${pkgver}
+
+ # The default is 0x300 512b blocks which forces u-boot.img to be locarted at
+ # 384k on the microSD. As u-boot.img is big, it often goes over the 1MB empty
+ # space that is created by default when partitioning block devices. That
+ # corrupts the first partition. Using 0x200 leaves more space to u-boot.img
+ # and is well aligned to 128k.
+ for i in ${boards[@]}; do
+ echo 'CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=0x200' >> \
+ configs/${i}_defconfig
+ done
+
+ # See the 0001-omap34xx-SPL-enable-MMC-raw-boot-with-u-boot.img.patch for
+ # rationale for this configuration
+ echo '# CONFIG_SPL_RAW_IMAGE_SUPPORT is not set' >> \
+ configs/omap3_beagle_defconfig
+
+ # We want to enable users to use both RAW mode and filesystems to install
+ # u-boot, but as filesystems are more complicated due to constraints that
+ # need to be respected for it to work we default to raw block. This patch
+ # restores the ability of using RAW block mode on OMAP >= 2. RAW partitions
+ # have not been tested yet and may or may not work but they have constraints
+ # as well.
+ patch -Np1 -i ../0001-omap34xx-SPL-enable-MMC-raw-boot-with-u-boot.img.patch
+}
+
+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 the 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-am335x.conf "${pkgdir}"/boot/extlinux/extlinux.conf
+
+ # 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-am335x.conf "${pkgdir}"/boot/extlinux/extlinux.conf
+
+ # 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
+}
+
+package_uboot4extlinux-omap3_beagle() {
+ pkgdesc="U-Boot with Extlinux support for various BeagleBoards"
+
+ install=${pkgbase}.install
+ provides=('uboot4extlinux-omap3')
+ conflicts=('grub-omap3_beagle'
+ 'grub-omap3_beagle_xm'
+ 'grub-omap3_beagle_xm_ab'
+ 'uboot-omap3_beagle')
+
+ install -d "${pkgdir}"/boot/extlinux
+ install -d "${pkgdir}"/boot/u-boot/images/
+
+ install -Dm644 \
+ bin_omap3_beagle/MLO \
+ bin_omap3_beagle/u-boot.img \
+ "${pkgdir}"/boot/u-boot/images/
+
+ install -Dm644 extlinux-omap.conf "${pkgdir}"/boot/extlinux/extlinux.conf
+
+ # Package documentation as well
+ install -d "${pkgdir}"/usr/share/doc/u-boot
+ # The README might be converted to ReStructuredText at some point and be moved because of that
+ install -Dm644 u-boot-${pkgver}/doc/README.omap3 "${pkgdir}"/usr/share/doc/u-boot/
+}
+
+package_uboot4extlinux-omap4_panda() {
+ pkgdesc="U-Boot with Extlinux support for the PandaBoard and PandaBoard ES"
+
+ install=${pkgbase}.install
+ provides=('uboot4extlinux-omap4_panda')
+
+ conflicts=('uboot4grub-omap4_panda'
+ 'uboot-omap4_panda'
+ 'uboot-pandaboard-linux-libre'
+ 'uboot-pandaboard')
+
+ install -d "${pkgdir}"/boot/extlinux
+ install -d "${pkgdir}"/boot/u-boot/images/
+
+ install -Dm644 \
+ bin_omap4_panda/MLO \
+ bin_omap4_panda/u-boot.img \
+ "${pkgdir}"/boot/u-boot/images/
+
+ install -Dm644 extlinux-omap.conf "${pkgdir}"/boot/extlinux/extlinux.conf
+}
diff --git a/libre/uboot4extlinux-am335x/extlinux.conf b/libre/uboot4extlinux-ti-soc/extlinux-am335x.conf
index 86d5e0df7..86d5e0df7 100644
--- a/libre/uboot4extlinux-am335x/extlinux.conf
+++ b/libre/uboot4extlinux-ti-soc/extlinux-am335x.conf
diff --git a/libre/uboot4extlinux-omap3/extlinux.conf b/libre/uboot4extlinux-ti-soc/extlinux-omap.conf
index 3307eb9de..3307eb9de 100644
--- a/libre/uboot4extlinux-omap3/extlinux.conf
+++ b/libre/uboot4extlinux-ti-soc/extlinux-omap.conf
diff --git a/libre/uboot4extlinux-am335x/uboot4extlinux-am335x.install b/libre/uboot4extlinux-ti-soc/uboot4extlinux-ti-soc.install
index f33e8c1e3..f33e8c1e3 100644
--- a/libre/uboot4extlinux-am335x/uboot4extlinux-am335x.install
+++ b/libre/uboot4extlinux-ti-soc/uboot4extlinux-ti-soc.install