FSConfig.py (7069:edde97a6ea7c) | FSConfig.py (7586:da93206873dc) |
---|---|
1# Copyright (c) 2010 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 9# terms below provided that you ensure that this notice is replicated 10# unmodified and in its entirety in all distributions of the software, 11# modified or unmodified, in source code or in binary form. 12# |
|
1# Copyright (c) 2006-2008 The Regents of The University of Michigan 2# All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions are 6# met: redistributions of source code must retain the above copyright 7# notice, this list of conditions and the following disclaimer; 8# redistributions in binary form must reproduce the above copyright --- 156 unchanged lines hidden (view full) --- 165 self.hypervisor_bin = binary('q_new.bin') 166 self.openboot_bin = binary('openboot_new.bin') 167 self.nvram_bin = binary('nvram1') 168 self.hypervisor_desc_bin = binary('1up-hv.bin') 169 self.partition_desc_bin = binary('1up-md.bin') 170 171 return self 172 | 13# Copyright (c) 2006-2008 The Regents of The University of Michigan 14# All rights reserved. 15# 16# Redistribution and use in source and binary forms, with or without 17# modification, are permitted provided that the following conditions are 18# met: redistributions of source code must retain the above copyright 19# notice, this list of conditions and the following disclaimer; 20# redistributions in binary form must reproduce the above copyright --- 156 unchanged lines hidden (view full) --- 177 self.hypervisor_bin = binary('q_new.bin') 178 self.openboot_bin = binary('openboot_new.bin') 179 self.nvram_bin = binary('nvram1') 180 self.hypervisor_desc_bin = binary('1up-hv.bin') 181 self.partition_desc_bin = binary('1up-md.bin') 182 183 return self 184 |
185def makeLinuxArmSystem(mem_mode, mdesc = None, bare_metal=False, 186 machine_type = None): 187 if bare_metal: 188 self = ArmSystem() 189 else: 190 self = LinuxArmSystem() 191 192 if not mdesc: 193 # generic system 194 mdesc = SysConfig() 195 196 self.readfile = mdesc.script() 197 self.iobus = Bus(bus_id=0) 198 self.membus = MemBus(bus_id=1) 199 self.membus.badaddr_responder.warn_access = "warn" 200 self.bridge = Bridge(delay='50ns', nack_delay='4ns') 201 self.physmem = PhysicalMemory(range = AddrRange(mdesc.mem()), zero = True) 202 self.bridge.side_a = self.iobus.port 203 self.bridge.side_b = self.membus.port 204 self.physmem.port = self.membus.port 205 206 self.mem_mode = mem_mode 207 208 if machine_type == "RealView_PBX": 209 self.realview = RealViewPBX() 210 elif machine_type == "RealView_EB": 211 self.realview = RealViewEB() 212 else: 213 print "Unknown Machine Type" 214 sys.exit(1) 215 216 if not bare_metal and machine_type: 217 self.machine_type = machine_type 218 elif bare_metal: 219 self.realview.uart.end_on_eot = True 220 221 self.realview.attachOnChipIO(self.membus) 222 self.realview.attachIO(self.iobus) 223 224 self.intrctrl = IntrControl() 225 self.terminal = Terminal() 226 self.boot_osflags = 'earlyprintk mem=128MB console=ttyAMA0 lpj=19988480 norandmaps' 227 228 return self 229 230 |
|
173def makeLinuxMipsSystem(mem_mode, mdesc = None): 174 class BaseMalta(Malta): 175 ethernet = NSGigE(pci_bus=0, pci_dev=1, pci_func=0) 176 ide = IdeController(disks=[Parent.disk0, Parent.disk2], 177 pci_func=0, pci_dev=0, pci_bus=0) 178 179 self = LinuxMipsSystem() 180 if not mdesc: --- 240 unchanged lines hidden --- | 231def makeLinuxMipsSystem(mem_mode, mdesc = None): 232 class BaseMalta(Malta): 233 ethernet = NSGigE(pci_bus=0, pci_dev=1, pci_func=0) 234 ide = IdeController(disks=[Parent.disk0, Parent.disk2], 235 pci_func=0, pci_dev=0, pci_bus=0) 236 237 self = LinuxMipsSystem() 238 if not mdesc: --- 240 unchanged lines hidden --- |