On 2016-04-24, Rick Thomas wrote: > Any chance I could download a pre-built binary? Just uploaded u-boot 2016.05-rc2 packages to: deb http://cascadia.debian.net/~vagrant/debian UNRELEASED main The u-boot-imx package there worked on my cubox-i4x4, but will almost certainly hang on a cubox-i4pro. It also doesn't seem to boot with firefly-4gb variant. Too experimental for Debian experimental... > Do I understand correctly that this is part of the definition of a > structure that contains memory config parameters and gets passed from > u-boot to the kernel when it gets control? The extent of my understanding is that u-boot configures the ram available that the kernel has access to. At least, that's what I've observed by experimentation on both the cubox-i and firefly boards. > And why is this determined by a compile-time value? Wouldn’t it be > more flexible if the kernel (or u-boot) discovered it at run-time? > For example, by probing successively higher memory locations until it > got a men-fault? Run-time detection would be a lot better, yes. The vendor u-boot does this, but it's non-trivial to forward-port those patches to mainline u-boot, as they have diverged significantly. live well, vagrant > On Apr 22, 2016, at 2:02 PM, Vagrant Cascadian <vagrant@debian.org> wrote: > >> On 2016-04-21, Rick Thomas wrote: >>> On Apr 21, 2016, at 9:04 AM, Vagrant Cascadian <vagrant@debian.org> wrote: >>>> On 2016-04-21, Rick Thomas wrote: >>>>> But if I were using your patched mainline u-boot, I would get a >>>>> different (larger) number (almost, but not quite, the full 4.0GiB)? >>>> >>>> That’s how it's worked for me, yes. >>> >>> Would you be willing to share this modified u-boot with me? I’d like >>> to try it out on my device to see if it’s really an i4pro or a 4x4. >> >> It's a one-line patch against u-boot 2016.03~rc1: >> >> Index: u-boot/board/solidrun/mx6cuboxi/mx6cuboxi.c >> =================================================================== >> --- u-boot.orig/board/solidrun/mx6cuboxi/mx6cuboxi.c >> +++ u-boot/board/solidrun/mx6cuboxi/mx6cuboxi.c >> @@ -563,7 +563,7 @@ static struct mx6_ddr3_cfg mem_ddr_4g = >> .density = 4, >> .width = 16, >> .banks = 8, >> - .rowaddr = 15, >> + .rowaddr = 16, >> .coladdr = 10, >> .pagesz = 2, >> .trcd = 1375, >> >> I haven't tested on a more recent version, but it would probably work as >> well.
Attachment:
signature.asc
Description: PGP signature