Skip to content

degdag/ubuntu-oneplus-salami

 
 

Repository files navigation

Ubuntu 24.10 Running On A OnePlus Ace 3

Ubuntu for OnePlus 11 5G

This repo contians Base Guide for installation/upgrading and Scripts for automatic building of Ubuntu RootFS, Mainline Kernel, Firmware package, ALSA configs for OnePlus 12R/Ace 3

Where do I get the needed files?

Just go to the "Actions" tab, open the latest build and download files named rootfs_(Desktop Environment)_(Kernel version)_A(Android Version) and boot-oneplus-aston_(Kernel version)_(Phone RAM Size)G_A(Android Version).img
For upgrading - download all available files, except for rootfs

Upgrading steps (From running Ubuntu)

  • Unpack all the .zip files you downloaded into one folder
  • Open terminal and go to the folder where you unpacked all .zip files into
  • Run "sudo dpkg -i *-oneplus-aston.deb"
  • If you use flashing instead of fastboot boot: flash a new boot image using "dd if="path to boot.img" of=/dev/disk/by-partlabel/boot_('a' or 'b')"
  • Reboot using new image

Partitioning steps using "parted", where text inside () is a command to execute

⚠️New partition should be at least 5GB in size for rootfs.img to fit in
⚠️You will lose all your android data

  • Download parted executable from the "Releases" tab
  • Reboot to TWRP recovery and push the downloaded file to /tmp
    (adb push parted /tmp)
  • Access phone shell
    (adb shell)
  • Grant execute permission and open parted for further steps
    (chmod +x /tmp/parted && /tmp/parted /dev/block/sda)
  • Look at the partitions and remember "Number", "Start" "End" for "userdata" partition
    (print)
  • Remove the "userdata" partition
    (rm "Number")
  • Create a new "userdata" partition
    (mkpart userdata f2fs "Start" "End - size that you want to allocate for Ubuntu install")
  • Create a new "win" partition
    (mkpart win ntfs "End - size that you want to allocate for Ubuntu install" "End")
  • Reboot back to recovery
  • Format the new "userdata" using TWRP format data function
  • Format the new "win" partition
    (mkfs.ext4 /dev/block/by-name/win)

Install steps

  • You should have custom partitions, follow "Partitioning steps..."
  • Unpack .zip files you downloaded
  • Unpack extracted rootfs.7z
  • rootfs.img must be flashed to the partition named "win"
    ⚠️USE "dd if="path to rootfs.img" of=/dev/block/by-name/win"
    FLASHING USING FASTBOOT RESULTS IN BROKEN UBUNTU FILESYSTEM
  • Flash (or fastboot boot) boot.img that you got from boot archive

About

OnePlus 11 5G Ubuntu RootFS Builder

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 74.4%
  • Shell 25.6%