55 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
97
views
Problem with understanding IDE driver initialization
While developing an ATA PIO driver, I followed these tutorials: PCI IDE Controller and ATA PIO Mode. I successfully implemented a simple, minimal driver in QEMU for i386. However, I decided to ...
1
vote
0
answers
90
views
Read from disk using C kernel ATA Qemu
I am making a simple OS, and I want to read letters from disk in C kernel and display them on screen, I am using x86 SeaBIOS on Qemu emulator on M1 Mac. I save data using ata_write(1, 1, data) and ...
0
votes
1
answer
443
views
FAT16 - creating a virtual hard drive and reading it - for some reason no data existing
I'm writing an operating system project. I'm developing my project linux mint in c++ and a bit of assembly (and compiling it using gcc and GAS) and running it in a qemu machine (I make a .iso file out ...
1
vote
1
answer
180
views
virtual hard disk - ata pio & saving state of hard drive, write operations in the same place
I'm writing an operating system. I'm developing my code in linux mint and running it on a qemu virtual machine.
I'm currently developing a file system and for that purpose I first need to initialize ...
1
vote
0
answers
86
views
mkfs.fat leave FAT32 fields in BPB at null value
I have problem that mkfs.fat leave FAT32 fields null with parameter -F 32. I am creating own bootloader and trying to read from EFI partition but somehow these values are at null value. Fields before ...
0
votes
1
answer
892
views
Retrieve S.M.A.R.T information from ATA, SAS, SATA disk
I want to retrieve S.M.A.R.T information from ATA, SAS, SATA disk on windows. I'm using Visual Studio.
I have already open disk using
HANDLE hDevice = CreateFile(deviceName.c_str(), 0, FILE_SHARE_READ ...
-1
votes
1
answer
95
views
Why CPU reset when no `cli`
I am trying to write a bootloader by myself, but qemu-system-i386 CPU will reset probabilistically. But bochs does not have this problem. Why?
my code is mbr.s and loader.s:
# cat mbr.s
%include "...
0
votes
0
answers
264
views
ATA read/write sectors in longmode not working
I am not able to get this working. I got this code from here:
https://wiki.osdev.org/ATA_read/write_sectors
`;=============================================================================
; ATA read ...
0
votes
0
answers
83
views
Ata interrupts fires constantly on real hardware
I have been writing some ata stuff recently. On real hardware the ata controller uses IRQ_11. To get the driver to work I had to mask IRQ_11 because it would constantly fire after issuing the identify ...
1
vote
1
answer
79
views
Unable to read from status port in ATAPIO mode
I recently got interested in developing my own operating system for fun. While creating the OS and the drivers, I encountered several issues while making the ATA driver. One of the major issues is ...
1
vote
1
answer
673
views
0
votes
1
answer
453
views
Strange data when read disk sector with ATA/IDE PIO
I gets some unexpected data when I read a disk sector.
I tried to read disk data without a kernel, but got strange data.
I have a file fs.img and use it like qemu-system-i386 -drive file=fs.img,index=...
2
votes
1
answer
414
views
What does the function insl do in Os Dev's PCI IDE tutorial?
This is the function that call's insl.
void ide_read_buffer(unsigned char channel, unsigned char reg, unsigned int buffer,
unsigned int quads) {
/* WARNING: This code contains ...
1
vote
1
answer
611
views
xv6 boot loader: Reading sectors off disk using CHS
I've been trying to wrap my head around the C part of the xv6 boot loader (the question is below the code)
void
bootmain(void)
{
struct elfhdr *elf;
struct proghdr *ph, *eph;
void (*entry)(void)...
0
votes
3
answers
771
views
Overflow error when trying to read drive properties with ioctl in python
When trying to extract a vendor-specific feature for one of my drives (cmd = 0x89), I get an overflow error: OverflowError: signed integer is greater than maximum. The error is thrown immediately ...