Friday, March 23, 2012
Monday, October 11, 2010
gentoo mount from sysrccd
swapon /dev/sda2
mount /dev/sda3 /mnt/gentoo
mount /dev/sda1 /mnt/gentoo/boot
mount -t proc proc /mnt/gentoo/proc
mount -o bind /dev/ /mnt/gentoo/dev
Once inside the chroot you need to run
chroot /mnt/gentoo /bin/bash
env-update
source /etc/profile
mount /dev/sda3 /mnt/gentoo
mount /dev/sda1 /mnt/gentoo/boot
mount -t proc proc /mnt/gentoo/proc
mount -o bind /dev/ /mnt/gentoo/dev
Once inside the chroot you need to run
chroot /mnt/gentoo /bin/bash
env-update
source /etc/profile
Friday, March 26, 2010
gcc in windows (test on xp)



Warning: this is not for NooBs
Do this at your own risk.
get gcc for windows
http://gcc.gnu.org/install/binaries.html
download and install
Microsoft Windows:
* The Cygwin project;
* The MinGW project.
set the path in environmental variables:
;C:\MinGW\bin;
put c code in a folder
c:\mkdir ccode
// put this code in that folder
<> >gcc on windows (tested on windows xp)
pu c code in this folder
c:\mkdir ccode
// put this code in that folder
//start of hello world "hello.c"
#include <stdio.h>
int main (void)
{
printf ("Hello, world!\n");
return 0;
}
// end of code hello.c
to compile:
cd c:\ccode\
c:\gcc hello.c -o hello
to run
c:\hello
// here's some simple math code
//program1.c
#include <stdio.h>
#include <math.h>
int main(void)
{
printf("%.0f\n", sqrt(4));
return 0;
}
//make sure to add a new line at the end
Wednesday, December 2, 2009
sync thunderbird with ipone
http://blog.marc-seeger.de/2008/09/30/google-calender-iphone-thunderbird-and-contacts
Sunday, August 30, 2009
Friday, May 22, 2009
SUMO AVENTURE

This blog is intented for the documention of my development of a SUMOBOTS
Here's a Kamiakin HS SUMO
http://school.ksd.org/
I'm beginning by trying to connect to the ATMEL8 chip using a usb device.
Presenlty I'm using the following test interface:
Thursday, May 21, 2009
ATMEL AVR USB using Gentoo Linux
This entry is intended to document my development of an Atmel AVR Atmega8 USB interface using Gentoo Linux.
I've installed "avrdude" and the avrusb utilities. Here are a few links:
AVR Setup
http://www.ladyada.net/learn/avr/setup-unix.html
AVR DUDE
http://www.ladyada.net/learn/avr/avrdude.html
I'm presently using a protostack.com usb interface and a protostack development board.
This is my current error:cwc@tma ~/avrdude $ avrdude -c usbasp -p atmega8 -U flash:w:test_leds.hex
avrdude: error: programm enable: target doesn't answer. 1
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
avrdude done. Thank you.
I'm going to check my solder job on the dev boards.
I've installed "avrdude" and the avrusb utilities. Here are a few links:
AVR Setup
http://www.ladyada.net/learn/avr/setup-unix.html
AVR DUDE
http://www.ladyada.net/learn/avr/avrdude.html
I'm presently using a protostack.com usb interface and a protostack development board.
This is my current error:cwc@tma ~/avrdude $ avrdude -c usbasp -p atmega8 -U flash:w:test_leds.hex
avrdude: error: programm enable: target doesn't answer. 1
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
avrdude done. Thank you.
I'm going to check my solder job on the dev boards.
Subscribe to:
Posts (Atom)
