FSConfig.py (10667:e17949745150) FSConfig.py (10697:71c40e5c8bd4)
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

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

52
53class MemBus(CoherentXBar):
54 badaddr_responder = BadAddr()
55 default = Self.badaddr_responder.pio
56
57
58def fillInCmdline(mdesc, template, **kwargs):
59 kwargs.setdefault('disk', mdesc.disk())
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

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

52
53class MemBus(CoherentXBar):
54 badaddr_responder = BadAddr()
55 default = Self.badaddr_responder.pio
56
57
58def fillInCmdline(mdesc, template, **kwargs):
59 kwargs.setdefault('disk', mdesc.disk())
60 kwargs.setdefault('rootdev', mdesc.rootdev())
60 kwargs.setdefault('mem', mdesc.mem())
61 kwargs.setdefault('script', mdesc.script())
62 return template % kwargs
63
64def makeLinuxAlphaSystem(mem_mode, mdesc=None, ruby=False, cmdline=None):
65
66 class BaseTsunami(Tsunami):
67 ethernet = NSGigE(pci_bus=0, pci_dev=1, pci_func=0)

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

274
275 if dtb_filename:
276 self.dtb_filename = binary(dtb_filename)
277 self.machine_type = machine_type
278 # Ensure that writes to the UART actually go out early in the boot
279 if not cmdline:
280 cmdline = 'earlyprintk=pl011,0x1c090000 console=ttyAMA0 ' + \
281 'lpj=19988480 norandmaps rw loglevel=8 ' + \
61 kwargs.setdefault('mem', mdesc.mem())
62 kwargs.setdefault('script', mdesc.script())
63 return template % kwargs
64
65def makeLinuxAlphaSystem(mem_mode, mdesc=None, ruby=False, cmdline=None):
66
67 class BaseTsunami(Tsunami):
68 ethernet = NSGigE(pci_bus=0, pci_dev=1, pci_func=0)

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

275
276 if dtb_filename:
277 self.dtb_filename = binary(dtb_filename)
278 self.machine_type = machine_type
279 # Ensure that writes to the UART actually go out early in the boot
280 if not cmdline:
281 cmdline = 'earlyprintk=pl011,0x1c090000 console=ttyAMA0 ' + \
282 'lpj=19988480 norandmaps rw loglevel=8 ' + \
282 'mem=%(mem)s root=/dev/sda1'
283 'mem=%(mem)s root=%(rootdev)s'
283
284 self.realview.setupBootLoader(self.membus, self, binary)
285 self.gic_cpu_addr = self.realview.gic.cpu_addr
286 self.flags_addr = self.realview.realview_io.pio_addr + 0x30
287
288 if mdesc.disk().lower().count('android'):
289 cmdline += " init=/init "
290 self.boot_osflags = fillInCmdline(mdesc, cmdline)

--- 297 unchanged lines hidden ---
284
285 self.realview.setupBootLoader(self.membus, self, binary)
286 self.gic_cpu_addr = self.realview.gic.cpu_addr
287 self.flags_addr = self.realview.realview_io.pio_addr + 0x30
288
289 if mdesc.disk().lower().count('android'):
290 cmdline += " init=/init "
291 self.boot_osflags = fillInCmdline(mdesc, cmdline)

--- 297 unchanged lines hidden ---