Template:FAQ/Questions/we just made a

We just made a new image with pxafb driver. Can we put the kernel command line somewhere so that the parameters can pass to the kernel when it boots?
Yes, you can pass the parameters to the kernel when it boots.

If you built the pxafb into the kernel, then you can put the kernel command line args in the u-boot &quot;bootargs&quot; variable. To do this, interrupt the boot with a keypress when prompted (on the serial console), and then type

GUM&gt; printenv

to get a list of the u-boot variables which have been set. To set one (bootargs is the one you want), type:

GUM&gt; setenv bootargs new value of variable

eg

GUM&gt; setenv bootargs console=ttyS0,115200n8 rootfstype=jffs2 rootfs=1f02 reboot=cold,hard

To tack on extra stuff, and keep the existing stuff too, use the shortcut:

GUM&gt; setenv bootargs $bootargs new args

u-boot will expand the $bootargs. After you've changed the value, use printenv to verify it. When it's correct, you need to save it to flash by typing:

GUM&gt; save

u-boot will then save the value for use on subsequent boots. If you don't save, it'll be used for this boot, but then lost when you reboot. More details available in the u-boot documentation.