Built-in kernel parameters (work on wnr3500lv2)

Hi,

I'm currently working on wnr3500l-v2. As you may know it is officially supported by lede, but the images don't boot. (see details here)

I have succeed in building an image where the kernel boots but gets in kernel panic because it does not succeed in mounting rootfs:

[ 0.895422] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[ 0.903125] Please append a correct "root=" boot option; here are the available partitions:
[ 0.911657] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[ 0.921426] Rebooting in 1 seconds..

I guess it's because the kernel has wrong cmdline boot parameters. The question is how can I build a kernel with build-in cmdline boot parameters, and how do I know what parameters should be used?

Thanks in advance,
Pierre.

Ps: I've tried to enable " OpenWrt specific image command line hack" in kernel configuration it does not seem to change anything.

I've found how to change cmdline in

Kernel hack> Built-in kernel command line.

I still don't know how to get a working command line, I've tried

noinitrd console=ttyS0,115200 rootfstype=squashfs,jffs2

I get

[ 0.642085] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[ 0.651823] Rebooting in 10 seconds..

I guess I need to specify the position of the squashfs partition but how?

Actually it seems that it's not a boot parameter problem but a Nand driver problem. Closing this topic.