Skip to content

tb323fu-linux t66

Choose a tag to compare

@joonhoekim joonhoekim released this 25 Nov 17:16

tb323fu-linux t66 — kernel for the Lenovo Legion Tab Y700 gen 5 (TB323FU)

7.3.0-tb323fu-t66: mainline v7.3 + patches 0001–0226 (kernel/patches),
tb323fu-linux 2954bc8. What works: docs/hardware-status.md.

What's new

On top of kernel-t65:

  • microSD retimer calibration, opt-in (0224-0226, replacing 0223's cap, by @Snail-Turbo in
    #66): the slot's BH201 retimer can now be calibrated for
    202 MHz. Off by default: the slot stays at 100 MHz as in kernel-t65 (1 GiB reads at about 47 MB/s). To turn it
    on, write 1 to /sys/module/sd_retimer_o2/parameters/calibrate (lost at reboot); the card is calibrated at its
    next insertion, or, with the card unmounted, after
    echo 8804000.mmc > /sys/bus/platform/drivers/sdhci_msm/unbind and the same to .../bind. It then runs at
    202 MHz (about 90 MB/s here). Calibration took about 0.6 s on the card tested here; on another card a known phase
    passed in 30-70 % of boots (about 2 s), otherwise a full sweep took 44-52 s. If a calibrated phase stops reading
    after a resume, the card runs at 100 MHz for that attach and the next one, then the phase is checked again.
    For the 202 MHz CRC errors in #26: the contributor's
    card, which had them, runs at 202 MHz with calibration on, with no CRC errors and clean file systems (the card
    tested here never had them). The cards reported in #26 have not been tried yet; reports are welcome there.

Known issues

  • With the root on the microSD, calibration cannot be turned on yet: it starts only when the card is attached
    again, a rebind would remove the root, and the release kernel uses its built-in command line, so
    sd_retimer_o2.calibrate=1 cannot be passed at boot.
  • The same as kernel-t65: with the MST monitor tested here, the first plug after boot can fail link training once
    before both screens come up, and a replug sometimes leaves a screen dark (unplug and plug again); daisy chains,
    4K screens and audio over MST are not tested; at 164 Hz the pen stops tracking.

Still true

  • The CPU cluster idle state stays out of runtime idle (patch 0118, cpuidle_psci_domain.allow_cluster_off=0): with
    it the tablet reset when left idle. Suspend still uses it.
  • No USB root shell in release images (how to build one).
  • No firmware inside: drivers that start before the root (GPU, Bluetooth) log a missing-firmware error and recover
    once it is mounted (details).

Install

  • With Open Device Helper: tb323fu-ctl kernel update (or About → Kernel Updates). It runs the kernel on trial
    and goes back by itself if it does not start.
  • By hand: python3 boot-repack-kernel.py stock-boot.img Image-tb323fu-t66 linux-boot.img, then write it to
    boot_a (docs/install.md).
    There is no ready-made boot.img: its header and signatures are Lenovo's and must match your tablet.
  • If it does not boot: hold volume up + down for 10 s to return to Android, or restore boot_a over EDL
    (docs/recovery.md).

You provide: your stock boot.img, the firmware from your own tablet
(firmware/), and
/etc/tb323fu/android-boot.sha256 for the way back to Android.

Files

File
Image-tb323fu-t66 the kernel (device tree, command line, initramfs and all 830 modules built in)
Image-tb323fu-t66.gz the same, compressed; what the helper downloads
modules-tb323fu-t66.tar.gz the modules alone, only for a root set to own modules
boot-repack-kernel.py puts the kernel into your stock boot image
config-tb323fu-t66, initramfs-t66.list, initramfs-t66.files kernel configuration, initramfs contents
busybox-1.36.1.config, busybox-1.36.1.tar.bz2, THIRD-PARTY-NOTICES.txt source, configuration and licences of the initramfs' third-party files
SHA256SUMS checksums (not a signature)

Source code (GPL)

  • Kernel: torvalds/linux v7.3 (c03c1a14507dfaf8b856c2608f9ac216021fc222) + kernel/patches
    at c1e089d5601499453d82fa7209b886283b13186a; configuration config-tb323fu-t66 = defconfig + kaanapali-oneplus-infiniti_defconfig
    • kernel/config/baldur.fragment, baldur-display.fragment, baldur-netfilter.fragment, baldur-extra.fragment.
      Origins of every patch: kernel/PROVENANCE.md.
  • Out-of-tree module snd-soc-aw882xx (GPL-2.0): kernel/out-of-tree/aw882xx.
  • Initramfs: kernel/initramfs, userspace/platform/src/keyhold.c, android/back-to-android.
  • BusyBox 1.36.1 (GPL-2.0), unmodified, source attached (sha256 b8cc24c9574d809e7279c3be349795c5d5ceb6fdf19ca709f80cde50e47de314);
    static aarch64 binary sha256 9ebb421890774102b38919eced19cd3ccd51a984ac0599cbc763f1b09dad11e7.
  • Terminus Font (SIL OFL 1.1, console), wireless-regdb regulatory.db (ISC, sha256 2fb33ca0074db573e05ef7dd50bb45b63c0ff98b7e852e1105ebad536fae8e6b).

Licences of the repository: NOTICE. Modified builds use their own name: TRADEMARKS.md.