27 Jul, 2018

28 commits


26 Jul, 2018

1 commit

  • Now that we have removed the DocBook files we need to not try and clean
    that directory.

    Reported-by: ericywl
    Reported-by: Jagan Teki
    Fixes: 78a88f7930be ("doc: Replace DocBook with sphinx-based docs")
    Signed-off-by: Tom Rini

    Tom Rini
     

25 Jul, 2018

10 commits

  • Tom Rini
     
  • Switch to the distro boot for UniPhier platform.

    - Remove the environment vairalbes used to load images from raw
    block devices.

    - Keep the command to download images via tftp. This will be
    useful to boot the kernel when no valid kernel image is ready
    yet in the file system.

    - Use root.cpio.gz instead of root.cpio.uboot because we always know
    the file size of the init ramdisk; it is loaded via either a file
    system or network.

    - Rename fit_addr_r to kernel_addr_r, which the distro command
    checks to get the load address of FIT image.

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     
  • Enable "mtdparts" and "ubi" commands for uniphier_v8_defconfig to
    use UBI on NAND devices.

    Enable only "mtdparts" for uniphier_{v7,ld4_sld8}_defconfig because
    enabling UBI would increase 170KB, which would be memory footprint
    problem.

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     
  • Propagate the "mtdparts" environment variable to the DT passed
    in to OS.

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     
  • Prepare to add more fdt fixup code.

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     
  • The 'bd' is passed in ft_board_setup() as the second argument.
    Replace 'gd->bd' with 'bd'.

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     
  • Add 'const' (also 'static' in some places) to struct node_info
    arrays to save memory footprint.

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     
  • The second argument of fdt_fixup_mtdparts() is an opaque pointer,
    'void *node_info', hence callers can pass any pointer.

    Obviously, fdt_fixup_mtdparts() expects 'struct node_info *'
    otherwise, it crashes run-time.

    Change the prototype so that it is compile-time checked.

    Also, add 'const' qualifier to it so that callers can constify
    the struct node_info arrays.

    Signed-off-by: Masahiro Yamada
    Reviewed-by: Simon Glass

    Masahiro Yamada
     
  • The NAND framework makes sure to pass in the buffer with at least
    chip->buf_align alignment. Currently, the Denali NAND driver only
    requests 16 byte alignment. This causes unaligned cache operations
    for the DMA transfer.

    [Error Example]

    => nand read 81000010 0 1000

    NAND read: device 0 offset 0x0, size 0x1000
    CACHE: Misaligned operation at range [81000010, 81001010]
    CACHE: Misaligned operation at range [81000010, 81001010]
    CACHE: Misaligned operation at range [81000010, 81001010]
    CACHE: Misaligned operation at range [81000010, 81001010]
    4096 bytes read: OK

    Reported-by: Marek Vasut
    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     
  • cherry-pick kernel commit 2ae89c7 (2018-06-05)
    to avoid warnings when compiling with GCC 8.1

    In file included from scripts/kconfig/zconf.tab.c:2486:
    scripts/kconfig/confdata.c: In function ‘conf_write’:
    scripts/kconfig/confdata.c:771:22: warning: ‘%s’ directive writing likely 7 or more bytes into a region of size between 1 and 4097 [-Wformat-overflow=]
    sprintf(newname, "%s%s", dirname, basename);
    ^~
    scripts/kconfig/confdata.c:771:19: note: assuming directive output of 7 bytes
    sprintf(newname, "%s%s", dirname, basename);
    ^~~~~~
    scripts/kconfig/confdata.c:771:2: note: ‘sprintf’ output 1 or more bytes (assuming 4104) into a destination of size 4097
    sprintf(newname, "%s%s", dirname, basename);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    scripts/kconfig/confdata.c:774:23: warning: ‘.tmpconfig.’ directive writing 11 bytes into a region of size between 1 and 4097 [-Wformat-overflow=]
    sprintf(tmpname, "%s.tmpconfig.%d", dirname, (int)getpid());
    ^~~~~~~~~~~
    scripts/kconfig/confdata.c:774:3: note: ‘sprintf’ output between 13 and 4119 bytes into a destination of size 4097
    sprintf(tmpname, "%s.tmpconfig.%d", dirname, (int)getpid());
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Signed-off-by: Luis Araneda
    Signed-off-by: Masahiro Yamada

    Luis Araneda
     

24 Jul, 2018

1 commit