On Thu, Jun 1, 2017 at 11:07 AM Madhu K <[email protected]> wrote:
> Hi All,
>
> I have a doubt, how kernel command line parameters are passed to kernel
> space. Before device tree, we used to pass command line parameters using
> ATAGS. But after device tree we are not using ATAGS. How we are passing
> command line parameters to kernel space?
>
If you are using uboot, please consult uEnv.txt docs.
http://linux-sunxi.org/UEnv.txt
>
> Thanks & regards,
> Madhu
> _______________________________________________
> Kernelnewbies mailing list
> [email protected]
> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
kernel_file=zImage
fdtfile=am335x-boneblack.dtb
loadzimage=load mmc ${mmcdev}:${mmcpart} ${loadaddr} ${kernel_file}
loadfdt=load mmc ${mmcdev}:${mmcpart} ${fdtaddr} ${fdtfile}
console=ttyO0,115200n8
mmcroot=/dev/mmcblk0p2 ro
mmcrootfstype=ext4 rootwait
mmcargs=setenv bootargs console=${console} root=${mmcroot}
rootfstype=${mmcrootfstype} ${optargs}
uenvcmd=run loadzimage; run loadfdt; run mmcargs; bootz ${loadaddr} - ${fdtaddr}
_______________________________________________
Kernelnewbies mailing list
[email protected]
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies