Please create an account to participate in the Slashdot moderation system

 



Forgot your password?
typodupeerror
×
Programming IT Technology

Booting XINU From Floppy? 5

NutsAboutOS asks: "I need some help from folks here interested in boot loaders and operating systems. XINU is well designed, compact, very efficient and ideal for learning OS internals operating system that we used in our graduate school. However, currently XINU can only boot from the network using bootp and tftp. I would like to write some application on this OS in my free time, but i don't have a network at home to boot the system from. So I need to boot it from floppy. I request help in writing boot sector for this OS. I spent some time in writing one but it didn't work. This OS can be freely downloadable from ftp.cs.purdue.edu with anonymous user id from /pub/Xinu directory. I am very familiar with XINU code and can help in providing necessary information for writing a boot loader and a stripped out version of XINU OS code that does not have TCP/IP stack etc. Folks familiar with assembly programming and interested in giving programming help, please let me know or throw suggestions."
This discussion has been archived. No new comments can be posted.

Booting XINU From Floppy?

Comments Filter:
  • The last thing the world needs is another boot loader.

    Instead, you should just use GRUB [gnu.org], which probably already does what you need, and is free-as-in-speech to match.

  • hey

    you need to tell people a little more does "XINU" use x86 alpha PowerPC SPARC ARM SH or gromit ??

    so what functions do you need ?
    bootstrap on lots of system or just x86 ?

    I have to say work on GRUB

    bootp gets IP address do you need to store that can you boot from normal disk ? ie does it load IP/TCP|UDP cfg from a file if not this would be the first port of call

    have a look @ GRUB

    have fun

    regards

    john jones

  • Assuming that you are using PC-XINU, perhaps you could make a DOS boot disk and modify the autoexec.bat to run XINU. I'm not sure that this would all fit on a floppy though...
  • by kennyj449 ( 151268 ) on Friday June 08, 2001 @01:59AM (#167336)
    GRUB would probably be the ideal choice if you're going to be multibooting, at least... In simplest form, it will pass control onto another bootsector, and you can also write a loader within GRUB itself. I think it also supports booting via bootp, but I'm not so sure about that. You might want to look into an x86 emulator that supports networking as an easy fix, and just use GRUB's network capabilities (I know it supports "downloading OS images over a network", but by what protocols, is unknown to me and not in the FAQ) or something similar to boot XINU over the virtual network.

    I'm not familiar with bootp and tftp and the like, but if it works simply by passing control over to some other executable, you should be able to just save that executable in raw form as a file and have GRUB boot it via the "chainload" feature. From there, you'll just have to hack whatever code there is that pulls data from the server, to read it from the local disk instead. GRUB's own source should include formative practical examples on this seeing as it includes code to natively read a number of filesystems, and you may have to write drivers for XINU itself to do i/o locally rather than over the network - but you probably already knew that, didn't you?

    Sadly, I can't offer any examples or whatnot seeing as I don't know assembler or even any basic OS design fundamentals... but I've gotten GRUB to multiboot over six vary different OSs at once, so I can vouch that if anything is capable of doing this and saving you time, it's GRUB.

    Good luck, and be sure to report back on your results.
  • No, that is not possible.

    In order to use an OS, you need to develop another license so that Slashdot fanatics can start a holy war

Real Programmers don't eat quiche. They eat Twinkies and Szechwan food.

Working...