acer-picasso: new device (Acer Iconia Tab A500) (MR 1308)
Everything is working well, but the camera the 3D acceleration are not. These two are due to the lack of drivers in mainline kernel.
This commit is contained in:
parent
dbf4d13907
commit
949effc0ed
5 changed files with 6744 additions and 0 deletions
32
device/testing/device-acer-picasso/APKBUILD
Normal file
32
device/testing/device-acer-picasso/APKBUILD
Normal file
|
@ -0,0 +1,32 @@
|
|||
# Reference: <https://postmarketos.org/devicepkg>
|
||||
pkgname=device-acer-picasso
|
||||
pkgdesc="Acer Iconia Tab A500"
|
||||
pkgver=1
|
||||
pkgrel=0
|
||||
url="https://postmarketos.org"
|
||||
license="MIT"
|
||||
arch="armv7"
|
||||
options="!check !archcheck"
|
||||
depends="postmarketos-base linux-postmarketos-grate mkbootimg mesa-git-dri-gallium xf86-video-opentegra"
|
||||
makedepends="devicepkg-dev"
|
||||
source="deviceinfo"
|
||||
subpackages="
|
||||
$pkgname-nonfree-firmware:nonfree_firmware
|
||||
"
|
||||
|
||||
build() {
|
||||
devicepkg_build $startdir $pkgname
|
||||
}
|
||||
|
||||
package() {
|
||||
devicepkg_package $startdir $pkgname
|
||||
}
|
||||
|
||||
nonfree_firmware() {
|
||||
pkgdesc="Acer Iconia Tab A500 WiFi & BT firmware"
|
||||
depends="firmware-acer-picasso"
|
||||
install="$pkgname-nonfree_firmware.post-install $pkgname-nonfree_firmware.pre-#deinstall"
|
||||
mkdir "$subpkgdir"
|
||||
}
|
||||
|
||||
sha512sums="cd87bce7bceac5f857a38113ee6be68822c234b4da54be6a52a7acfa009930870b4968efcc5745a8d906f35f2f9fa0ae7e8f04424cce15f1537d3b946f126a6d deviceinfo"
|
34
device/testing/device-acer-picasso/deviceinfo
Normal file
34
device/testing/device-acer-picasso/deviceinfo
Normal file
|
@ -0,0 +1,34 @@
|
|||
# Reference: <https://postmarketos.org/deviceinfo>
|
||||
# Please use double quotes only. You can source this file in shell scripts.
|
||||
|
||||
deviceinfo_format_version="0"
|
||||
deviceinfo_name="Acer Iconia Tab A500"
|
||||
deviceinfo_manufacturer="Acer"
|
||||
deviceinfo_codename="acer-picasso"
|
||||
deviceinfo_year="2011"
|
||||
deviceinfo_dtb_downstream=""
|
||||
deviceinfo_dtb_mainline="tegra20-acer-a500-picasso"
|
||||
deviceinfo_append_dtb_mainline="true"
|
||||
deviceinfo_modules_initfs=""
|
||||
deviceinfo_arch="armv7"
|
||||
|
||||
# Device related
|
||||
deviceinfo_chassis="tablet"
|
||||
deviceinfo_keyboard="false"
|
||||
deviceinfo_external_storage="true"
|
||||
deviceinfo_screen_width="1280"
|
||||
deviceinfo_screen_height="800"
|
||||
deviceinfo_dev_touchscreen="/dev/input/event1"
|
||||
|
||||
# Bootloader related
|
||||
deviceinfo_flash_method="fastboot"
|
||||
deviceinfo_kernel_cmdline=""
|
||||
deviceinfo_generate_bootimg="true"
|
||||
deviceinfo_bootimg_qcdt="false"
|
||||
deviceinfo_flash_offset_base=""
|
||||
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="700"
|
25
device/testing/firmware-acer-picasso/APKBUILD
Normal file
25
device/testing/firmware-acer-picasso/APKBUILD
Normal file
|
@ -0,0 +1,25 @@
|
|||
pkgname=firmware-acer-picasso
|
||||
pkgver=3
|
||||
pkgrel=0
|
||||
pkgdesc="Firmware for Acer Iconia Tab A500 (acer-picasso)"
|
||||
url="https://github.com/grate-driver/linux-firmware"
|
||||
arch="armv7"
|
||||
license="custom:proprietary"
|
||||
options="!check !strip !archcheck !spdx"
|
||||
|
||||
# Sources
|
||||
_commit="803fa8cce4e6aab3c97473c9dbab9abc49894cb7"
|
||||
_url="https://github.com/grate-driver/linux-firmware"
|
||||
source="$pkgname-$_commit.tar.gz::$_url/archive/$_commit.tar.gz"
|
||||
|
||||
package() {
|
||||
# Wi-Fi & BT firmware
|
||||
cd "$srcdir/linux-firmware-$_commit/brcm/"
|
||||
install -Dm644 brcmfmac4329-sdio.bin \
|
||||
"$pkgdir"/lib/firmware/postmarketos/brcm/brcmfmac4329-sdio.bin
|
||||
# Firmware configuration
|
||||
install -Dm644 brcmfmac4329-sdio.acer,picasso.txt \
|
||||
"$pkgdir"/lib/firmware/postmarketos/brcm/brcmfmac4329-sdio.acer,picasso.txt
|
||||
}
|
||||
|
||||
sha512sums="5b0cdcea8edb09db9fca95eae8a77f34ad0164e06106a52ef1f4e801fbed873467f14edd14513d28c571d28e0a61bb74a345f1acc91d41104e9e1751ae8418e6 firmware-acer-picasso-803fa8cce4e6aab3c97473c9dbab9abc49894cb7.tar.gz"
|
60
device/testing/linux-postmarketos-grate/APKBUILD
Normal file
60
device/testing/linux-postmarketos-grate/APKBUILD
Normal file
|
@ -0,0 +1,60 @@
|
|||
_flavor=postmarketos-grate
|
||||
_commit="79c504641f2f2cecc4e345b5a2890f82d12d6a11"
|
||||
_config="config-$_flavor.armv7"
|
||||
|
||||
pkgname=linux-postmarketos-grate
|
||||
pkgver=5.8.0
|
||||
pkgrel=0
|
||||
arch="armv7"
|
||||
pkgdesc="Linux kernel with experimental patches for Tegra"
|
||||
url="https://postmarketos.org"
|
||||
makedepends="perl sed installkernel bash gmp-dev bc linux-headers elfutils-dev
|
||||
devicepkg-dev bison flex openssl-dev xz findutils"
|
||||
options="!strip !check !tracedeps pmb:cross-native"
|
||||
source="
|
||||
$pkgname-$pkgver-$_commit.tar.gz::https://github.com/grate-driver/linux/archive/$_commit.tar.gz
|
||||
$_config
|
||||
"
|
||||
license="GPL-2.0-only"
|
||||
|
||||
_carch="arm"
|
||||
|
||||
_ksrcdir="$srcdir/linux-$_commit"
|
||||
|
||||
prepare() {
|
||||
default_prepare
|
||||
mkdir -p "$srcdir"/build
|
||||
cp -v "$srcdir"/$_config "$srcdir"/build/.config
|
||||
make -C "$_ksrcdir" O="$srcdir"/build ARCH="$_carch" \
|
||||
olddefconfig
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$srcdir"/build
|
||||
unset LDFLAGS
|
||||
make ARCH="$_carch" CC="${CC:-gcc}" \
|
||||
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-Alpine"
|
||||
}
|
||||
|
||||
package() {
|
||||
install -Dm644 "$srcdir/build/arch/$_carch/boot/"*zImage \
|
||||
"$pkgdir/boot/vmlinuz-$_flavor"
|
||||
|
||||
install -D "$srcdir/build/include/config/kernel.release" \
|
||||
"$pkgdir/usr/share/kernel/$_flavor/kernel.release"
|
||||
|
||||
cd "$srcdir"/build
|
||||
|
||||
local _install
|
||||
case "$CARCH" in
|
||||
aarch64*|arm*) _install="modules_install dtbs_install" ;;
|
||||
*) _install="modules_install" ;;
|
||||
esac
|
||||
|
||||
make -j1 $_install \
|
||||
ARCH="$_carch" \
|
||||
INSTALL_MOD_PATH="$pkgdir" \
|
||||
INSTALL_DTBS_PATH="$pkgdir/usr/share/dtb"
|
||||
}
|
||||
sha512sums="a678be8e466400b57266dca856f28274c00e9d3d1ebcfe1a142b64c1e88754d6fcd04587664f65c464028e898382e30faf49c8ecc04f7e076323163d0a2fa519 linux-postmarketos-grate-5.8.0-79c504641f2f2cecc4e345b5a2890f82d12d6a11.tar.gz
|
||||
46dd50c6ba8fd01bf6a69f5b907da40c47c0412466fbb80f5aa79f3f9bd424bd609ecee11dd557d12649759be626aa4dd37071585b8ce0e026d48be1f4612d0c config-postmarketos-grate.armv7"
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue