TechBuzzPro

Find Tablet SoC Kernel and Touchscreen Build Info

· 5 min read · Phones & Tablets

In this article
  1. What You'll Need
  2. Step‑By‑Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Yes, you can locate the kernel that was compiled for your tablet’s SoC and touchscreen by examining the kernel image, its configuration file, and the boot logs using a PC, ADB, and fastboot tools.

What You'll Need

  • A computer running Linux, macOS, or Windows with the Android SDK platform‑tools installed (adb and fastboot).
  • USB cable compatible with your tablet.
  • Developer options enabled on the tablet and USB debugging turned on.
  • Root access or an unlocked bootloader if you need to read the raw kernel image (many tablets allow read‑only access to /proc/version without rooting).
  • Basic command‑line knowledge (terminal, sudo, cat, grep, etc.).

Step‑By‑Step

  1. Connect the tablet to the PC with the USB cable and verify the connection:
    adb devices
    You should see your device listed as device. If not, check the cable, enable USB debugging, and accept the RSA key prompt on the tablet.
  2. Pull the kernel version string from the running system:
    adb shell cat /proc/version
    The output looks like Linux version 4.19.112‑g5f2c3b…. Note the version number; it tells you which upstream kernel source the device is based on.
  3. Gather boot‑log information that often contains the SoC and touchscreen driver names:
    adb shell dmesg | grep -i "soc\|touch"
    Look for lines such as mtk-soc: Qualcomm Snapdragon 845 or fts_ts: FT5x06 touchscreen driver. These identifiers help you confirm the exact SoC and touchscreen controller.
  4. If the device is bootloader‑unlocked, you can download the raw kernel image directly:
    adb reboot bootloader
    Then, from fastboot mode, run:
    fastboot getvar all | grep "kernel"
    Some devices expose a boot partition that contains the kernel. To pull it:
    fastboot flash --download boot boot.img
    (Replace --download with the appropriate fastboot command for your platform; on many fastboot builds the command is fastboot getvar boot followed by fastboot oem read-bootloader.)
  5. Extract the kernel configuration from the image (if the CONFIG_IKCONFIG option was enabled during compilation):
    mkdir kernel_extracted && cd kernel_extracted
        binwalk -e ../boot.img
        gunzip -c _boot.img.extracted/kernel | strings | grep CONFIG_ > .config
    The resulting .config file lists every compile‑time option, including CONFIG_TOUCHSCREEN_* entries that reveal which touchscreen driver was built into the kernel.
  6. If extracting the config fails, you can often find a copy of the config in the /proc/config.gz pseudo‑file (requires root):
    adb root
        adb shell "zcat /proc/config.gz" > kernel_config.txt
    Search this file for TOUCHSCREEN to see the exact driver name.
  7. Cross‑reference the driver name with the SoC documentation. For example, if you see CONFIG_TOUCHSCREEN_FTS, the device likely uses an FocalTech FT5x06 controller, which is common on many MediaTek‑based tablets.
  8. Optional: download the vendor’s source release (many manufacturers publish kernel sources to satisfy GPL requirements). Search for the device’s codename plus “kernel source” on the manufacturer’s developer portal. Compare the .config you extracted with the defconfig in the released source to confirm they match.

Common Mistakes

  • Skipping the step to enable USB debugging. Without it, adb cannot communicate with the tablet.
  • Attempting to pull /proc/config.gz on a non‑rooted device. That file is only readable by the root user.
  • Using the wrong fastboot command for your device. Fastboot implementations differ; consult the device‑specific guide if fastboot getvar boot returns an error.
  • Assuming the kernel image is named boot.img. Some manufacturers label it kernel.img or store it in a different partition (e.g., lk or recovery).
  • Overlooking compressed kernel configurations. If CONFIG_IKCONFIG_PROC is disabled, /proc/config.gz will not exist, and you must rely on extraction from the raw image.

Tips

  • Keep a copy of the original boot.img before modifying anything. This protects you from bricking the device if you later flash a custom kernel.
  • Use grep -i "touchscreen" .config after extracting the config to quickly locate all touchscreen‑related options.
  • If the kernel version string includes a git hash (e.g., g5f2c3b), you can search that hash on the vendor’s source repository to find the exact commit.
  • When the SoC is not obvious from dmesg, look for entries like CPU: ARMv8 Processor combined with Hardware platform: XYZ. These clues narrow the chip family.
  • Some tablets expose the kernel command line via adb shell cat /proc/cmdline. Parameters such as androidboot.hardware= often contain the SoC identifier.

Troubleshooting

If any step fails, follow this checklist:

  1. Device not listed by adb devices: Re‑enable USB debugging, try a different USB port, or install the appropriate USB drivers (Windows) or udev rules (Linux).
  2. Permission denied when reading /proc/config.gz: Verify that you have root access (adb root). If the device’s boot image disables root, you will need to unlock the bootloader or use a custom recovery that provides temporary root.
  3. Fastboot cannot detect the device: Ensure the tablet is in fastboot mode (often “fastboot” or “download” mode). Some devices require holding a specific button combo while powering on.
  4. Binwalk extraction yields no kernel file: The boot image may be encrypted or use a non‑standard container. In that case, check the vendor’s source release for the unencrypted zImage or Image.gz file.
  5. Search results show no matching driver: Double‑check the spelling of the driver name. Some drivers are built as modules (e.g., touchscreen.ko) and may not appear in the main config. List loaded modules with adb shell lsmod and look for entries containing “touch”.

Frequently Asked Questions

Can I find the kernel version without root?

Yes. The /proc/version file is world‑readable, so adb shell cat /proc/version works on any device with USB debugging enabled.

Do I need to flash a custom recovery to extract the kernel?

No. If the bootloader is unlocked, fastboot can download the boot partition directly. A custom recovery is only necessary when the device blocks fastboot access.

What if my tablet’s bootloader cannot be unlocked?

Without an unlocked bootloader you cannot pull the raw kernel image. In that case, rely on the information available from dmesg and /proc/version, or consult the manufacturer’s publicly released source package.

Is the touchscreen driver always compiled into the kernel?

Not always. Some devices load the driver as a separate module (e.g., touchscreen.ko). You can list loaded modules with adb shell lsmod and search for names that contain “touch”.

How do I know which kernel source to download from the vendor?

Match the kernel version string from /proc/version and the git hash (if present) with the version tags on the vendor’s source repository. The vendor is required to publish the exact source used for the shipped kernel.

Can I modify the extracted .config and recompile the kernel?

Yes, but you must have a toolchain that matches the tablet’s architecture (usually ARM64) and a proper cross‑compilation environment. Re‑flashing a modified kernel also requires an unlocked bootloader and a reliable flashing method.