Device Bootloops After Flashing Images [boot.img , system.img , dtbo.img , vendor_boot.img] [Motorola Moto G52] [Halium 13]
-
Device Boot Loop Issue While Porting to Ubuntu Touch (Halium 13)
I am trying to port my device to Ubuntu Touch, using Halium 13. I have flashed the images to the right partitions, but I encountered a boot loop with the following behavior:
Boot Loop Sequence
- The device shows the Motorola start-up logo for one second.
- The device shows the unlocked bootloader warning screen for 6 seconds.
- It shows the Motorola logo again for 6 to 10 seconds, but now with a horizontal pixelated line on the screen.
- It then shows a blank screen for 5 to 10 seconds.
- The cycle repeats, but the line gradually moves down on each reboot.
Troubleshooting Performed
At this stage, I entered the fastboot bootloader and tried:
fastboot boot twrp.imgHowever, the device immediately started boot looping.
I then replaced
dtbo.imgwith the one from the latest LineageOS 20 build available for my device.After this change, the horizontal line disappeared.
I was able to successfully boot TWRP using:
fastboot boot twrp.imgLogging Investigation
I attempted to read the pstore logs but couldn't find any useful output.
I suspected the kernel might not have been built with the required logging options enabled.
To address this, I:
- Created a separate
logging.configfile with the right kernel flags. - Added it to
deviceinfo. - Verified that the options were correctly applied to the generated
.configfile located at:
workdir/downloads/KERNELOBJ- Added the appropriate kernel command-line parameters to the vendor cmdline in the
deviceinfofile.
Current Status
Despite these changes:
- The device still does not boot properly.
- USB does not become available.
- The
pstoredirectory remains empty even after enabling all relevant logging flags and kernel parameters.
Source Tree
For debugging and error analysis, the device source tree is available at:
Please help me out with this.
-
Sorry i'm not skilled in porting or coding, but be patient someone will surely help you.
Also did you try the telegram ubports porting group ? -
@Keneda Thanks for your concern my friend. I have reached out to the telegram group and a member going by the username Pavel has provided help regards to this issue.
-
Quick update: Upon reaching out to the Telegram UBPorts Porting forum, Pavlov, a member of the group suggested me to intentionally cause a panic in the init script and stated that after that, hopefully the crash handler can initialize a shell connection for me. I've tried his approach and I also ran the mer_kernel_check utility on the .config file produced during the build process inside workdir/downloads/KERNEL_OBJ and all the flags that came out to be "NOT SET" and were required for halium to work were set in a separate devspecific.config file which has been pushed to the kernel repository but even after all this I face the same issue at the end. Please let me know where I have gone wrong with my approach to implementing the panic in the init script
Quick update: Upon reaching out to the Telegram UBPorts Porting forum, Pavlov, a member of the group suggested me to intentionally cause a panic in the init script and stated that after that, hopefully the crash handler can initialize a shell connection for me. I've tried his approach and I also ran the mer_kernel_check utility on the .config file produced during the build process inside workdir/downloads/KERNEL_OBJ and all the flags that came out to be "NOT SET" and were required for halium to work were set in a separate devspecific.config file which has been pushed to the kernel repository but even after all this I face the same issue at the end. Please let me know where I have gone wrong with my approach to implementing the panic in the init scriptscript
Kernel Repository:https://gitlab.com/systemmaniac2010/kernel_motorola_sm6225
Device Repository:https://gitlab.com/systemmaniac2010/motorola-rhode
-
I have reached out to the telegram group and a member going by the username Pavel
Glad you found support.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login