Hi Sourav,

would you mind sharing a patch? This is really not that helpful as I can
only guess what you have done.

Thanks,
Jakub

On 03/02/2017 08:14 PM, sourav punoriyar wrote:
> Hi Jakub,
> 
> I was able to pass boot_args from uboot till kernel.
> 
> The issue was i was looking in wrong direction.
> After going through uboot for Netbsd i found the solution..
> 
> *Some assumptions i made i kernel.*
> 
> As no length is passed , i have taken max arguments size to be 4096 bytes.
> I have used str_cpy in (arm32_pre_main) so that no buffer overflow happens.
> 
> I will come up with a structure to keep parsed arguments and a parser
> function to collect the arguments separately.
> 
> Please give your opinion and suggestions so that i can make it better.
> 
> 
> Regards,
> Sourav Punoriyar
> 
> On Sun, Feb 26, 2017 at 4:29 AM, Jakub Jermář <[email protected]
> <mailto:[email protected]>> wrote:
> 
>     Hi Sourav,
> 
>     On 02/25/2017 08:59 PM, sourav punoriyar wrote:
>     > Before Loading HelenOS
>     > U-Boot# bdinfo
>     > *arch_number = 0x00000E05*
>     > boot_params = 0x80000100
>     <snip>
>     > After loading HelenOS
>     > U-Boot# bootm 0x80007FC0 - {Booting HelenOS}
>     > ## Transferring control to NetBSD stage-2 loader (at address 80000000) 
> ...
>     <snip>
>     > I am just trying to read bdinfo , just to build confidence.
>     > But, I am not getting the expected values :-(
>     > I doubt is it something related to LOAD ADDRESS = 80000000 ?
>     > beagebone _black Load = 80008000 ?
> 
>     Yes, the address to which the bbxm and bbone loader is linked seems to
>     conflict with the address where u-boot puts the arguments. You can try
>     moving the link/load address a little bit higher and see if it helps.
>     See boot/arch/arm32/Makefile.inc.
> 
>     Jakub
> 
>     _______________________________________________
>     HelenOS-devel mailing list
>     [email protected] <mailto:[email protected]>
>     http://lists.modry.cz/listinfo/helenos-devel
>     <http://lists.modry.cz/listinfo/helenos-devel>
> 
> 
> 
> 
> _______________________________________________
> HelenOS-devel mailing list
> [email protected]
> http://lists.modry.cz/listinfo/helenos-devel
> 

_______________________________________________
HelenOS-devel mailing list
[email protected]
http://lists.modry.cz/listinfo/helenos-devel

Reply via email to