Closed YuukiHogo closed 12 years ago
tis 2012-09-18 klockan 08:52 -0700 skrev YuukiHogo:
What correct way to configure uboot for a board with 4x256MiB banks?
That's actually one bank of 4 chips.
There is two parts that need to fit together
a) The dram controller initialization, matching how the DRAM is wired on your board.
b) bd->bi_dram[] bank configuration.
The details of 'a' is in dram-sun?i.c.
The details of 'b' is in the board sources.
For 'b' you have three options
a) Ignore it, and use a kernel that builds it's own memory info by probing the DRAM controller (ugly, but easy)
b) Configure it as one large 1GB bank.
c) Configure is as one 512-64MB bank and one 512MB bank, for the memory layout expected by MALI.
Regards Henrik
Thanks. I configured it as 1x1GiB bank, but dunno how to check/configure wiring. It seems too deep for me.
Ugly kernel-dram-detect way is unstable - different boots show different dram configurations.
Memory configuration have changed significantly, and is now easier to set up. Please see current sunxi branch where there is board/allwinner/
What correct way to configure uboot
sun4i
branch for a board with 4x256MiB banks? Is this correct?include/configs/sun4i.h
:board/allwinner/a10-evb/a10-evb.c
: