Dear
I have tried to test with OTA upgrade.
1. After running in python the file build/fwupgrade/gen_fw_upgrade_img.py with default config fw_upgrade.xml
Output is ota.bin
2. Create ftp server and copy ota.bin to the server (server IP 192.168.1.44, user name lts, pass xxxxxxxxxxx). Test server is OK, works fine.
3. on QCLI demo, check interface and network is OK:
----------------------------------------------------------------
Net> ifconfig
Net: wlan0: DOWN
Net: Phy Address: 02:03:7F:99:92:20
Net: IPv4: 0.0.0.0 Subnet Mask: 255.0.0.0 Default Gateway: 0.0.0.0
Net: IPv6 Link-local Address ..... : FE80::203:7FFF:FE99:9220/64
Net: IPv6 Global Address ......... : ::
Net: IPv6 Default Gateway ....... : ::
Net: IPv6 Global Address 2 ....... : ::
Net: DNS Server: 192.168.1.1
Net: wlan1: UP
Net: Phy Address: 00:03:7F:99:92:20
Net: IPv4: 192.168.1.47 Subnet Mask: 255.255.255.0 Default Gateway: 192.168.1.1
Net: IPv6 Link-local Address ..... : FE80::203:7FFF:FE99:9220/64
Net: IPv6 Global Address ......... : ::
Net: IPv6 Default Gateway ....... : ::
Net: IPv6 Global Address 2 ....... : ::
Net: DNS Server: 192.168.1.1
Net> ping 192.168.1.44
Net>
Net: 64 bytes from 192.168.1.44: seq
---------------------------------------------------------------------------
4. Run ftp upgrade command:
FwUp>
FwUp: 0 0
FwUp: 1 0
FwUp: 2 0
FwUp: 4 0
FwUp: 4 1017
FwUp: Firmware Upgrade Image Download Failed ERR:1017
-----------------------------------------------------------------
Result: can not upgrade, Download failed.
Question:
- Why is it failed ?
I have tested on ftp get command on windows 10, it works fine.
---------------------------------------------------------------------
C:\Users\son_>ftp
ftp> open 192.168.1.44 21
Connected to 192.168.1.44.
220 (vsFTPd 3.0.3)
200 Always in UTF8 mode.
User (192.168.1.44:(none)): lts
331 Please specify the password.
Password:
230 Login successful.
ftp> get ota.bin
200 PORT command successful. Consider using PASV.
150 Opening ASCII mode data connection for ota.bin (785 bytes).
226 Transfer complete.
--------------------------------------------------------------------------------------
- What is full command to ftp upgrade, can you give some examples?
- Why QCA does not use tftp upgrade command?
Thanks a lot in advance
Sincerely
Le
--------------------------------------------------------------
Update:
It downloaded fine.
But tried http upgrade command, it failed again:
FwUp> http wlan1 100:192.168.1.44:80 ota.bin
FwUp>
FwUp: 0 0
FwUp: 1 0
FwUp: 2 0
FwUp: 4 0
FwUp: 4 1017
FwUp: Firmware Upgrade Image Download Failed ERR:1017
-------------------------------------
This is current FW descriptor
FwUp: Active FWD: Current index:0, present:2
FwUp: FWD 0
FwUp: Magic: 0x54445746
FwUp: Rank: 0x1
FwUp: Version: 0x1
FwUp: Status: 0x1
FwUp: Total Images: 0x5
FwUp: Image ID: 0xA
FwUp: Image Version: 0x0
FwUp: Image Start: 0x13000
FwUp: Image Size: 0x18B000
FwUp: Image ID: 0xB
FwUp: Image Version: 0x0
FwUp: Image Start: 0x19E000
FwUp: Image Size: 0x15000
FwUp: Image ID: 0xD
FwUp: Image Version: 0x0
FwUp: Image Start: 0x1B3000
FwUp: Image Size: 0x1A000
FwUp: Image ID: 0x5
FwUp: Image Version: 0x0
FwUp: Image Start: 0x3000
FwUp: Image Size: 0x10000
FwUp: Image ID: 0x81
FwUp: Image Version: 0x0
FwUp: Image Start: 0x1000
FwUp: Image Size: 0x2000
FwUp:
FwUp: FWD 1
FwUp: Magic: 0xFFFFFFFF
FwUp: Rank: 0xFFFFFFFF
FwUp: Version: 0xFFFFFFFF
FwUp: Status: 0xFF
FwUp: Total Images: 0xFF
FwUp:
FwUp: FWD 2
FwUp: Magic: 0xFFFFFFFF
FwUp: Rank: 0xFFFFFFFF
FwUp: Version: 0xFFFFFFFF
FwUp: Status: 0xFF
FwUp: Total Images: 0xFF
FwUp:
---------------------------------------------------------------------------
Question: Why it failed on both FTP and HTTP upgrades?
Hi,
Can you please confirm if you flashed initial image on the device using JTAG or USB? For OTA to succeed you need to have 2 filesystem partitions. In the FWD dump you provided I see only primary filesystem partition but secondary filesystem partition is missing. OTA will succeed when your FWD contains "Image ID: 0x80". When the device is flashed through JTAG both the filesystem partitions are created by default. Please flash initial image onto device using JTAG and then try OTA. If you are flashing device through USB, please set below environment variable before you flash the device.
"set FS2IMG=KEEP"
Hi
I flashed the initial image with USB.
I will try "set FS2IMG=KEEP"
Thanks
Le
Hey
I have tried to recompile and use JTAG flash. It works fine and JTAG flash is succeeded.
But the problem is that after the flashing, I do not see the difference: it flashed only 1 file system (FWD 0), two other file systems are still empty. It means it could not OTA upgrade.
---------------------------------------------------------------------------------------------------------------
Please let me know what I should do now to be able OTA upgrade ?
Thanks a lot in advance.
Sincerely
Le
Hi Le,
Yes . As told you before your FWD should coantain both the filesystem means Image ID 0x5(primary filesytem) and secondary image ID 0x80(secondary filesytem) for OTA upgrade. Now you can see your FWD0 conatins image id 0x80 after JTAG flashing , which was missing previously.
Hey
Thanks for quick response. I have tried to follow your advice and carried out OTA FTP upgrage. But it continues fails:
-------------------------------------------------
FwUp>
-------------------------------------------------------
I am not sure that error it is.
I have not tried HTTP upgrade yet.
Thanks
Le
Hi ,
what is the size of your ota.bin? Have you copied all the other bin files(Quartz_HASHED.elf,"ioe_ram_m0_threadx_ipt.mbn,"wlan_fw_img.bin) to target\build\tools\fwupgrade\ folder and also have you changed format value to 2 in fw_upgrade.xml for full upgrade before running , python gen_fw_upgrade_img.py -–xml fw_upgrade.xml -–output ota.bin to genertae your ota.bin .
If not , please do . I think you are only copying your ota.bin to ftp server folder means doing full upgrade.
Regards
Jyotiranjan
Dear Jyotiranjan
>what is the size of your ota.bin?
ota.bin is quite small, because I set format is 1, thus it is config file.
>Have you copied all the other bin files(Quartz_HASHED.elf,"ioe_ram_m0_threadx_ipt.mbn,"wlan_fw_img.bin) to target\build\tools\fwupgrade\ >folder and also have you changed format value to 2 in fw_upgrade.xml for full upgrade before running
I have copied all these file and set format to 1 in fw_upgrade.xml
I have not rried yet with full upgrade image file.
I have tried with HTTP, not since the same error as above. But it shows as following (wating for about 10 min), and has not shown upgrade complet message.
-------------------------------------
Hi,
Can you please try the same with ftp and update.
This is FWD dumping after EDL:
----------------------------------------------
--------------------------------------------
You tried by http or ftp ?
Can you please first set the enviornment varibale like below and then next flash by USB to get FS2 image ID.
set FS2IMG=ERASE
After that please check, if you are able to get img id 0x80 or not?
Also use wlan0 and flag value as 0 for your command. Means connect to AP over wlan0 .
ftp wlan0 lts:[email protected]:21 ota.bin 0
JTAG issue-
Have you done proper jumper connection for JATG?
Also you can add below lines in your flash.bat for JTAG flashing .
+ DEL /F output\firmware_table.bin
+ DEL /F output\generated_partition_table.xml
+ DEL /F output\generated_fwd_table.xml
Regards
Jyotiranjan
Dear
Thanks for your email.
1. This is a typical error:
Is OTA works fine , if you do not use AT . Means only by wlan .
Hi Son,
The ERR:1017 seems caused because there is no secondary filesystem partition.
For OTA upgrade, the secondary filesystem should exist at that time.
It seems you're flashing image by USB, right?
Following command will set default FS2 partition which remove the ERR:1017.
@Flash image with secondary filesystem partition
set FS2IMG=ERASE
set FS2SZ=64
python ..\..\..\..\..\build\tools\flash\qflash.py --comm xx
Thanks
BR,
Jayden
i update my IP Address, 192.168.1.1 and suddenly i can't access anymore, Can please teach me how to fix this?
Could you briefly describe the issue ?
What is the error you are observing and what setps have you followed?