Xiaomi Redmi 4X (santoni)
-
@maciekrz12 said in Xiaomi Redmi 4X (santoni):
Failed to boot
If your device's
userdata
partition is encrypted then unfortunately you'll have to format it, meaning you'll lose all your data.To do so, goto TWRP -> Wipe -> Format Data (the button is in red)
After that reinstall Ubuntu and hopefully it'll work. If not please telnet and give me dmesg (put it on pastebin or something).
-
Hi
Can i install this just from my phone using TWRP or i must connect to pc and install it from pc terminal using linux? Do you have instructions for dummies i dont get this.I use Ubuntu on pc so i would like to try it on the phone as well. Thanks -
@aceclan I'm trying to understand this dual boot since I don't see any resize of any partitions.
Can you explain how that works ?
I understand you flash the boot image according to the os you want to boot, but where are located the two images of android and ubuntu ?One question then: my TWRP folder only contains a .twrps file, is that fine ?
-
@Danct12 THANK YOU!
I've been wiping all the time instead of formatting. Now it works just fine -
I'm trying to flash ut but I got this error:
./halium-install -p ut ./ubports-touch.rootfs-xenial-armhf.tar.gz ./system.img
basename: not valid option -- "p"
Try 'basename --help' for more information.cleaning up
error: no devices/emulators foundUsing files from:
-
@danqo6 Can you try to upgrade the firmware to the latest? I use this https://xiaomifirmwareupdater.com
-
@suoko Distro?
You should try this one instead: https://github.com/JBBgameich/halium-install
-
@Danct12
I successfully installed the version of ut found here : https://forum.xda-developers.com/xiaomi-redmi-4x/development/unofficial-ubuntu-touch-redmi-4x-santoni-t3982389
These are the steps:- rooted and installed twrp with Xiaomitool v2
- in twrp I wiped the data partition and enabled write access to system
- installed the zip via twrp
Now, how can I create an update zip package with the latest image?
-
@Danct12
I found a way to create the zip, tell me what you think:- download the unofficial zip from xda (see post above)
- remove img files inside
- download system and boot image from https://github.com/ubports-santoni/ubports-ci/actions/runs/52390878
- rename halium-boot to boot.img
- run this script
wget https://ci.ubports.com/job/xenial-rootfs-armhf/lastSuccessfulBuild/artifact/out/ubports-touch.rootfs-xenial-armhf.tar.gz mkdir rootfs-build dd if=/dev/zero of=rootfs-build/rootfs.img seek=500K bs=4096 count=0 mkfs.ext2 -F rootfs-build/rootfs.img mkdir -p rootfs-build/cache/system mount -o loop rootfs-build/rootfs.img rootfs-build/cache/system/ cd rootfs-build/cache/system && zcat ../../../ubports-touch.rootfs-xenial-armhf.tar.gz | tar xf -
- put back the img files into the zip according to their original position: system and rootfs into data, and boot into the root position (the rootfs img is in the rootfs-build folder)
-
@Danct12
Thanks, it worked, I used the standalone version.Recap:
-
https://github.com/ubports-santoni/ubports-ci/actions/runs/52390878
-
fastboot flash boot halium-boot.img
-
halium-install-standalone.sh -p ut ./ubports-touch.rootfs-xenial-armhf.tar.gz ./system.img
-
ssh into it (ssh -l phablet x.x.x.x) and run:
cat /var/lib/lxc/android/rootfs/ueventd*.rc|grep ^/dev|sed -e 's/^\/dev\///'|awk '{printf "ACTION==\"add\", KERNEL==\"%s\", OWNER=\"%s\", GROUP=\"%s\", MODE=\"%s\"\n",$1,$3,$4,$2}' | sed -e 's/\r//' >/usr/lib/lxc-android-config/70-santoni.rules
Cons: neither system nor apps have sound. With the unofficial zipped port in xda at least apps had sound
Can we try create a script automating the creation of the flashable update zip ?
-
@Danct12 i am on android 10 rom
can i flash ub directly or i must flash Los 16 first? -
@Danct12 I tried, it didn't help. I will wait probably for ubports installer support, would love to see it soon
-
Hi @suoko ,
The switch is based on boot image flash (restore from TWRB th boot) and the Ubuntu is just two .img files : rootfs.img and system.img which will be mounted, during the boot. So the partitions won't be touched...
The locations of img files (browse from TWRP) is on /data/ , while the location of Internal storage that You see in MIUI is /data/sdcard or /data/media/0 .Work like a charm...
Best regards
-
it gets stuck here infinitely, no error is shown, its just stuck here
what to do pls someone help me regarding this issue -
Hi,
just wanted to confirm - is anbox supported within this build? -
This post is deleted! -
This post is deleted! -
@iaval mine failed to start anbox
-
Can anyone please add zip installation or Nandroid backup of ubuntu touch latest for santoni and maintain it (upload latest whenever ubt updates) for people out there who don't have PC and therefore can't install it. Including me.
Or any way of installing it without PC ?
@Danct12 @danqo6 @aceclan @bisaalz @alex000090 @ub_santoni @Rafa @maciekrz12 @suoko @Lakotaubp
-
@bablltioyv
Second this. At least one that's updated once in a while. Thanks in advance