Author Archive

english, how-to

Dell 1390 native linux driver how-to UPDATED

Edit: Added the module for the 64 bit kernel, built by Andy. See instructions below. I can’t test it at the moment, but it works for him.

Edit 2: New module for the 32 bit kernel, supporting packet injection. For some reason, it is not reporting the correct signal quality, but apart from that it’s working ok. Download it if you plan to use aircrack-ng.

Edit 3: For the 2.6.20-16-generic kernel you just need to install the firmware files, skip everything else. Injection capable module coming soon.

Edit 4: You can get the injection capable module for 2.6.20-16-generic from here.

There were some problems with the first version of the tutorial. You needed to download the not so small kernel source, you needed to use an unstable and unsupported kernel version and you couldn’t use modules compiled by the Ubuntu team (fglrx, vmware player and server, etc). Now, you can profit from the full speed of your Dell 1390 Wifi card while still using the official Ubuntu kernel. This guide is intended just for the 2.6.20-15-generic kernel.

You download the firmware package into the home folder.

cd ~

wget http://ubuntu.cafuego.net/pool/feisty-cafuego/bcm43xx/
bcm43xx-firmware_1.3-1ubuntu2_all.deb

Everything on a single line for the wget command!

Install the firmware files and remove the package.

sudo dpkg -i ./bcm43xx-firmware_1.3-1ubuntu2_all.deb

rm ./bcm43xx-firmware_1.3-1ubuntu2_all.deb

Download the module for the 32 bit kernel or the module for the 64 bit version (compiled by Andy using my instructions).

wget http://linux-geek.org/files/bcm43xx.tar.bz2

OR

wget http://www.linux-geek.org/files/bcm43xx-64bit.ko.tar.bz2

OR

wget http://www.linux-geek.org/files/bcm43xx-packet-injection.tar.bz2

And finally, we replace the bcm43xx driver provided by the Ubuntu kernel with the driver ported by me, from the 2.6.21-rc7 kernel.

sudo rm /lib/modules/2.6.20-15-generic/kernel/drivers/net/wireless/bcm43xx/bcm43xx.ko

sudo tar xvjf ./bcm43xx.tar.bz2 -C /lib/modules/2.6.20-15-generic/kernel/drivers/net/wireless/bcm43xx/

OR

sudo tar xvjf ./bcm43xx-64bit.ko.tar.bz2 -C /lib/modules/2.6.20-15-generic/kernel/drivers/net/wireless/bcm43xx/

Now reboot your computer. The module’s name is the same, bcm43xx. If you are not sure how to test if the wifi card is working, run

sudo modprobe bcm43xx

iwlist scan

BTW, the programs contained within the wireless-tools package are not going to complain about Wireless Extensions anymore, like they did with the 2.6.21 kernel.

Below is a screenshot taken while testing the module. Note that the displayed speed is not limited by the wifi card, it is limited by my internet connection.

Slackware 11 download with the hacked bcm43xx module.

english, how-to

Dell 1390 native linux driver how-to

Edit: The things described in this how to are still working, but you’ll have some problems. Use this one instead.

Dell 1390 is a wireless network card used in some Dell notebooks. It is using the Broadcom 4311 chipset. Until a few days ago, everybody was using ndiswrapper and the Windows drivers to get it working under Linux. The bcm43xx driver is supporting it starting from the 2.6.20 kernel release, but it was quite buggy: random disconnects and very slow speed (actually, the best speed I got was something like 90 KB/s). Release candidate versions of the 2.6.21 kernel seem to resolve all this issues. This a guide to help you compile the latest kernel version (don’t worry, you don’t need to configure it) and use the native linux driver for you Dell 1390 wireless card. Why should you use it? Well, WPA works OK now (I couldn’t get it working with ndiswrapper), scanning and configuration are a little bit faster, the signal power seems to be improved (but I may be wrong) and it supports monitoring mode (wep cracking and stuff). Now, the actual how-to.

First, because most of the commands we’ll be running require root access, we are becoming root (sudo kind of sucks when you have to use it on every line):

sudo su

Now, you should update your package list and upgrade your system and install the packages required to compile the kernel.

apt-get update

apt-get dist-upgrade

apt-get install kernel-package libncurses5-dev fakeroot wget bzip2

Next, we download the kernel source.

cd /usr/src

wget ftp://kernel.org/pub/linux/kernel/v2.6/testing/linux-2.6.21-rc7.tar.bz2

We extract and symlink it…

tar xjf ./linux-2.6.21-rc7.tar.bz2

ln -s ./linux-2.6.21-rc7 ./linux

Import the current kernel configuration (there may be some warnings displayed, not to worry).

cd linux

cp /boot/config-`uname -r` ./.config

make menuconfig

We import the configuration file with the “Load an Alternate Configuration File” option and choosing “.config”. Then we make sure MSI is disabled (we don’t want to use the pci=nomsi option, isn’t it?) by going to the Bus Options (PCI… ) menu and if necessary disabling Message Signaled Interrupts. Exit and save the configuration. Now we compile the kernel the Ubuntu way.

make-kpkg clean

fakeroot make-kpkg –initrd –append-to-version=-inspiron1501 kernel_image kernel_headers

Now get a cup of coffee or something like that because it takes some time. Next, we install the newly created packages.

cd ../

dpkg -i linux-headers-2.6.21-rc7-inspiron1501_2.6.21-rc7-inspiron1501-10.00.Custom_i386.deb

dpkg -i linux-image-2.6.21-rc7-inspiron1501_2.6.21-rc7-inspiron1501-10.00.Custom_i386.deb

We install the firmware files.

wget http://ubuntu.cafuego.net/pool/feisty-cafuego/bcm43xx/bcm43xx-firmware_1.3-1ubuntu2_all.deb

dpkg -i ./bcm43xx-firmware_1.3-1ubuntu2_all.deb

rm ./bcm43xx-firmware_1.3-1ubuntu2_all.deb

Then we restart the notebook and if we don’t know how to configure our wireless network we search for a tutorial.

Now everything should work ok. If it is not, you should try modprobe bcm43xx and then iwlist scan. If you still have problems, post a comment containing the output of dmesg.

english, how-to, linux, mobile devices

Windows Mobile 5 and Linux

Inca un post partial in engleza, tot pentru ca in target probabil nu sunt multi romani.

Romana

Descarcarea surselor synce cu suport Windows Mobile 5:

cd /usr/src
svn co https://svn.sourceforge.net/svnroot/synce/branches/libsynce/WM5/libsynce
svn co https://svn.sourceforge.net/svnroot/synce/branches/librapi2/WM5/librapi2
svn co https://svn.sourceforge.net/svnroot/synce/trunk/vdccm

Compilarea:

1) libsynce

cd libsynce/
./bootstrap
./configure
make
make install
cd ..

2) librapi2

cd librapi2/
./bootstrap
./configure
make
make install
cd ..

3) vdccm

cd vdccm/
make -f Makefile.cvs
./configure
make
make install
cd ..

In timp ce am compilat aceste programe am primit mai multe erori si a fost necesara editarea fisierelor sursa. Daca patiti la fel si nu va descurcati, contactati-ma pe email sau postati un comment aici.

Conectarea PDA-ului/telefonului prin USB:

1) Compilarea driverului usb-rndis

cd /usr/src
svn co https://svn.sourceforge.net/svnroot/synce/trunk/oleavr-files/usb-rndis
cd usb-rndis/
make
./clean.sh
make install

2) Gasirea interfete folosite de usb-rndis

dmesg | grep “eth[0-9″>: register” | grep “rndis_host” | tail -1

Daca totul a mers bine, veti vedea o linie de genul

eth1: register ‘rndis_host’ at usb-0000:00:02.0-2, RNDIS device, 80:00:60:0f:e8:00

3) Asignarea adresei ip

ifconfig eth1 169.254.2.2 netmask 255.255.255.0 up

Daca e cazul, inlocuiti eth1 cu interfata obtinuta prin rularea comenzii de mai sus.

4) Realizarea conexiunii

Aceste comenzi vor trebui rulate de user-ul pe care il folositi in mod normal.

vdccm -s 40
triggerconnection 169.254.2.1

5) Testarea conexiunii

pls /

Daca primiti o lista cu directoarele de pe dispozitivul mobil, totul a mers bine.

Accesul la file system-ul dispozitivului se realizeaza cel mai usor folosind un plugin pentru nautilus:

svn co https://svn.sourceforge.net/svnroot/synce/trunk/gnomevfs
cd gnomevfs/
./bootstrap
./configure
make
make install

In /etc/gnome-vfs-2.0/modules/default-modules.conf se adauga linia: synce: libsyncevfs.

Restartati sistemul.
Autentificati-va.
Conectati dispozitivul mobil.
Rulati din nou comenzile pentru asignarea adresei ip si realizarea conexiunii.
Rulati comanda nautilus synce:///.

Felicitari, ar trebui sa aveti acces la file system-ul dispozitivului.

English

Downloading synce with Windows Mobile 5 support:

cd /usr/src
svn co https://svn.sourceforge.net/svnroot/synce/branches/libsynce/WM5/libsynce
svn co https://svn.sourceforge.net/svnroot/synce/branches/librapi2/WM5/librapi2
svn co https://svn.sourceforge.net/svnroot/synce/trunk/vdccm

Compiling:

1) libsynce

cd libsynce/
./bootstrap
./configure
make
make install
cd ..

2) librapi2

cd librapi2/
./bootstrap
./configure
make
make install
cd ..

3) vdccm

cd vdccm/
make -f Makefile.cvs
./configure
make
make install
cd ..

During the compiling of this programs, there may be some errors. If this happens, you need to edit some source files. If you don’t know how, post a comment here or send me an email.

Connecting you device using an USB cable:

1) Compiling the usb-rndis driver

cd /usr/src
svn co https://svn.sourceforge.net/svnroot/synce/trunk/oleavr-files/usb-rndis
cd usb-rndis/
make
./clean.sh
make install

2) Finding the interface used by usb-rndis

dmesg | grep “eth[0-9″>: register” | grep “rndis_host” | tail -1

If everything went well, you will see a line like

eth1: register ‘rndis_host’ at usb-0000:00:02.0-2, RNDIS device, 80:00:60:0f:e8:00

3) Asigning the ip adress

ifconfig eth1 169.254.2.2 netmask 255.255.255.0 up

4) Connecting

This commands must be run by your normal user.

vdccm -s 40
triggerconnection 169.254.2.1

5) Testing the connection

pls /

If the command above returns a list with the folders from your PDA, everything is ok.

The most simple method to access your mobile device is to use a nautilus plugin.

svn co https://svn.sourceforge.net/svnroot/synce/trunk/gnomevfs
cd gnomevfs/
./bootstrap
./configure
make
make install

Add a line containing synce: libsyncevfs to /etc/gnome-vfs-2.0/modules/default-modules.conf .

Restart you computer.
Log in.
Connect you mobile device.
Run the commands for assigning the ip adress and connecting.
Run the command nautilus synce:///.

Now you should have acces to the filesystem of you mobile device.

english, how-to

Software unlock MPX200 running Windows Mobile 5

Deoarece, din cate stiu, nu sunt foarte multi oameni care ruleaza WM 5 voi scrie si o varianta in engleza a acestui post.

Romana

Pentru a decertifica un Motorola MPX-200 care ruleaza Windows Mobile 5, este nevoie de un card reader sau de un telefon pe care sa-l folositi in loc de card reader.

1) Descarca si extrage arhiva de aici.
2) Activeaza optiunea de a afisa fisierele ascunse.
3) Opreste telefonul si introdu cardul in card reader (sau in telefonul secundar).
4) Copiaza default.hv in directorul __TFAT_HIDDEN_ROOT_DIR__\ Windows\ de pe card.
5) Reintrodu cardul in telefon si porneste-l.
6) Conecteaza telefonul la PC si sincronizeaza-l cu Active Sync.
7) Ruleaza SDA_ApplicationUnlock.exe si deblocheaza telefonul. 8) Restarteaza telefonul
9) Copiaza cert.cab pe telefon si apoi se ruleaza-l.
10) Restarteaza telefonul. Acum ar trebui sa poti rula orice aplicatie.

English

To software unlock (decertificate) a Motorola MPX-200 running Windows Mobile 5, you will need a card reader or another phone to use it as a card reader.

1) Download and unzip this archive.
2) Enable the feature to see hidden files.
3) Switch off the phone and insert the storage card into the card reader.
4) Copy default.hv to the __TFAT_HIDDEN_ROOT_DIR__\Windows\ folder on the storage card.
5) Insert the card back to the phone and start the phone.
6) Connect the phone to the PC and synchronize it using Active Sync.
7) Run SDA_ApplicationUnlock.exe and unlock the phone. 8) Restart the phone.
9) Copy cert.cab to the phone and run it.
10) Restart your phone. Now you should be able to run any application.

« Prev