npmania / shanling_fw_tools

0 stars 0 forks source link

Shanling Firmware Theme edit or Repack tool #1

Closed tenshi0xx closed 1 month ago

tenshi0xx commented 2 months ago

First of all, thanks for making this tool. I'm wondering if there's a way to repack the unpacked firmware, or can you make a script to repack it? thanks in advance.

npmania commented 1 month ago

https://github.com/npmania/X1000/tree/master/external/recovery/server-side Before running make, you should put two files: system.ubi, xImage under server-side/image/nand/.

To build system.ubi, you can run command below:

mkfs.ubifs -d system -e 0x1F000 -c 660 -m 0x800 -o system.ubi

where system is ubifs-root directory modified. Some people claimed one of the flag should be -c 720, but 660 worked for me.

tenshi0xx commented 1 month ago

https://github.com/npmania/X1000/tree/master/external/recovery/server-side Before running make, you should put two files: system.ubi, xImage under server-side/image/nand/.

To build system.ubi, you can run command below:

mkfs.ubifs -d system -e 0x1F000 -c 660 -m 0x800 -o system.ubi

where system is ubifs-root directory modified. Some people claimed one of the flag should be -c 720, but 660 worked for me.

thank you!

tenshi0xx commented 1 month ago

https://github.com/npmania/X1000/tree/master/external/recovery/server-side Before running make, you should put two files: system.ubi, xImage under server-side/image/nand/.

To build system.ubi, you can run command below:

mkfs.ubifs -d system -e 0x1F000 -c 660 -m 0x800 -o system.ubi

where system is ubifs-root directory modified. Some people claimed one of the flag should be -c 720, but 660 worked for me.

i'm using wsl to do it, it works but when updating, the device reboot and then said update failed...do you know why?

my device is shanling m0 pro

tenshi0xx commented 1 month ago

image

npmania commented 1 month ago

Update fails when .zip files aren't properly signed or md5sum value of firmware_v0.tar.gz is invalid. I've tried on new Linux system today, and also got the same update failed error. Some person on Russian forum claimed that firmware signing might only work with Oracle Java, and that might the problem in this case.

npmania commented 1 month ago

I've tried with multiple versions of Oracle JDK, but didn't made it this time. It's been too long since I've succeeded injecting my firmware, so I don't quite remember how I did last time. I'm also using Shanling M0 Pro. If you're okay, can you send me your IM address to np@mkv.li ? I'm available on Telegram, Discord, IRC and XMPP.