-- 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:
Ready to use image
Can be found here:
- You will need a 16GB USB Stick to use this image!
- Ask Alexander Schwinn for the root-pw !
- Unzip and use dd to write the image to the stick
- 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:
iface enp8s0 inet dhcp
In order to create an image from a snapshot, some effort is required
- List virtual maschines
- "C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" list vms
- Figure out UUID of current Snapshot ( Here for "Debian-SCU" )
- "C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" showvminfo --details Debian-SCU | findstr SATA
- 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.