Skip to content

About

Read and reset the u-boot 'bootcount' register on TI am33xx

Resources

Stars

0 stars

Watchers

1 watching

Forks

 
 

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

U-Boot Davinci Bootcount Manager

U-Boot implements a boot count scheme that can be used to detect multiple failed attempts to boot Linux. On Davinci (TI AM 335x) the bootcount is stored in the RTC SCRATCH2 register. However there's no way to read or write this register from userspace. This tool provides a means to read and write the bootcount value.

Usage

If invoked without any args, bootcount will read and print the current value to stdout. When passing the -r flag, it will reset the bootcount value

~ # bootcount
42
~ # bootcount -r     # <-- prints nothing to stdout, exit code 0 means success
~ # bootcount
0
~ #

Building

Assuming you're doing a cross-build from x86 host to ARM target:

./autogen.sh
./configure --host=arm-linux-gnueabihf --prefix=/usr
make
make install DESTDIR=$LOCATION_OF_CHROOT

Further Reading

About

Read and reset the u-boot 'bootcount' register on TI am33xx

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages