Hey all, I'm still struggling with getting DMA working in my kernel, as explained: http://forum.osdev.org/viewtopic.php?t=19056
So I decided to take a different tack, get the linux kernel source, mod it to output what it sends when setting up DMA (not even got to this bit yet), compile it, and run it under bochs.
What I've done so far is get the linux kernel, compile it (under linux) and get it on to a hard drive image that I can use with bochs.
So when I set up grub on a floppy image with menu.lst as:
title Simplified OS
root (hd0,0)
kernel /lkernel
I get the error "No setup signiture found..."
Now, i'm guessing this is for one of two reasons:
1) I didn't send the right params to the kernel through grub.
2) You can't just run the linux kernel without other things (normally included in your distro).
Its probably reasnobly obvious, but i'm not all that familiar with hacking at the linux kernel. I'm fairly sure I can get the debug messages in, and then run it on real hardware where I have the fedora distro to handle everything else, but I really want to run it on bochs.
Any help would be much appreciated.
Also if anyone has a working IDE DMA driver that runs on bochs i'd love to have a look at it.
Thanks,
Wiggles
running linux on bochs
Re: running linux on bochs
> Also if anyone has a working IDE DMA driver that runs on bochs i'd love to have a look at it.
It sounded like this guy had one posted (I am still not set up to test it out):
http://forum.osdev.org/viewtopic.php?f=1&t=19034
It sounded like this guy had one posted (I am still not set up to test it out):
http://forum.osdev.org/viewtopic.php?f=1&t=19034
-
- Posts: 23
- Joined: Tue Nov 11, 2008 3:03 pm
Re: running linux on bochs
I think my actual DMA protocol code should be fine, its the initiating the drive and the PCI bus and the IDE DMA controller to all work with the same timings etc... thats the problem.