Re: [U-Boot-Users] Pull request: u-boot-net
Ben Warren wrote: > Wolfgang, > > Ben Warren wrote: >> Wolfgang, >> >> Please pull from the net repo: >> >> The following changes since commit >> 2c8d41969b47eb0b973912830c58689b2ba0e50a: >> Wolfgang Denk (1): >>Merge branch 'master' of git://git.denx.de/u-boot-testing >> >> are available in the git repository at: >> >> git://www.denx.de/git/u-boot-net.git master >> > Please hold off on pulling this. I made a git error on further > submissions and need to fix it. > > regards, > Ben > It's OK now. Please pull. regards, Ben - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
Re: [U-Boot-Users] [PATCH] PHY: Add support for the M88E1121R Marvell chip.
Wolfgang Denk wrote: > From: Sergei Poselenov <[EMAIL PROTECTED]> > > Signed-off-by: Yuri Tikhonov <[EMAIL PROTECTED]> > Signed-off-by: Sergei Poselenov <[EMAIL PROTECTED]> > Acked-by: Ben Warren <[EMAIL PROTECTED]> > --- > drivers/net/tsec.c | 49 + > drivers/net/tsec.h |7 +++ > 2 files changed, 56 insertions(+), 0 deletions(-) > > diff --git a/drivers/net/tsec.c b/drivers/net/tsec.c > index c7af930..565da5c 100644 > --- a/drivers/net/tsec.c > +++ b/drivers/net/tsec.c > @@ -1128,6 +1128,54 @@ struct phy_info phy_info_M88ES = { > }, > }; > > +/* > + * Since to access LED register we need do switch the page, we > + * do LED configuring in the miim_read-like function as follows > + */ > +uint mii_88E1121_set_led (uint mii_reg, struct tsec_private *priv) > +{ > + uint pg; > + > + /* Switch the page to access the led register */ > + pg = read_phy_reg(priv, MIIM_88E1121_PHY_PAGE); > + write_phy_reg(priv, MIIM_88E1121_PHY_PAGE, MIIM_88E1121_PHY_LED_PAGE); > + > + /* Configure leds */ > + write_phy_reg(priv, MIIM_88E1121_PHY_LED_CTRL, > + MIIM_88E1121_PHY_LED_DEF); > + > + /* Restore the page pointer */ > + write_phy_reg(priv, MIIM_88E1121_PHY_PAGE, pg); > + return 0; > +} > + > +struct phy_info phy_info_M88E1121R = { > + 0x01410cb, > + "Marvell 88E1121R", > + 4, > + (struct phy_cmd[]){ /* config */ > +/* Reset and configure the PHY */ > +{MIIM_CONTROL, MIIM_CONTROL_RESET, NULL}, > +{MIIM_GBIT_CONTROL, MIIM_GBIT_CONTROL_INIT, NULL}, > +{MIIM_ANAR, MIIM_ANAR_INIT, NULL}, > +/* Configure leds */ > +{MIIM_88E1121_PHY_LED_CTRL, miim_read, > + &mii_88E1121_set_led}, > +{MIIM_CONTROL, MIIM_CONTROL_INIT, &mii_cr_init}, > +{miim_end,} > +}, > + (struct phy_cmd[]){ /* startup */ > +/* Status is read once to clear old link state */ > +{MIIM_STATUS, miim_read, NULL}, > +{MIIM_STATUS, miim_read, &mii_parse_sr}, > +{MIIM_STATUS, miim_read, &mii_parse_link}, > +{miim_end,} > +}, > + (struct phy_cmd[]){ /* shutdown */ > +{miim_end,} > +}, > +}; > + > static unsigned int m88e1145_setmode(uint mii_reg, struct tsec_private *priv) > { > uint mii_data = read_phy_reg(priv, mii_reg); > @@ -1492,6 +1540,7 @@ struct phy_info *phy_info[] = { > &phy_info_BCM5464S, > &phy_info_M88E1011S, > &phy_info_M88ES, > + &phy_info_M88E1121R, > &phy_info_M88E1145, > &phy_info_M88E1149S, > &phy_info_dm9161, > diff --git a/drivers/net/tsec.h b/drivers/net/tsec.h > index 6a2338b..fee5934 100644 > --- a/drivers/net/tsec.h > +++ b/drivers/net/tsec.h > @@ -184,6 +184,13 @@ > #define MIIM_88E_PHY_LED_DIRECT 0x4100 > #define MIIM_88E_PHY_LED_COMBINE 0x411C > > +/* 88E1121 PHY LED Control Register */ > +#define MIIM_88E1121_PHY_LED_CTRL16 > +#define MIIM_88E1121_PHY_LED_PAGE3 > +#define MIIM_88E1121_PHY_LED_DEF 0x0030 > + > +#define MIIM_88E1121_PHY_PAGE22 > + > /* 88E1145 Extended PHY Specific Control Register */ > #define MIIM_88E1145_PHY_EXT_CR 20 > #define MIIM_M88E1145_RGMII_RX_DELAY 0x0080 > - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
[U-Boot-Users] [PATCH v2] Move conditional compilation of MPC8XXX SPI driver to Makefile
Signed-off-by: Ben Warren <[EMAIL PROTECTED]> --- board/freescale/mpc8349emds/mpc8349emds.c |2 +- drivers/spi/Makefile |2 +- drivers/spi/mpc8xxx_spi.c |2 -- include/configs/MPC8349EMDS.h |1 - include/spi.h |9 + lib_ppc/board.c |2 -- 6 files changed, 11 insertions(+), 7 deletions(-) diff --git a/board/freescale/mpc8349emds/mpc8349emds.c b/board/freescale/mpc8349emds/mpc8349emds.c index e18e68e..0acc17e 100644 --- a/board/freescale/mpc8349emds/mpc8349emds.c +++ b/board/freescale/mpc8349emds/mpc8349emds.c @@ -253,7 +253,7 @@ void sdram_init(void) /* * The following are used to control the SPI chip selects for the SPI command. */ -#ifdef CONFIG_HARD_SPI +#ifdef CONFIG_MPC8XXX_SPI #define SPI_CS_MASK0x8000 diff --git a/drivers/spi/Makefile b/drivers/spi/Makefile index e66e0ee..4f7b679 100644 --- a/drivers/spi/Makefile +++ b/drivers/spi/Makefile @@ -25,7 +25,7 @@ include $(TOPDIR)/config.mk LIB:= $(obj)libspi.a -COBJS-y += mpc8xxx_spi.o +COBJS-$(CONFIG_MPC8XXX_SPI) += mpc8xxx_spi.o COBJS-$(CONFIG_ATMEL_SPI) += atmel_spi.o COBJS-$(CONFIG_MXC_SPI) += mxc_spi.o diff --git a/drivers/spi/mpc8xxx_spi.c b/drivers/spi/mpc8xxx_spi.c index 136fb50..9eaf986 100644 --- a/drivers/spi/mpc8xxx_spi.c +++ b/drivers/spi/mpc8xxx_spi.c @@ -22,7 +22,6 @@ */ #include -#if defined(CONFIG_MPC8XXX_SPI) && defined(CONFIG_HARD_SPI) #include #include @@ -180,4 +179,3 @@ int spi_xfer(struct spi_slave *slave, unsigned int bitlen, const void *dout, return 0; } -#endif /* CONFIG_HARD_SPI */ diff --git a/include/configs/MPC8349EMDS.h b/include/configs/MPC8349EMDS.h index bd77540..af72538 100644 --- a/include/configs/MPC8349EMDS.h +++ b/include/configs/MPC8349EMDS.h @@ -355,7 +355,6 @@ /* SPI */ #define CONFIG_MPC8XXX_SPI -#define CONFIG_HARD_SPI/* SPI with hardware support */ #undef CONFIG_SOFT_SPI /* SPI bit-banged */ /* GPIOs. Used as SPI chip selects */ diff --git a/include/spi.h b/include/spi.h index 7744c2e..320e50e 100644 --- a/include/spi.h +++ b/include/spi.h @@ -24,6 +24,15 @@ #ifndef _SPI_H_ #define _SPI_H_ +/* Controller-specific definitions: */ + +/* CONFIG_HARD_SPI triggers SPI bus initialization in PowerPC */ +#ifdef CONFIG_MPC8XXX_SPI +# ifndef CONFIG_HARD_SPI +# define CONFIG_HARD_SPI +# endif +#endif + /* SPI mode flags */ #defineSPI_CPHA0x01/* clock phase */ #defineSPI_CPOL0x02/* clock polarity */ diff --git a/lib_ppc/board.c b/lib_ppc/board.c index a908831..afa0c74 100644 --- a/lib_ppc/board.c +++ b/lib_ppc/board.c @@ -90,9 +90,7 @@ void doc_init (void); defined(CONFIG_SOFT_I2C) #include #endif -#if defined(CONFIG_HARD_SPI) #include -#endif #include static char *failed = "*** failed ***\n"; -- 1.5.4.3 - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
Re: [U-Boot-Users] [PATCH] PHY: Add support for the M88E1121R Marvell chip.
Dear Ben, in message <[EMAIL PROTECTED]> you wrote: > > This won't apply because to the net repo, I'm guessing because I've > already applied another patch to driver/net/tsec.c for another Marvell > PHY (commit 290ef6436838b1cc013bd67e0e0495c9eb3e23c0) and it hasn't made > it into the main line yet. I see two options: > > 1. Somebody who knows more about git please tell me how to merge this. > 2. Rebase the patch vs. the current net tree. If you agree with the content of the patch, then please just ACK it. I will then first pull the net repo, and after this merge with the "socrates" branch I have here. I will also resolve the resulting merge conflicts, if any. OK? Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [EMAIL PROTECTED] In the beginning, there was nothing, which exploded. - Terry Pratchett, _Lords and Ladies_ - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
Re: [U-Boot-Users] 2-step U-boot(?)
In message <[EMAIL PROTECTED]> you wrote: > > I'm new to u-boot. Has anybody tried to make 2-step u-boot? I mean a really > small u-boot (the first u-boot) possible only needs to initialize the CPU, > memory... and load the full featured (the second u-boot) u-boot and the Li As Stefan already pointed out, booting from NAND involves exactly such a scenario. > nux to the RAM. In this way the second u-boot as an application can be upda > ted on the fly. However I don;t really understand what this has to do with the capability to update U-Boot? You can update U-Boot as is just fine. > --_000_52CF207E00A9394C8CD1423668654840A8B3DB1E4rfnzexch02loca_ > Content-Type: text/html; charset="us-ascii" > Content-Transfer-Encoding: quoted-printable > > Please never post HTML to this list! Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [EMAIL PROTECTED] Never worry about theory as long as the machinery does what it's supposed to do. - R. A. Heinlein - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
Re: [U-Boot-Users] Question on SH7763
On Mon, Jun 09, 2008 at 01:25:55PM +0900, Nobuhiro Iwamatsu wrote: > >CC ed the u-boot mailinglist, because its more a u-boot topic. I used to > >compile the u-boot > >for a sh7750R based board (Sorry, patches for u-boot not posted yet ...) > >with the > >compiler from > > > >http://www.sh-linux.org > > > >There is also a fine readme.txt for installation. > > > >or use crosstools for making a compiler for your needs. See it at: > > > >http://www.kegel.com/crosstool/ > > > >And then, hack the code ;-) > >If your Flash supports CFI it should work with the CFI driver in u-boot. > >Look in the u-boot readme how to start/modify the u-boot code. > > And I wrote a document a little. > Please check doc/README.sh > On a somewhat related note, what is the status of the SH7203 patches? I have some SH7206 and MX-G bits that build on top of them, yet I don't see any of the SH7203 stuff in the git tree? - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
Re: [U-Boot-Users] [PATCH] PHY: Add support for the M88E1121R Marvell chip.
Hi, Wolfgang Denk wrote: > From: Sergei Poselenov <[EMAIL PROTECTED]> > > Signed-off-by: Yuri Tikhonov <[EMAIL PROTECTED]> > Signed-off-by: Sergei Poselenov <[EMAIL PROTECTED]> > --- > drivers/net/tsec.c | 49 + > drivers/net/tsec.h |7 +++ > 2 files changed, 56 insertions(+), 0 deletions(-) > > diff --git a/drivers/net/tsec.c b/drivers/net/tsec.c > index c7af930..565da5c 100644 > --- a/drivers/net/tsec.c > +++ b/drivers/net/tsec.c > @@ -1128,6 +1128,54 @@ struct phy_info phy_info_M88ES = { > }, > }; > > +/* > + * Since to access LED register we need do switch the page, we > + * do LED configuring in the miim_read-like function as follows > + */ > +uint mii_88E1121_set_led (uint mii_reg, struct tsec_private *priv) > +{ > + uint pg; > + > + /* Switch the page to access the led register */ > + pg = read_phy_reg(priv, MIIM_88E1121_PHY_PAGE); > + write_phy_reg(priv, MIIM_88E1121_PHY_PAGE, MIIM_88E1121_PHY_LED_PAGE); > + > + /* Configure leds */ > + write_phy_reg(priv, MIIM_88E1121_PHY_LED_CTRL, > + MIIM_88E1121_PHY_LED_DEF); > + > + /* Restore the page pointer */ > + write_phy_reg(priv, MIIM_88E1121_PHY_PAGE, pg); > + return 0; > +} > + > +struct phy_info phy_info_M88E1121R = { > + 0x01410cb, > + "Marvell 88E1121R", > + 4, > + (struct phy_cmd[]){ /* config */ > +/* Reset and configure the PHY */ > +{MIIM_CONTROL, MIIM_CONTROL_RESET, NULL}, > +{MIIM_GBIT_CONTROL, MIIM_GBIT_CONTROL_INIT, NULL}, > +{MIIM_ANAR, MIIM_ANAR_INIT, NULL}, > +/* Configure leds */ > +{MIIM_88E1121_PHY_LED_CTRL, miim_read, > + &mii_88E1121_set_led}, > +{MIIM_CONTROL, MIIM_CONTROL_INIT, &mii_cr_init}, > +{miim_end,} > +}, > + (struct phy_cmd[]){ /* startup */ > +/* Status is read once to clear old link state */ > +{MIIM_STATUS, miim_read, NULL}, > +{MIIM_STATUS, miim_read, &mii_parse_sr}, > +{MIIM_STATUS, miim_read, &mii_parse_link}, > +{miim_end,} > +}, > + (struct phy_cmd[]){ /* shutdown */ > +{miim_end,} > +}, > +}; > + > static unsigned int m88e1145_setmode(uint mii_reg, struct tsec_private *priv) > { > uint mii_data = read_phy_reg(priv, mii_reg); > @@ -1492,6 +1540,7 @@ struct phy_info *phy_info[] = { > &phy_info_BCM5464S, > &phy_info_M88E1011S, > &phy_info_M88ES, > + &phy_info_M88E1121R, > &phy_info_M88E1145, > &phy_info_M88E1149S, > &phy_info_dm9161, > diff --git a/drivers/net/tsec.h b/drivers/net/tsec.h > index 6a2338b..fee5934 100644 > --- a/drivers/net/tsec.h > +++ b/drivers/net/tsec.h > @@ -184,6 +184,13 @@ > #define MIIM_88E_PHY_LED_DIRECT 0x4100 > #define MIIM_88E_PHY_LED_COMBINE 0x411C > > +/* 88E1121 PHY LED Control Register */ > +#define MIIM_88E1121_PHY_LED_CTRL16 > +#define MIIM_88E1121_PHY_LED_PAGE3 > +#define MIIM_88E1121_PHY_LED_DEF 0x0030 > + > +#define MIIM_88E1121_PHY_PAGE22 > + > /* 88E1145 Extended PHY Specific Control Register */ > #define MIIM_88E1145_PHY_EXT_CR 20 > #define MIIM_M88E1145_RGMII_RX_DELAY 0x0080 > This won't apply because to the net repo, I'm guessing because I've already applied another patch to driver/net/tsec.c for another Marvell PHY (commit 290ef6436838b1cc013bd67e0e0495c9eb3e23c0) and it hasn't made it into the main line yet. I see two options: 1. Somebody who knows more about git please tell me how to merge this. 2. Rebase the patch vs. the current net tree. regards, Ben - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
Re: [U-Boot-Users] 2-step U-boot(?)
On Monday 09 June 2008, Frank Wei wrote: > I'm new to u-boot. Has anybody tried to make 2-step u-boot? I mean a really > small u-boot (the first u-boot) possible only needs to initialize the CPU, > memory... and load the full featured (the second u-boot) u-boot and the > Linux to the RAM. In this way the second u-boot as an application can be > updated on the fly. > > Could you please share your knowledge here If you have done the job or the > similar? Yes, there already is a framework for a 2-stage U-Boot booting in place. Take a look at the nand_spl (NAND Secondary Program Loader) infrastructure: nand_spl/* doc/README.nand-boot-ppc440 Here a small (4k) image is build which only inits the basic CPU stuff, RAM and NAND controller. Then a full-blown U-Boot image is loaded from NAND. Best regards, Stefan = DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: [EMAIL PROTECTED] = - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
[U-Boot-Users] [PATCH v2] sh: Renesas Solutions SH7763RDP board support
SH7763RDP has SCIF, NOR Flash, Ethernet, USB host, LCDC and MMC. In this patch, support SCIF, NOR Flash, and Ethernet. Signed-off-by: Nobuhiro Iwamatsu <[EMAIL PROTECTED]> --- MAINTAINERS |1 + MAKEALL |1 + Makefile|5 + board/sh7763rdp/Makefile| 47 + board/sh7763rdp/config.mk | 11 ++ board/sh7763rdp/lowlevel_init.S | 351 +++ board/sh7763rdp/sh7763rdp.c | 76 + board/sh7763rdp/u-boot.lds | 106 include/configs/sh7763rdp.h | 126 ++ 9 files changed, 724 insertions(+), 0 deletions(-) create mode 100644 board/sh7763rdp/Makefile create mode 100644 board/sh7763rdp/config.mk create mode 100644 board/sh7763rdp/lowlevel_init.S create mode 100644 board/sh7763rdp/sh7763rdp.c create mode 100644 board/sh7763rdp/u-boot.lds create mode 100644 include/configs/sh7763rdp.h diff --git a/MAINTAINERS b/MAINTAINERS index d3dfd48..b3daaeb 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -718,6 +718,7 @@ Nobuhiro Iwamatsu <[EMAIL PROTECTED]> MS7722SESH7722 R7780MP SH7780 R2DPlus SH7751R + SH7763RDP SH7763 Mark Jonas <[EMAIL PROTECTED]> diff --git a/MAKEALL b/MAKEALL index 3cb1d24..45ef33e 100755 --- a/MAKEALL +++ b/MAKEALL @@ -749,6 +749,7 @@ LIST_sh4=" \ Migo-R \ r7780mp \ r2dplus \ + sh7763rdp \ " LIST_sh=" \ diff --git a/Makefile b/Makefile index cc988e1..cb63223 100644 --- a/Makefile +++ b/Makefile @@ -2941,6 +2941,11 @@ r2dplus_config : unconfig @echo "#define CONFIG_R2DPLUS 1" >> include/config.h @./mkconfig -a $(@:_config=) sh sh4 r2dplus +sh7763rdp_config : unconfig + @ >include/config.h + @echo "#define CONFIG_SH7763RDP 1" >> include/config.h + @./mkconfig -a $(@:_config=) sh sh4 sh7763rdp + # # SPARC # diff --git a/board/sh7763rdp/Makefile b/board/sh7763rdp/Makefile new file mode 100644 index 000..9e63ea7 --- /dev/null +++ b/board/sh7763rdp/Makefile @@ -0,0 +1,47 @@ +# +# Copyright (C) 2008 Renesas Solutions Corp. +# Copyright (C) 2008 Nobuhiro Iwamatsu <[EMAIL PROTECTED]> +# Copyright (C) 2007 Kenati Technologies, Inc. +# +# board/sh7763rdp/Makefile +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, +# MA 02111-1307 USA +# + +include $(TOPDIR)/config.mk + +LIB= lib$(BOARD).a + +OBJS := sh7763rdp.o +SOBJS := lowlevel_init.o + +$(LIB):$(OBJS) $(SOBJS) + $(AR) crv $@ $(OBJS) $(SOBJS) + +clean: + rm -f $(SOBJS) $(OBJS) + +distclean: clean + rm -f $(LIB) core *.bak .depend + +# + +.depend: Makefile $(SOBJS:.o=.S) $(OBJS:.o=.c) + $(CC) -M $(CPPFLAGS) $(SOBJS:.o=.S) $(OBJS:.o=.c) > $@ + +-include .depend + +# diff --git a/board/sh7763rdp/config.mk b/board/sh7763rdp/config.mk new file mode 100644 index 000..c52dbfd --- /dev/null +++ b/board/sh7763rdp/config.mk @@ -0,0 +1,11 @@ +# +# board/sh7763rdp/config.mk +# +# TEXT_BASE refers to image _after_ relocation. +# +# NOTE: Must match value used in u-boot.lds (in this directory). +# + +TEXT_BASE = 0x8FFC + +# PLATFORM_CPPFLAGS += -DCONFIG_MULTIBOOT diff --git a/board/sh7763rdp/lowlevel_init.S b/board/sh7763rdp/lowlevel_init.S new file mode 100644 index 000..1942892 --- /dev/null +++ b/board/sh7763rdp/lowlevel_init.S @@ -0,0 +1,351 @@ +/* + * Copyright (C) 2008 Renesas Solutions Corp. + * Copyright (C) 2008 Nobuhiro Iwamatsu <[EMAIL PROTECTED]> + * Copyright (C) 2007 Kenati Technologies, Inc. + * + * board/sh7763rdp/lowlevel_init.S + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY
[U-Boot-Users] 2-step U-boot(?)
Hello, I'm new to u-boot. Has anybody tried to make 2-step u-boot? I mean a really small u-boot (the first u-boot) possible only needs to initialize the CPU, memory... and load the full featured (the second u-boot) u-boot and the Linux to the RAM. In this way the second u-boot as an application can be updated on the fly. Could you please share your knowledge here If you have done the job or the similar? Regards, - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php___ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
Re: [U-Boot-Users] Question on SH7763
Hello, Heiko. Thank you for your comments. > > CC ed the u-boot mailinglist, because its more a u-boot topic. I used to > compile the u-boot > for a sh7750R based board (Sorry, patches for u-boot not posted yet ...) > with the > compiler from > > http://www.sh-linux.org > > There is also a fine readme.txt for installation. > > or use crosstools for making a compiler for your needs. See it at: > > http://www.kegel.com/crosstool/ > > And then, hack the code ;-) > If your Flash supports CFI it should work with the CFI driver in u-boot. > Look in the u-boot readme how to start/modify the u-boot code. And I wrote a document a little. Please check doc/README.sh Best regards, Nobuhiro - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
[U-Boot-Users] [PATCH] mips: When booting Linux images, add 'ethaddr' and 'eth1addr' to the environment
Add 'ethaddr' and 'eth1addr' to the Linux kernel environment if they are set in the U-Boot environment. Signed-off-by: Jason McMullan <[EMAIL PROTECTED]> --- lib_mips/bootm.c | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/lib_mips/bootm.c b/lib_mips/bootm.c index f813fc5..8fe3782 100644 --- a/lib_mips/bootm.c +++ b/lib_mips/bootm.c @@ -54,6 +54,7 @@ void do_bootm_linux (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[], char*commandline = getenv ("bootargs"); charenv_buf[12]; int ret; + const char *cp; /* find kernel entry point */ if (images->legacy_hdr_valid) { @@ -113,6 +114,16 @@ void do_bootm_linux (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[], sprintf (env_buf, "0x%X", (uint) (gd->bd->bi_flashsize)); linux_env_set ("flash_size", env_buf); + cp = getenv("ethaddr"); + if (cp != NULL) { + linux_env_set("ethaddr", cp); + } + + cp = getenv("eth1addr"); + if (cp != NULL) { + linux_env_set("eth1addr", cp); + } + if (!images->autostart) return ; -- 1.5.4.3 - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
[U-Boot-Users] [PATCH] i.MX31: fixed CTRL-C detection
The Register URXD contains status information in bits [15..8]. With status bit 15 set, CTRL-C was reported as 0x8003 instead of 0x03. Therefore CTRL-C was not detected. To solve this, bits [15..8] were masked out now. Signed-off-by: Juergen Kilb <[EMAIL PROTECTED]> --- cpu/arm1136/mx31/serial.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/cpu/arm1136/mx31/serial.c b/cpu/arm1136/mx31/serial.c index 1cad8f9..f498599 100644 --- a/cpu/arm1136/mx31/serial.c +++ b/cpu/arm1136/mx31/serial.c @@ -63,6 +63,7 @@ #define URXD_FRMERR (1<<12) #define URXD_BRK(1<<11) #define URXD_PRERR (1<<10) +#define URXD_RX_DATA(0xFF) #define UCR1_ADEN (1<<15) /* Auto dectect interrupt */ #define UCR1_ADBR (1<<14) /* Auto detect baud rate */ #define UCR1_TRDYEN (1<<13) /* Transmitter ready interrupt enable */ @@ -165,7 +166,7 @@ void serial_setbrg (void) int serial_getc (void) { while (__REG(UART_PHYS + UTS) & UTS_RXEMPTY); - return __REG(UART_PHYS + URXD); + return (__REG(UART_PHYS + URXD) & URXD_RX_DATA); /* mask out status from upper word */ } void serial_putc (const char c) -- 1.5.5.1 - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users