Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* compiling MILO on an avanti
@ 1998-03-29 18:06 Philippe Girolami
  1998-03-29 18:43 ` Brian E.W. Wood
  0 siblings, 1 reply; 3+ messages in thread
From: Philippe Girolami @ 1998-03-29 18:06 UTC (permalink / raw)
  To: axp-list

Ok, now I'm desperatly trying to compile MILO so I can try to find out why
it won't reboot the alpha I'm working on.
I'm using a 2.0.33 kernel with the 2.0.33 patches.  I'm using the
milo2.0.30 sources, I've made config everything.

When I make milo I get the following error:

devices.c:903 : conflicting types for 'block_read'
/usr/src/linux/include/linux/fs.h:691: previous declaration of 'block_read'
and the same for 'block_write'.

So I checked out the source and found that 'block_read' and 'block_write'
return an 'int' in one and a 'long' in the other.  
Also a pointer to a buffer is passed without a 'const' in devices.c and a
counter is an 'unsigned long' instead of an 'int'.  
So I changed devices.c to match fs.h but that still doesn't work because
now I still get the previous declaration and it says 

passing arg 1 of '__memcpy' discards 'const' from pointer target type.

So I'd like to know if anyone's run into this ?!?.  Can I assume the
block_read and block_write subroutines in devices.c 
can be renamed to something else if I rename all the calls in the milo
source?


Thanks,

Philippe Girolami



^ permalink raw reply	[flat|nested] 3+ messages in thread
* Re: compiling MILO on an avanti
@ 1998-03-29 22:31 Philippe Girolami
  0 siblings, 0 replies; 3+ messages in thread
From: Philippe Girolami @ 1998-03-29 22:31 UTC (permalink / raw)
  To: axp-list

Ok, I found out what to do.
First of all, I started off with a clean 2.0.33 kernel source and 2.0.33
patches all straight from ftp.kernel.org
I patched and built a kernel.  Building the kernel seemed to get me rid of
the "objstrip" errors.

I got the 2.0.30 milo sources.  I modified the file
/usr/src/linux/include/linux/fs.h so that the 'block_read' and
'block_write' function prototypes match the 
functions in /milo/devices.c

I built MILO

Cool, you might say... yeah, but that milo hangs :( after "jumping to
bootstrap code").  Oh well, I'll figure that out tomorrow.


Philippe Girolami


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1998-03-29 22:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-03-29 18:06 compiling MILO on an avanti Philippe Girolami
1998-03-29 18:43 ` Brian E.W. Wood
  -- strict thread matches above, loose matches on Subject: below --
1998-03-29 22:31 Philippe Girolami

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox