Port-sparc archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: installing NetBSD on a Sparcstation 2.



On Thu, Aug 26, 2010 at 01:49:30AM +0900, Izumi Tsutsui wrote:
> sparc/stand/ofwboot/boot.c is for sparc64 boot,
> so we also have to fix sparc/stand/boot/boot.c.

 - I'm not sure we ever want to support floppy boot on sparc64 (even a
   realy stripped down kernel would be like 3 floppies)
 - I don't like the very loose way device names are matched:

@@ -503,6 +504,7 @@
        /* Figure boot arguments */
        strncpy(bootdev, prom_getbootpath(), sizeof(bootdev) - 1);
        boothowto = bootoptions(prom_getbootargs(), bootdev, kernel, bootline);
+       isfloppy = strstr(bootdev, "fd") || strstr(bootdev, "floppy");
 
        for (;; *kernel = '\0') {
                if (boothowto & RB_ASKNAME) {


I don't think "floppy" will be ever visible here, and instead of "fd" we
should probably better check for something like "/fdthree" or "SUNW,fdtwo".
Even better would be testing on actual hardware - does anyone have a sparc64
machine with working floppy drive?

Martin


Home | Main Index | Thread Index | Old Index