Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

outdated instructions, fail to boot #1

Open
Marc-Pierre-Barbier opened this issue Aug 20, 2024 · 8 comments
Open

outdated instructions, fail to boot #1

Marc-Pierre-Barbier opened this issue Aug 20, 2024 · 8 comments

Comments

@Marc-Pierre-Barbier
Copy link

Hi,

I wanted to install postmarket os on my redmi note 9pro (eea).

I noticed the filenames and descriptions seems to be outdated in the wiki and since all my attempts to boot up postmarket os resulted in a black screen im not confident in submitting any fix for it.

i tried to boot using the two following commands:

xz -d boot.img.xz
fastboot boot boot.img
fastboot boot vmlinuz ramfs --dtb sm7125-xiaomi-joyeuse.dtb --dtb-offset 32505856 --base 0 --kernel-offset 2097152 --ramdisk-offset 16777216 --tags-offset 256 --page-size 4096 --os-version 11.0.0 --os-patch-level 2020-06-00 --header-version 2 --cmdline "pd_ignore_unused clk_ignore_unused no_console_suspend kpti=off nokaslr ignore_loglevel service_locator.enable=1 init=/init console=null root=/dev/mmcblk2p2 PMOS_FORCE_PARTITION_RESIZE pmos_boot=/dev/mmcblk2p1 pmos_root=/dev/mmcblk2p2"

i got the sm7125-xiaomi-joyeuse.dtb file from pmOS_boot/dtbs/qcom.

I would love to be able to try this project out and maybe if im able contribute to it but currenlty i have no clue on how to fix this.

@99degree
Copy link
Owner

99degree commented Aug 24, 2024

hi dev,

thx for try this out.

here is my suggestions, could you try with the default boot img and see if there is failsafe boot fine. alternative choice is to download official pmos joyeuse image, boot-test the boot image.

here are two cases. if the default dtb is working then you can check if your joyeuse is using huaxing panel or tianma panel and differ panel ic. you might need sometime to figure how to generate a panel driver.

if another case default dtb cant get you something displayed, then you might wanna to make a working kernel + default_dtb + los recovery and get usb adb shell for debug.

since there is too many note 9 pro variant and i can do nothing with my broken joyeuse, i also suggested to reach www.github.com/sm7150-mainline/ for their matrix chat room for help. the official note 9 maintainer is kind enough to help out when available online.

hope you can have a wonderful development journey.

@Marc-Pierre-Barbier
Copy link
Author

Thank you,

I'm going to test this out today.

I had no clue there were so many variants of the joyeuse. I think I will start by testing with pmos official image, then add sm7150-mainline to see if it works.

Sad to hear you broke yours, and thank you again for your help.

@Marc-Pierre-Barbier
Copy link
Author

So mainline also fail to boot from sdcard.

And the blackscreen is just my phone going back to fastboot in a buggy state.

Flashing my phone does work with mainline but I have no clue on how to flash the CI to my phone.

@99degree
Copy link
Owner

I am not sure which is which. Let me state it a bit clear.

case 0
With pmos official boot img, with flashing ufs partition and boot works, can further reference case 2

case 1
With pmos official boot img, without flashing ufs partition, expected to dead loop at pmos console and it wont reboot immediately. that indicates boot condition meets and rootfs missing.

if boot failed i usually check add ramoops node to dtb and test reboot. then in los android or los recocery, use adb to mount and grab sys/fs/pstore/* such for last dmsg that tell whats wrong last boot. if boot signiture is not kernel 6.x then the pmos boot condition is not meet and need to figure out which one is missing.

case 2
if official pmos boot img and ufs rootfs img works, and you wanted to boot mmc pmos, then you can repeat above procedure for boot my kernel img with the official ufs rootfs and see what happened. that might not work due to dynamic partition not support.

case 3
my kernel works with official rootfs then you can try fastboot for fine-grain boot with my kernel custom dtb and los initrd. my latest build have the ft8756 panel driver but you need to modify dts to enable.

you might temped to eventually goes to case 3. hope this helps.

@99degree
Copy link
Owner

There is a possible huaxing panel support added. if you are still keep an eye on this repo, you might wanted to have a try.

below is the running action build.
https://github.com/99degree/postmarketos-nightly-builds/actions/runs/11324999325

@Marc-Pierre-Barbier
Copy link
Author

i will try this weeken as soon as im back from my trip

@99degree
Copy link
Owner

let me close this staling issue by adding some reference

99degree/linux#6 (comment)

@99degree
Copy link
Owner

found out people are not able to solve boot issue themself. so reopen and let people notice there are some pass experence for reference

@99degree 99degree reopened this Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants