9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] change in 9load
@ 2003-05-16 15:56 Fco.J.Ballesteros
  0 siblings, 0 replies; only message in thread
From: Fco.J.Ballesteros @ 2003-05-16 15:56 UTC (permalink / raw)
  To: 9fans

Hi,
	I found that using 9load from a CD had problems selecting a
bootfile in a disk partion. I seems that the sd driver was not being
initialized in the first loop and then probe couldnt find any partition.
This change was enough to allow me to boot from a CD and use
a kernel in the hard disk.

The changes are all inside main()

diff -n /n/dump/2003/0516/sys/src/boot/pc /sys/src/boot/pc
diff -n /n/dump/2003/0516/sys/src/boot/pc/load.c /sys/src/boot/pc/load.c
/n/dump/2003/0516/sys/src/boot/pc/load.c:238 a /sys/src/boot/pc/load.c:238
> 	Medium *inimp;
/n/dump/2003/0516/sys/src/boot/pc/load.c:255 a /sys/src/boot/pc/load.c:256
> 	inimp = nil;
/n/dump/2003/0516/sys/src/boot/pc/load.c:260,262 c /sys/src/boot/pc/load.c:261,262
< 			print("using %s!%s!%s\n", mp->name, mp->part, mp->ini);
< 			dotini(mp->inifs);
< 			break;
---
> 			if (inimp == nil)
> 				inimp = mp;
/n/dump/2003/0516/sys/src/boot/pc/load.c:263 a /sys/src/boot/pc/load.c:264,267
> 	}
> 	if (inimp != nil){
> 		print("using %s!%s!%s\n", mp->name, mp->part, mp->ini);
> 		dotini(inimp->inifs);

hth



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-05-16 15:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-16 15:56 [9fans] change in 9load Fco.J.Ballesteros

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).