Example #1
0
class NandMemoryMapTestCase(unittest.TestCase):
    @classmethod
    def setUpClass(cls):
        bspconfig = '%s/bsp/mach/bspconfig' % devdir
        rrutils.config.get_global_config(bspconfig)
        rrutils.logger.basic_config(verbose=False)
        logger = rrutils.logger.get_global_logger('NandInstaller')
        logger.setLevel(rrutils.logger.DEBUG)

    def setUp(self):
        self._mmap = NandMemoryMap()

    def tearDown(self):
        pass

    def testGenerate(self):
        ipl_img = '%s/images/ubl_nand.nandbin' % devdir
        bootloader_img = '%s/images/bootloader.nandbin' % devdir
        kernel_img = '%s/images/kernel.uImage' % devdir
        fs_img = '%s/images/fsimage.uImage' % devdir
        fs_name = NandPartition.FILESYSTEM_UBIFS
        self._mmap.validate_config()
        self._mmap.generate(ipl_img, bootloader_img, kernel_img, fs_img,
                            fs_name)
        self._mmap.draw()
        self._mmap.save('%s/images/nand-mmap.config' % devdir)
class NandMemoryMapTestCase(unittest.TestCase):
    @classmethod
    def setUpClass(cls):
        bspconfig = "%s/bsp/mach/bspconfig" % devdir
        rrutils.config.get_global_config(bspconfig)
        rrutils.logger.basic_config(verbose=False)
        logger = rrutils.logger.get_global_logger("NandInstaller")
        logger.setLevel(rrutils.logger.DEBUG)

    def setUp(self):
        self._mmap = NandMemoryMap()

    def tearDown(self):
        pass

    def testGenerate(self):
        ipl_img = "%s/images/ubl_nand.nandbin" % devdir
        bootloader_img = "%s/images/bootloader.nandbin" % devdir
        kernel_img = "%s/images/kernel.uImage" % devdir
        fs_img = "%s/images/fsimage.uImage" % devdir
        fs_name = NandPartition.FILESYSTEM_UBIFS
        self._mmap.validate_config()
        self._mmap.generate(ipl_img, bootloader_img, kernel_img, fs_img, fs_name)
        self._mmap.draw()
        self._mmap.save("%s/images/nand-mmap.config" % devdir)
Example #3
0
 def setUp(self):
     self._mmap = NandMemoryMap()
 def setUp(self):
     self._mmap = NandMemoryMap()