diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2015-07-06 12:43:29 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-07-06 12:43:29 +0200 |
commit | d297851b1a79997b19d9c816ca737f0f48e768dd (patch) | |
tree | 9a787a757a463dd5de7a65ae8b2ff205707fc938 /Documentation | |
parent | 735c570e5ad87a562dd9a50208a087e105eaecf6 (diff) | |
parent | 716fdbf18ca12feb81e26df729a5b8969e394e96 (diff) | |
download | barebox-d297851b1a79997b19d9c816ca737f0f48e768dd.tar.gz barebox-d297851b1a79997b19d9c816ca737f0f48e768dd.tar.xz |
Merge branch 'for-next/blspec'
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/filesystems/nfs.rst | 13 | ||||
-rw-r--r-- | Documentation/user/booting-linux.rst | 7 |
2 files changed, 20 insertions, 0 deletions
diff --git a/Documentation/filesystems/nfs.rst b/Documentation/filesystems/nfs.rst index f4eda5d13c..4469ac1dff 100644 --- a/Documentation/filesystems/nfs.rst +++ b/Documentation/filesystems/nfs.rst @@ -10,3 +10,16 @@ barebox has readonly support for NFSv3 in UDP mode. Example:: mount -t nfs 192.168.23.4:/home/user/nfsroot /mnt/nfs + +The barebox NFS driver adds a ``linux.bootargs`` device parameter to the NFS device. +This parameter holds a Linux kernel commandline snippet containing a suitable root= +option for booting from exactly that NFS share. + +Example:: + + devinfo nfs0 + ... + linux.bootargs: root=/dev/nfs nfsroot=192.168.23.4:/home/sha/nfsroot/generic-v7,v3,tcp + +The options default to ``v3,tcp`` but can be adjusted before mounting the NFS share with +the ``global.linux.rootnfsopts`` variable diff --git a/Documentation/user/booting-linux.rst b/Documentation/user/booting-linux.rst index 6e7d1550bf..39084e5afe 100644 --- a/Documentation/user/booting-linux.rst +++ b/Documentation/user/booting-linux.rst @@ -205,6 +205,13 @@ compatible NFS URI string must be passed to the boot command: boot nfs://nfshost//path/ +Additionally to the options defined in the original spec barebox understands the +``linux-appendroot`` option. This is a boolean value and if set to ``true`` barebox +will automatically append a ``root=`` string to the Linux commandline based on the +device where the entry is found on. This makes it possible to use the same rootfs +image on different devices without having to specify a different root= option each +time. + Network boot ------------ |