26 Sep, 2012

1 commit


21 Sep, 2012

2 commits

  • Update Makefile change for LIBS -> LIBS-y change.

    Conflicts:
    Makefile

    Signed-off-by: Tom Rini

    Tom Rini
     
  • DMA buffer cache invalidation requires that buffers have cache-aligned
    buffer locations and sizes. Use memalign() and ALLOC_CACHE_ALIGN_BUFFER()
    to ensure this.

    On Tegra at least, without this fix, the following fail commands fail in
    u-boot-master/ext4, but succeeded at the branch's branch point in
    u-boot/master. With this fix, the commands work again:

    ext2ls mmc 0:1 /
    ext2load mmc 0:1 /boot/zImage

    Cc: Uma Shankar
    Cc: Manjunatha C Achar
    Cc: Iqbal Shareef
    Cc: Hakgoo Lee
    Cc: Wolfgang Denk
    Cc: Tom Rini
    Signed-off-by: Stephen Warren

    Stephen Warren
     

19 Sep, 2012

1 commit


10 Sep, 2012

1 commit

  • Using ZLIB compression with UBIFS fails if last data node is not a size of
    UBIFS_BLOCK_SIZE (4096 bytes).

    Easiest way to test this is trying to read a file smaller than 4k:
    => ubifsload 41000000 /etc/fstab
    Loading file '/etc/fstab' to addr 0x41000000 with size 704 (0x000002c0)...
    UBIFS error (pid 0): read_block: bad data node (block 0, inode 2506)
    UBIFS error (pid 0): do_readpage: cannot read page 0 of inode 2506, error -22
    Error reading file '/etc/fstab'
    /etc/fstab not found!
    exit not allowed from main input shell.
    =>

    With this patch:

    => ubifsload 41000000 /etc/fstab
    Loading file '/etc/fstab' to addr 0x41000000 with size 704 (0x000002c0)...
    Done
    =>

    Signed-off-by: Veli-Pekka Peltola
    Cc: kmpark@infradead.org
    Tested-by: Andreas Bießmann
    Signed-off-by: Stefan Roese

    Veli-Pekka Peltola
     

03 Sep, 2012

1 commit


02 Sep, 2012

7 commits


10 Aug, 2012

5 commits

  • Signed-off-by: Uma Shankar
    Signed-off-by: Manjunatha C Achar
    Signed-off-by: Iqbal Shareef
    Signed-off-by: Hakgoo Lee

    Uma Shankar
     
  • Signed-off-by: Uma Shankar
    Signed-off-by: Manjunatha C Achar
    Signed-off-by: Iqbal Shareef
    Signed-off-by: Hakgoo Lee

    Uma Shankar
     
  • U-Boot port is based on sources forked from GRUB-0.97 by Sun in 2004,
    which can be found here:
    http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/grub/grub-0.97/stage2/zfs-include/zfs.h

    Released by Sun for GRUB under the license:
    * This program is free software; you can redistribute it and/or modify
    * it under the terms of the GNU General Public License as published by
    * the Free Software Foundation; either version 2 of the License, or
    * (at your option) any later version.

    GRUB official releases include ZFS in version:
    ftp://alpha.gnu.org/gnu/grub/grub-1.99~rc1.tar.gz

    And patched against GRUB Bazaar repository for ashift fixes (4KB HDDs)
    more conveniently found at github:
    https://github.com/pendor/grub-zfs/commit/e7b6ef3ac3b9685ac4c394c897b1d4221b7381f1

    Signed-off-by: Jorgen Lundman

    Jorgen Lundman
     
  • This patch updates the yaffs2 in u-boot to correspond to
    git://www.aleph1.co.uk/yaffs2
    commit id 9ee5d0643e559568dbe62215f76e0a7bd5a63d93

    Signed-off-by: Charles Manning

    Charles Manning
     
  • In addition to the error message also display the error code. I had the
    problem that my malloc memory was not enough (ENOMEM), and if u-boot
    had displayed the error code immediately that would have saved me some
    debugging.

    Signed-off-by: Bernhard Walle

    Use ubifs_err instead of printf.
    Add "errno=%d" in output as suggested by Albert Aribaud.

    Signed-off-by: Thomas Weber

    Bernhard Walle
     

08 Aug, 2012

1 commit

  • The above warning was introduced originally in 436da3c "ext2load:
    increase read speed" and fixed for newer toolchains in b803273 "ext2fs:
    fix warning: 'blocknxt' may be used uninitialized". This change did not
    fix the warning with gcc 4.2, as found in ELDK 4.2.

    If we rework the while loop to initalize blocknxt before entering the
    warning really goes away. Tested on am335x with an approx 7mb file and
    crc32 in U-Boot befor and after this change.

    Cc: Wolfgang Denk
    Cc: Eric Nelson
    Cc: Thierry Reding
    Cc: Jason Cooper
    Cc: Andreas Bießmann
    Cc: Reinhard Arlt
    Cc: Kim Phillips
    Signed-off-by: Tom Rini

    Tom Rini
     

09 Jul, 2012

1 commit

  • This warning was introduced in 436da3c "ext2load: increase read
    speed":

    ext2fs.c: In function 'ext2fs_read_file':
    ext2fs.c:458:19: warning: 'blocknxt' may be used uninitialized in this function [-Wuninitialized]

    this change makes it go away.

    Cc: Eric Nelson
    Cc: Thierry Reding
    Cc: Jason Cooper
    Cc: Andreas Bießmann
    Cc: Reinhard Arlt
    Signed-off-by: Kim Phillips

    Kim Phillips
     

22 Jun, 2012

2 commits

  • This patch dramatically drops the amount of time u-boot needs to read a
    file from an ext2 partition. On a typical 2 to 5 MB file (kernels and
    initrds) it goes from tens of seconds to a couple seconds.

    All we are doing here is grouping contiguous blocks into one read.

    Boot tested on Globalscale Technologies Dreamplug (Kirkwood ARM SoC)
    with three different files. sha1sums were calculated in Linux
    userspace, and then confirmed after ext2load.

    Signed-off-by: Jason Cooper
    Tested-by: Eric Nelson
    Tested-by: Thierry Reding

    u-boot@lakedaemon.net
     
  • This driver is unused and obsolete.

    Signed-off-by: Marek Vasut
    Cc: Wolfgang Denk
    Cc: unsik Kim

    Marek Vasut
     

30 Apr, 2012

3 commits


26 Mar, 2012

1 commit

  • Fix:
    fat_write.c: In function 'find_directory_entry':
    fat_write.c:826:8: warning: variable 'prevcksum' set but not used
    [-Wunused-but-set-variable]
    fat_write.c: In function 'do_fat_write':
    fat_write.c:933:6: warning: variable 'root_cluster' set but not used
    [-Wunused-but-set-variable]
    fat_write.c:925:12: warning: variable 'slotptr' set but not used
    [-Wunused-but-set-variable]

    Signed-off-by: Anatolij Gustschin
    Cc: Donggeun Kim
    Acked-by: Maximilian Schwerin
    Acked-by: Kyungmin Park

    Anatolij Gustschin
     

25 Mar, 2012

1 commit

  • This patch removes compile errors introduced by
    commit 9813b750f32c0056f0a35813b9a9ec0f68b664af
    'fs/fat: Fix FAT detection to support non-DOS partition tables'

    fat_write.c: In function 'disk_write':
    fat_write.c:54: error: 'part_offset' undeclared (first use in this function)
    fat_write.c:54: error: (Each undeclared identifier is reported only once
    fat_write.c:54: error: for each function it appears in.)
    fat_write.c: In function 'do_fat_write':
    fat_write.c:950: error: 'part_size' undeclared (first use in this function)

    These errors only appear when this code is enabled by
    defining CONFIG_FAT_WRITE option.

    This patch was originally part of

    http://article.gmane.org/gmane.comp.boot-loaders.u-boot/121847

    Signed-off-by: Donggeun Kim
    Signed-off-by: Kyungmin Park
    Signed-off-by: Maximilian Schwerin

    Fixed patch author and added all needed SoB from the original patch
    and also submitter's SoB. Extended commit log.
    Signed-off-by: Anatolij Gustschin

    Donggeun Kim
     

06 Jan, 2012

4 commits

  • After susccessful write to the FAT partition,
    fsck program may print warning message due to different FAT,
    provided that the filesystem supports two FATs.

    This patch makes the second FAT to be same with the first one
    when writing a file.

    Signed-off-by: Donggeun Kim
    Signed-off-by: Kyungmin Park

    Donggeun Kim
     
  • The FAT filesystem fails silently in inexplicable ways when given a
    filesystem with a block-size that does not match the device sector size.
    In theory this is not an unsupportable combination but requires a major
    rewrite of a lot of the filesystem. Until that occurs, the filesystem
    should detect that scenario and display a helpful error message.

    This scenario in particular occurred on a 512-byte blocksize FAT fs
    stored in an El-Torito boot volume on a CD-ROM (2048-byte sector size).

    Additionally, in many circumstances the ->block_read method will not
    return a negative number to indicate an error but instead return 0 to
    indicate the number of blocks successfully read (IE: None).

    The FAT filesystem should defensively check to ensure that it got all of
    the sectors that it asked for when reading.

    Signed-off-by: Kyle Moffett

    Kyle Moffett
     
  • The FAT filesystem code currently ends up requiring that the partition
    table be a DOS MBR, as it checks for the DOS 0x55 0xAA signature on the
    partition table (which may be Mac, EFI, ISO9660, etc) before actually
    computing the partition offset.

    This fixes support for accessing a FAT filesystem in an ISO9660 boot
    volume (El-Torito format) by reordering the filesystem checks and
    reading the 0x55 0xAA "DOS boot signature" and FAT/FAT32 magic number
    from the first sector of the partition instead of from sector 0.

    Signed-off-by: Kyle Moffett

    Fix build warning: fat.c: In function 'fat_register_device':
    fat.c:66:15: warning: variable 'found_partition' set but not used
    [-Wunused-but-set-variable]
    Signed-off-by: Wolfgang Denk

    Kyle Moffett
     
  • Make ext2 use cache line aligned buffers for reading from the filesystem.
    This is needed when caches are enabled because unaligned cache invalidates
    are not safe.

    Signed-off-by: Simon Glass

    Simon Glass
     

05 Jan, 2012

1 commit

  • The VFAT short alias checksum read from a long file name is only overwritten
    when another long file name appears in a directory list. Until then it renders
    short file names invisible that have the same checksum. Reset the checksum on
    first match.

    Signed-off-by: Sergei Shtylyov
    Signed-off-by: Martin Mueller

    Sergei Shtylyov
     

24 Dec, 2011

1 commit

  • * 'next' of ../next:
    mkenvimage: Add version info switch (-V)
    mkenvimage: Fix getopt() error handling
    mkenvimage: Fix some typos
    phy: add Micrel KS8721BL phy definition
    net: introduce per device index
    mvgbe: remove setting of ethaddr within the driver
    x86: Add support for specifying an initrd with the zboot command
    x86: Refactor the zboot innards so they can be reused with a vboot image
    x86: Add infrastructure to extract an e820 table from the coreboot tables
    x86: Add support for booting Linux using the 32 bit boot protocol
    x86: Clean up the x86 zimage code in preparation to extend it
    x86: Import code from coreboot's libpayload to parse the coreboot table
    x86: Initial commit for running as a coreboot payload
    CHECKPATCH: ./board/esd/hh405/logo_320_240_8bpp.c
    CHECKPATCH: ./board/esd/hh405/logo_1024_768_8bpp.c
    CHECKPATCH: ./board/esd/hh405/logo_320_240_4bpp.c
    CHECKPATCH: ./board/esd/hh405/logo_640_480_24bpp.c
    CHECKPATCH: ./board/esd/apc405/logo_640_480_24bpp.c
    CHECKPATCH: ./board/esd/voh405/logo_320_240_4bpp.c
    CHECKPATCH: ./board/esd/voh405/logo_640_480_24bpp.c
    CHECKPATCH: ./board/esd/hh405/fpgadata.c
    CHECKPATCH: ./board/esd/pci405/fpgadata.c
    CHECKPATCH: ./board/esd/tasreg/fpgadata.c
    CHECKPATCH: ./board/esd/apc405/fpgadata.c
    CHECKPATCH: ./board/esd/voh405/fpgadata.c
    CHECKPATCH: ./board/esd/ash405/fpgadata.c
    CHECKPATCH: ./board/esd/dasa_sim/fpgadata.c
    CHECKPATCH: ./board/esd/ar405/fpgadata_xl30.c
    CHECKPATCH: ./board/esd/ar405/fpgadata.c
    CHECKPATCH: ./board/esd/plu405/fpgadata.c
    CHECKPATCH: ./board/esd/wuh405/fpgadata.c
    CHECKPATCH: ./board/esd/cpci405/fpgadata_cpci405.c
    CHECKPATCH: ./board/esd/cpci405/fpgadata_cpci405ab.c
    CHECKPATCH: ./board/esd/cpci405/fpgadata_cpci4052.c
    CHECKPATCH: ./board/esd/canbt/fpgadata.c
    CHECKPATCH: ./board/esd/du405/fpgadata.c
    CHECKPATCH: ./board/esd/cpciiser4/fpgadata.c
    CHECKPATCH: ./board/dave/PPChameleonEVB/fpgadata.c
    avr32:mmu.c: fix printf() length modifier
    fat.c: fix printf() length modifier
    cmd_sf.c: fix printf() length modifier
    Make printf and vprintf safe from buffer overruns
    vsprintf: Move function documentation into header file
    Add safe vsnprintf and snprintf library functions
    Move vsprintf functions into their own header

    Conflicts:
    tools/mkenvimage.c

    Signed-off-by: Wolfgang Denk

    Wolfgang Denk
     

21 Dec, 2011

1 commit

  • Writing a file to the FAT partition didn't work while a
    test using a CF card. The test was done on mpc5200 based
    board (powerpc). There is a number of problems in FAT
    write code:

    Compiler warning:
    fat_write.c: In function 'file_fat_write':
    fat_write.c:326: warning: 'counter' may be used uninitialized
    in this function
    fat_write.c:326: note: 'counter' was declared here

    'l_filename' string is not terminated, so a file name
    with garbage at the end is used as a file name as shown
    by debug code.

    Return value of set_contents() is not checked properly
    so actually a file won't be written at all (as checked
    using 'fatls' after a write attempt with 'fatwrite'
    command).

    do_fat_write() doesn't return the number of written bytes
    if no error happened. However the return value of this
    function is used to show the number of written bytes
    in do_fat_fswrite().

    The patch adds some debug code and fixes above mentioned
    problems and also fixes a typo in error output.

    NOTE: after a successful write to the FAT partition (under
    U-Boot) the partition was checked under Linux using fsck.
    The partition needed fixing FATs:
    -bash-3.2# fsck -a /dev/sda1
    fsck 1.39 (29-May-2006)
    dosfsck 2.11, 12 Mar 2005, FAT32, LFN
    FATs differ but appear to be intact. Using first FAT.
    Performing changes.

    Signed-off-by: Anatolij Gustschin
    Cc: Donggeun Kim
    Cc: Aaron Williams
    Acked-by: Donggeun Kim

    Anatolij Gustschin
     

18 Dec, 2011

1 commit

  • The DIRENTSPERBLOCK utilizes sizeof() which will return a size_t which has no
    fixed size. Therefor use correct length modifer for printf() statement to
    prevent compiler warnings.

    This patch fixes following warning:

    ---88---

    Signed-off-by: Andreas Bießmann
    cc: Mike Frysinger
    cc: Thomas Chou
    cc: rjones@nexus-tech.net
    cc: kharris@nexus-tech.net
    Acked-by: Mike Frysinger

    Andreas Bießmann
     

12 Dec, 2011

1 commit


11 Dec, 2011

1 commit

  • Fix:
    yaffs_guts.c: In function 'yaffs_GarbageCollectBlock':
    yaffs_guts.c:2761:6: warning: variable 'retVal' set but not used
    [-Wunused-but-set-variable]

    Here GCC actually detected a bug. The code was always returning OK
    instead of the previously set retrun code. Fix that.

    Signed-off-by: Wolfgang Denk
    Cc: William Juul
    Cc: Scott Wood
    Acked-by: William Juul

    Wolfgang Denk
     

17 Nov, 2011

2 commits

  • Sorry if this is already fixed somewhere - I could not find it.

    This fixes the warnings show below.

    yaffs_tagscompat.c: In function 'yaffs_TagsCompatabilityReadChunkWithTagsFromNAND':
    yaffs_tagscompat.c:151: warning: dereferencing pointer 'tu' does break strict-aliasing rules
    yaffs_tagscompat.c:150: warning: dereferencing pointer 'tu' does break strict-aliasing rules
    yaffs_tagscompat.c:149: warning: dereferencing pointer 'tu' does break strict-aliasing rules
    yaffs_tagscompat.c:148: warning: dereferencing pointer 'tu' does break strict-aliasing rules
    yaffs_tagscompat.c:147: warning: dereferencing pointer 'tu' does break strict-aliasing rules
    yaffs_tagscompat.c:146: warning: dereferencing pointer 'tu' does break strict-aliasing rules
    yaffs_tagscompat.c:145: warning: dereferencing pointer 'tu' does break strict-aliasing rules
    yaffs_tagscompat.c:144: warning: dereferencing pointer 'tu' does break strict-aliasing rules
    yaffs_tagscompat.c:141: note: initialized from here

    Signed-off-by: Simon Glass

    Simon Glass
     
  • Fix:
    yaffs_guts.c: In function 'yaffs_CheckChunkErased':
    yaffs_guts.c:854:6: warning: variable 'result' set but not used
    yaffs_guts.c: In function 'yaffs_UpdateObjectHeader':
    yaffs_guts.c:3463:6: warning: variable 'result' set but not used
    yaffs_guts.c: In function 'yaffs_GrabChunkCache':
    yaffs_guts.c:3774:6: warning: variable 'pushout' set but not used
    yaffs_guts.c: In function 'yaffs_Scan':
    yaffs_guts.c:5237:6: warning: variable 'result' set but not used
    yaffs_guts.c: In function 'yaffs_CheckObjectDetailsLoaded':
    yaffs_guts.c:5748:6: warning: variable 'alloc_failed' set but not used
    yaffs_guts.c:5747:6: warning: variable 'result' set but not used
    yaffs_guts.c: In function 'yaffs_ScanBackwards':
    yaffs_guts.c:5808:6: warning: variable 'deleted' set but not used
    yaffs_guts.c:5806:6: warning: variable 'result' set but not used
    yaffs_guts.c: In function 'yaffs_GetObjectName':
    yaffs_guts.c:6657:7: warning: variable 'result' set but not used
    [-Wunused-but-set-variable]

    Signed-off-by: Anatolij Gustschin

    Anatolij Gustschin
     

08 Nov, 2011

1 commit