OpenWrt Forum Archive

Topic: how to set cmdline

The content of this topic has been archived on 4 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I want to set the init to "init=/etc/preinit". How do I do that in openwrt. I am using kamikaze7-07.

I need to set this becoz my kernel failed on rb532 with "unable to open an initial console"

thanks,

Hi. I don't know about 7.07 which is really old, but in trunk you can set the commandline when you run make menuconfig. However, I believe init=/etc/preinit is in there by default. Also the message about not being able to open an initial console can be ignored. Is that the last thing printed when it boots?

Wodin wrote:

Hi. I don't know about 7.07 which is really old, but in trunk you can set the commandline when you run make menuconfig. However, I believe init=/etc/preinit is in there by default. Also the message about not being able to open an initial console can be ignored. Is that the last thing printed when it boots?

thansk for ur reply....
I tried the trunk too.. the option is not available for rb532 target ....do know why the hell it is not there ....
Yes, that was the last msg i got...i couldt not even get the prompt ....

there are number of kernel files built for one target, say rb532...and one work with patch-cmdline adn other one does not work with
patch-cmdline...does anyone out there understand why there are many kernel files built for one target for god sake...files are everywhere in openwrt ......

The discussion might have continued from here.