Re: How Kernel command line parameters passed to kernel.
On Thu, Jun 1, 2017 at 11:27 AM, Amit Kumarwrote: > > On Thu, Jun 1, 2017 at 11:07 AM Madhu K 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 > >> >> This is at U-boot level. where u-boot will write this information? > Thanks & regards, >> Madhu >> ___ >> Kernelnewbies mailing list >> Kernelnewbies@kernelnewbies.org >> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies >> > ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: How Kernel command line parameters passed to kernel.
On Thu, Jun 1, 2017 at 11:07 AM Madhu Kwrote: > 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@kernelnewbies.org > 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 Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies