FSConfig.py (9489:172dbcb74a0e) FSConfig.py (9539:0ac00d9a8aaf)
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
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, bare_metal=False):
230def makeArmSystem(mem_mode, machine_type, mdesc = None, dtb_filename = None,
231 bare_metal=False):
231 assert machine_type
232
233 if bare_metal:
234 self = ArmSystem()
235 else:
236 self = LinuxArmSystem()
237
238 if not mdesc:

--- 35 unchanged lines hidden (view full) ---

274 if bare_metal:
275 # EOT character on UART will end the simulation
276 self.realview.uart.end_on_eot = True
277 self.physmem = SimpleDDR3(range = AddrRange(Addr(mdesc.mem())),
278 zero = True)
279 self.mem_ranges = [self.physmem.range]
280 else:
281 self.kernel = binary('vmlinux.arm.smp.fb.2.6.38.8')
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
282 self.machine_type = machine_type
283 if convert.toMemorySize(mdesc.mem()) > int(self.realview.max_mem_size):
284 print "The currently selected ARM platforms doesn't support"
285 print " the amount of DRAM you've selected. Please try"
286 print " another platform"
287 sys.exit(1)
288
289 boot_flags = 'earlyprintk console=ttyAMA0 lpj=19988480 norandmaps ' + \

--- 281 unchanged lines hidden ---
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 ---