u-boot passes wrong parameter to the kernel

I have an arduino Yun and i want use a rootfs over NFS. This is the command line i'am using :

ar7240> setenv bootargs root=/dev/nfs rw nfsroot= ip=
ar7240> saveenv
Unknown command 'saveenv' - try 'help'
ar7240> printenv        
bootcmd=bootm 0x9fea0000
bootargs=root=/dev/nfs rw nfsroot= ip=

Environment size: 319/65532 bytes
ar7240> bootm 0x9fea0000

The 1st bad new is that saveenv is not recognised by uboot.

When the board reboots this is what i get :

[    0.000000] Kernel command line:  board=Yun console=ttyATH0,250000 mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,14656k(rootfs),1280k(ker
nel),64k(nvram),64k(art),15936k@0x50000(firmware) rootfstype=squashfs,jffs2 noinitrd

It seems that uboot is passing wrong parameter

Should i reflash uboot ?

So I realise that this thread is over a year old, but for anyone like me who found it with a Google search

  • I did reflash u-boot (mine now identifies as U-Boot 1.1.4-dirty (Nov 13 2014 - 18:54:12)) but I still have no saveenv command. It seems that the arduino yun uboot is extremely feature-light

  • the other problem you're seeing here is probably not that u-boot is passing the wrong command line, but that the kernel in openwrt (which, as I expect you know already, is the basis for the OS that your Yun is running) has a command line compiled into it which is overriding the one set by u-boot. See e.g.


Stoked by my success this evening in building a kernel and rootfs from scratch (well, from vanilla upstream sources without openwrt) I might yet have a go at making a more fully-featured u-boot one of these days, but I have other stuff - like adding a working ethernet driver to it - to do first

uboot 1.1.4 does not support the saveenv command