* [U-Boot] [PATCH v2] mx28evk: Scan only first 128MB of DRAM to avoid memory wraparound
@ 2012-05-12 17:17 Fabio Estevam
2012-05-12 21:24 ` Wolfgang Denk
0 siblings, 1 reply; 7+ messages in thread
From: Fabio Estevam @ 2012-05-12 17:17 UTC (permalink / raw)
To: u-boot
From: Fabio Estevam <fabio.estevam@freescale.com>
Scan only first 128MB of DRAM to avoid memory wraparound.
This fixes mx28evk boot and it follows the same idea of commit
19a2066b57 (M28: Scan only first 512 MB of DRAM to avoid memory wraparound)
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
Change since v1:
- Set the RAM size as 128MB.
include/configs/mx28evk.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/include/configs/mx28evk.h b/include/configs/mx28evk.h
index 0c18e50..41037fc 100644
--- a/include/configs/mx28evk.h
+++ b/include/configs/mx28evk.h
@@ -75,7 +75,7 @@
*/
#define CONFIG_NR_DRAM_BANKS 1 /* 1 bank of DRAM */
#define PHYS_SDRAM_1 0x40000000 /* Base address */
-#define PHYS_SDRAM_1_SIZE 0x40000000 /* Max 1 GB RAM */
+#define PHYS_SDRAM_1_SIZE 0x08000000 /* 128MB RAM */
#define CONFIG_STACKSIZE (128 * 1024) /* 128 KB stack */
#define CONFIG_SYS_MALLOC_LEN 0x00400000 /* 4 MB for malloc */
#define CONFIG_SYS_MEMTEST_START 0x40000000 /* Memtest start adr */
--
1.7.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [U-Boot] [PATCH v2] mx28evk: Scan only first 128MB of DRAM to avoid memory wraparound
2012-05-12 17:17 [U-Boot] [PATCH v2] mx28evk: Scan only first 128MB of DRAM to avoid memory wraparound Fabio Estevam
@ 2012-05-12 21:24 ` Wolfgang Denk
2012-05-12 21:41 ` Fabio Estevam
0 siblings, 1 reply; 7+ messages in thread
From: Wolfgang Denk @ 2012-05-12 21:24 UTC (permalink / raw)
To: u-boot
Dear Fabio Estevam,
In message <1336843047-27479-1-git-send-email-festevam@gmail.com> you wrote:
> From: Fabio Estevam <fabio.estevam@freescale.com>
>
> Scan only first 128MB of DRAM to avoid memory wraparound.
>
> This fixes mx28evk boot and it follows the same idea of commit
> 19a2066b57 (M28: Scan only first 512 MB of DRAM to avoid memory wraparound)
>
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
> ---
> Change since v1:
> - Set the RAM size as 128MB.
I think this is the wrong approach. We should let get_ram_size() do
it's job. Or can you explain why it isn't working for you?
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: wd at denx.de
It would seem that evil retreats when forcibly confronted
-- Yarnek of Excalbia, "The Savage Curtain", stardate 5906.5
^ permalink raw reply [flat|nested] 7+ messages in thread
* [U-Boot] [PATCH v2] mx28evk: Scan only first 128MB of DRAM to avoid memory wraparound
2012-05-12 21:24 ` Wolfgang Denk
@ 2012-05-12 21:41 ` Fabio Estevam
2012-05-29 20:39 ` Wolfgang Denk
0 siblings, 1 reply; 7+ messages in thread
From: Fabio Estevam @ 2012-05-12 21:41 UTC (permalink / raw)
To: u-boot
Hi Wolfgang,
On Sat, May 12, 2012 at 6:24 PM, Wolfgang Denk <wd@denx.de> wrote:
> I think this is the wrong approach. ?We should let get_ram_size() do
> it's job. ?Or can you explain why it isn't working for you?
I haven't done a deeper investigation yet, but with current u-boot-imx
I cannot get mx28evk to boot.
If I revert this commit:
commit acc4959fc1b3e61beb372f686595eb2f90240c92
Author: Marek Vasut <marex@denx.de>
Date: Thu May 3 05:47:18 2012 +0000
Revert "i.MX28: Enable additional DRAM address bits"
,then it boots fine.
I followed then the same approach of commit:
commit 19a2066b578f826c7bcb2b96a90434382e8ec8f3
Author: Marek Vasut <marex@denx.de>
Date: Thu May 3 05:47:19 2012 +0000
M28: Scan only first 512 MB of DRAM to avoid memory wraparound
,that fixed the boot.
Also, on the other i.MX boards we put the total size of RAM in the
config files, and I did the same here with this patch.
If anyone has better suggestion on how to better handle this, please let know.
Regards,
Fabio Estevam
^ permalink raw reply [flat|nested] 7+ messages in thread* [U-Boot] [PATCH v2] mx28evk: Scan only first 128MB of DRAM to avoid memory wraparound
2012-05-12 21:41 ` Fabio Estevam
@ 2012-05-29 20:39 ` Wolfgang Denk
2012-05-29 20:43 ` Marek Vasut
0 siblings, 1 reply; 7+ messages in thread
From: Wolfgang Denk @ 2012-05-29 20:39 UTC (permalink / raw)
To: u-boot
Dear Fabio Estevam,
In message <CAOMZO5AoXTbc1ELHoPLoicuwcf9rSuZZLUcKdyzWwyRfbDHC8Q@mail.gmail.com> you wrote:
>
> Also, on the other i.MX boards we put the total size of RAM in the
> config files, and I did the same here with this patch.
This is a really bad habit that I would like to see eradicated rather
sooner than later.
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: wd at denx.de
Use the Force, Luke.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [U-Boot] [PATCH v2] mx28evk: Scan only first 128MB of DRAM to avoid memory wraparound
2012-05-29 20:39 ` Wolfgang Denk
@ 2012-05-29 20:43 ` Marek Vasut
2012-05-29 23:43 ` Fabio Estevam
0 siblings, 1 reply; 7+ messages in thread
From: Marek Vasut @ 2012-05-29 20:43 UTC (permalink / raw)
To: u-boot
Dear Wolfgang Denk,
> Dear Fabio Estevam,
>
> In message
<CAOMZO5AoXTbc1ELHoPLoicuwcf9rSuZZLUcKdyzWwyRfbDHC8Q@mail.gmail.com> you wrote:
> > Also, on the other i.MX boards we put the total size of RAM in the
> > config files, and I did the same here with this patch.
>
> This is a really bad habit that I would like to see eradicated rather
> sooner than later.
I've been thinking about it, maybe you can use the memory configuration
adjustment function -- mx28_adjust_memory_params(). You shouldn't have the
wraparound there then and you should be able to scan whole 1 gig of DRAM :)
> Best regards,
>
> Wolfgang Denk
Best regards,
Marek Vasut
^ permalink raw reply [flat|nested] 7+ messages in thread
* [U-Boot] [PATCH v2] mx28evk: Scan only first 128MB of DRAM to avoid memory wraparound
2012-05-29 20:43 ` Marek Vasut
@ 2012-05-29 23:43 ` Fabio Estevam
2012-05-30 5:44 ` Marek Vasut
0 siblings, 1 reply; 7+ messages in thread
From: Fabio Estevam @ 2012-05-29 23:43 UTC (permalink / raw)
To: u-boot
Hi Marek,
On Tue, May 29, 2012 at 5:43 PM, Marek Vasut <marex@denx.de> wrote:
> I've been thinking about it, maybe you can use the memory configuration
> adjustment function -- mx28_adjust_memory_params(). You shouldn't have the
Care to send a patch to fix this?
As the patch in this thread will not be accepted, mx28evk does not
boot in u-boot-imx anymore.
> wraparound there then and you should be able to scan whole 1 gig of DRAM :)
Just curious: why the value of 1GB was chosen?
Regards,
Fabio Estevam
^ permalink raw reply [flat|nested] 7+ messages in thread
* [U-Boot] [PATCH v2] mx28evk: Scan only first 128MB of DRAM to avoid memory wraparound
2012-05-29 23:43 ` Fabio Estevam
@ 2012-05-30 5:44 ` Marek Vasut
0 siblings, 0 replies; 7+ messages in thread
From: Marek Vasut @ 2012-05-30 5:44 UTC (permalink / raw)
To: u-boot
Dear Fabio Estevam,
> Hi Marek,
>
> On Tue, May 29, 2012 at 5:43 PM, Marek Vasut <marex@denx.de> wrote:
> > I've been thinking about it, maybe you can use the memory configuration
> > adjustment function -- mx28_adjust_memory_params(). You shouldn't have
> > the
>
> Care to send a patch to fix this?
I thought I did ... lousy me, sent ;-)
>
> As the patch in this thread will not be accepted, mx28evk does not
> boot in u-boot-imx anymore.
>
> > wraparound there then and you should be able to scan whole 1 gig of DRAM
> > :)
>
> Just curious: why the value of 1GB was chosen?
That's the maximum amount of DRAM MX28 can handle.
>
> Regards,
>
> Fabio Estevam
Best regards,
Marek Vasut
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2012-05-30 5:44 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-12 17:17 [U-Boot] [PATCH v2] mx28evk: Scan only first 128MB of DRAM to avoid memory wraparound Fabio Estevam
2012-05-12 21:24 ` Wolfgang Denk
2012-05-12 21:41 ` Fabio Estevam
2012-05-29 20:39 ` Wolfgang Denk
2012-05-29 20:43 ` Marek Vasut
2012-05-29 23:43 ` Fabio Estevam
2012-05-30 5:44 ` Marek Vasut
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox