L4 Bootsrap Fiasco Addr

Adam Lackorzynski adam at os.inf.tu-dresden.de
Sat Oct 11 00:43:10 CEST 2014


On Thu Oct 09, 2014 at 13:47:48 +0000, Wölfel, Tobias wrote:
> >On Tue Oct 07, 2014 at 13:29:24 +0000, Wölfel, Tobias wrote:
> >> I am working on porting Fiasco.OC to openrisc (or1k), but are stucked at booting the kernel.
> >> The problem is that the addr in boot_info.kernel_start is pointing to the beginning of the bootstrap, and therefore it will not start the kernel.
> >> In startup.cc there is the mbi, mb_info and mb_mod, which I suppose is the place where the addr is coming from.
> >> But where is it set exactly?
> >It is set in bootstrap by looking at the ELF info of the file.
> >What's the entry point of the binary (readelf -h fiasco)?
> It is at 0x100. That is also the value which I found with readelf.
> But when fiasco is linked into bootstrap, that's not where it will be.
> When bootstraping, it will be moved to a different location in memory? But then the starting addr should be something else?

It's true that when the fiasco image is embedded into the bootstrap
image, it is at a different location. But for actually running it it is
moved to the location where it was linked to. So I think you need to
adapt the final link address of the fiasco binary to a position that
works in your setup.

Adam                 adam at os.inf.tu-dresden.de
  Lackorzynski         http://os.inf.tu-dresden.de/~adam/

More information about the l4-hackers mailing list