summaryrefslogtreecommitdiff
path: root/libre/uboot4extlinux-am335x
diff options
context:
space:
mode:
Diffstat (limited to 'libre/uboot4extlinux-am335x')
-rw-r--r--libre/uboot4extlinux-am335x/PKGBUILD7
-rw-r--r--libre/uboot4extlinux-am335x/uboot4extlinux-am335x.install3
2 files changed, 8 insertions, 2 deletions
diff --git a/libre/uboot4extlinux-am335x/PKGBUILD b/libre/uboot4extlinux-am335x/PKGBUILD
index 4ce30c130..6db114815 100644
--- a/libre/uboot4extlinux-am335x/PKGBUILD
+++ b/libre/uboot4extlinux-am335x/PKGBUILD
@@ -6,7 +6,7 @@
pkgbase=uboot4extlinux-am335x
pkgname=('uboot4extlinux-am335x_bone')
pkgver=2019.01
-pkgrel=2
+pkgrel=3
arch=('armv7h')
url="http://git.denx.de/u-boot.git/"
license=('GPL')
@@ -19,6 +19,11 @@ sha256sums=('50bd7e5a466ab828914d080d5f6a432345b500e8fba1ad3b7b61e95e60d51c22'
boards=('am335x_evm')
+prepare() {
+ cd u-boot-${pkgver}
+ echo 'CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=0x200' >> configs/am335x_evm_defconfig
+}
+
build() {
cd u-boot-${pkgver}
diff --git a/libre/uboot4extlinux-am335x/uboot4extlinux-am335x.install b/libre/uboot4extlinux-am335x/uboot4extlinux-am335x.install
index 53ab65fba..d4f12e789 100644
--- a/libre/uboot4extlinux-am335x/uboot4extlinux-am335x.install
+++ b/libre/uboot4extlinux-am335x/uboot4extlinux-am335x.install
@@ -1,6 +1,6 @@
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=2 seek=1 conv=notrunc bs=384k"
+ echo "# dd if=/boot/u-boot/images/u-boot.img of=/dev/mmcblk0 count=6 seek=2 conv=notrunc bs=128k"
}
extlinux_warning() {
@@ -17,6 +17,7 @@ flash_uboot() {
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=384k seek=1 count=2 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