Hi Tianyun,
  I was having this same trouble a few weeks ago, and I should be freed up
to try and debug it in the next few days.  From what I could find, this
appears to be a bug in the IDE controller.  First, since IDE controllers
only allowed for 2 channels, that limits the simulated system to 2 master
and 2 slave disks.  However, it looks like the IDE controller device
doesn't correctly recognize master vs. slave drives (I am running x86 also,
which might be part of the problem), so this limits the system to 2 master
disks concurrently in the simulated system.

  While I'm taking a look, if the benchmarks you are running do not require
an excessive about of simulated memory, I'd recommend that you remove the
swap disk from the south bridge disks array like so:

    disk0 = CowIdeDisk(driveID='master')
    disk2 = CowIdeDisk(driveID='master')
    disk4 = CowIdeDisk(driveID='master')
    disk0.childImage(mdesc.disk())
    disk2.childImage(disk('linux-bigswap2.img'))
    disk4.childImage(disk('test.img'))
*    self.pc.south_bridge.ide.disks = [disk0, disk4]*

  Will keep you posted.  Hope this helps,
  Joel




On Thu, Nov 29, 2012 at 11:59 AM, Tianyun Zhang <[email protected]>wrote:

> Hi,
>
> I made a new disk image by "./gem5img.py init test.image 500" and I change
> the FSConfig.py by add in makeX86System as
> # Disks
>     disk0 = CowIdeDisk(driveID='master')
>     disk2 = CowIdeDisk(driveID='master')
>     disk4 = CowIdeDisk(driveID='master')
>     disk0.childImage(mdesc.disk())
>     disk2.childImage(disk('linux-bigswap2.img'))
>     disk4.childImage(disk('test.img'))
>     self.pc.south_bridge.ide.disks = [disk0, disk2, disk4]
>
> But when I boot the system, it hangs here forever. Seems like it can not
> boot the new disk.
> piix 0000:00:04.0: not 100% native mode: will probe irqs later
>     ide0: BM-DMA at 0x1000-0x1007
>     ide1: BM-DMA at 0x1008-0x100f
> hda: M5 IDE Disk, ATA DISK drive
> hdb: M5 IDE Disk, ATA DISK drive
> hda: UDMA/33 mode selected
> hdb: UDMA/33 mode selected
> hdc: M5 IDE Disk, ATA DISK drive
> hdc: UDMA/33 mode selected
> ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
> isa bounce pool size: 16 pages
> ide1 at 0x170-0x177,0x376 on irq 15
> ide_generic: please use "probe_mask=0x3f" module parameter for probing all
> legac
>                                               y ISA IDE ports
> ide-gd driver 1.18
> hda: max request size: 128KiB
> hda: 1048320 sectors (536 MB), CHS=1040/16/63
>  hda: hda1
> hdb: max request size: 128KiB
> hdb: 4177920 sectors (2139 MB), CHS=4144/16/63
>  hdb: unknown partition table
> hdc: max request size: 128KiB
> hdc: 1048320 sectors (536 MB), CHS=1040/16/63
>  hdc:
>
> Can anyone give some hints about it? Thanks you so much.
>
> -Best
>
> _______________________________________________
> gem5-users mailing list
> [email protected]
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>



-- 
  Joel Hestness
  PhD Student, Computer Architecture
  Dept. of Computer Science, University of Wisconsin - Madison
  http://www.cs.utexas.edu/~hestness
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to