Can't login with ssh to cubox-i4 installation using wireless

This forum is for topics dealing with problems with software specifically in the ARMv7h repo.

Can't login with ssh to cubox-i4 installation using wireless

Postby tuxx » Tue Sep 02, 2014 4:56 am

Hi all,

I just installed latest archlinuxarm on a cubox-i4 pro. I am using netctl (I have disabled systemd-networkd running by default in latest image) to configure network connections. I am testing wireless configuration right now with wpa and dhcp and my problem is that I can't have ssh access from my archlinux desktop pc.

I try to connect, it asks me for my password, i type it and press enter and it stays there forever. However network works (i am able to run a web interface i run on my cubox).

Do you have an idea on what is going wrong with the combo wireless/ssh?

Thank you in advance.
tuxx
 
Posts: 45
Joined: Thu May 15, 2014 1:07 pm

Re: Can't login with ssh to cubox-i4 installation using wire

Postby tuxx » Tue Sep 16, 2014 6:50 pm

Hi,

I have been trying to find out the cause of the ssh hanging while connecting with wireless/netctl. Here is the debugging info after running ssh with -vvv:

http://pastebin.com/eFVWK6d9

Please see below the debugging info after giving the password:

$this->bbcode_second_pass_code('', 'root@192.168.1.147's password:
debug3: packet_send2: adding 64 (len 54 padlen 10 extra_pad 64)
debug2: we sent a password packet, wait for reply
debug1: Authentication succeeded (password).
Authenticated to 192.168.1.147 ([192.168.1.147]:22).
debug1: channel 0: new [client-session]
debug3: ssh_session2_open: channel_new: 0
debug2: channel 0: send open
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug2: callback start
debug2: fd 3 setting TCP_NODELAY
debug3: packet_set_tos: set IP_TOS 0x10
debug2: client_session2_setup: id 0
debug2: channel 0: request pty-req confirm 1
debug2: channel 0: request shell confirm 1
debug2: callback done
debug2: channel 0: open confirm rwindow 0 rmax 32768
debug2: client_check_window_change: changed
debug2: channel 0: request window-change confirm 0')

I have spent hours googling and it seems that it's a broadcom related bug, existing for many years. Do you have any idea on how i can solve my problem?

Thank you in advance.
tuxx
 
Posts: 45
Joined: Thu May 15, 2014 1:07 pm

Re: Can't login with ssh to cubox-i4 installation using wire

Postby pepedog » Tue Sep 16, 2014 7:13 pm

The things I have gleaned about this flaky chip-
Keep to channel 11 or under, it ignores crda having "world" built in firmware as country
Connect at 54g
Don't run Bluetooth, it degrades wifi
I will try myself tomorrow
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Can't login with ssh to cubox-i4 installation using wire

Postby pepedog » Tue Sep 16, 2014 8:29 pm

Tried it, I can ssh in ok. Trawl thru /etc/systemd to make sure no other network starts.
I used wifi-menu to configure and systemctl enable netctl-auto@wlan0 to start.
It's slow and gets lots of errors, speed comes in fits and starts. It's rubbish.
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Can't login with ssh to cubox-i4 installation using wire

Postby tuxx » Wed Sep 17, 2014 6:29 am

Thanks for your reply. I have made sure that it's the only network running but still no luck. With ethernet everything is ok though.
tuxx
 
Posts: 45
Joined: Thu May 15, 2014 1:07 pm

Re: Can't login with ssh to cubox-i4 installation using wire

Postby sunpax » Tue Sep 30, 2014 2:52 am

I am having the exact same problem as you. I have an i2 with wireless and I can SSH in and out fine over the wired Ethernet connection. But I cannot make a connection, either in-bound or out-bound, via SSH over the wireless. I can make other types of connections over wireless, like wget or ping, but not SSH. It gets all the way through setting all the env values but I just never get the prompt.

Have you made any progress on this issue?

Does anyone have a solution to this?
sunpax
 
Posts: 2
Joined: Tue Sep 30, 2014 2:35 am

Re: Can't login with ssh to cubox-i4 installation using wire

Postby tuxx » Wed Oct 01, 2014 7:58 am

Unfortunately I have done zero progress.

I have googled a lot and I have read the majority of results. If you do the same you will see lots (mainly Ubuntu) users that had the exact same problem with broadcom based wifi cards, so I assume that it's a problem of the firmware used for the wifi module.

I tried many things but at the moment I am still unable to log in via ssh, so I can't use wifi because I have done a headless setup and I really need ssh access.
tuxx
 
Posts: 45
Joined: Thu May 15, 2014 1:07 pm

Re: Can't login with ssh to cubox-i4 installation using wire

Postby sunpax » Wed Oct 01, 2014 4:23 pm

This device is to be the brain in a smart solar panel project that could change the world. Wireless connectivity is key to accessing this device. I really need a solution to this, who should I contact for support?

If it's a firmware issue then should I contact Broadcom? Is there an update that could release?

I have the i2 with the wireless add-on from Solid-Run. Maybe the simplest solution is to replace the wireless card with one that just works. Do you know if there of any other cards that I could pop into this board?
sunpax
 
Posts: 2
Joined: Tue Sep 30, 2014 2:35 am

Re: Can't login with ssh to cubox-i4 installation using wire

Postby tuxx » Wed Oct 08, 2014 9:17 am

I am still trying to figure out what's happening with ssh and this wifi adapter. I installed telnet in order to be able to do my tests and here's some dmesg output about wifi:

$this->bbcode_second_pass_code('', '[ 7.259034] brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Oct 25 2011 19:34:12 version 5.90.125.104
[ 7.276457] brcmfmac: brcmf_fil_cmd_data: Failed err=-23
[ 7.288117] brcmfmac: brcmf_fil_cmd_data: Failed err=-23
[ 7.296659] brcmfmac: brcmf_fil_cmd_data: Failed err=-23
[ 7.304762] brcmfmac: brcmf_fil_cmd_data: Failed err=-23
[ 7.899352] brcmfmac: brcmf_add_if: ERROR: netdev:wlan0 already exists
[ 7.908097] brcmfmac: brcmf_add_if: ignore IF event
[ 7.919143] brcmfmac: brcmf_fil_cmd_data: Failed err=-23
[ 7.927497] brcmfmac: brcmf_fil_cmd_data: Failed err=-23
[ 8.944884] brcmfmac: brcmf_fil_cmd_data: Failed err=-14
[ 27.391820] cannot submit urb 0, error -27: internal error')

Wifi seems to work ok apart from the ssh issue though.
tuxx
 
Posts: 45
Joined: Thu May 15, 2014 1:07 pm

Re: Can't login with ssh to cubox-i4 installation using wire

Postby Geoff » Wed Oct 08, 2014 1:07 pm

I wonder if you have the package firmware-brcm43xx installed, which provides brcm43xx-firmware.service and brcm43xx.service. I have both of these services enabled, although I'm not sure that they're both needed. You might try enabling each of these in turn, and rebooting (or even powering down and back up). Maybe some combination of these will provide better results. You probably won't need brcm43xx.service, as that's for enabling bluetooth.
Geoff
 
Posts: 231
Joined: Wed Mar 09, 2011 5:14 pm

Next

Return to ARMv7h

Who is online

Users browsing this forum: No registered users and 9 guests