public inbox for linux-tegra@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1] dts: tegra-ventana: use proper root instead of /dev/ram
@ 2011-11-15  6:21 Varun Wadekar
       [not found] ` <1321338087-3662-1-git-send-email-vwadekar-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Varun Wadekar @ 2011-11-15  6:21 UTC (permalink / raw)
  To: swarren-DDmLM1+adcrQT0dZR+AlfA, olof-nZhT3qVonbNeoWH0uzbU5w,
	ccross-z5hGa2qSFaRBDgjK7y7TUQ
  Cc: linux-tegra-u79uwXL29TY76Z2rM5mHXA,
	devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	Pritesh Raithatha

From: Pritesh Raithatha <praithatha-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>

The root file system on ventana resides on /dev/mmcblk0p1.
Update the dts file to use the proper root instead of /dev/ram.

Signed-off-by: Pritesh Raithatha <praithatha-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
Signed-off-by: Varun Wadekar <vwadekar-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
---
 arch/arm/boot/dts/tegra-ventana.dts |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/arm/boot/dts/tegra-ventana.dts b/arch/arm/boot/dts/tegra-ventana.dts
index 9b29a62..5f7fe74 100644
--- a/arch/arm/boot/dts/tegra-ventana.dts
+++ b/arch/arm/boot/dts/tegra-ventana.dts
@@ -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 {
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* RE: [PATCH v1] dts: tegra-ventana: use proper root instead of /dev/ram
       [not found] ` <1321338087-3662-1-git-send-email-vwadekar-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
@ 2011-11-15 19:16   ` Stephen Warren
       [not found]     ` <74CDBE0F657A3D45AFBB94109FB122FF1740805E1B-C7FfzLzN0UxDw2glCA4ptUEOCMrvLtNR@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Stephen Warren @ 2011-11-15 19:16 UTC (permalink / raw)
  To: Varun Wadekar, olof-nZhT3qVonbNeoWH0uzbU5w@public.gmane.org,
	ccross-z5hGa2qSFaRBDgjK7y7TUQ@public.gmane.org
  Cc: linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
	devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org,
	Pritesh Raithatha

Varun Wadekar wrote at Monday, November 14, 2011 11:21 PM:
> From: Pritesh Raithatha <praithatha-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
> 
> 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.

> Update the dts file to use the proper root instead of /dev/ram.
> 
> Signed-off-by: Pritesh Raithatha <praithatha-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
> Signed-off-by: Varun Wadekar <vwadekar-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>

Acked-by: Stephen Warren <swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>

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.

-- 
nvpublic

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v1] dts: tegra-ventana: use proper root instead of /dev/ram
       [not found]     ` <74CDBE0F657A3D45AFBB94109FB122FF1740805E1B-C7FfzLzN0UxDw2glCA4ptUEOCMrvLtNR@public.gmane.org>
@ 2011-11-21  0:49       ` Olof Johansson
       [not found]         ` <20111121004930.GA17338-O5ziIzlqnXUVNXGz7ipsyg@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Olof Johansson @ 2011-11-21  0:49 UTC (permalink / raw)
  To: Stephen Warren
  Cc: Varun Wadekar, ccross-z5hGa2qSFaRBDgjK7y7TUQ@public.gmane.org,
	linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
	devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org,
	Pritesh Raithatha

On Tue, Nov 15, 2011 at 11:16:51AM -0800, Stephen Warren wrote:
> Varun Wadekar wrote at Monday, November 14, 2011 11:21 PM:
> > From: Pritesh Raithatha <praithatha-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
> > 
> > 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.
> 
> > Update the dts file to use the proper root instead of /dev/ram.
> > 
> > Signed-off-by: Pritesh Raithatha <praithatha-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
> > Signed-off-by: Varun Wadekar <vwadekar-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
> 
> Acked-by: Stephen Warren <swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
> 
> 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.

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: [PATCH v1] dts: tegra-ventana: use proper root instead of /dev/ram
       [not found]         ` <20111121004930.GA17338-O5ziIzlqnXUVNXGz7ipsyg@public.gmane.org>
@ 2011-11-21 16:56           ` Stephen Warren
  0 siblings, 0 replies; 4+ messages in thread
From: Stephen Warren @ 2011-11-21 16:56 UTC (permalink / raw)
  To: Olof Johansson
  Cc: Varun Wadekar, ccross-z5hGa2qSFaRBDgjK7y7TUQ@public.gmane.org,
	linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
	devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org,
	Pritesh Raithatha

Olof Johansson wrote at Sunday, November 20, 2011 5:50 PM:
> On Tue, Nov 15, 2011 at 11:16:51AM -0800, Stephen Warren wrote:
> > Varun Wadekar wrote at Monday, November 14, 2011 11:21 PM:
> > > From: Pritesh Raithatha <praithatha-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
> > >
> > > The root file system on ventana resides on /dev/mmcblk0p1.
...
> 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.
...
> 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.

-- 
nvpublic

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-11-21 16:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-15  6:21 [PATCH v1] dts: tegra-ventana: use proper root instead of /dev/ram Varun Wadekar
     [not found] ` <1321338087-3662-1-git-send-email-vwadekar-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2011-11-15 19:16   ` Stephen Warren
     [not found]     ` <74CDBE0F657A3D45AFBB94109FB122FF1740805E1B-C7FfzLzN0UxDw2glCA4ptUEOCMrvLtNR@public.gmane.org>
2011-11-21  0:49       ` Olof Johansson
     [not found]         ` <20111121004930.GA17338-O5ziIzlqnXUVNXGz7ipsyg@public.gmane.org>
2011-11-21 16:56           ` Stephen Warren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox