Opened 5 years ago

Last modified 15 months ago

#11998 reopened enhancement

Wifi impossible to install without physical network connection

Reported by: haiqu Owned by: haiku-web
Priority: normal Milestone: Unscheduled
Component: Website/ Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All


Attempted to install wifi "firmwares" from Windows per instructions at and since I'm on a purely wireless connection I installed 'wget' and downloaded the script which - per the Notes section - can be run from any other OS.

Pure rubbish. Windows doesn't recognise shell scripts. Well, it might with a full Unix shell emulation, but that's a bit much to expect. End result is that I can't connect to the internet on this machine using Haiku.

How about someone just bundles up the files in a zipfile for download?

Attachments (5)

alpha4_download-data-for-wlan-firmwares.txt (1.6 KB ) - added by humdinger 5 years ago.
Script for Alpha4
new_download-data-for-wlan-firmwares.txt (1.6 KB ) - added by humdinger 5 years ago.
script for PM Haiku (323.6 KB ) - added by haiqu 5 years ago.
Proprietary drivers for wifi
download-wlan-firmware.bat (1.5 KB ) - added by haiqu 5 years ago.
Fix minor script error
new_download-data-for-wlan-firmwares.2.txt (1.6 KB ) - added by miqlas 5 years ago.
Updated downloader script

Download all attachments as: .zip

Change History (31)

comment:1 by humdinger, 5 years ago

You can attach the zipfile to this ticket, while investigating if the licenses of those firmwares are compatible with this means of distribution.

comment:2 by haiqu, 5 years ago

That would be awesome Humdinger. However I can't do this personally, having no way to download the files (see description) since I'm working via wifi on a yacht.

Last edited 5 years ago by haiqu (previous) (diff)

comment:3 by haiqu, 5 years ago

Further comment: The downloadable script at is out-of-date, it points to the old svn database. Additionally the instructions talk about setting it up from the terminal, when this is now handled by the Network preflet.

comment:4 by humdinger, 5 years ago

Thanks for noticing the outdated baseURL in the scripts (though the scripts still work)! I've attached the two corrected scripts that Niels can upload again when he has a minute, (same as for #11516).

I don't have Windows installed. If anyone has and can convert these scripts to something that can run on Windows, please attach those two for Niels to upload.

Maybe once that's done, the guide can be adapted to what's in the Userguide, which itself should be updated to reflect the new networking preflet.

by humdinger, 5 years ago

Script for Alpha4

by humdinger, 5 years ago

script for PM Haiku

comment:5 by humdinger, 5 years ago

Owner: changed from nobody to nielx
Status: newassigned

comment:6 by haiqu, 5 years ago

Attaching zipfile. I managed to get wifi working by attaching to my brother's router via a cable.

To install this, unzip to /boot and run

Ticket should be closed now.

by haiqu, 5 years ago

Proprietary drivers for wifi

comment:7 by humdinger, 5 years ago

I suspect that the reason that there is a script for users to execute themselves in the first place, is that the firmwares licensing forbids "direct" distribution of the binaries. It'd therefore be more helpful to have a corresponding Windows batch file that does the downloading and zipping.
I know, it's totally stupid...

comment:8 by haiqu, 5 years ago

Yep. There's a wget for Windows so that would work.

Edit: As long as it doesn't have a raft of dependencies and frobbity installation instructions, like so much "free" software. If it needs to be run from the terminal most windoze users will give up ...

Last edited 5 years ago by haiqu (previous) (diff)

comment:9 by haiqu, 5 years ago

Here's the batchfile, it copes with pre- and post-alpha cases.

You'll need to install wget for windows (link in last message) and zip for windows IN THEIR DEFAULT LOCATIONS in order to use this.

I also note that the scripts available online are now broken, the headers have been replaced with a pointer to the "oldhaiku" directories. Needs fixing for other systems, my batchfile corrects it for windows users.

comment:10 by haiqu, 5 years ago

Has a Patch: set

comment:11 by haiqu, 5 years ago

Usage: Drop the batchfile into a temp Windows directory (or onto the desktop) and double-click. You should see a zipfile automagically appear very shortly. :-)

Last edited 5 years ago by haiqu (previous) (diff)

comment:12 by diver, 5 years ago

Has a Patch: unset

comment:13 by pulkomandy, 5 years ago

In Windows 7 and later, PowerShell could be used to remove the dependency on wget:

However it's noce to have a batch script that runs in XP and previous versions.

by haiqu, 5 years ago

Attachment: download-wlan-firmware.bat added

Fix minor script error

comment:14 by haiqu, 5 years ago

Since about 25% of Windows systems being used worldwide are XP or lower it makes sense to provide a solution that caters for all systems. Well, anything from Win2k onward anyhow.

Frankly I've never used Windows 7 or beyond, and don't ever plan to.

Last edited 5 years ago by haiqu (previous) (diff)

comment:15 by richienyhus, 5 years ago

I created a GCI task last year to add some Windows-to-Haiku migration features to the C# app HaikuOnAStick, although the task was never accepted.

Basicly the master plan would be to get it to grab the lastest Haiku nightly or release, the firmware for the system's wifi chip and then the system settings and personal information (contacts etc) that the user wants to migrate.

Then it would create a USB stick with a bootable Haiku system on a bfs partition and a small fat32 partition with the information retrieved via Windows.

It could be packaged and distributed by Chocolaty and Nuget (the Windows equivalent of HaikuPorter and HaikuPorts)

by miqlas, 5 years ago

Updated downloader script

comment:16 by miqlas, 5 years ago

Here is the updated script.


baseURL was, now

So you won't get the HTML tags in the byteswap.h files.

comment:17 by humdinger, 4 years ago

@nielx, you think you could update that script on the website with miqlas' latest? Thanks!

comment:18 by nielx, 3 years ago

Component: - GeneralWebsite/
Owner: changed from nielx to haiku-web

comment:19 by humdinger, 3 years ago

Resolution: fixed
Status: assignedclosed

Since the website moved to be static, I could upload the updated/new scripts. Thanks miqlas and haiqu!

comment:20 by fsv141, 16 months ago

Resolution: fixed
Status: closedreopened

Guys, I do not understand what and where to download! In the user manual - old links to scripts for off-line installation wi-fi and these files do not work! Downloaded from here *.bat file does not work! It produces a zip with a size of 5 kb. Well, can not you do everything right? We will never occupy any significant segment of OS users!

comment:21 by waddlesplash, 16 months ago

Do you actually need that firmware anyway? 99% of hardware does not; we include firmware for all Intel WiFi chips on the regular install. Only old Broadcom chips need the archive.

comment:22 by fsv141, 16 months ago

Yes, I need. I want to install a Haiku on Lenovo E10-30. This is a very suitable platform for Haiku to make a music computer. But all the proposed scripts do not work for me. Files are not downloaded in Windows (with the wget and zip installed), because all the paths have changed. I tried to assemble the components separately and assemble them independently into a zip archive, but the install-wifi script does not install them. Tell me why it is impossible to simply make an off-line installation package? Download it, copy to flash-drive and run into haiku? Why all these contrived difficulties?

And further. When I install TinyCore Linux, then I have a wi-fi works without problems. Why can't make it in Haiku as well?

Last edited 16 months ago by fsv141 (previous) (diff)

comment:23 by kallisti5, 16 months ago

Why all these contrived difficulties?

While the script in question needs to be updated (or maybe even moved into a Haikuports package?), the core reason for its existence isn't up to us.

Some of Broadcom's wireless chipsets require a binary blob to function. This binary was released under unclear closed licensing. If we were to re-distribute the binary blob, we would be open to legal litigation from the Broadcom company.

Here's an example from ArchLinux:

b43 Two reverse-engineered open-source drivers are built-in to the kernel: b43 and b43legacy. b43 supports most newer Broadcom chipsets, while the b43legacy driver only supports the early BCM4301 and BCM4306 rev.2 chipsets. To avoid erroneous detection of your WiFi card's chipset, blacklist the unused driver.

Both of these drivers require non-free firmware to function. Install b43-firmwareAUR, b43-firmware-classicAUR or b43-firmware-legacyAUR from the AUR.

Note: BCM4306 rev.3, BCM4311, BCM4312 and BCM4318 rev.2 have been noticed to experience problems with b43-firmware. Use b43-firmware-classicAUR for these cards instead. BCM4331 noticed to have problems with b43-firmware-classic. Use b43-firmware for this card instead.


ArchLinux solves the issue by shipping b43 firmwares via a 3rd party repository.

comment:24 by waddlesplash, 16 months ago

ArchLinux solves the issue by shipping b43 firmwares via a 3rd party repository.

Looks like FreeBSD packages them directly, but does not ship them:

We should take a look at using those.

comment:25 by waddlesplash, 16 months ago

But actually this is all unrelated. fsv141, your WiFi device is not supported by our drivers at all; see ticket #6480. The firmware files for that device we can distribute, I think.

comment:26 by fsv141, 15 months ago

Ok. So I have to build a music computer based on TinyCore Linux... :(

However, regardless of my problems, the scripts still do not work. In any case, the bat for Windows for sure.

By the way, it seems like my chip Broadcom BCM943142HM.

Version 2, edited 15 months ago by fsv141 (previous) (next) (diff)
Note: See TracTickets for help on using tickets.