Re: [U-Boot-Users] RFC: U-Boot version numbering
[EMAIL PROTECTED] wrote on : Kumar Gala wrote: On Aug 1, 2008, at 10:32 AM, Wolfgang Denk wrote: Hello, I would like to get your general opinion about changing the U-Boot version numbering scheme. To be honest, I never really understood myself how this is supposed to work and if the next version should be 1.3.4 or 1.4.0 or 2.0.0, i. e. which changes / additions are important enough to increment the PATCHLEVEL or even VERSION number. I therefor suggest to drop this style of version numbering and change to a timestamp based version number system which has been quite successfully used by other projects (like Ubuntu) or is under discussion (for Linux). My suggestion for the new version numbers is as follows: VERSION = 1 (at least for the time being) PATCHLEVEL = current year - 2000 SUBLEVEL = current month Both PATCHLEVEL and SUBLEVEL shall always be 2 digits (at least for the next 91+ years to come) so listings for example on an FTP server shall be in a sane sorting order. If we accept this system, the next release which probably comes out in October 2008 would be v1.08.10, and assuming the one after that comes out in January 2009 would be named v1.09.01 If we go to date based versions. I'd prefer we keep year as 4 digits: v1.2008.10 v1.2009.01 It just seems easier to me at a visual level when I look at try and compare versions. - k I vote for this one, but starting at v2. Me too! Best Regards, Martin -- TQ-Systems GmbH Muehlstrasse 2, Gut Delling, D-82229 Seefeld Amtsgericht Muenchen, HRB 105 018, UST-IdNr. DE 811 607 913 Geschaeftsfuehrer: Dipl.-Ing. (FH) Detlef Schneider, Dipl.-Ing. (FH) Ruediger Stahl http://www.tq-group.com - 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 04/10 v2] [ARM] TQMA31: add new boardwith i.MX31 processor
[EMAIL PROTECTED] wrote on : In message [EMAIL PROTECTED] you wrote: Question: Why did you accept all the initial patches for cpu/arm1136/mx31/interrupts.c and for the boards mx31ads, imx31_litekit, imx31_phycore? Nobody raised concerns, and I did not notice problems either. I do not claim to catch 100% of all issues (I don't even claim to review all postings). If I could remember correctly, we (TQS) paid DENX for the U-Boot porting of the mx31ads board. It is a little bit surprising that now the patch for our own i.mx31 based board is not accepted, although we used the mx31ads port as basis. The reason for paying the mx31ads port was to get an accepted basis for a common i.mx31 board into the official U-Boot tree, to have a stable basis for further portings of i.mx31 boards (and to give something back to the great U-Boot community which is hopefully useful for many other users). Best Regards, Martin Krause -- TQ-Systems GmbH Muehlstrasse 2, Gut Delling, D-82229 Seefeld Amtsgericht Muenchen, HRB 105 018, UST-IdNr. DE 811 607 913 Geschaeftsfuehrer: Dipl.-Ing. (FH) Detlef Schneider, Dipl.-Ing. (FH) Ruediger Stahl http://www.tq-group.com - Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 ___ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
Re: [U-Boot-Users] build failure in tools - missing CFG_ENV_SIZE ?
Hi Andre, [EMAIL PROTECTED] wrote on : Wolfgang Denk schrieb: In message [EMAIL PROTECTED] you wrote: thanks for your verification. Trying to do it your way gives : nova u-boot-clean # CROSS_COMPILE=ppc_6xx- sh MAKEALL TQM5200 MPC8349ITX Configuring for TQM5200 board... In file included from environment.c:30: /home/u-boot-clean/include/environment.h:107: error: 'CFG_ENV_SIZE' undeclared here (not in a function) I'm also able to build (top of) U-Boot for the TQM5200 with ELDK4.1: [EMAIL PROTECTED]:~/git/u-boot_denx echo $CROSS_COMPILE ppc_82xx- [EMAIL PROTECTED]:~/git/u-boot_denx ./MAKEALL TQM5200 Configuring for TQM5200 board... md5.c: In function `MD5Update': md5.c:95: warning: implicit declaration of function `memmove' md5.c: In function `MD5Final': md5.c:143: warning: implicit declaration of function `memset' sha1.c: In function `sha1_update': sha1.c:249: warning: implicit declaration of function `memcpy' sha1.c: In function `sha1_hmac': sha1.c:360: warning: implicit declaration of function `memset' textdata bss dec hex filename 326532 32456 315024 674012 a48dc ./u-boot [EMAIL PROTECTED]:~/git/u-boot_denx I don't know, why I get the warnings (they appeared first several weeks ago, and I get it for every build, since then). But since the resulting U-Boot runs fine, there was no pressure (and no time) to dig for the reason of the warnings ... Best Regards, Martin Krause -- TQ-Systems GmbH Muehlstrasse 2, Gut Delling, D-82229 Seefeld Amtsgericht Muenchen, HRB 105 018, UST-IdNr. DE 811 607 913 Geschaeftsfuehrer: Dipl.-Ing. (FH) Detlef Schneider, Dipl.-Ing. (FH) Ruediger Stahl http://www.tq-group.com - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
Re: [U-Boot-Users] build failure in tools - missing CFG_ENV_SIZE ?
Hello, [EMAIL PROTECTED] wrote on Friday, June 06, 2008 2:28 PM: I don't know, why I get the warnings (they appeared first several weeks ago, and I get it for every build, since then). But since the resulting U-Boot runs fine, there was no pressure (and no time) to dig for the reason of the warnings ... Can you please check if this patch fixes the warnings? Thanks in advance. diff --git a/lib_generic/md5.c b/lib_generic/md5.c index 78ef475..a9aae46 100644 --- a/lib_generic/md5.c +++ b/lib_generic/md5.c @@ -27,6 +27,8 @@ #ifndef USE_HOSTCC #include common.h +#else +#include string.h #endif /* USE_HOSTCC */ #include watchdog.h #include linux/types.h diff --git a/lib_generic/sha1.c b/lib_generic/sha1.c index c8ef4d2..a192e5f 100644 --- a/lib_generic/sha1.c +++ b/lib_generic/sha1.c @@ -31,6 +31,8 @@ #ifndef USE_HOSTCC #include common.h +#else +#include string.h #endif /* USE_HOSTCC */ #include watchdog.h #include linux/string.h This helped, thanks! With your patch I get a clean build: [EMAIL PROTECTED]:~/git/u-boot_denx ./MAKEALL TQM5200 Configuring for TQM5200 board... textdata bss dec hex filename 326532 32464 315024 674020 a48e4 ./u-boot [EMAIL PROTECTED]:~/git/u-boot_denx But why did I get the warning without the patch and you not (both build with ELDK4.1 and top-of-U-Boot)? Best Regards, Martin Krause - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
Re: [U-Boot-Users] U-Boot NAND driver for s3c6400
Hi Guennadi, [EMAIL PROTECTED] wrote on : Hi Harald, all do you or anyone else know, if there is a s3c6400 NAND driver available somewhere for a recent U-Boot version (not OneNAND)? Preferably with booting from NAND support? I have the U-Boot code delivered by Samsung with the SMDK6400. It is based on U-Boot 1.1.6 and boots from NAND, but I guess you already have this code? Best Regards, Martin Krause -- TQ-Systems GmbH Muehlstrasse 2, Gut Delling, D-82229 Seefeld Amtsgericht Muenchen, HRB 105 018, UST-IdNr. DE 811 607 913 Geschaeftsfuehrer: Dipl.-Ing. (FH) Detlef Schneider, Dipl.-Ing. (FH) Ruediger Stahl http://www.tq-group.com - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
Re: [U-Boot-Users] Jffs2 root file system on imx21ads board
Hi Nethra, [EMAIL PROTECTED] wrote on Tuesday, May 06, 2008 2:11 PM: hi all, I m using imx21ads board, Bootloader is Redboot. linux is linux-2.6.22 version. Board with Jffs2 root filesystem as root is not working. This is the U-Boot mailing list. Perhaps it will be a good idea to ask your question on a more linux related list. For example on [EMAIL PROTECTED] Best Regards, Martin Krause -- TQ-Systems GmbH Muehlstrasse 2, Gut Delling, D-82229 Seefeld Amtsgericht Muenchen, HRB 105 018, UST-IdNr. DE 811 607 913 Geschaeftsfuehrer: Dipl.-Ing. (FH) Detlef Schneider, Dipl.-Ing. (FH) Ruediger Stahl http://www.tq-group.com - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
Re: [U-Boot-Users] How to set CPU speed to 266mhz s3c2410?
Hi p, [EMAIL PROTECTED] wrote on Tuesday, April 22, 2008 3:10 AM: Sorry for the newb question but I've been googling like mad and can't find any clues (or more likely, can't understand what I do find). I'm looking at speed.c under /cpu/arm920t/s3c24xx and thinking this is the business end of CPU speed setting. I've been greping the source to No, in /cpu/arm920t/s3c24x0/speed.c are only functions to read the clock configuration. The setting of the clocks is done in the board specific initilaisation code. For the SMDK2410 for example in /board/smdk2410/smdk2410.c. The MPLL Clock (and thus the derived CPU clock FCLK) is configured via the PLL divider values MDIV, PDIV and SDIV. For a detailed description take a look into the S3C2410 datasheet (search for the MPLL register in the chapter Clock Power Management). Regards, Martin Krause -- TQ-Systems GmbH Muehlstrasse 2, Gut Delling, D-82229 Seefeld Amtsgericht Muenchen, HRB 105 018, UST-IdNr. DE 811 607 913 Geschaeftsfuehrer: Dipl.-Ing. (FH) Detlef Schneider, Dipl.-Ing. (FH) Ruediger Stahl http://www.tq-group.com - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
Re: [U-Boot-Users] I2C @ MPC8343
Hi Andre, [EMAIL PROTECTED] wrote on : All, in my current system the I2C bus is not working properly on a MPC8343 in u-boot v1.3.2. i2c board config includes : #define CONFIG_HARD_I2C #undef CONFIG_SOFT_I2C #define CONFIG_FSL_I2C #define CONFIG_I2C_MULTI_BUS #define CONFIG_I2C_CMD_TREE #define CFG_I2C_OFFSET 0x3000 #define CFG_I2C2_OFFSET 0x3100 #define CFG_I2C_SPEED 10 #define CFG_I2C_SLAVE 0x7F chip probing works fine. mvBL-M7 i2c probe Valid chip addresses: 30 48 50 68 reading the Chips gives all ff mvBL-M7 i2c md 50 0 10 Uh, it seems I lag behind in U-Boot evolution. I know this i2c md command as imd? : ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff Devices with address 50 normally are EEPROMs. If this device is an EEPROM, are you sure it contains data other than 0xff? The number of address bytes a device needs is varying. Your could look up the correct address length in the datasheet of your device, or try it manually: imd 50.0 0 10 imd 50.1 0 10 imd 50.2 0 10 One of this should work. Observing the I2C bus wires show that everything _works excellent_ : 100kHz speed as well as all data seems ok - but u-boot shows ff. BTW: Fetching HRCW from I2C is also working fine. After some tries (i2c md ..) the bus hangs and no more transactions can be seen on the bus. One reason for a hanging bus could be a lost clock pulse. This could happen, if the low-high rise time of the bus signal is longer than the clock pulse width. For testing you could try a lower bus clock (10 kHz for example). Best Regards, Martin Krause -- TQ-Systems GmbH Muehlstrasse 2, Gut Delling, D-82229 Seefeld Amtsgericht Muenchen, HRB 105 018, UST-IdNr. DE 811 607 913 Geschaeftsfuehrer: Dipl.-Ing. (FH) Detlef Schneider, Dipl.-Ing. (FH) Ruediger Stahl http://www.tq-group.com - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ 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] IDE: fix bug in reset sequence
According to the ata (ata5) specification the RESET- signal shall be asserted for at least 25 us. Without this patch, the RESET- signal is asserted on some boards for only 1 us (e. g. on the TQM5200). This patch adds a general delay of 25 us to the RESET- signal. Without this patch a Platinum 4 GiB CF card is not recognised properly on boards with a TQM5200 (STK52xx, TB5200). The patch was tested on the boards TQM5200, TQM200B and TB5200 (with MPC5200 cpu) with the following IDE Hardware: - 128 MiB CF Toshiba THNCF128MDG - 128 MiB CF Toshiba THNCF128MBA - 4 GiB CF InnoDisk iSmart iCF2000+ - 4 GiB CF SMI 20070312 (labeled with Platinum) - 4 GiB CF Sony NCFB4G - 40 GiB HDD Hitachi Travelstar IC25N040ATCS0-4 Signed-off-by: Martin Krause [EMAIL PROTECTED] --- Hi Jean-Christophe, thanks for your response! I've tested the patch with all IDE devices I found. It would be great if someone else could test this on some other hardware. Regards, Martin --- common/cmd_ide.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/common/cmd_ide.c b/common/cmd_ide.c index 8ace970..2d47914 100644 --- a/common/cmd_ide.c +++ b/common/cmd_ide.c @@ -1529,6 +1529,9 @@ static void ide_reset (void) ide_set_reset (1); /* assert reset */ + /* the reset signal shall be asserted for at least 25 us */ + udelay(25); + WATCHDOG_RESET(); #ifdef CFG_PB_12V_ENABLE - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
Re: [U-Boot-Users] Pointer to similar board?
Hi, [EMAIL PROTECTED] wrote on Thursday, April 03, 2008 3:37 AM: I've been trying to get Das u-boot going on my S3C2410 based board and had no luck so far. Just trying to get something over the serial port for now. I have a Wiggler to JTAG the initial u-boot.bin Part of the problem is the target is brand new and not supported by anybody yet. I'm wondering if there's a similar board already supported by u-boot? Take a look into the Makefile and search for s3c24x0. The smdk2410 is the eval board from Samsung. Maybe this is a good starting point. Its the CUWin at http://cubloc.com/product/05_01.php NOR Am29LV800 NAND 2 x K9F1208 RAM 64MB SDRAM No extra drivers, just the built in S3C2410 LCD, serial, ethernet et. Ethernet is not built into the S3C2410! Best Regards, Martin - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
[U-Boot-Users] [PATCH] IDE: fix bug in reset sequence
According to the ata (ata5) specification the RESET- signal shall be asserted for at least 25 us. Without this patch, the RESET- signal is asserted on some boards for only 1 us (e. g. on the TQM5200). This patch adds a general delay of 25 us to the RESET- signal. Without this patch a Platinum 4 GiB CF card is not recognised properly on boards with a TQM5200 (STK52xx, TB5200). Signed-off-by: Martin Krause [EMAIL PROTECTED] --- common/cmd_ide.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/common/cmd_ide.c b/common/cmd_ide.c index 8ace970..f9cd422 100644 --- a/common/cmd_ide.c +++ b/common/cmd_ide.c @@ -1529,6 +1529,9 @@ static void ide_reset (void) ide_set_reset (1); /* assert reset */ + /* the reset signal shall be asserted for et least 25 us */ + udelay(25); + WATCHDOG_RESET(); #ifdef CFG_PB_12V_ENABLE - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
[U-Boot-Users] [PATCH] TQM5200: fix default IDE reset level
Bevore the first call of ide_reset() the default level of the IDE reset signal on the TQM5200 is low (reset asserted). This patch sets the default value to high (reset not asserted). Currently this patch fixes no real problem, but it is cleaner to assert the reset only on demand, and not permanently. Signed-off-by: Martin Krause [EMAIL PROTECTED] --- board/tqm5200/tqm5200.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/board/tqm5200/tqm5200.c b/board/tqm5200/tqm5200.c index e67145e..3715267 100644 --- a/board/tqm5200/tqm5200.c +++ b/board/tqm5200/tqm5200.c @@ -316,6 +316,9 @@ void init_ide_reset (void) /* Configure PSC1_4 as GPIO output for ATA reset */ *(vu_long *) MPC5XXX_WU_GPIO_ENABLE |= GPIO_PSC1_4; *(vu_long *) MPC5XXX_WU_GPIO_DIR|= GPIO_PSC1_4; + + /* per default the ATA reset is de-asserted */ + *(vu_long *) MPC5XXX_WU_GPIO_DATA_O |= GPIO_PSC1_4; #endif } - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
[U-Boot-Users] Pull request: u-boot-tq-group.git
The following changes since commit 23e20aa6488e6c0622496549861bfdc74108debe: Yuri Tikhonov (1): lwmon5: Fix register test logic to match the specific GDC h/w. are available in the git repository at: git://www.denx.de/git/u-boot-tq-group.git master Martin Krause (1): TQM5200B: update MTD partition layout include/configs/TQM5200.h | 21 - 1 files changed, 16 insertions(+), 5 deletions(-) - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
[U-Boot-Users] [PATCH] TQM5200B: update MTD partition layout
- insert partition for dtb blob to TQM5200B MTD layout - set env variables dependent on the configured board (TQM5200 or TQM5200B) Signed-off-by: Martin Krause [EMAIL PROTECTED] --- include/configs/TQM5200.h | 21 - 1 files changed, 16 insertions(+), 5 deletions(-) diff --git a/include/configs/TQM5200.h b/include/configs/TQM5200.h index 9a0e9b8..b36c826 100644 --- a/include/configs/TQM5200.h +++ b/include/configs/TQM5200.h @@ -252,12 +252,22 @@ setup=tftp 20 cam5200/setup.img; autoscr 20\0 #endif +#if defined(CONFIG_TQM5200_B) +#define ENV_FLASH_LAYOUT \ + fdt_addr=FC10\0 \ + kernel_addr=FC14\0\ + ramdisk_addr=FC60\0 +#else /* !CONFIG_TQM5200_B */ +#define ENV_FLASH_LAYOUT \ + fdt_addr=FC0A\0 \ + kernel_addr=FC0C\0\ + ramdisk_addr=FC30\0 +#endif + #define CONFIG_EXTRA_ENV_SETTINGS \ netdev=eth0\0 \ console=ttyPSC0\0 \ - fdt_addr=FC0A\0 \ - kernel_addr=FC0C\0\ - ramdisk_addr=FC30\0 \ + ENV_FLASH_LAYOUT\ kernel_addr_r=40\0\ fdt_addr_r=60\0 \ rootpath=/opt/eldk/ppc_6xx\0 \ @@ -400,8 +410,9 @@ # if defined(CONFIG_TQM5200_B) # if defined(CFG_LOWBOOT) # define MTDPARTS_DEFAULTmtdparts=TQM5200-0:1m(firmware), \ - 1536k(kernel),\ - 3584k(small-fs), \ + 256k(dtb),\ + 2304k(kernel),\ + 2560k(small-fs), \ 2m(initrd), \ 8m(misc), \ 16m(big-fs) - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
[U-Boot-Users] [PATCH] TQM5200: fix bug in SDRAM initialization code
This patch fixes a bug in the SDRAM initialization code for the TQM5200. The hi_addr bit is now set correctly. Without this patch the hi_addr bit is always set to 1, if the second flash bank is not populated. For other MPC5200 boards a correspondig patch has already been applied some time ago, see commit a63109281ad41b0fb489fdcb901171f76bcdbc2c. Signed-off-by: Martin Krause [EMAIL PROTECTED] --- board/tqm5200/tqm5200.c | 11 +++ 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/board/tqm5200/tqm5200.c b/board/tqm5200/tqm5200.c index 905a043..8c3f701 100644 --- a/board/tqm5200/tqm5200.c +++ b/board/tqm5200/tqm5200.c @@ -155,10 +155,13 @@ long int initdram (int board_type) *(vu_long *)MPC5XXX_SDRAM_CS1CFG = dramsize + 0x001c; /* 512MB */ /* find RAM size using SDRAM CS1 only */ - sdram_start(0); - test1 = get_ram_size((long *)(CFG_SDRAM_BASE + dramsize), 0x2000); - sdram_start(1); - test2 = get_ram_size((long *)(CFG_SDRAM_BASE + dramsize), 0x2000); + if (!dramsize) + sdram_start(0); + test2 = test1 = get_ram_size((long *)(CFG_SDRAM_BASE + dramsize), 0x2000); + if (!dramsize) { + sdram_start(1); + test2 = get_ram_size((long *)(CFG_SDRAM_BASE + dramsize), 0x2000); + } if (test1 test2) { sdram_start(0); dramsize2 = test1; - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
[U-Boot-Users] [PATCH] TQM5200: fix bug in SDRAM initialization code
This patch fixes a bug in the SDRAM initialization code for the TQM5200. The hi_addr bit is now set correctly. Without this patch the hi_addr bit is always set to 1, if the second SDRAM bank is not populated. For other MPC5200 boards a correspondig patch has already been applied some time ago, see commit a63109281ad41b0fb489fdcb901171f76bcdbc2c. Signed-off-by: Martin Krause [EMAIL PROTECTED] -- Forget the first patch please. I confused flash with SDRAM in the comment ... --- board/tqm5200/tqm5200.c | 11 +++ 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/board/tqm5200/tqm5200.c b/board/tqm5200/tqm5200.c index 905a043..8c3f701 100644 --- a/board/tqm5200/tqm5200.c +++ b/board/tqm5200/tqm5200.c @@ -155,10 +155,13 @@ long int initdram (int board_type) *(vu_long *)MPC5XXX_SDRAM_CS1CFG = dramsize + 0x001c; /* 512MB */ /* find RAM size using SDRAM CS1 only */ - sdram_start(0); - test1 = get_ram_size((long *)(CFG_SDRAM_BASE + dramsize), 0x2000); - sdram_start(1); - test2 = get_ram_size((long *)(CFG_SDRAM_BASE + dramsize), 0x2000); + if (!dramsize) + sdram_start(0); + test2 = test1 = get_ram_size((long *)(CFG_SDRAM_BASE + dramsize), 0x2000); + if (!dramsize) { + sdram_start(1); + test2 = get_ram_size((long *)(CFG_SDRAM_BASE + dramsize), 0x2000); + } if (test1 test2) { sdram_start(0); dramsize2 = test1; - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
[U-Boot-Users] [PATCH] TQM5200: use automatic fdt memory fixup
Call fdt_fixup_memory() on the boards TQM5200, TQM5200_B, TQM5200S, TB5200 and TB5200_B to fixup the /memory node with the memory values detected by U-Boot. Signed-off-by: Martin Krause [EMAIL PROTECTED] -- I consider this patch as bugfix, since linux 2.6 will not boot on boards with less SDRAM than the fixed value in the TQM5200 fdt (64 MiB AFAIK) --- board/tqm5200/tqm5200.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/board/tqm5200/tqm5200.c b/board/tqm5200/tqm5200.c index 8c3f701..97e3099 100644 --- a/board/tqm5200/tqm5200.c +++ b/board/tqm5200/tqm5200.c @@ -795,5 +795,6 @@ int board_get_height (void) void ft_board_setup(void *blob, bd_t *bd) { ft_cpu_setup(blob, bd); + fdt_fixup_memory(blob, (u64)bd-bi_memstart, (u64)bd-bi_memsize); } #endif /* defined(CONFIG_OF_LIBFDT) defined(CONFIG_OF_BOARD_SETUP) */ - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
[U-Boot-Users] [PATCH] TQM5200: use automatic fdt memory fixup
Call fdt_fixup_memory() on the boards TQM5200, TQM5200_B, TQM5200S, TB5200 and TB5200_B to fixup the /memory node with the memory values detected by U-Boot. Signed-off-by: Martin Krause [EMAIL PROTECTED] --- I forgot to include the header file. Please ignore the first version of the patch. Not my day ... --- board/tqm5200/tqm5200.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/board/tqm5200/tqm5200.c b/board/tqm5200/tqm5200.c index 8c3f701..33ad2a3 100644 --- a/board/tqm5200/tqm5200.c +++ b/board/tqm5200/tqm5200.c @@ -43,6 +43,10 @@ #include mt48lc16m16a2-75.h #endif +#ifdef CONFIG_OF_LIBFDT +#include fdt_support.h +#endif /* CONFIG_OF_LIBFDT */ + DECLARE_GLOBAL_DATA_PTR; #ifdef CONFIG_PS2MULT @@ -795,5 +799,6 @@ int board_get_height (void) void ft_board_setup(void *blob, bd_t *bd) { ft_cpu_setup(blob, bd); + fdt_fixup_memory(blob, (u64)bd-bi_memstart, (u64)bd-bi_memsize); } #endif /* defined(CONFIG_OF_LIBFDT) defined(CONFIG_OF_BOARD_SETUP) */ - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
Re: [U-Boot-Users] Delete all env vars except read onlys
[EMAIL PROTECTED] wrote on : Uff After a longish discussion with Detlev we came up with a new proposal, which hopefully is acceptable to all. We agreed that a command name like clearenv or scrubenv or similar (which doesn't require any arguments) might be too dangerous for the unexperienced user why randomly types commands just to see what happens. For example, even if you type erase it will not do any damage because arguments are missing - but erase all will blow away most of your flash content without asking. So the idea is to call the new command environment (or short env); usage would be then: = env clear to clear the envrionment (except read-only variables); thsi also allows for pretty useful additional functionality like this: = env default This would be a very nice feature. With this command no knowledge is needed in which sector(s) the environment is stored. This would be very convenient in our production or service department, because all our different boards could be reseted to a known state with the same command. to reset the environment to the (compiled in) default settings. One might even consider something like = env clear all to blow away the whole env, including the read-only variables. Would that be acceptable to everybody? No objections! Best Regards, Martin Krause -- TQ-Systems GmbH Muehlstrasse 2, Gut Delling, D-82229 Seefeld Amtsgericht Muenchen, HRB 105 018, UST-IdNr. DE 811 607 913 Geschaeftsfuehrer: Dipl.-Ing. (FH) Detlef Schneider, Dipl.-Ing. (FH) Ruediger Stahl http://www.tq-group.com - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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] TQM834x: clean up configuration
[EMAIL PROTECTED] wrote on : Get board name consistent with Linux and elsewhere; get rid of local network definitions etc. Signed-off-by: Wolfgang Denk [EMAIL PROTECTED] --- Acked-by: Martin Krause martin.krause at tqs.de I've not tested the patch actually, but the changes are looking reasonable. Best Regards, Martin Krause -- TQ-Systems GmbH Muehlstrasse 2, Gut Delling, D-82229 Seefeld Amtsgericht Muenchen, HRB 105 018, UST-IdNr. DE 811 607 913 Geschaeftsfuehrer: Dipl.-Ing. (FH) Detlef Schneider, Dipl.-Ing. (FH) Ruediger Stahl http://www.tq-group.com - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
Re: [U-Boot-Users] Fix interrupt sub mask on S3C2410, Fix clock calculation for S3C2410 cpu.
Hi Peter, [EMAIL PROTECTED] wrote on : Martin Your patches (slightly amended as per Wolfgangs comments) are available for test from git://linux-arm.org/u-boot-armdev.git#S3C2410 Please confirm that the code runs on whatever S3C boards you have available. I take a look at the patch you applied to your repository. It looks OK. It's a (little) pity, you integrated my three patches into one, because so the commit messages with the patch descriptions got lost. Unfortunately I can't test the patches on real hardware. I do have a board with a S3C2410 CPU (a trab2 board), but the U-Boot for this board is freezed to version 1.1.6. And since I didn't post all patches for this board on the list (because they most propably wont't have gotten applied and I had no time to discuss and resend them), the current U-Boot wont't run on this board. I only posted the bugfix patches, because they may be helpful for others. Under U-Boot 1.1.6 the patches do work very well since nearly a year now on the trab2 board. I see no reason why they shouldn't work under the current U-Boot (if they still aplly cleanly), but I can't test it. Best Regards, Martin Krause -- TQ-Systems GmbH Muehlstrasse 2, Gut Delling, D-82229 Seefeld Amtsgericht Muenchen, HRB 105 018, UST-IdNr. DE 811 607 913 Geschaeftsfuehrer: Dipl.-Ing. (FH) Detlef Schneider, Dipl.-Ing. (FH) Ruediger Stahl http://www.tq-group.com - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users