Posts

Access point with Raspberry Pi and rtl8192cu dongle

On Thursday ethernet ports (WAN and LAN1-4) in my Asus WL500GPv1 router have completely died, so I needed a replacement. Hopefully, recently I've got Raspberry Pi, so I decided to use it as a router. I've got TP-LINK TL-WN821NC USB stick from local store which is based on RTL8192CU chipset. Unfortunately, its driver doesn't work with vanilla hostapd, but requires patched ancient version of hostapd from Realtek . I'm using Archlinux on my rpi and I've found manual how to setup AP using this USB stick  here , but I don't want to overwrite binaries from repository packages, since it's not a sane way, and it can (and will) be broken by hostapd update. So I prepared a package, here's source package (just unpack it and build with makepkg directly on rpi), and here's binary package for armv6h (you can install it with pacman -U). I can't put PKGBUILD in AUR, since there's no stable hosting for Realtek's hostapd. If anyone is willing to host...

Wayland and software rendering

Image
Recently I spent few evenings for hacking wayland . I like idea of wayland - rendering is done completely on client (in whatever way), compositor (server part) is responsible in rendering buffers from clients on the screen. Issue for me was rendering part of weston (reference compositor for wayland) - it uses GLES for compositing, but I want to try wayland and weston on devices without hw acceleration (pure software rendering), and running software GL on PXA270@312MHz does not sound like a good idea, does it? :) So I asked on #wayland@irc.freenode.org if it possible to implement software renderer, Kristian Høgsberg (khr) responded that in master branch of weston repo there's a nice abstraction of renderer, so it's possible to implement pixman renderer. So I did :) weston with x11-backend and pixman renderer khr and pq from #wayland were very helpful, and described place of renderer in wayland architecture, here're some points renderer just performs rendering of ...

Hacking on fingerprinting again or AES2550/AES2810 driver for libfprint

Image
Back in 2007 I participated in driver development for AuthenTec AES2501 scanner, driver was later merged into libfprint project. I didn't hack much on libfprint, just sent few bugfixes, but recently AuthenTec announced that they're willing to send fingerprint scanners for opensource enthusiasts who wants to develop driver for those scanners. So far, so good... I've wrote a letter to AuthenTec and they proposed to send AES2550 or AES2810 scanner to me. I chose AES2550. Actually, AES2550 and AES2810 are pretty same (AES2550 driver should work with AES2810), the only difference is missing crypto engine on AES2550 (who needs cryptography anyway? :)) So, I've got parcel with scanner in August, but unfortunately had no spare time for hacking, I only coded driver stub and read datasheet from AuthenTec. So, in September/October I've spent few (5-6?) nights hacking on this driver, and finally got it working on my AES2550. Image quality is much better then on my AE...

Reboot instead of shutdown issue

Recently hit subj issue on 2 PCs, on 2 different distros: ubuntu 12.04 on my sister's nettop current archlinux on my mother's-in-law PC Here're symptoms: PC shutdowns on poweroff command and then immediately turns on. Sounds weird, right? It turned out that cause is forcedeth driver (both PCs are based on nVidia chipset). I suspect it's somehow related to WoL implementation (however there's not WoL packets in my network for sure - local segment contains only router + 1-2 PCs). Solution is to 'rmmod forcedeth' somewhere on shutdown path. Can't investigate this issue more broadly, I've no permanent access to those PCs :) But some forcedeth dev is guilty for sure

fheroes2 on zipit

Image
Just got fheroes2 running on z2. Rays of hate to the author for "-I$(PREFIX)/include" in Makefile. PREFIX is usually /usr, so it pulled headers from host and produced weird compile errors. It took half a day to debug and fix it. You'll need data and maps from original heroes 2 in /root/.fheroes2 to play. As usual, here's screenshot: Btw, I've moved to gcc-4.6, so don't forget to get updated openwrt .config Binaries are here: uImage rootfs

More stuff for openwrt

Image
Recently I added scummvm, mplayer (for zipit), netsurf, mouse-emul packages to openwrt-zipit, all this stuff is in my github repos. Also there's a package with cyrillic layout. Btw, here's guide to mouse-emul usage: option key toggles "mouse" mode, in "mouse" mode: "stop" - right button "enter" (on joystick) - left button joystick - moves cursor "prev" - "f1" "next" - "f5" "q" - "1" You can change behavior by editing /etc/mouse-emulrc Update:  here're binaries:  kernel  and  rootfs Screenshots:

openwrt for Zipit Z2

Spent some time hacking on openwrt for Zipit Z2.  It's highly based on projectgus work, so thanks in advance to him ;) I've just integrated 3.2 kernel into it, made libertas work prorerly with nl80211, also hacked some packages (gmenu2x, mocp, gmu) to work properly on Z2. Basically, it works :) Here's short manual how to compile it: mkdir ~/zipit cd ~/zipit git clone git://github.com/anarsoul/openwrt-zipit.git git clone git://github.com/anarsoul/openwrt-packages.git git clone git://github.com/anarsoul/qi-openwrt-packages.git cd openwrt-zipit echo "src-link qipackages $HOME/zipit/qi-openwrt-packages" >feeds.conf echo "src-link packages $HOME/zipit/openwrt-packages" >>feeds.conf wget https://github.com/downloads/anarsoul/openwrt-zipit/.config make package/symlinks Now you can 'make menuconfig' and select/deselect packages you want (press M on package to build as package, but do not install in default rootfs) Then just ...