Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect Disk Read from Slave Drive in QEMU Setup #65

Open
IlanVinograd opened this issue Dec 28, 2024 · 0 comments
Open

Incorrect Disk Read from Slave Drive in QEMU Setup #65

IlanVinograd opened this issue Dec 28, 2024 · 0 comments
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@IlanVinograd
Copy link
Owner

IlanVinograd commented Dec 28, 2024

Bug Report: Incorrect Disk Read from Slave Drive in QEMU Setup

Summary

Check feature/target branch for code.

The kernel incorrectly attempts to read data from the Primary Slave (ide0-hd1) in a QEMU environment. This results in mismatched or invalid data being read from the disk.

Details

Expected Behavior

The kernel should correctly identify and read data from the Primary Slave disk (fat32_disk.img), which is attached to QEMU as ide0-hd1.

The expected data (e.g., from a hex editor like HxD) at LBA 0 of fat32_disk.img might look like this:
EB 58 90 6D 6B 66 73 2E 66 61 74 00 02 01 20 00

fat32_disk.img was formated by mkfs.fat -F 32 fat32_disk.img for FAT32.

Actual Behavior

Primary Slave, resulting in incorrect data such as:
0x40 0x00 0x82 0x00 0x00 0x00 0x00 0x10 0x00 0x00 0x00 0x00 0x3F 0x00 0x00 0x00


Steps to Reproduce

Use read commnad

Inspect Disk Configurations

info block

Target

be able use ATA driver for file system using separate .img.

image
image

@IlanVinograd IlanVinograd added bug Something isn't working help wanted Extra attention is needed labels Dec 28, 2024
@IlanVinograd IlanVinograd self-assigned this Dec 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant