Hi Rosa,

There are a couple of issues with this script and that is the reason you're not seeing the extra disk. 1. The disk controller only has two ports and each support a master and a slave, so you're new disk would need to be a slave:
    self.disk3 = CowIdeDisk(driveID='slave)
2. You never added the new disk to the list of disks the controller owns. Near the top of FSConfig.py something like this:
        ide = IdeController(disks=[Parent.disk0, Parent.disk2],
should be changed to:
ide = IdeController(disks=[Parent.disk0, Parent.disk3, Parent.disk2], 3. You'll need to actually mount the disk using an rcS file or manually at the command line, as it won't get mounted automatically. So you'll ned to execute something like mount /dev/hdX1 /z. Depending on your exact configuration X will be a,b,c, or d.

Ali


On Oct 7, 2007, at 8:29 PM, Rosa Ree Reese wrote:

hi, i'm an M5 and Python newbie. I would like to ask something in connection with this:

http://www.mail-archive.com/[email protected]/msg01071.html

i was able to create an image file and i followed the instructions, that is, I modified my FSconfig.py as well as my rcS file(i just appended what was in the message), but no new disk image was mounted or detected(it failed). the "z" folder still contained nothing.

the segment of my FSconfig.py containing my modifications:

    self.disk0 = CowIdeDisk(driveID='master')
    self.disk2 = CowIdeDisk(driveID='master')
    self.disk3 = CowIdeDisk(driveID='master')
    self.disk0.childImage(mdesc.disk())
    self.disk2.childImage(disk('linux-bigswap2.img'))
    self.disk3.childImage(disk('customimage.img'))

basically i was expecting 3 disks to be mounted: swap, linux- latest, and customimage. am i modifying the python script wrong? the Hi screen STILL goes like

ide0: BM-DMA at 0x8400-0x8407, BIOS settings: hda:DMA, hdb:DMA
ide1: BM-DMA at 0x8408-0x840f, BIOS settings: hdc:DMA, hdd:DMA
hda: M5 IDE Disk, ATA DISK drive
hdb: M5 IDE Disk, ATA DISK drive
ide0 at 0x8410-0x8417,0x8422 on irq 31
hda: max request size: 128KiB
hda: 101808 sectors (52 MB), CHS=101/16/63, UDMA(33)
hda: cache flushes not supported
 hda: hda1
hdb: max request size: 128KiB
hdb: 4177920 sectors (2139 MB), CHS=4144/16/63, UDMA(33)
hdb: cache flushes not supported
 hdb: unknown partition table

so i assume my new disk image wasn't being detected.

thanks a lot!

Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us.
_______________________________________________
m5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users

_______________________________________________
m5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users

Reply via email to