01 Nov, 2013

1 commit


24 Jul, 2013

1 commit


31 Jan, 2013

2 commits

  • Remove the board specific linker script. It is not
    needed anymore, the unified MIPS linker script can
    be used instead.

    All qemu_mips targets are producing identical binary
    images after the change than before.

    Signed-off-by: Gabor Juhos
    Cc: Daniel Schwierzeck

    Gabor Juhos
     
  • The OUTPUT_FORMAT command in linker scripts
    was always misused due to some endianess and
    toolchain problems.

    Use GCC flags to ensure proper output format,
    and get rid of the OUTPUT_FORMAT commands in
    the board specific u-boot.lds files.

    Signed-off-by: Gabor Juhos
    Cc: Daniel Schwierzeck
    Cc: Stefan Roese
    Cc: Wolfgang Denk
    Cc: Xiangfu Liu

    Gabor Juhos
     

16 Jan, 2013

4 commits

  • Signed-off-by: Daniel Schwierzeck

    Daniel Schwierzeck
     
  • By now U-Boot supports Qemu MIPS for little and big endian
    as well as 32 bit and 64 bit. Update and fix the example usage
    in the README to reflect this.

    Signed-off-by: Daniel Schwierzeck

    Daniel Schwierzeck
     
  • Using the example command from the README file does
    not work as expected. qemu shows a text similar to
    the one below and it hangs.

    $ qemu-system-mips -L . -nographic
    Could not open option rom 'pxe-pcnet.rom': No such file or directory
    qemu-system-mips: pci_add_option_rom: failed to find romfile "vgabios-cirrus.bin"
    qemu: terminating on signal 15 from pid 19726

    This happens because qemu emulates a Malta board by
    default if the machine type is not defined explicitely
    on the command line.

    For a working test, the '-M mips' switch is required:

    $ qemu-system-mips -M mips -L . -nographic
    Could not open option rom 'vgabios.bin': No such file or directory

    U-Boot 2013.01-rc2-00132-g1e8e648-dirty (Jan 08 2013 - 09:06:42)

    Board: Qemu -M mips CPU: 24Kf proc_id=0x19300
    DRAM: 128 MiB
    ## Unknown flash on Bank 1 - Size = 0x00000000 = 0 MB
    Flash: 0 Bytes
    *** Warning - bad CRC, using default environment

    In: serial
    Out: serial
    Err: serial
    Net: NE2000
    Hit any key to stop autoboot: 0
    qemu-mips #

    Signed-off-by: Gabor Juhos
    Cc: Daniel Schwierzeck
    Cc: Vlad Lungu

    Gabor Juhos
     
  • The 'Limitations & comments' section refers to the
    '-m mips' switch which is not valid. The '-m' switch
    can be used for setting the virtual RAM size:

    $qemu-system-mips --help | grep '^-m '
    -m megs set virtual RAM size to megs MB [default=128]
    $

    The correct switch for specifying the machine type is '-M'.
    Fix the text to refer to that.

    Signed-off-by: Gabor Juhos
    Cc: Daniel Schwierzeck
    Cc: Vlad Lungu

    Gabor Juhos
     

22 Oct, 2012

2 commits

  • The command declaration now uses the new LG-array method to generate
    list of commands. Thus the __u_boot_cmd section is now superseded and
    redundant and therefore can be removed. Also, remove externed symbols
    associated with this section from include/command.h .

    Signed-off-by: Marek Vasut
    Cc: Joe Hershberger
    Cc: Mike Frysinger

    Marek Vasut
     
  • Add section for the linker-generated lists into all possible linker
    files, so that everyone can easily use these lists. This is mostly
    a mechanical adjustment.

    Signed-off-by: Marek Vasut
    Cc: Joe Hershberger
    Cc: Mike Frysinger

    Marek Vasut
     

16 Oct, 2012

2 commits

  • Both big-endian and little-endian are tested with below commands:
    Rom version: (Default, Now we config it as rom version)
    qemu-system-mips64el -M mips -bios u-boot.bin -cpu MIPS64R2-generic -nographic
    qemu-system-mips64 -M mips -bios u-boot.bin -cpu MIPS64R2-generic -nographic
    Ram version:
    qemu-system-mips64el -M mips -cpu MIPS64R2-generic -kernel u-boot -nographic
    qemu-system-mips64 -M mips -cpu MIPS64R2-generic -kernel u-boot -nographic

    Signed-off-by: Zhizhou Zhang
    Signed-off-by: Daniel Schwierzeck

    Zhi-zhou Zhang
     
  • We define CONFIG_SYS_TEXT_BASE in board's specified header file.
    So config.mk is useless, then remove it.

    Signed-off-by: Zhizhou Zhang

    Zhi-zhou Zhang
     

29 Jul, 2012

1 commit


09 Dec, 2011

1 commit

  • This fixes the build of the two sh boards shmin and r7780mp and qemu-mips
    which currently fail to build due to dropped pre-CONFIG_NET_MULTI code.

    This v2 patch minimizes the number of lines in the diff for easy review
    and to eliminate any possible accidential changes resulting from moving
    lines of code in the file. This also makes the register function very easy.

    Any cleanups and improvements are intentionally deferred to follow-up patches
    to keep this patch as simple and as easy to review as possible.

    A new driver register function, ne2k_register() calls the existing
    one-time setup part of the old init function and calls eth_register().

    Changes to shmin, r7780mp and qemu-mips:
    - Call the new ne2k_register() from board_eth_init() of the boards.

    - Tested using qemu-mips board,
    - Tested the two renesas / sh boards r7780mp and shmin to compile again,
    and should work.

    checkpatch-clean when "--ignore VOLATILE" is added to .checkpatch.conf,
    and no warnings introduced in none of the three boards using this driver.

    Signed-off-by: Bernhard Kaindl

    Bernhard Kaindl
     

09 May, 2011

1 commit

  • All architectures but MIPS are using --gc-sections on final linking.
    This patch introduces that feature for MIPS to reduce the memory and
    flash footprint.

    Signed-off-by: Daniel Schwierzeck
    Cc: Wolfgang Denk
    Cc: Stefan Roese
    Cc: Thomas Lange
    Cc: Vlad Lungu
    Signed-off-by: Shinya Kuribayashi

    Daniel Schwierzeck
     

18 Nov, 2010

1 commit

  • Before this commit, weak symbols were not overridden by non-weak symbols
    found in archive libraries when linking with recent versions of
    binutils. As stated in the System V ABI, "the link editor does not
    extract archive members to resolve undefined weak symbols".

    This commit changes all Makefiles to use partial linking (ld -r) instead
    of creating library archives, which forces all symbols to participate in
    linking, allowing non-weak symbols to override weak symbols as intended.
    This approach is also used by Linux, from which the gmake function
    cmd_link_o_target (defined in config.mk and used in all Makefiles) is
    inspired.

    The name of each former library archive is preserved except for
    extensions which change from ".a" to ".o". This commit updates
    references accordingly where needed, in particular in some linker
    scripts.

    This commit reveals board configurations that exclude some features but
    include source files that depend these disabled features in the build,
    resulting in undefined symbols. Known such cases include:
    - disabling CMD_NET but not CMD_NFS;
    - enabling CONFIG_OF_LIBFDT but not CONFIG_QE.

    Signed-off-by: Sebastien Carlier

    Sebastien Carlier
     

19 Oct, 2010

1 commit

  • The change is currently needed to be able to remove the board
    configuration scripting from the top level Makefile and replace it by
    a simple, table driven script.

    Moving this configuration setting into the "CONFIG_*" name space is
    also desirable because it is needed if we ever should move forward to
    a Kconfig driven configuration system.

    Signed-off-by: Wolfgang Denk

    Wolfgang Denk
     

04 Sep, 2010

1 commit

  • From the document, if set all arguments in "OUTPUT_FORMAT" to
    "tradbigmips", then even add "-EL" to gcc we still get EB format.

    pb1x00 is only used in Little-endian, so its default endian should be
    set to LE.

    Signed-off-by: Xiangfu Liu
    Signed-off-by: Shinya Kuribayashi

    Xiangfu Liu
     

22 Aug, 2009

1 commit


21 Mar, 2009

1 commit

  • A recent gcc added a new unaligned rodata section called '.rodata.str1.1',
    which needs to be added the the linker script. Instead of just adding this
    one section, we use a wildcard ".rodata*" to get all rodata linker section
    gcc has now and might add in the future.

    However, '*(.rodata*)' by itself will result in sub-optimal section
    ordering. The sections will be sorted by object file, which causes extra
    padding between the unaligned rodata.str.1.1 of one object file and the
    aligned rodata of the next object file. This is easy to fix by using the
    SORT_BY_ALIGNMENT command.

    This patch has not be tested one most of the boards modified. Some boards
    have a linker script that looks something like this:

    *(.text)
    . = ALIGN(16);
    *(.rodata)
    *(.rodata.str1.4)
    *(.eh_frame)

    I change this to:

    *(.text)
    . = ALIGN(16);
    *(.eh_frame)
    *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))

    This means the start of rodata will no longer be 16 bytes aligned.
    However, the boundary between text and rodata/eh_frame is still aligned to
    16 bytes, which is what I think the real purpose of the ALIGN call is.

    Signed-off-by: Trent Piepho

    Trent Piepho
     

19 Nov, 2008

1 commit

  • Most of the bss initialization loop increments 4 bytes
    at a time. And the loop end is checked for an 'equal'
    condition. Make the bss end address aligned by 4, so
    that the loop will end as expected.

    Signed-off-by: Selvamuthukumar
    Signed-off-by: Wolfgang Denk

    Selvamuthukumar
     

12 Jun, 2008

1 commit

  • This patch changes the return type of initdram() from long int to phys_size_t.
    This is required for a couple of reasons: long int limits the amount of dram
    to 2GB, and u-boot in general is moving over to phys_size_t to represent the
    size of physical memory. phys_size_t is defined as an unsigned long on almost
    all current platforms.

    This patch *only* changes the return type of the initdram function (in
    include/common.h, as well as in each board's implementation of initdram). It
    does not actually modify the code inside the function on any of the platforms;
    platforms which wish to support more than 2GB of DRAM will need to modify
    their initdram() function code.

    Build tested with MAKEALL for ppc, arm, mips, mips-el. Booted on powerpc
    MPC8641HPCN.

    Signed-off-by: Becky Bruce

    Becky Bruce
     

05 Jun, 2008

1 commit


29 May, 2008

1 commit


10 May, 2008

1 commit


18 Apr, 2008

1 commit

  • Current assembler codes are inconsistent in the way of register jump
    instruction usage; some use jr, some use j. Of course GNU as allows both
    usages, but as can be expected from `Jump Register' the mnemonic `jr' is
    more intuitive than `j'. For example, Linux doesn't have `j ' usage
    at all.

    Signed-off-by: Shinya Kuribayashi

    Shinya Kuribayashi
     

22 Feb, 2008

1 commit


17 Jan, 2008

1 commit