[PATCH] Adding password protection to U-boot

Francesco Albanese frances.albanese at gmail.com
Tue Jun 10 17:20:17 CEST 2008


Hello,

this is a patch for u-boot1.3.2rc2 compiled and patched using
MMakefile. I've added a new command "lock" for setting a password to
lock/unlock the access to the terminal and prevent flashing the device
via DFU.

Features:

- Password stored as SHA256 non-salted hash and written in the env
var. partition (a salting method can be added afterwards)
- If the password is set, user is prompted for a password after a
serial connection is established
- If the device is locked down, a DFU flashing attempt will produce an
on-screen error on the Neo
- uncomment _USE_PASSWORD in password.h to activate this patch

Comments are welcome,


F.Albanese
-------------- next part --------------
A non-text attachment was scrubbed...
Name: u-boot-password_hack.patch
Type: text/x-patch
Size: 51080 bytes
Desc: not available
Url : http://lists.openmoko.org/pipermail/openmoko-devel/attachments/20080610/4630076a/attachment-0001.bin 


More information about the openmoko-devel mailing list