Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] fix aero_upload #11075

Closed
wants to merge 3 commits into from
Closed

[WIP] fix aero_upload #11075

wants to merge 3 commits into from

Conversation

dagar
Copy link
Member

@dagar dagar commented Dec 19, 2018

@dagar
Copy link
Member Author

dagar commented Dec 19, 2018

@xrb936 could you give this a try?

@xrb936
Copy link

xrb936 commented Dec 19, 2018

@dagar Still the same error...

@dagar
Copy link
Member Author

dagar commented Dec 19, 2018

Can you post the full output? It should be a slightly different error. I'm away from home and unable to test this directly right now. The plan is to have an intel aero on a hardware test rack in the near future.

@xrb936
Copy link

xrb936 commented Dec 19, 2018

I copied the py file to the scripts folder, now it can upload to drone successfully. However I have a new error now:

$ make intel_aerofc-v1_default upload
ninja: Entering directory `/cygdrive/c/PX4/home/Firmware/build/intel_aerofc-v1_default'
[3/4] uploading px4
Copying files to Aero board ([email protected])...
[email protected]'s password:
intel_aerofc-v1_default.elf 100% 13MB 17.4MB/s 00:00
px_uploader.py 100% 36KB 2.9MB/s 00:00
[email protected]'s password:
Linux MECLab-AERO 4.4.76-aero-1.2 #1 SMP PREEMPT Thu Dec 21 09:55:38 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

BIOS_VERSION = Aero-01.00.16
OS_VERSION = Ubuntu 16.04.5 LTS"
AIRMAP_VERSION = unknown
FPGA_VERSION = 0xc2
AeroFC firmware version = 1.6.5

/dev/ttyS1:
Updating firmware on AeroFC
Traceback (most recent call last):
File "/root/px_uploader.py", line 880, in
main()
File "/root/px_uploader.py", line 736, in main
fw = firmware(args.firmware)
File "/root/px_uploader.py", line 122, in init
self.desc = json.load(f)
File "/usr/lib/python2.7/json/init.py", line 291, in load
**kw)
File "/usr/lib/python2.7/json/init.py", line 339, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
Firmware updated
Restarting router
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
Finished.

@dagar
Copy link
Member Author

dagar commented Dec 20, 2018

Oh it looks like the wrong file. It should be the .px4 file, not the .elf.

@xrb936
Copy link

xrb936 commented Dec 20, 2018

@dagar Thanks. So how can I get the px4 file? I have one in the folder but it is only 800KB.

@dagar dagar added this to the Release v1.9.0 milestone Jan 8, 2019
@stale stale bot closed this Jul 24, 2019
@julianoes julianoes reopened this Jul 25, 2019
@stale stale bot removed the Admin: Wont fix label Jul 25, 2019
@PX4 PX4 deleted a comment from stale bot Jul 25, 2019
@PX4 PX4 deleted a comment from stale bot Jul 25, 2019
@hamishwillee
Copy link
Contributor

@julianoes FYI only, Intel are no longer supporting aero. We put a note to this effect in master.

@stale
Copy link

stale bot commented Oct 23, 2019

This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions.

@stale stale bot added the stale label Oct 23, 2019
@dagar dagar closed this Jan 22, 2020
@julianoes julianoes deleted the pr-aero_upload_fix branch January 23, 2020 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upload Error: px_uploader.py: No such file or directory
4 participants