Repository navigation
Releases
fajita-7.4.0-rc2-2
A mainline kernel for the OnePlus 6T (fajita) running VibeOS, with the packages that go with it. This is a pre-release, tested on one phone.
New since fajita-7.4.0-rc2-1: all three cameras work, through the CAMSS interconnect votes and Lolren's sensor fixes, with a patched libcamera. mojavemesa-lgtm's charger patches are in (charging is not retested on this phone yet). With the ath10k fix a WLAN disconnect took 555 ms in our test, without the key removal's timeout (-110). ModemManager adds the bearer MTU fix.
This release is built by this repository's CI from tag fajita-7.4.0-rc2-2 (commit 381388b), version 7.4.0-rc2-sdm845-g381388ba7548; the files' own record of that is SOURCE. The kernel source is branch op6t-camera at 817fd85; the two commits on top add only the CI (.github/), whose configuration gives the same .config as the build we tested locally, and the same devicetree byte for byte. Its boot image was started on the phone with fastboot boot before the release was published.
Files
| File | What it is |
|---|---|
boot-7.4.0-rc2-sdm845-g381388ba7548.img |
Boot image: kernel, devicetree, and the initramfs of the VibeOS 0.1.3 boot image for the 6T with this kernel's modules. The command line adds fw_devlink.sync_state=timeout. |
modules-7.4.0-rc2-sdm845-g381388ba7548.tar.gz |
The kernel modules, for /usr/lib/modules. They are signed with a key made for this build: they load only into this kernel. |
Image.gz-dtb-7.4.0-rc2-sdm845-g381388ba7548 |
Kernel and devicetree only, for your own boot image or nura-to-vibeos --kernel. |
config-7.4.0-rc2-sdm845-g381388ba7548 |
The kernel configuration of this build. |
SOURCE |
Where and from which commit this build was made. |
modemmanager-network-manager-debs-arm64.tar |
ModemManager 1.24.2-2+surya3+fajita7 and NetworkManager 1.58.1-1+fajita1. Deep sleep needs both, see below. |
patches-modemmanager-network-manager.tar.gz |
The source changes of those two builds, as in VibeOS's patches/: on top of Debian's modemmanager 1.24.2-2 and network-manager 1.58.1-1. |
libcamera-debs-arm64.tar |
libcamera 0.7.2-1+surya21+fajita10 (libcamera0.7, libcamera-ipa, libcamera-v4l2, gstreamer1.0-libcamera). |
patches-libcamera.tar.gz |
Its source changes on top of Debian's libcamera 0.7.2-1: VibeOS's surya patches and the fajita series of VibeOS PRs #33–#42. |
libcamera-tuning-oneplus-6t.tar.gz |
Tuning files for the three sensors (imx371.yaml front, imx376.yaml and imx519.yaml rear), for /usr/share/libcamera/ipa/simple/. Provisional, see below. |
SHA256SUMS |
Checksums of all files. |
Why suspend needs the two packages
Without them, the modem wakes the phone a millisecond after every suspend, so it never reaches deep sleep:
- NetworkManager disconnected every mobile bearer on sleep, including the IMS bearer that VoLTE runs on. The modem then asked for it again at once, and that request woke the phone. The patch makes NetworkManager disconnect only its own bearer. This is NetworkManager issue #2050.
- ModemManager kept two kinds of modem messages on while the phone slept: the bearers' WDS event reports (patches 0012 and 0013, upstream MR !1511) and the "profile changed" indication (patch 0014). Both are off during suspend and back on after resume.
- New in
+fajita7: the bearer reported the modem's MTU of 1500, larger than the link over IPA can take, so NetworkManager failed to set it every 30 s. Patch 0015 reports the link's own MTU when the modem's is larger.
VibeOS's own 6T device zip carries ModemManager +fajita6 and NetworkManager +fajita1 (VibeOS PRs #30 and #31); +fajita7 is VibeOS PR #32.
The camera
Rear main camera IMX519, rear second camera IMX376 and front camera IMX371 all stream, also with the display off. The picture comes from libcamera's soft ISP; +fajita10 adds, as VibeOS PRs #33–#42: the three sensors' gain and black level (Lolren), statistics over the visible picture (Lolren), image adjustment and exposure target from the tuning file (Lolren), white balance that settles on a well-exposed frame and balances the frames before it, contrast after gamma, lens shading correction from a gain grid, and the IMX376's phase-detection pixels corrected.
The tuning files are our own measurements on one phone: lens shading from flat fields at 0.8 of its full strength, no colour matrix (identity), saturation 1.4, contrast 1.1. The exposure targets of the IMX376 and the front camera are not measured in daylight yet, and the front camera's lens shading overcorrects a little.
Installing
Back up first. On the phone:
sudo dd if=/dev/disk/by-partlabel/boot_a of=$HOME/boot_a.img
sudo dd if=/dev/disk/by-partlabel/boot_b of=$HOME/boot_b.img-
Check the downloads:
sha256sum -c SHA256SUMS. -
Install the modules:
sudo tar -C /usr/lib/modules -xzf modules-7.4.0-rc2-sdm845-g381388ba7548.tar.gz -
Install the packages and hold them, so that an
apt upgradedoes not replace them with Debian's:mkdir debs && tar -C debs -xf modemmanager-network-manager-debs-arm64.tar && tar -C debs -xf libcamera-debs-arm64.tar sudo dpkg -i debs/*.deb sudo apt-mark hold modemmanager libmm-glib0 gir1.2-modemmanager-1.0 network-manager libnm0 gir1.2-nm-1.0 network-manager-l10n network-manager-tui libcamera0.7 libcamera-ipa libcamera-v4l2 gstreamer1.0-libcamera
Install all of them with one
dpkg -i:network-managerandlibnm0depend on the exact same version, and so do the libcamera packages. -
The camera's tuning files:
sudo tar -C /usr/share/libcamera/ipa/simple -xzf libcamera-tuning-oneplus-6t.tar.gz -
Try the kernel without flashing it. Reboot into fastboot, then
fastboot boot boot-7.4.0-rc2-sdm845-g381388ba7548.img. -
If everything works, flash it to the active slot (
fastboot getvar current-slot), for examplefastboot flash boot_a boot-7.4.0-rc2-sdm845-g381388ba7548.img.
To go back, flash your backup the same way.
Known issues
- Release 1 hung in about 3 of 10 boots, each time recovering on its own. This release has not been counted yet.
- Once, after a reboot into the bootloader, the phone showed the fastboot screen but the computer saw it only after the USB cable was plugged in again.
- A call answered from deep sleep takes a few seconds before both sides hear each other.
- Waking up for an SMS has not been tested yet.
- The first two or three camera frames after switching cameras still have a yellow cast.
Kernel patches since fajita-7.4.0-rc2-1
- Update sdm845-mainline v7.4-wip to fb1b9ff838cf
- power: supply: qcom_smbx: Leave the Type-C role register to the port driver (mojavemesa-lgtm)
- power: supply: qcom_smbx: Enable the periodic AICL rerun on SMB2 (mojavemesa-lgtm)
- power: supply: qcom_smbx: Do not restart APSD on every status poll (mojavemesa-lgtm)
- power: supply: qcom_smbx: Follow the Type-C / USB PD supplier's current (mojavemesa-lgtm)
- arm64: dts: qcom: pmi8998: Link the charger to the Type-C port as supplier (mojavemesa-lgtm)
- arm64: dts: qcom: sdm845-oneplus: Lower op-sink-microwatt to 5 W (mojavemesa-lgtm)
- arm64: dts: qcom: sdm845: describe the download mode register
- media: i2c: imx371: add 2304x1728 binned mode (Lolren)
- arm64: dts: qcom: sdm845-oneplus: add IMX371 binned link rate (Lolren)
- media: i2c: imx371: correct analogue gain range (Lolren)
- media: i2c: imx376: correct analogue gain range (Lolren)
- dt-bindings: media: qcom,sdm845-camss: Add interconnects (EMCP333, from linux-media)
- media: qcom: camss: Vote interconnect bandwidth on SDM845 (EMCP333, from linux-media)
- arm64: dts: qcom: sdm845: Add CAMSS interconnects (EMCP333, from linux-media)
- media: i2c: imx519: default preview modes to 30 fps (Lolren)
- wifi: ath10k: skip completion wait for pairwise key removal (David Heidelberg, RFC)
The patches of release 1 are all still in. Lolren's patches are from lolren/oneplus6t-pmos-fixes, mojavemesa-lgtm's from mojavemesa-lgtm/oneplus6t-pmos-fixes.
Licences
The kernel is GPL-2.0, its source is this repository at tag fajita-7.4.0-rc2-2. ModemManager and NetworkManager are GPL-2.0-or-later, libcamera LGPL-2.1-or-later: their source is Debian's source package of the version named above, plus the patches attached here. The tuning files are CC0-1.0.
OnePlus 6T: mainline kernel 7.4.0-rc2 for VibeOS (pre-release 1)
A mainline kernel for the OnePlus 6T (fajita) running VibeOS. This is a pre-release, tested on one phone.
With it, the 6T makes and takes calls (circuit-switched and VoLTE), plays through the earpiece and the speaker at normal volume, and reaches deep sleep in suspend. An incoming call wakes it from deep sleep. In the first everyday test it used about 3 % of the battery in 1 h 40 min, including the time it was awake.
The kernel is sdm845-mainline v7.4-wip (ba8f3ce76389) with the 6T patches of branch op6t-fixes-1126. This build is tag fajita-7.4.0-rc2-1 at commit 6c315d6, version 7.4.0-rc2-sdm845-g6c315d6074fe.
Files
| File | What it is |
|---|---|
boot-7.4.0-rc2-sdm845-g6c315d6074fe.img |
Boot image: kernel, devicetree, and the initramfs of the VibeOS 0.1.3 boot image for the 6T with this kernel's modules. The command line adds fw_devlink.sync_state=timeout. |
modules-7.4.0-rc2-sdm845-g6c315d6074fe.tar.gz |
The kernel modules, for /usr/lib/modules. |
Image.gz-dtb-7.4.0-rc2-sdm845-g6c315d6074fe |
Kernel and devicetree only, for your own boot image. |
config-7.4.0-rc2-sdm845-g6c315d6074fe |
The kernel configuration of this build. |
modemmanager-network-manager-debs-arm64.tar |
ModemManager 1.24.2-2+surya3+fajita6 and NetworkManager 1.58.1-1+fajita1. Deep sleep needs both, see below. |
patches-modemmanager-network-manager.tar.gz |
The source changes of those two builds: the patch series on top of Debian's modemmanager 1.24.2-2 and network-manager 1.58.1-1. |
SHA256SUMS |
Checksums of all files. |
Why suspend needs the two packages
Without them, the modem wakes the phone a millisecond after every suspend, so it never reaches deep sleep:
- NetworkManager disconnected every mobile bearer on sleep, including the IMS bearer that VoLTE runs on. The modem then asked for it again at once, and that request woke the phone. The patch makes NetworkManager disconnect only its own bearer. This is NetworkManager issue #2050.
- ModemManager kept two kinds of modem messages on while the phone slept. The first are the bearers' WDS event reports, which it only logs: the modem sends "traffic channel dormant" exactly when the phone goes to sleep. Patches 0012 and 0013 (upstream MR !1511) turn them off before suspend. The second is the "profile changed" indication, which the modem sends as NetworkManager disconnects the data bearer. Patch 0014 turns it off too. Both come back on after resume.
Until 27 Nov 2026 this release carried +fajita4, whose own 0012 left only the data call status report on. +fajita6 replaces it. With the USB cable in, +fajita4 slept through 1 of 4 test suspends of 120 s, +fajita6 through 4 of 4.
The ModemManager series also carries VibeOS's three surya patches and eight fixes from upstream ModemManager, among them the assert on suspend with multiplexed bearers and a use-after-free on reconnect.
Installing
Back up first. On the phone:
sudo dd if=/dev/disk/by-partlabel/boot_a of=$HOME/boot_a.img
sudo dd if=/dev/disk/by-partlabel/boot_b of=$HOME/boot_b.img-
Check the downloads:
sha256sum -c SHA256SUMS. -
Install the modules:
sudo tar -C /usr/lib/modules -xzf modules-7.4.0-rc2-sdm845-g6c315d6074fe.tar.gz -
Install the packages and hold them, so that an
apt upgradedoes not replace them with Debian's:mkdir debs && tar -C debs -xf modemmanager-network-manager-debs-arm64.tar sudo dpkg -i debs/*.deb sudo apt-mark hold modemmanager libmm-glib0 gir1.2-modemmanager-1.0 network-manager libnm0 gir1.2-nm-1.0 network-manager-l10n network-manager-tui
Install all of them with one
dpkg -i:network-managerandlibnm0depend on the exact same version. -
Try the kernel without flashing it. Reboot into fastboot, then
fastboot boot boot-7.4.0-rc2-sdm845-g6c315d6074fe.img. -
If everything works, flash it to the active slot (
fastboot getvar current-slot), for examplefastboot flash boot_a boot-7.4.0-rc2-sdm845-g6c315d6074fe.img.
To go back, flash your backup the same way.
Known issues
- About 3 boots in 10 hang early; each time the phone recovered on its own.
- If the USB cable is plugged in while the phone sleeps, USB stays dead after wakeup. Workaround:
echo host | sudo tee /sys/class/usb_role/a600000.usb-role-switch/role; sleep 3; echo device | sudo tee /sys/class/usb_role/a600000.usb-role-switch/role - A call answered from deep sleep takes a few seconds before both sides hear each other.
- Waking up for an SMS has not been tested yet.
Kernel patches on top of sdm845-mainline
- arm64: dts: qcom: sdm845-oneplus: wire up the focus actuators (605b9f8)
- media: i2c: lc89821x: add vio supply (7ba6e88)
- arm64: dts: qcom: sdm845-oneplus: add vio supply to the actuators (2c86ffc)
- drm/msm/dsi/phy: power up digtop before starting the 10nm PLL (92c0a19)
- media: venus: keep the IRQ masked when recovery fails to boot (f214db6)
- ASoC: codecs: wcd934x: capture path needs MCLK (eed8799)
- arm64: dts: qcom: sdm845: route the SPMI arbiter interrupt through the PDC (d90238b)
- interconnect: qcom: sdm845: drop the bootloader's ALC and SH4 BCM votes (9fafa9f)
- soc: qcom: rpmh: keep waiting after a TX-done timeout (558ccc0)
- scsi: ufs: drop the OPP (CX/interconnect vote) in ufshcd_suspend() (b8e2d3d)
- rpmsg: qcom_glink: don't dereference ept.rpdev before the endpoint exists (eef49d1)
- usb: dwc3: gadget: don't start a transfer on enable while End Transfer is delayed (b472ab4)
- ASoC: tfa98xx: don't limit a DPCM front end to the profile rate (e676847)
- ASoC: qcom: sdm845: Limit RX digital gain to 0 dB (02702f6)
- drm/panel: s6e3fc2x01: restore LPM when a brightness write fails (ff3f274)
The branch also has a patch that kept the MM1 interconnect voted in the sleep set, and its revert: deep sleep works without it.
Licences
The kernel is GPL-2.0, its source is this repository at tag fajita-7.4.0-rc2-1. ModemManager and NetworkManager are GPL-2.0-or-later: their source is Debian's source package of the version named above, plus the patches attached here.