05 Aug, 2010

3 commits

  • Nvram_getenv should behave like cfe_getenv. cfe_getenv returns 0 on
    success and -9 if the value was not found. If the input was wrong -8
    will be returned by cfe_getenv. Change nvram_getenv to do the same.

    Signed-off-by: Hauke Mehrtens
    Cc: Waldemar Brodkorb
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/1520/
    Signed-off-by: Ralf Baechle

    Hauke Mehrtens
     
  • Signed-off-by: Ralf Baechle

    Ralf Baechle
     
  • The previous patch 4a86f2d27733f610e642649aca3e82e86fca9e22 (lmo) rsp.
    84a6fcb368a080620d12fc4d79e07902dbee7335 (kernel.org) was wrong.

    The BCM47xx architecture maps the ram into a 128MB address space. It
    will be spaced there as often as goes into the 128MB. Detection tries to
    find the position where the same memory is found. When reading beyond
    128MB the processor will throw an exception. If 128MB RAM is installed,
    it will not find a memory alias because it tries to read beyond the 128MB
    border. Now it just assumes 128MB installed ram if it can not find an
    alias.

    Signed-off-by: Hauke Mehrtens
    To: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/1508/
    Acked-by: Florian Fainelli
    Signed-off-by: Ralf Baechle

    Hauke Mehrtens
     

06 Jul, 2010

1 commit

  • When trying to netboot a Linksys WRT54GS WLAN router, the bootup fails,
    because of following error message:

    ...
    [ 0.424000] b44: b44.c:v2.0
    [ 0.424000] b44: Invalid MAC address found in EEPROM
    [ 0.432000] b44 ssb0:1: Problem fetching invariants of chip,aborting
    [ 0.436000] b44: probe of ssb0:1 failed with error -22
    ...

    The router uses a CFE bootloader, but most of the needed environment
    variables for network card initialization, are not available from CFE
    via printenv and even though not via cfe_getenv().
    The required environment variables are saved in a special partition
    in flash memory. The attached patch implement nvram_getenv and enables
    bootup via NFS root on my router.

    Most of the patch is extracted from the OpenWrt subversion repository and
    stripped down and cleaned up to just fix this issue.

    [Ralf: sorted out header file inclusions. Lots of unneded headers and such
    that should have been included.]

    Signed-off-by: Waldemar Brodkorb
    Reviewed-by: Phil Sutter
    To: linux-mips@linux-mips.org
    Cc: Hauke Mehrtens
    Patchwork: http://patchwork.linux-mips.org/patch/1359/
    Signed-off-by: Ralf Baechle

    Waldemar Brodkorb
     

27 Feb, 2010

1 commit


23 Feb, 2010

1 commit

  • Ignoring the last page when ddr size is 128M. Cached accesses to last page
    is causing the processor to prefetch using address above 128M stepping out
    of the DDR address space.

    Signed-off-by: Hauke Mehrtens
    Cc: linux-mips@linux-mips.org
    Patchwork: http://patchwork.linux-mips.org/patch/981/
    Signed-off-by: Ralf Baechle

    Hauke Mehrtens
     

17 Dec, 2009

1 commit


14 Nov, 2009

1 commit

  • Since commit 22242681cff52bfb7cba5d2a37b91802be7a4e4c ("MIPS: Extend
    COMMAND_LINE_SIZE"), CL_SIZE is 4096 and local array variables with this
    size will cause an build failure with default CONFIG_FRAME_WARN settings.

    Although current users of such array variables are all early bootstrap
    code and not likely to cause real stack overflow (thread_info corruption),
    it is preferable to to declare these arrays static with __initdata.

    Signed-off-by: Atsushi Nemoto
    Signed-off-by: Ralf Baechle

    Atsushi Nemoto
     

15 Oct, 2008

3 commits


20 Feb, 2008

2 commits


20 Oct, 2007

1 commit


12 Oct, 2007

5 commits