commit 91ff2bdef379ff4ba44915a0bd9291fedeb8823d
parent 9df18c083f44f772c8ea1a9d3b8edc68429f767b
Author: parazyd <parazyd@dyne.org>
Date: Mon, 3 Oct 2016 14:00:29 +0200
add nokia n900
Diffstat:
3 files changed, 99 insertions(+), 1 deletion(-)
diff --git a/boards/nokia-n900.sh b/boards/nokia-n900.sh
@@ -0,0 +1,93 @@
+#!/usr/bin/env zsh
+# Copyright (c) 2016 Dyne.org Foundation
+# arm-sdk is written and maintained by Ivan J. <parazyd@dyne.org>
+#
+# This file is part of arm-sdk
+#
+# This source code is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This software is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this source code. If not, see <http://www.gnu.org/licenses/>.
+
+## kernel build script for Nokia N900
+
+## settings & config
+vars+=(device_name arch size parted_type parted_boot parted_root inittab)
+vars+=(gitkernel gitbranch)
+arrs+=(custmodules extra_packages)
+
+device_name="n900"
+arch="armhf"
+size=1337
+inittab="T1:12345:respawn:/sbin/agetty -L ttyS0 115200 vt100"
+
+parted_type="dos"
+parted_boot="fat32 2048s 264191s"
+parted_root="ext4 264192s 100%"
+
+extra_packages=()
+custmodules=()
+
+gitkernel="https://github.com/pali/linux-n900.git"
+gitbranch="v4.6-rc1-n900"
+
+prebuild() {
+ fn prebuild
+ req=(device_name strapdir)
+ ckreq || return 1
+
+ notice "executing $device_name prebuild"
+
+ write-fstab
+}
+
+postbuild() {
+ fn postbuild
+
+ notice "executing $device_name postbuild"
+}
+
+build_kernel_armhf() {
+ fn build_kernel_armhf
+ req=(R arch device_name gitkernel gitbranch MAKEOPTS)
+ req+=(strapdir sunxi_tools sunxi_uboot sunxi_boards)
+ req+=(loopdevice)
+ ckreq || return 1
+
+ prebuild || zerr
+
+ notice "building $arch kernel"
+ mkdir -p $R/tmp/kernels/$device_name
+
+ get-kernel-sources
+ pushd $R/tmp/kernels/$device_name/${device_name}-linux
+ #wget -O .config $linux_defconfig
+ make rx51_defconfig
+ make $MAKEOPTS zImage modules
+ sudo -E PATH="$PATH" \
+ make INSTALL_MOD_PATH=$strapdir modules_install
+ popd
+
+ sudo rm -rf $strapdir/lib/firmware
+ get-kernel-firmware
+ sudo cp $CPVERBOSE -ra $R/tmp/linux-firmware $strapdir/lib/firmware
+
+ pushd $R/tmp/kernels/$device_name/${device_name}-linux
+ sudo -E PATH="$PATH" \
+ make INSTALL_MOD_PATH=$strapdir firmware_install
+ #make mrproper
+ make rx51_defconfig
+ sudo -E PATH="$PATH" \
+ make modules_prepare
+ popd
+
+ postbuild || zerr
+}
diff --git a/doc/quirks.md b/doc/quirks.md
@@ -28,6 +28,10 @@ Notes and quirks for specific devices
* You will need android tools
* Run the bootloader
+## Nokia N900
+* Please read the following on what to do:
+ [http://talk.maemo.org/showthread.php?t=81613](http://talk.maemo.org/showthread.php?t=81613)
+
```
adb reboot-bootloader
```
diff --git a/sdk b/sdk
@@ -68,7 +68,7 @@ load() {
board_map=(
"bananapi" "$R/boards/bananapi.sh"
"bananapro" "$R/boards/bananapro.sh"
- "bbb" "$R/boards/beagleboneblack.sh"
+ "bbb" "$R/boards/beaglebone-black.sh"
"chromeacer" "$R/boards/chromebook-acer.sh"
"chromeveyron" "$R/boards/chromebook-veyron.sh"
"cubieboard2" "$R/boards/cubieboard2.sh"
@@ -76,6 +76,7 @@ load() {
"odroidxu" "$R/boards/odroid-xu.sh"
"ouya" "$R/boards/ouya.sh"
"raspi" "$R/boards/raspberry-pi.sh"
+ "n900" "$R/boards/nokia-n900.sh"
)
os_map=(