init commit
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
SUBSYSTEM=="input", KERNEL=="event*", ATTRS{name}=="keypad", ENV{ID_INPUT_KEYBOARD}="1"
|
||||
SUBSYSTEM=="input", KERNEL=="event*", ATTRS{name}=="gpio-keys", ENV{ID_INPUT_KEYBOARD}="1"
|
||||
SUBSYSTEM=="input", KERNEL=="event*", ATTRS{name}=="pm8941_resin", ENV{ID_INPUT_KEYBOARD}="1"
|
||||
@@ -0,0 +1,6 @@
|
||||
# Maximum time to wait for SIM card to appear after starting the modem.
|
||||
# Some SIM cards or modem firmwares might take longer to initialize. :(
|
||||
# To avoid blocking boot without a SIM card for too long this is fairly short
|
||||
# by default (4 seconds), but you can increase it to e.g. 30 seconds if necessary.
|
||||
# Set to 0 to disable waiting entirely.
|
||||
sim_wait_time=4
|
||||
@@ -0,0 +1,15 @@
|
||||
# Use case configuration for common MSM8916 devices. No SecondaryMic.
|
||||
# All analog outputs/inputs connected to internal PM8916 codec.
|
||||
|
||||
Define {
|
||||
WcdPlaybackPCM "hw:${CardId},0"
|
||||
WcdCapturePCM "hw:${CardId},1"
|
||||
}
|
||||
<platforms/msm8916/qdsp6-components.conf>
|
||||
|
||||
<codecs/msm8916-wcd/Speaker.conf>
|
||||
<codecs/msm8916-wcd/Earpiece.conf>
|
||||
<codecs/msm8916-wcd/Headphones.conf>
|
||||
|
||||
<codecs/msm8916-wcd/PrimaryMic.conf>
|
||||
<codecs/msm8916-wcd/HeadsetMic.conf>
|
||||
@@ -0,0 +1,6 @@
|
||||
Syntax 3
|
||||
|
||||
SectionUseCase."HiFi" {
|
||||
File "HiFi.conf"
|
||||
Comment "Play and record HiFi quality Music"
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
# Use case configuration for common MSM8916 devices.
|
||||
# All analog outputs/inputs connected to internal PM8916 codec.
|
||||
|
||||
Define {
|
||||
WcdPlaybackPCM "hw:${CardId},0"
|
||||
WcdCapturePCM "hw:${CardId},1"
|
||||
}
|
||||
<platforms/msm8916/qdsp6-components.conf>
|
||||
|
||||
<codecs/msm8916-wcd/Speaker.conf>
|
||||
<codecs/msm8916-wcd/Earpiece.conf>
|
||||
<codecs/msm8916-wcd/Headphones.conf>
|
||||
|
||||
<codecs/msm8916-wcd/PrimaryMic.conf>
|
||||
<codecs/msm8916-wcd/SecondaryMic.conf>
|
||||
<codecs/msm8916-wcd/HeadsetMic.conf>
|
||||
@@ -0,0 +1,6 @@
|
||||
Syntax 3
|
||||
|
||||
SectionUseCase."HiFi" {
|
||||
File "HiFi.conf"
|
||||
Comment "Play and record HiFi quality Music"
|
||||
}
|
||||
@@ -0,0 +1,142 @@
|
||||
# zram settings...
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
# load zram kernel module on start?
|
||||
load_on_start=yes
|
||||
|
||||
# unload zram kernel module on stop?
|
||||
unload_on_stop=yes
|
||||
|
||||
# Number of devices.
|
||||
# This value is also passed to the kernel module on modprobe.
|
||||
num_devices=2
|
||||
|
||||
# For each device, specify the following variables
|
||||
# Omitting them is the same as specifying them as empty: It uses defaults
|
||||
# type0, type1, ... are the variables for the types (see below)
|
||||
# size0, size1, ... are the variables for the sizes (in MB)
|
||||
# mlim0, mlim1, ... are the variables for the maximal uncompressed memory (MB)
|
||||
# back0, back1, ... are the variables for the backup device (paths)
|
||||
# icmp0, icmp1, ... are the flags (nonempty = true) whether incompressible
|
||||
# pages are written to the backup device (requires back*)
|
||||
# idle0, idle1, ... are the flags (nonempty = true) whether idle pages are
|
||||
# written to the backup device (requires back*)
|
||||
# wlim0, wlim1, ... set the writeback_limit for idle pages (implies idle*)
|
||||
# algo0, algo1, ... are the variables for the compression algorithms
|
||||
# para0, para1, ... are the variables for the algorithm parameters
|
||||
# flag0, flag1, ... are the variables for the flags
|
||||
# labl0, labl1, ... are the variables for the label name (if you want some)
|
||||
# uuid0, uuid1, ... are the variables for the UUID (if you want to force it)
|
||||
# args0, args1, ... are the variables for additional arguments to zram-init
|
||||
# (args0, args1, ... are eval'd, so quote correspondingly!)
|
||||
# notr0, notr1, ... are the flags (nonempty = true) for "do not trim (discard)"
|
||||
# (set notr* to a nonempty value only for linux-3.14 or earlier or when you
|
||||
# are prepared to waste a lot of memory for a possibly slight speed increase)
|
||||
#
|
||||
# The following are ignored for type swap but not for the other types:
|
||||
# blck0, blck1, ... are the variables for the blocksize (ext2, ext4)
|
||||
# irat0, irat1, ... are the variables for the byte/inode ratio (ext2, ext4)
|
||||
# inod0, inod1, ... are the variables for the inode number (ext2, ext4)
|
||||
# opts0, opts1, ... are the variables for the mount options
|
||||
# mode0, mode1, ... are the variables for the directory mode
|
||||
# owgr0, owgr1, ... are the variables for the directory owner:group
|
||||
#
|
||||
# If the size is 0 (or empty) the device is ignored by the script.
|
||||
#
|
||||
# Available types:
|
||||
# "swap" The device is initialized as a swap device.
|
||||
# The flags variable specifies the priority (16383 if empty).
|
||||
# Use "-" in the flags variable for the default priority (-1)
|
||||
# "/..." The device is mounted on /...
|
||||
# The flags variable specifies the type (ext2, ext4, btrfs, or xfs;
|
||||
# default is ext4)
|
||||
# "-" The filesystem (specified by flags as above) is created in
|
||||
# /dev/zram$NUM but not mounted
|
||||
# Devices with other types are ignored by the script
|
||||
#
|
||||
# Only variables with numbers 0 ... num_devices-1 are used by the script.
|
||||
|
||||
# swap - 500M (or a fourth of available memory if uncommenting)
|
||||
type0=swap
|
||||
flag0= # The default "16383" is fine for us
|
||||
size0=512
|
||||
#size0=`LC_ALL=C free -m | awk '/^Mem:/{print int($2/4)}'`
|
||||
mlim0= # no hard memory limit
|
||||
back0= # no backup device
|
||||
icmp0= # no incompressible page writing to backup device
|
||||
idle0= # no idle page writing to backup device
|
||||
wlim0= # no writeback_limit for idle page writing for backup device
|
||||
notr0= # keep the default on linux-3.15 or newer
|
||||
algo0=zstd # zstd (since linux-4.18), lz4 (since linux-3.15), or lzo.
|
||||
# Size: zstd (best) > lzo > lz4. Speed: lz4 (best) > zstd > lzo
|
||||
para0= # No algorithm parameters
|
||||
labl0=zram_swap # the label name
|
||||
uuid0= # Do not force UUID
|
||||
args0= # we could e.g. have set args0="-L 'zram_swap'" instead of using labl0
|
||||
|
||||
# /tmp - 2G
|
||||
# If you use this, you should put zram-init into the boot runlevel,
|
||||
# and services using /tmp should be in the default runlevel and/or have
|
||||
# rc_need=zram-init in their /etc/conf.d/... file
|
||||
type1=/tmp
|
||||
flag1=ext4
|
||||
size1=2048
|
||||
mlim1= # no hard memory limit
|
||||
back1= # no backup device
|
||||
icmp1= # no incompressible page writing to backup device
|
||||
idle1= # no idle page writing to backup device
|
||||
wlim1= # no writeback_limit for idle page writing for backup device
|
||||
blck1=1024 # the default blocksize of 4096
|
||||
irat1= # bytes/inode ratio
|
||||
inod1= # inode number
|
||||
opts1="strictatime,nosuid,nodev,noexec" # e.g. "relatime" or "noatime" are also reasonable choices
|
||||
mode1=1777
|
||||
owgr1= # No reason to change the default "root:root"
|
||||
notr1= # keep the default on linux-3.15 or newer
|
||||
algo1=zstd
|
||||
para1="level=3" # algorithm-specific parameters such as compression level
|
||||
labl1=tmp_dir
|
||||
uuid1=
|
||||
args1=
|
||||
|
||||
# /var/tmp - 1G
|
||||
type2=/var/tmp
|
||||
flag2=ext2
|
||||
size2=1024
|
||||
mlim2= # no hard memory limit
|
||||
back2= # no backup device
|
||||
icmp2= # no incompressible page writing to backup device
|
||||
idle2= # no idle page writing to backup device
|
||||
wlim2= # no writeback_limit for idle page writing for backup device
|
||||
blck2= # the default blocksize is 4096
|
||||
irat2= # bytes/inode ratio
|
||||
inod2= # inode number
|
||||
opts2=relatime # e.g. "noatime" or "strictatime" are also reasonable choices
|
||||
mode2=1777
|
||||
owgr2= # No reason to change the default "root:root"
|
||||
notr2= # keep the default on linux-3.15 or newer
|
||||
algo2=zstd
|
||||
para2= # No algorithm parameters
|
||||
labl2=var_tmp_dir
|
||||
uuid2=
|
||||
args2=
|
||||
|
||||
# Artificial example with btrfs
|
||||
# (Not actually used here: variables are overridden afterwards by other values)
|
||||
type3=- # Only format the filesystem but actually do not mount it
|
||||
flag3=btrfs
|
||||
size3=1024
|
||||
algo3=zstd
|
||||
labl3=zbtrfs
|
||||
uuid3=
|
||||
args3=
|
||||
|
||||
# swap - 500M
|
||||
# The following is not used by the default (num_devices=3).
|
||||
type3=swap
|
||||
flag3=
|
||||
size3=512
|
||||
algo3=zstd
|
||||
labl3=zram_swap2
|
||||
uuid3=
|
||||
args3=
|
||||
@@ -0,0 +1 @@
|
||||
/lib/firmware/nokia,argon-gc9305-v2-panel.bin
|
||||
@@ -0,0 +1,62 @@
|
||||
# Reference: <https://postmarketos.org/devicepkg>
|
||||
maintainer=""
|
||||
pkgname=device-nokia-argon
|
||||
pkgdesc="Nokia 8110 4G"
|
||||
pkgver=10
|
||||
pkgrel=0
|
||||
url="https://postmarketos.org"
|
||||
license="GPL-2.0-only"
|
||||
arch="armv7"
|
||||
options="!check !archcheck"
|
||||
depends="
|
||||
linux-postmarketos-qcom-msm8916
|
||||
mkbootimg
|
||||
postmarketos-base
|
||||
soc-qcom-msm8909
|
||||
soc-qcom-msm8916-rproc
|
||||
"
|
||||
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
|
||||
makedepends="devicepkg-dev mipi-dbi-cmd"
|
||||
_panel="nokia,argon-gc9305-v2-panel"
|
||||
source="
|
||||
00-nokia-argon-display.files
|
||||
deviceinfo
|
||||
kernel-cmdline.conf
|
||||
modules-initfs
|
||||
$_panel.txt
|
||||
"
|
||||
|
||||
build() {
|
||||
devicepkg_build $startdir $pkgname
|
||||
mkdir -p "$builddir"
|
||||
mipi-dbi-cmd "$builddir"/"$_panel".bin \
|
||||
"$srcdir"/"$_panel".txt
|
||||
}
|
||||
|
||||
package() {
|
||||
devicepkg_package $startdir $pkgname
|
||||
# Package display init sequence
|
||||
install -Dm644 "$builddir"/"$_panel".bin -t \
|
||||
"$pkgdir"/lib/firmware/
|
||||
install -Dm644 "$srcdir"/00-nokia-argon-display.files -t \
|
||||
"$pkgdir"/usr/share/mkinitfs/files/
|
||||
}
|
||||
|
||||
nonfree_firmware() {
|
||||
pkgdesc="GPU/WiFi/BT/Modem/Video firmware"
|
||||
depends="
|
||||
firmware-qcom-adreno-a300
|
||||
msm-firmware-loader
|
||||
firmware-nokia-argon-venus
|
||||
firmware-nokia-argon-wcnss-nv
|
||||
"
|
||||
mkdir "$subpkgdir"
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
66302bb5d83c4ba155ff62405fb9a374ab76e1912411310b1ad75e00c216b6868da4e2b6f3987c97146389aa44b2b2c26f0ca0819566be45c9d0d2dd1d3b72f1 00-nokia-argon-display.files
|
||||
ef4587f749b941761cb7838d9e21e0bd9436693a4a8bd38ac5d7cae6e9ceb2c1e7358d5fe9a34b23d6ff484c81079533eaee6c3e609d8bc685902ff150e1e79d deviceinfo
|
||||
37e1e5f8839b624ab3eb850a24ed4daeb61a651257a1fb593f49cb869323e5d1b339c831a18eb26a9d7bd0a618ea9eb2bb9bf3882133af5f2606a878e6d39c67 kernel-cmdline.conf
|
||||
749fa5911f53f65c1a18a8768d374d1ea39ef47ed61146a5f79d669250788501434a059cfff65b83cb54eb7273841686b4a3a04f20aaec6ec7f742e14623c8bc modules-initfs
|
||||
dd82fd4732694a24c91339b5c5fbb0bf485b3b2da3c17c11b72a02e90e9827c367504c99894556dd8273f927408cdb187325e5f3b9ea9e4a82e3cb3798cb2816 nokia,argon-gc9305-v2-panel.txt
|
||||
"
|
||||
@@ -0,0 +1,36 @@
|
||||
# Reference: <https://postmarketos.org/deviceinfo>
|
||||
# Please use double quotes only. You can source this file in shell
|
||||
# scripts.
|
||||
|
||||
deviceinfo_format_version="0"
|
||||
deviceinfo_name="Nokia 8110 4G"
|
||||
deviceinfo_manufacturer="Nokia"
|
||||
deviceinfo_codename="nokia-argon"
|
||||
deviceinfo_year="2018"
|
||||
deviceinfo_dtb="qcom-msm8905-nokia-argon"
|
||||
deviceinfo_append_dtb="true"
|
||||
deviceinfo_arch="armv7"
|
||||
deviceinfo_swap_size_recommended="512"
|
||||
|
||||
# Device related
|
||||
deviceinfo_chassis="handset"
|
||||
deviceinfo_external_storage="true"
|
||||
deviceinfo_screen_width="240"
|
||||
deviceinfo_screen_height="320"
|
||||
deviceinfo_drm="true"
|
||||
|
||||
# Bootloader related
|
||||
deviceinfo_flash_method="fastboot"
|
||||
deviceinfo_generate_bootimg="true"
|
||||
deviceinfo_generate_extlinux_config="true"
|
||||
deviceinfo_flash_pagesize="2048"
|
||||
deviceinfo_header_version="0"
|
||||
deviceinfo_flash_offset_base="0x80000000"
|
||||
deviceinfo_flash_offset_kernel="0x00008000"
|
||||
deviceinfo_flash_offset_ramdisk="0x02700000"
|
||||
deviceinfo_flash_offset_second="0x00f00000"
|
||||
deviceinfo_flash_offset_tags="0x02500000"
|
||||
deviceinfo_flash_sparse="true"
|
||||
|
||||
# lk2nd does not support GPT for subpartitions/SD cards yet
|
||||
deviceinfo_partition_type="msdos"
|
||||
@@ -0,0 +1,2 @@
|
||||
earlycon
|
||||
console=ttyMSM0,115200
|
||||
@@ -0,0 +1,5 @@
|
||||
pm8916-lbc
|
||||
pm8916-bms-vm
|
||||
panel-mipi-dbi
|
||||
matrix_keypad
|
||||
matrix_keymap
|
||||
Binary file not shown.
@@ -0,0 +1,34 @@
|
||||
# Based on arch/arm/boot/dts/argon/spi-panel-gc9305-v2-qvga-cmd from
|
||||
# the downstream kernel, which is:
|
||||
# Copyright (c) 2017, The Linux Foundation. All rights reserved.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License version 2 and
|
||||
# only version 2 as published by the Free Software Foundation.
|
||||
#
|
||||
# This program 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.
|
||||
|
||||
command 0x36 0x00
|
||||
command 0x3a 0x55 # format: 65K 16bit
|
||||
command 0x35 0x00 # TE v-blanking
|
||||
command 0xb2 0x0c 0x0c 0x00 0x33 0x33 # porch setting
|
||||
command 0xb7 0x75 # gate control VGH VGL
|
||||
command 0xbb 0x34 # Vcoms setting 1.4v
|
||||
command 0xc0 0x2c # LCM control
|
||||
command 0xc2 0x01 # VDV VRH COMMAND ENABLE
|
||||
command 0xc3 0x0d # VRH SET
|
||||
command 0xc4 0x20 # VDV SET
|
||||
command 0xc6 0xef # frame rate
|
||||
command 0x44 0x00 0x00 # SET TEARING SCAN LINE
|
||||
command 0xd0 0xa4 0xa1 # power control 1
|
||||
|
||||
# gamma
|
||||
command 0xe0 0xd0 0x02 0x09 0x0d 0x0e 0x19 0x30 0x51 0x43 0x09 0x14 0x13 0x18 0x21
|
||||
command 0xe1 0xd0 0x02 0x09 0x0d 0x0d 0x18 0x32 0x46 0x42 0x09 0x13 0x13 0x17 0x21
|
||||
|
||||
command 0x11 # sleep out
|
||||
delay 120
|
||||
command 0x29 # display on
|
||||
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,2 @@
|
||||
/lib/firmware/nokia,beatles-gc9305-panel.bin
|
||||
/lib/firmware/nokia,argon-gc9305-v2-panel.bin
|
||||
@@ -0,0 +1,31 @@
|
||||
# Reference: <https://postmarketos.org/deviceinfo>
|
||||
deviceinfo_format_version="0"
|
||||
deviceinfo_name="Nokia 2720 Flip"
|
||||
deviceinfo_manufacturer="Nokia"
|
||||
deviceinfo_codename="nokia-beatles"
|
||||
deviceinfo_year="2019"
|
||||
deviceinfo_dtb="qcom-msm8905-nokia-beatles"
|
||||
deviceinfo_append_dtb="true"
|
||||
deviceinfo_arch="armv7"
|
||||
deviceinfo_swap_size_recommended="512"
|
||||
|
||||
# Device related
|
||||
deviceinfo_chassis="handset"
|
||||
deviceinfo_external_storage="true"
|
||||
deviceinfo_screen_width="240"
|
||||
deviceinfo_screen_height="320"
|
||||
deviceinfo_drm="true"
|
||||
|
||||
# Bootloader related
|
||||
deviceinfo_flash_method="fastboot"
|
||||
deviceinfo_generate_bootimg="true"
|
||||
deviceinfo_generate_extlinux_config="true"
|
||||
deviceinfo_flash_pagesize="2048"
|
||||
deviceinfo_header_version="0"
|
||||
deviceinfo_flash_offset_base="0x80000000"
|
||||
deviceinfo_flash_offset_kernel="0x00008000"
|
||||
deviceinfo_flash_offset_ramdisk="0x02700000"
|
||||
deviceinfo_flash_offset_second="0x00f00000"
|
||||
deviceinfo_flash_offset_tags="0x02500000"
|
||||
deviceinfo_flash_sparse="true"
|
||||
deviceinfo_partition_type="msdos"
|
||||
@@ -0,0 +1,2 @@
|
||||
earlycon
|
||||
console=ttyMSM0,115200
|
||||
@@ -0,0 +1,5 @@
|
||||
pm8916-lbc
|
||||
pm8916-bms-vm
|
||||
panel-mipi-dbi
|
||||
matrix_keypad
|
||||
matrix_keymap
|
||||
Binary file not shown.
@@ -0,0 +1,35 @@
|
||||
# Nokia 2720 Flip (nokia-beatles) 2.8-inch 240x320 QVGA SPI MIPI-DBI panel
|
||||
# Based on arch/arm/boot/dts/argon/spi-panel-gc9305-v2-qvga-cmd from
|
||||
# the downstream kernel, which is:
|
||||
# Copyright (c) 2017, The Linux Foundation. All rights reserved.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License version 2 and
|
||||
# only version 2 as published by the Free Software Foundation.
|
||||
#
|
||||
# This program 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.
|
||||
|
||||
command 0x36 0x00
|
||||
command 0x3a 0x55 # format: 65K 16bit
|
||||
command 0x35 0x00 # TE v-blanking
|
||||
command 0xb2 0x0c 0x0c 0x00 0x33 0x33 # porch setting
|
||||
command 0xb7 0x75 # gate control VGH VGL
|
||||
command 0xbb 0x34 # Vcoms setting 1.4v
|
||||
command 0xc0 0x2c # LCM control
|
||||
command 0xc2 0x01 # VDV VRH COMMAND ENABLE
|
||||
command 0xc3 0x0d # VRH SET
|
||||
command 0xc4 0x20 # VDV SET
|
||||
command 0xc6 0xef # frame rate
|
||||
command 0x44 0x00 0x00 # SET TEARING SCAN LINE
|
||||
command 0xd0 0xa4 0xa1 # power control 1
|
||||
|
||||
# gamma
|
||||
command 0xe0 0xd0 0x02 0x09 0x0d 0x0e 0x19 0x30 0x51 0x43 0x09 0x14 0x13 0x18 0x21
|
||||
command 0xe1 0xd0 0x02 0x09 0x0d 0x0d 0x18 0x32 0x46 0x42 0x09 0x13 0x13 0x17 0x21
|
||||
|
||||
command 0x11 # sleep out
|
||||
delay 120
|
||||
command 0x29 # display on
|
||||
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1 @@
|
||||
/lib/firmware/nokia,leo-gc9305-hlt-24-panel.bin
|
||||
@@ -0,0 +1 @@
|
||||
/lib/firmware/nokia,sparkler-gc9307-hlt-28-panel.bin
|
||||
@@ -0,0 +1,62 @@
|
||||
# Reference: <https://postmarketos.org/devicepkg>
|
||||
maintainer=""
|
||||
pkgname=device-nokia-sparkler
|
||||
pkgdesc="Nokia 8000 4G"
|
||||
pkgver=7
|
||||
pkgrel=0
|
||||
url="https://postmarketos.org"
|
||||
license="GPL-2.0-only"
|
||||
arch="armv7"
|
||||
options="!check !archcheck"
|
||||
depends="
|
||||
linux-postmarketos-qcom-msm8916
|
||||
mkbootimg
|
||||
postmarketos-base
|
||||
soc-qcom-msm8909
|
||||
soc-qcom-msm8916-rproc
|
||||
"
|
||||
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
|
||||
makedepends="devicepkg-dev mipi-dbi-cmd"
|
||||
_panel="nokia,sparkler-gc9307-hlt-28-panel"
|
||||
source="
|
||||
$_panel.txt
|
||||
00-nokia-sparkler-display.files
|
||||
deviceinfo
|
||||
kernel-cmdline.conf
|
||||
modules-initfs
|
||||
"
|
||||
|
||||
build() {
|
||||
devicepkg_build $startdir $pkgname
|
||||
mkdir -p "$builddir"
|
||||
mipi-dbi-cmd "$builddir"/"$_panel".bin \
|
||||
"$srcdir"/"$_panel".txt
|
||||
}
|
||||
|
||||
package() {
|
||||
devicepkg_package $startdir $pkgname
|
||||
# Package display init sequence
|
||||
install -Dm644 "$builddir"/"$_panel".bin -t \
|
||||
"$pkgdir"/lib/firmware/
|
||||
install -Dm644 "$srcdir"/00-nokia-sparkler-display.files -t \
|
||||
"$pkgdir"/usr/share/mkinitfs/files/
|
||||
}
|
||||
|
||||
nonfree_firmware() {
|
||||
pkgdesc="GPU/WiFi/BT/Modem/Video firmware"
|
||||
depends="
|
||||
firmware-qcom-adreno-a300
|
||||
msm-firmware-loader
|
||||
firmware-nokia-sparkler-venus
|
||||
firmware-nokia-sparkler-wcnss-nv
|
||||
"
|
||||
mkdir "$subpkgdir"
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
721d740ff8dbbbafff4bc734228a82bd57d76177b9bf417d660ecb181a72a998319ddbde77d0efc5e875d2256596578212e3e0bfb85c2e77e5bbf6d0e88d9fa4 nokia,sparkler-gc9307-hlt-28-panel.txt
|
||||
89b3dd5bf1dd5e85bf66bfb6dba56e2a8e919fe3aa7dc369c18c9e56f7e0ae88319186551412497a601081b904c12dd07ebed4f39fd4a4ba6199fb8af9c90f40 00-nokia-sparkler-display.files
|
||||
5df56915a719654bd6d23b127c2d55b0445e731a0d1648c1c48188b0f84e62d1f83f34f2dbfe5e2c694525579cbe438e3a5b66cece6047b53dc9a2995a6fbfb2 deviceinfo
|
||||
37e1e5f8839b624ab3eb850a24ed4daeb61a651257a1fb593f49cb869323e5d1b339c831a18eb26a9d7bd0a618ea9eb2bb9bf3882133af5f2606a878e6d39c67 kernel-cmdline.conf
|
||||
d5dfe844a45cfc4e0844e43b8fb3e1bbcb155e06430188f8d5059fc5ce3c4100fde7f1580b1b54c5318f40d238736b233463582e55b9dd25654e40539e11ed39 modules-initfs
|
||||
"
|
||||
@@ -0,0 +1,62 @@
|
||||
# Reference: <https://postmarketos.org/devicepkg>
|
||||
maintainer=""
|
||||
pkgname=device-nokia-leo
|
||||
pkgdesc="Nokia 6300 4G"
|
||||
pkgver=7
|
||||
pkgrel=0
|
||||
url="https://postmarketos.org"
|
||||
license="GPL-2.0-only"
|
||||
arch="armv7"
|
||||
options="!check !archcheck"
|
||||
depends="
|
||||
linux-postmarketos-qcom-msm8916
|
||||
mkbootimg
|
||||
postmarketos-base
|
||||
soc-qcom-msm8909
|
||||
soc-qcom-msm8916-rproc
|
||||
"
|
||||
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
|
||||
makedepends="devicepkg-dev mipi-dbi-cmd"
|
||||
_panel="nokia,leo-gc9305-hlt-24-panel"
|
||||
source="
|
||||
$_panel.txt
|
||||
00-nokia-leo-display.files
|
||||
deviceinfo
|
||||
kernel-cmdline.conf
|
||||
modules-initfs
|
||||
"
|
||||
|
||||
build() {
|
||||
devicepkg_build $startdir $pkgname
|
||||
mkdir -p "$builddir"
|
||||
mipi-dbi-cmd "$builddir"/"$_panel".bin \
|
||||
"$srcdir"/"$_panel".txt
|
||||
}
|
||||
|
||||
package() {
|
||||
devicepkg_package $startdir $pkgname
|
||||
# Package display init sequence
|
||||
install -Dm644 "$builddir"/"$_panel".bin -t \
|
||||
"$pkgdir"/lib/firmware/
|
||||
install -Dm644 "$srcdir"/00-nokia-leo-display.files -t \
|
||||
"$pkgdir"/usr/share/mkinitfs/files/
|
||||
}
|
||||
|
||||
nonfree_firmware() {
|
||||
pkgdesc="GPU/WiFi/BT/Modem/Video firmware"
|
||||
depends="
|
||||
firmware-qcom-adreno-a300
|
||||
msm-firmware-loader
|
||||
firmware-nokia-sparkler-venus
|
||||
firmware-nokia-sparkler-wcnss-nv
|
||||
"
|
||||
mkdir "$subpkgdir"
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
8583c7d5a97c4efedff3ec554cf682d815fd7b83140c2cab9eec4b6e2e735ce3c012bc3bd97f8bc75adc3483f76ce83a5bf1090d4f3e73a327efc64ca9eca5a7 nokia,leo-gc9305-hlt-24-panel.txt
|
||||
c9985232e5e64ddb0906b053e5024c87fa62cc1bcb254260e1ef6afb43d384196e09d41287143bcba61dff616dd6b562a5ca335dbe592fcd8c954642b8085f38 00-nokia-leo-display.files
|
||||
34c6269610e41b51b31b293cc3777a2af1776375617aecf001347e8d7e05a13b8bcf4ce82e13938a219493d780003631076dbd2f3f6fd26c249ec96b1b36219e deviceinfo
|
||||
37e1e5f8839b624ab3eb850a24ed4daeb61a651257a1fb593f49cb869323e5d1b339c831a18eb26a9d7bd0a618ea9eb2bb9bf3882133af5f2606a878e6d39c67 kernel-cmdline.conf
|
||||
d5dfe844a45cfc4e0844e43b8fb3e1bbcb155e06430188f8d5059fc5ce3c4100fde7f1580b1b54c5318f40d238736b233463582e55b9dd25654e40539e11ed39 modules-initfs
|
||||
"
|
||||
@@ -0,0 +1,35 @@
|
||||
# Reference: <https://postmarketos.org/deviceinfo>
|
||||
# Please use double quotes only. You can source this file in shell
|
||||
# scripts.
|
||||
|
||||
deviceinfo_format_version="0"
|
||||
deviceinfo_name="Nokia 8000 4G"
|
||||
deviceinfo_manufacturer="Nokia"
|
||||
deviceinfo_codename="nokia-sparkler"
|
||||
deviceinfo_year="2020"
|
||||
deviceinfo_dtb="qcom-msm8909-nokia-sparkler"
|
||||
deviceinfo_append_dtb="true"
|
||||
deviceinfo_arch="armv7"
|
||||
deviceinfo_swap_size_recommended="512"
|
||||
|
||||
# Device related
|
||||
deviceinfo_chassis="handset"
|
||||
deviceinfo_external_storage="true"
|
||||
deviceinfo_screen_width="240"
|
||||
deviceinfo_screen_height="320"
|
||||
|
||||
# Bootloader related
|
||||
deviceinfo_flash_method="fastboot"
|
||||
deviceinfo_generate_bootimg="true"
|
||||
deviceinfo_generate_extlinux_config="true"
|
||||
deviceinfo_flash_pagesize="2048"
|
||||
deviceinfo_header_version="0"
|
||||
deviceinfo_flash_offset_base="0x80000000"
|
||||
deviceinfo_flash_offset_kernel="0x00008000"
|
||||
deviceinfo_flash_offset_ramdisk="0x02700000"
|
||||
deviceinfo_flash_offset_second="0x00f00000"
|
||||
deviceinfo_flash_offset_tags="0x02500000"
|
||||
deviceinfo_flash_sparse="true"
|
||||
|
||||
# lk2nd does not support GPT for subpartitions/SD cards yet
|
||||
deviceinfo_partition_type="msdos"
|
||||
@@ -0,0 +1,35 @@
|
||||
# Reference: <https://postmarketos.org/deviceinfo>
|
||||
# Please use double quotes only. You can source this file in shell
|
||||
# scripts.
|
||||
|
||||
deviceinfo_format_version="0"
|
||||
deviceinfo_name="Nokia 6300 4G"
|
||||
deviceinfo_manufacturer="Nokia"
|
||||
deviceinfo_codename="nokia-leo"
|
||||
deviceinfo_year="2020"
|
||||
deviceinfo_dtb="qcom-msm8909-nokia-leo"
|
||||
deviceinfo_append_dtb="true"
|
||||
deviceinfo_arch="armv7"
|
||||
deviceinfo_swap_size_recommended="512"
|
||||
|
||||
# Device related
|
||||
deviceinfo_chassis="handset"
|
||||
deviceinfo_external_storage="true"
|
||||
deviceinfo_screen_width="240"
|
||||
deviceinfo_screen_height="320"
|
||||
|
||||
# Bootloader related
|
||||
deviceinfo_flash_method="fastboot"
|
||||
deviceinfo_generate_bootimg="true"
|
||||
deviceinfo_generate_extlinux_config="true"
|
||||
deviceinfo_flash_pagesize="2048"
|
||||
deviceinfo_header_version="0"
|
||||
deviceinfo_flash_offset_base="0x80000000"
|
||||
deviceinfo_flash_offset_kernel="0x00008000"
|
||||
deviceinfo_flash_offset_ramdisk="0x02700000"
|
||||
deviceinfo_flash_offset_second="0x00f00000"
|
||||
deviceinfo_flash_offset_tags="0x02500000"
|
||||
deviceinfo_flash_sparse="true"
|
||||
|
||||
# lk2nd does not support GPT for subpartitions/SD cards yet
|
||||
deviceinfo_partition_type="msdos"
|
||||
@@ -0,0 +1,2 @@
|
||||
earlycon
|
||||
console=ttyMSM0,115200
|
||||
@@ -0,0 +1,3 @@
|
||||
pm8916-lbc
|
||||
pm8916-bms-vm
|
||||
panel-mipi-dbi
|
||||
Binary file not shown.
@@ -0,0 +1,69 @@
|
||||
# Based on arch/arm64/boot/dts/qcom/spi-panel-gc9305-hlt-24-qvga-cmd.dtsi from
|
||||
# the downstream kernel, which is:
|
||||
# Copyright (c) 2017, 2020, The Linux Foundation. All rights reserved.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License version 2 and
|
||||
# only version 2 as published by the Free Software Foundation.
|
||||
#
|
||||
# This program 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.
|
||||
|
||||
command 0xfe
|
||||
command 0xfe
|
||||
command 0xef
|
||||
command 0x35 0x00
|
||||
command 0x36 0x48
|
||||
command 0x3a 0x05
|
||||
command 0x20
|
||||
command 0x38
|
||||
command 0x13
|
||||
command 0xa4 0x44 0x44
|
||||
command 0xa5 0x42 0x42
|
||||
command 0xa6 0x2a 0x2a
|
||||
command 0xa7 0x2b 0x2b
|
||||
command 0xa8 0x18 0x18
|
||||
command 0xa9 0x2a 0x2a
|
||||
command 0xaa 0x88 0x88
|
||||
command 0xac 0x00
|
||||
command 0xaf 0x55
|
||||
command 0xe1 0x10 0x26
|
||||
command 0xe3 0x01 0x10
|
||||
command 0xe8 0x11 0x77
|
||||
command 0xe0 0x0f
|
||||
command 0xe4 0x00
|
||||
command 0xe5 0x00
|
||||
command 0xe6 0x00
|
||||
command 0xe7 0x00 0x00
|
||||
command 0xea 0x51 0x95 0x00 0x00 0x00 0x00 0x00
|
||||
command 0xeb 0x30
|
||||
command 0xec 0x33 0x22 0x88
|
||||
command 0xed 0x18 0x08
|
||||
command 0xee 0x00
|
||||
command 0xa0 0x00
|
||||
command 0xa1 0x00
|
||||
command 0xa2 0x00
|
||||
command 0xa3 0x00
|
||||
command 0xab 0x00 0x00
|
||||
command 0xad 0x33
|
||||
command 0xae 0x2b
|
||||
command 0xde 0x00
|
||||
command 0xff 0x61
|
||||
command 0xdf 0x08
|
||||
command 0xb6 0x00 0x80 0x27
|
||||
command 0xf0 0x02 0x01 0x00 0x00 0x03 0x07
|
||||
command 0xf1 0x01 0x01 0x00 0x02 0x06 0x0e
|
||||
command 0xf2 0x08 0x06 0x32 0x03 0x04 0x46
|
||||
command 0xf3 0x10 0x0c 0x3e 0x06 0x03 0x4f
|
||||
command 0xf4 0x0b 0x16 0x15 0x1d 0x1e 0x0f
|
||||
command 0xf5 0x08 0x15 0x15 0x1b 0x1c 0x0f
|
||||
command 0xfd 0x00
|
||||
command 0x2a 0x00 0x00 0x00 0xef
|
||||
command 0x2b 0x00 0x00 0x01 0x3f
|
||||
command 0x44 0x00 0x40
|
||||
|
||||
command 0x11 # exit sleep mode
|
||||
delay 120
|
||||
command 0x29 # display on
|
||||
Binary file not shown.
@@ -0,0 +1,26 @@
|
||||
# Based on arch/arm64/boot/dts/qcom/spi-panel-gc9307-hlt-28-qvga-cmd.dtsi from
|
||||
# the downstream kernel, which is:
|
||||
# Copyright (c) 2017, 2020, The Linux Foundation. All rights reserved.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License version 2 and
|
||||
# only version 2 as published by the Free Software Foundation.
|
||||
#
|
||||
# This program 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.
|
||||
|
||||
command 0x11 # exit sleep mode
|
||||
delay 120
|
||||
command 0xfe
|
||||
command 0xef
|
||||
command 0x13
|
||||
command 0x38
|
||||
command 0x20
|
||||
command 0x36 0x00
|
||||
command 0x3a 0x05
|
||||
command 0x35 0x00
|
||||
command 0x89 0x0b
|
||||
command 0xeb 0x02
|
||||
command 0x29 # display on
|
||||
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,2 @@
|
||||
/lib/firmware/nokia,coconut-gc9305-panel.bin
|
||||
/lib/firmware/nokia,argon-gc9305-v2-panel.bin
|
||||
@@ -0,0 +1,31 @@
|
||||
# Reference: <https://postmarketos.org/deviceinfo>
|
||||
deviceinfo_format_version="0"
|
||||
deviceinfo_name="Nokia 800 Tough"
|
||||
deviceinfo_manufacturer="Nokia"
|
||||
deviceinfo_codename="nokia-coconut"
|
||||
deviceinfo_year="2019"
|
||||
deviceinfo_dtb="qcom-msm8905-nokia-coconut"
|
||||
deviceinfo_append_dtb="true"
|
||||
deviceinfo_arch="armv7"
|
||||
deviceinfo_swap_size_recommended="512"
|
||||
|
||||
# Device related
|
||||
deviceinfo_chassis="handset"
|
||||
deviceinfo_external_storage="true"
|
||||
deviceinfo_screen_width="240"
|
||||
deviceinfo_screen_height="320"
|
||||
deviceinfo_drm="true"
|
||||
|
||||
# Bootloader related
|
||||
deviceinfo_flash_method="fastboot"
|
||||
deviceinfo_generate_bootimg="true"
|
||||
deviceinfo_generate_extlinux_config="true"
|
||||
deviceinfo_flash_pagesize="2048"
|
||||
deviceinfo_header_version="0"
|
||||
deviceinfo_flash_offset_base="0x80000000"
|
||||
deviceinfo_flash_offset_kernel="0x00008000"
|
||||
deviceinfo_flash_offset_ramdisk="0x02700000"
|
||||
deviceinfo_flash_offset_second="0x00f00000"
|
||||
deviceinfo_flash_offset_tags="0x02500000"
|
||||
deviceinfo_flash_sparse="true"
|
||||
deviceinfo_partition_type="msdos"
|
||||
@@ -0,0 +1,2 @@
|
||||
earlycon
|
||||
console=ttyMSM0,115200
|
||||
@@ -0,0 +1,5 @@
|
||||
pm8916-lbc
|
||||
pm8916-bms-vm
|
||||
panel-mipi-dbi
|
||||
matrix_keypad
|
||||
matrix_keymap
|
||||
Binary file not shown.
@@ -0,0 +1,35 @@
|
||||
# Nokia 800 Tough (nokia-coconut) 2.4-inch 240x320 QVGA SPI MIPI-DBI panel
|
||||
# Based on arch/arm/boot/dts/argon/spi-panel-gc9305-v2-qvga-cmd from
|
||||
# the downstream kernel, which is:
|
||||
# Copyright (c) 2017, The Linux Foundation. All rights reserved.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License version 2 and
|
||||
# only version 2 as published by the Free Software Foundation.
|
||||
#
|
||||
# This program 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.
|
||||
|
||||
command 0x36 0x00
|
||||
command 0x3a 0x55 # format: 65K 16bit
|
||||
command 0x35 0x00 # TE v-blanking
|
||||
command 0xb2 0x0c 0x0c 0x00 0x33 0x33 # porch setting
|
||||
command 0xb7 0x75 # gate control VGH VGL
|
||||
command 0xbb 0x34 # Vcoms setting 1.4v
|
||||
command 0xc0 0x2c # LCM control
|
||||
command 0xc2 0x01 # VDV VRH COMMAND ENABLE
|
||||
command 0xc3 0x0d # VRH SET
|
||||
command 0xc4 0x20 # VDV SET
|
||||
command 0xc6 0xef # frame rate
|
||||
command 0x44 0x00 0x00 # SET TEARING SCAN LINE
|
||||
command 0xd0 0xa4 0xa1 # power control 1
|
||||
|
||||
# gamma
|
||||
command 0xe0 0xd0 0x02 0x09 0x0d 0x0e 0x19 0x30 0x51 0x43 0x09 0x14 0x13 0x18 0x21
|
||||
command 0xe1 0xd0 0x02 0x09 0x0d 0x0d 0x18 0x32 0x46 0x42 0x09 0x13 0x13 0x17 0x21
|
||||
|
||||
command 0x11 # sleep out
|
||||
delay 120
|
||||
command 0x29 # display on
|
||||
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user