Deleted Added
sdiff udiff text old ( 10357:1aff1376921e ) new ( 10358:644b615fbe6a )
full compact
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

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

241 elif machine_type == "VExpress_EMM":
242 self.kernel = binary('vmlinux-3.3-arm-vexpress-emm-pcie')
243 else:
244 self.kernel = binary('vmlinux.arm.smp.fb.2.6.38.8')
245
246 if dtb_filename:
247 self.dtb_filename = binary(dtb_filename)
248 self.machine_type = machine_type
249 if convert.toMemorySize(mdesc.mem()) > int(self.realview.max_mem_size):
250 print "The currently selected ARM platforms doesn't support"
251 print " the amount of DRAM you've selected. Please try"
252 print " another platform"
253 sys.exit(1)
254
255 # Ensure that writes to the UART actually go out early in the boot
256 boot_flags = 'earlyprintk=pl011,0x1c090000 console=ttyAMA0 ' + \
257 'lpj=19988480 norandmaps rw loglevel=8 ' + \
258 'mem=%s root=/dev/sda1' % mdesc.mem()
259
260 self.mem_ranges = [AddrRange(self.realview.mem_start_addr,
261 size = mdesc.mem())]
262 self.realview.setupBootLoader(self.membus, self, binary)
263 self.gic_cpu_addr = self.realview.gic.cpu_addr
264 self.flags_addr = self.realview.realview_io.pio_addr + 0x30
265
266 if mdesc.disk().lower().count('android'):
267 boot_flags += " init=/init "
268 self.boot_osflags = boot_flags
269 self.realview.attachOnChipIO(self.membus, self.bridge)

--- 282 unchanged lines hidden ---