[U-Boot] [PATCH v2] powerpc, 8xx: Add support for MCR3000 board from CSSI

Tom Rini trini at konsulko.com
Thu Jul 6 14:13:37 UTC 2017


On Thu, Jul 06, 2017 at 03:58:27PM +0200, Christophe LEROY wrote:
> Dear Wolfgang,
> 
> Le 06/07/2017 à 13:12, Wolfgang Denk a écrit :
> >Dear Christophe,
> >
> >In message <20170706083955.0D92F69745 at pc13941vm.idsi0.si.c-s.fr> you wrote:
> >>
> >>This patch adds support for the first board.
> >...
> >
> >>diff --git a/board/cssi/MCR3000/u-boot.lds b/board/cssi/MCR3000/u-boot.lds
> >>new file mode 100644
> >>index 0000000000..2234bd8d1d
> >>--- /dev/null
> >>+++ b/board/cssi/MCR3000/u-boot.lds
> >...
> >>+OUTPUT_ARCH(powerpc)
> >>+SECTIONS
> >>+{
> >>+  /* Read-only sections, merged into text segment: */
> >>+  . = + SIZEOF_HEADERS;
> >>+  .text          :
> >>+  {
> >...
> >
> >Like with C code, TABs should be used for indentation.
> 
> Ok
> 
> >
> >
> >...
> >>diff --git a/include/configs/MCR3000.h b/include/configs/MCR3000.h
> >>new file mode 100644
> >>index 0000000000..53d4e9468a
> >>--- /dev/null
> >>+++ b/include/configs/MCR3000.h
> >...
> >>+#define CONFIG_IPADDR			192.168.0.3
> >>+#define CONFIG_SERVERIP			192.168.0.1
> >>+#define CONFIG_NETMASK			255.0.0.0
> >
> >Static network configuration in board config files is strongly
> >discouraged.  Please remove.
> 
> But with no IP CONFIG, the board won't boot properly.
> I propose to leave it for the time being (there is plenty in other
> board configs) and add that in my TODO list.

Agreed.  Figuring out what to do about these CONFIG options is somewhere
on my list as it's indeed against best practices now.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170706/03fd5aa0/attachment.sig>


More information about the U-Boot mailing list