arm-sdk

os build toolkit for various embedded devices
git clone https://git.parazyd.org/arm-sdk
Log | Files | Refs | Submodules | README | LICENSE

commit a75a79a90edd7f0f5d63b42a5c252eb5f9c3801c
parent 223c0f1eda0adbbd338607ac23033050607ecbc2
Author: parazyd <parazyd@dyne.org>
Date:   Wed, 23 Dec 2020 09:11:53 +0100

Update license headers.

Diffstat:
D.gitignore | 4----
M.gitmodules | 3---
MREADME.md | 65++++++++++-------------------------------------------------------
DTODO.md | 6------
Mboards/beaglebone-black.sh | 4+---
Mboards/bionic.sh | 4+---
Mboards/chromebook-acer.sh | 4+---
Mboards/chromebook-veyron.sh | 4+---
Mboards/droid4.sh | 4+---
Mboards/nokia-n9.sh | 4+---
Mboards/nokia-n900.sh | 4+---
Mboards/nokia-n950.sh | 4+---
Mboards/odroid-xu.sh | 4+---
Mboards/odroid-xu4.sh | 4+---
Mboards/ouya.sh | 4+---
Mboards/pinephone-dontbeevil.sh | 4+---
Mboards/pinephone.sh | 6+++++-
Mboards/pinetab.sh | 4+---
Mboards/raspberry-pi1.sh | 4+---
Mboards/raspberry-pi2.sh | 4+---
Mboards/raspberry-pi3.sh | 4+---
Mboards/raspberry-pi4.sh | 4+---
Mboards/sunxi.sh | 4+---
Mboards/turbox-twister.sh | 4+---
Mconfig | 5+----
Mdoc/quirks.md | 4++--
Dinit.sh | 44--------------------------------------------
Mlib/helpers | 4+---
Msdk | 4+---
29 files changed, 39 insertions(+), 182 deletions(-)

diff --git a/.gitignore b/.gitignore @@ -1,4 +0,0 @@ -tmp/* -gcc/* -dist/* -log/* diff --git a/.gitmodules b/.gitmodules @@ -1,9 +1,6 @@ [submodule "lib/libdevuansdk"] path = lib/libdevuansdk url = https://github.com/parazyd/libdevuansdk -[submodule "lib/zuper"] - path = lib/zuper - url = https://github.com/dyne/zuper.git [submodule "extra/u-boot"] path = extra/u-boot url = git://git.denx.de/u-boot.git diff --git a/README.md b/README.md @@ -9,7 +9,7 @@ support multiple Linux distributions. arm-sdk is designed to be used interactively from a terminal, as well as from shell scripts. It requires the following packages to be installed, as well -as [libdevuansdk dependencies](https://github.com/dyne/libdevuansdk/blob/master/README.md#requirements): +as [libdevuansdk dependencies](https://github.com/parazyd/libdevuansdk/blob/master/README.md#requirements): ### Devuan @@ -25,24 +25,12 @@ net-misc/curl net-misc/wget sys-boot/vboot-utils app-emulation/qemu(static-user) `sudo` permissions are required for the user that is running the build. -## Initial setup - -By executing `init.sh` which is found in the base directory of arm-sdk, it -will initialize all git submodules and gcc toolchains that are needed for -arm-sdk to properly function. - -Do it with: - -``` -; ./init.sh -``` ## Quick start -Edit the `config` file to match your crosscompile toolchain. `init.sh` will -provide you with precompiled ones. Then run zsh. In case you have conflicting -extensions on your zsh configuration, safest way would be to run a vanilla one, -using: +Edit the `config` file to match your crosscompile toolchains. Then run +zsh. In case you have conflicting extensions on your zsh configuration, +safest way would be to run a vanilla one, using: ``` ; zsh -f @@ -68,6 +56,8 @@ Now is the time you choose the device and OS you want to build the image for. * `n900` - Nokia N900 * `n950` - Nokia N950 * `n9` - Nokia N9 +* `droid` - Motorola Droid 4 +* `bionic` - Motorola Droid Bionic * `odroidxu` - ODROID-XU * `odroidxu4` - ODROID-XU4 * `ouya` - OUYA gaming console @@ -76,7 +66,11 @@ Now is the time you choose the device and OS you want to build the image for. * `raspi3` - Raspberry Pi 3 (64bit) * `raspi4` - Raspberry Pi 4 (64bit) * `rock64` - Rock64 (64bit) (EXPERIMENTAL) +* `pinephone-dontbeevil` - Pinephone Dontbeevil devkit +* `pinephone` - Pine64 Pinephone +* `pinetab` - Pine64 Pinetab * `sunxi` - Allwinner-based boards +* `turbox-twister` - TurboX Twister tablet ``` ; load devuan sunxi @@ -92,42 +86,3 @@ The image will automatically be build for you. Once finished, you will be able to find it in the `dist/` directory in arm-sdk's root. For more info, see the `doc/` directory. - -## Support readiness grid - -Building and testing ASCII 2.1 point release - -| board name | builds | runs | problems | -| ---------- | ------ | ---- | -------- | -| raspi1 | yes | ?? | | -| raspi2 | yes | ?? | | -| raspi3 | yes | ?? | | -| raspi4 | yes | ?? | | -| sunxi | no | ?? | ?package | - -## Acknowledgments - -Devuan's SDK was originally conceived during a period of residency at the -Schumacher college in Dartington, UK. Greatly inspired by the laborious and -mindful atmosphere of its wonderful premises. - -The Devuan SDK is Copyright (c) 2015-2017 by the Dyne.org Foundation - -Devuan SDK components were designed, and are written and maintained by: - -- Ivan J. <parazyd@dyne.org> -- Denis Roio <jaromil@dyne.org> -- Enzo Nicosia <katolaz@freaknet.org> - -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/>. diff --git a/TODO.md b/TODO.md @@ -1,6 +0,0 @@ -things needed doing -=================== - -* remove systemd from raspi-config and include it in builds -* figure out which firmware will never be used for each device -* documentation diff --git a/boards/beaglebone-black.sh b/boards/beaglebone-black.sh @@ -1,7 +1,5 @@ #!/usr/bin/env zsh -# Copyright (c) 2016-2020 Dyne.org Foundation -# arm-sdk is written and maintained by Ivan J. <parazyd@dyne.org> -# +# Copyright (c) 2016-2021 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 diff --git a/boards/bionic.sh b/boards/bionic.sh @@ -1,7 +1,5 @@ #!/usr/bin/env zsh -# Copyright (c) 2016-2020 Dyne.org Foundation -# arm-sdk is written and maintained by Ivan J. <parazyd@dyne.org> -# +# Copyright (c) 2016-2021 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 diff --git a/boards/chromebook-acer.sh b/boards/chromebook-acer.sh @@ -1,7 +1,5 @@ #!/usr/bin/env zsh -# Copyright (c) 2016-2018 Dyne.org Foundation -# arm-sdk is written and maintained by Ivan J. <parazyd@dyne.org> -# +# Copyright (c) 2016-2021 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 diff --git a/boards/chromebook-veyron.sh b/boards/chromebook-veyron.sh @@ -1,7 +1,5 @@ #!/usr/bin/env zsh -# Copyright (c) 2016 Dyne.org Foundation -# arm-sdk is written and maintained by Ivan J. <parazyd@dyne.org> -# +# Copyright (c) 2016-2021 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 diff --git a/boards/droid4.sh b/boards/droid4.sh @@ -1,7 +1,5 @@ #!/usr/bin/env zsh -# Copyright (c) 2016-2020 Dyne.org Foundation -# arm-sdk is written and maintained by Ivan J. <parazyd@dyne.org> -# +# Copyright (c) 2016-2021 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 diff --git a/boards/nokia-n9.sh b/boards/nokia-n9.sh @@ -1,7 +1,5 @@ #!/usr/bin/env zsh -# Copyright (c) 2016-2020 Dyne.org Foundation -# arm-sdk is written and maintained by Ivan J. <parazyd@dyne.org> -# +# Copyright (c) 2016-2021 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 diff --git a/boards/nokia-n900.sh b/boards/nokia-n900.sh @@ -1,7 +1,5 @@ #!/usr/bin/env zsh -# Copyright (c) 2016-2020 Dyne.org Foundation -# arm-sdk is written and maintained by Ivan J. <parazyd@dyne.org> -# +# Copyright (c) 2016-2021 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 diff --git a/boards/nokia-n950.sh b/boards/nokia-n950.sh @@ -1,7 +1,5 @@ #!/usr/bin/env zsh -# Copyright (c) 2016-2020 Dyne.org Foundation -# arm-sdk is written and maintained by Ivan J. <parazyd@dyne.org> -# +# Copyright (c) 2016-2021 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 diff --git a/boards/odroid-xu.sh b/boards/odroid-xu.sh @@ -1,7 +1,5 @@ #!/usr/bin/env zsh -# Copyright (c) 2016-2020 Dyne.org Foundation -# arm-sdk is written and maintained by Ivan J. <parazyd@dyne.org> -# +# Copyright (c) 2016-2021 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 diff --git a/boards/odroid-xu4.sh b/boards/odroid-xu4.sh @@ -1,7 +1,5 @@ #!/usr/bin/env zsh -# Copyright (c) 2016-2020 Dyne.org Foundation -# arm-sdk is written and maintained by Ivan J. <parazyd@dyne.org> -# +# Copyright (c) 2016-2021 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 diff --git a/boards/ouya.sh b/boards/ouya.sh @@ -1,7 +1,5 @@ #!/usr/bin/env zsh -# Copyright (c) 2016-2020 Dyne.org Foundation -# arm-sdk is written and maintained by Ivan J. <parazyd@dyne.org> -# +# Copyright (c) 2016-2021 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 diff --git a/boards/pinephone-dontbeevil.sh b/boards/pinephone-dontbeevil.sh @@ -1,7 +1,5 @@ #!/usr/bin/env zsh -# Copyright (c) 2016-2020 Dyne.org Foundation -# arm-sdk is written and maintained by Ivan J. <parazyd@dyne.org> -# +# Copyright (c) 2016-2021 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 diff --git a/boards/pinephone.sh b/boards/pinephone.sh @@ -1,5 +1,5 @@ #!/usr/bin/env zsh -# Copyright (c) 2020 Dyne.org Foundation +# Copyright (c) 2016-2021 Ivan J. <parazyd@dyne.org> # arm-sdk is written and maintained by Ivan J. <parazyd@dyne.org> # # This file is part of arm-sdk @@ -76,6 +76,10 @@ postbuild() { notice "building crust" git clone --depth 1 "$crustgit" -b "$crustbranch" "$R/tmp/kernels/crust" || zerr pushd "$R/tmp/kernels/crust" + or1ktc="or1k-linux-musl-" + wget -c "http://musl.cc/${or1ktc}cross.tgz" + tar xf "${or1ktc}cross.tgz" + export PATH="$PATH:$(pwd)/or1k-linux-musl/bin" make $MAKEOPTS CROSS_COMPILE="$or1ktc" pinephone_defconfig || zerr make $MAKEOPTS CROSS_COMPILE="$or1ktc" scp || zerr popd diff --git a/boards/pinetab.sh b/boards/pinetab.sh @@ -1,7 +1,5 @@ #!/usr/bin/env zsh -# Copyright (c) 2020 Dyne.org Foundation -# arm-sdk is written and maintained by Ivan J. <parazyd@dyne.org> -# +# Copyright (c) 2016-2021 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 diff --git a/boards/raspberry-pi1.sh b/boards/raspberry-pi1.sh @@ -1,7 +1,5 @@ #!/usr/bin/env zsh -# Copyright (c) 2016-2020 Dyne.org Foundation -# arm-sdk is written and maintained by Ivan J. <parazyd@dyne.org> -# +# Copyright (c) 2016-2021 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 diff --git a/boards/raspberry-pi2.sh b/boards/raspberry-pi2.sh @@ -1,7 +1,5 @@ #!/usr/bin/env zsh -# Copyright (c) 2016-2020 Dyne.org Foundation -# arm-sdk is written and maintained by Ivan J. <parazyd@dyne.org> -# +# Copyright (c) 2016-2021 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 diff --git a/boards/raspberry-pi3.sh b/boards/raspberry-pi3.sh @@ -1,7 +1,5 @@ #!/usr/bin/env zsh -# Copyright (c) 2016-2020 Dyne.org Foundation -# arm-sdk is written and maintained by Ivan J. <parazyd@dyne.org> -# +# Copyright (c) 2016-2021 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 diff --git a/boards/raspberry-pi4.sh b/boards/raspberry-pi4.sh @@ -1,7 +1,5 @@ #!/usr/bin/env zsh -# Copyright (c) 2016-2020 Dyne.org Foundation -# arm-sdk is written and maintained by Ivan J. <parazyd@dyne.org> -# +# Copyright (c) 2016-2021 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 diff --git a/boards/sunxi.sh b/boards/sunxi.sh @@ -1,7 +1,5 @@ #!/usr/bin/env zsh -# Copyright (c) 2016-2020 Dyne.org Foundation -# arm-sdk is written and maintained by Ivan J. <parazyd@dyne.org> -# +# Copyright (c) 2016-2021 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 diff --git a/boards/turbox-twister.sh b/boards/turbox-twister.sh @@ -1,7 +1,5 @@ #!/usr/bin/env zsh -# Copyright (c) 2016-2020 Dyne.org Foundation -# arm-sdk is written and maintained by Ivan J. <parazyd@dyne.org> -# +# Copyright (c) 2016-2021 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 diff --git a/config b/config @@ -1,7 +1,5 @@ #!/usr/bin/env zsh -# Copyright (c) 2016-2020 Dyne.org Foundation -# arm-sdk is written and maintained by Ivan J. <parazyd@dyne.org> -# +# Copyright (c) 2016-2020 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 @@ -29,7 +27,6 @@ COMPRESS_IMAGE=1 armhftc="arm-linux-gnueabihf-" armeltc="arm-none-eabi-" arm64tc="aarch64-linux-gnu-" -or1ktc="or1k-linux-musl-" export PATH="$PATH:/usr/sbin:/sbin:/usr/bin:/bin:$R/gcc/or1k-linux-musl/bin" diff --git a/doc/quirks.md b/doc/quirks.md @@ -48,5 +48,5 @@ fastboot boot zImage-3.1.10-tk* ``` ## Nokia N900 * To boot, dd the image to a microSD card, and in the uboot console, type: `run sdboot` -* [http://pub.parazyd.cf/N900/merlijnsdocs.txt](http://pub.parazyd.cf/N900/merlijnsdocs.txt) -* [http://talk.maemo.org/showthread.php?t=81613](http://talk.maemo.org/showthread.php?t=81613) +* [https://parazyd.org/pub/N900/merlijnsdocs.txt](https://parazyd.org/pub/N900/merlijnsdocs.txt) +* [https://talk.maemo.org/showthread.php?t=81613](https://talk.maemo.org/showthread.php?t=81613) diff --git a/init.sh b/init.sh @@ -1,44 +0,0 @@ -#!/bin/sh -# Copyright (c) 2016-2020 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/>. - -## This script will setup arm-sdk and make it ready for usage. - -set -e - -git submodule update --init --recursive --checkout -mkdir -p gcc -cd gcc - -or1ktc="or1k-linux-musl" -or1kurl="http://musl.cc/or1k-linux-musl-cross.tgz" - -wget "$or1kurl" -tar xf "$(basename "$or1kurl")" -mv or1k-linux-musl-cross "$or1ktc" -rm -f "$(basename "$or1kurl")" - -cd - - -cat <<EOM - -All done! Make sure you also install the required dependencies listed in -README.md. You can use the following oneliner as well: - -$ grep '^curl ' README.md | xargs sudo apt --yes --force-yes install -EOM diff --git a/lib/helpers b/lib/helpers @@ -1,7 +1,5 @@ #!/usr/bin/env zsh -# Copyright (c) 2016-2020 Dyne.org Foundation -# arm-sdk is written and maintained by Ivan J. <parazyd@dyne.org> -# +# Copyright (c) 2016-2021 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 diff --git a/sdk b/sdk @@ -1,7 +1,5 @@ #!/usr/bin/env zsh -# Copyright (c) 2016-2020 Dyne.org Foundation -# arm-sdk is written and maintained by Ivan J. <parazyd@dyne.org> -# +# Copyright (c) 2016-2020 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