Linux Embedded Tips

Enable Javascript to display Table of Contents.

U-Boot Version from Userspace

A method to read U-Boot version from userspace
#!/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
source: odroid.com

Monitor Progress of DD

$ dd if=raspbian-buster-light.img | pv | dd of=/dev/sdb
560MiB 0:34:02 [241KiB/s] [            <=>            ]
Source: stackoverflow.com