10 Apr, 2020

4 commits

  • It has been noticed on MT7628/88 platforms, that booting the RAM image
    does not work reliably. Sometimes it works and sometimes not. Debugging
    showed that this "might" be a cache related issue as very strange
    errors occurred (e.g. output corrupted etc).

    This patch adds a cache flush for the complete SDRAM area to the go cmd
    before jumping to the entry point for the MIPS architecture. The
    complete area is flushed as we don't know at this point, how big the
    area of the "application" really is.

    Signed-off-by: Stefan Roese
    Reviewed-by: Daniel Schwierzeck
    Tested-by: Mauro Condarelli
    Cc: Daniel Schwierzeck
    Cc: Mauro Condarelli
    Cc: Weijie Gao

    Stefan Roese
     
  • This patch fixes an stability issue seen on some vcoreiii targets,
    which was root caused to a cache inconsistency situation.

    The inconsistency was caused by having kuseg pointing to NOR area but
    used as a stack/gd/heap area during initialization, while only
    relatively late remapping the RAM area into kuseg position.

    The fix is to initialize the DDR right after the TLB setup, and then
    remapping it into position before gd/stack/heap usage.

    Reported-by: Ramin Seyed-Moussavi
    Reviewed-by: Alexandre Belloni
    Reviewed-by: Horatiu Vultur
    Signed-off-by: Lars Povlsen

    Lars Povlsen
     
  • Allow SoC or board layers with reconfigurable cpu clocks
    capabilties to do implementation specific lookups and service
    get_tbclk() requests.

    Signed-off-by: Alex Nemirovsky

    Alex Nemirovsky
     
  • Useful in custom HW designs which have a need to flush dcache
    range in a completely non standard way.

    Signed-off-by: Alex Nemirovsky

    Alex Nemirovsky
     

03 Apr, 2020

1 commit

  • Commit f4dc714aaa2d ("arm64: Turn u-boot.bin back into an ELF file after
    relocate-rela")
    introduce REMAKE_ELF option to recreate u-boot.elf from u-boot ->
    u-boot.bin + DT -> u-boot.elf.

    The best is to ilustrate it from make V=1 output
    cat u-boot-nodtb.bin dts/dt.dtb > u-boot-dtb.bin
    cp u-boot-dtb.bin u-boot.bin
    aarch64-linux-gnu-objcopy -I binary -B aarch64 -O elf64-littleaarch64 u-boot.bin u-boot-elf.o
    aarch64-linux-gnu-ld.bfd u-boot-elf.o -o u-boot.elf --defsym="_start"=0x8000000 -Ttext=0x8000000

    Last command has no explicit linker script passed that's why toolchain
    internal linker script is used.
    In Binutils 2.32 case it contains SIZEOF_HEADERS symbol which has changed
    behavior by commit
    https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=64029e93683a266c38d19789e780f3748bd6a188
    which result in situation that program headers has changed from
    (xilinx_zynqmp_mini_defconfig)

    Program Headers:
    Type Offset VirtAddr PhysAddr
    FileSiz MemSiz Flags Align
    LOAD 0x0000000000010000 0x00000000fffc0000 0x00000000fffc0000
    0x0000000000018918 0x0000000000018918 RW 0x10000

    to

    Program Headers:
    Type Offset VirtAddr PhysAddr
    FileSiz MemSiz Flags Align
    LOAD 0x0000000000000000 0x00000000fffb0000 0x00000000fffb0000
    0x0000000000028918 0x0000000000028918 RW 0x10000

    Xilinx tools like XSDB or Bootgen are using program headers for loading ELF
    to the right location and by above binutils change ELF is loaded to
    incorrect location.

    The patch is explicitly use u-boot-elf.lds (just cat now) for u-boot.elf
    recreation which is called when REMAKE_ELF is setup.
    By purpose u-boot-elf.lds doesn't contain OUTPUT_FORMAT/OUTPUT_ARCH to be
    able to use by all archs.

    Signed-off-by: Michal Simek
    Reviewed-by: Tom Rini
    Reviewed-by: Daniel Schwierzeck
    Tested-By: Álvaro Fernández Rojas

    Michal Simek
     

20 Feb, 2020

1 commit


06 Feb, 2020

1 commit

  • At present dm/device.h includes the linux-compatible features. This
    requires including linux/compat.h which in turn includes a lot of headers.
    One of these is malloc.h which we thus end up including in every file in
    U-Boot. Apart from the inefficiency of this, it is problematic for sandbox
    which needs to use the system malloc() in some files.

    Move the compatibility features into a separate header file.

    Signed-off-by: Simon Glass

    Simon Glass
     

18 Jan, 2020

5 commits


03 Dec, 2019

7 commits


29 Nov, 2019

1 commit

  • The deadline for migration to CONFIG_DM is v2020.01. The VCT
    baords would need an almost complete rewrite of all drivers to
    support driver model.

    Unless someone has access to the hardware and volunteers to do the migration,
    the board should be scheduled for removal.

    Signed-off-by: Daniel Schwierzeck
    Acked-by: Stefan Roese

    Daniel Schwierzeck
     

25 Oct, 2019

19 commits


12 Aug, 2019

1 commit