[U-Boot-Users] [PATCH] common: Move conditional compilation to Makefile

2008-07-27 Thread Jean-Christophe PLAGNIOL-VILLARD
From: Jean-Christophe PLAGNIOL-VILLARD [EMAIL PROTECTED]

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD [EMAIL PROTECTED]
---
 common/ACEX1K.c  |4 
 common/Makefile  |   42 +++---
 common/altera.c  |4 
 common/bedbug.c  |4 
 common/cmd_onenand.c |4 
 common/cyclon2.c |4 
 common/docecc.c  |4 
 common/fpga.c|4 
 common/lcd.c |4 
 common/lynxkdi.c |3 ---
 common/miiphybb.c|5 -
 common/soft_i2c.c|5 -
 common/soft_spi.c|4 
 common/spartan2.c|4 
 common/spartan3.c|4 
 common/stratixII.c   |4 
 common/usb.c |4 
 common/usb_kbd.c |5 -
 common/usb_storage.c |7 ---
 common/virtex2.c |3 ---
 common/xilinx.c  |4 
 21 files changed, 23 insertions(+), 103 deletions(-)

diff --git a/common/ACEX1K.c b/common/ACEX1K.c
index 76dc166..53677b8 100644
--- a/common/ACEX1K.c
+++ b/common/ACEX1K.c
@@ -28,8 +28,6 @@
 #include common.h/* core U-Boot definitions */
 #include ACEX1K.h/* ACEX device family */
 
-#if defined(CONFIG_FPGA)  defined(CONFIG_FPGA_ALTERA)  
defined(CONFIG_FPGA_ACEX1K)
-
 /* Define FPGA_DEBUG to get debug printf's */
 #ifdef FPGA_DEBUG
 #define PRINTF(fmt,args...)printf (fmt ,##args)
@@ -362,5 +360,3 @@ static int ACEX1K_ps_reloc (Altera_desc * desc, ulong 
reloc_offset)
return ret_val;
 
 }
-
-#endif /* CONFIG_FPGA  CONFIG_FPGA_ALTERA  CONFIG_FPGA_ACEX1K */
diff --git a/common/Makefile b/common/Makefile
index 4287108..454e844 100644
--- a/common/Makefile
+++ b/common/Makefile
@@ -28,9 +28,7 @@ LIB   = $(obj)libcommon.a
 AOBJS  =
 
 COBJS-y += main.o
-COBJS-y += ACEX1K.o
-COBJS-y += altera.o
-COBJS-y += bedbug.o
+COBJS-$(CONFIG_CMD_BEDBUG) += bedbug.o
 COBJS-y += circbuf.o
 COBJS-$(CONFIG_CMD_AMBAPP) += cmd_ambapp.o
 COBJS-y += cmd_autoscript.o
@@ -64,7 +62,18 @@ COBJS-$(CONFIG_OF_LIBFDT) += cmd_fdt.o fdt_support.o
 COBJS-$(CONFIG_CMD_FDOS) += cmd_fdos.o
 COBJS-$(CONFIG_CMD_FLASH) += cmd_flash.o
 ifdef CONFIG_FPGA
+COBJS-y += fpga.o
 COBJS-$(CONFIG_CMD_FPGA) += cmd_fpga.o
+COBJS-$(CONFIG_FPGA_SPARTAN2) += spartan2.o
+COBJS-$(CONFIG_FPGA_SPARTAN3) += spartan3.o
+COBJS-$(CONFIG_FPGA_VIRTEX2) += virtex2.o
+COBJS-$(CONFIG_FPGA_XILINX) += xilinx.o
+ifdef CONFIG_FPGA_ALTERA
+COBJS-y += altera.o
+COBJS-$(CONFIG_FPGA_ACEX1K) += ACEX1K.o
+COBJS-$(CONFIG_FPGA_CYCLON2) += cyclon2.o
+COBJS-$(CONFIG_FPGA_STRATIX_II) += stratixII.o
+endif
 endif
 COBJS-$(CONFIG_CMD_I2C) += cmd_i2c.o
 COBJS-$(CONFIG_CMD_IDE) += cmd_ide.o
@@ -80,7 +89,7 @@ COBJS-$(CONFIG_CMD_MMC) += cmd_mmc.o
 COBJS-y += cmd_nand.o
 COBJS-$(CONFIG_CMD_NET) += cmd_net.o
 COBJS-y += cmd_nvedit.o
-COBJS-y += cmd_onenand.o
+COBJS-$(CONFIG_CMD_ONENAND) += cmd_onenand.o
 COBJS-$(CONFIG_CMD_OTP) += cmd_otp.o
 ifdef CONFIG_PCI
 COBJS-$(CONFIG_CMD_PCI) += cmd_pci.o
@@ -101,11 +110,9 @@ COBJS-$(CONFIG_CMD_XIMG) += cmd_ximg.o
 COBJS-y += cmd_vfd.o
 COBJS-y += command.o
 COBJS-y += console.o
-COBJS-y += cyclon2.o
-COBJS-y += stratixII.o
 COBJS-y += devices.o
 COBJS-y += dlmalloc.o
-COBJS-y += docecc.o
+COBJS-$(CONFIG_CMD_DOC) += docecc.o
 COBJS-y += environment.o
 COBJS-y += env_common.o
 COBJS-y += env_nand.o
@@ -118,26 +125,23 @@ COBJS-y += env_nvram.o
 COBJS-y += env_nowhere.o
 COBJS-y += exports.o
 COBJS-y += flash.o
-COBJS-y += fpga.o
 COBJS-y += hush.o
 COBJS-y += kgdb.o
-COBJS-y += lcd.o
+COBJS-$(CONFIG_LCD) += lcd.o
 COBJS-y += lists.o
-COBJS-y += lynxkdi.o
+COBJS-$(CONFIG_LYNXKDI) += lynxkdi.o
 COBJS-y += memsize.o
-COBJS-y += miiphybb.o
+COBJS-$(CONFIG_BITBANGMII) += miiphybb.o
 COBJS-y += miiphyutil.o
 COBJS-y += s_record.o
 COBJS-y += serial.o
-COBJS-y += soft_i2c.o
-COBJS-y += soft_spi.o
-COBJS-y += spartan2.o
-COBJS-y += spartan3.o
+COBJS-$(CONFIG_SOFT_I2C) += soft_i2c.o
+COBJS-$(CONFIG_SOFT_SPI) += soft_spi.o
+ifdef CONFIG_CMD_USB
 COBJS-y += usb.o
-COBJS-y += usb_kbd.o
-COBJS-y += usb_storage.o
-COBJS-y += virtex2.o
-COBJS-y += xilinx.o
+COBJS-$(CONFIG_USB_STORAGE) += usb_storage.o
+endif
+COBJS-$(CONFIG_USB_KEYBOARD) += usb_kbd.o
 COBJS-y += crc16.o
 COBJS-y += xyzModem.o
 COBJS-y += cmd_mac.o
diff --git a/common/altera.c b/common/altera.c
index a2b5967..09dc0b2 100644
--- a/common/altera.c
+++ b/common/altera.c
@@ -41,8 +41,6 @@
 #define PRINTF(fmt,args...)
 #endif
 
-#if defined(CONFIG_FPGA)  defined(CONFIG_FPGA_ALTERA)
-
 /* Local Static Functions */
 static int altera_validate (Altera_desc * desc, const char *fn);
 
@@ -283,5 +281,3 @@ static int altera_validate (Altera_desc * desc, const char 
*fn)
 }
 
 /* - */
-
-#endif /* CONFIG_FPGA  CONFIG_FPGA_ALTERA */
diff --git a/common/bedbug.c b/common/bedbug.c
index 3bf1fc3..60109cf 100644
--- a/common/bedbug.c
+++ b/common/bedbug.c
@@ -2,8 +2,6 @@
 
 #include common.h
 
-#if defined(CONFIG_CMD_BEDBUG)
-
 #include 

Re: [U-Boot-Users] [PATCH] common: Move conditional compilation to Makefile

2008-07-27 Thread Jean-Christophe PLAGNIOL-VILLARD
Please ignore wrong e-mail

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


[U-Boot-Users] [PATCH V2] common: Move conditional compilation to Makefile

2008-07-27 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD [EMAIL PROTECTED]
---
Fix e-mail
 common/ACEX1K.c  |4 
 common/Makefile  |   42 +++---
 common/altera.c  |4 
 common/bedbug.c  |4 
 common/cmd_onenand.c |4 
 common/cyclon2.c |4 
 common/docecc.c  |4 
 common/fpga.c|4 
 common/lcd.c |4 
 common/lynxkdi.c |3 ---
 common/miiphybb.c|5 -
 common/soft_i2c.c|5 -
 common/soft_spi.c|4 
 common/spartan2.c|4 
 common/spartan3.c|4 
 common/stratixII.c   |4 
 common/usb.c |4 
 common/usb_kbd.c |5 -
 common/usb_storage.c |7 ---
 common/virtex2.c |3 ---
 common/xilinx.c  |4 
 21 files changed, 23 insertions(+), 103 deletions(-)

diff --git a/common/ACEX1K.c b/common/ACEX1K.c
index 76dc166..53677b8 100644
--- a/common/ACEX1K.c
+++ b/common/ACEX1K.c
@@ -28,8 +28,6 @@
 #include common.h/* core U-Boot definitions */
 #include ACEX1K.h/* ACEX device family */
 
-#if defined(CONFIG_FPGA)  defined(CONFIG_FPGA_ALTERA)  
defined(CONFIG_FPGA_ACEX1K)
-
 /* Define FPGA_DEBUG to get debug printf's */
 #ifdef FPGA_DEBUG
 #define PRINTF(fmt,args...)printf (fmt ,##args)
@@ -362,5 +360,3 @@ static int ACEX1K_ps_reloc (Altera_desc * desc, ulong 
reloc_offset)
return ret_val;
 
 }
-
-#endif /* CONFIG_FPGA  CONFIG_FPGA_ALTERA  CONFIG_FPGA_ACEX1K */
diff --git a/common/Makefile b/common/Makefile
index 4287108..454e844 100644
--- a/common/Makefile
+++ b/common/Makefile
@@ -28,9 +28,7 @@ LIB   = $(obj)libcommon.a
 AOBJS  =
 
 COBJS-y += main.o
-COBJS-y += ACEX1K.o
-COBJS-y += altera.o
-COBJS-y += bedbug.o
+COBJS-$(CONFIG_CMD_BEDBUG) += bedbug.o
 COBJS-y += circbuf.o
 COBJS-$(CONFIG_CMD_AMBAPP) += cmd_ambapp.o
 COBJS-y += cmd_autoscript.o
@@ -64,7 +62,18 @@ COBJS-$(CONFIG_OF_LIBFDT) += cmd_fdt.o fdt_support.o
 COBJS-$(CONFIG_CMD_FDOS) += cmd_fdos.o
 COBJS-$(CONFIG_CMD_FLASH) += cmd_flash.o
 ifdef CONFIG_FPGA
+COBJS-y += fpga.o
 COBJS-$(CONFIG_CMD_FPGA) += cmd_fpga.o
+COBJS-$(CONFIG_FPGA_SPARTAN2) += spartan2.o
+COBJS-$(CONFIG_FPGA_SPARTAN3) += spartan3.o
+COBJS-$(CONFIG_FPGA_VIRTEX2) += virtex2.o
+COBJS-$(CONFIG_FPGA_XILINX) += xilinx.o
+ifdef CONFIG_FPGA_ALTERA
+COBJS-y += altera.o
+COBJS-$(CONFIG_FPGA_ACEX1K) += ACEX1K.o
+COBJS-$(CONFIG_FPGA_CYCLON2) += cyclon2.o
+COBJS-$(CONFIG_FPGA_STRATIX_II) += stratixII.o
+endif
 endif
 COBJS-$(CONFIG_CMD_I2C) += cmd_i2c.o
 COBJS-$(CONFIG_CMD_IDE) += cmd_ide.o
@@ -80,7 +89,7 @@ COBJS-$(CONFIG_CMD_MMC) += cmd_mmc.o
 COBJS-y += cmd_nand.o
 COBJS-$(CONFIG_CMD_NET) += cmd_net.o
 COBJS-y += cmd_nvedit.o
-COBJS-y += cmd_onenand.o
+COBJS-$(CONFIG_CMD_ONENAND) += cmd_onenand.o
 COBJS-$(CONFIG_CMD_OTP) += cmd_otp.o
 ifdef CONFIG_PCI
 COBJS-$(CONFIG_CMD_PCI) += cmd_pci.o
@@ -101,11 +110,9 @@ COBJS-$(CONFIG_CMD_XIMG) += cmd_ximg.o
 COBJS-y += cmd_vfd.o
 COBJS-y += command.o
 COBJS-y += console.o
-COBJS-y += cyclon2.o
-COBJS-y += stratixII.o
 COBJS-y += devices.o
 COBJS-y += dlmalloc.o
-COBJS-y += docecc.o
+COBJS-$(CONFIG_CMD_DOC) += docecc.o
 COBJS-y += environment.o
 COBJS-y += env_common.o
 COBJS-y += env_nand.o
@@ -118,26 +125,23 @@ COBJS-y += env_nvram.o
 COBJS-y += env_nowhere.o
 COBJS-y += exports.o
 COBJS-y += flash.o
-COBJS-y += fpga.o
 COBJS-y += hush.o
 COBJS-y += kgdb.o
-COBJS-y += lcd.o
+COBJS-$(CONFIG_LCD) += lcd.o
 COBJS-y += lists.o
-COBJS-y += lynxkdi.o
+COBJS-$(CONFIG_LYNXKDI) += lynxkdi.o
 COBJS-y += memsize.o
-COBJS-y += miiphybb.o
+COBJS-$(CONFIG_BITBANGMII) += miiphybb.o
 COBJS-y += miiphyutil.o
 COBJS-y += s_record.o
 COBJS-y += serial.o
-COBJS-y += soft_i2c.o
-COBJS-y += soft_spi.o
-COBJS-y += spartan2.o
-COBJS-y += spartan3.o
+COBJS-$(CONFIG_SOFT_I2C) += soft_i2c.o
+COBJS-$(CONFIG_SOFT_SPI) += soft_spi.o
+ifdef CONFIG_CMD_USB
 COBJS-y += usb.o
-COBJS-y += usb_kbd.o
-COBJS-y += usb_storage.o
-COBJS-y += virtex2.o
-COBJS-y += xilinx.o
+COBJS-$(CONFIG_USB_STORAGE) += usb_storage.o
+endif
+COBJS-$(CONFIG_USB_KEYBOARD) += usb_kbd.o
 COBJS-y += crc16.o
 COBJS-y += xyzModem.o
 COBJS-y += cmd_mac.o
diff --git a/common/altera.c b/common/altera.c
index a2b5967..09dc0b2 100644
--- a/common/altera.c
+++ b/common/altera.c
@@ -41,8 +41,6 @@
 #define PRINTF(fmt,args...)
 #endif
 
-#if defined(CONFIG_FPGA)  defined(CONFIG_FPGA_ALTERA)
-
 /* Local Static Functions */
 static int altera_validate (Altera_desc * desc, const char *fn);
 
@@ -283,5 +281,3 @@ static int altera_validate (Altera_desc * desc, const char 
*fn)
 }
 
 /* - */
-
-#endif /* CONFIG_FPGA  CONFIG_FPGA_ALTERA */
diff --git a/common/bedbug.c b/common/bedbug.c
index 3bf1fc3..60109cf 100644
--- a/common/bedbug.c
+++ b/common/bedbug.c
@@ -2,8 +2,6 @@
 
 #include common.h
 
-#if defined(CONFIG_CMD_BEDBUG)
-
 #include linux/ctype.h
 #include bedbug/bedbug.h
 #include 

Re: [U-Boot-Users] [yes, i tried rtfming docs]u-boot on x86, how to?

2008-07-27 Thread Alan Carvalho de Assis
Hi Geraldo,
your final course project appear very interesting.

As others guys already said porting U-Boot to your board is a hard
work. Verifying Makefile I found for i386 only AMD SC520 boards are
supported.

I think you can use coreboot (formerly LinuxBIOS) and FILO to boot your board.

If your thin client board is not supported
(http://www.coreboot.org/Supported_Motherboards) you can use VIA
pc2500 board that is being mass produced here in Brazil and is cheap.

You can use this tutorial as start point if you don't have a supported hardware:
http://www.coreboot.org/QEMU_Build_Tutorial

Best Regards,

Alan

2008/7/26 Geraldo Netto [EMAIL PROTECTED]:
 Hi :)

 regarding ppc boards,oh, i didn't know that
 actually i'm a 22yo newbie guy which is interested in u-boot
 because i do study information systems in Brazil and i'm doing a
 linux distro for thin clients(as a final course project-monograph+software)
 and i got interested in u-boot because it seems the *correct*
 bootloader for my project
 ie: it seems far smaller than other ones and at once offers many features :)
 and i also studied/setup grub/lilo/syslinux :)
 i need to compare bootloaders and write down the features of each one and show
 which bootloader is better for each case
 ie: which one has 'best' features for diskless boot;
 which one is better for local boot(size, 'dinamyc configuration(ie:
 pass parameter on the fly)',...,...;
 ...

 Kind Regards and Best Wishes,

 Geraldo
 São Paulo, Brasil, -3gmt
 site: http://exdev.sf.net/
 msn: geraldo_boca_at_hotmail.com
 skype: geraldo-netto
 icq: 145-061-456



 2008/7/26 Wolfgang Denk [EMAIL PROTECTED]:
 In message [EMAIL PROTECTED] you wrote:

 sudo tar xjvf u-boot-1.3.3.tar.bz2 -C /usr/src

 then i tried:

 make distclean canyonlands_config all
 (as i read at http://www.denx.de/wiki/view/DULG/UBootConfiguration )

 You mention u-boot on x86 in the subjct - are you aware that the
 Canyonlands board is not x86, but PPC?

 What you should do is:

make distclean
make canyonlands_config
make all

 Do not try to perform all there steps in a single call to make - this
 cannot work.

 mbdev-deb:/usr/src/u-boot-1.3.3# make distclean canyonlands_config all
 Configuring for canyonlands board...
 System not configured - see README
 make: ** [all] Erro 1

 This is caused by your incorrect call to make - see above.

 also, as you all can easely see, i was not able to 'configure' the system
 i tried many other things in a 'adhoc' way and i still not able to
 handle this :(

 Please read the manual - it describes step by step what to do.
 If you had follwed the examples, aboveerror could have been avoided.
 See http://www.denx.de/wiki/view/DULG/Manual?stickboard=canyonlands

 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]
 If there are self-made purgatories, then we all have to live in them.
-- Spock, This Side of Paradise, stardate 3417.7


 -
 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] [PATCH] Fix more printf() format warnings

2008-07-27 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD [EMAIL PROTECTED]
---
 common/cmd_flash.c |4 ++--
 drivers/usb/usbdcore.c |2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/common/cmd_flash.c b/common/cmd_flash.c
index a7f66dd..18d2250 100644
--- a/common/cmd_flash.c
+++ b/common/cmd_flash.c
@@ -342,7 +342,7 @@ int do_flerase (cmd_tbl_t *cmdtp, int flag, int argc, char 
*argv[])
puts (Bad sector specification\n);
return 1;
}
-   printf (Erase Flash Sectors %d-%d in Bank # %d ,
+   printf (Erase Flash Sectors %d-%d in Bank # %zu ,
sect_first, sect_last, (info-flash_info)+1);
rcode = flash_erase(info, sect_first, sect_last);
return rcode;
@@ -534,7 +534,7 @@ int do_protect (cmd_tbl_t *cmdtp, int flag, int argc, char 
*argv[])
puts (Bad sector specification\n);
return 1;
}
-   printf(%sProtect Flash Sectors %d-%d in Bank # %d\n,
+   printf(%sProtect Flash Sectors %d-%d in Bank # %zu\n,
p ?  : Un-, sect_first, sect_last,
(info-flash_info)+1);
for (i = sect_first; i = sect_last; i++) {
diff --git a/drivers/usb/usbdcore.c b/drivers/usb/usbdcore.c
index 808da9f..53ed669 100644
--- a/drivers/usb/usbdcore.c
+++ b/drivers/usb/usbdcore.c
@@ -552,7 +552,7 @@ struct urb *usbd_alloc_urb (struct usb_device_instance 
*device,
struct urb *urb;
 
if (!(urb = (struct urb *) malloc (sizeof (struct urb {
-   usberr ( F A T A L:  malloc(%u) FAILED,
+   usberr ( F A T A L:  malloc(%zu) FAILED,
sizeof (struct urb));
return NULL;
}
-- 
1.5.6


-
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] Add support for ATMELAT91SAM9G20EKboard

2008-07-27 Thread Hong Xu
On Sat, Jul 26, 2008 at 19:36, Jean-Christophe PLAGNIOL-VILLARD
[EMAIL PROTECTED] wrote:
 

 As I see it, CONFIG_AT91 would mean that you have a
 a certain class of peripherals which is developed for the
 AT91 range of processors (and is used by the AVR32 as well)
 The name is probably slightly misleading, but convenient.

 Not having this definition, will soon mean that you have statements
 like the following:

 #if  defined(CONFIG_AT91RM9200) || \
 defined(CONFIG_AT91SAM9260) || \
 defined(CONFIG_AT91SAM9261) || \
 defined(CONFIG_AT91SAM9263) || \
 defined(CONFIG_AT91SAM9G10) || \
 defined(CONFIG_AT91SAM9G15) || \
 defined(CONFIG_AT91SAM9G20) || \
 defined(CONFIG_AT91SAM9G41) || \
 defined(CONFIG_AT91SAM9M10) || \
 defined(CONFIG_AT91SAM9M11) || \
 defined(CONFIG_AT91CAP9) || \
 defined(CONFIG_AT572D940)

 This statement will have to be updated every time a new MCU is released.

 Having the statment
 #if  defined(CONFIG_AT91)

 should definitely reduce the maintenance of drivers.
 I fully agree with Ulf, we need to have a better CONFIG, but I'm not
 sure that CONFIG_AT91 is the right one

 We have actually in the tree the following CPU
 CONFIG_AT91CAP9
 CONFIG_AT91RM9200
 CONFIG_AT91SAM9260
 CONFIG_AT91SAM9261
 CONFIG_AT91SAM9263
 CONFIG_AT91SAM9RL

 and as mention Ulf are going to have more and more

 maybe we can use config related to the functionnality or the sub-class
 CPU
 ex :
 CONFIG_MACB_INCLK

Agree.

We can use #if defined(CONFIG_AT91)  defined(CONFIG_MACB) in
net/eth.c and #ifdef CONFIG_MACB_INCLK in drivers/net/macb.c to
simplify the previous *big* #ifdef.
If everyone feels comfortable, I'll rewrite these parts and re-submit the patch.

Thanks.


 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


-
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] Add support for ATMEL AT91SAM9G20EK board

2008-07-27 Thread Hong Xu
Hi Ben Warren,

On Sun, Jul 27, 2008 at 12:51, Ben Warren [EMAIL PROTECTED] wrote:
 Hi Hong Xu,

 On Thu, Jul 24, 2008 at 1:05 AM, Hong Xu [EMAIL PROTECTED] wrote:
 From 81230b02610c06fdc8a175e635851346488e3bdb Mon Sep 17 00:00:00 2001
 From: Hong Xu [EMAIL PROTECTED]
 Date: Thu, 24 Jul 2008 14:25:05 +0800
 Subject: [PATCH 1/1] Add support for ATMEL AT91SAM9G20EK board

 This patch adds support for ATMEL AT91SAM9G20EK board.
 User manual for AT91SAM9G20EK board, see
 http://www.atmel.com/dyn/resources/prod_documents/doc6413.pdf
 AT91 SAM9G20 datasheet, see
 http://www.atmel.com/dyn/resources/prod_documents/doc6384.pdf

 Signed-off-by: Hong Xu [EMAIL PROTECTED]
 ---
 snip
 diff --git a/net/eth.c b/net/eth.c
 index 38979aa..3f50e2b 100644
 --- a/net/eth.c
 +++ b/net/eth.c
 @@ -287,7 +287,7 @@ int eth_initialize(bd_t *bis)
mcdmafec_initialize(bis);
  #endif
  #if defined(CONFIG_AT91CAP9) || defined(CONFIG_AT91SAM9260) || \
 -defined(CONFIG_AT91SAM9263)
 +defined(CONFIG_AT91SAM9263) || defined(CONFIG_AT91SAM9G20)
at91sam9_eth_initialize(bis);
  #endif


 Please don't touch net/eth.c.  Instead, implement the following in board code:

Actually I did NOT touch the logic in net/eth.c. I just said, hey,
since you guys have the logic, please make a call for me.. That's it.
:-)
Thanks.


 int board_eth_init(bd_t *bis);

 Please be sure to check that the weak version of board_eth_init() is
 overridden (the board_eth_init and __def_eth_init symbols should have
 different addresses in the object code).  You can do something like:

 $ cat System.map | grep eth_init

 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


[U-Boot-Users] Intel makes a bid for AMD

2008-07-27 Thread Miyuki
Candidates face off on key Iraq issues
http://www.sapacontenedores.com/fresh.html

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

-
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] Add support for ATMEL AT91SAM9G20EK board

2008-07-27 Thread Ben Warren
On Sun, Jul 27, 2008 at 6:46 PM, Hong Xu [EMAIL PROTECTED] wrote:
 Hi Ben Warren,

 On Sun, Jul 27, 2008 at 12:51, Ben Warren [EMAIL PROTECTED] wrote:
 Hi Hong Xu,

 On Thu, Jul 24, 2008 at 1:05 AM, Hong Xu [EMAIL PROTECTED] wrote:
 From 81230b02610c06fdc8a175e635851346488e3bdb Mon Sep 17 00:00:00 2001
 From: Hong Xu [EMAIL PROTECTED]
 Date: Thu, 24 Jul 2008 14:25:05 +0800
 Subject: [PATCH 1/1] Add support for ATMEL AT91SAM9G20EK board

 This patch adds support for ATMEL AT91SAM9G20EK board.
 User manual for AT91SAM9G20EK board, see
 http://www.atmel.com/dyn/resources/prod_documents/doc6413.pdf
 AT91 SAM9G20 datasheet, see
 http://www.atmel.com/dyn/resources/prod_documents/doc6384.pdf

 Signed-off-by: Hong Xu [EMAIL PROTECTED]
 ---
 snip
 diff --git a/net/eth.c b/net/eth.c
 index 38979aa..3f50e2b 100644
 --- a/net/eth.c
 +++ b/net/eth.c
 @@ -287,7 +287,7 @@ int eth_initialize(bd_t *bis)
mcdmafec_initialize(bis);
  #endif
  #if defined(CONFIG_AT91CAP9) || defined(CONFIG_AT91SAM9260) || \
 -defined(CONFIG_AT91SAM9263)
 +defined(CONFIG_AT91SAM9263) || defined(CONFIG_AT91SAM9G20)
at91sam9_eth_initialize(bis);
  #endif


 Please don't touch net/eth.c.  Instead, implement the following in board 
 code:

 Actually I did NOT touch the logic in net/eth.c. I just said, hey,
 since you guys have the logic, please make a call for me.. That's it.
 :-)

Sure.  I'm saying, don't even do that.  I mean don't touch the file,
not don't touch the logic.

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


[U-Boot-Users] weak reference seems not working on git://git.denx.de/u-boot-at91.git

2008-07-27 Thread os user
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 weak function seems not working.

In lib_arm/board.c, we can see,
void inline __coloured_LED_init (void) {}

void inline coloured_LED_init (void) __attribute__((weak,
alias(__coloured_LED_init)));

And then I defined my own version in board/atmel/at91sam9260ek/led.c,
void coloured_LED_init(void)
{
//.. do someting...
}

After 1)make at91sam9260ek_config and 2) make 3) download the
u-boot.bin to dataflash 4) reseting the board, I found that my version
of coloured_LED_init never gets called. Could anyone please explain
the trick behind?

BTW, If I comment out the declaration in lib_arm/board.c, my version
of coloured_LED_init can get called.

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] USB Uboot on OSK5912

2008-07-27 Thread Shivdas Gujare
Hi Jon,
This is what I observed, I needed to modify usbdcore_omap1510.c file to get
it complied properly with usbtty.c
Also, After disabling  following code from  usbdcore_omap1510.c,

  /* Set and check APLL */
 outw (0x0008, APLL_CTRL);
  UDCREG (APLL_CTRL);
  /* Set and check DPLL */
  outw (0x2210, DPLL_CTRL);
  UDCREG (DPLL_CTRL);

I was able to get Uboot console over USB on osk5912, but is not stable.

Now, I will test this with other suggested modifications.

Thanks for your Replies.

Thanks and Regards,
Shivdas Gujare


On Sun, Jul 27, 2008 at 4:51 AM, Hunter, Jon [EMAIL PROTECTED] wrote:

  Due to the fact thath the documentation is under NDA and you have access
  to it. Could you send a patch for it?

 No problem. I will have a crack. Please note long-time user, first time
 patcher, so let me know if anything gets messed up but I have tried to
 follow the guidelines that you have.

 By the way, whilst playing around with this, I did noticed that there have
 been alot of updates made to drivers/serial/usbtty.c. It appears to have
 broken support for usbtty on OMAP devices. The board SX1 (a Siemens
 OMAP1510 board which I don't have) that originally added the usbtty support
 for OMAP is no longer compiling correctly with the latest version of u-boot.
 Back in the days of u-boot v1.1.x usbtty was working a treat for OMAP5912.
 Looks like more work to get usbtty back up and running on the OMAP5912 ;-(

 Cheers
 Jon



-
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