<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openmano-mpy/ports/esp8266/modules, branch master</title>
<subtitle>MicroPython source and hardware configuration for OpenMano</subtitle>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/'/>
<entry>
<title>esp8266/modules: Fix fs_corrupted() to use start_sec not START_SEC.</title>
<updated>2021-02-08T23:46:07+00:00</updated>
<author>
<name>Damien George</name>
</author>
<published>2021-02-08T23:42:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=c7aaee2b2ba0cb19d3b3deb6092e0bfe55d79052'/>
<id>c7aaee2b2ba0cb19d3b3deb6092e0bfe55d79052</id>
<content type='text'>
START_SEC was changed in e0905e85a7ad2961aa9192f6130565860e531ad3.

Also, update the error message to mention how to format the partition at
the REPL, and make the total message shorter to save a bit of flash.

Signed-off-by: Damien George &lt;damien@micropython.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
START_SEC was changed in e0905e85a7ad2961aa9192f6130565860e531ad3.

Also, update the error message to mention how to format the partition at
the REPL, and make the total message shorter to save a bit of flash.

Signed-off-by: Damien George &lt;damien@micropython.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>esp8266/modules/neopixel.py: Add timing param to NeoPixel constructor.</title>
<updated>2021-01-30T03:35:54+00:00</updated>
<author>
<name>Christopher Tse</name>
</author>
<published>2021-01-26T09:28:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=5c37e76e4f27cf3553adb67947c0a8e0a5500591'/>
<id>5c37e76e4f27cf3553adb67947c0a8e0a5500591</id>
<content type='text'>
This matches the esp32 port.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This matches the esp32 port.
</pre>
</div>
</content>
</entry>
<entry>
<title>esp32,esp8266: Remove "FAT" from warning message in inisetup.py.</title>
<updated>2020-11-18T05:26:19+00:00</updated>
<author>
<name>robert</name>
</author>
<published>2020-11-16T19:51:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=5af3c046c7bfc1108094e53aea8b612c2ff86fd4'/>
<id>5af3c046c7bfc1108094e53aea8b612c2ff86fd4</id>
<content type='text'>
Because FAT is not any more the only filesystem used.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Because FAT is not any more the only filesystem used.
</pre>
</div>
</content>
</entry>
<entry>
<title>ports: Add utime.gmtime() function.</title>
<updated>2020-09-18T06:25:36+00:00</updated>
<author>
<name>Damien George</name>
</author>
<published>2020-09-13T14:07:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=bd7af6151d605d3fc8f70cb9ddf45b2fd7881f08'/>
<id>bd7af6151d605d3fc8f70cb9ddf45b2fd7881f08</id>
<content type='text'>
To portably get the Epoch.  This is simply aliased to localtime() on ports
that are not timezone aware.

Signed-off-by: Damien George &lt;damien@micropython.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
To portably get the Epoch.  This is simply aliased to localtime() on ports
that are not timezone aware.

Signed-off-by: Damien George &lt;damien@micropython.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>esp8266: Change from FAT to littlefs v2 as default filesystem.</title>
<updated>2020-04-04T05:30:36+00:00</updated>
<author>
<name>Damien George</name>
</author>
<published>2020-03-26T11:35:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=e0905e85a7ad2961aa9192f6130565860e531ad3'/>
<id>e0905e85a7ad2961aa9192f6130565860e531ad3</id>
<content type='text'>
This commit changes the esp8266 boards to use littlefs v2 as the
filesystem, rather than FAT.  Since the esp8266 doesn't expose the
filesystem to the PC over USB there's no strong reason to keep it as FAT.
Littlefs is smaller in code size, is more efficient in use of flash to
store data, is resilient over power failure, and using it saves about 4k of
heap RAM, which can now be used for other things.

This is a backwards incompatible change because all existing esp8266 boards
will need to update their filesystem after installing new firmware (eg
backup old files, install firmware, restore files to new filesystem).

As part of this commit the memory layout of the default board (GENERIC) has
changed.  It now allocates all 1M of memory-mapped flash to the firmware,
so the filesystem area starts at the 2M point.  This is done to allow more
frozen bytecode to be stored in the 1M of memory-mapped flash.  This
requires an esp8266 module with 2M or more of flash to work, so a new board
called GENERIC_1M is added which has the old memory-mapping (but still
changed to use littlefs for the filesystem).

In summary there are now 3 esp8266 board definitions:
- GENERIC_512K: for 512k modules, doesn't have a filesystem.
- GENERIC_1M: for 1M modules, 572k for firmware+frozen code, 396k for
  filesystem (littlefs).
- GENERIC: for 2M (or greater) modules, 968k for firmware+frozen code,
  1M+ for filesystem (littlefs), FAT driver also included in firmware for
  use on, eg, external SD cards.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This commit changes the esp8266 boards to use littlefs v2 as the
filesystem, rather than FAT.  Since the esp8266 doesn't expose the
filesystem to the PC over USB there's no strong reason to keep it as FAT.
Littlefs is smaller in code size, is more efficient in use of flash to
store data, is resilient over power failure, and using it saves about 4k of
heap RAM, which can now be used for other things.

This is a backwards incompatible change because all existing esp8266 boards
will need to update their filesystem after installing new firmware (eg
backup old files, install firmware, restore files to new filesystem).

As part of this commit the memory layout of the default board (GENERIC) has
changed.  It now allocates all 1M of memory-mapped flash to the firmware,
so the filesystem area starts at the 2M point.  This is done to allow more
frozen bytecode to be stored in the 1M of memory-mapped flash.  This
requires an esp8266 module with 2M or more of flash to work, so a new board
called GENERIC_1M is added which has the old memory-mapping (but still
changed to use littlefs for the filesystem).

In summary there are now 3 esp8266 board definitions:
- GENERIC_512K: for 512k modules, doesn't have a filesystem.
- GENERIC_1M: for 1M modules, 572k for firmware+frozen code, 396k for
  filesystem (littlefs).
- GENERIC: for 2M (or greater) modules, 968k for firmware+frozen code,
  1M+ for filesystem (littlefs), FAT driver also included in firmware for
  use on, eg, external SD cards.
</pre>
</div>
</content>
</entry>
<entry>
<title>all: Reformat C and Python source code with tools/codeformat.py.</title>
<updated>2020-02-27T23:33:03+00:00</updated>
<author>
<name>Damien George</name>
</author>
<published>2020-02-27T04:36:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=69661f3343bedf86e514337cff63d96cc42f8859'/>
<id>69661f3343bedf86e514337cff63d96cc42f8859</id>
<content type='text'>
This is run with uncrustify 0.70.1, and black 19.10b0.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is run with uncrustify 0.70.1, and black 19.10b0.
</pre>
</div>
</content>
</entry>
<entry>
<title>esp8266/modules/ntptime.py: Add comment about configuring NTP host.</title>
<updated>2020-01-31T12:54:11+00:00</updated>
<author>
<name>Damien George</name>
</author>
<published>2020-01-31T12:54:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=e3ff52863ba927b75fce1b219145f921134b49f6'/>
<id>e3ff52863ba927b75fce1b219145f921134b49f6</id>
<content type='text'>
The ability to change the host is a frequently requested feature, so
explicitly document how it can be achieved using the existing code.

See issues #2121, #4385, #4622, #5122, #5536.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The ability to change the host is a frequently requested feature, so
explicitly document how it can be achieved using the existing code.

See issues #2121, #4385, #4622, #5122, #5536.
</pre>
</div>
</content>
</entry>
<entry>
<title>esp8266/modules: Fix AttributeError in _boot.py if flash not formatted.</title>
<updated>2020-01-14T12:53:49+00:00</updated>
<author>
<name>JensDiemer</name>
</author>
<published>2020-01-09T15:33:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=c14ff6194c224190c7e6787a2bffbdbb495be4b4'/>
<id>c14ff6194c224190c7e6787a2bffbdbb495be4b4</id>
<content type='text'>
Prior to this commit, if the flash filesystem was not formatted then it
would error: "AttributeError: 'FlashBdev' object has no attribute 'mount'".
That is due to it not being able to detect the filesystem on the block
device and just trying to mount the block device directly.

This commit fixes the issue by just catching all exceptions.  Also it's not
needed to try the mount if `flashbdev.bdev` is None.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Prior to this commit, if the flash filesystem was not formatted then it
would error: "AttributeError: 'FlashBdev' object has no attribute 'mount'".
That is due to it not being able to detect the filesystem on the block
device and just trying to mount the block device directly.

This commit fixes the issue by just catching all exceptions.  Also it's not
needed to try the mount if `flashbdev.bdev` is None.
</pre>
</div>
</content>
</entry>
<entry>
<title>extmod/webrepl: Move webrepl scripts to common place and use manifest.</title>
<updated>2019-12-20T01:59:13+00:00</updated>
<author>
<name>Jim Mussared</name>
</author>
<published>2019-10-21T04:55:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=7ce1e0b1dc466e48606164aad223c81c93a9cea2'/>
<id>7ce1e0b1dc466e48606164aad223c81c93a9cea2</id>
<content type='text'>
Move webrepl support code from ports/esp8266/modules into extmod/webrepl
(to be alongside extmod/modwebrepl.c), and use frozen manifests to include
it in the build on esp8266 and esp32.

A small modification is made to webrepl.py to make it work on non-ESP
ports, i.e. don't call dupterm_notify if not available.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Move webrepl support code from ports/esp8266/modules into extmod/webrepl
(to be alongside extmod/modwebrepl.c), and use frozen manifests to include
it in the build on esp8266 and esp32.

A small modification is made to webrepl.py to make it work on non-ESP
ports, i.e. don't call dupterm_notify if not available.
</pre>
</div>
</content>
</entry>
<entry>
<title>esp8266/modules/flashbdev.py: Support extended block protocol.</title>
<updated>2019-11-07T07:43:37+00:00</updated>
<author>
<name>Damien George</name>
</author>
<published>2019-11-07T07:43:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=6eee5413ff10a5e60ffd797d78a090c7edc6268e'/>
<id>6eee5413ff10a5e60ffd797d78a090c7edc6268e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
