| Name | Model | Attempted to flash | Slot | Symptoms |
|---|---|---|---|---|
| Fajita | A6013 | Halium | a | Device would not turn on at all, booted into QCOM mode to recovery mode. |
This file contains hidden or 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
| #include <stdlib.h> | |
| #include <stdio.h> | |
| #include <stdbool.h> | |
| #define HDMI_EDID_PATH "edid.bin" | |
| #define ALOGE(...) (printf(__VA_ARGS__)) | |
| struct edid_extension { | |
| unsigned char tag; |
This file contains hidden or 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 | |
| # basically what at-to_bootloader_hard does, turns off the USB port the phone is connected to so that | |
| # VBUS is low and the device won't go to EDL (yay oneplus) | |
| # then sends a byte to the arduino to tell it to perform a hard reboot by pressing volume up and power | |
| # finally turn the usb port back on | |
| # sudo uhubctl -a off -p 2 -n 2109:2812 && printf "%b" "\0x01" > /dev/ttyACM0 && sleep 15 && sudo uhubctl -a on -p 2 -n 2109:2812 | |
| export TOOLSDIR=$HOME/pmos/tools |
This file contains hidden or 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 | |
| exec &> /var/log/sdm845-modem-prepare.log | |
| AID=$(qmicli -d qrtr://0 -p --uim-get-card-status | grep -E "([A-Z0-9]{2}:){15}[A-Z0-9]{2}" | xargs) | |
| while [ -z "$AID" ]; do | |
| sleep 2 | |
| AID=$(qmicli -d qrtr://0 -p --uim-get-card-status | grep -E "([A-Z0-9]{2}:){15}[A-Z0-9]{2}" | xargs) | |
| done |
This file contains hidden or 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
| Yeah, you can get it going in postmarketOS by using my pmaports branch here: https://gitlab.com/sdm845-mainline/pmaports/-/tree/mm-tracking | |
| You'll need to get rid of the top commit it was just for my testing and doesn't work. | |
| Checkout HEAD~1 ("modemmanager: QRTR testing") and then change the modem manager APKBUILD to use this branch: https://gitlab.freedesktop.org/aleksm/ModemManager/-/tree/aleksander/qmap-settings-udev (from !501). Then: | |
| pmbootstrap checksum modemmanager | |
| pmbootstrap build libqrtr-glib --arch aarch64 | |
| pmbootstrap build libqmi -- arch aarch64 | |
| pmbootstrap build modemmanager -- arch aarch64 |
This file contains hidden or 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/zsh | |
| METADATA=$(sp metadata) | |
| # Example | |
| #trackid|spotify:track:6NKuZs5wDpbkJaAFfKz5lI | |
| #trackNumber|11 | |
| #discNumber|1 | |
| #url|https://open.spotify.com/track/6NKuZs5wDpbkJaAFfKz5lI | |
| #autoRating|0.42 |
This file contains hidden or 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
| -- Logs begin at Mon 2020-08-10 13:38:50 BST, end at Thu 2020-08-13 13:07:47 BST. -- | |
| Aug 10 23:40:27 cheetah systemd[1]: Starting Fingerprint Authentication Daemon... | |
| -- Subject: A start job for unit fprintd.service has begun execution | |
| -- Defined-By: systemd | |
| -- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel | |
| -- | |
| -- A start job for unit fprintd.service has begun execution. | |
| -- | |
| -- The job identifier is 3156. | |
| Aug 10 23:40:27 cheetah fprintd[53466]: Device responded with error: 789 |
This file contains hidden or 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 | |
| OUT="$HOME/pmos/mainline-boot.img" | |
| DTB="$PWD/.output/arch/arm64/boot/dts/qcom/sdm845-oneplus-enchilada.dtb" | |
| IMAGE="$PWD/.output/arch/arm64/boot/Image.gz" | |
| THIS="$(basename $0)" | |
| die() { | |
| echo $1 1>&2 |
This file contains hidden or 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 | |
| # Originally from: https://gitlab.com/postmarketOS/pmaports/-/blob/master/main/postmarketos-mkinitfs/init_functions.sh#L264 | |
| # See: https://www.kernel.org/doc/Documentation/usb/gadget_configfs.txt | |
| mkdir -p /config | |
| mount none -t configfs /config | |
| CONFIGFS=/config/usb_gadget |
This file contains hidden or 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 | |
| # bandcamp-multidl.sh URL [DESTINATION] | |
| if [ -z $1 ]; then | |
| echo "No URL specified" | |
| exit 1 | |
| fi | |
| if [ ! which bandcamp-dl ]; then |