Re: [hatari-devel] Running Linux in Hatari?

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Am Sat, 16 Mar 2019 23:02:56 +0200
schrieb Eero Tamminen <oak@xxxxxxxxxxxxxx>:

> Hi,
> 
> On 3/16/19 4:12 AM, Thorsten Otto wrote:
> > On Samstag, 16. März 2019 01:29:00 CET Eero Tamminen wrote:  
> >> What exactly the --lilo option does?  
> > 
> > Essentially, it is a bootloader for the linux kernel built into
> > aranym. The parameters are taken from the config file:
> > 
> > [LILO]
> > Kernel = system/vmlinux
> > Args = root=/dev/hda1 video=atafb:vga16 stram_swap=0 debug=par
> > Ramdisk =
> > LoadToFastRam = No
> >   
> >> is there some specific API that should be implemented?  
> > 
> > Yes, the kernel expects certain things to be passed via a bootinfo
> > structure. It is implemented in
> > https://github.com/aranym/aranym/blob/master/src/ bootos_linux.cpp  
> 
> Thanks.  I've adapted the code for Hatari (needed some defines from
> kernel headers), but it doesn't work fully yet.
> 
> Nicolas and others, is it OK if I push that code to Hatari repository?

Don't you want to wait till you've got it running? Otherwise this might
confuse users who spot the --lilo option and try to use it...

> It adds [LILO] section to config file, and --lilo <bool> command line.
> 
> For now I've put lilo.c into falcon/ subdirectory, as Linux needs 030+
> CPU (and lilo.c errors otherwise), but I'm not sure is that the best
> place.

The falcon subdirectory sounds wrong, since this is not related to
Falcon hardware emulation. I think it should go into the main src
directory instead.

 Thomas



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/