Raspberry PI: Cross compiling the KNX/EIB eibd

Hello,

if you want to use the Raspberry PI as a EIB/KNX Gateway or Tunnel you must compile the eibd sources from the scratch, because no precomplied binaries are currently available.

There are two ways to build the eibd. Compiling directly on the Raspberry PI or you compile it on your i386 PC. The last option means you have to “cross” compile the sources, because the RapsberryPi has a different processor architecture than your Intel/AMD PC. Here are the steps to build the eibd on an i386 using a crosscompiler for the ARM architucture.

I verfied the steps at a minimal debian system in a VirtualBox. So it is reproducible:-)

Install all necessary packages. Login as root

apt-get -y install git rsync cmake make gcc g++ binutils automake flex bison patch
Now you can Login as a “normal” user. Define a working folder
export BUILD_PATH=~/eibdbuild
mkdir -p $BUILD_PATH
cd $BUILD_PATH
We need a cross compiler respectively the toolchain for the arm1176jzf arm processor.
Continue reading Raspberry PI: Cross compiling the KNX/EIB eibd

Advertisment to support michlstechblog.info

Linux: Multiple ways to mount a partition in a disk image file

Hi,

there are several ways to mount a partition which is within a diskimage file created for example with dd.

The first and hard way  is to determine the offset of the partition start sector and mounting the disk by specifing the offset as parameter for the loop device.

You can use the  file or fdisk command to examine the file.
root@ubdev:/mnt/RaspberryPI # file 2012-07-15-wheezy-raspbian.img
2012-07-15-wheezy-raspbian.img: x86 boot sector; partition 1: ID=0xc, starthead 130, startsector 8192, 114688 sectors; partition 2: ID=0x83, starthead 165, startsector 122880, 3665920 sectors, code offset 0xb8

or

root@ubdev:/mnt/RaspberryPI # fdisk 2012-07-15-wheezy-raspbian.img

Command (m for help): p

Disk 2012-07-15-wheezy-raspbian.img: 1939 MB, 1939865600 bytes
255 heads, 63 sectors/track, 235 cylinders, total 3788800 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000714e9

Device Boot                               Start         End      Blocks   Id  System
2012-07-15-wheezy-raspbian.img1            8192      122879       57344    c  W95 FAT32 (LBA)
2012-07-15-wheezy-raspbian.img2          122880     3788799     1832960   83  Linux

For example the startsector of partition 2 is 122880,  this multiplied with the 512 bytes per sector is the byte offset of the partition. 122880*512=62914560.
Continue reading Linux: Multiple ways to mount a partition in a disk image file

Windows: Change the Volume Serial Number of a partition or volume

Hi,

for some migration scenarios it is nesseccary to set Volume Serial Number of a partition or volume. For example when you move  a license manager to a new hardware and the licenses are bound to the disk serial.
Continue reading Windows: Change the Volume Serial Number of a partition or volume

Fritz!box: Einrichten für Internettelefonie der Telekom

Hallo,

die Telekom drängt Ihre Kunden immer mehr weg von den alten analogen bzw. ISDN basierten Telefondiensten hin zu den neuen auf dem Internet aufbauenden Anschlüssen, auch VoIP (Voice over IP) genannt.

Das einrichten mit den von der Telekom favorisierten Speedport Routern klappt meist ohne Probleme. Nicht jeder will aber die Leihgebühr von ca 5€ jedes Monat aufbringen bzw. man möchte einen bereits vorhanden VoIP fähigen Router verwenden.  Hier steht man erstmal vor der Hürde der manuellen Konfiguration des SIP Dienstes.

Für eine Fritz!box sind folgende Schritte notwendig:

  • Update auf die aktuelle Firmware Version, dadurch wird die Liste der Internettelefonieanbieter akualisiert.
  • Einrichten des DSL Zugangs
  • Einrichten der Internet Telefonie

Continue reading Fritz!box: Einrichten für Internettelefonie der Telekom

Windows: Writing a new MBR an a USB Drive to boot Windows PE

Hi,

booting operating systems, such as linux live systems or Windows PE based installations (Windows Vista,7,8),  from a USB Drive or Stick is a nice featured.

Unfortunately each writes it own boot code to the MBR (Master boot record). The boot code of Windows PE 2 and later  loads \BOOTMGR, linux is usually loaded with \syslinux.

Well known linux installers like TUXBOOT, the Universal-USB-Installer or UNetBootin do updating the MBR by installing the syslinux bootloader.

To get the  Windows PE MBR back without formating the stick, do the following steps.
Continue reading Windows: Writing a new MBR an a USB Drive to boot Windows PE

My Knowledgebase for things about Linux, Windows, VMware, Electronic and so on…

Exit mobile version