Package: freedombox-setup
Version: 0.5
Severity: wishlist
Tags: patch

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Current Raspberry Pi image for FreedomBox works with Raspberry Pi 2.
Although the current is armv7l, the user is armel architecture of
Debian.  To use the device at full potential, we need to have armhf
userland.  For this we need to build a new image for Raspberry Pi 2
with armhf architecture.  Freedom-maker will have a new machine
raspberry2.  This patch is required on freedombox-setup
correspondingly.


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJV3iRwAAoJEDbDYUQMm8lxDdoP/2orL86sgV4e7S3Q+M6OXsQR
suHjohMrrycSFXJizLcYZjCDz7A1y6U8Ni8+wNTQy0IPbrwQAjI0nye/vQpqbGW2
/HJA0ZzPkRgYz7NTutXsE8HBLhhE6MDnYHc9XqZRSjqunpkHFkNnrzKPSN4D3vOr
LrKIhP7DsC9ER+8ezh5wiYnnNCrnCYFAgp+efp9nT6a+LHHeJUVggsyzuzH4XoyZ
+PpPlJaZXJ55vnYlNWAV66hayK/NAt1/hN8MnrNJTgEJO1qjWsNsKmLMVbIdffdb
CGyQBPCL2cdF4wLiLWyzjJ7jossnfrbLJc3g3xuKdk1i/yygU8pDw1B1akkg0fCQ
bKpaWWYK7roZZGDfWRsDluOA40PcWUh6BEOitJH+rycqGnQwcGY8sWpUrevkGrEn
uSulTONmSQsE5Cxb26OYZh0kzimzZRN9uphh8atqRzbvuPkenxm69moyivBqlAHz
MJ/Ec+sQVux7lP+ne87WSIgwLp8sH15m2qEPMpuoAtKcTd1JKwztGk/fHbHiqx0j
f0TJTXXZCOdWm6xFYXXYAN4kVR5RxlD1oAtcgzMhby7UE0TIqYBrt2Coa5bqyuDH
sau0pviocZFO4zZpvFOZiBd+lDrhKI8LKDaVsOrzQZ63+GO90wZSjd1yv6H35nJO
ga5nRZnh/T1cK8c8oVgT
=PW51
-----END PGP SIGNATURE-----
>From 1424830516b73692a083bf24d172f7604de16b8b Mon Sep 17 00:00:00 2001
From: Sunil Mohan Adapa <su...@medhas.org>
Date: Wed, 26 Aug 2015 22:34:26 +0530
Subject: [PATCH] Add support for setting up Raspberry Pi 2 firmware

---
 setup.d/10_hardware | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/setup.d/10_hardware b/setup.d/10_hardware
index ab52ff9..cb71ece 100755
--- a/setup.d/10_hardware
+++ b/setup.d/10_hardware
@@ -68,7 +68,19 @@ raspberry_setup_boot() {
     mkdir -p /lib/modules
     touch /boot/start.elf
     SKIP_BACKUP=1 SKIP_WARNING=1 rpi-update | tee /root/rpi-update.log
+}
+
+# Install binary blob and kernel needed to boot on the Raspberry Pi 2.
+raspberry2_setup_boot() {
+    # Packages used by rpi-update to make Raspberry Pi 2 bootable
+    apt-get install -y git-core binutils ca-certificates wget kmod
 
+    wget https://raw.github.com/Hexxeh/rpi-update/master/rpi-update \
+	-O /usr/bin/rpi-update
+    chmod a+x /usr/bin/rpi-update
+    mkdir -p /lib/modules
+    touch /boot/start.elf
+    SKIP_BACKUP=1 SKIP_WARNING=1 rpi-update | tee /root/rpi-update.log
 }
 
 beaglebone_setup_boot() {
@@ -242,6 +254,9 @@ case "$MACHINE" in
     raspberry)
 	raspberry_setup_boot
 	;;
+    raspberry2)
+	raspberry2_setup_boot
+	;;
     beaglebone)
 	beaglebone_setup_boot
 	beaglebone_flash
-- 
2.5.0

Reply via email to