Odp: Stick 5G/LTE na SDX55
First backup was made with dd from mtd25, like you asked for.
Nie jesteś zalogowany. Proszę się zalogować lub zarejestrować.
eko.one.pl → Gadżety USB → Stick 5G/LTE na SDX55
Strony Poprzednia 1 … 4 5 6
Zaloguj się lub zarejestruj by napisać odpowiedź
First backup was made with dd from mtd25, like you asked for.
I tried to recreate UBI image for system partition.
Description of the process:
1. Make mtd25 partition backup with script from OpenWRT Wiki: https://openwrt.org/docs/guide-user/ins … ric.backup
2. Make ubi0_1 to ubi1_4 backup with the same script, slightly modified.
3. On modem, mount rootfs to a separate dir:
mkdir -p /tmp/rootfs ; mount -o ro /dev/ubi0_0 /tmp/rootfs4. On PC, use ubireader_utils_info to get ubi creation parameters.
5. Run mkfs.ubifs on modem with parameters discovered by ubireader, then transfer it to PC:
mkfs.ubifs -m 4096 -e 253952 -c 2146 -x lzo -f 8 -k r5 -p 1 -l 4 -r /tmp/rootfs -o /tmp/ubi0_0.ubifs6. Create ubi image with re-created ubi0_0 and remaining partitions directly from binary backup:
ubinize -p 262144 -m 4096 -O 4096 -s 4096 -x 1 -Q 783098594 -o img-783098594.ubi img-783098594.iniResult: https://fromsmash.com/u0fDPpGa_X-dt (MD5 7f38237a42a21a610a8f35f40b244842)
I tried to recreate UBI image for system partition.
Description of the process:
1. Make mtd25 partition backup with script from OpenWRT Wiki: https://openwrt.org/docs/guide-user/ins … ric.backup
2. Make ubi0_1 to ubi1_4 backup with the same script, slightly modified.
3. On modem, mount rootfs to a separate dir:mkdir -p /tmp/rootfs ; mount -o ro /dev/ubi0_0 /tmp/rootfs4. On PC, use ubireader_utils_info to get ubi creation parameters.
5. Run mkfs.ubifs on modem with parameters discovered by ubireader, then transfer it to PC:mkfs.ubifs -m 4096 -e 253952 -c 2146 -x lzo -f 8 -k r5 -p 1 -l 4 -r /tmp/rootfs -o /tmp/ubi0_0.ubifs6. Create ubi image with re-created ubi0_0 and remaining partitions directly from binary backup:
ubinize -p 262144 -m 4096 -O 4096 -s 4096 -x 1 -Q 783098594 -o img-783098594.ubi img-783098594.iniResult: https://fromsmash.com/u0fDPpGa_X-dt (MD5 7f38237a42a21a610a8f35f40b244842)
Thank you very much for your help. I tested so many images and the problem is the same: the EDL tool cannot skip bad blocks on the NAND when flashing, so after flashing the firmware, the bad blocks remain in the usrfs partition, causing the UBI reconstruction to fail repeatedly.
Maybe it's worth a try to flash it via fastboot or modify OTA package to write raw system partition image.
Maybe it's worth a try to flash it via fastboot or modify OTA package to write raw system partition image.
I tested with fastboot, but the image sizes are inconsistent, so I cannot use this backup to flash. I also tested the OTA incremental package with recovery, and it didn't work either.
Maybe it's worth a try to flash it via fastboot or modify OTA package to write raw system partition image.
I have written my own rawprogram_nand_p4K_b256K_update.xml, but even using Qualcomm QFIL to flash it, I cannot mark and skip bad blocks.
2026-04-20 02:40:13.808 02:39:44: INFO: {<program> FILE: 'C:\Users\lxh\Desktop\edl\sec.img'}
2026-04-20 02:40:13.808 02:39:44: INFO: {<program> (1.00 MB) 256 sectors needed at location 52224 on LUN 0}
2026-04-20 02:40:13.809 02:39:44: INFO: =======================================================
2026-04-20 02:40:13.809
2026-04-20 02:40:13.809
2026-04-20 02:40:13.809 02:39:44: INFO: TARGET SAID: 'INFO: Calling handler for program start'
2026-04-20 02:40:13.809
2026-04-20 02:40:13.813 02:39:44: INFO: TARGET SAID: 'INFO: NAND was previously open, returning existing handle 0
2026-04-20 02:40:13.815 '
2026-04-20 02:40:13.815
2026-04-20 02:40:13.815 02:39:44: INFO: Overall to target 0.219 seconds (4.57 MBps)
2026-04-20 02:40:13.815 02:39:44: INFO: {percent files transferred 38.72%}
2026-04-20 02:40:13.815 02:39:44: INFO:
2026-04-20 02:40:13.815 02:39:44: INFO: =======================================================
2026-04-20 02:40:13.815 02:39:44: INFO: ==================== {SUCCESS} ========================
2026-04-20 02:40:13.819 02:39:44: INFO: =======================================================
2026-04-20 02:40:13.819
2026-04-20 02:40:13.820
2026-04-20 02:40:13.820 02:39:44: INFO: {percent files transferred 38.72%}
2026-04-20 02:40:13.820 02:39:44: INFO: In handleProgram('oem.img')
2026-04-20 02:40:13.822 02:39:44: INFO: Looking for file 'oem.img'
2026-04-20 02:40:13.822 02:39:44: INFO: =======================================================
2026-04-20 02:40:13.824 02:39:44: INFO: {<program> FILE: 'C:\Users\lxh\Desktop\edl\oem.img'}
2026-04-20 02:40:13.825 02:39:44: INFO: {<program> (43.00 MB) 11008 sectors needed at location 52480 on LUN 0}
2026-04-20 02:40:13.826 02:39:44: INFO: =======================================================
2026-04-20 02:40:13.826
2026-04-20 02:40:13.826
2026-04-20 02:40:13.826 02:39:44: INFO: TARGET SAID: 'INFO: Calling handler for program start'
2026-04-20 02:40:13.826
2026-04-20 02:40:13.826 02:39:44: INFO: TARGET SAID: 'INFO: NAND was previously open, returning existing handle 0
2026-04-20 02:40:13.826 '
2026-04-20 02:40:13.830
2026-04-20 02:40:13.830 02:39:46: INFO: Overall to target 2.000 seconds (4.14 MBps)
2026-04-20 02:40:13.830 02:39:46: INFO: {percent files transferred 40.38%}
2026-04-20 02:40:13.831 02:39:48: INFO: Overall to target 4.000 seconds (4.05 MBps)
2026-04-20 02:40:13.831 02:39:48: INFO: {percent files transferred 41.96%}
2026-04-20 02:40:13.831 02:39:50: INFO: Overall to target 6.000 seconds (3.97 MBps)
2026-04-20 02:40:13.831 02:39:50: INFO: {percent files transferred 43.48%}
2026-04-20 02:40:13.836 02:39:52: INFO: Overall to target 8.000 seconds (3.89 MBps)
2026-04-20 02:40:13.836 02:39:52: INFO: {percent files transferred 44.94%}
2026-04-20 02:40:13.837 02:39:54: INFO: Overall to target 10.000 seconds (3.82 MBps)
2026-04-20 02:40:13.838 02:39:54: INFO: {percent files transferred 46.34%}
2026-04-20 02:40:13.838 02:39:55: INFO: Overall to target 11.406 seconds (3.77 MBps)
2026-04-20 02:40:13.841 02:39:55: INFO: {percent files transferred 47.31%}
2026-04-20 02:40:13.841 02:39:55: INFO:
2026-04-20 02:40:13.842 02:39:55: INFO: =======================================================
2026-04-20 02:40:13.842 02:39:55: INFO: ==================== {SUCCESS} ========================
2026-04-20 02:40:13.842 02:39:55: INFO: =======================================================
2026-04-20 02:40:13.842
2026-04-20 02:40:13.842
2026-04-20 02:40:13.842 02:39:55: INFO: {percent files transferred 47.31%}
2026-04-20 02:40:13.846 02:39:55: INFO: In handleProgram('system.img')
2026-04-20 02:40:13.847 02:39:55: INFO: Looking for file 'system.img'
2026-04-20 02:40:13.848 02:39:55: INFO: =======================================================
2026-04-20 02:40:13.848 02:39:55: INFO: {<program> FILE: 'C:\Users\lxh\Desktop\edl\system.img'}
2026-04-20 02:40:13.848 02:39:55: INFO: {<program> (264.00 MB) 67584 sectors needed at location 63488 on LUN 0}
2026-04-20 02:40:13.848 02:39:55: INFO: =======================================================
2026-04-20 02:40:13.848
2026-04-20 02:40:13.848
2026-04-20 02:40:13.850 02:39:55: INFO: TARGET SAID: 'INFO: Calling handler for program start'
2026-04-20 02:40:13.852
2026-04-20 02:40:13.852 02:39:55: INFO: TARGET SAID: 'INFO: NAND was previously open, returning existing handle 0
2026-04-20 02:40:13.853 '
2026-04-20 02:40:13.853
2026-04-20 02:40:13.854 02:39:57: INFO: Overall to target 2.000 seconds (4.17 MBps)
2026-04-20 02:40:13.854 02:39:57: INFO: {percent files transferred 48.97%}
2026-04-20 02:40:13.854 02:39:59: INFO: Overall to target 4.000 seconds (4.07 MBps)
2026-04-20 02:40:13.858 02:39:59: INFO: {percent files transferred 50.55%}
2026-04-20 02:40:13.859 02:40:01: INFO: Overall to target 6.000 seconds (3.98 MBps)
2026-04-20 02:40:13.859 02:40:01: INFO: {percent files transferred 52.07%}
2026-04-20 02:40:13.859 02:40:03: INFO: Overall to target 8.000 seconds (3.89 MBps)
2026-04-20 02:40:13.859 02:40:03: INFO: {percent files transferred 53.52%}
2026-04-20 02:40:13.863 02:40:05: INFO: Overall to target 10.000 seconds (3.82 MBps)
2026-04-20 02:40:13.863 02:40:05: INFO: {percent files transferred 54.93%}
2026-04-20 02:40:13.864 02:40:07: INFO: Overall to target 12.000 seconds (3.75 MBps)
2026-04-20 02:40:13.864 02:40:07: INFO: {percent files transferred 56.30%}
2026-04-20 02:40:13.864 02:40:09: INFO: Overall to target 14.000 seconds (3.69 MBps)
2026-04-20 02:40:13.864 02:40:09: INFO: {percent files transferred 57.61%}
2026-04-20 02:40:13.869 02:40:11: INFO: Overall to target 16.000 seconds (3.63 MBps)
2026-04-20 02:40:13.870 02:40:11: INFO: {percent files transferred 58.89%}
2026-04-20 02:41:25.806 02:40:13: INFO: Overall to target 18.000 seconds (3.57 MBps)
2026-04-20 02:41:25.806 02:40:13: INFO: {percent files transferred 60.13%}
2026-04-20 02:41:25.806 02:40:15: INFO: Overall to target 20.000 seconds (3.51 MBps)
2026-04-20 02:41:25.806 02:40:15: INFO: {percent files transferred 61.34%}
2026-04-20 02:41:25.811 02:40:17: INFO: Overall to target 22.000 seconds (3.46 MBps)
2026-04-20 02:41:25.812 02:40:17: INFO: {percent files transferred 62.51%}
2026-04-20 02:41:25.812 02:40:19: INFO: Overall to target 24.000 seconds (3.41 MBps)
2026-04-20 02:41:25.814 02:40:19: INFO: {percent files transferred 63.65%}
2026-04-20 02:41:25.814 02:40:21: INFO: Overall to target 26.000 seconds (3.37 MBps)
2026-04-20 02:41:25.816 02:40:21: INFO: {percent files transferred 64.77%}
2026-04-20 02:41:25.817 02:40:23: INFO: Overall to target 28.000 seconds (3.32 MBps)
2026-04-20 02:41:25.817 02:40:23: INFO: {percent files transferred 65.86%}
2026-04-20 02:41:25.817 02:40:25: INFO: Overall to target 30.000 seconds (3.28 MBps)
2026-04-20 02:41:25.817 02:40:25: INFO: {percent files transferred 66.93%}
2026-04-20 02:41:25.821 02:40:27: INFO: Overall to target 32.000 seconds (3.24 MBps)
2026-04-20 02:41:25.823 02:40:27: INFO: {percent files transferred 67.98%}
2026-04-20 02:41:25.823 02:40:29: INFO: Overall to target 34.000 seconds (3.20 MBps)
2026-04-20 02:41:25.823 02:40:29: INFO: {percent files transferred 69.01%}
2026-04-20 02:41:25.823 02:40:31: INFO: Overall to target 36.000 seconds (3.16 MBps)
2026-04-20 02:41:25.827 02:40:31: INFO: {percent files transferred 70.02%}
2026-04-20 02:41:25.827 02:40:33: INFO: Overall to target 38.000 seconds (3.13 MBps)
2026-04-20 02:41:25.830 02:40:33: INFO: {percent files transferred 71.01%}
2026-04-20 02:41:25.830 02:40:35: INFO: Overall to target 40.000 seconds (3.09 MBps)
2026-04-20 02:41:25.832 02:40:35: INFO: {percent files transferred 71.99%}
2026-04-20 02:41:25.833 02:40:37: INFO: Overall to target 42.000 seconds (3.06 MBps)
2026-04-20 02:41:25.833 02:40:37: INFO: {percent files transferred 72.95%}
2026-04-20 02:41:25.834 02:40:39: INFO: Overall to target 44.000 seconds (3.03 MBps)
2026-04-20 02:41:25.834 02:40:39: INFO: {percent files transferred 73.90%}
2026-04-20 02:41:25.834 02:40:41: INFO: Overall to target 46.000 seconds (3.00 MBps)
2026-04-20 02:41:25.838 02:40:41: INFO: {percent files transferred 74.84%}
2026-04-20 02:41:25.838 02:40:43: INFO: Overall to target 48.000 seconds (2.97 MBps)
2026-04-20 02:41:25.839 02:40:43: INFO: {percent files transferred 75.76%}
2026-04-20 02:41:25.839 02:40:45: INFO: Overall to target 50.000 seconds (2.94 MBps)
2026-04-20 02:41:25.839 02:40:45: INFO: {percent files transferred 76.66%}
2026-04-20 02:41:25.839 02:40:47: INFO: Overall to target 52.000 seconds (2.91 MBps)
2026-04-20 02:41:25.844 02:40:47: INFO: {percent files transferred 77.54%}
2026-04-20 02:41:25.845 02:40:49: INFO: Overall to target 54.000 seconds (2.89 MBps)
2026-04-20 02:41:25.846 02:40:49: INFO: {percent files transferred 78.42%}
2026-04-20 02:41:25.846 02:40:51: INFO: Overall to target 56.000 seconds (2.86 MBps)
2026-04-20 02:41:25.846 02:40:51: INFO: {percent files transferred 79.29%}
2026-04-20 02:41:25.849 02:40:53: INFO: Overall to target 58.000 seconds (2.84 MBps)
2026-04-20 02:41:25.849 02:40:53: INFO: {percent files transferred 80.14%}
2026-04-20 02:41:25.850 02:40:55: INFO: Overall to target 60.000 seconds (2.81 MBps)
2026-04-20 02:41:25.850 02:40:55: INFO: {percent files transferred 80.98%}
2026-04-20 02:41:25.850 02:40:57: INFO: Overall to target 62.000 seconds (2.79 MBps)
2026-04-20 02:41:25.850 02:40:57: INFO: {percent files transferred 81.81%}
2026-04-20 02:41:25.855 02:40:59: INFO: Overall to target 64.000 seconds (2.77 MBps)
2026-04-20 02:41:25.856 02:40:59: INFO: {percent files transferred 82.63%}
2026-04-20 02:41:25.856 02:41:01: INFO: Overall to target 66.000 seconds (2.74 MBps)
2026-04-20 02:41:25.856 02:41:01: INFO: {percent files transferred 83.44%}
2026-04-20 02:41:25.856 02:41:03: INFO: Overall to target 68.000 seconds (2.72 MBps)
2026-04-20 02:41:25.860 02:41:03: INFO: {percent files transferred 84.25%}
2026-04-20 02:41:25.860 02:41:05: INFO: Overall to target 70.000 seconds (2.70 MBps)
2026-04-20 02:41:25.861 02:41:05: INFO: {percent files transferred 85.04%}
2026-04-20 02:41:25.861 02:41:07: INFO: Overall to target 72.000 seconds (2.68 MBps)
2026-04-20 02:41:25.861 02:41:07: INFO: {percent files transferred 85.83%}
2026-04-20 02:41:25.865 02:41:09: INFO: Overall to target 74.000 seconds (2.66 MBps)
2026-04-20 02:41:25.866 02:41:09: INFO: {percent files transferred 86.61%}
2026-04-20 02:41:25.867 02:41:11: INFO: Overall to target 76.000 seconds (2.64 MBps)
2026-04-20 02:41:25.867 02:41:11: INFO: {percent files transferred 87.38%}
2026-04-20 02:41:25.867 02:41:13: INFO: Overall to target 78.000 seconds (2.62 MBps)
2026-04-20 02:41:25.867 02:41:13: INFO: {percent files transferred 88.15%}
2026-04-20 02:41:25.871 02:41:15: INFO: Overall to target 80.000 seconds (2.61 MBps)
2026-04-20 02:41:25.871 02:41:15: INFO: {percent files transferred 88.90%}
2026-04-20 02:41:25.872 02:41:17: INFO: Overall to target 82.000 seconds (2.59 MBps)
2026-04-20 02:41:25.872 02:41:17: INFO: {percent files transferred 89.65%}
2026-04-20 02:41:25.872 02:41:19: INFO: Overall to target 84.000 seconds (2.57 MBps)
2026-04-20 02:41:25.872 02:41:19: INFO: {percent files transferred 90.39%}
2026-04-20 02:41:25.877 02:41:21: INFO: Overall to target 86.000 seconds (2.55 MBps)
2026-04-20 02:41:25.878 02:41:21: INFO: {percent files transferred 91.12%}
2026-04-20 02:41:25.878 02:41:23: INFO: Overall to target 88.000 seconds (2.54 MBps)
2026-04-20 02:41:25.878 02:41:23: INFO: {percent files transferred 91.85%}
2026-04-20 02:41:25.878 02:41:25: INFO: Overall to target 90.000 seconds (2.52 MBps)
2026-04-20 02:41:47.186 02:41:25: INFO: {percent files transferred 92.57%}
2026-04-20 02:41:47.186 02:41:27: INFO: Overall to target 92.000 seconds (2.50 MBps)
2026-04-20 02:41:47.187 02:41:27: INFO: {percent files transferred 93.28%}
2026-04-20 02:41:47.187 02:41:29: INFO: Overall to target 94.000 seconds (2.49 MBps)
2026-04-20 02:41:47.192 02:41:29: INFO: {percent files transferred 93.99%}
2026-04-20 02:41:47.193 02:41:31: INFO: Overall to target 96.000 seconds (2.47 MBps)
2026-04-20 02:41:47.193 02:41:31: INFO: {percent files transferred 94.69%}
2026-04-20 02:41:47.194 02:41:33: INFO: Overall to target 98.000 seconds (2.46 MBps)
2026-04-20 02:41:47.194 02:41:33: INFO: {percent files transferred 95.38%}
2026-04-20 02:41:47.197 02:41:35: INFO: Overall to target 100.000 seconds (2.44 MBps)
2026-04-20 02:41:47.197 02:41:35: INFO: {percent files transferred 96.07%}
2026-04-20 02:41:47.198 02:41:37: INFO: Overall to target 102.000 seconds (2.43 MBps)
2026-04-20 02:41:47.198 02:41:37: INFO: {percent files transferred 96.75%}
2026-04-20 02:41:47.198 02:41:39: INFO: Overall to target 104.000 seconds (2.41 MBps)
2026-04-20 02:41:47.198 02:41:39: INFO: {percent files transferred 97.43%}
2026-04-20 02:41:47.198 02:41:41: INFO: Overall to target 106.000 seconds (2.40 MBps)
2026-04-20 02:41:47.203 02:41:41: INFO: {percent files transferred 98.10%}
2026-04-20 02:41:47.204 02:41:43: INFO: Overall to target 108.000 seconds (2.39 MBps)
2026-04-20 02:41:47.204 02:41:43: INFO: {percent files transferred 98.77%}
2026-04-20 02:41:47.204 02:41:45: INFO: Overall to target 110.000 seconds (2.37 MBps)
2026-04-20 02:41:47.204 02:41:45: INFO: {percent files transferred 99.43%}
2026-04-20 02:41:47.204 02:41:47: INFO: Overall to target 111.344 seconds (2.37 MBps)
2026-04-20 02:41:47.208 02:41:47: INFO: {percent files transferred 100.00%}
2026-04-20 02:41:47.209
2026-04-20 02:41:47.209 02:41:47: INFO: TARGET SAID: 'INFO: [426] out of good blocks, total blocks:7ff Gblocks:7fd lba:1482c375
2026-04-20 02:41:47.209 '
2026-04-20 02:41:47.213
2026-04-20 02:41:47.214 02:41:47: INFO: TARGET SAID: 'ERROR: [1238] error : 9
2026-04-20 02:41:47.215 '
2026-04-20 02:41:47.215
2026-04-20 02:41:47.215 02:41:47: INFO: TARGET SAID: 'ERROR: Write Failed sector 130880, size 0 result 2'
2026-04-20 02:41:47.215
2026-04-20 02:41:47.215
2026-04-20 02:41:47.215 _____
2026-04-20 02:41:47.215 | ___|
2026-04-20 02:41:47.219 | |__ _ __ _ __ ___ _ __
2026-04-20 02:41:47.219 | __| '__| '__/ _ \| '__|
2026-04-20 02:41:47.219 | |__| | | | | (_) | |
2026-04-20 02:41:47.220 \____/_| |_| \___/|_|
2026-04-20 02:41:47.220
2026-04-20 02:41:47.220
2026-04-20 02:41:47.220 02:41:47: {ERROR: Please see log}
2026-04-20 02:41:47.220
2026-04-20 02:41:47.220 Writing log to 'C:\Users\lxh\AppData\Roaming\Qualcomm\QFIL\COMPORT_10\port_trace.txt', might take a minute
2026-04-20 02:41:47.224
2026-04-20 02:41:47.225
2026-04-20 02:41:47.226 Log is 'C:\Users\lxh\AppData\Roaming\Qualcomm\QFIL\COMPORT_10\port_trace.txt'
2026-04-20 02:41:47.226
2026-04-20 02:41:47.226 Download Fail:FireHose Fail:FHLoader Fail:Process fail
2026-04-20 02:41:47.226 Finish DownloadI am afraid I can no longer help here, you need someone with experience with flashing the modem.
The only thing I'd try would be:
1. Extract rootfs.ubifs from vos-system-recreated.ubi using ubireader_extract_images
2. Modify OTA package to flash it with
write_raw_image(package_extract_file("firmware-update/rootfs.ubi"), "system");This might work if recovery can handle NAND bad blocks.
Strony Poprzednia 1 … 4 5 6
Zaloguj się lub zarejestruj by napisać odpowiedź
eko.one.pl → Gadżety USB → Stick 5G/LTE na SDX55
Forum oparte o PunBB, wspierane przez Informer Technologies, Inc