ssh close connection after insert password

vbextreme
 
Posts: 11
Joined: Fri May 26, 2017 7:59 am

ssh close connection after insert password

Fri May 26, 2017 8:05 am

I access on vocore2 over luci without problems but if I try to connect over ssh the connection is closed afeter insert a password. Why?

Vonger
 
Posts: 896
Joined: Sun Oct 19, 2014 6:00 am

Re: ssh close connection after insert password

Fri May 26, 2017 2:20 pm

weird issue, try mtk openwrt firmware, I guess it might be MT76 wifi driver issue.
link is here: http://vonger.cn/misc/vocore2/vocore2.mtk.bin

vbextreme
 
Posts: 11
Joined: Fri May 26, 2017 7:59 am

Re: ssh close connection after insert password

Sat May 27, 2017 7:32 am

The board does not start anymore, this is the second time I turn it on and I have not made any changes yet.

Is the firmware good for the lite version?

Vonger
 
Posts: 896
Joined: Sun Oct 19, 2014 6:00 am

Re: ssh close connection after insert password

Sat May 27, 2017 9:40 am

You will need a USB2TTL to recover the firmware, please check vocore.io/v2.html

vbextreme
 
Posts: 11
Joined: Fri May 26, 2017 7:59 am

Re: ssh close connection after insert password

Sat May 27, 2017 10:09 am

ok, successfull
For those who have similar problems.
download vocore2 lite
connect serial usb
install ckermit
execute kermit

Code: Select all
> set line /dev/ttyUSB0
> set speed 115200
> set handshake none
> set flow-control none
> set carrier-watch off
> robust
> connect

Please choose the operation:
   0: Load system code then write to Flash via SERIAL.
   1: Load system code to SDRAM via TFTP.
   2: Load system code then write to Flash via TFTP.
   3: Boot system code via Flash (default).
   4: Entr boot command line interface.
   5: Load system code then write to Flash via USB Storage.
   7: Load Boot Loader code then write to Flash via Serial.
   8: Start Web Server to load system code.
   9: Load Boot Loader code then write to Flash via TFTP.

> 0

0: System Load Linux then write to Flash via Serial.
## Ready for binary (kermit) download to 0x80100000 at 115200 bps...

press key Ctrl+\ c

> send /home/<username>/Downloads/<firmware>.bin

> q


thanks for support

[edit]
add set carrier-watch off
[/edit]
Last edited by vbextreme on Sun May 28, 2017 8:07 pm, edited 1 time in total.

vbextreme
 
Posts: 11
Joined: Fri May 26, 2017 7:59 am

Re: ssh close connection after insert password

Sun May 28, 2017 7:55 am

Once again broken.
While I was exploring the filesystem i started getting format execute error.
Try to close ssh and reconnect with same problem, connection close after insert password.
Power off and power on, now not view vocore2 wifi.
crestfallen :(

vbextreme
 
Posts: 11
Joined: Fri May 26, 2017 7:59 am

Re: ssh close connection after insert password

Sun May 28, 2017 8:30 pm

I have found two issues
First::
usb 2-1 It continues to make mistakes
fix temporary
Code: Select all
# echo 'rmmod ohci_platform' >> /etc/rc.local


Second::
Same time can't connect over wifi
this is original rc.local
Code: Select all
uci set wireless.sta.disabled=0
uci commit
/etc/init.d/network restart
sleep 10
uci set wireless.sta.disabled=1
uci commit

It does not seem to make much sense
edit in
Code: Select all
uci set wireless.sta.disabled=1
uci commit
/etc/init.d/network restart
rmmod ohci_platform

save and reboot, now wifi work.

You should also delete those rows and create a specific script to perform the task
Here you can find a good starting point

for example (not tested)
/root/try-sta.sh
Code: Select all
uci set wireless.sta.disabled=0
uci commit
/etc/init.d/network restart
TIMEOUT=10
SLEEP=1
sta_err=0
 
while [ $(iwinfo | grep -c "ESSID: unknown") -ge 1 ]; do
   let sta_err=$sta_err+1
   if [ $((sta_err * SLEEP)) -ge $TIMEOUT ]; then
       uci set wireless.sta.disabled=1
       uci commit
       /etc/init.d/network restart
       break
   fi
   sleep $SLEEP
done


and in rc.local add
Code: Select all
/root/try-sta.sh


It would be useful to blink the LED during this phase

vbextreme
 
Posts: 11
Joined: Fri May 26, 2017 7:59 am

Re: ssh close connection after insert password

Tue May 30, 2017 1:50 pm

Vocore2-lite is completely broken.
I try to download source code and try to build with this tutorial, but return error
Code: Select all
gdate.c: In function 'g_date_strftime':
gdate.c:2497:7: error: format not a string literal, format string not checked [-Werror=format-nonliteral]
       tmplen = strftime (tmpbuf, tmpbufsize, locale_format, &tm);
       ^~~~~~


Download LEDE, build and upload firmware, but after few minutes get strange and randomly charater from serial. Network over ap is very very slow and I can't enable AP+STA


In this situation I don't understand if is broken hardware or software.

Return to VoCore2/Lite/Ultimate

Who is online

Users browsing this forum: No registered users and 37 guests