08 Dec, 2011

1 commit


19 May, 2011

1 commit

  • Detect CPU type at runtime and setup uarts accordingly; also clean up the
    uart base address mess in the process as far as possible.

    Signed-off-by: Manuel Lauss
    To: Linux-MIPS
    Cc: Florian Fainelli
    Cc: Wolfgang Grandegger
    Patchwork: https://patchwork.linux-mips.org/patch/2352/
    Signed-off-by: Ralf Baechle <ralf@linux-mips.org

    Manuel Lauss
     

11 May, 2011

1 commit

  • HOSTCC arch/mips/boot/compressed/calc_vmlinuz_load_addr
    arch/mips/boot/compressed/calc_vmlinuz_load_addr.c: In function 'main':
    arch/mips/boot/compressed/calc_vmlinuz_load_addr.c:35:2: warning: format '%llx' expects type 'long long unsigned int *', but argument 3 has type 'uint64_t *'
    arch/mips/boot/compressed/calc_vmlinuz_load_addr.c:54:2: warning: format '%llx' expects type 'long long unsigned int', but argument 2 has type 'uint64_t'

    Signed-off-by: Ralf Baechle

    Ralf Baechle
     

19 Oct, 2010

1 commit

  • * 'upstream' of git://git.linux-mips.org/pub/scm/upstream-linus:
    MIPS: Enable ISA_DMA_API config to fix build failure
    MIPS: 32-bit: Fix build failure in asm/fcntl.h
    MIPS: Remove all generated vmlinuz* files on "make clean"
    MIPS: do_sigaltstack() expects userland pointers
    MIPS: Fix error values in case of bad_stack
    MIPS: Sanitize restart logics
    MIPS: secure_computing, syscall audit: syscall number should in r2, not r0.
    MIPS: Don't block signals if we'd failed to setup a sigframe

    Linus Torvalds
     

18 Oct, 2010

1 commit


05 Oct, 2010

1 commit

  • Fix VMLINUZ_LOAD_ADDRESS calculation to be based on the length of
    vmlinux.bin, the actual uncompressed kernel binary.

    Previously it was based on the length of KBUILD_IMAGE (the unstripped ELF
    vmlinux), which is bigger than vmlinux.bin. As a result, vmlinuz was
    loaded into a memory address higher then actually needed - a problem for
    small memory platforms.

    Signed-off-by: Shmulik Ladkani
    To: linux-mips@linux-mips.org
    Cc: alex@digriz.org.uk
    Cc: manuel.lauss@googlemail.com
    Cc: sam@ravnborg.org
    Cc: linux-kernel@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/1564/
    Acked-by: Wu Zhangjin
    Signed-off-by: Ralf Baechle

    Shmulik Ladkani
     

05 Aug, 2010

8 commits

  • This patch use "strip -s" to strip the .symtab and .strtab sections of
    vmlinuz.

    Note: This patch is based on http://patchwork.linux-mips.org/patch/1324/

    Signed-off-by: Wu Zhangjin
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/1383/
    Signed-off-by: Ralf Baechle

    Wu Zhangjin
     
  • We have calculated VMLINUZ_LOAD_ADDRESS in shell, which is indecipherable. This
    patch rewrites it in C.

    Signed-off-by: Wu Zhangjin
    To: linux-mips
    Cc: Alexander Clouter
    Cc: Manuel Lauss
    Cc: Sam Ravnborg
    Acked-by: Sam Ravnborg
    Reviewed-by: Alexander Clouter
    Patchwork: https://patchwork.linux-mips.org/patch/1324/
    Signed-off-by: Ralf Baechle

    Wu Zhangjin
     
  • - Remove several outdated comments
    - Clearify the definition of zimage_start and zimage_size and the their
    usage

    Signed-off-by: Wu Zhangjin
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/1382/
    Signed-off-by: Ralf Baechle

    Wu Zhangjin
     
  • - Remove unused symbols: _fdata, _text; only _edata and _end are needed by
    head.S
    - Remove unused sections: .sbss, .stab, .gptab.sdata, .gptab.sbss
    - Change the alignment to 16 bytes to ensure it is greater than any
    fundamental type of a MIPS compiler.
    - Clean up comments

    Signed-off-by: Wu Zhangjin
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/1381/
    Signed-off-by: Ralf Baechle

    Wu Zhangjin
     
  • The compressed vmlinux.bin is only a temp file so it's ok to use the same
    suffix .z for them (.gz,.lzo,.lzma...) to remove several lines and simpify
    the maintenance (no need to add the "suffix_$(xxx) := suffix" line).

    Signed-off-by: Wu Zhangjin
    To: linux-mips
    Cc: Alexander Clouter
    Cc: Manuel Lauss
    Cc: Sam Ravnborg
    Patchwork: https://patchwork.linux-mips.org/patch/1323/
    Signed-off-by: Ralf Baechle

    ---

    Wu Zhangjin
     
  • Remove the CONFIG_SOC_AU1X00 Kconfig symbol since its job can also be done
    by MACH_ALCHEMY, now renamed to MIPS_ALCHEMY.

    Signed-off-by: Manuel Lauss
    To: Linux-MIPS
    Patchwork: https://patchwork.linux-mips.org/patch/1461/
    Signed-off-by: Ralf Baechle

    Manuel Lauss
     
  • - use hostprogs-y for the elf2ecoff
    - list all *.o file in targets
    - renamed obj-y to vmlinuzobjs-y (it was confusing to re-use a kbuild variable)
    - fix all uses of if_changed/cmd
    - use kbuild rules to beautify output
    - update clean-file to clean vmlinuz.* in top-level directory

    - simplied logic in arch/mips/Makefile for compressed targets

    The net result is a more kbuild conformant Makefile but
    readability did not increase.

    Signed-off-by: Sam Ravnborg
    To: linux-mips
    To: Wu Zhangjin
    Patchwork: https://patchwork.linux-mips.org/patch/1304/
    Signed-off-by: Ralf Baechle

    Sam Ravnborg
     
  • - remove stuff that is not needed
    VMLINUX assignment, all: rule
    - use hostprogs-y for the host program
    - use kbuild rules for the three targets - to beautify output
    - drop clean-files - it is no longer needed
    - simplify arch/mips/Makefile when calling targets in boot/Makefile

    Signed-off-by: Sam Ravnborg
    To: linux-mips
    To: Wu Zhangjin
    Patchwork: https://patchwork.linux-mips.org/patch/1303/
    Signed-off-by: Ralf Baechle

    Sam Ravnborg
     

27 Feb, 2010

5 commits


28 Jan, 2010

2 commits

  • POSIX requires $(()) arithmetic in sh only to have long
    arithmetic so on 32-bit sh binaries might do only 32-bit arithmetic but
    the arithmetic done in arch/mips/boot/compressed/Makefile needs 64-bit.

    I play with the AR7 platform, so VMLINUX_LOAD_ADDRESS is
    0xffffffff94100000, and for an example 4MiB kernel
    VMLINUZ_LOAD_ADDRESS is made out to be:
    ----
    alex@berk:~$ bash -c 'printf "%x\n" $((0xffffffff94100000 + 0x400000))'
    ffffffff94500000
    alex@berk:~$ dash -c 'printf "%x\n" $((0xffffffff94100000 + 0x400000))'
    80000000003fffff
    ----

    The former is obviously correct whilst the later breaks things royally.

    Fortunately working with only the lower 32bit's works for both bash and
    dash:
    ----
    $ bash -c 'printf "%x\n" $((0x94100000 + 0x400000))'
    94500000
    $ dash -c 'printf "%x\n" $((0x94100000 + 0x400000))'
    94500000
    ----

    So, we can split the original 64bit string to two parts, and only
    calculate the low 32bit part, which is big enough (1GiB kernel sizes
    anyone?) for a normal Linux kernel image file, now, we calculate the
    VMLINUZ_LOAD_ADDRESS like this:

    1. if present, append top 32bit of VMLINUX_LOAD_ADDRESS" as a prefix
    2. get the sum of the low 32bit of VMLINUX_LOAD_ADDRESS + VMLINUX_SIZE

    This patch fixes vmlinuz kernel builds on systems where only a
    32bit-only math shell is available.

    Patch Changelog:
    Version 2
    - simplified method by using 'expr' for 'substr' and making it work
    with dash once again
    Version 1
    - Revert the removals of '-n "$(VMLINUX_SIZE)"' to avoid the error
    of "make clean"
    - Consider more cases of the VMLINUX_LOAD_ADDRESS
    Version 0
    - initial release

    Signed-off-by: Alexander Clouter
    Acked-by: Wu Zhangjin
    Patchwork: http://patchwork.linux-mips.org/patch/861/
    Signed-off-by: Ralf Baechle

    Alexander Clouter
     
  • The necessary changes to the x86 Kconfig and boot/compressed to allow the
    use of this new compression method.

    Signed-off-by: Wu Zhangjin
    Cc: linux-mips@linux-mips.org
    Cc: Sergei Shtylyov
    Patchwork: http://patchwork.linux-mips.org/patch/857/
    Signed-off-by: Ralf Baechle

    Wu Zhangjin
     

13 Jan, 2010

3 commits

  • Signed-off-by: Yoichi Yuasa
    Cc: linux-mips
    Patchwork: http://patchwork.linux-mips.org/patch/795/
    Signed-off-by: Ralf Baechle

    Yoichi Yuasa
     
  • It moves to the same directory as the boot files in other formats.

    Signed-off-by: Yoichi Yuasa
    Cc: linux-mips
    Patchwork: http://patchwork.linux-mips.org/patch/796/
    Signed-off-by: Ralf Baechle

    Yoichi Yuasa
     
  • o Remove the .initrd section. The initrd section was already handled
    when vmlinux was linked.
    o Discard .MIPS.options, .options, .pdr, .reginfo, .comment and .note
    sections. If .MIPS.options is not removed, kernels compiled with gcc
    3.4.6 will not boot.
    o Clean up the file format.
    o Remove several other unneeded sections.

    Tested with GCC 3.4.6 and 4.4.1 with and without initrd.

    Signed-off-by: Wu Zhangjin
    Cc: linux-mips@linux-mips.org
    Patchwork: http://patchwork.linux-mips.org/patch/785/
    Signed-off-by: Ralf Baechle

    Wu Zhangjin
     

17 Dec, 2009

2 commits

  • Addinitrd has been superseded by initramfs ages ago.

    Signed-off-by: Ralf Baechle

    Ralf Baechle
     
  • This patch helps to generate smaller kernel images for linux-MIPS,

    Here is the effect when using lzma:

    $ ls -sh vmlinux
    7.1M vmlinux
    $ ls -sh vmlinuz
    1.5M vmlinuz

    Have tested the 32bit kernel on Qemu/Malta and 64bit kernel on FuLoong
    Mini PC. both of them work well. and also, tested by Alexander Clouter
    on an AR7 based Linksys WAG54Gv2, and by Manuel Lauss on an Alchemy
    board.

    This -v2 version incorporate the feedback from Ralf, and add the
    following changes:

    1. add .ecoff, .bin, .erec format support
    2. only enable it and the debug source code for the machines we tested
    3. a dozen of fixups and cleanups

    and if you want to enable it for your board, please try to select
    SYS_SUPPORTS_ZBOOT for it, and if the board have an 16550 compatible
    uart, you can select SYS_SUPPORTS_ZBOOT_UART16550 directly. and then
    sending the relative patches to Ralf.

    Tested-by: Manuel Lauss
    Tested-by: Alexander Clouter
    Signed-off-by: Wu Zhangjin
    Signed-off-by: Ralf Baechle

    Wu Zhangjin
     

18 Sep, 2009

1 commit


12 Oct, 2007

2 commits


01 Aug, 2007

1 commit


08 Nov, 2005

1 commit


30 Oct, 2005

1 commit


17 Apr, 2005

1 commit

  • Initial git repository build. I'm not bothering with the full history,
    even though we have it. We can create a separate "historical" git
    archive of that later if we want to, and in the meantime it's about
    3.2GB when imported into git - space that would just make the early
    git days unnecessarily complicated, when we don't have a lot of good
    infrastructure for it.

    Let it rip!

    Linus Torvalds