Rndis support for OpenBSD

February 27, 2010
Tags: ,

Based on an initial work of mk@, we (Fabien and I) start working on rndis over usb support for OpenBSD.
After some work we finally ping google with the htc hero :)

OpenBSD

Rndis debug on OpenBSD


rndis0 at uhub0 port 7 configuration 1 interface 0 "HTC Android Phone" rev 2.00/1.00 addr 2
rndis0: address 4e:f0:87:ae:15:e8

# dhclient rndis0
DHCPREQUEST on rndis0 to 255.255.255.255 port 67
DHCPREQUEST on rndis0 to 255.255.255.255 port 67
DHCPDISCOVER on rndis0 to 255.255.255.255 port 67 interval 3
DHCPOFFER from 192.168.100.254 (16:5a:55:9f:9d:fb)
DHCPREQUEST on rndis0 to 255.255.255.255 port 67
DHCPACK from 192.168.100.254 (16:5a:55:9f:9d:fb)
bound to 192.168.100.100 — renewal in 432000 seconds.
# ping www.google.fr
PING www.l.google.com (209.85.229.99): 56 data bytes
64 bytes from 209.85.229.99: icmp_seq=0 ttl=52 time=37.823 ms
64 bytes from 209.85.229.99: icmp_seq=1 ttl=52 time=37.363 ms
64 bytes from 209.85.229.99: icmp_seq=2 ttl=52 time=37.712 ms
— www.l.google.com ping statistics —
3 packets transmitted, 3 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 37.363/37.632/37.823/0.297 ms
#

Edit : The diff was commited : http://marc.info/?l=openbsd-cvs&m=126748674430960&w=2, thanks mk !

2

dmesg fun with graphviz

February 20, 2010

A small post about my graphviz / dot experiments.

Circular view :

dmesg

Classic view :

dmesg2

Click on the pictures to see them full size (Be warned of the size).
The python script needs to be polished. I will publish it as soon as it is finished.

1

Chromium @ OpenBSD

December 24, 2009

I just give a try to chromium port under OpenBSD on my i7 running amd64 -current, sudo pkg_add chromium.

And it works fine, pics or that didn’t happen :

chrome openbsd

chrome3

2

Working on OpenBSD malloc

November 14, 2009
Tags: ,

Fabien and I have noticed bad performance on free, so we decited to work on openbsd malloc and
contacted otto@, following a nice diff, hich now has been commited, we will write a complete paper on it soon,

stay tuned !

http://marc.info/?l=openbsd-cvs&m=125719025108902&w=2
http://marc.info/?l=openbsd-cvs&m=125935234526206&w=2
http://marc.info/?l=openbsd-cvs&m=125935243126319&w=2
http://marc.info/?l=openbsd-cvs&m=125935317527085&w=2

0

Three screens, 2 computers = fun

November 1, 2009

Nowadays, I would like to use my 3 dell 17″ screen, but I was bored because Xorg multicard was broken for a while. After some google I found x2x, and I ask todd@ who said is working fine, so I give it a shot.

Here is my installation :

x2x installation

The laptop is connect to a dock, itself connected to an external screen.
The desktop is a classical computer, with mouse, keyboard and 2 screens.


laptop # pkg_add x2x
laptop # echo "X11Forwarding yes" >> /etc/ssh/sshd_config
desktop $ ssh -X dbd@laptop "x2x -west -to :0&" &

This give me a nice result, and even the clipboard is shared ! :
Three screens

0

Playing under OpenBSD part 1 : Old school style

April 26, 2009

Metal Slug X

Some times ago, I was nostalgic about old games so I decided to try both emulation and game-pad support.

The beginning of the adventure was to compile and try Sdlmame and Sdlmess, fortunatly Pierre Riteau was smart enough to answer all my questions, so I got some good result and I was able to play Metal Slug and Alex Kid.

Some random tips:

  • Use opengl mode if you can, it is a lot faster (-video opengl)
  • To have the good keymap use “-keymap -keymap_file /usr/local/share/sdlmame/keymaps/km-LANG.txt

The second step was to play with a game-pad, so I searched the mailing list and found that the Logitech DualAction was working fine under OpenBSD.

I got one easily. If you want one it costs about 25 € in the market, I’ve tried the Logitech RumblePad and it works fine too.

A bug prevents you to use the game-pad using the sdl{mame,mess} menu, you have to directly run the game because it is trying to detect twice the game-pad and cannot see it the second time. For example, to run metal slug X I use :

sdlmame -keymap -keymap_file /usr/local/share/sdlmame/keymaps/km-fr.txt -video opengl mslugx

xrandr

As I was going to a friend house, we decided to get some real fun, we had two gamepads and

we just replaced the PS3 with an OpenBSD box on the tv (it has a VGA connector), add some xrandr magic and you got a nice gaming screen.

Finally you got a nice gaming station, thanks to Pierre Riteau for the port and the answers, oga@ for his DRM/DRI work and Fabien for the hosting and the tv.

Metal Slug X under OpenBSD

2

Aucat, “it just works !”

January 12, 2009

I want to be able to use a few softwares with the sound at the same time and OpenBSD just got it, the new sound server which starts as complicated as aucat -l and which just works with an incredible lightness :

25024 dbd 3:04  1.00% aucat

I use sndio output for xmms, sdl and vlc.

I think that I need to offer some beer to ratchov@ (I’ve just seen that he’s living in the same city than I do).



0

GNS3 update

January 12, 2009
Tags: , ,

My GNS3 0.6 update hit the ports tree !

Like sthen@ noticed, GNS developpers forgot to raise version number in setup.py so we had to add a little hack in the makefile :

MODPY_EGG_VERSION=	0.5
V=			0.6
DISTNAME=		GNS3-$V-src
PKGNAME=		gns3-$V
0

Keep the fish fresh (-current)

March 23, 2008

A nice webpage with the mirrors freshness, written landry@ on the pig bark website :
Up2date

To follow the commit every 3 minutes *bsd :
Freshbsd

Fish is even better when fresh …

0

Compositing test

February 1, 2008

On my laptop (sous OpenBSD (4.2 -current) what else ?),  intel GMA 945GMS

test de composite

xfce compositing

0