HOWTO: FreeBSD 6.2 ndisgen with Acer Aspire 5100 5102 WLMi with Broadcom Wlan chipset 4318 Rev 2

I tried to do it with the OpenSuse 10.2, but it was too complicated, and never worked, since it needs a firmware ..etc.

So I dropped OpenSuse choice.

So I went back to my lovely OS FreeBSD.

I installed FreeBSD 6.2-RC1 since 6.1-RELEASE refused to boot due to the bugs in the Aspire 5102 WLMi bios.
I honestly have had very hard time with my new laptop Acer Aspire 5102 WLMi which comes with Broadcom Wirless Lan chip model 4318 Rev 2.

I hate Broadcom policy against the FreeBSD, and Open source community as well, since they don’t make native drivers for their chips to work in FreeBSD, and *BSD OS beside the Linux community.

If they support more OSes, more sale and power for them, take Atheros as an example, it has many good words in the FreeBSD community since it supports FreeBSD, and there are drivers for it in the OS itself.

Anyway, I tried to use ndisgen to make a kernel module for my broadcom Wlan chipset 4318, and downloaded the drivers from the Acer support site but with no luck, don’t ask me why? it just makes errors, and ndisgen isn’t able to deal with it, since it has unicode stuff on it, and I wasn’t able to fix them, I’m not a coder, and I hate to code a single line. :)

Step 1:

pciconf -lv

And here I see:

none@pci6:2:0: class=0×028000 card=0×03121468 chip=0x431814e4 rev=0x02 hdr=0×00
vendor = ‘Broadcom Corporation
class = network
Step 2:

I looked for drivers to support the same chip from other vendors, like HP, and Dell, ..etc.

You have to pull this off web site yourself. Bonus points when the driver is packaged in a self-extracting archive, then you have to borrow a Windows machine to get the .sys and .inf files, but FreeBSD allows you to open them if you have some nice tools from the FreeBSD /usr/ports/archive/

So I found the right driver in Dell, Dell re-brands the Broadcom driver as a Dell driver, so I download the “http://ftp.us.dell.com/network/R94827.EXE” from their web site, extracted, and select the bcmwl5.inf and bcmwl5.sys

I put them in my own shell as /usr/home/arabian/tmp/

step 3:

Log as super user to be able to use ndisgen

$ su
Password:

#cd /home/arabian/tmp

#ndisgen bcmwl5.inf bcmwl5.sys

You’ll get ndisgen screen with some questions, just keep pressing enter till it creates the kernel module bcmwl5_sys.ko

But!

I got this error

ndiscvt: line 13: e: syntax error.
ÿþ[#

Okay, don’t panic! I have seen this before.

Ndisgen works on ASCII files, but many a crafty driver has been distributing stuff in Unicode. If I look at bcmwl5.inf, I see:

# hd bcmwl5.inf | head -3
00000000  ff fe 3b 00 3b 00 0d 00  0a 00 3b 00 3b 00 20 00  |..;.;.....;.;. .|
00000010  62 00 63 00 6d 00 77 00  6c 00 35 00 2e 00 69 00  |b.c.m.w.l.5...i.|
00000020  6e 00 66 00 0d 00 0a 00  3b 00 3b 00 0d 00 0a 00  |n.f.....;.;.....|

For your edification, if a file looks like null-padded ASCII characters, then it is probably UTF-16.

So I need to convert the unicode to ASCII

So I typed

# iconv -c -f utf-16 -t ascii bcmwl5.inf > bcmwl5.inf.ascii
Let's heck it out now.
# head -3 bcmwl5.inf.ascii
;;
;; bcmwl5.inf
;;
It looks ok now ;) 
Let's del the old  bcmwl5.inf
#rm bcmwl5.inf
Now let's copy bcmwl5.inf.ascii as  bcmwl5.inf
#cp  bcmwl5.inf.ascii bcmwl5.inf
Now let's do the step 3 again
#ndisgen bcmwl5.inf bcmwl5.sys
This will generate bcmwl5_sys.ko
Step 4:
#cp bcmwl5_sys.ko /boot/modules/
#ee /etc/rc.conf
then add these line if you are using wlan network with no security.
ifconfig_ndis0="DHCP"
ssid="WeArab.Net"
I'm using WeArab.Net since it's the ssid of my home wlan.

So we will make sure it will work with the next reboot.
Now, I'll also need to add some lines to load the bcm module with the next reboot beside other kernel modules for the WLAN.
# ee /boot/loader.conf
bcmwl5_sys_load="YES"
Then save and exit.
now the last step is to reboot, I rebooted and finally my wokan works.

Hey one more thing I discovered later, the mode supported in bcmwl5.inf is 802.11b and not g :( 
The fix is easy thou ;) 
#ee bcmwl5.inf
Then search for IBSSGMode by using ctrl+y in the ee editor
You'll find "1" beside it, change it to "2"
Then reboot creating the kernel module, then don't forget to copy it again to /boot/modules/

That's it! ;) 

Thank you Turks, Protests threaten to marr the pope Benedict XVI visit to Turkey

Turks are Muslims regardless the aren’t Arab, they are refusing the ignorant pope Benedict XVI visit to their land because he is an ally of Bush, and Zionists and supporting Jew occupation to Palestine and USA evil army beside British army to occupy the Free Iraq.

Beside the worst words he uses against our Prophet Mohammad Sala Allaho Aliah Wa Salam.

Many Turks hope that the pope will use his visit to Turkey to apologise for his September speech.

Ali Bardakoglu, who heads Ankara’s Directorate General for Religious Affairs, which controls Turkish imams and writes their sermons, said: “I think the attitude the Pope should take is that neither Islam nor Christianity is a source of violence.”

Protests threaten to marr the pope’s visit

The visit was intended to be a primarily Christian event centered around a meeting with the head of the Orthodox Christians, but it has been overshadowed by protests against his visit.

Hundreds of Turks have already demonstrated to show their anger over his comments on Islam and European opposition to Ankara’s bid to join the EU.

Before his 2005 election as Pope, the then Cardinal Joseph Ratzinger expressed serious reservations about Turkey’s bid to be a member of the European Union, citing religious and cultural differences.

As we all know the current ignorant racist pope is against Muslims and doesn’t want Turkey to be part of the EU because he is considering it as Christian club

This ignorant pope is worst than the previous one when it comes to Muslims, and he wish that USA evil army would be able to kill every single Muslim in Iraq.

Abdullah Ibn Hamad Al-Marri

Arab Portal Network

HOWTO Linksys WPC54G with PC-BSD 1.3 based FreeBSD 6.1

Hello,

Here how I setuped my PCMCIA Linksys WPC54G card in my Laptop Compaq 2810EA, based on Richard article, with some modifications suites my needs.
I downloaded PC-BSD 1.3 Beta cd and burned it using Nero.

Then I installed the PC-BSD 1.3 without any signle problem.

Now, I need to make PC-BSD 1.3 Which is based on FreeBSD 6.1 to know my PCMCIA Linksys WPC54G card, so I was connected via wire with my Intel ethernet card fxp0.

First I updated my FreeBSD 6.1 source tree because ndis wont work without having the kernel source in my system.

Since I live in State of Qatar, Arab world, I choosed cvsup1.KW.FreeBSD.Org since it’s hosted in Kems ISP in the State of Kuwait, and my ISP has direct link to it.

# traceroute cvsup1.kw.FreeBSD.Org
traceroute to cvsup1.kw.FreeBSD.Org (168.187.5.244), 64 hops max, 40 byte packets
1 192.168.1.1 (192.168.1.1) 1.898 ms 1.526 ms 1.467 ms
2 89.211.192.1 (89.211.192.1) 16.287 ms 17.327 ms 16.940 ms
3 89.211.0.117 (89.211.0.117) 23.545 ms 16.339 ms 17.075 ms
4 89.211.0.73 (89.211.0.73) 16.981 ms * *
5 89.211.0.42 (89.211.0.42) 17.045 ms 422.017 ms 442.963 ms
6 195.229.27.17 (195.229.27.17) 485.118 ms 476.282 ms 485.688 ms
7 195.229.27.14 (195.229.27.14) 496.190 ms 484.944 ms 495.585 ms
8 168.187.0.39 (168.187.0.39) 485.116 ms 485.797 ms 495.300 ms
9 168.187.5.1 (168.187.5.1) 495.525 ms 496.208 ms 484.907 ms
10 mirrors.kems.net (168.187.5.244) 495.338 ms 495.574 ms 548.376 ms
Thank you Kems ISP for hosting a FreeBSD cvsup mirror in your facilities.

Now I went to linksys download site and I downloaded the windows driver
WPC54Gv5.zip which is the latest windows driver.

Then I extracted the unzipped it as WPC54Gv5 folder.

I looked into the files I need they were lsbcmnds.inf and bcml5.sys

Then I started the ndisgen

PCBSD# ndisgen lsbcmnds.inf bcml5.sys

Then I got this screen
==================================================================
------------------ Windows(r) driver converter -------------------
==================================================================

Kernel module generation

The script will now try to generate the kernel driver module.
This is the last step. Once this module is generated, you should
be able to load it just like any other FreeBSD driver module.

Press enter to compile the stub module and generate the driver
module now:

Generating Makefile… done.
Building kernel module… done.
Cleaning up… done.

The file bcmwl5_sys.ko has been successfully generated.
You can kldload this module to get started.

Press return to exit.

Aww nice, I got the kernel module I need ;)

bcmwl5_sys.ko

so I typed

kldload ./bcmwl5_sys.ko

Then I typed

dmesg | grep ndis
ndis0: mem 0×88000000-0×88001fff irq 11 at device 0.0 on cardbus0
ndis0: NDIS API version: 5.1
ndis0: Ethernet address: 00:14:bf:22:be:12

Bingo. I have a ndis0 interface. Let’s see it.

ifconfig ndis0
ndis0: flags=8802 mtu 1500
ether 00:14:bf:22:be:12
media: IEEE 802.11 Wireless Ethernet autoselect
status: no carrier
ssid “” channel 11
authmode OPEN privacy OFF txpowmax 100 protmode CTS

A look at the loaded kernel modules shows my custom kernel module, if_ndis, and ndis are loaded.

# kldstat
Id Refs Address    Size     Name
 1   18 0xc0400000 63072c   kernel
 2    2 0xc0a31000 74b0     snd_csa.ko
 3    3 0xc0a39000 1d408    sound.ko
 4    2 0xc0a64000 eeec     drm.ko
 5   16 0xc0a73000 568dc    acpi.ko
 6    1 0xc2003000 69000    bcmwl5_sys.ko
 7    1 0xc206c000 b000     if_ndis.ko
 8    2 0xc2077000 13000    ndis.ko

Now I’m ready to bring up the card.

# ifconfig ndis0 inet 192.168.1.5 netmask 255.255.255.0 ssid WeArab.Net

No errors — let’s check ndis0

# ifconfig ndis0
ndis0: flags=8843 mtu 1500
        inet 192.168.1.5 netmask 0xffffff00 broadcast 192.168.1.255
        inet6 fe80::214:bfff:fe22:be12%ndis0 prefixlen 64 scopeid 0×4
        ether 00:14:bf:22:be:12
        media: IEEE 802.11 Wireless Ethernet autoselect (OFDM/54Mbps)
        status: associated
        ssid WeArab.Net channel 11 bssid 00:13:10:65:2f:ad
        authmode OPEN

Looks good — I’ll add a default route and ping Google.

# route add default 192.168.1.1
add net default: gateway 192.168.1.1
orr:/home/richard/tmp$ ping -c 1 www.google.com
PING www.google.com (72.14.203.104): 56 data bytes
64 bytes from 72.14.203.104: icmp_seq=0 ttl=233 time=270.746 ms

— www.google.com ping statistics —
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max/stddev = 270.746/270.746/270.746/0.000 ms

Awesome. To make life easier, I copied the module in /boot/modules/ instead of /boot/kernel so that it will survive my next upgrade or make installkernel.

# cp bcmwl5_sys.ko /boot/modules/

Everything works; in fact, I’m posting while using the card now. Then I adjusted my /boot/loader.conf

# WiFi
wlan_tkip_load=”YES”
wlan_ccmp_load=”YES”
wlan_xauth_load=”YES”
wlan_acl_load=”YES”

# Linksys WPC54G WifiNIC
bcmwl5_sys_load=”YES”

So next reboot my WiFI pcmcia card should work for me ;)

Regards,

Abdullah Ibn Hamad Al-Marri

Arab Portal Network

British Zionist’s Jews signing up for War Crimes in Gaza and the West Bank

Today Guardian published special report about British Jews murders who attacked Lebanon, and currently attacking occupied Palestine.

http://www.guardian.co.uk/israel/Story/0,,1954703,00.html

Solider in Zionist army in Palestine Young said: “When you join the British army, you’re joining just to be in the army - it’s a profession. Here it’s part of the way of life.”

As you could say, they aren’t loyal to UK, but loyal to kill and murder innocent kids, and old women in our occupied Palestine.

Zionist forces attacking Gaza again

Zionist armour raided northern Gaza again on Wednesday

 

Arab Palestinian innocent kid killed by Israel war criminals

How much danger is this Palestinian innocent kid worth to be killed by Israel Jews and Zionist forces?

 

When a Muslims, and Arabs, defend Iraq, or Afghanistan they call them illegal soldiers and terrors, then they send them to the bad Guantanamo big prison.

But evil Bush forgot that he launched illegal wars against Iraq and Afghanistan to achieve Zionist goals in Arab and Islam world.

Wake up Arabs and Muslims, and watch what Zionist with Bush support crimes in the world!

Regards,

Abdullah Ibn Hamad Al-Marri

Arab Portal Network

USA launching the third world war against Muslims and Islam

U.S. general in the Arab and Islamic world said:
Islamic Militancy could yield third world war

CAMBRIDGE, Massachusetts (Reuters) - The top U.S. general in the Middle East said on Friday that “if the world does not find a way to stem the rise of Islamic militancy, it will face a third world war”.

Army Gen. John Abizaid compared the rise of militant ideologies, such as the force driving al Qaeda, to the rise of fascism in Europe in the 1920s and 1930s that set the stage for World War Two.

Is the Evil USA government working with Zionists to launch a new war against Islam and Muslims in the Arabic world? Who is the next now? Sudan maybe? to control it’s Oil with a claim they are there to help Darfur citizens? like they don’t see what Zionists and Jewish aginst the kids in poor Palestine, why don’t they send U.N force to keep the poor Kids and old Women in some peace? because the U.N is a big lie, or ugly joke controlled by Zionists and Jewish war mongers to protect their war crimes.

They occupied Iraq to serve Zionists goals to protect their occupation of Palestine.

 

Iraqi Mother

 

Iraqi Mother crying over the USA war crimes.

 

USA Warmongers

USA Gov warmongers.

The USA evil army lost in the Iraq war, so are they ready for wider global war? I don’t think so.

Interesting link about the USA wars for Zionists in Palestine is here No War for Israel

It is now official: Israeli spies fed fake evidence to US government through
Jewish US Government officials!


READ NOW!

 

Wake up USA poor citizens before it’s too late!

Regards,

Abdullah Ibn Hamad Al-Marri

Arab Portal Network

 

Arab faces a new un fair acts in Netherlands and USA launching the third world war against Muslims

Now after France, England, and Germany, another country want to ban Burqas and other Muslim full-face veils in public.

Reports said on Friday that Rita Verdonk, the Dutch minister for immigration, would soon draw up legislation to implement a ban on the burqa.

Now they claim it’s for security reasons, we don’t belive that.

Arab and Muslims face a real war against their Islamic Peaceful religion.

So who would be the next country after Netherlands? :)

Pope said Islam was forcing the non Muslims to be a Muslim by force.

The question is, did Europeans became Muslims by force too? :)

I don’t know when this war against Islam, and the Arab would stop at all.

Now the evil USA Army Gen. John Abizaid in the Arab and Islamic world who is leading the occupation in Iraq said

if the world does not find a way to stem the rise of Islamic militancy, it will face a third world war.

So who is looking for evil war now?

Your comments most welcome

Regards,

Abdullah Ibn Hamad Al-Marri

Arab Portal Network

Arab Portal and OpenLaszlo story for you!

Good day,

I would like to invite you to the real Web Chat which is based on Flash9 from Arab Chat Portal powered Arab Portal Network

It’s very easy to use and powered by OpenLaszlo and Java J2SE beside Apache 2.2.3 with the nice open source database MySQL in the most powerful Free Unix system in the world FreeBSD which is also used by Yahoo!.

OpenLaszlo is much better than Flex 2.0 since you can have different out put for the same code as Flash or Ajax.

More to come

Yours,

Regards,

Abdullah Ibn Hamad Al-Marri

Arab Portal Network