1# Copyright (c) 2010-2012 ARM Limited 2# All rights reserved. 3# 4# The license below extends only to copyright in the software and shall 5# not be construed as granting a license to any other intellectual 6# property including but not limited to intellectual property relating 7# to a hardware implementation of the functionality of the software 8# licensed hereunder. You may use the software subject to the license --- 213 unchanged lines hidden (view full) --- 222 self.nvram_bin = binary('nvram1') 223 self.hypervisor_desc_bin = binary('1up-hv.bin') 224 self.partition_desc_bin = binary('1up-md.bin') 225 226 self.system_port = self.membus.slave 227 228 return self 229 |
230def makeArmSystem(mem_mode, machine_type, mdesc = None, dtb_filename = None, 231 bare_metal=False): |
232 assert machine_type 233 234 if bare_metal: 235 self = ArmSystem() 236 else: 237 self = LinuxArmSystem() 238 239 if not mdesc: --- 35 unchanged lines hidden (view full) --- 275 if bare_metal: 276 # EOT character on UART will end the simulation 277 self.realview.uart.end_on_eot = True 278 self.physmem = SimpleDDR3(range = AddrRange(Addr(mdesc.mem())), 279 zero = True) 280 self.mem_ranges = [self.physmem.range] 281 else: 282 self.kernel = binary('vmlinux.arm.smp.fb.2.6.38.8') |
283 if dtb_filename is not None: 284 self.dtb_filename = dtb_filename |
285 self.machine_type = machine_type 286 if convert.toMemorySize(mdesc.mem()) > int(self.realview.max_mem_size): 287 print "The currently selected ARM platforms doesn't support" 288 print " the amount of DRAM you've selected. Please try" 289 print " another platform" 290 sys.exit(1) 291 292 boot_flags = 'earlyprintk console=ttyAMA0 lpj=19988480 norandmaps ' + \ --- 281 unchanged lines hidden --- |