# Tài liệu về kernel

Khám phá Qualcomm^®^ Linux^®^ kernel—được tùy chỉnh để tăng hiệu năng, khả năng mở rộng và chức năng hệ thống trên chip (SoC).

## Tổng quan về kernel

<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewbox="0 0 16 16" fill="none" aria-label="icon3">
  <path d="M8 2V14M3.33333 2H12.6667C13.403 2 14 2.59695 14 3.33333V12.6667C14 13.403 13.403 14 12.6667 14H3.33333C2.59695 14 2 13.403 2 12.6667V3.33333C2 2.59695 2.59695 2 3.33333 2Z" stroke="#2A2AEA" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
</svg> Tổng quan về kernel

Qualcomm Linux giúp chuyển và tùy chỉnh Linux kernel sang các thiết bị có SoC phần cứng Qualcomm.

https://docs.qualcomm.com/doc/80-70020-3VI/topic/overview.html#linux-overview-firstpage

## Bắt đầu với Qualcomm Linux kernel

<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewbox="0 0 16 16" fill="none" aria-label="icon3">
  <path d="M8 2V14M3.33333 2H12.6667C13.403 2 14 2.59695 14 3.33333V12.6667C14 13.403 13.403 14 12.6667 14H3.33333C2.59695 14 2 13.403 2 12.6667V3.33333C2 2.59695 2.59695 2 3.33333 2Z" stroke="#2A2AEA" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
</svg> Truy cập mã nguồn Qualcomm Linux kernel

Truy cập mã nguồn kernel và các lớp meta cần thiết.

https://docs.qualcomm.com/doc/80-70020-3VI/topic/getting_started_chapter2.html#access-the-source-code-task

<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewbox="0 0 16 16" fill="none" aria-label="icon3">
  <path d="M8 2V14M3.33333 2H12.6667C13.403 2 14 2.59695 14 3.33333V12.6667C14 13.403 13.403 14 12.6667 14H3.33333C2.59695 14 2 13.403 2 12.6667V3.33333C2 2.59695 2.59695 2 3.33333 2Z" stroke="#2A2AEA" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
</svg> Xác định các máy Qualcomm được hỗ trợ

Xác định các máy được hỗ trợ trong phần mềm.

https://docs.qualcomm.com/doc/80-70020-3VI/topic/getting_started_chapter2.html#supported-machines

<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewbox="0 0 16 16" fill="none" aria-label="icon3">
  <path d="M8 2V14M3.33333 2H12.6667C13.403 2 14 2.59695 14 3.33333V12.6667C14 13.403 13.403 14 12.6667 14H3.33333C2.59695 14 2 13.403 2 12.6667V3.33333C2 2.59695 2.59695 2 3.33333 2Z" stroke="#2A2AEA" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
</svg> Build recipe ảnh Yocto và cấu hình kernel

Tìm hiểu cách build ảnh Yocto cho các biến thể cơ sở và tùy chỉnh.

https://docs.qualcomm.com/doc/80-70020-3VI/topic/getting_started_chapter2.html#kernel-configuration-image

<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewbox="0 0 16 16" fill="none" aria-label="icon3">
  <path d="M8 2V14M3.33333 2H12.6667C13.403 2 14 2.59695 14 3.33333V12.6667C14 13.403 13.403 14 12.6667 14H3.33333C2.59695 14 2 13.403 2 12.6667V3.33333C2 2.59695 2.59695 2 3.33333 2Z" stroke="#2A2AEA" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
</svg> Truy cập device tree nền tảng

Xác định device tree nền tảng cho Qualcomm SoC.

https://docs.qualcomm.com/doc/80-70020-3VI/topic/getting_started_chapter2.html#platform-device-tree

<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewbox="0 0 16 16" fill="none" aria-label="icon3">
  <path d="M8 2V14M3.33333 2H12.6667C13.403 2 14 2.59695 14 3.33333V12.6667C14 13.403 13.403 14 12.6667 14H3.33333C2.59695 14 2 13.403 2 12.6667V3.33333C2 2.59695 2.59695 2 3.33333 2Z" stroke="#2A2AEA" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
</svg> Quản lý các đoạn device tree overlay nằm ngoài mã nguồn chính

Đặt cấu hình DTB overlays (DTBO) nằm ngoài mã nguồn chính trong các tệp cấu hình dành riêng cho máy trong thời gian build.

https://docs.qualcomm.com/doc/80-70020-3VI/topic/getting_started_chapter2.html#out-of-kernel-device-tree-fragments

<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewbox="0 0 16 16" fill="none" aria-label="icon3">
  <path d="M8 2V14M3.33333 2H12.6667C13.403 2 14 2.59695 14 3.33333V12.6667C14 13.403 13.403 14 12.6667 14H3.33333C2.59695 14 2 13.403 2 12.6667V3.33333C2 2.59695 2.59695 2 3.33333 2Z" stroke="#2A2AEA" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
</svg> Quản lý mô-đun kernel không nằm trong cây mã nguồn chính

Build và tự động tải mô-đun kernel không nằm trong cây mã nguồn chính bằng Yocto.

https://docs.qualcomm.com/doc/80-70020-3VI/topic/getting_started_chapter2.html#out-of-tree-kernel-modules

<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewbox="0 0 16 16" fill="none" aria-label="icon3">
  <path d="M8 2V14M3.33333 2H12.6667C13.403 2 14 2.59695 14 3.33333V12.6667C14 13.403 13.403 14 12.6667 14H3.33333C2.59695 14 2 13.403 2 12.6667V3.33333C2 2.59695 2.59695 2 3.33333 2Z" stroke="#2A2AEA" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
</svg> Build ảnh thiết bị

Buid ảnh Qualcomm Linux đầy đủ bằng Yocto.

https://docs.qualcomm.com/doc/80-70020-3VI/topic/getting_started_chapter2.html#build-chapter2

<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewbox="0 0 16 16" fill="none" aria-label="icon3">
  <path d="M8 2V14M3.33333 2H12.6667C13.403 2 14 2.59695 14 3.33333V12.6667C14 13.403 13.403 14 12.6667 14H3.33333C2.59695 14 2 13.403 2 12.6667V3.33333C2 2.59695 2.59695 2 3.33333 2Z" stroke="#2A2AEA" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
</svg> Khởi động thiết bị

Khởi động thiết bị sau khi build xong.

https://docs.qualcomm.com/doc/80-70020-3VI/topic/getting_started_chapter2.html#flash-images-and-boot

## Tổng quan về kiến trúc và quy trình khởi động

<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewbox="0 0 16 16" fill="none" aria-label="icon3">
  <path d="M8 2V14M3.33333 2H12.6667C13.403 2 14 2.59695 14 3.33333V12.6667C14 13.403 13.403 14 12.6667 14H3.33333C2.59695 14 2 13.403 2 12.6667V3.33333C2 2.59695 2.59695 2 3.33333 2Z" stroke="#2A2AEA" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
</svg> Trình quản lý khởi động Giao diện firmware phổ dụng có thể mở rộng (UEFI)

Hiểu về quy trình khởi động cold boot Qualcomm Linux.

https://docs.qualcomm.com/doc/80-70020-3VI/topic/boot-flow-and-architecture-overview.html#section-uefi-boot-managers

<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewbox="0 0 16 16" fill="none" aria-label="icon3">
  <path d="M8 2V14M3.33333 2H12.6667C13.403 2 14 2.59695 14 3.33333V12.6667C14 13.403 13.403 14 12.6667 14H3.33333C2.59695 14 2 13.403 2 12.6667V3.33333C2 2.59695 2.59695 2 3.33333 2Z" stroke="#2A2AEA" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
</svg> Systemd-boot

Tìm hiểu về systemd-boot, công cụ giúp quản lý các mục khởi động và ảnh kernel hợp nhất của Qualcomm Linux.

https://docs.qualcomm.com/doc/80-70020-3VI/topic/boot-flow-and-architecture-overview.html#systemd-boot

<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewbox="0 0 16 16" fill="none" aria-label="icon3">
  <path d="M8 2V14M3.33333 2H12.6667C13.403 2 14 2.59695 14 3.33333V12.6667C14 13.403 13.403 14 12.6667 14H3.33333C2.59695 14 2 13.403 2 12.6667V3.33333C2 2.59695 2.59695 2 3.33333 2Z" stroke="#2A2AEA" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
</svg> Qualcomm Linux kernel dưới dạng stub EFI

Khởi động Qualcomm Linux kernel trực tiếp thông qua stub EFI.

https://docs.qualcomm.com/doc/80-70020-3VI/topic/boot-flow-and-architecture-overview.html#efi-stub

<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewbox="0 0 16 16" fill="none" aria-label="icon3">
  <path d="M8 2V14M3.33333 2H12.6667C13.403 2 14 2.59695 14 3.33333V12.6667C14 13.403 13.403 14 12.6667 14H3.33333C2.59695 14 2 13.403 2 12.6667V3.33333C2 2.59695 2.59695 2 3.33333 2Z" stroke="#2A2AEA" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
</svg> Ảnh khởi động và ESP hoặc phân vùng khởi động

Tìm hiểu về việc hợp thành phân vùng hệ thống EFI (ESP).

https://docs.qualcomm.com/doc/80-70020-3VI/topic/boot-flow-and-architecture-overview.html#section-ovm-wjs-s1c

## Đặt cấu hình cài đặt postboot

<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewbox="0 0 16 16" fill="none" aria-label="icon3">
  <path d="M8 2V14M3.33333 2H12.6667C13.403 2 14 2.59695 14 3.33333V12.6667C14 13.403 13.403 14 12.6667 14H3.33333C2.59695 14 2 13.403 2 12.6667V3.33333C2 2.59695 2.59695 2 3.33333 2Z" stroke="#2A2AEA" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
</svg> Tổng quan về postboot framework

Đặt cấu hình các tham số bộ nhớ, CPU và hệ thống.

https://docs.qualcomm.com/doc/80-70020-3VI/topic/post-boot-settings.html#postboot-frameowrk

<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewbox="0 0 16 16" fill="none" aria-label="icon3">
  <path d="M8 2V14M3.33333 2H12.6667C13.403 2 14 2.59695 14 3.33333V12.6667C14 13.403 13.403 14 12.6667 14H3.33333C2.59695 14 2 13.403 2 12.6667V3.33333C2 2.59695 2.59695 2 3.33333 2Z" stroke="#2A2AEA" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
</svg> Cài đặt dịch vụ postboot systemd

Đặt cấu hình dịch vụ systemd trong postboot framework

https://docs.qualcomm.com/doc/80-70020-3VI/topic/post-boot-settings.html#section-gsc-kdv-s1c

## Phát triển kernel

<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewbox="0 0 16 16" fill="none" aria-label="icon3">
  <path d="M8 2V14M3.33333 2H12.6667C13.403 2 14 2.59695 14 3.33333V12.6667C14 13.403 13.403 14 12.6667 14H3.33333C2.59695 14 2 13.403 2 12.6667V3.33333C2 2.59695 2.59695 2 3.33333 2Z" stroke="#2A2AEA" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
</svg> Phát triển kernel bằng quy trình làm việc Yocto

Thiết lập máy chủ của bạn, biên dịch và phát triển Qualcomm Linux kernel.

https://docs.qualcomm.com/doc/80-70020-3VI/topic/kernel-development.html#yocto-kernel-support

<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewbox="0 0 16 16" fill="none" aria-label="icon3">
  <path d="M8 2V14M3.33333 2H12.6667C13.403 2 14 2.59695 14 3.33333V12.6667C14 13.403 13.403 14 12.6667 14H3.33333C2.59695 14 2 13.403 2 12.6667V3.33333C2 2.59695 2.59695 2 3.33333 2Z" stroke="#2A2AEA" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
</svg> Biên dịch kernel độc lập với Yocto

Biên dịch Qualcomm Linux kernel mà không cần hỗ trợ hệ thống build Yocto.

https://docs.qualcomm.com/doc/80-70020-3VI/topic/kernel-development.html#compthekernelinde

<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewbox="0 0 16 16" fill="none" aria-label="icon3">
  <path d="M8 2V14M3.33333 2H12.6667C13.403 2 14 2.59695 14 3.33333V12.6667C14 13.403 13.403 14 12.6667 14H3.33333C2.59695 14 2 13.403 2 12.6667V3.33333C2 2.59695 2.59695 2 3.33333 2Z" stroke="#2A2AEA" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
</svg> Đặt cấu hình hỗ trợ DTB và cấu hình kernel

Thêm DTB mới vào Qualcomm Linux kernel.

https://docs.qualcomm.com/doc/80-70020-3VI/topic/kernel-development.html#platform-support

## Đặt cấu hình các hệ thống con bộ xử lý từ xa (remoteproc)

<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewbox="0 0 16 16" fill="none" aria-label="icon3">
  <path d="M8 2V14M3.33333 2H12.6667C13.403 2 14 2.59695 14 3.33333V12.6667C14 13.403 13.403 14 12.6667 14H3.33333C2.59695 14 2 13.403 2 12.6667V3.33333C2 2.59695 2.59695 2 3.33333 2Z" stroke="#2A2AEA" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
</svg> Đặt cấu hình khôi phục remoteproc và khởi động lại hệ thống con

Đảm bảo khả năng phục hồi của hệ thống con bằng tính năng phát hiện lỗi crash của remoteproc, sắp xếp khôi phục và chẩn đoán coredump của nền tảng Qualcomm Linux.

https://docs.qualcomm.com/doc/80-70020-3VI/topic/remoteproc-overview.html#configure-remote-proc-su

<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewbox="0 0 16 16" fill="none" aria-label="icon3">
  <path d="M8 2V14M3.33333 2H12.6667C13.403 2 14 2.59695 14 3.33333V12.6667C14 13.403 13.403 14 12.6667 14H3.33333C2.59695 14 2 13.403 2 12.6667V3.33333C2 2.59695 2.59695 2 3.33333 2Z" stroke="#2A2AEA" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
</svg> Hỗ trợ Qualcomm remoteproc

Tìm hiểu cách đặt cấu hình bộ xử lý từ xa.

https://docs.qualcomm.com/doc/80-70020-3VI/topic/remoteproc-overview.html#configure-remote-proc-su

<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewbox="0 0 16 16" fill="none" aria-label="icon3">
  <path d="M8 2V14M3.33333 2H12.6667C13.403 2 14 2.59695 14 3.33333V12.6667C14 13.403 13.403 14 12.6667 14H3.33333C2.59695 14 2 13.403 2 12.6667V3.33333C2 2.59695 2.59695 2 3.33333 2Z" stroke="#2A2AEA" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
</svg> Bật hoặc tắt tính năng core dump

Bật hoặc tắt tính năng core dump cho các hệ thống con.

https://docs.qualcomm.com/doc/80-70020-3VI/topic/remoteproc-overview.html#enable-coredump

## Đặt cấu hình và quản lý bộ nhớ

<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewbox="0 0 16 16" fill="none" aria-label="icon3">
  <path d="M8 2V14M3.33333 2H12.6667C13.403 2 14 2.59695 14 3.33333V12.6667C14 13.403 13.403 14 12.6667 14H3.33333C2.59695 14 2 13.403 2 12.6667V3.33333C2 2.59695 2.59695 2 3.33333 2Z" stroke="#2A2AEA" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
</svg> Đặt cấu hình ZRAM như một thiết bị swap

Đặt cấu hình tham số bộ nhớ ZRAM.

https://docs.qualcomm.com/doc/80-70020-3VI/topic/memory.html#configure-zram

<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewbox="0 0 16 16" fill="none" aria-label="icon3">
  <path d="M8 2V14M3.33333 2H12.6667C13.403 2 14 2.59695 14 3.33333V12.6667C14 13.403 13.403 14 12.6667 14H3.33333C2.59695 14 2 13.403 2 12.6667V3.33333C2 2.59695 2.59695 2 3.33333 2Z" stroke="#2A2AEA" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
</svg> Mở rộng sơ đồ bộ nhớ

Sửa đổi trình phân bổ bộ nhớ liền kề (CMA) hoặc dành riêng khi thêm mã nguồn device tree (DTSI).

https://docs.qualcomm.com/doc/80-70020-3VI/topic/memory.html#extend-memory-map

## Đặt cấu hình trình lập lịch

<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewbox="0 0 16 16" fill="none" aria-label="icon3">
  <path d="M8 2V14M3.33333 2H12.6667C13.403 2 14 2.59695 14 3.33333V12.6667C14 13.403 13.403 14 12.6667 14H3.33333C2.59695 14 2 13.403 2 12.6667V3.33333C2 2.59695 2.59695 2 3.33333 2Z" stroke="#2A2AEA" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
</svg> Hiểu về cấu trúc CPU và EAS

Tìm hiểu về năng lực và cấu trúc CPU.

https://docs.qualcomm.com/doc/80-70020-3VI/topic/scheduler.html#cpu-topology-and-eas

<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewbox="0 0 16 16" fill="none" aria-label="icon3">
  <path d="M8 2V14M3.33333 2H12.6667C13.403 2 14 2.59695 14 3.33333V12.6667C14 13.403 13.403 14 12.6667 14H3.33333C2.59695 14 2 13.403 2 12.6667V3.33333C2 2.59695 2.59695 2 3.33333 2Z" stroke="#2A2AEA" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
</svg> Đặt cấu hình theo dõi tải cho từng thực thể

Điều chỉnh tham số theo dõi tải của trình lập lịch.

https://docs.qualcomm.com/doc/80-70020-3VI/topic/scheduler.html#per-entity-load-tracking-pelt

<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewbox="0 0 16 16" fill="none" aria-label="icon3">
  <path d="M8 2V14M3.33333 2H12.6667C13.403 2 14 2.59695 14 3.33333V12.6667C14 13.403 13.403 14 12.6667 14H3.33333C2.59695 14 2 13.403 2 12.6667V3.33333C2 2.59695 2.59695 2 3.33333 2Z" stroke="#2A2AEA" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
</svg> Đặt cấu hình utilization clamping (UCLAMP)

Điều chỉnh UCLAMP cho các tiến trình.

https://docs.qualcomm.com/doc/80-70020-3VI/topic/scheduler.html#utilization-clamping-uclamp

## Đặt cấu hình bộ điều chỉnh điện áp và tần số động (DVFS)

<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewbox="0 0 16 16" fill="none" aria-label="icon3">
  <path d="M8 2V14M3.33333 2H12.6667C13.403 2 14 2.59695 14 3.33333V12.6667C14 13.403 13.403 14 12.6667 14H3.33333C2.59695 14 2 13.403 2 12.6667V3.33333C2 2.59695 2.59695 2 3.33333 2Z" stroke="#2A2AEA" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
</svg> Chọn bộ điều chỉnh DVFS CPU

Đặt cấu hình bộ điều chỉnh tần số CPU.

https://docs.qualcomm.com/doc/80-70020-3VI/topic/dynamic-clock-and-voltage-scaling-dcvs.html#select-cpu-dvfs

<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewbox="0 0 16 16" fill="none" aria-label="icon3">
  <path d="M8 2V14M3.33333 2H12.6667C13.403 2 14 2.59695 14 3.33333V12.6667C14 13.403 13.403 14 12.6667 14H3.33333C2.59695 14 2 13.403 2 12.6667V3.33333C2 2.59695 2.59695 2 3.33333 2Z" stroke="#2A2AEA" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
</svg> Đặt cấu hình bộ điều chỉnh DVFS cho bộ nhớ đệm và bộ nhớ

Đặt cấu hình tần số băng thông DDR và bộ nhớ đệm.

https://docs.qualcomm.com/doc/80-70020-3VI/topic/dynamic-clock-and-voltage-scaling-dcvs.html#configure-cache-and-memory-dvfs

## Đặt cấu hình pinctrl driver

<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewbox="0 0 16 16" fill="none" aria-label="icon3">
  <path d="M8 2V14M3.33333 2H12.6667C13.403 2 14 2.59695 14 3.33333V12.6667C14 13.403 13.403 14 12.6667 14H3.33333C2.59695 14 2 13.403 2 12.6667V3.33333C2 2.59695 2.59695 2 3.33333 2Z" stroke="#2A2AEA" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
</svg> Đặt cấu hình pinctrl driver

Quản lý và đặt cấu hình các chân được dùng cho đầu vào/đầu ra đa năng (GPIO).

https://docs.qualcomm.com/doc/80-70020-3VI/topic/pinctrl-configuration.html#pinctrl-configuration

<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewbox="0 0 16 16" fill="none" aria-label="icon3">
  <path d="M8 2V14M3.33333 2H12.6667C13.403 2 14 2.59695 14 3.33333V12.6667C14 13.403 13.403 14 12.6667 14H3.33333C2.59695 14 2 13.403 2 12.6667V3.33333C2 2.59695 2.59695 2 3.33333 2Z" stroke="#2A2AEA" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
</svg> Đặt cấu hình sử dụng GPIO

Hiểu về cấu hình GPIO có sẵn trong SoC.

https://docs.qualcomm.com/doc/80-70020-3VI/topic/customize-cache-and-memory-dvfs.html#configure-cache-and-memory

<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewbox="0 0 16 16" fill="none" aria-label="icon3">
  <path d="M8 2V14M3.33333 2H12.6667C13.403 2 14 2.59695 14 3.33333V12.6667C14 13.403 13.403 14 12.6667 14H3.33333C2.59695 14 2 13.403 2 12.6667V3.33333C2 2.59695 2.59695 2 3.33333 2Z" stroke="#2A2AEA" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
</svg> Đặt cấu hình GPIO để tạo tín hiệu xung hoặc điều chế độ rộng xung

Tạo xung PWM bằng GPIO.

https://docs.qualcomm.com/doc/80-70020-3VI/topic/pinctrl-configuration.html#configure-gpios-pwm

<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewbox="0 0 16 16" fill="none" aria-label="icon3">
  <path d="M8 2V14M3.33333 2H12.6667C13.403 2 14 2.59695 14 3.33333V12.6667C14 13.403 13.403 14 12.6667 14H3.33333C2.59695 14 2 13.403 2 12.6667V3.33333C2 2.59695 2.59695 2 3.33333 2Z" stroke="#2A2AEA" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
</svg> Đặt cấu hình GPIO từ không gian người dùng

Quản lý GPIO từ không gian người dùng.

https://docs.qualcomm.com/doc/80-70020-3VI/topic/pinctrl-configuration.html#control-gpios-from-userspace

## Truy cập nội dung trên thiết bị

<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewbox="0 0 16 16" fill="none" aria-label="icon3">
  <path d="M8 2V14M3.33333 2H12.6667C13.403 2 14 2.59695 14 3.33333V12.6667C14 13.403 13.403 14 12.6667 14H3.33333C2.59695 14 2 13.403 2 12.6667V3.33333C2 2.59695 2.59695 2 3.33333 2Z" stroke="#2A2AEA" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
</svg> Bật shell bảo mật (SSH)

Kết nối với thiết bị bằng SSH.

https://docs.qualcomm.com/doc/80-70020-3VI/topic/access-content-from-the-device.html#adb-shell

<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewbox="0 0 16 16" fill="none" aria-label="icon3">
  <path d="M8 2V14M3.33333 2H12.6667C13.403 2 14 2.59695 14 3.33333V12.6667C14 13.403 13.403 14 12.6667 14H3.33333C2.59695 14 2 13.403 2 12.6667V3.33333C2 2.59695 2.59695 2 3.33333 2Z" stroke="#2A2AEA" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
</svg> Truy xuất thông tin từ thiết bị

Ghi lại log kernel cơ bản.

https://docs.qualcomm.com/doc/80-70020-3VI/topic/access-content-from-the-device.html#retrieve-the-info

## Ghi lại kernel log

<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewbox="0 0 16 16" fill="none" aria-label="icon3">
  <path d="M8 2V14M3.33333 2H12.6667C13.403 2 14 2.59695 14 3.33333V12.6667C14 13.403 13.403 14 12.6667 14H3.33333C2.59695 14 2 13.403 2 12.6667V3.33333C2 2.59695 2.59695 2 3.33333 2Z" stroke="#2A2AEA" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
</svg> Ghi lại log serial console

Đặt cấu hình serial console để ghi lại log khởi động sớm.

https://docs.qualcomm.com/doc/80-70020-3VI/topic/capture-the-kernel-logs.html#capture-the-kernel

<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewbox="0 0 16 16" fill="none" aria-label="icon3">
  <path d="M8 2V14M3.33333 2H12.6667C13.403 2 14 2.59695 14 3.33333V12.6667C14 13.403 13.403 14 12.6667 14H3.33333C2.59695 14 2 13.403 2 12.6667V3.33333C2 2.59695 2.59695 2 3.33333 2Z" stroke="#2A2AEA" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
</svg> Đặt cấu hình mức log console

Đặt cấu hình mức độ log kernel.

https://docs.qualcomm.com/doc/80-70020-3VI/topic/capture-the-kernel-logs.html#configure-console-log

## Đặt cấu hình phương pháp gỡ lỗi

<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewbox="0 0 16 16" fill="none" aria-label="icon3">
  <path d="M8 2V14M3.33333 2H12.6667C13.403 2 14 2.59695 14 3.33333V12.6667C14 13.403 13.403 14 12.6667 14H3.33333C2.59695 14 2 13.403 2 12.6667V3.33333C2 2.59695 2.59695 2 3.33333 2Z" stroke="#2A2AEA" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
</svg> Bật và mount kết hệ thống tệp debugfs

Gắn kết hệ thống tệp debugfs để trace, gỡ lỗi và kiểm tra cấu trúc dữ liệu kernel từ không gian người dùng.

https://docs.qualcomm.com/doc/80-70020-3VI/topic/debug.html#enable-and-mount-debugfs

<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewbox="0 0 16 16" fill="none" aria-label="icon3">
  <path d="M8 2V14M3.33333 2H12.6667C13.403 2 14 2.59695 14 3.33333V12.6667C14 13.403 13.403 14 12.6667 14H3.33333C2.59695 14 2 13.403 2 12.6667V3.33333C2 2.59695 2.59695 2 3.33333 2Z" stroke="#2A2AEA" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
</svg> Gỡ lỗi bằng cơ chế kernel probe

Đặt cấu hình kernel với kprobes.

https://docs.qualcomm.com/doc/80-70020-3VI/topic/debug.html#kernel-probes

## Đặt cấu hình trình gỡ lỗi kernel

<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewbox="0 0 16 16" fill="none" aria-label="icon3">
  <path d="M8 2V14M3.33333 2H12.6667C13.403 2 14 2.59695 14 3.33333V12.6667C14 13.403 13.403 14 12.6667 14H3.33333C2.59695 14 2 13.403 2 12.6667V3.33333C2 2.59695 2.59695 2 3.33333 2Z" stroke="#2A2AEA" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
</svg> Gỡ lỗi mô-đun kernel bằng trình gỡ lỗi GNU kernel (KGDB)

Kết nối KGDB với thiết bị.

https://docs.qualcomm.com/doc/80-70020-3VI/topic/configure-kernel-debugger.html#debugging-kernel-and-modules-via-gdb

<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewbox="0 0 16 16" fill="none" aria-label="icon3">
  <path d="M8 2V14M3.33333 2H12.6667C13.403 2 14 2.59695 14 3.33333V12.6667C14 13.403 13.403 14 12.6667 14H3.33333C2.59695 14 2 13.403 2 12.6667V3.33333C2 2.59695 2.59695 2 3.33333 2Z" stroke="#2A2AEA" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
</svg> Sử dụng KGDB với cổng COM serial

Đặt cấu hình KGDB để kết nối qua cổng serial.

https://docs.qualcomm.com/doc/80-70020-3VI/topic/configure-kernel-debugger.html#use-kgdb-with-serial-com-port

## Khắc phục sự cố kernel

<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewbox="0 0 16 16" fill="none" aria-label="icon3">
  <path d="M8 2V14M3.33333 2H12.6667C13.403 2 14 2.59695 14 3.33333V12.6667C14 13.403 13.403 14 12.6667 14H3.33333C2.59695 14 2 13.403 2 12.6667V3.33333C2 2.59695 2.59695 2 3.33333 2Z" stroke="#2A2AEA" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
</svg> Lỗi khởi động do chọn sai hoặc không chọn DTB

Xác minh thời điểm khởi động khi tải device tree.

https://docs.qualcomm.com/doc/80-70020-3VI/topic/common_troubleshooting.html#boot-failure-due-to

<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewbox="0 0 16 16" fill="none" aria-label="icon3">
  <path d="M8 2V14M3.33333 2H12.6667C13.403 2 14 2.59695 14 3.33333V12.6667C14 13.403 13.403 14 12.6667 14H3.33333C2.59695 14 2 13.403 2 12.6667V3.33333C2 2.59695 2.59695 2 3.33333 2Z" stroke="#2A2AEA" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
</svg> Serial console không hoạt động

Gỡ lỗi cấu hình cổng serial.

https://docs.qualcomm.com/doc/80-70020-3VI/topic/common_troubleshooting.html#serial-console-not-working

Last Published: Jan 01, 2026

[Next Topic
Tổng quan về kernel](https://docs.qualcomm.com/bundle/publicresource/80-70020-3VI/topics/overview.md)