Finaly i found the point of issue...
And the first conclusion - it's not the problem if LEDE it's problem of OW/LEDE architect (or whatever)
So, this E392 has 2 modes (initial and after initialization)
By default in initial mode only 2 devices are enabled (CD and SDcard)
Then on initialization E392 is switching to working mode where by default additions devices are on (CD+SD+Modem+Net+PCdiag+Command) - mode AT^SETPORT="A1,A2;1,2,3,7,A1,A2"
this initial and second modes can be adjusted with AT commands, but unfortunately with limitation
You can't switch off CD (A1) in initial mode so, you can't disable mode swithing and suggested in post HERE
So there are 2 options to setup the initian mode of E392 -
- A1, A2 (CD + SDcard)
- A1 (CD)
In this case on boot process system will find your device (SDcard) and will make exroot, but on next steps will start usb-modeswitch and you'll get kernel panic (i suppose this, since it's impossible to login to system neither ssh nor web).
In this case on boot process system won't find your device (since only CD is enabled in initial mode) and will start with overlay in jffs2
So the solution can be somehow start usb-modeswitch before mount /overlay (but i'm not sure it's possible from point of architect)
Although, i found some workaround that probably can play. All below is my assumptions...
if you use soft reboot (i.e. run reboot command in shell) in this case E392 stays in initialized mode
then after reboot system finds SDcard and mount it to /overlay
and usb-modeswitch won't switch the modes (since mode is already switched)
So the workaround can be the following
- Switch E392 to option 2 (AT^SETPORT="A1;2,7,A2"
- System will start and mount /overlay from jffs2 partiotion
- White a script that runs on final step of system initialization (this script will check if /overlay is mounted from jfss2 of SDcard and execute "reboot" in case of jfss2
- After this reboot system will start with initialized E392 and /overlay will be mounted from SDcard
So, system will start twice, but will get pivot overlay from SDcard finaly
any ideas about such a scripts?