howto build the build environment
Sid
- install cowbuilder / git-buildpackage / debootstrap
apt-get install cowbuilder git-buildpackage debootstrap
- Create cowbuilder image
sudo cowbuilder --create --basepath=/var/cache/pbuilder/base-sid.cow --mirror http://ftp.de.debian.org/debian --distribution sid
- Try to login (and out if it works):
sudo cowbuilder --login --basepath=/var/cache/pbuilder/base-sid.cow
- Configure git-build-package in ~/.gbp.conf (fetch Guido's gbp.conf and change the keyid)
wget https://honk.sigxcpu.org/piki/projects/git-buildpackage/gbp.conf mv gbp.conf ~/.gbp.conf
- Now you can build your stuff from a git-import-orig / git-import-dsc created git repository. (wah, hennr, is gar nicht so kompliziert :P).
mschmi@proxmox-mschmi:~/hennr/flare$ git branch * master upstream mschmi@proxmox-mschmi:~/hennr/flare$ git-pbuilder WARNING: not invoked by git-buildpackage. W: /home/mschmi/.pbuilderrc does not exist I: using cowbuilder as pbuilder
Ubuntu Oneiric Ocelot
- install cowbuilder / git-buildpackage / debootstrap from Sid so debootstrap know about the newest Ubuntu version
apt-get install cowbuilder git-buildpackage debootstrap
- Fetch the release archive keys
wget http://ftp.halifax.rwth-aachen.de/ubuntu/project/ubuntu-archive-keyring.gpg sudo cp ubuntu-archive-keyring.gpg /usr/share/keyrings/
- Create a Ubuntu Oneiric Ocelot image :
sudo cowbuilder --create --basepath=/var/cache/pbuilder/base-oneiric.cow --mirror http://ftp.halifax.rwth-aachen.de/ubuntu/ --distribution oneiric --components "main universe" --debootstrapopts --keyring=/usr/share/keyrings/ubuntu-archive-keyring.gpg
Schmierzettel for jboss-packaging
Notiz
* Im Master fehlen: antlr, aopalliance * Im Master zuviel: apache-xmlsec, commons-logging, console, log4j, sun-servlet, xml-apis (allerdings alles nur component-info.xml, keine jars in den Verzeichnissen)
package jbosass5
- Importing the new upstream tarball to the branch "upstream_jboss.org"
$ git-import-orig --upstream-branch=upstream_jboss.org --debian-branch=upstream_jboss.org --upstream-tag=upstream_jboss.org/5.1.0.GA --upstream-version=5.1.0.GA ../jboss-5.1.0.GA-src.tar.gz
Checkout branch "upstream", merge the "upstream_jboss.org" and move the thirdparty/ directory out (we need this later )
git checkout upstream git merge upstream_jboss.org cp thirdparty/ ../ git rm -r thirdparty
- Tag the "upstream_jboss.org" and "upstream"
Wissenschon'
- Merge upstream to master and build package
git checkout master git merge upstream git-buildpackage
package jbosass5-libs
- Rename and pack the copied thirdparty-directory
mkdir jbossas-libs mv thirdparty jbossas-libs/libs tar -czf jbossas5-libs_5.1.0.GA.tar.gz jbossas-libs/
- Import the tarball to the branch "upstream_jboss.org"
git-import-orig --debian-branch=upstream_jboss.org --upstream-branch=upstream_jboss.org --upstream-tag=upstream_jboss.org/5.1.0.GA --upstream-version=5.1.0.GA ../jbossas5-libs_5.1.0.GA.tar.gz
- Merge "upstream_jboss.org" to "upstream"
git checkout upstream git merge upstream_jboss.org
Using usbfoo on Debian
What is USBfoo?
Its a small board with an AVR AT90USB162 and a USB interface (kernel concepts: http://shop.kernelconcepts.de/product_info.php?cPath=1_27&products_id=102).
Dokumentation: http://www.home.unix-ag.org/simon/files/usbfoo-brd.png
Programmable with LUFA (Lightweight USB Framework for AVRs, formerly known as MyUSB) http://www.fourwalledcubicle.com/LUFA.php.
- Note to myself: file rfp / itp for lufa.
- Needs:
aptitude install avr-gcc dfu-programmer avr-libc
Connection hardware
- Solder a bridge on the backside of the board to set the power supply mode.
- Insert an usb cable and connect to the host
- dmesg says
[20622.464064] usb 3-1: new full speed USB device using uhci_hcd and address 10 [20622.642160] usb 3-1: New USB device found, idVendor=03eb, idProduct=2ffa [20622.642169] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [20622.642176] usb 3-1: Product: AT90USB162 DFU [20622.642180] usb 3-1: Manufacturer: ATMEL [20622.642185] usb 3-1: SerialNumber: 1.0.5 [20622.642421] usb 3-1: configuration #1 chosen from 1 choice
Compile software, program and run
- Create a small program.c :
#include <avr/io.h> int main (void) { /* set data direction register d to output */ DDRD = 0xff; /* set port d to 0x00 this activates the red led on the board */ PORTD = 0x00; /* loop until reset */ while(1) { /* narf! */ } /* this will never reached */ return 0 }
- Compile with avr-gcc
avr-gcc -Wall -mmcu=at90usb162 program.c -o program
- Create a HEX to flash into the device
avr-objcopy program -O ihex program.hex
- Flash into the device (think about permissions, sudo...):
dfu-programmer at90usb162 erase dfu-programmer at90usb162 flash program.hex
- After the flashing press the reset button and your program runs (red led on)
- To reprogram bring usbfoo in programming mode: press reset, press hwb, release reset, release hwb. Now you should see the same dmesg message as before.
tuxdroid
http://svn.tuxisalive.com or https://sourceforge.net/projects/tux-droid/
- compile software_suite_v1/daemon/ needs libusb-dev
Monitoring
- Start with a minimal Debian squeeze installation.
Install Icinga and ?NagVis (and the needed data base / web server)
apt-get install icinga icinga-idoutils mysql-server nagvis apache2 --no-install-recommends