Hi , I was trying to find out a way i can pass boot arguments to the kernel. I would like to share some understanding and confusions i am having . :-)
I am loading HelenOS from Uboot. As per my observations and understandings. Uboot should jumps to next image via following call: kernel_entry <https://lxr.missinglinkelectronics.com/uboot+*/+code=kernel_entry>(0, machid <https://lxr.missinglinkelectronics.com/uboot+*/+code=machid>, r2 <https://lxr.missinglinkelectronics.com/uboot+*/+code=r2>); r0 = 0 , r1 = machid , r2 = params / or Atags ( contains lots of info including boot_args ). >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 . 2> What is this "ns" image ? Please share your advice and correct me if i am wrong. Regards, Sourav Punoriyar
_______________________________________________ HelenOS-devel mailing list [email protected] http://lists.modry.cz/listinfo/helenos-devel
