-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* trying out matrix * Update main.yml * Update main.yml * Update main.yml * Update main.yml * Update nabu-rootfsKernel_build.sh * Update nabu-rootfsKernel_build.sh * Update nabu-rootfs_build.sh * Delete nabu-rootfs_build.sh * Rename nabu-rootfsKernel_build.sh to nabu-rootfs_build.sh * Create nabu-Kernel_build.sh * Update main.yml * temporaly disabled desktop for debug * Update nabu-rootfs_build.sh * Update main.yml * Update nabu-rootfs_build.sh * Update README.md * Update README.md * Update README.md * Built to test ready for contribute * Update main.yml * Add files via upload * Delete nabu.png * Add files via upload * Delete nabu.png * Add files via upload * Delete nabu.png * Add files via upload * Update README.md * Update README.md * Update README.md grammar
- Loading branch information
1 parent
7b6d3ff
commit 414f479
Showing
6 changed files
with
74 additions
and
160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,22 @@ | ||
# Ubuntu rootfs for Xiaomi Pad 5 | ||
This repo contians scripts for automatic building of ubuntu rootfs for Xiaomi Pad 5 | ||
<img align="right" src="https://raw.githubusercontent.com/jiganomegsdfdf/ubuntu-xiaomi-nabu/master/ubnt.png" width="425" alt="Ubuntu 23.04 Running On A Xiaomi Pad 5"> | ||
|
||
# Ubuntu for Xiaomi Pad 5 | ||
This repo contians scripts for automatic building of ubuntu rootfs and kernel for Xiaomi Pad 5 | ||
|
||
# Where do i get needed files? | ||
Actually, just go to the "Actions" tab, find one of latest builds and download file named **rootfs_(Desktop Environment you want)_(Kernel version you want)** | ||
<br>for update download file named **xiaomi-nabu-debs_(Kernel version you want)** | ||
|
||
# Update info | ||
- Unpack .zip you downloaded | ||
- Run dpkg -i *-xiaomi-nabu.deb | ||
- P.S. if you are moving to another kernel version make that after installing .deb's | ||
<br>**First method**: just replace your old kernel version with the new kernel version in /boot/grub/grub.cfg | ||
<br>**Second method**: grub-install and grub-mkconfig -o /boot/grub/grub.cfg | ||
|
||
# Install info | ||
- rootfs.img must be flashed to partition named "linux" | ||
- Unpack .zip you downloaded | ||
- Unpack extracted .7z (there you take rootfs.img) | ||
- rootfs.img must be flashed to the partition named "linux" | ||
- Partition for efi boot must be named "esp" | ||
- Install grub using grub-install and grub-mkconfig -o /boot/grub/grub.cfg. If done from android make sure that efs partition mounted at /boot/efi, after generating grub.cfg change all of "/dev/block/" to "/dev/" | ||
- Install grub using grub-install and grub-mkconfig -o /boot/grub/grub.cfg. If done from android make sure that efs partition is mounted at /boot/efi, after generating grub.cfg change all of "/dev/block/" to "/dev/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
git clone https://github.com/map220v/sm8150-mainline.git --branch nabu-$1 --depth 1 linux | ||
cd linux | ||
sed -i 'CONFIG_CMDLINE="quiet splash"' ./arch/arm64/configs/sm8150.config | ||
make -j$(nproc) ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- defconfig sm8150.config | ||
make -j$(nproc) ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- | ||
mkdir ../linux-xiaomi-nabu/boot | ||
cp arch/arm64/boot/Image.gz ../linux-xiaomi-nabu/boot/vmlinuz-$2.0-sm8150 | ||
cp arch/arm64/boot/dts/qcom/sm8150-xiaomi-nabu.dtb ../linux-xiaomi-nabu/boot/dtb-$2.0-sm8150 | ||
rm -rf ../linux-xiaomi-nabu/lib | ||
make -j$(nproc) ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- INSTALL_MOD_PATH=../linux-xiaomi-nabu modules_install | ||
rm ../linux-xiaomi-nabu/lib/modules/**/build | ||
cd .. | ||
rm -rf linux | ||
|
||
dpkg-deb --build --root-owner-group linux-xiaomi-nabu | ||
dpkg-deb --build --root-owner-group firmware-xiaomi-nabu | ||
dpkg-deb --build --root-owner-group alsa-xiaomi-nabu |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters