Debian jessie image 1.0 released for Bubba|2 / B3

Discuss development on Bubba
86ivar
Posts: 148
Joined: 02 Oct 2010, 11:08

Re: Debian jessie image 1.0 released for Bubba|2 / B3

Post by 86ivar » 05 Apr 2016, 13:36

Does wifi work with this install on a B2? Or if not, can I make it work myself without too much work?

lognok
Posts: 23
Joined: 30 Nov 2011, 11:23

Re: Debian jessie image 1.0 released for Bubba|2 / B3

Post by lognok » 05 Apr 2016, 16:49

86ivar wrote:Does wifi work with this install on a B2? Or if not, can I make it work myself without too much work?
From what I can understand in the install.ini file(for both B2 and B3), then it 'only' sets up LAN and WAN. There are no setup parameters for wifi.

I'm ready to try this image and have backed up my B3. I just need to have wifi enabeld somehow, so I'll listen on the sideline to any answer you might get :D

lognok
Posts: 23
Joined: 30 Nov 2011, 11:23

Re: Debian jessie image 1.0 released for Bubba|2 / B3

Post by lognok » 07 Apr 2016, 10:08

Maybe wifi can be setup with iwconfig?
http://manpages.debian.org/cgi-bin/man. ... &locale=en

MouettE
Site admin
Posts: 257
Joined: 06 Oct 2011, 19:45

Re: Debian jessie image 1.0 released for Bubba|2 / B3

Post by MouettE » 07 Apr 2016, 13:10

If you want to run an AP on your B3 (or your B2) you need the hostapd package and I recommend to use the hostapd configuration from the squeeze excito images as a starting point (it contains specific parameters for the card used in B2/B3). Google will help you find some tutorials on how to enable the AP.

Puma
Posts: 223
Joined: 29 Sep 2008, 06:30

Re: Debian jessie image 1.0 released for Bubba|2 / B3

Post by Puma » 07 Apr 2016, 15:58

lognok,

Mouette is right you have to install hostapd to get a AP.
The drivers ath9k are already present in de image.

The only issue is that the ath9k driver in combination with CDRA (Central Regulatory Domain Agent) looks at the EEPROM regdomain setting. The regdomain is 0x60 (world) due to this the AP will be forced into US mode which is restricted to 2.4 GHz. This happend to me and I live in the Netherland which uses 5 GHz legally.
The only things one can do is:
1. Change EEPROM setting inside AR9280 wifi card (I looked on the internet but this seems to be not doable)
2. Change wireless-regdb (compile) with new db.txt
3. Rebuild the kernel with
4. Excito worked with a patch : "Force Atheros drivers to respect the user's regdomain settings" But I think a recompile is needed than as well.

https://wireless.wiki.kernel.org/en/users/drivers/ath

I tested the 2.4 GHz but I seem to have a DHCP issue here.
Main problem for me is to use the 5GHz which I cannot.
I tested a new db.txt which worked with 5 GHz until restart the issue came back and only 2.4 GHz could be used.

Moutte : is it possible to change the countrie setting to NL and use legally 5 GHz? Can you explain how to rebuild a kernel that solves this issue?

Thanks in advance.

Puma
Linux is like a wigwam - no windows, no gates, apache inside!

Gordon
Posts: 1324
Joined: 10 Aug 2011, 03:18

Re: Debian jessie image 1.0 released for Bubba|2 / B3

Post by Gordon » 07 Apr 2016, 17:36

Puma wrote:Moutte : is it possible to change the countrie setting to NL and use legally 5 GHz? Can you explain how to rebuild a kernel that solves this issue?
Funny thing. You are allowed to patch the kernel source files to bypass the regulatory domain setting programmed into the hardware. It is however illegal to distribute such a kernel as a binary. This is really not an issue but a legal matter and I agree that it is annoying but it simply can't be helped.

lognok
Posts: 23
Joined: 30 Nov 2011, 11:23

Re: Debian jessie image 1.0 released for Bubba|2 / B3

Post by lognok » 11 Apr 2016, 16:28

Thanks Moutte and Puma

I read a little bit about setting up the hostapd on Debian and I ended up with this list:

Pre-install:
Backup important stuff
Make a copy of /etc/network/interfaces from Wheezy
Make a copy of /etc/hostapd/hostapd.conf from Wheezy

Install:
Install Jessie
Install hostapd
Activate daemon in /etc/default/hostapd
Install bridge-utils
Paste copy of interfaces
Paste copy of hostapd.conf

Questions:
Install dnsmasq? (my current dnsmasq.conf has no active lines)
Install firewall?


Running 2.4GHz only is acceptable. Am I missing something to get AP working?

MouettE
Site admin
Posts: 257
Joined: 06 Oct 2011, 19:45

Re: Debian jessie image 1.0 released for Bubba|2 / B3

Post by MouettE » 11 Apr 2016, 16:34

lognok wrote:Thanks Moutte and Puma
Questions:
Install dnsmasq? (my current dnsmasq.conf has no active lines)
Install firewall?
Stricly speaking dnsmasq and firewall are not required to get an AP running. dnsmasq is used to serve DHCP adresses to your nerwork and firewall allows you to protect your b3 and do NAT on your local network. So basically if your current configuration is to use your b3 as a standard WiFi router yes you need them.

Puma
Posts: 223
Joined: 29 Sep 2008, 06:30

Re: Debian jessie image 1.0 released for Bubba|2 / B3

Post by Puma » 13 Apr 2016, 15:26

Gordon / Muette,
Funny thing. You are allowed to patch the kernel source files to bypass the regulatory domain setting programmed into the hardware. It is however illegal to distribute such a kernel as a binary. This is really not an issue but a legal matter and I agree that it is annoying but it simply can't be helped.
Can somebody tell me how to do this patch ?

Regards,

Puma
Linux is like a wigwam - no windows, no gates, apache inside!

Gordon
Posts: 1324
Joined: 10 Aug 2011, 03:18

Re: Debian jessie image 1.0 released for Bubba|2 / B3

Post by Gordon » 13 Apr 2016, 16:51

Not really. There are several patches to be found on the net but the driver source file belonging to your specific version of the kernel may be different and cause the automatic procedure to fail. I cannot direct you to any source that will give you a step to step manual for doing this. All I can say is that Google is your friend.

lognok
Posts: 23
Joined: 30 Nov 2011, 11:23

Re: Debian jessie image 1.0 released for Bubba|2 / B3

Post by lognok » 29 Apr 2016, 19:25

Alrighty
I did the default install from a usb-key and it seems (from the log) like everything went oki-doki, but now I don't know which ip to ssh into...
I tried excito@192.168.10.1 and also 192.168.1.1, but I just get a 'ssh: connect to host 192.168.1.1 port 22: Network is unreachable'.

Any help would be appreciated :-)

lognok
Posts: 23
Joined: 30 Nov 2011, 11:23

Re: Debian jessie image 1.0 released for Bubba|2 / B3

Post by lognok » 03 May 2016, 15:44

Also my laptop(Ubuntu 14.04) keeps searching for a wired connection, but cannot connect to the LAN or WAN ports on the B3.

This is the most likely reason why I cannot ssh into the B3.

But why are my LAN and WAN ports not working?

MouettE
Site admin
Posts: 257
Joined: 06 Oct 2011, 19:45

Re: Debian jessie image 1.0 released for Bubba|2 / B3

Post by MouettE » 03 May 2016, 16:02

The default settings enable only dhcp client on both interfaces. If you don't have any dhcp server on your network the ports won't get any IP.

If you want to add static IP on your installation you must change the install.ini network parameters. You can also fix the image by booting on the rescue system, mount the os and edit /etc/network/interfaces manually.

tdebruin
Posts: 2
Joined: 05 May 2016, 08:53

Re: Debian jessie image 1.0 released for Bubba|2 / B3

Post by tdebruin » 05 May 2016, 09:05

Hi,
first off thx for all the support and dev work!

I got a B3 from a friend, never owned such a device before. After looking in it a bit I soon realised it needed a Jessie upgrade, and thx to this post I did manage (after some typical newbie pitfalls: took me ages to realize I should put the roots file in the /install directory of the rescue usb stick :oops: ).

So now I have a working root shell and a working debian jessie (yay), and my question is: is there an easy way to reproduce / reinstall the nice GUI interface and services provided by the original B3 firmware? Or a simple how-to that I have not managed to find yet on this forum? A simple home file-sharing box, and maybe a torrent client for my housemates to easily acces through a slick GUI would make allow me to share the device.

Otherwise I'll have to read on quite a lot on how to install the different services I'd like to use to with this box, if that's the way I have to go, is there some resources / how-to's out there that people here recommend?

Again, thx for continuing support!

Gordon
Posts: 1324
Joined: 10 Aug 2011, 03:18

Re: Debian jessie image 1.0 released for Bubba|2 / B3

Post by Gordon » 05 May 2016, 11:54

tdebruin wrote: So now I have a working root shell and a working debian jessie (yay), and my question is: is there an easy way to reproduce / reinstall the nice GUI interface and services provided by the original B3 firmware? Or a simple how-to that I have not managed to find yet on this forum?
As the owner/maintainer of the bubba overlay for Gentoo I can tell you that is not the case. A lot of compatibility issues have arised over time and you'll find a lot of missing libraries if you can even trick the original bubba packages to install on your new system and being unable to recompile to the new libraries from source packages.

Of course, since Gentoo is source based you can reapply (parts of) my patches to create new Debian packages if you like. Would be nice if you'd share those as well.

Post Reply