This repository contains scripts to automate the building of the AltLinux root filesystem (rootfs) and Linux kernel for Qualcomm Mainline devices. It simplifies the setup process, enabling you to quickly prepare a system to run AltLinux on Qualcomm mobile devices.
- Automated Linux kernel building
- Packaging device-specific firmware and kernel into RPM
- Installing ALSA UCM config
- Building rootfs with pre-installed dependent packages
- Customizable configuration for various Qualcomm devices
Ensure your environment meets the following dependencies before building.
sudo apt install bash coreutils git tar sed sudo make gcc rpm rpm-build \
gcc-aarch64-linux-gnu bc flex bison libssl-dev libelf-dev libncurses-dev \
libudev-dev libpci-dev libiberty-dev autoconf fastboot
sudo dnf install bash coreutils git tar sed sudo make gcc rpm-build \
gcc-aarch64-linux-gnu bc flex bison openssl-devel elfutils-libelf-devel \
ncurses-devel libudev-devel pciutils-devel libiberty-devel autoconf android-tools
sudo zypper install bash coreutils git tar sed sudo make gcc rpm-build \
cross-aarch64-gcc bc flex bison libopenssl-devel elfutils-libelf-devel \
ncurses-devel libudev-devel pciutils-devel libiberty-devel autoconf android-tools
-
Clone the repository:
git clone https://github.com/altmobile-qcom/altmobile-qcom cd altmobile-qcom
-
Configure your device settings by editing the
deviceinfo
file. Adjust parameters specific to your Qualcomm device model. -
Run the build script:
./build.sh
The script will automatically handle the rootfs and kernel build process based on your deviceinfo
configuration.
Once the build process is complete, you can flash the necessary images to your device.
-
Flash the AltLinux root filesystem image:
fastboot flash linux alt-mobile-phosh-un-def-*-aarch64.img
Note: The
linux
partition in the command is a recommendation. You can select any partition, but it's best to use either a manually createdlinux
partition or the existinguserdata
partition. Ensure the selected partition is at least 18GB. -
Flash the boot image:
fastboot flash boot boot.img
-
For newer devices, clear the
dtbo
andvendor_boot
partitions:fastboot erase dtbo fastboot erase vendor_boot
Contributions are welcome! Feel free to submit issues, fork the repository, and make pull requests to improve functionality or compatibility with more devices.
Connect with the AltLinux Mobile community on Telegram!
*Scan this QR code to join the Telegram group*Don't forget to visit the Alt Linux Wiki.
This project is licensed under the GPL-3.0 license.