Closed Mr-Yuling closed 1 year ago
Are you using lk2nd bootloader?
Are you using lk2nd bootloader?
yes,I use daisy lk2nd,but it is shows redmi note 4x I use pmbootstrap to install postmarketOS,but also can not display If you could add redmi 6pro device tree and config in it, I'd be grateful.
Thanks for your report. As we don't have your device, we can only help you to add support by yourself, but you have sakura iirc, so I think we can just create dts for lk2nd and reuse daisy's kernel dts. Please, send us photo with information from lk2dn and your msm-id and board-id(if you don't know how to get it, you can just upload your fdt from downstream from path /sys/firmware/fdt)
Thanks for your report. As we don't have your device, we can only help you to add support by yourself, but you have sakura iirc, so I think we can just create dts for lk2nd and reuse daisy's kernel dts. Please, send us photo with information from lk2dn and your msm-id and board-id(if you don't know how to get it, you can just upload your fdt from downstream from path /sys/firmware/fdt)
I upload on my google drive,please check it board-id:https://drive.google.com/file/d/1oFNjT_HjcBwJ5nQhOZ0Va5jOqZnQO64i/view?usp=share_link msm-id:https://drive.google.com/file/d/1vr8LZZ3lnBmdfCnPw71XbRjlJDUy3d0V/view?usp=share_link lk2nd photo:https://drive.google.com/file/d/1UCU_Ij4Fc1Iq5RGaHJb-U6Xu7pXDb38G/view?usp=share_link
So, simply try edit this strings:
https://github.com/msm8953-mainline/lk2nd/blob/main/dts/msm8953-xiaomi-daisy.dts#L10
https://github.com/msm8953-mainline/linux/blob/msm8953-6.1.0/main/arch/arm64/boot/dts/qcom/msm8953-xiaomi-daisy.dts#L26
to this:
qcom,board-id= <0x1000b 0x09>, <0x1000b 0>;
If it helps then create PRs
So, simply try edit this strings: https://github.com/msm8953-mainline/lk2nd/blob/main/dts/msm8953-xiaomi-daisy.dts#L10 https://github.com/msm8953-mainline/linux/blob/msm8953-6.1.0/main/arch/arm64/boot/dts/qcom/msm8953-xiaomi-daisy.dts#L26 to this:
qcom,board-id= <0x1000b 0x09>, <0x1000b 0>;
If it helps then create PRs
I modified the code, but it still displays redmi note 4x. It's a strange thing,when I reboot to lk2nd,I flash lk2nd again then reboot,at this time,it displays mi a2 lite. but after I flash boot,then reboot to lk2nd the model name changed back to redmi note 4x.
If you update lk2nd from itself, make sure to do fastboot flash lk2nd <lk2nd.img>
. Otherwise it will flash it to the boot partition and lk2nd will boot a second lk2nd...
it is same to mi a2 lite(daisy) ,i use daisy config but can not display