TFTP flashing SJA1110 on board S32G-VNP-RDB2 meets error:
Error code 2: Mode too long/not NULL terminated
according to "AN13185:Flashing Binaries to S32G-VNP-RDB2 Board"
3.2.4. Programming a binary into flash through TFTP
connect PC NIC with S32G-VNP-RDB2 P4, link ok:
bash-5.1$ ping -I eth0 192.168.0.200
PING 192.168.0.200 (192.168.0.200) from 192.168.0.100 eth0: 56(84) bytes of data.
64 bytes from 192.168.0.200: icmp_seq=1 ttl=255 time=0.308 ms
64 bytes from 192.168.0.200: icmp_seq=2 ttl=255 time=0.301 ms
64 bytes from 192.168.0.200: icmp_seq=3 ttl=255 time=0.534 ms
64 bytes from 192.168.0.200: icmp_seq=4 ttl=255 time=0.536 ms
64 bytes from 192.168.0.200: icmp_seq=5 ttl=255 time=0.406 ms
^C
--- 192.168.0.200 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4102ms
rtt min/avg/max/mdev = 0.301/0.417/0.536/0.103 ms
but TFTP can not work:
bash-5.1$ tftp 192.168.0.200 -c put ./flash_image.bin flash.bin
Error code 2: Mode too long/not NULL terminated
what's wrong with that?
Hi, @liujialu_2024
Thanks for the reply.
Sorry that I did not reproduce this issue from my board, I will continue checking it, would you please also share the size of your images that want to upload?
Also, I suggest checking the output of "tftp -v 192.168.0.200 -m binary -c put ./flash_image.bin flash.bin"
BR
Chenyin
Hi, @liujialu_2024
Thanks for the post.
Sorry that I did not produced such issues from my end, may I know if you could try the following command:
tftp -v 192.168.0.200 -c put ./flash_image.bin flash.bin to generate more logs.
BR
Chenyin