sipeed / Maixduino

Arduino port on Maix board ( k210 )
https://maixduino.sipeed.com
Other
213 stars 93 forks source link

"json file signature verification failed" on Arduino boards file #85

Closed technoblogy closed 4 years ago

technoblogy commented 4 years ago

The Arduino IDE boards file for using Maixduino on the Arduino IDE is currently giving an error:

http://dl.sipeed.com/MAIX/Maixduino/package_Maixduino_k210_index.json file signature verification failed. File ignored.

This makes it impossible to develop programs with any of the Sipeed K210 RSIC-V boards, including the Maixduino, MAiX One Dock, and MAiX BiT.

Please can this be fixed as soon as possible, or alternatively explain how to fix it.

Thank you, David

technoblogy commented 4 years ago

As a workaround I was able to get it working again by getting the older package files off backup; these are:

package_Maixduino_k210_index.json
package_Maixduino_k210_index.json.sig.tmp

On a Mac they are in:

/Users/david/Library/Arduino15

where david is whatever your username is.

However, due to the file signature verification failure they'll get deleted if you go into the Arduino IDE's Boards Manager.

technoblogy commented 4 years ago

This is still a problem for me. Is anyone else getting this?

myuanz commented 4 years ago

This is still a problem for me. Is anyone else getting this?

I can't reproduce it, could you give the error message

technoblogy commented 4 years ago

I'm using this boards file in Arduino Preferences:

http://dl.sipeed.com/MAIX/Maixduino/package_Maixduino_k210_index.json

Every time I go into Boards Manager... I get the error:

http://dl.sipeed.com/MAIX/Maixduino/package_Maixduino_k210_index.json file signature verification failed. File ignored.

and my existing Maixduino files are deleted:

package_Maixduino_k210_index.json
package_Maixduino_k210_index.json.sig.tmp

so the Maixduino entries disappear from the Boards menu.

I'm using Arduino 1.8.9 on a MacBook Pro with macOS High Sierra 10.13.6.

myuanz commented 4 years ago

How about trying http://cn.dl.sipeed.com/MAIX/Maixduino/package_Maixduino_k210_index.json? BTW, could you give the error message when you visit http://dl.sipeed.com/MAIX/Maixduino/package_Maixduino_k210_index.json in browser.

technoblogy commented 4 years ago

How about trying http://cn.dl.sipeed.com/MAIX/Maixduino/package_Maixduino_k210_index.json?

Same problem:

http://cn.dl.sipeed.com/MAIX/Maixduino/package_Maixduino_k210_index.json file signature verification failed. File ignored.

BTW, could you give the error message when you visit http://dl.sipeed.com/MAIX/Maixduino/package_Maixduino_k210_index.json in browser.

There's no error message, but the behaviour is slightly different from other boards files. For example, if I go to:

https://files.seeedstudio.com/arduino/package_seeeduino_boards_index.json

it downloads a file package_seeeduino_boards_index.json, but when I go to:

http://dl.sipeed.com/MAIX/Maixduino/package_Maixduino_k210_index.json

it downloads a file package_Maixduino_k210_index.json.txt - in other words, it adds a ".txt" extension.

myuanz commented 4 years ago

I can not trigger your problem in 1.8.13. It seems that the old version can not deal HTTP 301.

Try 1.8.13?

technoblogy commented 4 years ago

OK I'll let you know.

technoblogy commented 4 years ago

I've upgraded to 1.8.13 and it seems OK now - thanks!