Re: [U-Boot] [PATCH 10/10] imx27lite: add support for imx27lite board from LogicPD

2009-06-13 Thread Paul Thomas
On Thu, Jun 11, 2009 at 3:38 PM, Paul Thomas pthomas8...@gmail.com wrote:


 Note that the old version of that code is available in the imx27lite
 branch of the u-boot-testing repository; see

 http://git.denx.de/?p=u-boot/u-boot-testing.git;a=shortlog;h=refs/heads/imx27lite


 Is this still the best branch for imx27lite? I'm not getting anything on
 the serial port when I run this? I'm using a crosstool NG cross-compiler
 arm-unknown-linux-gnu-gcc (crosstool-ng-svn_tr...@1300) 4.3.2. Will that
 work OK? It builds fine. If I load the redboot image then I do get output on
 the serial port, and both images seem to be located at 0xa7f0 which
 should be fine.

 thanks,
 Paul


I did pull this tarball:
http://git.denx.de/?p=u-boot/u-boot-testing.git;a=shortlog;h=refs/heads/imx27lite-v2

But it's still not working. So to figure this out I started single stepping
through u-boot with gdb. I get to line 186 in lowlevel_init.S. The line is
str r1, [r0, #ESDCFG1_ROF]. This looks like a simple simple store
instruction. Any thoughts as to why it stops there?

thanks,
Paul
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH 10/10] imx27lite: add support for imx27lite board from LogicPD

2009-06-11 Thread Paul Thomas
 Note that the old version of that code is available in the imx27lite
 branch of the u-boot-testing repository; see

 http://git.denx.de/?p=u-boot/u-boot-testing.git;a=shortlog;h=refs/heads/imx27lite


Is this still the best branch for imx27lite? I'm not getting anything on the
serial port when I run this? I'm using a crosstool NG cross-compiler
arm-unknown-linux-gnu-gcc (crosstool-ng-svn_tr...@1300) 4.3.2. Will that
work OK? It builds fine. If I load the redboot image then I do get output on
the serial port, and both images seem to be located at 0xa7f0 which
should be fine.

thanks,
Paul
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH 10/10] imx27lite: add support for imx27lite board from LogicPD

2009-05-28 Thread Paul Thomas
On Thu, May 28, 2009 at 2:45 PM, Wolfgang Denk w...@denx.de wrote:

 Dear Paul,

 in message c785bba30905281246y62fa3556y4a2f8e6a9a044...@mail.gmail.com
 you wrote:
 
  Where do I find these patches? Does anyone have an ETA when the imx27
 stuff
  will show up in git?

 The patches have been posted here on this mailing list.

 It's primarily up to Jean-Cristophe when he will apply these patches
 to the ARM repository, from where I can pull them.

 Note that the old version of that code is available in the imx27lite
 branch of the u-boot-testing repository; see

 http://git.denx.de/?p=u-boot/u-boot-testing.git;a=shortlog;h=refs/heads/imx27lite

 I will try to push the new stuff into a imx27lite_v2 branch ASAP.
 Stay tuned.

 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: w...@denx.de
 Brain off-line, please wait.


Wolfgang,

Thanks for the info. I'm pulling u-boot-testing now. You might stick a link
to u-boot-testing on the projects root page (http://git.denx.de/). I looked
there before and only saw the u-boot repository.

thanks,
Paul
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH 10/10] imx27lite: add support for imx27lite board from LogicPD

2009-05-20 Thread Ilya Yanok
Hello Paul,

 I was trying to test out this patch, and I'm having some trouble. I
 did a git pull on the u-boot tree, and then I saved this patch to a
 text file. I was able to apply the patch just fine. The first thing
 that happend was make didn't like the Makefile, but I think it was
 just a space problem because after I edited the Makefile to match the
 entries around imx27lite_config it worked OK. Now when I run make it
 gives the error:

 make[1]: Leaving directory `/home/raid5/imx27env/u-boot/cpu/arm926ejs'
 make -C cpu/arm926ejs/mx27/
 make: *** cpu/arm926ejs/mx27/: No such file or directory.  Stop.
 make: *** [cpu/arm926ejs/mx27/libmx27.a] Error 2

 How do I know what git version to use the patch against? If I were
 using git-am instead of just saving it to a file would that be
 different? Is there another patch I need?

You need to apply other patches too (at least generic imx27 support and
patch for serial console driver).

Regards, Ilya.

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH 10/10] imx27lite: add support for imx27lite board from LogicPD

2009-05-08 Thread Magnus Lilja
Hi

I have now used the mxc_nand.c driver from patch 4 on a i.MX31 Litekit
board and have some add some more input, see below.

2009/5/6 Magnus Lilja lilja.mag...@gmail.com:
 +/*
 + * NAND
 + */
 +#define CONFIG_NAND_MXC
 +#define CONFIG_MXC_NAND_REGS_BASE      0xd800

It would be nice to have the REGS_BASE automatically set to whatever
is appropriate for the SoC the code that is selected. I.e. it should
be enough to specify CONFIG_MX31 in the board config file and then the
NFC register base is handled automatically (and the equivalent for
i.MX27).

Other than that, the only change to make it work on i.MX31 Litekit was
to disable the NAND bus width checking since that's currently i.MX27
specific code in mxc_nand.c so that would need some minor update for
i.MX31.


Regards, Magnus Lilja
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH 10/10] imx27lite: add support for imx27lite board from LogicPD

2009-05-06 Thread Magnus Lilja
Hi

2009/5/6 Ilya Yanok ya...@emcraft.com:
 This patch adds support for i.MX27-LITEKIT development board from
 LogicPD. This board uses i.MX27 SoC and has 2MB NOR flash, 64MB NAND
 flash, FEC ethernet controller integrated into i.MX27.

 Signed-off-by: Ilya Yanok ya...@emcraft.com
 ---
  MAKEALL                                 |    1 +
  Makefile                                |    3 +
  board/logicpd/imx27lite/Makefile        |   51 +++
  board/logicpd/imx27lite/config.mk       |    1 +
  board/logicpd/imx27lite/imx27lite.c     |   97 +
  board/logicpd/imx27lite/lowlevel_init.S |  225 
 +++
  board/logicpd/imx27lite/u-boot.lds      |   56 
  include/configs/imx27lite.h             |  188 ++
  8 files changed, 622 insertions(+), 0 deletions(-)
  create mode 100644 board/logicpd/imx27lite/Makefile
  create mode 100644 board/logicpd/imx27lite/config.mk
  create mode 100644 board/logicpd/imx27lite/imx27lite.c
  create mode 100644 board/logicpd/imx27lite/lowlevel_init.S
  create mode 100644 board/logicpd/imx27lite/u-boot.lds
  create mode 100644 include/configs/imx27lite.h

 diff --git a/MAKEALL b/MAKEALL
 index f13c81a..4806512 100755
 --- a/MAKEALL
 +++ b/MAKEALL
 @@ -504,6 +504,7 @@ LIST_ARM9=                 \
        cp946es                 \
        cp966                   \
        lpd7a400                \
 +       imx27lite               \

I think the list should be sorted alphabetically, so move it up one step.

        mx1ads                  \
        mx1fs2                  \
        netstar                 \
...
 diff --git a/board/logicpd/imx27lite/lowlevel_init.S 
 b/board/logicpd/imx27lite/lowlevel_init.S
 new file mode 100644
 index 000..48c7fe6
 --- /dev/null
 +++ b/board/logicpd/imx27lite/lowlevel_init.S
 @@ -0,0 +1,225 @@
 +/*
 + * For clock initialization, see chapter 3 of the MCIMX27 Multimedia
 + * Applications Processor Reference Manual, Rev. 0.2.
 + *
 + * (C) Copyright 2008 Eric Jarrige eric.jarr...@armadeus.org
 + * (C) Copyright 2009 Ilya Yanok ya...@emcraft.com
 + *
 + * 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 config.h
 +#include version.h
 +#include asm/arch/imx-regs.h
 +
 +#define CFG_SDRAM_ESDCFG_REGISTER_VAL(cas)     \
 +               (ESDCFG_TRC(10) |       \
 +               ESDCFG_TRCD(3) |        \
 +               ESDCFG_TCAS(cas) |      \
 +               ESDCFG_TRRD(1) |        \
 +               ESDCFG_TRAS(5) |        \
 +               ESDCFG_TWR |            \
 +               ESDCFG_TMRD(2) |        \
 +               ESDCFG_TRP(2) |         \
 +               ESDCFG_TXP(3))
 +
 +#define CFG_SDRAM_ESDCTL_REGISTER_VAL  \
 +               (ESDCTL_PRCT(0) |       \
 +                ESDCTL_BL |            \
 +                ESDCTL_PWDT(0) |       \
 +                ESDCTL_SREFR(3) |      \
 +                ESDCTL_DSIZ_32 |       \
 +                ESDCTL_COL10 |         \
 +                ESDCTL_ROW13 |         \
 +                ESDCTL_SDE)
 +
 +#define CFG_SDRAM_ALL_VAL              0xf00
 +
 +#define CFG_SDRAM_MODE_REGISTER_VAL    0x33    /* BL: 8, CAS: 3 */
 +#define CFG_SDRAM_EXT_MODE_REGISTER_VAL        0x100
 +
 +#define CFG_MPCTL0_VAL 0x1ef15d5
 +
 +#define CFG_SPCTL0_VAL 0x043a1c09
 +
 +#define CFG_CSCR_VAL   0x33f08107
 +
 +#define CFG_PCDR0_VAL  0x120470c3
 +#define CFG_PCDR1_VAL  0x03030303
 +#define CFG_PCCR0_VAL  0x
 +#define CFG_PCCR1_VAL  0xfffc
 +
 +#define CFG_AIPI1_PSR0_VAL     0x20040304
 +#define CFG_AIPI1_PSR1_VAL     0xdffbfcfb
 +#define CFG_AIPI2_PSR0_VAL     0x07ffc200
 +#define CFG_AIPI2_PSR1_VAL     0x
 +
 +#define writel(reg, val) \
 +       ldr             r0,     =reg;   \
 +       ldr             r1,     =val;   \
 +       str             r1,   [r0];
 +
 +SOC_ESDCTL_BASE_W:     .word   IMX_ESD_BASE
 +SOC_SI_ID_REG_W:       .word   IMX_SYSTEM_CTL_BASE
 +SDRAM_ESDCFG_T1_W:     .word   CFG_SDRAM_ESDCFG_REGISTER_VAL(0)
 +SDRAM_ESDCFG_T2_W:     .word   CFG_SDRAM_ESDCFG_REGISTER_VAL(3)
 +SDRAM_PRECHARGE_CMD_W: .word   (ESDCTL_SDE | ESDCTL_SMODE_PRECHARGE | \
 +                                ESDCTL_ROW13 | ESDCTL_COL10)
 +SDRAM_AUTOREF_CMD_W:   .word   (ESDCTL_SDE | ESDCTL_SMODE_AUTO_REF | \
 +                                

Re: [U-Boot] [PATCH 10/10] imx27lite: add support for imx27lite board from LogicPD

2009-05-06 Thread Wolfgang Denk
Dear Ilya,

In message 1241634633-13917-11-git-send-email-ya...@emcraft.com you wrote:
 This patch adds support for i.MX27-LITEKIT development board from
 LogicPD. This board uses i.MX27 SoC and has 2MB NOR flash, 64MB NAND
 flash, FEC ethernet controller integrated into i.MX27.
...
 +/*=*/
 +/* U-Boot commands */
 +/*=*/
 +#include config_cmd_default.h
 +#define CONFIG_CMD_ASKENV
 +#define CONFIG_CMD_DHCP
 +#define CONFIG_CMD_DIAG
 +#define CONFIG_CMD_NET
 +#undef CONFIG_CMD_NFS

Please enable.

 +#define CONFIG_CMD_MII
 +#define CONFIG_CMD_PING
 +#undef CONFIG_CMD_BDI

Please enable.

 +#undef CONFIG_CMD_FPGA

?

 +#undef CONFIG_CMD_SETGETDCR

?

 +#define CONFIG_CMD_NAND
 +#define CONFIG_CMD_JFFS2
 +#define CONFIG_CMD_MMC
 +#define CONFIG_CMD_FAT

Please keep the list sorted.

 +/*
 + * You can compile in a MAC address and your custom net settings by using
 + * the following syntax.
 + *
 + * #define CONFIG_ETHADDRxx:xx:xx:xx:xx:xx
 + * #define CONFIG_SERVERIP   server ip
 + * #define CONFIG_IPADDR board ip
 + * #define CONFIG_GATEWAYIP  gateway ip
 + * #define CONFIG_NETMASKyour netmask
 + */

Please remove this part.

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: w...@denx.de
panic: kernel trap (ignored)
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot