pegatron-chagall: initial mainline port (formerly fujitsu-m532) (MR 1907)
The device has been renamed from fujitsu-m532 to pegatron-chagall since several rebrands of this board exist (Olivetti Olipad3, Siragon 4N, etc.), and Fujitsu M532 is just one of those. Signed-off-by: Raffaele Tranquillini <raffaele.tranquillini@gmail.com>
This commit is contained in:
parent
9ae9a7eb2c
commit
4d651d6069
12 changed files with 121 additions and 3406 deletions
|
@ -1,22 +0,0 @@
|
|||
pkgname=device-fujitsu-m532
|
||||
pkgdesc="Fujitsu Stylistic M532"
|
||||
pkgver=0.1
|
||||
pkgrel=2
|
||||
url="https://postmarketos.org"
|
||||
license="MIT"
|
||||
arch="armv7"
|
||||
options="!check !archcheck"
|
||||
depends="postmarketos-base linux-fujitsu-m532 mkbootimg mesa-dri-swrast"
|
||||
makedepends="devicepkg-dev"
|
||||
source="deviceinfo"
|
||||
|
||||
build() {
|
||||
devicepkg_build $startdir $pkgname
|
||||
}
|
||||
|
||||
package() {
|
||||
devicepkg_package $startdir $pkgname
|
||||
}
|
||||
|
||||
|
||||
sha512sums="9c069ef0533f4153f526fc313ba1bb7ca5f64da2c42c89f3758cd12be830485f43c5df3d3e0074c77fc959fc644bc4fb312bc2a88f493aa11a6162b66a34d421 deviceinfo"
|
50
device/testing/device-pegatron-chagall/APKBUILD
Normal file
50
device/testing/device-pegatron-chagall/APKBUILD
Normal file
|
@ -0,0 +1,50 @@
|
|||
# Maintainer: Raffaele Tranquillini <raffaele.tranquillini@gmail.com>
|
||||
|
||||
pkgname=device-pegatron-chagall
|
||||
pkgdesc="Pegatron Chagall"
|
||||
pkgver=1
|
||||
pkgrel=0
|
||||
url="https://postmarketos.org"
|
||||
license="MIT"
|
||||
arch="armv7"
|
||||
options="!check !archcheck"
|
||||
depends="postmarketos-base linux-postmarketos-grate mkbootimg mesa-dri-gallium xf86-video-opentegra"
|
||||
makedepends="devicepkg-dev"
|
||||
subpackages="$pkgname-phosh
|
||||
$pkgname-nonfree-firmware:nonfree_firmware"
|
||||
source="deviceinfo
|
||||
rootston.ini
|
||||
ucm/tegra-hda.conf
|
||||
ucm/tegra-hda_HiFi.conf"
|
||||
|
||||
build() {
|
||||
devicepkg_build $startdir $pkgname
|
||||
}
|
||||
|
||||
package() {
|
||||
devicepkg_package $startdir $pkgname
|
||||
|
||||
# Alsa use case manager configuration (audio routing)
|
||||
install -D -m644 "$srcdir"/tegra-hda.conf \
|
||||
"$pkgdir"/usr/share/alsa/ucm2/tegra-hda/tegra-hda.conf
|
||||
install -D -m644 "$srcdir"/tegra-hda_HiFi.conf \
|
||||
"$pkgdir"/usr/share/alsa/ucm2/tegra-hda/HiFi.conf
|
||||
}
|
||||
|
||||
phosh() {
|
||||
install_if="$pkgname postmarketos-ui-phosh"
|
||||
install -Dm644 "$srcdir"/rootston.ini \
|
||||
"$subpkgdir"/etc/phosh/rootston.ini
|
||||
}
|
||||
|
||||
nonfree_firmware() {
|
||||
pkgdesc="Pegatron Chagall WiFi and Bluetooth firmware"
|
||||
depends="firmware-pegatron-chagall linux-firmware-brcm"
|
||||
mkdir "$subpkgdir"
|
||||
}
|
||||
|
||||
|
||||
sha512sums="fbf38232f272bde3bf563e603dca78a6aa606a889acd52c27f6062df9dac4ab2516e4d684333244eb631cbb2874d2d7ff04553b7b0e5dbdc5e5d6fb88c3b95b1 deviceinfo
|
||||
618284cdaccd09e60cb9a99afa337fcad7b3bd33f6422b9eae34175bc4516138d486cbb9f5735cafb325bc16cf362de16aeae7c77d334668c749afcfa557359b rootston.ini
|
||||
5dead806f7568fad5f240957158864faab7a4dbbdae18b2a18110f64caa0254a001fbd5711789718cfde055528af57cebca11bbc4d7f55e12c9853f3d9e8534c tegra-hda.conf
|
||||
17bac2dd664bb10e8a0308500c231c4394d1dfad47235b8e83e5b1187193d1c73c54e415f248f543a1281cfd946a67dc87794b580a6e24c65a6712d37190f833 tegra-hda_HiFi.conf"
|
|
@ -1,33 +1,32 @@
|
|||
# Reference: <https://postmarketos.org/deviceinfo>
|
||||
# Please use double quotes only. You can source this file in shell scripts.
|
||||
|
||||
deviceinfo_format_version="1"
|
||||
deviceinfo_name="Fujitsu Stylistic M532"
|
||||
deviceinfo_manufacturer="Fujitsu"
|
||||
deviceinfo_codename="fujitsu-m532"
|
||||
deviceinfo_format_version="0"
|
||||
deviceinfo_name="Pegatron Chagall"
|
||||
deviceinfo_manufacturer="Pegatron"
|
||||
deviceinfo_codename="pegatron-chagall"
|
||||
deviceinfo_year="2012"
|
||||
deviceinfo_dtb=""
|
||||
deviceinfo_dtb="tegra30-pegatron-chagall"
|
||||
deviceinfo_append_dtb="true"
|
||||
deviceinfo_modules_initfs=""
|
||||
deviceinfo_arch="armv7"
|
||||
|
||||
# Device related
|
||||
deviceinfo_chassis="tablet"
|
||||
deviceinfo_keyboard="false"
|
||||
deviceinfo_keyboard="true"
|
||||
deviceinfo_external_storage="true"
|
||||
deviceinfo_screen_width="1280"
|
||||
deviceinfo_screen_height="800"
|
||||
deviceinfo_dev_touchscreen="/dev/input/event0"
|
||||
|
||||
# Bootloader related
|
||||
deviceinfo_flash_method="fastboot"
|
||||
deviceinfo_kernel_cmdline=""
|
||||
deviceinfo_generate_bootimg="true"
|
||||
deviceinfo_bootimg_qcdt="false"
|
||||
deviceinfo_bootimg_dtb_second="false"
|
||||
deviceinfo_flash_offset_base="0x10000000"
|
||||
deviceinfo_flash_offset_kernel="0x00008000"
|
||||
deviceinfo_flash_offset_ramdisk="0x01000000"
|
||||
deviceinfo_flash_offset_second="0x00f00000"
|
||||
deviceinfo_flash_offset_tags="0x00000100"
|
||||
deviceinfo_flash_pagesize="2048"
|
||||
|
||||
deviceinfo_flash_fastboot_max_size="760"
|
5
device/testing/device-pegatron-chagall/rootston.ini
Normal file
5
device/testing/device-pegatron-chagall/rootston.ini
Normal file
|
@ -0,0 +1,5 @@
|
|||
[cursor:seat0]
|
||||
map-to-output:LVDS-1
|
||||
|
||||
[output:LVDS-1]
|
||||
scale = 1
|
|
@ -0,0 +1,8 @@
|
|||
# UCM for Nvidia Tegra30 HDMI Audio
|
||||
|
||||
Syntax 3
|
||||
|
||||
SectionUseCase."HiFi" {
|
||||
File "HiFi.conf"
|
||||
Comment "Play HiFi quality Music"
|
||||
}
|
|
@ -0,0 +1,24 @@
|
|||
If.hdmi {
|
||||
Condition {
|
||||
Type ControlExists
|
||||
Control "iface=CARD,name='HDMI/DP,pcm=3 Jack'"
|
||||
}
|
||||
True {
|
||||
SectionDevice."HDMI1" {
|
||||
Comment "HDMI / DisplayPort Output"
|
||||
|
||||
EnableSequence [
|
||||
cset "name='IEC958 Playback Switch' on"
|
||||
]
|
||||
|
||||
DisableSequence [
|
||||
cset "name='IEC958 Playback Switch' off"
|
||||
]
|
||||
|
||||
Value {
|
||||
PlaybackPCM "hw:${CardId},3"
|
||||
JackControl "HDMI/DP,pcm=3 Jack"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
26
device/testing/firmware-pegatron-chagall/APKBUILD
Normal file
26
device/testing/firmware-pegatron-chagall/APKBUILD
Normal file
|
@ -0,0 +1,26 @@
|
|||
# Maintainer: Raffaele Tranquillini <raffaele.tranquillini@gmail.com>
|
||||
pkgname=firmware-pegatron-chagall
|
||||
pkgver=1
|
||||
pkgrel=0
|
||||
pkgdesc="Firmware for Pegatron Chagall"
|
||||
url="https://github.com/clamor95/linux-firmware"
|
||||
arch="armv7"
|
||||
license="custom:proprietary"
|
||||
options="!check !strip !archcheck !spdx"
|
||||
|
||||
# Sources
|
||||
_commit="ce54d4301696fb26562216c37c9e86b64d7faa40"
|
||||
_url="https://github.com/clamor95/linux-firmware"
|
||||
source="$pkgname-bt-$_commit.tar.gz::$_url/archive/$_commit.tar.gz"
|
||||
|
||||
package() {
|
||||
# Bluetooth
|
||||
cd "$srcdir/linux-firmware-$_commit/brcm/"
|
||||
install -Dm644 BCM4330B1.hcd \
|
||||
"$pkgdir"/lib/firmware/postmarketos/brcm/BCM4330B1.hcd
|
||||
# Wi-Fi
|
||||
install -Dm644 brcmfmac4330-sdio.pegatron,chagall.txt \
|
||||
"$pkgdir"/lib/firmware/postmarketos/brcm/brcmfmac4330-sdio.pegatron,chagall.txt
|
||||
}
|
||||
|
||||
sha512sums="cbbccdb1d83cb42829026c37cfb9e2bc62f6588357d8a2af47437cdb2147f886a8f3aa88ab59c333e48502e41dc3546d0b623bffe3f4a1be5465037c61d4f765 firmware-pegatron-chagall-bt-ce54d4301696fb26562216c37c9e86b64d7faa40.tar.gz"
|
|
@ -1,54 +0,0 @@
|
|||
# Kernel config based on: /.config.beta13.1
|
||||
|
||||
pkgname=linux-fujitsu-m532
|
||||
pkgver=3.1.10
|
||||
pkgrel=2
|
||||
pkgdesc="Fujitsu Stylistic M532 kernel fork"
|
||||
arch="armv7"
|
||||
_carch="arm"
|
||||
_flavor="fujitsu-m532"
|
||||
url="https://kernel.org"
|
||||
license="GPL-2.0-only"
|
||||
options="!strip !check !tracedeps pmb:cross-native"
|
||||
makedepends="gcc6 perl sed installkernel bash gmp-dev bc linux-headers elfutils-dev devicepkg-dev"
|
||||
|
||||
# Compiler: GCC 6 (doesn't boot when compiled with newer versions)
|
||||
if [ "${CC:0:5}" != "gcc6-" ]; then
|
||||
CC="gcc6-$CC"
|
||||
HOSTCC="gcc6-gcc"
|
||||
CROSS_COMPILE="gcc6-$CROSS_COMPILE"
|
||||
fi
|
||||
|
||||
# Source
|
||||
_repository="android_kernel_chagall"
|
||||
_commit="1bcab4a49982baea177c26994d2b67811e7b16f9"
|
||||
_config="config-$_flavor.$arch"
|
||||
source="
|
||||
$pkgname-$_commit.tar.gz::https://github.com/n5047c/$_repository/archive/$_commit.tar.gz
|
||||
$_config
|
||||
gcc7-give-up-on-ilog2-const-optimizations.patch
|
||||
gcc8-fix-put-user.patch
|
||||
timeconst.pl-Eliminate-Perl-warning.patch
|
||||
"
|
||||
builddir="$srcdir/$_repository-$_commit"
|
||||
|
||||
prepare() {
|
||||
default_prepare
|
||||
. downstreamkernel_prepare
|
||||
}
|
||||
|
||||
build() {
|
||||
unset LDFLAGS
|
||||
make ARCH="$_carch" CC="${CC:-gcc}" \
|
||||
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
|
||||
}
|
||||
|
||||
package() {
|
||||
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor"
|
||||
}
|
||||
|
||||
sha512sums="7effec2a47246e65063d9bd60c547a8622aa9c934fd812ac189b9aa44f9c59628741c33b13ca99253d25e845aed24ccf56ae4492b70aff75f0651870f5e6447f linux-fujitsu-m532-1bcab4a49982baea177c26994d2b67811e7b16f9.tar.gz
|
||||
fc76fb78036cbece638e59ef0043deebcc20778c4939e14c55744dced1d98d151906638d56eb8d72e1c4badef89d69334f752d15b88c1d1e77df869daaf9afbe config-fujitsu-m532.armv7
|
||||
77eba606a71eafb36c32e9c5fe5e77f5e4746caac292440d9fb720763d766074a964db1c12bc76fe583c5d1a5c864219c59941f5e53adad182dbc70bf2bc14a7 gcc7-give-up-on-ilog2-const-optimizations.patch
|
||||
197d40a214ada87fcb2dfc0ae4911704b9a93354b75179cd6b4aadbb627a37ec262cf516921c84a8b1806809b70a7b440cdc8310a4a55fca5d2c0baa988e3967 gcc8-fix-put-user.patch
|
||||
1fcfb5f06a2bfdcc55d53054ca80d1b989599a39a5379d057a0724fc405187d74da4309a650e70b9c79d39444e81923cfc5c9199ed8c0a77c83dcd7998446bb7 timeconst.pl-Eliminate-Perl-warning.patch"
|
File diff suppressed because it is too large
Load diff
|
@ -1 +0,0 @@
|
|||
../../.shared-patches/linux/gcc7-give-up-on-ilog2-const-optimizations.patch
|
|
@ -1 +0,0 @@
|
|||
../../.shared-patches/linux/gcc8-fix-put-user.patch
|
|
@ -1 +0,0 @@
|
|||
../../.shared-patches/linux/timeconst.pl-Eliminate-Perl-warning.patch
|
Loading…
Add table
Reference in a new issue