FSConfig.py (6654:4c84e771cca7) FSConfig.py (6765:b5101309174d)
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

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

74 self.terminal = Terminal()
75 self.kernel = binary('vmlinux')
76 self.pal = binary('ts_osfpal')
77 self.console = binary('console')
78 self.boot_osflags = 'root=/dev/hda1 console=ttyS0'
79
80 return self
81
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

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

74 self.terminal = Terminal()
75 self.kernel = binary('vmlinux')
76 self.pal = binary('ts_osfpal')
77 self.console = binary('console')
78 self.boot_osflags = 'root=/dev/hda1 console=ttyS0'
79
80 return self
81
82def makeLinuxAlphaRubySystem(mem_mode, rubymem, mdesc = None):
83 class BaseTsunami(Tsunami):
84 ethernet = NSGigE(pci_bus=0, pci_dev=1, pci_func=0)
85 ide = IdeController(disks=[Parent.disk0, Parent.disk2],
86 pci_func=0, pci_dev=0, pci_bus=0)
87
88
89 self = LinuxAlphaSystem(physmem = rubymem)
90 if not mdesc:
91 # generic system
92 mdesc = SysConfig()
93 self.readfile = mdesc.script()
94
95 # Create pio bus to connect all device pio ports to rubymem's pio port
96 self.piobus = Bus(bus_id=0)
97
98 self.disk0 = CowIdeDisk(driveID='master')
99 self.disk2 = CowIdeDisk(driveID='master')
100 self.disk0.childImage(mdesc.disk())
101 self.disk2.childImage(disk('linux-bigswap2.img'))
102 self.tsunami = BaseTsunami()
103 self.tsunami.attachIO(self.piobus)
104 self.tsunami.ide.pio = self.piobus.port
105 self.tsunami.ethernet.pio = self.piobus.port
106
107 # connect the dma ports directly to ruby dma ports
108 self.tsunami.ide.dma = self.physmem.dma_port
109 self.tsunami.ethernet.dma = self.physmem.dma_port
110
111 # connect the pio bus to rubymem
112 self.physmem.pio_port = self.piobus.port
113
114 self.simple_disk = SimpleDisk(disk=RawDiskImage(image_file = mdesc.disk(),
115 read_only = True))
116 self.intrctrl = IntrControl()
117 self.mem_mode = mem_mode
118 self.terminal = Terminal()
119 self.kernel = binary('vmlinux')
120 self.pal = binary('ts_osfpal')
121 self.console = binary('console')
122 self.boot_osflags = 'root=/dev/hda1 console=ttyS0'
123
124 return self
125
82def makeSparcSystem(mem_mode, mdesc = None):
83 class CowMmDisk(MmDisk):
84 image = CowDiskImage(child=RawDiskImage(read_only=True),
85 read_only=False)
86
87 def childImage(self, ci):
88 self.image.child.image_file = ci
89

--- 280 unchanged lines hidden ---
126def makeSparcSystem(mem_mode, mdesc = None):
127 class CowMmDisk(MmDisk):
128 image = CowDiskImage(child=RawDiskImage(read_only=True),
129 read_only=False)
130
131 def childImage(self, ci):
132 self.image.child.image_file = ci
133

--- 280 unchanged lines hidden ---