sipeed-m1sdock: new device (MR 4025)
Sipeed M1s DOCK is a development board from Sipeed, it is based on M1s module. The Sipeed M1s introduces the BL808 SoC from Bouffalo Lab, the BL808 is also used in Pine64 0x64 development board. [ci:skip-build]: already built successfully in CI
This commit is contained in:
parent
560e8b56ee
commit
2d6be776a1
4 changed files with 2648 additions and 0 deletions
27
device/testing/device-sipeed-m1sdock/APKBUILD
Normal file
27
device/testing/device-sipeed-m1sdock/APKBUILD
Normal file
|
@ -0,0 +1,27 @@
|
|||
# Reference: <https://postmarketos.org/devicepkg>
|
||||
pkgname=device-sipeed-m1sdock
|
||||
pkgdesc="Sipeed M1s DOCK"
|
||||
pkgver=0.1
|
||||
pkgrel=0
|
||||
url="https://postmarketos.org"
|
||||
license="MIT"
|
||||
arch="riscv64"
|
||||
options="!check !archcheck"
|
||||
depends="
|
||||
linux-postmarketos-bflb
|
||||
postmarketos-base
|
||||
"
|
||||
makedepends="devicepkg-dev"
|
||||
source="deviceinfo"
|
||||
|
||||
build() {
|
||||
devicepkg_build $startdir $pkgname
|
||||
}
|
||||
|
||||
package() {
|
||||
devicepkg_package $startdir $pkgname
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
7443589c8dcb1c17953d2cf798ae1ea25b9904cff2d7f5c4ff0a42453d5ba2ef26d18b626e753a96f1982b3ab1d75ab24a20df82aa2710241a281a4c4a2ae0cc deviceinfo
|
||||
"
|
24
device/testing/device-sipeed-m1sdock/deviceinfo
Normal file
24
device/testing/device-sipeed-m1sdock/deviceinfo
Normal file
|
@ -0,0 +1,24 @@
|
|||
# Reference: <https://postmarketos.org/deviceinfo>
|
||||
# Please use double quotes only. You can source this file in shell
|
||||
# scripts.
|
||||
|
||||
deviceinfo_format_version="0"
|
||||
deviceinfo_name="Sipeed M1s DOCK"
|
||||
deviceinfo_manufacturer="Sipeed"
|
||||
deviceinfo_codename="sipeed-m1sdock"
|
||||
deviceinfo_year="2022"
|
||||
deviceinfo_dtb="bouffalolab/bl808-sipeed-m1s"
|
||||
deviceinfo_arch="riscv64"
|
||||
|
||||
# Device related
|
||||
deviceinfo_chassis="embedded"
|
||||
deviceinfo_keyboard="false"
|
||||
deviceinfo_external_storage="true"
|
||||
deviceinfo_no_framebuffer="true"
|
||||
deviceinfo_swap_size_recommended="1024"
|
||||
deviceinfo_kernel_cmdline="console=ttyS0,2000000 loglevel=8 earlycon=sbi PMOS_NO_OUTPUT_REDIRECT"
|
||||
deviceinfo_generate_extlinux_config="true"
|
||||
deviceinfo_getty="ttyS0;2000000"
|
||||
|
||||
# Bootloader related
|
||||
deviceinfo_flash_method="none"
|
52
device/testing/linux-postmarketos-bflb/APKBUILD
Normal file
52
device/testing/linux-postmarketos-bflb/APKBUILD
Normal file
|
@ -0,0 +1,52 @@
|
|||
pkgname=linux-postmarketos-bflb
|
||||
pkgver=6.2.0_git20230310
|
||||
pkgrel=0
|
||||
pkgdesc="Mainline kernel for Bouffalolab BL808 platform"
|
||||
arch="riscv64"
|
||||
_flavor="${pkgname#linux-}"
|
||||
url="https://kernel.org"
|
||||
license="GPL-2.0-only"
|
||||
options="!strip !check !tracedeps
|
||||
pmb:cross-native"
|
||||
makedepends="bash bison findutils flex openssl-dev perl postmarketos-installkernel"
|
||||
|
||||
# Source
|
||||
_commit="467fe3369eda1d2f09426e8be15eb10dcf9d7a4a"
|
||||
_carch="riscv"
|
||||
_config="config-$_flavor.$arch"
|
||||
source="
|
||||
$pkgname-$_commit.tar.gz::https://github.com/openbouffalo/linux/archive/$_commit.tar.gz
|
||||
$_config
|
||||
"
|
||||
builddir="$srcdir/linux-$_commit"
|
||||
|
||||
prepare() {
|
||||
default_prepare
|
||||
cp "$srcdir/$_config" .config
|
||||
}
|
||||
|
||||
build() {
|
||||
unset LDFLAGS
|
||||
make ARCH="$_carch" CC="${CC:-gcc}" \
|
||||
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))"
|
||||
}
|
||||
|
||||
package() {
|
||||
mkdir -p "$pkgdir"/boot
|
||||
make zinstall modules_install dtbs_install \
|
||||
ARCH="$_carch" \
|
||||
INSTALL_MOD_PATH="$pkgdir" \
|
||||
INSTALL_MOD_STRIP=1 \
|
||||
INSTALL_PATH="$pkgdir"/boot \
|
||||
INSTALL_DTBS_PATH="$pkgdir"/boot/dtbs
|
||||
rm -f "$pkgdir"/lib/modules/*/build "$pkgdir"/lib/modules/*/source
|
||||
|
||||
install -D "$builddir"/include/config/kernel.release \
|
||||
"$pkgdir"/usr/share/kernel/$_flavor/kernel.release
|
||||
}
|
||||
|
||||
|
||||
sha512sums="
|
||||
41ffc9aa2f55b4466aacba702277bb8232df808e3968a94a361e451e606fcd3a72df711825e1c47a3f526779bb472a3c1f607e335065034e456e76aeb3ce484b linux-postmarketos-bflb-467fe3369eda1d2f09426e8be15eb10dcf9d7a4a.tar.gz
|
||||
419b74e8150dca4d7e90b90c24b0bb33f53e27d3d8f1cd67b136f5f7956fabba7dbe7395f97ed6de42c3a96bb2ce9823da0bf582dd371690d47579cdf080aa84 config-postmarketos-bflb.riscv64
|
||||
"
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue