Memory map on ARM
I would really love to see the memory map problem on ARM being fixed before Wolfgang makes a new release. The problem is that ARMboot had the malloc area above the relocated bootloader, u-boot has it below.
I have fixed this for my two PXA250 board (CSB226, Innokom) and I have a patch for lib_arm/board.c which was rejected by Wolfgang in.
Now we have the situation that some boards do work with the current code, but don't follow the memory map stated in the README and some others do, but don't work without the patch.
IMHO the correct thing to do is to fix the other ARM boards to use the correct memory map. Wolfgang, what is your position?
Robert
Signature · 5 lines
Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
Pengutronix - Linux Solutions for Science and Industry
Braunschweiger Str. 79, 31134 Hildesheim, Germany
Handelsregister: Amtsgericht Hildesheim, HRA 2686
Phone: +49-5121-28619-0 | Fax: +49-5121-28619-4Quoted 2 lines · In message <[email protected]> you wrote:
I would really love to see the memory map problem on ARM being fixed before Wolfgang makes a new release. The problem is that ARMboot had the
This will not happen. I will release soon, and I will not introduce any bigger architectural changes before.
Quoted 4 lines
malloc area above the relocated bootloader, u-boot has it below.
I have fixed this for my two PXA250 board (CSB226, Innokom) and I have a patch for
lib_arm/board.cwhich was rejected by Wolfgang in.
Only because if did not address the whole problem. To do it right, the whole relocation to RAM part has to be redone, taking into account variable RAM sizes.
Quoted 2 lines
IMHO the correct thing to do is to fix the other ARM boards to use the correct memory map. Wolfgang, what is your position?
See above.
Best regards,
Wolfgang Denk
Signature · 7 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de
The connection between the language in which we think/program and the
problems and solutions we can imagine is very close. For this reason
restricting language features with the intent of eliminating pro-
grammer errors is at best dangerous.
- Bjarne Stroustrup in "The C++ Programming Language"Quoted 2 lines · Wolfgang Denk
This will not happen. I will release soon, and I will not introduce any bigger architectural changes before.
Would you accept a patch with board configuration dependend code for board.c as a workaround solution, just to make the boards work with the release?
Robert
Signature · 5 lines
Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
Pengutronix - Linux Solutions for Science and Industry
Braunschweiger Str. 79, 31134 Hildesheim, Germany
Handelsregister: Amtsgericht Hildesheim, HRA 2686
Phone: +49-5121-28619-0 | Fax: +49-5121-28619-4Quoted 4 lines · In message <[email protected]> you wrote:
Would you accept a patch with board configuration dependend code for
board.cas a workaround solution, just to make the boards work with the release?
The patch I've seen before?
But this does only re-order the position of some memory areas. This should have zero impact on the functioning or non-functioning of the code at all.
Best regards,
Wolfgang Denk
Signature · 5 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de Here is an Appalachian version of management's answer to those who are concerned with the fate of the project: "Don't worry about the mule. Just load the wagon." - Mike Dennison's hillbilly uncle
Quoted 5 lines · Wolfgang Denk
Quoted 3 lines
Would you accept a patch with board configuration dependend code for
board.cas a workaround solution, just to make the boards work with the release?The patch I've seen before?
The only thing I did is to change
mem_malloc_init (_armboot_real_end);
into
mem_malloc_init(_armboot_start - CFG_MALLOC_LEN);
in board.c. Everything else is ok, at least for my ports I don't have do do other changes.
Quoted 3 lines
But this does only re-order the position of some memory areas. This should have zero impact on the functioning or non-functioning of the code at all.
I relocate u-boot to the top of RAM as recommended in the readme, which means that it breaks if mem_malloc_init() wants to initialize the malloc are above _armboot_real_end.
Robert
Signature · 5 lines
Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
Pengutronix - Linux Solutions for Science and Industry
Braunschweiger Str. 79, 31134 Hildesheim, Germany
Handelsregister: Amtsgericht Hildesheim, HRA 2686
Phone: +49-5121-28619-0 | Fax: +49-5121-28619-4Quoted 3 lines
I would really love to see the memory map problem on ARM being fixed before Wolfgang makes a new release. The problem is that ARMboot had the malloc area above the relocated bootloader, u-boot has it below.
What is the exact problem?
I have a PXA250 target as well (I will never contribute it to u-boot because I like to have CVS write access for my sources). It works perfect for what I can see.
Quoted 5 lines · Holger Schurig
What is the exact problem?
I have a PXA250 target as well (I will never contribute it to u-boot because I like to have CVS write access for my sources). It works perfect for what I can see.
Yes, but the memory map which is documented in README is different from what ARMboot implemented. When I started my ports I followed the documentation, so all the other ARM implementations rely on the old scheme and my ports on the new one. Long term Wolfgang is surely right when he says that the code has to be cleaned up and unified; I suspect that most of the stuff in lib_[arm|ppc|...] can be unified. But for today's release it would be nice to have a quick fix which makes the boards at least work without a patch.
Robert
Signature · 5 lines
Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
Pengutronix - Linux Solutions for Science and Industry
Braunschweiger Str. 79, 31134 Hildesheim, Germany
Handelsregister: Amtsgericht Hildesheim, HRA 2686
Phone: +49-5121-28619-0 | Fax: +49-5121-28619-4