Hi Sourav,

thanks for looking into this first step of passing boot arguments to the
kernel and further on. Please see my replies below.

On 02/22/2017 08:02 PM, sourav punoriyar wrote:
> From the logs: "Transferring control to NetBSD stage-2 loader "
> Uboot transfers the control to NetBSD stage-2 loader.
> 
> From the boot code of arm32 in HelenOS i found that stage-2 loader loads
> the kernel.
> And we are not utilizing r2 register for any purpose.
> 
> 
> Confusions i am having:
> 1> The bootargs info are given in r2 register. How do i preserve it when
> stage-2 boot-loader comes into action , because till the kernel comes
> into picture i will loose the info passed from uboot.
> -------> i feel i need to preserve the info passed from Uboot so that i
> can pass it down to the kernel and initialize boot_args via NetBSD
> stage-2 loader .

Yes, the best way to communicate information between the loader and the
kernel is via the bootinfo structure. Just feel free to add a member
which will hold the address from r2. Note that this structure needs to
be modified in two places: in the loader and also in the kernel. We
should probably fix this dichotomy by moving it under abi/.

> 2> What is this "ns" image ?

ns is the first userspace task. The name stands for "naming service".

HTH,
Jakub

_______________________________________________
HelenOS-devel mailing list
HelenOS-devel@lists.modry.cz
http://lists.modry.cz/listinfo/helenos-devel

Reply via email to