4IceG / ZTE-MF286D

My compilation: OpenWrt SNAPSHOT / LuCI Main | r26815-b4069fad02 [Build: 30.06.2024]
GNU General Public License v3.0
23 stars 0 forks source link

latest release stuck on 'Starting kernel ...' #14

Open gericho opened 2 months ago

gericho commented 2 months ago

Hi! And thank you for the release. I'm not sure if this is a problem on my mf286d, since some days it is rebooting by itself, it started happening last week after a software packages update on a generic master 23.5.2. I'm trying to install your snapshot, this is what i used in putty:

nand erase 0x1800000 0x1d00000 setenv ipaddr 192.168.1.1 setenv serverip 192.168.1.2 set fdt_high 0x85000000 saveenv tftp root_uImage (your latest initramfs renamed) bootm $loadaddr

And it sticks on "Starting Kernel ..."

I think I have some dirty partitions somewhere but I'm not sure which ones and what to do. Could be also a defective memory chip since it is running since many years. Not sure about that. I appreciate a lot any small help. Thank you!

gericho commented 2 months ago

I was able to put back the 23.5.2 initramfs, as I try to flash with the openwrt-23.05.2-ipq40xx-generic-zte_mf286d-squashfs-sysupgrade.bin the router stops booting with this message:

Format: Log Type - Time(microsec) - Message - Optional Info
Log Type: B - Since Boot(Power On Reset),  D - Delta,  S - Statistic
S - QC_IMAGE_VERSION_STRING=BOOT.BF.3.1.1-00126
S - IMAGE_VARIANT_STRING=DAABANAZA
S - OEM_IMAGE_VERSION_STRING=CRM
S - Boot Config, 0x00000021
S - Reset status Config, 0x00000000
S - Core 0 Frequency, 0 MHz
B -       262 - PBL, Start
B -      1342 - bootable_media_detect_entry, Start
B -      1684 - bootable_media_detect_success, Start
B -      1698 - elf_loader_entry, Start
B -      5116 - auth_hash_seg_entry, Start
B -      7285 - auth_hash_seg_exit, Start
B -    584230 - elf_segs_hash_verify_entry, Start
B -    703207 - PBL, End
B -    703231 - SBL1, Start
B -    794198 - pm_device_init, Start
D -         7 - pm_device_init, Delta
B -    795673 - boot_flash_init, Start
D -     53248 - boot_flash_init, Delta
B -    853072 - boot_config_data_table_init, Start
D -      3863 - boot_config_data_table_init, Delta - (419 Bytes)
B -    860259 - clock_init, Start
D -      7767 - clock_init, Delta
B -    872504 - CDT ver
Format: Log Type - Time(microsec) - Message - Optional Info
Log Type: B - Since Boot(Power On Reset),  D - Delta,  S - Statistic
S - QC_IMAGE_VERSION_STRING=BOOT.BF.3.1.1-00126
S - IMAGE_VARIANT_STRING=DAABANAZA
S - OEM_IMAGE_VERSION_STRING=CRM
S - Boot Config, 0x00000021
S - Reset status Config, 0x00000000
S - Core 0 Frequency, 0 MHz
B -       262 - PBL, Start
B -      1342 - bootable_media_detect_entry, Start
B -      1685 - bootable_media_detect_success, Start
B -      1699 - elf_loader_entry, Start
B -      5118 - auth_hash_seg_entry, Start
B -      7287 - auth_hash_seg_exit, Start
B -    584316 - elf_segs_hash_verify_entry, Start
B -    703229 - PBL, End
B -    703253 - SBL1, Start
B -    794188 - pm_device_init, Start
D -         7 - pm_device_init, Delta
B -    795661 - boot_flash_init, Start
D -     53247 - boot_flash_init, Delta
B -    853061 - boot_config_data_table_init, Start
D -      3865 - boot_config_data_table_init, Delta - (419 Bytes)
B -    860251 - clock_init, Start
D -      7758 - clock_init, Delta
B -    872487 - CDT version:2,Platform ID:8,Major ID:1,Minor ID:0,Subtype:1
B -    875900 - sbl1_ddr_set_params, Start
B -    880997 - cpr_init, Start
D -         2 - cpr_init, Delta
B -    885380 - Pre_DDR_clock_init, Start
D -         4 - Pre_DDR_clock_init, Delta
D -     13177 - sbl1_ddr_set_params, Delta
B -    898694 - pm_driver_init, Start
D -         2 - pm_driver_init, Delta
B -    969143 - sbl1_wait_for_ddr_training, Start
D -        27 - sbl1_wait_for_ddr_training, Delta
B -    984728 - Image Load, Start
D -    153154 - QSEE Image Loaded, Delta - (299560 Bytes)
B -   1138311 - Image Load, Start
D -      1443 - SEC Image Loaded, Delta - (2048 Bytes)
B -   1148601 - Image Load, Start
D -    247725 - APPSBL Image Loaded, Delta - (507051 Bytes)
B -   1396724 - QSEE Execution, Start
D -        60 - QSEE Execution, Delta
B -   1402933 - SBL1, End
D -    701788 - SBL1, Delta
S - Flash Throughput, 2011 KB/s  (809078 Bytes,  402153 us)
S - DDR Frequency, 672 MHz

U-Boot 2012.07 [Chaos Calmer 15.05.1,IPQ4019.ILQ.6.1.0.r2-00006-P-1] (Apr 19 2021 - 23:50:05)

smem ram ptable found: ver: 1 len: 3
DRAM:  256 MiB
machid : 0x8010001
NAND:  ID = 302012c
Vendor = 2c
Device = 1
ONFI device found
SF: Detected GD25Q16 with page size 4 KiB, total 2 MiB
ipq_spi: page_size: 0x100, sector_size: 0x1000, size: 0x200000
130 MiB
In:    serial
Out:   serial
Err:   serial
machid: 8010001
flash_type: 0
Uaztemain: enter into !
ZTE_InitFotaFlashPara: nand_curr_device=0
zte_getHandOffState: read data=0x4e from 0x0
Press ESC to abort autoboot in 0 seconds
setenv - set environment variables

(IPQ40xx) #
gericho commented 2 months ago

downloaded and tried also zte_mf286d-initramfs-zImage.itb and zte_mf286d-squashfs-sysupgrade.bin in here

same results unfortunately

4IceG commented 2 months ago

Hi, @gericho have you tried images from eko.one.pl forum? https://dl.eko.one.pl/luci/openwrt-23.05/ipq40xx/generic/luci-23.05-snapshot-r23851-eda76b336b-ipq40xx-generic-zte_mf286d-initramfs-zImage.itb https://dl.eko.one.pl/luci/openwrt-23.05/ipq40xx/generic/luci-23.05-snapshot-r23851-eda76b336b-ipq40xx-generic-zte_mf286d-squashfs-sysupgrade.bin

If it still won't load, check the image for Gargoyle https://dl.eko.one.pl/gargoyle-pl/1.14/targets/ipq40xx/generic/gargoyle-1.14.0.3-zte_mf286d-initramfs-fit-zImage.itb (unusual, but it worked for me this way).

I don't know what's going on with some routers, but I check the image before publishing and I have no problems (with booting/updating).

gericho commented 2 months ago

Thank you very much for your help! I'm sure it is not your image release problem. So I was able to access the page on the eko.one.pl firmware and gargoyle as well. but as I reboot the modem after flashing the sysupgrade, it seems it does not save the new sysupgrade. It reboots again on the prompt. Attached the log after the sysupgrade flash and the printenv. Thank you!


[  563.837712] ubi: mtd9 is already attached to ubi0
[  564.391945] ubi: mtd9 is already attached to ubi0
[  574.313213] ubi: mtd9 is already attached to ubi0
[  574.837246] ubi: mtd9 is already attached to ubi0
Watchdog handover: fd=3
- watchdog -
Watchdog did not previously reset the system
Wed May  1 15:56:19 CEST 2024 upgrade: Sending TERM to remaining processes ...
Wed May  1 15:56:24 CEST 2024 upgrade: Sending KILL to remaining processes ...
[  585.500778] stage2 (4678): drop_caches: 3
Wed May  1 15:56:30 CEST 2024 upgrade: Switching to ramdisk...
Wed May  1 13:56:32 UTC 2024 upgrade: Performing system upgrade...
verifying sysupgrade tar file integrity
Volume ID 0, size 24 LEBs (3047424 bytes, 2.9 MiB), LEB size 126976 bytes (124.0 KiB), dynamic, name "kernel", alignment 1
Volume ID 1, size 63 LEBs (7999488 bytes, 7.6 MiB), LEB size 126976 bytes (124.0 KiB), dynamic, name "rootfs", alignment 1
Set volume size to 15364096
Volume ID 2, size 121 LEBs (15364096 bytes, 14.6 MiB), LEB size 126976 bytes (124.0 KiB), dynamic, name "rootfs_data", alignment 1
sysupgrade successful
umount: can't unmount /dev: Resource busy
umount: can't unmount /tmp: Resource busy[  592.583315] reboot: Restarting system

Format: Log Type - Time(microsec) - Message - Optional Info
Log Type: B - Since Boot(Power On Reset),  D - Delta,  S - Statistic
S - QC_IMAGE_VERSION_STRING=BOOT.BF.3.1.1-00126
S - IMAGE_VARIANT_STRING=DAABANAZA
S - OEM_IMAGE_VERSION_STRING=CRM
S - Boot Config, 0x00000021
S - Reset status Config, 0x00000000
S - Core 0 Frequency, 0 MHz
B -       262 - PBL, Start
B -      1342 - bootable_media_detect_entry, Start
B -      1683 - bootable_media_detect_success, Start
B -      1697 - elf_loader_entry, Start
B -      5105 - auth_hash_seg_entry, Start
B -      7268 - auth_hash_seg_exit, Start
B -    582973 - elf_segs_hash_verify_entry, Start
B -    701462 - PBL, End
B -    701486 - SBL1, Start
B -    792384 - pm_device_init, Start
D -         7 - pm_device_init, Delta
B -    793856 - boot_flash_init, Start
D -     53196 - boot_flash_init, Delta
B -    851201 - boot_config_data_table_init, Start
D -      3857 - boot_config_data_table_init, Delta - (419 Bytes)
B -    858379 - clock_init, Start
D -      7748 - clock_init, Delta
B -    870603 - CDT version:2,Platform ID:8,Major ID:1,Minor ID:0,Subtype:1
B -    874017 - sbl1_ddr_set_params, Start
B -    879115 - cpr_init, Start
D -         2 - cpr_init, Delta
B -    883497 - Pre_DDR_clock_init, Start
D -         4 - Pre_DDR_clock_init, Delta
D -     13177 - sbl1_ddr_set_params, Delta
B -    896812 - pm_driver_init, Start
D -         2 - pm_driver_init, Delta
B -    967238 - sbl1_wait_for_ddr_training, Start
D -        27 - sbl1_wait_for_ddr_training, Delta
B -    982695 - Image Load, Start
D -    153188 - QSEE Image Loaded, Delta - (299560 Bytes)
B -   1136312 - Image Load, Start
D -      1446 - SEC Image Loaded, Delta - (2048 Bytes)
B -   1146605 - Image Load, Start
D -    247792 - APPSBL Image Loaded, Delta - (507051 Bytes)
B -   1394795 - QSEE Execution, Start
D -        60 - QSEE Execution, Delta
B -   1400982 - SBL1, End
D -    701604 - SBL1, Delta
S - Flash Throughput, 2011 KB/s  (809078 Bytes,  402254 us)
S - DDR Frequency, 672 MHz

U-Boot 2012.07 [Chaos Calmer 15.05.1,IPQ4019.ILQ.6.1.0.r2-00006-P-1] (Apr 19 2021 - 23:50:05)

smem ram ptable found: ver: 1 len: 3
DRAM:  256 MiB
machid : 0x8010001
NAND:  ID = 302012c
Vendor = 2c
Device = 1
ONFI device found
SF: Detected GD25Q16 with page size 4 KiB, total 2 MiB
ipq_spi: page_size: 0x100, sector_size: 0x1000, size: 0x200000
130 MiB
In:    serial
Out:   serial
Err:   serial
machid: 8010001
flash_type: 0
Uaztemain: enter into !
ZTE_InitFotaFlashPara: nand_curr_device=0
zte_getHandOffState: read data=0x4e from 0x0
Press ESC to abort autoboot in 0 seconds
setenv - set environment variables

(IPQ40xx) #
baudrate=115200
bootargs=ubi.mtd=rootfs root=mtd:ubi_rootfs rootfstype=squashfs rootwait ubi.mtd=rootfs root=mtd:ubi_rootfs rootfstype=squashfs rootwait ubi.mtd=rootfs root=mtd:ubi_rootfs rootfstype=squashfs rootwait
bootcmd=bootipq
bootdelay=2
ethact=eth0
ethaddr=0x00:0xaa:0xbb:0x1d:0x3e:0x 4
fdt_high=0x87000000
fileaddr=84000000
filesize=1275A58
flash_type=0
fsbootargs=ubi.mtd=rootfs root=mtd:ubi_rootfs rootfstype=squashfs
ipaddr=192.168.1.1
lc=tftpboot 0x84000000 ${dir}cdt-AP.DK04.1-C1.bin&&sf probe&&sf erase 0xc0000 +$filesize&&sf write $fileaddr 0xc0000 $filesize
lp=tftpboot 0x84000000 ${dir}norplusnand-system-partition-ipq40xx.bin&&sf probe&&sf erase 0x40000 +$filesize&&sf write $fileaddr 0x40000 $filesize
lr=tftpboot 0x84000000 ${dir}root_uImage&&nand erase 0x1000000 0x800000 &&nand write_partition 0x84000000     0x1000000     0x800000 &&nand erase 0x1800000 0x1D00000 &&nand write_partition 0x84800000     0x1800000     0x1D00000
lrb=tftpboot 0x84000000 ${dir}delta.bin&&nand erase 0x3500000 0x1900000&&nand write $fileaddr 0x3500000 $filesize
lrs=tftpboot 0x84000000 ${dir}root_uImage_s&&nand erase 0x1800000 0x1D00000&&nand write $fileaddr 0x1800000 $filesize
lu=tftpboot 0x84000000 ${dir}uboot.bin&&sf probe&&sf erase 0xf0000 +$filesize&&sf write $fileaddr 0xf0000 $filesize
lw=tftpboot 0x84000000 ${dir}web.img&&nand erase 0x1000000 0x800000&&nand write $fileaddr 0x1000000 $filesize
machid=8010001
mtddevname=fs
mtddevnum=0
mtdids=nand0=nand0
mtdparts=mtdparts=nand0:0x1d00000@0x1800000(fs),
partition=nand0,0
serverip=192.168.1.2
stderr=serial
stdin=serial
stdout=serial

Environment size: 1656/65532 bytes