uboot
configuration uimage
file
scp <file(s)> hadaq@http://jspc29.x-matter.uni-frankfurt.de:/srv/www/htdocs/bitfiles
uimage
file, ≈3 MB: http://jspc29.x-matter.uni-frankfurt.de/bitfiles/dreamplug-uimage-04112013.tar.xz
system
tar ball, ≈1 GB: http://jspc29.x-matter.uni-frankfurt.de/bitfiles/dreamplug-system-01032016.tar.xz uimage
and the system
tar ball
mkfs.vfat
and mkfs.ext3
" "
as name
dreamplugCreateBootDeviceFunctionSet.sh
createBootDevicePartition
uimage
into the first partition
root
dev/sda
, there should be: /dev/sda
: createBootDevicePartition
source ~/dreamplugCreateBootDeviceFunctionSet.sh && target=<target> createBootDevicePartition
~/dreamplugCreateBootDeviceFunctionSet.sh
~/dreamplugRestoreLocalSystemFromExternal.sh
/proc/cmdline
root
mustn't be the internal /dev/sda2
/
as source for the system source
to be different
/dev/sda1
and /dev/sda2
/dev/sdX1
uimage
-d
: rsync with option --delete
, any other content on the target system will be erased
-v
: rsync with option --verbose
, (much) more output
-n
: rsync with option --dryRun
, do nothing, just simulate
target=<span style="font-style:italic;font-variant:small-caps;"><Your Target Device, e.g. </span>sdd> &&
cd $(mktemp -d) &&
wget -N http://jspc29.x-matter.uni-frankfurt.de/bitfiles/dreamplug-uimage-04112013.tar.xz &&
wget -N http://jspc29.x-matter.uni-frankfurt.de/bitfiles/dreamplug-system-01032016.tar.xz &&
scr=$(tar atf dreamplug-system-01032016.tar.xz | grep -w dreamplugCreateBootDeviceFunctionSet.sh) &&
tar axf dreamplug-system-01032016.tar.xz $scr &&
mv $scr $(basename $scr) && unset scr &&
. ./dreamplugCreateBootDeviceFunctionSet.sh &&
createBootDevicePartition &&
createBootDeviceMounts &&
tar Jxvf dreamplug-uimage-04112013.tar.xz -C /mnt/${target}1 &&
tar Jxvf dreamplug-system-01032016.tar.xz -C /mnt/${target}2 &&
createBootDeviceUnmounts
#optional: cd && rm -rf $OLDPWD
root
#if you want to get the newest/or dreamplugRestoreLocalSystemFromExternal.sh is not on the system
wget -N https://wiki.gsi.de/pub/Epics/DreamplugRollbackSystemAndUImage/dreamplugRestoreLocalSystemFromExternal.sh
#optional source
source=<Your source Device, e.g. sdb>
chmod u+x ./dreamplugRestoreLocalSystemFromExternal.sh &&
./dreamplugRestoreLocalSystemFromExternal.sh