[U-Boot-Users] get a confirmation from user

Mike Frysinger vapier at gentoo.org
Fri Nov 9 22:19:56 CET 2007


some Blackfins have a small amount of One-Time-Programmable (OTP) memory on 
them.  the memory is not part of the Blackfin memory map, it can only be 
accessed via on-chip functions.  due to the nature of the memory (it cannot 
be reprogrammed) and the way the memory is handled/documented (it's pretty 
friggin confusing), i'd like to show a confirmation prompt to the user which 
explains what is going to happen (which can be bypassed with a --force option 
to the command for non-interactive sessions).

is there any common code to do this ?  or do i have to write the small while 
(1) { tstc()/getc()/ctrlc() } loop myself in order to get the "YES" string ?
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20071109/65a30dd2/attachment.pgp 


More information about the U-Boot mailing list