quik 2.0 fix
Kostas Gewrgiou
gewrgiou at imbc.gr
Mon Sep 13 02:45:54 EST 1999
Nice that fixed the following error from quik in my machine:
# /sbin/quik -v
Second-stage loader is on /dev/sdb0
Config file is on partition 6
Fatal error: Cannot open /dev/sdb0
There are a few problems with gcc 2.95.1 though, the second stage loader
gives "Unable to open filesystem" errors reverting to the old files
fixed that.
Since my asm skills are nonexistent i can't tell if its a gcc or a quik
problem, can someone look at it ?
Kostas Gewrgiou
On Sat, 11 Sep 1999, Benjamin Herrenschmidt wrote:
>
> It took me a while to figure out why my printf's were displaying crazy
> results until I found out the glibc2.1 dev_t is a long long ! So this fix
> will make quik correctly recognize the partition number:
>
> --- quik.c.old Sat Sep 11 10:52:54 1999
> +++ quik.c Sat Sep 11 10:52:01 1999
> @@ -521,7 +521,7 @@
> bootdev[7] += UNIT(st1.st_dev);
> strcpy(spart, bootdev);
> if (PART(st1.st_dev) != 0)
> - sprintf(spart+8, "%d", PART(st1.st_dev));
> + sprintf(spart+8, "%d", (int)PART(st1.st_dev));
>
> if (verbose)
> printf("Second-stage loader is on %s\n", spart);
>
>
> --
> E-Mail: <mailto:bh40 at calva.net>
> BenH. Web : <http://calvaweb.calvacom.fr/bh40/>
>
>
>
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
More information about the Linuxppc-dev
mailing list