lp:~big-little-switcher/linaro-big-little-reference/trunk

Created by Riku Voipio and last modified
Get this branch:
bzr branch lp:~big-little-switcher/linaro-big-little-reference/trunk

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
big.LITTLE Switcher team
Project:
big.LITTLE Reference Switcher
Status:
Development

Import details

Import Status: Failed

This branch is an import of the HEAD branch of the Git repository at git://git.linaro.org/people/dmart/arm-virt-bl.git,branch=linaro-next.

The import has been suspended because it failed 5 or more times in succession.

Last successful import was .

Import started on galapagos and finished taking 30 seconds — see the log
Import started on pear and finished taking 40 seconds — see the log
Import started on neumayer and finished taking 40 seconds — see the log
Import started on galapagos and finished taking 40 seconds — see the log

Recent revisions

109. By Dave Martin

bootwrapper: Rename the --fdt option to --dtb

Other people seem to be using --dtb, so this patch adds that option
for consistency. --fdt is still accepted, but a warning will be
printed to encourage people to migrate.

Signed-off-by: Dave Martin <email address hidden>

108. By Dave Martin

bootwrapper: semi_loader: Remove extraneous semicolon

usage_fatal() has a semicolon at the end, which means that this
macro doesn't work in statement context.

This patch removes the offending ;

Signed-off-by: Dave Martin <email address hidden>

107. By Dave Martin

bootwrapper: Fix ATAGs and cmdline handling bugs

  * A kernel command line received via semihosting didn't
    necessarily get NUL-terminated in ATAG_CMDLINE. Fixed by
    including the terminator in the size passed to atag_append().

  * ATAG_NONE was given a non-zero size field, whereas the kernel
    expectes a zero size value to detect end of the ATAGs, causing
    it to walk of the end of the tag list otherwise. ATAG_NONE is
    now special-cased in atag_append() to set the size field to
    zero properly.

  * cmdline (the unparsed remainder of the semihosting command-
    line) is mistakenly passed instead of cmdline_arg, when the
    command line is obtained via semihosting. This worked
    correctly, but only by accident. Fixed by passing
    info->cmdline_start instead (which gets set to the right thing
    for both possible cmdline sources).

    Thanks to Peter Maydell for repoting these.

    Signed-off-by: Dave Martin <email address hidden>

106. By Dave Martin

bootwrapper: Move FDT out of the way of the zImage decompressor

If there is no initrd, the FDT (if any) will get loaded immediately
after the kernel image. If the kernel is a zImage, this causes the
FDT to get overwritten when the kernel is decompressed.

This patches advances unconditionally to the INITRD_OFFSET after
loading the kernel image, so that the FDT is not loaded below that
address even if there is no initrd.

Signed-off-by: Dave Martin <email address hidden>

105. By Dave Martin

bootwrapper: Add useful diagnostics to semihosting loader

This patch adds some more helpful messages to allow the user to
understand what the loader is doing.

Signed-off-by: Dave Martin <email address hidden>

104. By Dave Martin

bootwrapper: Tidy up argument parsing

As the number of possible arguments increases, mandating a certain
order for specifying the arguments is going to become more awkward
for users.

This patch (tries to) parse the arguments more flexibly.

Signed-off-by: Dave Martin <email address hidden>

103. By Dave Martin

bootwrapper: Add native device tree support

This patch adds a new semihosting command-line option --fdt which
enables a device tree blob to be supplied. The dtb will be
modified and passed to the kernel in the appropriate way.

With a bit of extra work, a dtb built into the bootwrapper could be
supported; however, this is not implemented for now. The kernel
CONFIG_ARM_APPENDED_DTB option works just fine for producing images
with baked-in DTs, so there's no real need to duplicate this
functionality.

Signed-off-by: Dave Martin <email address hidden>

102. By Dave Martin

bootwrapper: Integrate libfdt

The libfdt code is taken from Linux v3.2. The original licence
notices have been retained intact. The licensing of this code
accomodates the BSD-style licence of the switcher itself as a
whole.

This patch modified Makefile.libfdt compared with the original
version, for purposes of build system integration.

This patch does not make any use of libfdt: that will follow in
later patches.

Signed-off-by: Dave Martin <email address hidden>

101. By Dave Martin

lib: Prevent <string.h> macro magic when building string.c

Including <string.h> in string.c is desirable in order to protect
against function prototype mismatches, but this causes errors when
building with optimisation due to the fact that string.h expands
the string function names via macros in some cases.

This patch protects those function names from macro expansion at
definition time by enclosing the affected names in parentheses.

Signed-off-by: Dave Martin <email address hidden>

100. By Dave Martin

lib: Add memmove, memchr, strcmp and strrchr to strings.c

This patch provides a few extra string functions required by
libfdt.

Signed-off-by: Dave Martin <email address hidden>

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
This branch contains Public information 
Everyone can see this information.