TQM85xx: enable partition support, sort commands
PATCH 1/1 TQM85xx: enable partition support, sort commands
--- include/configs/TQM85xx.h | 18 +++++++++++------- 1 files changed, 11 insertions(+), 7 deletions(-)
include/configs/TQM85xx.h +11 -7
@@ -562,7 +562,6 @@* Use NAND-FLash as JFFS2 device */ #define CONFIG_CMD_NAND -#define CONFIG_CMD_JFFS2 #define CONFIG_JFFS2_NAND 1
@@ -584,17 +583,19 @@*/ #include <config_cmd_default.h> -#define CONFIG_CMD_PING -#define CONFIG_CMD_I2C -#define CONFIG_CMD_DHCP -#define CONFIG_CMD_NFS -#define CONFIG_CMD_SNTP #ifndef CONFIG_TQM8548_AG #define CONFIG_CMD_DATE #endif -#define CONFIG_CMD_EEPROM +#define CONFIG_CMD_DHCP #define CONFIG_CMD_DTT +#define CONFIG_CMD_EEPROM +#define CONFIG_CMD_I2C +#define CONFIG_CMD_JFFS2 #define CONFIG_CMD_MII +#define CONFIG_CMD_MTDPARTS +#define CONFIG_CMD_NFS +#define CONFIG_CMD_PING +#define CONFIG_CMD_SNTP #if defined(CONFIG_PCI )#define CONFIG_CMD_PCI
@@ -602,6 +603,9 @@#undef CONFIG_WATCHDOG/* watchdog disabled */ +#define CONFIG_MAC_PARTITION +#define CONFIG_DOS_PARTITION +/* * Miscellaneous configurable options */
Signature · 1 line
1.6.0.6
Kumar Gala
AppliedPATCH 1/1 TQM85xx: enable partition support, sort commands
Quoted 4 lines · Wolfgang Denk
Signed-off-by Wolfgang Denk <[email protected]>---
include/configs/TQM85xx.h| 18 +++++++++++-------1 files changed, 11 insertions(+), 7 deletions(-)
applied to 85xx.
- k
PATCH 1/1 TQM85xx: enable partition support, sort commands
In reply to Wolfgang DenkQuoted 4 lines · Wolfgang Denk
Signed-off-by Wolfgang Denk <[email protected]>---
include/configs/TQM85xx.h| 18 +++++++++++-------1 files changed, 11 insertions(+), 7 deletions(-)
This breaks building of TQM85xx boards for me.
- k
PATCH 1/1 TQM85xx: enable partition support, sort commands
Dear Kumar Gala,
Quoted 9 lines · In message <[email protected]> you wrote:
Quoted 4 lines · Wolfgang Denk
Signed-off-by Wolfgang Denk <[email protected]>---
include/configs/TQM85xx.h| 18 +++++++++++-------1 files changed, 11 insertions(+), 7 deletions(-)This breaks building of TQM85xx boards for me.
Confirmed, will post a new patch version.
Best regards,
Wolfgang Denk
Signature · 5 lines
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: wd at denx.de They say a little knowledge is a dangerous thing, but it is not one half so bad as a lot of ignorance. - Terry Pratchett, _Equal Rites_
PATCH v2 1/1 TQM85xx: enable partition support, sort commands
In reply to Wolfgang Denk---
v2: Fix building for TQM8548_BE
On TQM8548_BE, building failed like that:
Configuring for TQM85xx board...
common/libcommon.a(cmd_mtdparts.o): In function `part_validate_eraseblock':
/home/wd/git/u-boot/work/common/cmd_mtdparts.c:316: undefined reference to get_mtd_device_nm' common/libcommon.a(cmd_mtdparts.o): In function mtd_device_validate':
/home/wd/git/u-boot/work/common/cmd_mtdparts.c:706: undefined reference to `get_mtd_device_nm'
make: *** [u-boot] Error 1
This was because CONFIG_CMD_MTDPARTS was defined after it was used. Move the part that uses it after the #define.
include/configs/TQM85xx.h | 48 ++++++++++++++++++++++++-------------------- 1 files changed, 26 insertions(+), 22 deletions(-)
include/configs/TQM85xx.h +26 -22
@@ -557,12 +557,34 @@#define CONFIG_BOOTP_GATEWAY #define CONFIG_BOOTP_HOSTNAME +/* +* Command line configuration. +*/ +#include <config_cmd_default.h> + +#ifndef CONFIG_TQM8548_AG +#define CONFIG_CMD_DATE +#endif +#define CONFIG_CMD_DHCP +#define CONFIG_CMD_DTT +#define CONFIG_CMD_EEPROM +#define CONFIG_CMD_I2C +#define CONFIG_CMD_JFFS2 +#define CONFIG_CMD_MII +#define CONFIG_CMD_MTDPARTS +#define CONFIG_CMD_NFS +#define CONFIG_CMD_PING +#define CONFIG_CMD_SNTP + +#if defined(CONFIG_PCI ) +#define CONFIG_CMD_PCI +#endif +#ifdef CONFIG_NAND /* * Use NAND-FLash as JFFS2 device */ #define CONFIG_CMD_NAND -#define CONFIG_CMD_JFFS2 #define CONFIG_JFFS2_NAND 1
@@ -579,29 +601,11 @@#endif /* CONFIG_NAND */ -/* -* Command line configuration. -*/ -#include <config_cmd_default.h> - -#define CONFIG_CMD_PING -#define CONFIG_CMD_I2C -#define CONFIG_CMD_DHCP -#define CONFIG_CMD_NFS -#define CONFIG_CMD_SNTP -#ifndef CONFIG_TQM8548_AG -#define CONFIG_CMD_DATE -#endif -#define CONFIG_CMD_EEPROM -#define CONFIG_CMD_DTT -#define CONFIG_CMD_MII - -#if defined(CONFIG_PCI ) -#define CONFIG_CMD_PCI -#endif -#undef CONFIG_WATCHDOG/* watchdog disabled */ +#define CONFIG_MAC_PARTITION +#define CONFIG_DOS_PARTITION +/* * Miscellaneous configurable options */
Signature · 1 line
1.6.0.6
PATCH v3 1/1 TQM85xx: enable partition support, sort commands
In reply to Wolfgang Denk---
v2: Fix building for TQM8548_BE
On TQM8548_BE, building failed like that:
Configuring for TQM85xx board...
common/libcommon.a(cmd_mtdparts.o): In function `part_validate_eraseblock':
/home/wd/git/u-boot/work/common/cmd_mtdparts.c:316: undefined reference to get_mtd_device_nm' common/libcommon.a(cmd_mtdparts.o): In function mtd_device_validate':
/home/wd/git/u-boot/work/common/cmd_mtdparts.c:706: undefined reference to `get_mtd_device_nm'
make: *** [u-boot] Error 1
This was because CONFIG_CMD_MTDPARTS was defined after it was used. Move the part that uses it after the #define.
v3: Fix "undefined reference to `get_mtd_device_nm'" errors for
non-8548 boards; build-tested with ELDK 4.2 on TQM8540, TQM8541,
TQM8548, TQM8548_AG, TQM8548_BE, TQM8555 and TQM8560include/configs/TQM85xx.h | 51 ++++++++++++++++++++++++-------------------- 1 files changed, 28 insertions(+), 23 deletions(-)
include/configs/TQM85xx.h +28 -23
@@ -557,17 +557,40 @@#define CONFIG_BOOTP_GATEWAY #define CONFIG_BOOTP_HOSTNAME +/* +* Command line configuration. +*/ +#include <config_cmd_default.h> + +#ifndef CONFIG_TQM8548_AG +#define CONFIG_CMD_DATE +#endif +#define CONFIG_CMD_DHCP +#define CONFIG_CMD_DTT +#define CONFIG_CMD_EEPROM +#define CONFIG_CMD_I2C +#define CONFIG_CMD_JFFS2 +#define CONFIG_CMD_MII +#define CONFIG_CMD_MTDPARTS +#define CONFIG_CMD_NFS +#define CONFIG_CMD_PING +#define CONFIG_CMD_SNTP + +#if defined(CONFIG_PCI ) +#define CONFIG_CMD_PCI +#endif + +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ +#ifdef CONFIG_NAND /* * Use NAND-FLash as JFFS2 device */ #define CONFIG_CMD_NAND -#define CONFIG_CMD_JFFS2 #define CONFIG_JFFS2_NAND 1#ifdef CONFIG_CMD_MTDPARTS -#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ #define CONFIG_FLASH_CFI_MTD #define MTDIDS_DEFAULT "nand0=TQM85xx-nand"#define MTDPARTS_DEFAULT "mtdparts=TQM85xx-nand:-"
@@ -579,29 +602,11 @@#endif /* CONFIG_NAND */ -/* -* Command line configuration. -*/ -#include <config_cmd_default.h> - -#define CONFIG_CMD_PING -#define CONFIG_CMD_I2C -#define CONFIG_CMD_DHCP -#define CONFIG_CMD_NFS -#define CONFIG_CMD_SNTP -#ifndef CONFIG_TQM8548_AG -#define CONFIG_CMD_DATE -#endif -#define CONFIG_CMD_EEPROM -#define CONFIG_CMD_DTT -#define CONFIG_CMD_MII - -#if defined(CONFIG_PCI ) -#define CONFIG_CMD_PCI -#endif -#undef CONFIG_WATCHDOG/* watchdog disabled */ +#define CONFIG_MAC_PARTITION +#define CONFIG_DOS_PARTITION +/* * Miscellaneous configurable options */
Signature · 1 line
1.6.0.6
PATCH v3 1/1 TQM85xx: enable partition support, sort commands
Quoted 23 lines · Wolfgang Denk
Signed-off-by Wolfgang Denk <[email protected]>---
v2: Fix building forTQM8548_BEOn
TQM8548_BE, building failed like that:
Configuring for TQM85xx board... common/libcommon.a(cmd_mtdparts.o): In function
`part_validate_eraseblock':
/home/wd/git/u-boot/work/common/cmd_mtdparts.c:316: undefined
reference to `get_mtd_device_nm'
common/libcommon.a(cmd_mtdparts.o): In function
`mtd_device_validate':
/home/wd/git/u-boot/work/common/cmd_mtdparts.c:706: undefined
reference to `get_mtd_device_nm'make: *** [u-boot] Error 1This was because
CONFIG_CMD_MTDPARTSwas defined after it was used. Move the part that uses it after the #define.
v3: Fix "undefined reference to `get_mtd_device_nm'" errors for
non-8548 boards; build-tested with ELDK 4.2 on TQM8540, TQM8541, TQM8548,TQM8548_AG,TQM8548_BE, TQM8555 and TQM8560
Quoted 3 lines
include/configs/TQM85xx.h| 51 +++++++++++++++++++++++
+--------------------1 files changed, 28 insertions(+), 23 deletions(-)
Did this build ok w/o any warnings on TQM8540?
I'm seeing:
[galak at komodo u-boot-85xx]$ ./MAKEALL TQM8540
... TQM8540 (MPC8540)
Configuring for TQM85xx board... /opt/eldk/4.2/ppc-linux-x86/usr/bin/ppc_85xxDP-ld: u-boot:
section .text lma 0xfffc0000 overlaps previous sections /opt/eldk/4.2/ppc-linux-x86/usr/bin/ppc_85xxDP-ld: u-boot:
section .rodata lma 0xffff13a4 overlaps previous sections /opt/eldk/4.2/ppc-linux-x86/usr/bin/ppc_85xxDP-ld: u-boot:
section .reloc lma 0xffffc400 overlaps previous sections /opt/eldk/4.2/ppc-linux-x86/usr/bin/ppc_85xxDP-ld: u-boot:
section .data lma 0xffffdc30 overlaps previous sections /opt/eldk/4.2/ppc-linux-x86/usr/bin/ppc_85xxDP-ld: u-boot:
section .data.rel.ro.local lma 0xffffe964 overlaps previous sections /opt/eldk/4.2/ppc-linux-x86/usr/bin/ppc_85xxDP-ld: u-boot:
section .data.rel lma 0xffffe9e4 overlaps previous sections /opt/eldk/4.2/ppc-linux-x86/usr/bin/ppc_85xxDP-ld: u-boot:
section .data.rel.local lma 0xfffff380 overlaps previous sections
text data bss dec hex filename
247104 16992 35304 299400 49188 ./u-boot
Which effective says to me we've run out of space in the image.
- k
PATCH v3 1/1 TQM85xx: enable partition support, sort commands
Dear Kumar Gala,
Quoted 2 lines · In message <[email protected]> you wrote:
Did this build ok w/o any warnings on TQM8540?
No, I'm getting the section overlaps warnings.
Quoted 1 line
I'm seeing:
...
Quoted 1 line
Which effective says to me we've run out of space in the image.
I see this, too.
It's a problem that exists independent of this patch, you get the same errors before. The problems are caused by your commit ec79d33 ("85xx:
Move to a common linker script").
I reported this problem before, but it seems you missed that, see:
http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/65788/focus=67568
I hoped you would fix this problem (or we can revert commit ec79d33?)
Best regards,
Wolfgang Denk
Signature · 5 lines
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: wd at denx.de
Unser Kopf ist rund, damit das Denken die Richtung wechseln kann.
-- Francis PicabiaPATCH v3 1/1 TQM85xx: enable partition support, sort commands
Quoted 19 lines · Wolfgang Denk
Dear Kumar Gala,
In message <83723583-5E4B-4A14-
Quoted 2 lines · BF3A-2CDD4478EEE0 at kernel.crashing.org> you wrote:
Did this build ok w/o any warnings on TQM8540?
No, I'm getting the section overlaps warnings.
Quoted 1 line
I'm seeing:
...
Quoted 1 line
Which effective says to me we've run out of space in the image.
I see this, too.
It's a problem that exists independent of this patch, you get the same errors before. The problems are caused by your commit ec79d33 ("85xx:
Move to a common linker script").
Quoted 5 lines
I reported this problem before, but it seems you missed that, see:
http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/65788/focus=67568I hoped you would fix this problem (or we can revert commit ec79d33?)
Ok. I think we are see two issues interact.
I've just sent a pull request w/the RESET_VECTOR_ADDRESS fix that should address the linker script issue. These seems to build cleanly on all 85xx platforms w/ELDK4.2 for me.
Now if you apply the TQM85xx.h on top of that you will see that the enabling of new features causes the size to increase beyond what is allocated for TQM8540.
- k
PATCH v3 1/1 TQM85xx: enable partition support, sort commands
Dear Kumar Gala,
Quoted 13 lines · In message <[email protected]> you wrote:
Quoted 10 lines
It's a problem that exists independent of this patch, you get the same errors before. The problems are caused by your commit ec79d33 ("85xx:
Move to a common linker script").I reported this problem before, but it seems you missed that, see:
http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/65788/focus=67568I hoped you would fix this problem (or we can revert commit ec79d33?)
Ok. I think we are see two issues interact.
Quoted 7 lines
I've just sent a pull request w/the
RESET_VECTOR_ADDRESSfix that should address the linker script issue. These seems to build cleanly on all 85xx platforms w/ELDK4.2 for me.Now if you apply the
TQM85xx.hon top of that you will see that the enabling of new features causes the size to increase beyond what is allocated for TQM8540.
Maybe. But this is just another manifestation of the original problem:
without commit ec79d33 we didn't need the RESET_VECTOR_ADDRESS stuff at all, and an image size of 256 kB was sufficient without and with the "TQM85xx: enable partition suppor" patch applied.
Now, after commit ec79d33 (which needed to be fixed by the RESET_VECTOR_ADDRESS stuff in the first place), we suddenly need more than 256 kB.
This obviously means that commit ec79d33 introduced changes to the image layout that make it bigger.
I consider this a bug in commit ec79d33. I don't want to waste more space than needed.
Best regards,
Wolfgang Denk
Signature · 5 lines
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: wd at denx.de
A committee is a group that keeps the minutes and loses hours.
-- Milton BerlePATCH v3 1/1 TQM85xx: enable partition support, sort commands
Quoted 37 lines · Wolfgang Denk
Dear Kumar Gala,
In message <D09E46D6-37C0-44E4-
Quoted 16 lines · A7E9-4042BCF63B37 at kernel.crashing.org> you wrote:
Quoted 7 lines
It's a problem that exists independent of this patch, you get the same
errors before. The problems are caused by your commit ec79d33 ("85xx:
Move to a common linker script").Quoted 6 lines
I reported this problem before, but it seems you missed that, see:
http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/65788/focus=67568I hoped you would fix this problem (or we can revert commit ec79d33?)
Ok. I think we are see two issues interact.
Quoted 7 lines
I've just sent a pull request w/the
RESET_VECTOR_ADDRESSfix that should address the linker script issue. These seems to build cleanly on all 85xx platforms w/ELDK4.2 for me.Now if you apply the
TQM85xx.hon top of that you will see that the enabling of new features causes the size to increase beyond what is allocated for TQM8540.Maybe. But this is just another manifestation of the original problem:
without commit ec79d33 we didn't need theRESET_VECTOR_ADDRESSstuff at all, and an image size of 256 kB was sufficient without and with the "TQM85xx: enable partition suppor" patch applied.Now, after commit ec79d33 (which needed to be fixed by the
RESET_VECTOR_ADDRESSstuff in the first place), we suddenly need more than 256 kB.
Quoted 5 lines
This obviously means that commit ec79d33 introduced changes to the image layout that make it bigger.
I consider this a bug in commit ec79d33. I don't want to waste more space than needed.
I don't agree. If I revert both commits and apply the TQM config.h update I see build failures.
I've posted a 'tqm-test' branch of the mpc85xx tree that does just that. I see the following:
[galak at komodo u-boot-85xx]$ ./MAKEALL TQM8540
... TQM8540 (MPC8540)
Configuring for TQM85xx board... /opt/eldk/4.2/ppc-linux-x86/usr/bin/ppc_85xxDP-ld: section .bootpg [fffff000 -> fffff1df] overlaps section .data.rel.local [ffffe964 -> fffff6a7] /opt/eldk/4.2/ppc-linux-x86/usr/bin/ppc_85xxDP-ld: u-boot:
section .bootpg lma 0xfffff000 overlaps previous sections /opt/eldk/4.2/ppc-linux-x86/usr/bin/ppc_85xxDP-ld: u-boot:
section .data.rel.ro.local lma 0xfffff6a8 overlaps previous sections /opt/eldk/4.2/ppc-linux-x86/usr/bin/ppc_85xxDP-ld: u-boot:
section .data.rel lma 0xfffff728 overlaps previous sections
make: *** [u-boot] Error 1 /opt/eldk/4.2/ppc-linux-x86/usr/bin/ppc_85xxDP-size: './u-boot': No such file
- k
PATCH v3 1/1 TQM85xx: enable partition support, sort commands
Quoted 34 lines
Quoted 22 lines
Quoted 11 lines
Ok. I think we are see two issues interact.
I've just sent a pull request w/the
RESET_VECTOR_ADDRESSfix that should address the linker script issue. These seems to build cleanly
on all 85xx platforms w/ELDK4.2 for me.Now if you apply the
TQM85xx.hon top of that you will see that the enabling of new features causes the size to increase beyond what is allocated for TQM8540.Maybe. But this is just another manifestation of the original problem:
without commit ec79d33 we didn't need theRESET_VECTOR_ADDRESSstuff at all, and an image size of 256 kB was sufficient without and with the "TQM85xx: enable partition suppor" patch applied.Now, after commit ec79d33 (which needed to be fixed by the
RESET_VECTOR_ADDRESSstuff in the first place), we suddenly need more than 256 kB.Quoted 5 lines
This obviously means that commit ec79d33 introduced changes to the image layout that make it bigger.
I consider this a bug in commit ec79d33. I don't want to waste more space than needed.
I don't agree. If I revert both commits and apply the TQM
config.hupdate I see build failures.I've posted a 'tqm-test' branch of the mpc85xx tree that does just that. I see the following:
Quoted 15 lines
[galak at komodo u-boot-85xx]$ ./MAKEALL TQM8540
... TQM8540 (MPC8540)
Configuring for TQM85xx board.../opt/eldk/4.2/ppc-linux-x86/usr/bin/ppc_85xxDP-ld: section .bootpg [fffff000->fffff1df] overlaps section .data.rel.local [ffffe964->fffff6a7]/opt/eldk/4.2/ppc-linux-x86/usr/bin/ppc_85xxDP-ld: u-boot:
section .bootpg lma0xfffff000overlaps previous sections/opt/eldk/4.2/ppc-linux-x86/usr/bin/ppc_85xxDP-ld: u-boot:
section .data.rel.ro.local lma0xfffff6a8overlaps previous sections/opt/eldk/4.2/ppc-linux-x86/usr/bin/ppc_85xxDP-ld: u-boot:
section .data.rel lma0xfffff728overlaps previous sections
make: *** [u-boot] Error 1/opt/eldk/4.2/ppc-linux-x86/usr/bin/ppc_85xxDP-size: './u-boot': No such file
Wolfgang,
Any update on this?
- k
PATCH v3 1/1 TQM85xx: enable partition support, sort commands
Dear Kumar Gala,
Quoted 2 lines · In message <[email protected]> you wrote:
Any update on this?
Not yet, got other, more pressing work to do. Sorry. Will look into this ASAP.
Best regards,
Wolfgang Denk
Signature · 4 lines
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: wd at denx.de Don't hit a man when he's down - kick him; it's easier.
PATCH v3 1/1 TQM85xx: enable partition support, sort commands
In reply to Wolfgang DenkQuoted 23 lines · Wolfgang Denk
Signed-off-by Wolfgang Denk <[email protected]>---
v2: Fix building forTQM8548_BEOn
TQM8548_BE, building failed like that:
Configuring for TQM85xx board... common/libcommon.a(cmd_mtdparts.o): In function
`part_validate_eraseblock':
/home/wd/git/u-boot/work/common/cmd_mtdparts.c:316: undefined
reference to `get_mtd_device_nm'
common/libcommon.a(cmd_mtdparts.o): In function
`mtd_device_validate':
/home/wd/git/u-boot/work/common/cmd_mtdparts.c:706: undefined
reference to `get_mtd_device_nm'make: *** [u-boot] Error 1This was because
CONFIG_CMD_MTDPARTSwas defined after it was used. Move the part that uses it after the #define.
v3: Fix "undefined reference to `get_mtd_device_nm'" errors for
non-8548 boards; build-tested with ELDK 4.2 on TQM8540, TQM8541, TQM8548,TQM8548_AG,TQM8548_BE, TQM8555 and TQM8560
Quoted 3 lines
include/configs/TQM85xx.h| 51 +++++++++++++++++++++++
+--------------------1 files changed, 28 insertions(+), 23 deletions(-)
We never resolved this.
- k
PATCH v3 1/1 TQM85xx: enable partition support, sort commands
Dear Kumar Gala,
Quoted 2 lines · In message <[email protected]> you wrote:
We never resolved this.
Right. Still on my list. Sorry - I hope I can find a little time this week.
Best regards,
Wolfgang Denk
Signature · 5 lines
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: wd at denx.de Murder is contrary to the laws of man and God. -- M-5 Computer, "The Ultimate Computer", stardate 4731.3