OSDev.org

The Place to Start for Operating System Developers
It is currently Mon May 20, 2024 7:23 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: AHCI Driver working in VMs, but not on real h/w
PostPosted: Sun Sep 13, 2020 8:07 pm 
Offline
Member
Member

Joined: Fri Sep 09, 2016 5:52 pm
Posts: 44
Location: Australia
So I have implemented an AHCI driver and it works fine in VirtualBox and QEMU, however on the 3 laptops I have tested it on, no data has been transferred. I have checked SSTS (0x133), SCTL (0x700), and SERR (0), and I have noticed that whilst command issue clears, interrupt status is not set unlike in the VMs. I have tried resetting the controller and sending COMRESET to the ports to no avail.

Port code:
https://github.com/fido2020/Lemon-OS/blob/master/Kernel/src/storage/ahciport.cpp

Controller code:
https://github.com/fido2020/Lemon-OS/blob/master/Kernel/src/storage/ahci.cpp

_________________
My OS:
https://github.com/fido2020/Lemon-OS
https://lemonos.org
https://discord.gg/NAYp6AUYWM


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot], deblokc and 27 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group