Skip to content

Instantly share code, notes, and snippets.

# U-boot mtest usage
mtest <start> <end> <pattern> <iterations>
Ex:
mtest 0x82000000 0x83000000 0xaa55aa55 1
# Select the i2c bus
i2c dev <bus>
i2c dev 0
# Probe the device
i2c probe <chip>
i2c probe 0x60
# Read from the device
i2c read <chip> <chip address> <length> <memory address>
# Edit /etc/systemd/journal.conf and set the following options to prevent the creation of .journal files and to forward messages to syslog:
Storage=none
ForwardToSyslog=yes
# Check if syslog.service is a sym-link to /dev/null and remove it if so
$ ls -l /lib/systemd/system/syslog.service
$ rm /lib/systemd/system/syslog.service
# Unmask the syslog service so that it can be started
$ systemctl unmask syslog.service