-
Notifications
You must be signed in to change notification settings - Fork 23
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
xxd
is in vim-common
and some esptool.py
quirks
#15
Comments
Thank you for the report.... I've always thought that xxd was part of some default binary utilities package, but apparently not. When I wrote the installation guide for this I booted up a virgin debian-8.7.1-i386-netinst and installed only the packages required to get all of the cpm8266 pieces in place. (except for "joe" that still after all this years is my non-gui text editor of choice). It seems that the Deb8 netinst adds vim by default since that's where I got my xxd from as well. I'll have to add that as a prerequisite to the installation guide unless I can find an easy way to get rid of that dependency. I'm only using it for the deskew/deinterleave of the disk images. When I started this project I also used the version 1.2 of the esptool, and back then I had the disk images put at even 0x40000 intervals in the flash. I later went over to the 2.0 esptool that compresses the data sent to the esp for flashing which gives a considerable reduction of the time it takes to upload & flash the entire chip. When I started doing the wifi integration I squeezed the disk images together in the flash in order to not waste any space. The disks are 256256 (0x3e900) bytes so they end up at some oddish places in the flash and seems like the 1.2 esptool doesn't like that. I'll change the code and Makefile to have the disks placed at locations more agreeable to the 1.2. |
As reported in #15 the version 1.2 of esptool.py wont write to non-sector aligned addresses.
Deskewing ... Thanks for the fixes!
Yayayayyy... \o/ |
I actually have added a no-skew option in my diskdefs, but requiring people to hack into files owned by root didn't seems like a good idea. I first made a deskewer by using dd to move the file sector-by-sector into a new file, but that was incredibly slow. Converting the file to hex and manipulating it a bash array and then convert it back is like 10x the speed. The idea of using python is a very good one! - unfortunately I haven't written a single line of python during my 40 years of coding, so it would be major undertaking for me. Can easily do it in golang, node or C though.... If you're a pythonista and could easily whip up a deskewer in it I'd love to add it as a contribution to this project. :-) |
After thinking a while longer... The deskewing script is hard coded for the current disk format. That would need changes on every change of the diskdef used in Maybe adding |
That is a possible solution as well, but it would introduce a dependency on gcc which is doesn't have today. |
On Debian9, |
I had to install the package
vim-common
(on Debian8/AMD64) to satisfy theMakefile
's wish to findxxd
....there seems not to be a different source for
xxd
... :-/All
make
targets except the ones for uploading:...so with
xxd
from packagevim-common
it looks ok now.I'm still stuck with uploading:
Is my
esptool.py
too old?The Minion I'm trying to flash is a NodeMCU-Devboard-v0.9 (ESP-12 + CH340) and I don't think he's the culprit.
The text was updated successfully, but these errors were encountered: