dts: tegra-ventana: use proper root instead of /dev/ram
Subsystems (2)
PATCH 1/1 dts: tegra-ventana: use proper root instead of /dev/ram
From: Pritesh Raithatha <[email protected]>
The root file system on ventana resides on /dev/mmcblk0p1. Update the dts file to use the proper root instead of /dev/ram.
--- arch/arm/boot/dts/tegra-ventana.dts | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/boot/dts/tegra-ventana.dts +1 -1
@@ -8,7 +8,7 @@ compatible = "nvidia,ventana", "nvidia,tegra20"; chosen { - bootargs = "vmalloc=192M video=tegrafb console=ttyS0,115200n8 root=/dev/ram rdinit=/sbin/init"; + bootargs = "vmalloc=192M video=tegrafb console=ttyS0,115200n8 root=/dev/mmcblk0p1 rw rootwait"; }; memory {
Signature · 1 line
1.7.1
PATCH 1/1 dts: tegra-ventana: use proper root instead of /dev/ram
Varun Wadekar wrote at Monday, November 14, 2011 11:21 PM:
Quoted 3 lines
From: Pritesh Raithatha <[email protected]>
The root file system on ventana resides on
/dev/mmcblk0p1.
Well, that's entirely up to however the user set up their system, although I admit mmcblk0p1 is likely to be the common case; I certainly carry basically this patch locally for many boards.
Quoted 4 lines
Update the dts file to use the proper root instead of
/dev/ram.Signed-off-by Pritesh Raithatha <[email protected]>Signed-off-by Varun Wadekar <[email protected]>
Of course, perhaps an even better solution is to just remove /chosen from all the board .dts files, and stop using CONFIG_APPENDED_DTB since U-boot supports FDT, and will update the cmdline with whatever the user chose. Still, I think this is probably OK for now.
Signature · 1 line
nvpublic
PATCH 1/1 dts: tegra-ventana: use proper root instead of /dev/ram
Quoted 14 lines · Stephen Warren
Varun Wadekar wrote at Monday, November 14, 2011 11:21 PM:
Quoted 3 lines
From: Pritesh Raithatha <[email protected]>
The root file system on ventana resides on
/dev/mmcblk0p1.Well, that's entirely up to however the user set up their system, although I admit mmcblk0p1 is likely to be the common case; I certainly carry basically this patch locally for many boards.
Quoted 4 lines
Update the dts file to use the proper root instead of
/dev/ram.Signed-off-by Pritesh Raithatha <[email protected]>Signed-off-by Varun Wadekar <[email protected]>
Quoted 6 lines
Acked-by Stephen Warren <[email protected]>Of course, perhaps an even better solution is to just remove /chosen from all the board .dts files, and stop using
CONFIG_APPENDED_DTBsince U-boot supports FDT, and will update the cmdline with whatever the user chose. Still, I think this is probably OK for now.
Actually, removing the default root path is probably a better idea, since it will vary from installation to installation and doesn't make sense to hard code.
There's two ways to solve this with u-boot:
* Boot with an u-boot that knows how to pass a device tree (and add the bootargs to it before launching the kernel, and do so by either booting a fitImage or by loading the device tree explicitly.
* Use the appended-dtb kernel format, and select the ARM_ATAG_DTB_COMPAT option. That will mean that the bootargs passed in from atags are moved over to the device tree.
So, I would rather see a patch removing the root= argument alltogether.
Thanks!
-Olof
PATCH 1/1 dts: tegra-ventana: use proper root instead of /dev/ram
Olof Johansson wrote at Sunday, November 20, 2011 5:50 PM:
Quoted 5 lines · Stephen Warren
Quoted 4 lines
Varun Wadekar wrote at Monday, November 14, 2011 11:21 PM:
Quoted 3 lines
From: Pritesh Raithatha <[email protected]>
The root file system on ventana resides on
/dev/mmcblk0p1.
...
Quoted 3 lines
Actually, removing the default root path is probably a better idea, since it will vary from installation to installation and doesn't make sense to hard code.
...
Quoted 1 line
So, I would rather see a patch removing the root= argument alltogether.
OK, I'll whip up a patch for that along with a few other minor DTS fixes.
Signature · 1 line
nvpublic