Able to load and boot with initramfs of Openwrt by following below commands
Entered in uboot mode.
tftpboot 0x82000000 openwrt-19.07.0-ipq40xx-generic-qcom_ap-dk04.1-c1-initramfs-fit-uImage.itb
set fdt_high 0x83000000
bootm 0x82000000
Able to boot
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -| || | | || || |
|_____|| |||||___||| |____|
|| W I R E L E S S F R E E D O M
OpenWrt 19.07.0, r10860-a3ffeb413b
Not able to copy the openwrt-ipq40xx-generic-qcom_ap-dk04.1-c1-squashfs-nand-sysupgrade.bin file as USB and Ethernet interface are not up.
Direct sysupgrade with QSDK stock firmware.
When using squashfs bin through sysupgrade, it failed
root@OpenWrt:~# sysupgrade -v -n /tmp/openwrt-ipq40xx-generic-qcom_ap-dk04.1-c1-squashfs-nand-sysupgrade.bin
/tmp/openwrt-ipq40xx-generic-qcom_ap-dk04.1-c1-squashfs-nand-sysupgrade.bin is not a valid FIT image
Image check 'platform_check_image' failed.
Any suggestions will be helpful. Thanks in advance.
Please contact your distributor for support about the proprietary QSDK. While being loosely based on an ancient OpenWrt version, it has been substantually changed by the vendor and has little in common with OpenWrt.
Thanks for the update. I agree with you. It is Qualcomm Dakota reference platform and no hardware changes are made. Seems like openwrt support ipq4019-ap-dk04.1-c1 models and would like to know if we can flash directly via JTAG or uboot. Will also try to get details from distributor.
Thank you.
Hi,
Thanks for the suggestion. From Openwrt build, we could generate openwrt-ipq40xx-generic-qcom_ap-dk04.1-c1-squashfs-nand-factory.ubi image. Even this image gives the same error.
root@OpenWrt:~# sysupgrade -v -n /tmp/openwrt-ipq40xx-generic-qcom_ap-dk04.1-c1-squashfs-nand-factory.ubi
/tmp/openwrt-ipq40xx-generic-qcom_ap-dk04.1-c1-squashfs-nand-factory.ubi is not a valid FIT image
Image check 'platform_check_image' failed.
3317468 Jan 27 14:55 openwrt-ipq40xx-generic-qcom_ap-dk04.1-c1-fit-uImage.itb
6420244 Jan 27 14:55 openwrt-ipq40xx-generic-qcom_ap-dk04.1-c1-initramfs-fit-uImage.itb
6422528 Jan 27 14:51 openwrt-ipq40xx-generic-qcom_ap-dk04.1-c1-squashfs-nand-factory.ubi
5786370 Jan 27 14:51 openwrt-ipq40xx-generic-qcom_ap-dk04.1-c1-squashfs-nand-sysupgrade.bin
Generated binaries are copied to : openwrt-19.07/bin/targets/ipq40xx/generic/
The patch you have pointed out is already part of Openwrt. Not sure anything I have missed. Please let me know if any of the steps followed are incorrect.
======================================================== #Init ramfs procedure Update
Also we have enabled USB_STORAGE and able to copy the sysupgrade image after booting from initramfs. On flashing, we see below error
root@OpenWrt:/mnt/openwrt_build# sysupgrade /tmp/openwrt-ipq40xx-generic-qcom_ap-dk04.1-c1-squashfs-nand-sysupgrade.bin
Device qcom,ipq4019 not supported by this image
Supported devices: qcom,ap-dk04.1-c1
Image check failed.
I suggest always to use dumpimage -l and compare the working image with new image you have produced to double check it first. CLI sysupgrade --test does the check as well. QSDK openwrt has sysupgrade image with check routines to detect mandatory image components.