How Kernel command line parameters passed to kernel.

Amit Kumar free.amit.kumar at gmail.com
Thu Jun 1 01:57:35 EDT 2017


On Thu, Jun 1, 2017 at 11:07 AM Madhu K <madhu.sk89 at gmail.com> 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
> Kernelnewbies at kernelnewbies.org
> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20170601/e9f7ce86/attachment-0001.html 
-------------- next part --------------
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}


More information about the Kernelnewbies mailing list