Skip to content

Kernel Config for the IDE controller in gem5 #160

@pfotouhi

Description

@pfotouhi

Looking at the golden K-config from Jason, we have "ATA/ATAPI/MFM/RLL support (DEPRECATED)" under Device Drivers.
In gem5, we always set the root for our kernel to hda1 (i.e. root=/dev/hda1 in kernel boot options). However, using K-configs NOT based on Jason's, we would need to set to set the root to sda1 as kernel would use different driver code to detect the storage. In my experiments, I had issues with my file-systems and thought part of it can be related to this. So I narrowed down the K-configs and realized we need the following to have the kernel working with hda1 as root.

  • IDE
  • IDE_GENERIC
  • IDE_GD_ATA
  • BLK_DEV_PLATFORM
  • IDEPCI_PCIBUS_ORDER
  • BLK_DEV_GENERIC

The impact on correctness (with sda1 as root) should be tested and reported.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions