Without any feedback on my previous request I did some coding myself
Quick and dirty: just added some lines of code , no compile/makefile
options.
Having only some newbie turboC 3.1 for DOS skills, just happy I got it
working
(I want to be able to boot an unattended DOS system from a local flop, while
it normally NETBOOTs)
I adapted etherboot-4.4.5. source
in start32.S I made the function definitions of
disk_init and disk_read
unconditional
In main.c I added some lines: (lines starting with+)
gateA20();
print_config();
+ /* following lines only for testing ROM image on flop
+ while( getchar() !=0x20)
+ printf("hit space bar to continue");
+ end test mode */
+disk_init();
+retries=4;
+while (retries-- )
+{ printf(".");
+ if ( disk_read(0,0,0,0,((char *)0x7C00)) != 0x8000 )
+ {printf("\nBoot from diskette\n"); exit(0);}
+}
+printf("\nNo floppy found , booting from ROM\n");
#ifdef EMERGENCYDISKBOOT
Suggestions for better implementation welcome
aad
as@bart.nl
===========================================================================
This Mail was sent to netboot mailing list by:
"ACS" <as@bart.nl>
To get help about this list, send a mail with 'help' as the only string in
it's body to majordomo@baghira.han.de. If you have problems with this list,
send a mail to netboot-owner@baghira.han.de.
For requests or suggestions regarding this mailing list archive please write to netboot@gkminix.han.de.