Search found 9 matches

by Ev Quink
Fri May 08, 2020 11:53 pm
Forum: ESP8266 boards
Topic: [SOLVED] Problem running latest GENERIC_1M firmware on Sonoff
Replies: 18
Views: 11962

Re: Problem running latest GENERIC_1M firmware on Sonoff

The root cause of this problem was with the way I was building the firmware - not in the firmware itself. When I built the firmware I used make board =GENERIC_1M rather than make BOARD =GENERIC_1M :oops: Unfortunately this defaults to building the GENERIC firmware rather than the GENERIC_1M firmware...
by Ev Quink
Fri May 08, 2020 1:30 am
Forum: ESP8266 boards
Topic: [SOLVED] Problem running latest GENERIC_1M firmware on Sonoff
Replies: 18
Views: 11962

Re: Problem running latest GENERIC_1M firmware on Sonoff

I found another clue that may help. Using my build from the latest repo (unmodified - the one that does not work) I see the following message in the serial terminal: Traceback (most recent call last): File "_boot.py", line 13, in <module> File "inisetup.py", line 45, in setup File "inisetup.py", lin...
by Ev Quink
Wed May 06, 2020 10:36 am
Forum: ESP8266 boards
Topic: [SOLVED] Problem running latest GENERIC_1M firmware on Sonoff
Replies: 18
Views: 11962

Re: Problem running latest GENERIC_1M firmware on Sonoff

Code: Select all

import uos
from flashbdev import bdev
print(esp.flash_size())
returns 1048576 on this board

So it seems like flashbdev.py is ok.

This only works if I also first do:

Code: Select all

import esp
Otherwise I get this:

Code: Select all

NameError: name 'esp' isn't defined
by Ev Quink
Wed May 06, 2020 3:02 am
Forum: ESP8266 boards
Topic: [SOLVED] Problem running latest GENERIC_1M firmware on Sonoff
Replies: 18
Views: 11962

Re: Problem running latest GENERIC_1M firmware on Sonoff

Ok - I figured out how to make it work but it would be good to understand what is happening here. In the V1.12 _boot.py we have: try: if bdev: uos.mount(bdev, '/') except OSError: import inisetup inisetup.setup() In the latest repo _boot.py has this: if bdev: try: uos.mount(bdev, "/") except: import...
by Ev Quink
Wed May 06, 2020 2:26 am
Forum: ESP8266 boards
Topic: [SOLVED] Problem running latest GENERIC_1M firmware on Sonoff
Replies: 18
Views: 11962

Re: Problem running latest GENERIC_1M firmware on Sonoff

Answering my own question here... I think this line from manifest.py pulls in all the files in the modules directory: freeze("$(PORT_DIR)/modules") I verified that my cloned master repo includes both the _boot.py and inisetup.py files so presumably they are getting pulled into the build. So I think ...
by Ev Quink
Wed May 06, 2020 1:38 am
Forum: ESP8266 boards
Topic: [SOLVED] Problem running latest GENERIC_1M firmware on Sonoff
Replies: 18
Views: 11962

Re: Problem running latest GENERIC_1M firmware on Sonoff

In which file would I find the include statements for inisetup.py and _boot.py? I did two "builds" if I am using that term correctly. These steps for V1.12: wget https://micropython.org/resources/source/micropython-1.12.tar.xz tar xf micrpython-1.12.tar.xz cd ~/micropython-1.12 make -C mpy-cross cd ...
by Ev Quink
Tue May 05, 2020 12:14 am
Forum: ESP8266 boards
Topic: [SOLVED] Problem running latest GENERIC_1M firmware on Sonoff
Replies: 18
Views: 11962

Re: Problem running latest GENERIC_1M firmware on Sonoff

Thanks for the reply. Yes I did start by erasing the flash using: esptool --port COM5 erase_flash
by Ev Quink
Mon May 04, 2020 8:12 pm
Forum: ESP8266 boards
Topic: [SOLVED] Problem running latest GENERIC_1M firmware on Sonoff
Replies: 18
Views: 11962

Re: Problem running latest GENERIC_1M firmware on Sonoff

I am guessing that what I am seeing may be an indication that the file system did not get set up correctly. As an experiment, I attempted to reconfigure the build to use FAT instead of LittleFS by editing the mpconfigboard.mk file. That file originally contained: LD_FILES = boards/esp8266_1m.ld MICR...
by Ev Quink
Fri May 01, 2020 12:48 am
Forum: ESP8266 boards
Topic: [SOLVED] Problem running latest GENERIC_1M firmware on Sonoff
Replies: 18
Views: 11962

[SOLVED] Problem running latest GENERIC_1M firmware on Sonoff

Hello, I have successfully built and run v1.12 firmware on both a Wemos D1 Mini and a Sonoff RF Rev2 board. When I build from the latest repo, I can successfully run it on the Wemos but not on the Sonoff. Using the latest build on the Sonoff, everything seems fine and I am able to boot, connect thro...