#4536 HIGH Never A: Current suspend/resume count should be encoded in CMOS for mfgtest.

Zarro Boogs per Child bugtracker at laptop.org
Wed Oct 31 15:05:19 EDT 2007


#4536: Current suspend/resume count should be encoded in CMOS for mfgtest.
------------------------------------+---------------------------------------
  Reporter:  cjb                    |       Owner:  dwmw2         
      Type:  defect                 |      Status:  assigned      
  Priority:  high                   |   Milestone:  Never Assigned
 Component:  manufacturing process  |     Version:                
Resolution:                         |    Keywords:                
  Verified:  0                      |  
------------------------------------+---------------------------------------

Comment(by dwmw2):

 Write $count to CMOS:
 {{{
 echo -en $(printf %08x $count | sed
 's/\(..\)\(..\)\(..\)\(..\)/\\x\4\\x\3\\x\2\\x\1/') | dd bs=1 count=4
 of=/dev/nvram seek=$((0x22)) 2>/dev/null
 }}}

 Read $count from CMOS:
 {{{
 count=$(dd if=/dev/nvram bs=1 count=4 skip=$((0x22)) 2> /dev/null | od -A
 none -t d4)
 }}}

-- 
Ticket URL: <https://dev.laptop.org/ticket/4536#comment:3>
One Laptop Per Child <https://dev.laptop.org>
OLPC bug tracking system



More information about the Bugs mailing list