-- Attention! Please read carefully before you decide to use this guide --

  • For development on a SCU which is located outside of GSI currently there is no solution available which is supported by IN
  • Debian is not supported by IN ! It will react in a different way and is not binary compartible. So first do your development on asl cluster and only port it to Debian later. Be aware that the timing behavior will be different!
  • There is as well the possibility to use IN.DosPendrive in combination with a CentOS Laptop for external development. However due to a lack of manpower, as well Laptops cannot be supported by IN. You have to install and maintain the OS and all required tools on your own
  • In the past there was a proposal by IN to maintain an official SCU image with runs developer tools, however so far this proposal was not agreed on by staff.

Instruction to create Debian USB-Stick which boots SCU from USB.

  • featuring etherbone, saftlib, pcie kernel driver, fesl, silecs, ...

  • First get Debian-stretch installer CD ( Take care to use a version which provides a rt-kernel! )
  • Boot some PC from that CD while your USB stick is in
  • Via the installer format the stick to ext4 and choose to write a root partition to it
    • Dont use a swap partition ! This only would make the stick die faster because it is written often and bring no real benefit.

// add non-free contrib to /etc/apt/sources.list and comment out the ref to the CD-image
apt-get install firmware-realtek openssh-server openssh-client build-essential colormake automake git subversion

// Follow the common instructions for creating a debian stick: https://www-acc.gsi.de/wiki/Frontend/CreateDebianUSBStickCommon

Ready to use image

Can be found here:
  • You will need a 16GB or bigger USB Stick to use this image!
  • Check the README inside the folder for details on how to make use of the image

Used Software:
  • EB/Saftlib/etc: Cherry (patched with Stefan's patch)
  • FESL: Master (rev 15627)
  • Silecs: gsi-2.0.2_centOS7
  • Kicker Software: SIS100InjKickerDU rev15653

Creation of USB-Stick image with Virtualbox

Installing stuff directly on a USB drive is very slow. Instead it is possible to use Virtual-Box in order to create an USB-Image. Like that as well snapshots can be done, which increases flixibility. ( Credits for this sections go to Detlev Penza! )
  • The virtual drive for a 16GB-Stick should be max. 14GB.
  • For remote accees, the ssh port should be forwarded to port 2222 of the host system.
  • In order to get the image to run on an scu, the following needs to be added in /etc/network/interfaces:
allow-hotplug enp8s0
iface enp8s0 inet dhcp

In order to create an image from a snapshot, some effort is required
  1. List virtual maschines
    • "C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" list vms
  2. Figure out UUID of current Snapshot ( Here for "Debian-SCU" )
    • "C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" showvminfo --details Debian-SCU | findstr SATA
  3. Create Image with correct UUID (Here UUID=aaaaaaaa-bbbb-cccc-dddd-eeeeeeee)
    • "C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" clonemedium aaaaaaaa-bbbb-cccc-dddd-eeeeeeee Debian-SCU.img --format RAW
In Windows one can than write the image with Win32DiskImager to the stick if localadmin permissions are set.

I Attachment Action Size Date Who Comment
0001-wishbone-changes-for-kernel-3.19.patchpatch 0001-wishbone-changes-for-kernel-3.19.patch manage 4 K 05 Dec 2017 - 16:30 AlexanderSchwinn etherbone patch to work with 4.9 kernel
Portmap3.PNGPNG Portmap3.PNG manage 107 K 13 Jun 2018 - 07:18 AlexanderSchwinn  
READMEEXT README manage 1 K 04 Jul 2022 - 07:25 AlexanderSchwinn  
This topic: Frontend > CreateDebianUSBStick
Topic revision: 04 Jul 2022, AlexanderSchwinn
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback