Keep Da Link

To content | To menu | To search

User - akh

Entries feed - Comments feed

-->

Jan. 5, 2012

compile and run xv6 on Mac Os X 6.828

The MIT has created xv6: an operating system for learning purpose

This works better and takes less time to create a working environnement for xv6 on Mac Os X, than the recommandations proposed on Tools used in 6.828 simply run this 

port install i386-elf-gcc
port install qemu

And change the Makefile like this:

-#TOOLPREFIX = i386-jos-elf-
+TOOLPREFIX = i386-elf-
 
-#QEMU = 
+QEMU = /opt/local/bin/qemu-system-i386
 
-CC = $(TOOLPREFIX)gcc
+CC = $(TOOLPREFIX)gcc-4.3.2

Here is a working gdb binary simply bunzip2 it then invoke it from the xv6 directory souce tree, (tested on osx Lion).

make qemu will compile and run xv6 in qemu

make qemu-dbg will run xv6 in debug mode, run gdb-target-i386-elf and c for continue

Enjoy, thanks MIT.

Continue reading...

Nov. 15, 2011

compile gevent on OSX or FreeBSD with pip

It's more a reminder to myself, gevent depends on libevent2 but the setup.py doesn't correcty look for it, a simple solution:

export CFLAGS=-I/usr/local/include
export LDFLAGS=-L/usr/local/lib
pip install gevent

change it for /opt/local/... if you are on OSX or you will get a bunch of errors

   /Developer/usr/bin/llvm-gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -pipe -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c gevent/core.c -o build/temp.macosx-10.7-x86_64-2.7/gevent/core.o
    In file included from gevent/core.c:225:
    gevent/libevent.h:9:19: error: event.h: No such file or directory
    gevent/libevent.h:38:20: error: evhttp.h: No such file or directory
    gevent/libevent.h:39:19: error: evdns.h: No such file or directory

By the way here is the ultimate stacks for python web dev ;)

pip install flask 
pip install requests
export CFLAGS=-I/usr/local/include
export LDFLAGS=-L/usr/local/lib
pip install gevent
pip instal ujson
pip install validictory

Oct. 14, 2011

FreeBSD 9.0 guest with virtio support in KVM

Performance are really bad for FreeBSD in KVM, one solution is to use paravirtualized driver, virIO.

Continue reading...

Install FreeBSD 9.0 with ZFS root

The "new" FreeBSD installer does not give you the options to simply install ZFS as root, so sad, here is how to do it.

Continue reading...

Aug. 31, 2011

Gimp 2.7.3 on OSX

Gimp 2.7.3 has been released but no one ports it to OSX already here is an ugly working way.

 

EDIT: The macport is now up to date so no need to do this anymore !

Continue reading...

Aug. 16, 2011

Enhance your Python

Nohting new here but a list of what you should read to be a better Python developer, for intermediate and advanced Pythoners, in no particular order.

Continue reading...

March 31, 2011

(Re)Discovering FreeBSD and ZFS

Since Sun's killers euh Oracle shutdown OpenSolaris, FreeBSD is becoming more and more attracting with ZFS port, you should really give it a try (We are back baby).

Here is a fast installation of FreeBSD with a ZFS root.

Continue reading...

Feb. 2, 2011

Gentoo lvm+raid root

Gentoo support for lvm root is still a pain in the ass, here is a working solution.

Continue reading...

Jan. 28, 2011

An amazing piece of electonic

Sparkfun and others sell a 434Mhz transmitter and a receiver for €2.88 and €3.61.

This version receives at 2400bauds but there is a 4800 bauds version.
Simply connect the transmitter to an arduino pin then your are done (almost).

My first try was to follow the example from sparkfun, which simply read a value from the receiver:

// read in values, debug to computer

if (Serial.available() > 0) {

  incomingByte = Serial.read();

  Serial.println(incomingByte, DEC);

This has collected a ton of garbage (without emitting).

The answer was to use OpenWire an amazing piece of software ... that handles checksuming for you, just connect to your arduino pin 12 for TX, and 11 for RX then you are done ! 
This is working like a charm in all my house without requiring any antennas.

You can get all your Arduinos connected for less than 7€ !

PS: Sparkfun are great dealers this parts was missing in the first shipping they send it again in priority mail: 48 hours from USA to France ;)

 

Jan. 19, 2011

All my digital life

In a tag cloud !

 

Continue reading...

- page 1 of 24 -