Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
92 additions
and
0 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
alarm/at91bootstrap-arietta/0001-arietta-dtb-name-fix.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
From f5fde76f3bf5e15c3599823f45e5a24dac04a4a6 Mon Sep 17 00:00:00 2001 | ||
From: Kevin Mihelich <kevin@archlinuxarm.org> | ||
Date: Sat, 13 Jun 2015 19:37:54 -0600 | ||
Subject: [PATCH] arietta dtb name fix | ||
|
||
This sets the dtb name based on RAM size. | ||
|
||
Signed-off-by: Kevin Mihelich <kevin@archlinuxarm.org> | ||
--- | ||
board/at91sam9x5_arietta/at91sam9x5_arietta.c | 6 +++++- | ||
1 file changed, 5 insertions(+), 1 deletion(-) | ||
|
||
diff --git a/board/at91sam9x5_arietta/at91sam9x5_arietta.c b/board/at91sam9x5_arietta/at91sam9x5_arietta.c | ||
index 97851eb..eb3bf4a 100644 | ||
--- a/board/at91sam9x5_arietta/at91sam9x5_arietta.c | ||
+++ b/board/at91sam9x5_arietta/at91sam9x5_arietta.c | ||
@@ -238,7 +238,11 @@ static void sdcard_set_of_name_board(char *of_name) | ||
{ | ||
//unsigned int cpu_board_id = get_cm_sn(); | ||
//unsigned int disp_board_id = get_dm_sn(); | ||
- strcpy(of_name, "acme-arietta"); | ||
+#ifdef CONFIG_RAM_128MB | ||
+ strcpy(of_name, "dtbs/at91-arietta128"); | ||
+#else | ||
+ strcpy(of_name, "dtbs/at91-arietta256"); | ||
+#endif | ||
strcat(of_name, ".dtb"); | ||
} | ||
|
||
-- | ||
2.4.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# AT91Boostrap: Arietta G25 | ||
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org> | ||
|
||
buildarch=2 | ||
|
||
pkgbase=at91bootstrap-arietta | ||
pkgname=("${pkgbase}-128" "${pkgbase}-256") | ||
pkgver=v3.7.r25.g3f957ce | ||
pkgrel=1 | ||
arch=('arm') | ||
url="https://github.com/tanzilli/at91bootstrap" | ||
makedepends=('git' 'bc') | ||
license=('GPL') | ||
source=("git+https://github.com/tanzilli/at91bootstrap.git" | ||
'0001-arietta-dtb-name-fix.patch') | ||
md5sums=('SKIP' | ||
'f330724c9bc8836985e954c22324646e') | ||
|
||
pkgver() { | ||
cd at91bootstrap | ||
( set -o pipefail | ||
git describe --long --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' | ||
) | ||
} | ||
|
||
prepare() { | ||
cd at91bootstrap | ||
|
||
git apply ../0001-arietta-dtb-name-fix.patch | ||
} | ||
|
||
build() { | ||
cd at91bootstrap | ||
|
||
unset LDFLAGS CFLAGS CXXFLAGS | ||
|
||
make mrproper | ||
make arietta-128m_defconfig | ||
make | ||
cp binaries/at91sam9x5_arietta-sdcardboot-linux-zimage-dt-3.7.bin boot128.bin | ||
|
||
make clean | ||
make arietta-256m_defconfig | ||
make | ||
cp binaries/at91sam9x5_arietta-sdcardboot-linux-zimage-dt-3.7.bin boot256.bin | ||
} | ||
|
||
package_at91bootstrap-arietta-128() { | ||
pkgdesc="AT91Boostrap for Arietta G25 128MB" | ||
|
||
mkdir -p "${pkgdir}"/boot | ||
cp at91bootstrap/boot128.bin "${pkgdir}"/boot/boot.bin | ||
} | ||
|
||
package_at91bootstrap-arietta-256() { | ||
pkgdesc="AT91Boostrap for Arietta G25 256MB" | ||
|
||
mkdir -p "${pkgdir}"/boot | ||
cp at91bootstrap/boot256.bin "${pkgdir}"/boot/boot.bin | ||
} |