This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
MIRROR_PMOS=http://mirror.postmarketos.org/postmarketos/ | |
MIRROR_ALPINE=http://mirror.yandex.ru/mirrors/alpine/ | |
#MIRROR_ALPINE=http://dl-cdn.alpinelinux.org/alpine/ | |
python3 ~/projects/pmbootstrap/pmbootstrap.py \ | |
--mirror-pmOS=${MIRROR_PMOS} \ | |
--mirror-alpine=${MIRROR_ALPINE} \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -x | |
G1="/sys/kernel/config/usb_gadget/g1" | |
# turn off the gadget | |
UDC_NAME=$( cat $G1/UDC ) | |
echo "" > $G1/UDC | |
sleep 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
# SPDX-License-Identifier: GPL-3.0 | |
# Author: Alexey Minnekhanov <[email protected]> | |
# Uncompressed aarch64 kernel image does not include file size | |
# anywhere inside the file itself; so we have to fake that. | |
# Append the size as a 32-bit little-endian number as gzip does. | |
# This works as follows: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/dts-v1/; | |
/ { | |
#address-cells = <0x1>; | |
#size-cells = <0x1>; | |
model = "SAMSUNG K PROJECT REV14"; | |
compatible = "qcom,msm8974-mtp", "qcom,msm8974", "qcom,mtp"; | |
interrupt-parent = <0x1>; | |
qcom,msm-id = <0xc208ff01 0xe 0x10000>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# First step, perform "pmbootstrap install" locally once for your device, | |
# to get the initramfs file generated by pmbootstrap. | |
# Then copy it into build dir (this is done only once!): | |
$ ./cp-initfs.sh | |
# Then regular build process: | |
$ ./menuconfig.sh or ./make.sh oldconfig | |
$ ./make.sh && ./modules-install.sh && ./replace-modules-in-initfs.sh xiaomi-lavender-tianma && ./create-bootimg.sh xiaomi-lavender-tianma && ./upload-modules-rsync.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#ifndef LINENOISE_CONVERT_INC | |
#define LINENOISE_CONVERT_INC | |
/* | |
Copyright 2020 [email protected] -- turned into single header C lib | |
inevitably some name clashes will | |
start becuase of this header. | |
Thus renaming is very likely not finished | |
Licence: CC BY SA 4.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Thread: started! | |
Thread: writing: Write 0 | |
ready to read! | |
read: Write 0 | |
Thread: writing: Write 1 | |
ready to read! | |
read: Write 1 | |
Thread: writing: Write 2 | |
ready to read! | |
read: Write 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -x | |
KERNEL=./arch/arm64/boot/Image.gz | |
KERNEL_DTB=${KERNEL}-dtb | |
DTB=./arch/arm64/boot/dts/qcom/sdm660-xiaomi-lavender.dtb | |
INITRD=initramfs-postmarketos-qcom-sdm660 | |
# Optional: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/dts-v1/; | |
/ { | |
#address-cells = <0x2>; | |
#size-cells = <0x2>; | |
model = "Qualcomm Technologies, Inc. SDM 660 PM660 + PM660L MTP F7A overlay"; | |
compatible = "qcom,sdm660-mtp", "qcom,sdm660", "qcom,mtp"; | |
qcom,msm-id = <0x13d 0x0>; | |
interrupt-parent = <0x1>; | |
qcom,board-id = <0x20008 0x0>; |
NewerOlder