root@odroid64:/home/odroid# vi getUbootVer.sh #!/bin/sh dd if=/dev/mmcblk0 of=/tmp/temp.bin bs=512 skip=97 count=1334 status=none grep -a -r -E -o ".{0,0}U-Boot 2015.01.{0,50}" /tmp/temp.bin | grep -a "(" rm /tmp/temp.bin root@odroid64:/home/odroid# chmod a+x getUbootVer.sh root@odroid64:/home/odroid# ./getUbootVer.sh U-Boot 2015.01-00167-g095fdbe-dirty (Nov 12 2016 - 16:35:32)