[U-Boot-Users] unassigned-patches/3: [PATCH] Merged serial_pl010.c and serial_pl011.c.

2008-07-22 Thread u-boot
They only differ in the init function.
This also adds the missing watchdog support for the PL011.

Signed-off-by: Andreas Engel [EMAIL PROTECTED]

---
Added to GNATS database as unassigned-patches/3
Responsible:patch-coord
Message-Id: [EMAIL PROTECTED]
In-Reply-To:
References: 
Patch-Date: Fri Jul 18 13:25:55 +0200 2008
---
 drivers/serial/Makefile   |3 +-
 drivers/serial/serial_pl011.c |  161 -
 drivers/serial/{serial_pl010.c = serial_pl01x.c} |   83 +--
 drivers/serial/{serial_pl011.h = serial_pl01x.h} |0 
 4 files changed, 69 insertions(+), 178 deletions(-)
 delete mode 100644 drivers/serial/serial_pl011.c
 rename drivers/serial/{serial_pl010.c = serial_pl01x.c} (66%)
 rename drivers/serial/{serial_pl011.h = serial_pl01x.h} (100%)

diff --git a/drivers/serial/Makefile b/drivers/serial/Makefile
index c9e797e..f870eab 100644
--- a/drivers/serial/Makefile
+++ b/drivers/serial/Makefile
@@ -32,8 +32,7 @@ COBJS-y += ns16550.o
 COBJS-y += s3c4510b_uart.o
 COBJS-y += serial.o
 COBJS-y += serial_max3100.o
-COBJS-y += serial_pl010.o
-COBJS-y += serial_pl011.o
+COBJS-y += serial_pl01x.o
 COBJS-y += serial_xuartlite.o
 COBJS-y += serial_sh.o
 COBJS-y += usbtty.o
diff --git a/drivers/serial/serial_pl011.c b/drivers/serial/serial_pl011.c
deleted file mode 100644
index 4d35fe5..000
--- a/drivers/serial/serial_pl011.c
+++ /dev/null
@@ -1,161 +0,0 @@
-/*
- * (C) Copyright 2000
- * Rob Taylor, Flying Pig Systems. [EMAIL PROTECTED]
- *
- * (C) Copyright 2004
- * ARM Ltd.
- * Philippe Robin, [EMAIL PROTECTED]
- *
- * See file CREDITS for list of people who contributed to this
- * project.
- *
- * 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
- */
-
-/* Simple U-Boot driver for the PrimeCell PL011 UARTs on the IntegratorCP */
-/* Should be fairly simple to make it work with the PL010 as well */
-
-#include common.h
-
-#ifdef CFG_PL011_SERIAL
-
-#include serial_pl011.h
-
-#define IO_WRITE(addr, val) (*(volatile unsigned int *)(addr) = (val))
-#define IO_READ(addr) (*(volatile unsigned int *)(addr))
-
-/*
- * IntegratorCP has two UARTs, use the first one, at 38400-8-N-1
- * Versatile PB has four UARTs.
- */
-
-#define CONSOLE_PORT CONFIG_CONS_INDEX
-#define baudRate CONFIG_BAUDRATE
-static volatile unsigned char *const port[] = CONFIG_PL01x_PORTS;
-#define NUM_PORTS (sizeof(port)/sizeof(port[0]))
-
-static void pl011_putc (int portnum, char c);
-static int pl011_getc (int portnum);
-static int pl011_tstc (int portnum);
-
-
-int serial_init (void)
-{
-   unsigned int temp;
-   unsigned int divider;
-   unsigned int remainder;
-   unsigned int fraction;
-
-   /*
-** First, disable everything.
-*/
-   IO_WRITE (port[CONSOLE_PORT] + UART_PL011_CR, 0x0);
-
-   /*
-** Set baud rate
-**
-** IBRD = UART_CLK / (16 * BAUD_RATE)
-** FBRD = ROUND((64 * MOD(UART_CLK,(16 * BAUD_RATE))) / (16 * 
BAUD_RATE))
-*/
-   temp = 16 * baudRate;
-   divider = CONFIG_PL011_CLOCK / temp;
-   remainder = CONFIG_PL011_CLOCK % temp;
-   temp = (8 * remainder) / baudRate;
-   fraction = (temp  1) + (temp  1);
-
-   IO_WRITE (port[CONSOLE_PORT] + UART_PL011_IBRD, divider);
-   IO_WRITE (port[CONSOLE_PORT] + UART_PL011_FBRD, fraction);
-
-   /*
-** Set the UART to be 8 bits, 1 stop bit, no parity, fifo enabled.
-*/
-   IO_WRITE (port[CONSOLE_PORT] + UART_PL011_LCRH,
- (UART_PL011_LCRH_WLEN_8 | UART_PL011_LCRH_FEN));
-
-   /*
-** Finally, enable the UART
-*/
-   IO_WRITE (port[CONSOLE_PORT] + UART_PL011_CR,
- (UART_PL011_CR_UARTEN | UART_PL011_CR_TXE |
-  UART_PL011_CR_RXE));
-
-   return 0;
-}
-
-void serial_putc (const char c)
-{
-   if (c == '\n')
-   pl011_putc (CONSOLE_PORT, '\r');
-
-   pl011_putc (CONSOLE_PORT, c);
-}
-
-void serial_puts (const char *s)
-{
-   while (*s) {
-   serial_putc (*s++);
-   }
-}
-
-int serial_getc (void)
-{
-   return pl011_getc (CONSOLE_PORT);
-}
-
-int serial_tstc (void)
-{
-   return pl011_tstc (CONSOLE_PORT);
-}
-
-void serial_setbrg (void)
-{
-}
-
-static void pl011_putc (int portnum, char c)
-{
- 

Re: [U-Boot-Users] [PATCH] (Resubmit) ADD ARM AMBA PL031 RTC Support

2008-07-22 Thread Wolfgang Denk
In message [EMAIL PROTECTED] you wrote:
 
  I think nabble wont truncate or line wrap my mail. So i am giving it a try.

Don't think - test before sending to public mailing lists.

...
 +#define  RTC_WRITE_REG(addr, val)(*(volatile unsigned int
 *)(CFG_RTC_PL031_BASE + (addr)) = (val))
^^

Line wrapped. Unusable.


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]
It is common sense to take a method and try it. If it fails, admit it
frankly and try another. But above all, try something.
  - Franklin D. Roosevelt

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] USB u-boot on ST 7100

2008-07-22 Thread Nobuhiro Iwamatsu
Hi,

2008/7/19 Rodrigo Valentino [EMAIL PROTECTED]:
 Hi Folks,

 I'm working on a device from ST Micro Eletronics model ST7100, and i'm
 looking for a way to improve redirect output console to device ttyUSB,
 because the serial output


I suppose that you use U-Boot which STMicro releases.
You had better ask STMicro about these.

Best regards,
 Nobuhiro

--
Nobuhiro Iwamatsu

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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] JFFS2 command support on OneNAND

2008-07-22 Thread Fathi Boudra
 Yes, you're right. it's complicit.
 However it's not related with this patch. It happens always at current
 source.
 Next time it will fix it.


The kernel implementation is similar. You'll probably have to fix it there
also.

cheers,

Fathi
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
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] (Resubmit) ADD ARM AMBA PL031 RTC Support

2008-07-22 Thread Hebbar

Hi,

Sorry for that.

Now i have generated the patch using below command. Update me if this is not
correct
$ git format-patch  -p -o ../  -C -M -N --summary --stat=80 --no-color
--signoff   master workingbranch

TIA

Regards
Gururaja

- Add ARM AMBA PL031 RTC Support 
- Call rtc_init function to start pl031 rtc if enabled from versatile.c 
- Define rtc base address and date command support in versatile.h 
- Coding Style Changes/Updates

Signed-off-by: Gururaja Hebbar [EMAIL PROTECTED]
---
 drivers/rtc/Makefile|1 +
 drivers/rtc/rtc_pl031.c |  123
+++
 board/versatile/versatile.c |9 +
 include/configs/versatile.h |7 +++



diff --git a/drivers/rtc/Makefile b/drivers/rtc/Makefile
index 2e0c118..f888a31 100755
--- a/drivers/rtc/Makefile
+++ b/drivers/rtc/Makefile
@@ -56,6 +56,7 @@ COBJS-y += rs5c372.o
 COBJS-y += rx8025.o
 COBJS-y += s3c24x0_rtc.o
 COBJS-y += x1205.o
+COBJS-y += rtc_pl031.o
 
 COBJS  := $(COBJS-y)
 SRCS   := $(COBJS:.o=.c)
diff --git a/drivers/rtc/rtc_pl031.c b/drivers/rtc/rtc_pl031.c
new file mode 100755
index 000..ff8926d
--- /dev/null
+++ b/drivers/rtc/rtc_pl031.c
@@ -0,0 +1,123 @@
+/*
+ * (C) Copyright 2008
+ * Gururaja Hebbar [EMAIL PROTECTED]
+ *
+ * reference linux-2.6.20.6/drivers/rtc/rtc-pl031.c
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * 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 common.h
+#include command.h
+#include rtc.h
+
+#if defined(CONFIG_RTC_PL031)  defined(CONFIG_CMD_DATE)
+
+#ifndef CFG_RTC_PL031_BASE
+#error CFG_RTC_PL031_BASE is not defined!
+#endif
+
+/*
+ * Register definitions
+ */
+#defineRTC_DR  0x00/* Data read register */
+#defineRTC_MR  0x04/* Match register */
+#defineRTC_LR  0x08/* Data load register */
+#defineRTC_CR  0x0c/* Control register */
+#defineRTC_IMSC0x10/* Interrupt mask and set register */
+#defineRTC_RIS 0x14/* Raw interrupt status register */
+#defineRTC_MIS 0x18/* Masked interrupt status register */
+#defineRTC_ICR 0x1c/* Interrupt clear register */
+
+#define RTC_CR_START   (1  0)
+
+#defineRTC_WRITE_REG(addr, val) \
+   (*(volatile unsigned int *)(CFG_RTC_PL031_BASE + 
(addr)) = (val))
+#defineRTC_READ_REG(addr)  \
+   (*(volatile unsigned int *)(CFG_RTC_PL031_BASE + 
(addr)))
+
+static int pl031_initted = 0;
+
+/* Enable RTC Start in Control register*/
+void rtc_init(void)
+{
+   RTC_WRITE_REG(RTC_CR,RTC_CR_START);
+
+   pl031_initted = 1;
+}
+
+/*
+ * Reset the RTC. We set the date back to 1970-01-01.
+ */
+void rtc_reset(void)
+{
+   RTC_WRITE_REG(RTC_LR,0x00);
+   if(!pl031_initted)
+   rtc_init();
+}
+
+/*
+ * Set the RTC
+*/
+void rtc_set(struct rtc_time *tmp)
+{
+   unsigned long tim;
+
+   if(!pl031_initted)
+   rtc_init();
+
+   if (tmp == NULL) {
+   puts(Error setting the date/time\n);
+   return;
+   }
+
+   /* Calculate number of seconds this incoming time represents */
+   tim = mktime(tmp-tm_year, tmp-tm_mon, tmp-tm_mday,
+   tmp-tm_hour, tmp-tm_min, tmp-tm_sec);
+
+   RTC_WRITE_REG(RTC_LR,tim);
+}
+
+/*
+ * Get the current time from the RTC
+ */
+int rtc_get(struct rtc_time *tmp)
+{
+   ulong tim;
+
+   if(!pl031_initted)
+   rtc_init();
+
+   if (tmp == NULL) {
+   puts(Error getting the date/time\n);
+   return -1;
+   }
+
+   tim = RTC_READ_REG(RTC_DR);
+
+   to_tm (tim, tmp);
+
+   debug ( Get DATE: %4d-%02d-%02d (wday=%d)  TIME: %2d:%02d:%02d\n,
+   tmp-tm_year, tmp-tm_mon, tmp-tm_mday, tmp-tm_wday,
+   tmp-tm_hour, tmp-tm_min, tmp-tm_sec);
+
+   return 0;
+}
+
+#endif
-- 
1.5.5.1




diff --git a/board/versatile/versatile.c b/board/versatile/versatile.c
index 9d1a25e..5bf7e85 100644
--- a/board/versatile/versatile.c
+++ b/board/versatile/versatile.c
@@ -41,6 +41,10 @@ void flash__init (void);
 void ether__init (void);
 void peripheral_power_enable (void);
 
+#if defined(CONFIG_RTC_PL031)  

Re: [U-Boot-Users] [Patch 1/3] U-Boot-V2:Board:OMAP common board.h

2008-07-22 Thread Sascha Hauer
Hi,

On Mon, Jul 21, 2008 at 07:15:31PM -0500, Khandenahally, Raghavendra wrote:
 Introduce a common board header for functions
 required by platform.S This will prevent
 redundancies of multiple board-xyz.h files all
 doing the same thing.

I would prefer another patch. I didn't watch out when board/omap was
introduced. In fact, omap is not a board and it's gonna be a mess when
all omap boards are going into this directory. So please move the beagle
board to board/beagle. We should remove the generic name board/omap
sooner or later.

Regards,
  Sascha

-- 
 Pengutronix - Linux Solutions for Science and Industry
   Handelsregister:  Amtsgericht Hildesheim, HRA 2686
 Hannoversche Str. 2, 31134 Hildesheim, Germany
   Phone: +49-5121-206917-0 |  Fax: +49-5121-206917-9

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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 3/3] U-Boot-V2:Board:OMAP Introduce Beagle

2008-07-22 Thread Sascha Hauer
On Mon, Jul 21, 2008 at 07:19:06PM -0500, Khandenahally, Raghavendra wrote:
 This patch adds support for Beagle Board.
 Beagle board from TI is a development platform
 based on TI's OMAP3530 silicon.
 
 You can find more about Beagle Board here: www.beagleboard.org
 
 More on OMAP3530 (including documentation can be found here):
 http://focus.ti.com/docs/prod/folders/print/omap3530.html
 
 Signed-off-by: Raghavendra KH [EMAIL PROTECTED]
 
 ---
  arch/arm/configs/omap3530_beagle_per_uart_defconfig |  185 +
  arch/arm/mach-omap/arch-omap.dox|1
  board/omap/Kconfig  |9
  board/omap/Makefile |1
  board/omap/board-beagle.c   |  276 
 
  5 files changed, 472 insertions(+)
 
 Index: u-boot-v2/board/omap/board-beagle.c
 ===
 --- /dev/null   1970-01-01 00:00:00.0 +
 +++ u-boot-v2/board/omap/board-beagle.c 2008-06-24 02:26:07.0 +0200
 @@ -0,0 +1,276 @@
 +/**
 + * @file
 + * @brief Beagle Specific Board Initialization routines
 + *
 + * FileName: board/omap/board-beagle.c
 + *
 + * Beagle Board from Texas Instruments as described here:
 + * http://www.beagleboard.org
 + *
 + * This board is based on OMAP3530.
 + * More on OMAP3530 (including documentation can be found here):
 + * http://focus.ti.com/docs/prod/folders/print/omap3530.html
 + *
 + * This file provides initialization in two stages:
 + * @li boot time initialization - do basics required to get SDRAM working.
 + * This is run from SRAM - so no case constructs and global vars can be used.
 + * @li run time initialization - this is for the rest of the initializations
 + * such as flash, uart etc.
 + *
 + * Boot time initialization includes:
 + * @li SDRAM initialization.
 + * @li Pin Muxing relevant for Beagle.
 + *
 + * Run time initialization includes
 + * @li serial @ref serial_ns16550.c driver device definition
 + *
 + * Originally from board/omap/board-sdp343x.c
 + */
 +/*
 + * (C) Copyright 2008
 + * Texas Instruments, www.ti.com
 + * Raghavendra KH [EMAIL PROTECTED]
 + *
 + * 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 common.h
 +#include console.h
 +#include init.h
 +#include driver.h
 +#include asm/io.h
 +#include ns16550.h
 +#include asm/arch/silicon.h
 +#include asm/arch/sdrc.h
 +#include asm/arch/sys_info.h
 +#include asm/arch/syslib.h
 +#include asm/arch/control.h
 +#include asm/arch/omap3-mux.h
 +#include board.h
 +
 +/ Board Boot Time ***/
 +
 +/**
 + * @brief Do the SDRC initialization for 128Meg Micron DDR for CS0
 + *
 + * @return void
 + */
 +static void sdrc_init(void)
 +{
 +   /* SDRAM software reset */
 +   /* No idle ack and RESET enable */
 +   __raw_writel(0x1A, SDRC_REG(SYSCONFIG));
 +   sdelay(100);
 +   /* No idle ack and RESET disable */
 +   __raw_writel(0x18, SDRC_REG(SYSCONFIG));
 +
 +   /* SDRC Sharing register */
 +   /* 32-bit SDRAM on data lane [31:0] - CS0 */
 +   /* pin tri-stated = 1 */
 +   __raw_writel(0x0100, SDRC_REG(SHARING));
 +
 +   /* - SDRC Registers Configuration - */
 +   /* SDRC_MCFG0 register */
 +   __raw_writel(0x02584099, SDRC_REG(MCFG_0));
 +
 +   /* SDRC_RFR_CTRL0 register */
 +   __raw_writel(0x54601, SDRC_REG(RFR_CTRL_0));
 +
 +   /* SDRC_ACTIM_CTRLA0 register */
 +   __raw_writel(0xA29DB4C6, SDRC_REG(ACTIM_CTRLA_0));
 +
 +   /* SDRC_ACTIM_CTRLB0 register */
 +   __raw_writel(0x12214, SDRC_REG(ACTIM_CTRLB_0));
 +
 +   /* Disble Power Down of CKE due to 1 CKE on combo part */
 +   __raw_writel(0x0081, SDRC_REG(POWER));
 +
 +   /* SDRC_MANUAL command register */
 +   /* NOP command */
 +   __raw_writel(0x, SDRC_REG(MANUAL_0));
 +   /* Precharge command */
 +   __raw_writel(0x0001, SDRC_REG(MANUAL_0));
 +   /* Auto-refresh command */
 +   __raw_writel(0x0002, SDRC_REG(MANUAL_0));
 +   /* Auto-refresh command */
 +   __raw_writel(0x0002, SDRC_REG(MANUAL_0));
 +
 +   /* SDRC MR0 register Burst length=4 */
 +   __raw_writel(0x0032, SDRC_REG(MR_0));
 +
 +   /* SDRC 

[U-Boot-Users] [PATCH] Fix duplicated flash state

2008-07-22 Thread Kyungmin Park
Move to one place
I just compiled test. Please check other NAND users.

Signed-off-by: Kyungmin Park [EMAIL PROTECTED]
---
diff --git a/include/linux/mtd/mtd.h b/include/linux/mtd/mtd.h
index 05ba375..ce9d937 100644
--- a/include/linux/mtd/mtd.h
+++ b/include/linux/mtd/mtd.h
@@ -19,6 +19,20 @@
 #define MTD_ERASE_DONE  0x08
 #define MTD_ERASE_FAILED0x10
 
+/*
+ * Enumeration for NAND/OneNAND flash chip state
+ */
+enum {
+   FL_READY,
+   FL_READING,
+   FL_WRITING,
+   FL_ERASING,
+   FL_SYNCING,
+   FL_CACHEDPRG,
+   FL_UNLOCKING,
+   FL_LOCKING,
+};
+
 /* If the erase fails, fail_addr might indicate exactly which block failed.  If
fail_addr = 0x, the failure was not at the device level or was not
specific to any particular block. */
diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h
index e2a25a6..0b64d3c 100644
--- a/include/linux/mtd/nand.h
+++ b/include/linux/mtd/nand.h
@@ -195,20 +195,6 @@ extern int nand_read_raw (struct mtd_info *mtd, uint8_t 
*buf, loff_t from, size_
 /* Nand scan has allocated data_buf */
 #define NAND_DATABUF_ALLOC 0x8000
 
-
-/*
- * nand_state_t - chip states
- * Enumeration for NAND flash chip state
- */
-typedef enum {
-   FL_READY,
-   FL_READING,
-   FL_WRITING,
-   FL_ERASING,
-   FL_SYNCING,
-   FL_CACHEDPRG,
-} nand_state_t;
-
 /* Keep gcc happy */
 struct nand_chip;
 
diff --git a/include/linux/mtd/nand_legacy.h b/include/linux/mtd/nand_legacy.h
index b05e726..bb66e45 100644
--- a/include/linux/mtd/nand_legacy.h
+++ b/include/linux/mtd/nand_legacy.h
@@ -55,18 +55,6 @@
 #define NAND_CMD_RESET 0xff
 
 /*
- * Enumeration for NAND flash chip state
- */
-typedef enum {
-   FL_READY,
-   FL_READING,
-   FL_WRITING,
-   FL_ERASING,
-   FL_SYNCING
-} nand_state_t;
-
-
-/*
  * NAND Private Flash Chip Data
  *
  * Structure overview:
diff --git a/include/linux/mtd/onenand.h b/include/linux/mtd/onenand.h
index 4b0c2df..903c3af 100644
--- a/include/linux/mtd/onenand.h
+++ b/include/linux/mtd/onenand.h
@@ -17,6 +17,7 @@
 /* Note: The header order is impoertant */
 #include onenand_uboot.h
 
+#include linux/mtd/compat.h
 #include linux/mtd/bbm.h
 
 #define MAX_BUFFERRAM  2
@@ -28,20 +29,6 @@ extern int onenand_scan (struct mtd_info *mtd, int 
max_chips);
 extern void onenand_release (struct mtd_info *mtd);
 
 /**
- * onenand_state_t - chip states
- * Enumeration for OneNAND flash chip state
- */
-typedef enum {
-   FL_READY,
-   FL_READING,
-   FL_WRITING,
-   FL_ERASING,
-   FL_SYNCING,
-   FL_UNLOCKING,
-   FL_LOCKING,
-} onenand_state_t;
-
-/**
  * struct onenand_bufferram - OneNAND BufferRAM Data
  * @param blockblock address in BufferRAM
  * @param page page address in BufferRAM
@@ -106,7 +93,7 @@ struct onenand_chip {
 
spinlock_t chip_lock;
wait_queue_head_t wq;
-   onenand_state_t state;
+   int state;
 
struct nand_oobinfo *autooob;
 

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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 1/3] U-Boot-V2:Board:OMAP common board.h

2008-07-22 Thread Nishanth Menon
Sascha,
Sascha Hauer said the following on 07/22/2008 02:21 AM:
 Hi,

 On Mon, Jul 21, 2008 at 07:15:31PM -0500, Khandenahally, Raghavendra wrote:
   

 I would prefer another patch. I didn't watch out when board/omap was
 introduced. In fact, omap is not a board and it's gonna be a mess when
   
I beg to differ on this, we have so many development platforms on
various versions of OMAP all sharing so much board characteristics that
it makes more sense to put all omap boards together in the same
directory. This is to recover from the mess we have had on other
versions where duplication of code was forced due to splitting files
accross. Nothing OMAP specific is put there. it is pure board only
information over here.
Regards,
Nishanth Menon


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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 3/3] U-Boot-V2:Board:OMAP Introduce Beagle

2008-07-22 Thread Nishanth Menon
Sascha Hauer said the following on 07/22/2008 02:42 AM:
 On Mon, Jul 21, 2008 at 07:19:06PM -0500, Khandenahally, Raghavendra wrote:
   
 This function is unnecessarely big. The two arguments of MUX_VAL could
 go together in one 32bit value. This way you could do a loop around an
 array of mux values. Of course a struct type could do the same thing,
 but having them in one 32bit value allows you to define speaking names
 for the pin configs making it easier for future board developers. See
 include/asm-arm/arch-imx/imx27-regs.h for an example for what I mean.
 This is just an idea, I won't reject the patch because of this.

   

Yes, it is obvious that a loop will look simpler, except that the code
context here is in board_init - where only the bare minimum sram stack
is available and cinit is not done.. inline code is a requirement here.
Regards,
Nishanth Menon


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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] Fix bug: `env_get_char' dose not work well on u-boot-1.3.4-rc1

2008-07-22 Thread Remy Bohmer
Hello All,

2008/7/22 os user [EMAIL PROTECTED]:
 Hi folks,
 I use Atmel AT91SAM9260-EK boards, arm-linux-gcc (GCC) 4.2.4. After I
 pulled the latest code from git://git.denx.de/u-boot-at91.git, I found
 that the [EMAIL PROTECTED]/env_common.c can not work well. The root
 cause is in u-boot-1.3.4-rc1, `env_get_char' was rewritten. Below is a
 quick patch to kick the ball rolling.

 Thanks!

This problem was already known, and this patch works only for that
board, all AT91 boards are broken.
In a few minutes I will post a patch fixing it for all boards.

Kind Regards,

Remy

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] [patch 1/1] Set GD_FLG_RELOC for boards skipping relocation to RAM

2008-07-22 Thread Remy Bohmer
If CONFIG_SKIP_RELOCATE_UBOOT is set the flag GD_FLG_RELOC is usually never
set, because relocation to RAM is actually never done by U-boot itself.
However, several pieces of code check if this flag is set at some time.

So, to make sure this flag is set on boards skipping relocation, this
is added to the initialisation of U-boot at a moment where it is safe
to do so.

Signed-off-by: Remy Bohmer [EMAIL PROTECTED]
---
 lib_arm/board.c |   16 
 1 file changed, 16 insertions(+)

Index: u-boot-git-almost-1.3.4/lib_arm/board.c
===
--- u-boot-git-almost-1.3.4.orig/lib_arm/board.c2008-07-21 
11:53:23.0 +0200
+++ u-boot-git-almost-1.3.4/lib_arm/board.c 2008-07-21 12:25:32.0 
+0200
@@ -233,6 +233,17 @@ static int init_func_i2c (void)
 }
 #endif
 
+#ifdef CONFIG_SKIP_RELOCATE_UBOOT
+/*
+ * This routine sets the relocation done flag, because even if
+ * relocation is skipped, the flag is used by other generic code.
+ */
+static int reloc_init(void)
+{
+   gd-flags |= GD_FLG_RELOC;
+}
+#endif
+
 /*
  * Breathe some life into the board...
  *
@@ -262,6 +273,11 @@ int print_cpuinfo (void); /* test-only *
 
 init_fnc_t *init_sequence[] = {
cpu_init,   /* basic cpu dependent setup */
+#if defined(CONFIG_SKIP_RELOCATE_UBOOT)
+   reloc_init, /* Set the relocation done flag, must
+  do this AFTER cpu_init(), but as soon
+  as possible */
+#endif
board_init, /* basic board dependent setup */
interrupt_init, /* set up exceptions */
env_init,   /* initialize environment */

-- 



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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]: Fix for bug: U-boot environment corrupt by reading uninitialized flash memory instead of RAM.

2008-07-22 Thread Remy Bohmer
Hello Wolfgang,

 Has the problem boards been fixed yet? If so please resubmit commit 
 c0559be3.
 So what *is* the state of this?
 Oops, due to my summer holidays I missed this one...
 But no problem, I have a decent fix for the AT91 boards ready, and can
 post it when I am back at work.
 I only have to rebase it to the latest git tree.

As promised, I have posted my patch for this problem.
You can find with the subject: '[patch 1/1] Set GD_FLG_RELOC for
boards skipping relocation to RAM'

Kind Regards,

Remy

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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 1/1] Set GD_FLG_RELOC for boards skipping relocation to RAM

2008-07-22 Thread Jean-Christophe PLAGNIOL-VILLARD
On 14:20 Tue 22 Jul , Remy Bohmer wrote:
 If CONFIG_SKIP_RELOCATE_UBOOT is set the flag GD_FLG_RELOC is usually never
 set, because relocation to RAM is actually never done by U-boot itself.
 However, several pieces of code check if this flag is set at some time.
 
 So, to make sure this flag is set on boards skipping relocation, this
 is added to the initialisation of U-boot at a moment where it is safe
 to do so.
 
 Signed-off-by: Remy Bohmer [EMAIL PROTECTED]
 ---
  lib_arm/board.c |   16 
  1 file changed, 16 insertions(+)
 
 Index: u-boot-git-almost-1.3.4/lib_arm/board.c
 ===
 --- u-boot-git-almost-1.3.4.orig/lib_arm/board.c  2008-07-21 
 11:53:23.0 +0200
 +++ u-boot-git-almost-1.3.4/lib_arm/board.c   2008-07-21 12:25:32.0 
 +0200
 @@ -233,6 +233,17 @@ static int init_func_i2c (void)
  }
  #endif
  
 +#ifdef CONFIG_SKIP_RELOCATE_UBOOT
 +/*
 + * This routine sets the relocation done flag, because even if
 + * relocation is skipped, the flag is used by other generic code.
 + */
 +static int reloc_init(void)
 +{
 + gd-flags |= GD_FLG_RELOC;
you need to return 0 at least
 +}
 +#endif
 +
  /*
   * Breathe some life into the board...
   *
 @@ -262,6 +273,11 @@ int print_cpuinfo (void); /* test-only *
  
  init_fnc_t *init_sequence[] = {
   cpu_init,   /* basic cpu dependent setup */
 +#if defined(CONFIG_SKIP_RELOCATE_UBOOT)
 + reloc_init, /* Set the relocation done flag, must
 +do this AFTER cpu_init(), but as soon
 +as possible */
 +#endif
   board_init, /* basic board dependent setup */
   interrupt_init, /* set up exceptions */
   env_init,   /* initialize environment */

Best Regards,
J.

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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 1/1] Set GD_FLG_RELOC for boards skipping relocation to RAM

2008-07-22 Thread Remy Bohmer
Hello Jean-Christophe,

 +static int reloc_init(void)
 +{
 + gd-flags |= GD_FLG_RELOC;
 you need to return 0 at least

Oops, You are right... (I forgot it somehow)
Thanks!

Remy

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] [patch 1/1] (V2) Set GD_FLG_RELOC for boards skipping relocation to RAM

2008-07-22 Thread Remy Bohmer
If CONFIG_SKIP_RELOCATE_UBOOT is set the flag GD_FLG_RELOC is usually never
set, because relocation to RAM is actually never done by U-boot itself.
However, several pieces of code check if this flag is set at some time.

So, to make sure this flag is set on boards skipping relocation, this
is added to the initialisation of U-boot at a moment where it is safe
to do so.

V2: Forgot to add 'return 0;' to reloc_init() routine.

Signed-off-by: Remy Bohmer [EMAIL PROTECTED]
---
 lib_arm/board.c |   17 +
 1 file changed, 17 insertions(+)

Index: u-boot-git-almost-1.3.4/lib_arm/board.c
===
--- u-boot-git-almost-1.3.4.orig/lib_arm/board.c2008-07-22 
16:18:22.0 +0200
+++ u-boot-git-almost-1.3.4/lib_arm/board.c 2008-07-22 16:19:15.0 
+0200
@@ -233,6 +233,18 @@ static int init_func_i2c (void)
 }
 #endif
 
+#ifdef CONFIG_SKIP_RELOCATE_UBOOT
+/*
+ * This routine sets the relocation done flag, because even if
+ * relocation is skipped, the flag is used by other generic code.
+ */
+static int reloc_init(void)
+{
+   gd-flags |= GD_FLG_RELOC;
+   return 0;
+}
+#endif
+
 /*
  * Breathe some life into the board...
  *
@@ -262,6 +274,11 @@ int print_cpuinfo (void); /* test-only *
 
 init_fnc_t *init_sequence[] = {
cpu_init,   /* basic cpu dependent setup */
+#if defined(CONFIG_SKIP_RELOCATE_UBOOT)
+   reloc_init, /* Set the relocation done flag, must
+  do this AFTER cpu_init(), but as soon
+  as possible */
+#endif
board_init, /* basic board dependent setup */
interrupt_init, /* set up exceptions */
env_init,   /* initialize environment */

-- 



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] QE UEC: MII command support and adding UECs

2008-07-22 Thread Ben Warren
Andy Fleming wrote:
 On Wed, Jul 16, 2008 at 2:17 PM, richardretanubun
 [EMAIL PROTECTED] wrote:
   
 Hi,

 I am wondering if the miiphy command support for QE UEC is already
 merged into u-boot on some tree.

 The last info I have on this patch is on this posting:

 http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/38965
 

 Hm... I vaguely recall seeing that, but it's more in Ben Warren's
 domain.  He probably wasn't copied on the patch, either.
   
Yeah, looks like I missed that one.  To answer your question, no.  I 
won't be able to apply it until the weekend at the earliest, so for now 
please just apply the patch yourself.

regards,
Ben

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] Trouble with Make Command

2008-07-22 Thread Rugunda, Solo
Hi

I am fairly new to Uboot. I am having trouble running the make command
from the u-boot-1.1.4/tools # prompt.

When I do a make, this is the error I get

Makefile:108: /config.mk: No such file or directory
make: *** No rule to make target `/config.mk'.  Stop.

I am told by one of the developers that I need to have the correct make
parameters and told me to try this ...make HOSTARCH=at91rm9200  
But I still get the same error

I believe that I don't have the parameters right OR I am missing
something in my make command. Do I have to say anything about the target
arch  or the cross compiler while writing the make command ?  My target
architecture is the at91rm9200 processor

Thanks



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 16, 2008 4:53 AM
To: Rugunda, Solo
Cc: u-boot-users@lists.sourceforge.net
Subject: Re: [U-Boot-Users] Question about Bad CRC

In message [EMAIL PROTECTED]
you wrote:
 
 1. I think I might be making an error with the syntax. Can you verify
 that this is the exact correct syntax to fix the Bad CRC (quotations,
 colons etc)
 (or am I making an error somewhere in the syntax)
 
 #define CONFIG_PREEBOOT setenv preboot 'setenv preboot;saveenv';
---^^ typo

Try CONFIG_PREBOOT instead...

 2. And also can you verify that I would add this line in the file that
I
 am adding this line of code to is at91rm9200dk.h in

Include/configs/at91rm9200dk.h is the configuration file for the  old
evaluation  kit;  I don;t think you should meddle with this file. You
should have your own board config file instead.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
...

Please don't top post / full quote.

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]
You have the capacity to learn from  mistakes.  You'll  learn  a  lot
today.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] Linux not booting and jffs2 FS not mounting

2008-07-22 Thread Scott Wood
On Mon, Jul 21, 2008 at 12:11:12PM +0530, Vijay Nikam wrote:
 Hello All,
 
 I have mpc8313erdb evaluation board ... now I am trying to boot it
 from NAND Flash (32MB Flash) ... I am able to get u-boot prompt ...
 but the linux kernel is not booting and so filesystem is not mounting
 ...
 
 It says :
 No filesystem could mount root,
 Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0)
 Rebooting in 180 seconds
 
 what is going wrong ? ? ? Please acknowledge ... thank you ...

You have to give us more information, such as full kernel output, config,
device tree, and steps you took to load the filesystem into flash.

BTW, since NAND boot on 83xx is not yet supported in upstream u-boot, I
assume you're using the BSP.  Are you also using the BSP kernel?  If so,
please use the latest upstream kernel.

-Scott

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] CFG_MONITOR_BASE

2008-07-22 Thread Fundu
Is the CFG_MONITOR_BASE the location where the processor reads the first 
instruction after reset ? is that right ?

any clarification would be appreciated.
thanks !




  

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] [PATCH] Removed support for the adsvix.

2008-07-22 Thread Adrian Filipi
Support for the adsvix was originally provided by Applied Data Systems (ADS),
inc., now EuroTech, Inc.  The board never shipped aside from some sample
boards.

Signed-off-by: Adrian Filipi [EMAIL PROTECTED]

Adrian
--
Linux Software Engineer | EuroTech, Inc. | www.eurotech-inc.com

---
 MAKEALL  |1 -
 Makefile |3 -
 board/adsvix/Makefile|   51 -
 board/adsvix/adsvix.c|   75 ---
 board/adsvix/config.mk   |1 -
 board/adsvix/lowlevel_init.S |  466 --
 board/adsvix/pcmcia.c|   67 --
 board/adsvix/pxavoltage.S|  230 -
 board/adsvix/u-boot.lds  |   56 -
 cpu/pxa/mmc.c|5 -
 include/configs/adsvix.h |  365 -
 11 files changed, 0 insertions(+), 1320 deletions(-)
 delete mode 100644 board/adsvix/Makefile
 delete mode 100644 board/adsvix/adsvix.c
 delete mode 100644 board/adsvix/config.mk
 delete mode 100644 board/adsvix/lowlevel_init.S
 delete mode 100644 board/adsvix/pcmcia.c
 delete mode 100644 board/adsvix/pxavoltage.S
 delete mode 100644 board/adsvix/u-boot.lds
 delete mode 100644 include/configs/adsvix.h

diff --git a/MAKEALL b/MAKEALL
index c1a9c60..ee83cca 100755
--- a/MAKEALL
+++ b/MAKEALL
@@ -540,7 +540,6 @@ LIST_at91= \
 #

 LIST_pxa= \
-   adsvix  \
cerf250 \
cradle  \
csb226  \
diff --git a/Makefile b/Makefile
index 369bbd7..b104617 100644
--- a/Makefile
+++ b/Makefile
@@ -2595,9 +2595,6 @@ actux3_config :   unconfig
 actux4_config  :   unconfig
@$(MKCONFIG) $(@:_config=) arm ixp actux4

-adsvix_config  :   unconfig
-   @$(MKCONFIG) $(@:_config=) arm pxa adsvix
-
 cerf250_config :   unconfig
@$(MKCONFIG) $(@:_config=) arm pxa cerf250

diff --git a/board/adsvix/Makefile b/board/adsvix/Makefile
deleted file mode 100644
index 05601b4..000
--- a/board/adsvix/Makefile
+++ /dev/null
@@ -1,51 +0,0 @@
-#
-# (C) Copyright 2000-2006
-# Wolfgang Denk, DENX Software Engineering, [EMAIL PROTECTED]
-#
-# See file CREDITS for list of people who contributed to this
-# project.
-#
-# 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= $(obj)lib$(BOARD).a
-
-COBJS  := adsvix.o pcmcia.o
-SOBJS  := lowlevel_init.o pxavoltage.o
-
-SRCS   := $(SOBJS:.o=.S) $(COBJS:.o=.c)
-OBJS   := $(addprefix $(obj),$(COBJS))
-SOBJS  := $(addprefix $(obj),$(SOBJS))
-
-$(LIB):$(obj).depend $(OBJS) $(SOBJS)
-   $(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
-
-clean:
-   rm -f $(SOBJS) $(OBJS)
-
-distclean: clean
-   rm -f $(LIB) core *.bak $(obj).depend
-
-#
-
-# defines $(obj).depend target
-include $(SRCTREE)/rules.mk
-
-sinclude $(obj).depend
-
-#
diff --git a/board/adsvix/adsvix.c b/board/adsvix/adsvix.c
deleted file mode 100644
index c430d63..000
--- a/board/adsvix/adsvix.c
+++ /dev/null
@@ -1,75 +0,0 @@
-/*
- * (C) Copyright 2004
- * Robert Whaley, Applied Data Systems, Inc. [EMAIL PROTECTED]
- *
- * (C) Copyright 2002
- * Kyle Harris, Nexus Technologies, Inc. [EMAIL PROTECTED]
- *
- * (C) Copyright 2002
- * Sysgo Real-Time Solutions, GmbH www.elinos.com
- * Marius Groeger [EMAIL PROTECTED]
- *
- * See file CREDITS for list of people who contributed to this
- * project.
- *
- * 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,
- * 

[U-Boot-Users] amcc glacier board ethernet does not work?

2008-07-22 Thread vb
I have an amcc glacier eval board, which came with u-boot installed,
with working ethernet. The amcc folks told me that the u-boot was
built off the denx 1.3.3 repository, so I cloned
git://git.denx.de/u-boot.git and built glacier. It comes up all right,
but reports

Net:   No ethernet found.

along the way. The I tried cloning
git://www.denx.de/git/u-boot-ppc4xx.git and building it from there -
the same result, no ethernet interface up. Does anyone know if this is
something to expect, or has something gone wrong?

TIA,
vadim

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] Trouble with Make Command

2008-07-22 Thread Jerry Van Baren
Rugunda, Solo wrote:
 Hi
 
 I am fairly new to Uboot. I am having trouble running the make command
 from the u-boot-1.1.4/tools # prompt.
 
 When I do a make, this is the error I get
 
 Makefile:108: /config.mk: No such file or directory
 make: *** No rule to make target `/config.mk'.  Stop.

Hi Solo,

Run make in your top level directory, u-boot-1.1.4, not in the tools 
subdirectory.

By the way, the prompt # indicates you are running make as root.  You 
should not need to.  Running as root for anything that doesn't need root 
access (essentially everything but host configuration) is a poor 
practice and discouraged.

HTH,
gvb

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] Trouble with Make Command

2008-07-22 Thread Rugunda, Solo
Thanks Jerry and Nathan

So I built the image by running the Make with the correct cross compiler
from the uboot prompt. 

The file produced is u-boot.bin.gz

Now, How do I put this image onto my board and in the right location?


Thanks


Solo

-Original Message-
From: Jerry Van Baren [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 22, 2008 2:11 PM
To: Rugunda, Solo
Cc: u-boot-users@lists.sourceforge.net
Subject: Re: [U-Boot-Users] Trouble with Make Command

Rugunda, Solo wrote:
 Hi
 
 I am fairly new to Uboot. I am having trouble running the make
command
 from the u-boot-1.1.4/tools # prompt.
 
 When I do a make, this is the error I get
 
 Makefile:108: /config.mk: No such file or directory
 make: *** No rule to make target `/config.mk'.  Stop.

Hi Solo,

Run make in your top level directory, u-boot-1.1.4, not in the tools 
subdirectory.

By the way, the prompt # indicates you are running make as root.  You 
should not need to.  Running as root for anything that doesn't need root

access (essentially everything but host configuration) is a poor 
practice and discouraged.

HTH,
gvb


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] Trouble with Make Command

2008-07-22 Thread Jean-Christophe PLAGNIOL-VILLARD
On 14:49 Tue 22 Jul , Rugunda, Solo wrote:
 Thanks Jerry and Nathan
 
 So I built the image by running the Make with the correct cross compiler
 from the uboot prompt. 
 
 The file produced is u-boot.bin.gz
u-boot.bin.gz? are you sure?
It's suppose to produce a elf u-boot and u-boot.bin.
You are suppose to burn the u-boot.bin to your flash

Best Regards,
J.

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] Trouble with Make Command

2008-07-22 Thread Rugunda, Solo
You are right. After taking a closer look, the binaries generated are 
u-boot.bin, u-boot.srec and u-boot ,not sure why the u-boot.bin.gz is in
there tho.

Anyway, it looks like I have the correct binary files. Which one do I
burn to flash? And how do I go about putting it on the board? (new to
uboot)

Thanks. 


-Original Message-
From: Jean-Christophe PLAGNIOL-VILLARD [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 22, 2008 3:12 PM
To: Rugunda, Solo
Cc: u-boot-users@lists.sourceforge.net
Subject: Re: [U-Boot-Users] Trouble with Make Command

On 14:49 Tue 22 Jul , Rugunda, Solo wrote:
 Thanks Jerry and Nathan
 
 So I built the image by running the Make with the correct cross
compiler
 from the uboot prompt. 
 
 The file produced is u-boot.bin.gz
u-boot.bin.gz? are you sure?
It's suppose to produce a elf u-boot and u-boot.bin.
You are suppose to burn the u-boot.bin to your flash

Best Regards,
J.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] amcc glacier board ethernet does not work?

2008-07-22 Thread vb
On Tue, Jul 22, 2008 at 11:59 AM, vb [EMAIL PROTECTED] wrote:
 I have an amcc glacier eval board, which came with u-boot installed,
 with working ethernet. The amcc folks told me that the u-boot was
 built off the denx 1.3.3 repository, so I cloned
 git://git.denx.de/u-boot.git and built glacier. It comes up all right,
 but reports

 Net:   No ethernet found.


sorry, false alarm - needed a mac address defined for the interface to come up.

/vb

 along the way. The I tried cloning
 git://www.denx.de/git/u-boot-ppc4xx.git and building it from there -
 the same result, no ethernet interface up. Does anyone know if this is
 something to expect, or has something gone wrong?

 TIA,
 vadim


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] u-boot.bin

2008-07-22 Thread Fundu
i'm working on taishan ppc440gx.

now here's what i noticed. snippet of u-boot.bin opened with a hex editor.


fffb : 27051956 552d426f 6f742031 2e322e30  '..VU-Boot 1.2.0
fffc000f : 20284a75 6c203232 20323030 38202d20   (Jul 22 2008 -
fffc001f : 31343a31 363a3037 2900   14:16:07)...
fffc002f :      
fffc003f :      

and my u-boot.map  

.text   0xfffc0x2aa9c
 cpu/ppc4xx/start.o(.text)
 .text  0xfffc 0x2704 cpu/ppc4xx/start.o
0xfffc01bc_start_of_vectors
0xfffc0004version_string
0xfffc2424dcache_enable
0xfffc24dcrelocate_code
0xfffc24b4in32
0xfffc24acin16r
0xfffc2474in8
0xfffc24bcin32r
0xfffc2484out16
0xfffc24a4in16
0xfffc23ecicache_enable
0xfffc246cwr_tcr
0xfffc2100transfer_to_handler
0xfffc24ccppcDcbi
0xfffc0100_start

couple of question.
1) this line .text   0xfffc0x2aa9c from u-boot.map 
which means .text starts at 0xfffc and with length of 0x2aa9c. right ?

then looking at the hex dump of u-boot.bin looks like there's some data right 
after first word (U-Boot 1.2.0...) 
what am i missing ? 

2) when ppc440gx reset it has 0xfffc in its program counter, the instr at 
this location is a branch instr. right ?
b) this branch should go to TEXT_BASE which is 0xfffc in my case. 
and that location contains 0x05195655. which looks like a rlwimix instr. 
(rotate left word immediate then mask insert). does this look start of monitor ?

Any insight on how the bootldr starts up would be appreciated too.
thanks ! 


  

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] u-boot.bin

2008-07-22 Thread Fundu

ok, looks like 0x27051956 is uboot magic number (from start.S)
why is the CFG_MONITOR_BASE points to the magic number ? 

--- On Tue, 7/22/08, Fundu [EMAIL PROTECTED] wrote:

 From: Fundu [EMAIL PROTECTED]
 Subject: [U-Boot-Users] u-boot.bin
 To: u-boot-users@lists.sourceforge.net
 Date: Tuesday, July 22, 2008, 3:44 PM
 i'm working on taishan ppc440gx.
 
 now here's what i noticed. snippet of u-boot.bin opened
 with a hex editor.
 
 
 fffb : 27051956 552d426f 6f742031 2e322e30 
 '..VU-Boot 1.2.0
 fffc000f : 20284a75 6c203232 20323030 38202d20   (Jul 22
 2008 -
 fffc001f : 31343a31 363a3037 2900  
 14:16:07)...
 fffc002f :     
 
 fffc003f :     
 
 
 and my u-boot.map  
 
 .text   0xfffc0x2aa9c
  cpu/ppc4xx/start.o(.text)
  .text  0xfffc 0x2704 cpu/ppc4xx/start.o
 0xfffc01bc_start_of_vectors
 0xfffc0004version_string
 0xfffc2424dcache_enable
 0xfffc24dcrelocate_code
 0xfffc24b4in32
 0xfffc24acin16r
 0xfffc2474in8
 0xfffc24bcin32r
 0xfffc2484out16
 0xfffc24a4in16
 0xfffc23ecicache_enable
 0xfffc246cwr_tcr
 0xfffc2100   
 transfer_to_handler
 0xfffc24ccppcDcbi
 0xfffc0100_start
 
 couple of question.
 1) this line .text   0xfffc   
 0x2aa9c from u-boot.map 
 which means .text starts at 0xfffc and with length of
 0x2aa9c. right ?
 
 then looking at the hex dump of u-boot.bin looks like
 there's some data right after first word (U-Boot
 1.2.0...) 
 what am i missing ? 
 
 2) when ppc440gx reset it has 0xfffc in its program
 counter, the instr at this location is a branch instr.
 right ?
 b) this branch should go to TEXT_BASE which is 0xfffc
 in my case. 
 and that location contains 0x05195655. which looks like a
 rlwimix instr. (rotate left word immediate then
 mask insert). does this look start of monitor ?
 
 Any insight on how the bootldr starts up would be
 appreciated too.
 thanks ! 
 
 
   
 
 -
 This SF.Net email is sponsored by the Moblin Your Move
 Developer's challenge
 Build the coolest Linux based applications with Moblin SDK
  win great prizes
 Grand prize is a trip for two to an Open Source event
 anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 U-Boot-Users mailing list
 U-Boot-Users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/u-boot-users


  

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] Freescale MPC8349EMDS BCSR corruption

2008-07-22 Thread David Hawkins

Hi all,

We're having a rough week with our Freescale MDS boards.
I've just submitted a service request through
Freescale's online system. However, I figured others
(eg. Kim, and Timur) might be interested in the following
problem:

We have an MPC8349E-MDS-PB and an MPC8349EA-MDS-PB that we
are using to develop PCI agent mode software. After
debugging the I2C flash write issue, we found that the
serial port would stop receiving shortly after boot (we
could see the U-Boot boot messages). We traced the issue
to the RS232 receiver enable bit in the BCSR register 0
being written to; disabling the serial port receiver
tri-state outputs.

The RS232 receiver enable bit is not being changed by a
write to the BCSR, but by a write to the *flash*.

Yikes!!

We were adding print statements that showed the value of
the BCSR code in U-Boot. We found the error occurred
during the Flash CFI code. I don't think the problem is
related to CFI code - thats just where the corruption is
triggered.

Starting with U-Boot head, we applied Timur's I2C patch,
and then added the following code sequence to
__flash_detect_cfi in U-boot:

  - write 0x2F (the reset value) to the
BCSR[0] register at 0xE240
  - read BCSR[0] (to confirm the write)
  - write 0xCC to Flash (0xFE00)
  - read BCSR[0] (to show the value changed)

(If you would like to repeat this test, please ask and Ira
can send a patch file).

The board was operated in stand-alone host-mode on the bench.

The following logic analyzer traces show:

a) the case where this sequence did nothing,

http://www.ovro.caltech.edu/~dwh/mpc8349e_bcsr_read_ok.pdf

and

(b) the case where the sequence changed the value read
back from the BCSR base address to 0xCC.

http://www.ovro.caltech.edu/~dwh/mpc8349e_bcsr_read_bad.pdf

We were able to trigger the error on both the E and EA board,
but it would not fail every single reset - it occurred about
1-in-3 tries - hence it seems like a timing issue.
It could be that the BCSR CPLD code has a decoding bug,
or a timing issue. Another possibility is that the CPLD code
that monitors CS#[0] for RCW access on boot is screwy and
is allowing a write to CS#[1] to occur.

We have had several other weird issues with the ethernet
interfaces failing too, and their enable registers are
in BCSR[0], so this would explain that too.

I figured that this may help others explain weird issues
they may be seeing on their development boards.

Cheers,
Dave

PS. The MDS board serial port is also driving the 3.3V
processor with 5V logic levels (4V measured) which is
bad-bad-bad, but thats not the cause of our current issue.



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] imx31 litekit

2008-07-22 Thread Nathan Manning
Hello,

My name is Nathan. I'm new to u-boot, but you may have recently seen a post
asking for imx31 litekit help. I've received some really good help from
other mx31ads or mx31pdk users, but haven't heard from anyone using the
litekit. Is there anyone out there with specific knowledge of the eval board
I'm working with?

Sincerely,
Nathan


smime.p7s
Description: S/MIME cryptographic signature
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] [PATCH] Fix warnings if compiling with IDE support.

2008-07-22 Thread Heiko Schocher
Hello,

this patch fixes the following warnings, if compiling
u-boot with ide support.

[EMAIL PROTECTED] u-boot]$ make -s all
cmd_ide.c:827: Warnung: weak declaration of `ide_outb' after first use results 
in unspecified behavior
cmd_ide.c:839: Warnung: weak declaration of `ide_inb' after first use results 
in unspecified behavior
[EMAIL PROTECTED] u-boot]$

Signed-off-by: Heiko Schocher [EMAIL PROTECTED]
---
 common/cmd_ide.c |   46 ++
 1 files changed, 22 insertions(+), 24 deletions(-)

diff --git a/common/cmd_ide.c b/common/cmd_ide.c
index 6560702..948a9d2 100644
--- a/common/cmd_ide.c
+++ b/common/cmd_ide.c
@@ -161,8 +161,6 @@ static uchar ide_wait  (int dev, ulong t);

 #define IDE_SPIN_UP_TIME_OUT 5000 /* 5 sec spin-up timeout */

-void inline ide_outb(int dev, int port, unsigned char val);
-unsigned char inline ide_inb(int dev, int port);
 static void input_data(int dev, ulong *sect_buf, int words);
 static void output_data(int dev, ulong *sect_buf, int words);
 static void ident_cpy (unsigned char *dest, unsigned char *src, unsigned int 
len);
@@ -522,6 +520,28 @@ int do_diskboot (cmd_tbl_t *cmdtp, int flag, int argc, 
char *argv[])

 /* - */

+void inline
+__ide_outb(int dev, int port, unsigned char val)
+{
+   debug (ide_outb (dev= %d, port= 0x%x, val= 0x%02x) : @ 0x%08lx\n,
+   dev, port, val, (ATA_CURR_BASE(dev)+CFG_ATA_PORT_ADDR(port)));
+   outb(val, (ATA_CURR_BASE(dev)+CFG_ATA_PORT_ADDR(port)));
+}
+void inline ide_outb (int dev, int port, unsigned char val)
+   __attribute__((weak, alias(__ide_outb)));
+
+unsigned char inline
+__ide_inb(int dev, int port)
+{
+   uchar val;
+   val = inb((ATA_CURR_BASE(dev)+CFG_ATA_PORT_ADDR(port)));
+   debug (ide_inb (dev= %d, port= 0x%x) : @ 0x%08lx - 0x%02x\n,
+   dev, port, (ATA_CURR_BASE(dev)+CFG_ATA_PORT_ADDR(port)), val);
+   return val;
+}
+unsigned char inline ide_inb(int dev, int port)
+   __attribute__((weak, alias(__ide_inb)));
+
 void ide_init (void)
 {

@@ -816,28 +836,6 @@ set_pcmcia_timing (int pmode)

 /* - */

-void inline
-__ide_outb(int dev, int port, unsigned char val)
-{
-   debug (ide_outb (dev= %d, port= 0x%x, val= 0x%02x) : @ 0x%08lx\n,
-   dev, port, val, (ATA_CURR_BASE(dev)+CFG_ATA_PORT_ADDR(port)));
-   outb(val, (ATA_CURR_BASE(dev)+CFG_ATA_PORT_ADDR(port)));
-}
-void inline ide_outb (int dev, int port, unsigned char val)
-   __attribute__((weak, alias(__ide_outb)));
-
-unsigned char inline
-__ide_inb(int dev, int port)
-{
-   uchar val;
-   val = inb((ATA_CURR_BASE(dev)+CFG_ATA_PORT_ADDR(port)));
-   debug (ide_inb (dev= %d, port= 0x%x) : @ 0x%08lx - 0x%02x\n,
-   dev, port, (ATA_CURR_BASE(dev)+CFG_ATA_PORT_ADDR(port)), val);
-   return val;
-}
-unsigned char inline ide_inb(int dev, int port)
-   __attribute__((weak, alias(__ide_inb)));
-
 #ifdef __PPC__
 # ifdef CONFIG_AMIGAONEG3SE
 static void
-- 
1.5.6.1


-- 
DENX Software Engineering GmbH, MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users