Subversion Repositories freemyipod

Rev

Rev 173 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 173 Rev 174
Line 362... Line 362...
362
    
362
    
363
    def bootflashread(self, memaddr, flashaddr, size):
363
    def bootflashread(self, memaddr, flashaddr, size):
364
        """ Copies the data in the bootflash at 'flashaddr' of the specified size
364
        """ Copies the data in the bootflash at 'flashaddr' of the specified size
365
            to the memory at addr 'memaddr'
365
            to the memory at addr 'memaddr'
366
        """
366
        """
-
 
367
        return self.lib.monitorcommand(struct.pack("IIII", 22, memaddr, flashaddr, size), "III", (None, None, None))
367
    
368
    
368
    def bootflashwrite(self, memaddr, flashaddr, size):
369
    def bootflashwrite(self, memaddr, flashaddr, size):
369
        """ Copies the data in the memory at 'memaddr' of the specified size
370
        """ Copies the data in the memory at 'memaddr' of the specified size
370
            to the boot flash at addr 'flashaddr'
371
            to the boot flash at addr 'flashaddr'
371
        """
372
        """
-
 
373
        return self.lib.monitorcommand(struct.pack("IIII", 23, memaddr, flashaddr, size), "III", (None, None, None))
372
    
374
    
373
    def execfirmware(self, addr):
375
    def execfirmware(self, addr):
374
        """ Executes the firmware at 'addr' and passes all control to it. """
376
        """ Executes the firmware at 'addr' and passes all control to it. """
375
        return self.lib.monitorcommand(struct.pack("IIII", 24, addr, 0, 0), "III", (None, None, None))
377
        return self.lib.monitorcommand(struct.pack("IIII", 24, addr, 0, 0), "III", (None, None, None))
376
    
378