Comments (8)
1: Failed to mount ROMFS at 0xc2f14 0xc2f14
Take a look in ./build/
, you should see something like
-rw-rw-r--. 1 agreen agreen 901849 May 10 02:13 lws-esp32-factory.bin
When you flash it, are you flashing 901849 (or whatever it is thereabouts) bytes?
How old's your make
version?
from lws-esp32-factory.
Yes, I have, amongst others these (after a 'make clean' and 'make all').
drwxr-xr-x 7 frode frode 4,0K May 10 07:29 lwip
-rw-r--r-- 1 frode frode 881K May 9 20:21 lws-esp32-factory-1494354097.bin
-rw-r--r-- 1 frode frode 881K May 9 20:25 lws-esp32-factory-1494354342.bin
-rw-r--r-- 1 frode frode 165K May 9 20:27 lws-esp32-factory-1494354421.bin
-rw-r--r-- 1 frode frode 881K May 9 20:28 lws-esp32-factory-1494354537.bin
-rw-r--r-- 1 frode frode 1,1M May 9 20:39 lws-esp32-factory-1494355189.bin
-rw-r--r-- 1 frode frode 881K May 9 20:41 lws-esp32-factory-1494355279.bin
-rw-r--r-- 1 frode frode 165K May 9 20:45 lws-esp32-factory-1494355520.bin
-rw-r--r-- 1 frode frode 165K May 9 20:49 lws-esp32-factory-1494355750.bin
-rw-r--r-- 1 frode frode 165K May 10 07:29 lws-esp32-factory-1494394152.bin
-rw-r--r-- 1 frode frode 716K May 10 07:29 lws-esp32-factory.bin
-rwxr-xr-x 1 frode frode 3,6M May 10 07:29 lws-esp32-factory.elf
-rw-r--r-- 1 frode frode 2,5M May 10 07:29 lws-esp32-factory.map
drwxr-xr-x 2 frode frode 4,0K May 10 07:29 main
The flash process says:
Connecting....
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Configuring flash size...
Auto-detected Flash size: 4MB
Flash params set to 0x0220
Compressed 11744 bytes to 7510...
Wrote 11744 bytes (7510 compressed) at 0x00001000 in 0.1 seconds (effective 845.7 kbit/s)...
Hash of data verified.
Compressed 732976 bytes to 456520...
Wrote 732976 bytes (456520 compressed) at 0x00010000 in 8.6 seconds (effective 685.4 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 110...
Wrote 3072 bytes (110 compressed) at 0x00008000 in 0.0 seconds (effective 9129.3 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting...
My make version is 4.1, but note that I got everything a few minutes before it stopped responding. Did not notice any errors during make, and was able to connect to the AP and see page where I could upload the SSL files. I did some simple stability tests by sitting on F5, and everything worked perfectly. Then I, mistankenly, uploaded from SSL files, and shortly after that I ended up where I am now, where /factory.html no longer responds.
I have also tried now to delete the entire build directory, and have done a new 'make all', but still not able to access. When I connect or disconnect my computer to the AP I see that the ESP responds to those events:
I (2737) wifi: n:6 0, o:6 0, ap:6 1, sta:0 0, prof:6
I (2737) wifi: station: e0:94:67:f6:fc:ac join, AID=1, g, 20
I (355547) wifi: station: e0:94:67:f6:fc:ac leave, AID = 1
I (355547) wifi: n:6 0, o:6 0, ap:6 1, sta:0 0, prof:
from lws-esp32-factory.
This is a quite specific problem.... I dunno what the cause is yet but the reason is not ambiguous
-rw-r--r-- 1 frode frode 716K May 10 07:29 lws-esp32-factory.bin
the app should be around 900KB. The build itself is like this, ~700KB but then the build process concatenates on top the ROMFS, and a manifest, bringing it to 900KB. So if you are only flashing ~700KB, there has been no romfs added, and it has nothing to serve, so there is no mystery about the symptom end of it.
Are you literally building with make all flash monitor
or something else?
Edit: uploading the SSL bits is unrelated to the missing ROMFS bit, but note after you upload the certs, you must go to https://192.168.4.1 since it's no longer listening on port 80. make flash_erase
will get rid of the certs too... it's nothing to do with the actual problem about romfs concatenation process not happening.
My make is 4.2.1 FWIW.
from lws-esp32-factory.
Yes, I'm literally doing
make all flash monitor -j5
and have also done
make clean
and
make erase_flash
Any tips as to where I could check to see why the .bin isn't as big as it should? Is there a step somewhere that I can run manually to see what happens when appending the romfs part?
from lws-esp32-factory.
How about lose the -j5?
from lws-esp32-factory.
The concatenation bit is done by 'pack.img' target
https://github.com/warmcat/libwebsockets/blob/master/scripts/esp32.mk#L20
from lws-esp32-factory.
Ah! Dropping -j5 fixed it. Now it creates a .bin file of 881K, and I'm able to open /factory.html.
-rw-r--r-- 1 frode frode 881K May 10 20:43 lws-esp32-factory.bin
My guess is that -j5 causes the parts to be built in wrong order.
from lws-esp32-factory.
The latest -factory should work fine with -j n... make all flash monitor
or make flash monitor
should both be fine now too.
from lws-esp32-factory.
Related Issues (20)
- lws-esp32-factory/components/bootloader/Makefile.projbuild:37: *** multiple target patterns. Stop. HOT 3
- oto_choose_part will accept partition outside range HOT 2
- INFO: ota update of factory partition fails HOT 8
- lws-esp32-factory is always listed as dirty HOT 4
- Does it link on ESP32 HOT 2
- Connection terminates after approximetly 10 minutes HOT 3
- Minor: Missing "hard" for Git command in Readme HOT 1
- Lets Encrypt stops at first step
- tcp_connect: can only connect from state CLOSED
- Partition table too small for newer esp-idf HOT 4
- how to force enter app after first reboot HOT 7
- Updated alignment with esp-idf/mbedtls needed to build with latest esp-idf HOT 16
- websocket client example
- Error during make flash monitor HOT 2
- mbedtls_handshake: ssl ret -6900 state 8
- arduino-esp32 support ?
- multiple definition of api functions when using openssl api functions HOT 1
- build fail for lws-esp32-factory HOT 12
- Can this be used on esp8266 HOT 1
- Please give me an esp8266 program about LWS HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lws-esp32-factory.