From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Thu, 19 Jul 2007 11:32:30 +1000 From: David Gibson To: Scott Wood Subject: Re: [PATCH 17/61] bootwrapper: Add 8xx support. Message-ID: <20070719013230.GB20458@localhost.localdomain> References: <20070718013137.GA15217@ld0162-tx32.am.freescale.net> <20070718013318.GP15238@ld0162-tx32.am.freescale.net> <20070718033026.GG18251@localhost.localdomain> <469E3C11.1090809@freescale.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <469E3C11.1090809@freescale.com> Cc: linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Wed, Jul 18, 2007 at 11:13:05AM -0500, Scott Wood wrote: > David Gibson wrote: > > On Tue, Jul 17, 2007 at 08:33:18PM -0500, Scott Wood wrote: > > [snip] > > > >>diff --git a/arch/powerpc/boot/cuboot-8xx.c b/arch/powerpc/boot/cuboot-8xx.c > >>new file mode 100644 > >>index 0000000..35476a0 > >>--- /dev/null > >>+++ b/arch/powerpc/boot/cuboot-8xx.c > >>@@ -0,0 +1,47 @@ > >>+/* > >>+ * Old U-boot compatibility for 8xx > >>+ * > >>+ * Author: Scott Wood > >>+ * > >>+ * Copyright (c) 2007 Freescale Semiconductor, Inc. > >>+ * > >>+ * This program is free software; you can redistribute it and/or modify it > >>+ * under the terms of the GNU General Public License version 2 as published > >>+ * by the Free Software Foundation. > >>+ */ > >>+ > >>+#include "ops.h" > >>+#include "stdio.h" > >>+#include "cuboot.h" > >>+ > >>+#define TARGET_8xx > >>+#define TARGET_HAS_ETH1 > > > > ^^^^^^^^^^^^^^^ > > Is that really true for all 8xx boards? > > Well, no. Even on a given board, it depends on the version of u-boot. > > There's nothing after enet1addr that the bootwrapper cares about, > though, so the only harm is if the device tree has a second network > interface but u-boot doesn't know about it, and the bootwrapper ends up > pulling in junk rather than leaving zeroes. That sounds like a terribly fragile way of handling things. -- David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson