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

raspberrypi espressif board problem #441

Closed
nge88 opened this issue Jan 7, 2016 · 5 comments
Closed

raspberrypi espressif board problem #441

nge88 opened this issue Jan 7, 2016 · 5 comments
Assignees
Labels
Milestone

Comments

@nge88
Copy link

nge88 commented Jan 7, 2016

Hi,

I've successfully installed platformio on raspberry pi (running on raspbian, I've tried both with Wheezy and Jessie) but I cannot install espressif boards:

platformio platforms install espressif
Installing toolchain-xtensa package:
Downloading [####################################] 100% 2% 00:03:44
Unpacking [------------------------------------] 0%
Error: Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/platformio/main.py", line 97, in main
cli(None, None, None)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 700, in call
return self.main(_args, *_kwargs)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 680, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1027, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1027, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 873, in invoke
return ctx.invoke(self.callback, *_ctx.params)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 508, in invoke
return callback(_args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/platformio/commands/platforms.py", line 40, in platforms_install
if p.install(with_package, without_package, skip_default_package):
File "/usr/local/lib/python2.7/dist-packages/platformio/platforms/base.py", line 326, in install
pm.install(name)
File "/usr/local/lib/python2.7/dist-packages/platformio/pkgmanager.py", line 113, in install
if self.unpack(dlpath, pkg_dir):
File "/usr/local/lib/python2.7/dist-packages/platformio/pkgmanager.py", line 52, in unpack
return fu.start()
File "/usr/local/lib/python2.7/dist-packages/platformio/unpacker.py", line 103, in start
self._unpacker.extract_item(item, self._dest_dir)
File "/usr/local/lib/python2.7/dist-packages/platformio/unpacker.py", line 36, in extract_item
self._afo.extract(item, dest_dir)
File "/usr/lib/python2.7/tarfile.py", line 2107, in extract
self._extract_member(tarinfo, os.path.join(path, tarinfo.name))
File "/usr/lib/python2.7/tarfile.py", line 2183, in _extract_member
self.makefile(tarinfo, targetpath)
File "/usr/lib/python2.7/tarfile.py", line 2224, in makefile
copyfileobj(source, target)
File "/usr/lib/python2.7/tarfile.py", line 265, in copyfileobj
shutil.copyfileobj(src, dst)
File "/usr/lib/python2.7/shutil.py", line 49, in copyfileobj
buf = fsrc.read(length)
File "/usr/lib/python2.7/tarfile.py", line 824, in read
buf += self.fileobj.read(size - len(buf))
File "/usr/lib/python2.7/tarfile.py", line 742, in read
return self.readnormal(size)
File "/usr/lib/python2.7/tarfile.py", line 751, in readnormal
return self.fileobj.read(size)
File "/usr/lib/python2.7/gzip.py", line 268, in read
self._read(readsize)
File "/usr/lib/python2.7/gzip.py", line 315, in _read
self._read_eof()
File "/usr/lib/python2.7/gzip.py", line 350, in _read_eof
crc32 = read32(self.fileobj)
File "/usr/lib/python2.7/gzip.py", line 25, in read32
return struct.unpack("<I", input.read(4))[0]
error: unpack requires a string argument of length 4

Any thoughs?
Thank you

nge88

@ivankravets
Copy link
Member

@valeros could you repack Espressif toolchain for ARM?

@ivankravets ivankravets added this to the 2.7.2 milestone Jan 7, 2016
@ivankravets ivankravets added the bug label Jan 7, 2016
@valeros
Copy link
Member

valeros commented Jan 7, 2016

Hi @nge88!
Please update package via platformio update
Thanks!

@nge88
Copy link
Author

nge88 commented Jan 8, 2016

Hi @valeros
Thank you, now platform espressif is installed; it even compile the project (via platformio run)
But if I try any upload to board i get this error:

sudo platformio run --target upload

[Fri Jan 8 08:45:46 2016] Processing esp12e (platform: espressif, board: esp12e, framework: arduino)

Installing tool-scons package:
Already installed
Installing toolchain-xtensa package:
Already installed
Installing tool-esptool package:
Already installed
Installing tool-mkspiffs package:
Error: The package 'tool-mkspiffs' is not available for your system 'linux_armv6l'

Thank you so much
nge88

@valeros
Copy link
Member

valeros commented Jan 8, 2016

Sorry @nge88, tool-mkspiffs for ARM was missed.
Please try to upload firmware again! Thanks!

@nge88
Copy link
Author

nge88 commented Jan 8, 2016

Ok it's working!!
Thank you for your fast support

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants