예제 #1
0
 def findLockersUnit(self):
     if not self.nandonly:
         return
     for i in xrange(96,128):
         for ce in xrange(self.nCEs):
             s, d = self.readBlockPage(ce, 1, i)
             if d and check_effaceable_header(d):
                 print "Found effaceable lockers in ce %d block 1 page %d" % (ce,i)
                 return d    
예제 #2
0
파일: nand.py 프로젝트: prachetas/hacks
 def findLockersUnit(self):
     if not self.nandonly:
         return
     for i in xrange(96, 128):
         for ce in xrange(self.nCEs):
             s, d = self.readBlockPage(ce, 1, i)
             if d and check_effaceable_header(d):
                 print "Found effaceable lockers in ce %d block 1 page %d" % (ce, i)
                 return d
예제 #3
0
    def findLockersUnit(self):
        if not self.nandonly:
            return
        for ce in xrange(0,self.nCEs):
            for block in xrange(4):#XXX: hax
                plog = self.partition_scheme.readPartitionBlock("plog", ce, block)
                for i in xrange(128):
                    d = plog[i*self.bootloaderBytes:(i+1)*self.bootloaderBytes]

                    if d and check_effaceable_header(d):
                        print "Found effaceable lockers in ce %d block %d (XXX possibly remapped) page %d" % (ce,block,i)
                        return d