Permalink
Commits on Sep 26, 2015
Commits on Jul 28, 2015
  1. ODROID-C1+: Cold reset of SD card by power cycle

    tobetter committed Jul 28, 2015
    This patch reset the power lane of SD card on kernel boot, so that SD card's
    state can be initiated to SD mode.
    
    Change-Id: I81e6d9003c8a0f0bbaefcde1c8c683174b25f654
    Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Commits on Jul 23, 2015
Commits on Jul 20, 2015
  1. new tool mkenvimage: generates an env image from an arbitrary config …

    David Wagner committed with longsleep Sep 26, 2011
    …file
    
    This tool takes a key=value configuration file (same as would a `printenv' show)
    and generates the corresponding environment image, ready to be flashed.
    
    use case: flash the environment with an external tool
    
    Signed-off-by: David Wagner <david.wagner@free-electrons.com>
    Acked-by; Mike Frysinger <vapier@gentoo.org>
    Tested-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
    
    Conflicts:
    	tools/Makefile
  2. Fixed compatibility issues.

    longsleep committed Jul 20, 2015
  3. env: checkpatch clean env_fat

    igor-grinberg committed with longsleep Sep 23, 2012
    env_fat has several checkpatch warnings - clean those up.
    
    Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
  4. env: remove duplicated env_get_char_spec()

    igor-grinberg committed with longsleep Sep 23, 2012
    env_fat and env_remote have an implementation of env_get_char_spec()
    function that is not different than the default.
    Remove the duplicated code.
    
    Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
    
    Conflicts:
    	common/env_remote.c
  5. README: document the CONFIG_ENV_IS_IN_FAT option

    JoshWu committed with longsleep Jun 24, 2014
    In README file, add document for the missing configuration option:
    CONFIG_ENV_IS_IN_FAT.
    
    Signed-off-by: Josh Wu <josh.wu@atmel.com>
    Reviewed-by: Stephen Warren <swarren@nvidia.com>
    
    Conflicts:
    	README
  6. Add support for loading and saving the environment to a FAT partition

    Maximilian Schwerin committed with longsleep Mar 12, 2012
    The following must be defined:
    
    CONFIG_ENV_IS_IN_FAT
    	Enable this saving environment to FAT.
    
    FAT_ENV_INTERFACE
    	Interface the FAT resides on (e.g. mmc).
    
    FAT_ENV_DEVICE
    	The interface device number (e.g. 0 for mmc0)
    
    FAT_ENV_PART
    	The device part (e.g. 1 for mmc0:1)
    
    FAT_ENV_FILE
    	The filename of the environment file.
    
    Author:    Maximilian Schwerin <mvs@tigris.de>
    
    Removed dead DEBUG comment.
    Signed-off-by: Wolfgang Denk <wd@denx.de>
    
    Conflicts:
    	common/cmd_nvedit.c
Commits on Jun 11, 2015
  1. fs/fat: correct FAT16/12 file finding in root dir

    JoshWu committed with longsleep May 8, 2014
    When write a file into FAT file system, it will search a match file in
    root dir. So the find_directory_entry() will get the first cluster of
    root dir content and search the directory item one by one. If the file
    is not found, we will call get_fatent_value() to get next cluster of root
    dir via lookup the FAT table and continue the search.
    
    The issue is in FAT16/12 system, we cannot get root dir's next clust
    from FAT table. The FAT table only be use to find the clust of data
    aera in FAT16/12.
    
    In FAT16/12 if the clust is in root dir, the clust number is a negative
    number or 0, 1. Since root dir is located in front of the data area.
    Data area start clust #2. So the root dir clust number should < 2.
    
    This patch will check above situation before call get_fatenv_value().
    If curclust is < 2, include minus number, we just increase one on the
    curclust since root dir is in continous cluster.
    
    The patch also add a sanity check for entry in get_fatenv_value().
    
    Signed-off-by: Josh Wu <josh.wu@atmel.com>
  2. fs: fat_write: fix the incorrect last cluster checking

    JoshWu committed with longsleep May 8, 2014
    In fat_write.c, the last clust condition check is incorrect:
    
      if ((curclust >= 0xffffff8) || (curclust >= 0xfff8)) {
      	... ...
      }
    
    For example, in FAT32 if curclust is 0x11000. It is a valid clust.
    But on above condition check, it will be think as a last clust.
    
    So the correct last clust check should be:
      in fat32, curclust >= 0xffffff8
      in fat16, curclust >= 0xfff8
      in fat12, curclust >= 0xff8
    
    This patch correct the last clust check.
    
    Signed-off-by: Josh Wu <josh.wu@atmel.com>
  3. fs:fat: fix set file name function

    Piotr Wilczek committed with longsleep Oct 11, 2013
    Curently memcpy copies string without null terminating char because
    function strlen returns only number of characters excluding
    null terminating character. Replace memcpy with strcpy.
    
    Signed-off-by: Piotr Wilczek <p.wilczek@samsung.com>
    Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
    CC: Tom Rini <trini@ti.com>
  4. fs: fat: don't call disk_write with zero sector num

    JoshWu committed with longsleep Jul 24, 2013
    In the set_cluster() function, it will convert the buffer size to sector
    numbers. Then call disk_write() to write by sector.
    For remaining buffer, the size is less than a sector, call disk_write()
    again to write them in one sector.
    
    But if the total buffer size is less then one sector, the original code
    will call disk_write() with zero sector number. It is unnecessary.
    So this patch fix this. Now it will not call disk_write() if total buffer size
    is less than one sector.
    
    Signed-off-by: Josh Wu <josh.wu@atmel.com>
  5. fs/fat: Don't multiply fatsize with sector size

    Egbert Eich committed with longsleep Apr 9, 2013
    Bugfix:
    Here at this place we need the fat size in sectors not bytes.
    This was found during code review when adding support for storage
    devices with blocksizes != 512.
    
    Signed-off-by: Egbert Eich <eich@suse.com>
  6. FAT: use toupper/tolower instead of recoding them

    rgenoud committed with longsleep Dec 13, 2012
    toupper/tolower function are already declared, so use them.
    
    Signed-off-by: Richard Genoud <richard.genoud@gmail.com>
    Acked-by: Marek Vasut <marex@denx.de>
    Acked-by: Stefano Babic <sbabic@denx.de>
    
    Conflicts:
    	fs/fat/fat.c
Commits on Jun 6, 2015
  1. Backported complete fat command from upstream u-boot v2012.04 (http:/…

    longsleep committed Jun 6, 2015
    …/git.denx.de/?p=u-boot.git;a=commit;h=2790bf69dc12fb9aeb9836904e5f57c7f83d5552) and enabled fatwrite command.
    
    Signed-off-by: Simon Eisenmann <simon@longsleep.org>
  2. fs/fat: Fix FAT detection to support non-DOS partition tables

    Kyle Moffett committed with longsleep Dec 21, 2011
    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 <Kyle.D.Moffett@boeing.com>
    
    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 <wd@denx.de>
    
    Conflicts:
    	fs/fat/fat.c
  3. fs/fat/fat_write.c: Fix GCC 4.6 warnings

    Anatolij Gustschin committed with longsleep Mar 24, 2012
    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 <agust@denx.de>
    Cc: Donggeun Kim <dg77.kim@samsung.com>
    Acked-by: Maximilian Schwerin <mvs@tigris.de>
    Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
  4. FAT write: Fix compile errors

    Donggeun Kim committed with longsleep Mar 22, 2012
    This patch removes compile errors introduced by
    commit 9813b75
    '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 <dg77.kim@samsung.com>
    Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
    Signed-off-by: Maximilian Schwerin <mvs@tigris.de>
    
    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 <agust@denx.de>
  5. FAT: update the second FAT when writing a file

    Donggeun Kim committed with longsleep Dec 20, 2011
    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 <dg77.kim@samsung.com>
    Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
  6. FAT: fix some issues in FAT write support code

    Anatolij Gustschin committed with longsleep Dec 15, 2011
    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 <agust@denx.de>
    Cc: Donggeun Kim <dg77.kim@samsung.com>
    Cc: Aaron Williams <Aaron.Williams@cavium.com>
    Acked-by: Donggeun Kim <dg77.kim@samsung.com>
  7. FAT: Add FAT write feature

    Donggeun Kim committed with longsleep Oct 24, 2011
    In some cases, saving data in RAM as a file with FAT format is required.
    This patch allows the file to be written in FAT formatted partition.
    
    The usage is similar with reading a file.
    First, fat_register_device function is called before file_fat_write function
    in order to set target partition.
    Then, file_fat_write function is invoked with desired file name,
    start ram address for writing data, and file size.
    
    Signed-off-by: Donggeun Kim <dg77.kim@samsung.com>
    Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
    
    Conflicts:
    	README
    	fs/fat/Makefile
    	fs/fat/fat.c
  8. cmd_fat: add FAT write command

    Donggeun Kim committed with longsleep Mar 22, 2012
    Once CONFIG_FAT_WRITE is defined, users can invoke 'fatwrite' command
    that saves data in RAM as a FAT file.
    
    This patch was originally part of
    
    http://article.gmane.org/gmane.comp.boot-loaders.u-boot/121847
    
    Signed-off-by: Donggeun Kim <dg77.kim@samsung.com>
    Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
    Signed-off-by: Maximilian Schwerin <mvs@tigris.de>
    Signed-off-by: Anatolij Gustschin <agust@denx.de>
    
    Conflicts:
    	README
    	common/cmd_fat.c
  9. fat: fix crash with big sector size

    Sergei Shtylyov committed with longsleep Aug 8, 2011
    Apple iPod nanos have sector sizes of 2 or 4 KiB, which crashes U-Boot when it
    tries to read the boot sector into 512-byte buffer situated on stack. Make the
    FAT code indifferent to the sector size.
    
    Signed-off-by: Sergei Shtylyov <sshtylyov@mvista.com>
    
    Conflicts:
    	fs/fat/fat.c
    	include/fat.h
Commits on Apr 6, 2015
  1. ODROID-C: power: deactivate power control pins on off

    tobetter committed Apr 6, 2015
    Change-Id: I524eed7f46b2de48524780501887850c92242bcb
    Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Commits on Mar 29, 2015
  1. Merge pull request #15 from graugans/odroidc-v2011.03-armhf

    mdrjr committed Mar 29, 2015
    use lldiv() for 64-bit division
Commits on Mar 28, 2015
  1. use lldiv() for 64-bit division

    graugans committed Mar 28, 2015
    Otherwise u-boot will crash with
        Enter Exception:0x00000001
    
    The original Patch was from Ilya Yanok yanok@emcraft.com
    
    Signed-off-by: Christian Ege <k4230r6@gmail.com>
Commits on Mar 10, 2015
  1. serial/pin: active TX/RX internal pull-up

    tobetter committed Feb 13, 2015
    Change-Id: Ia60430bf51145980e2efb92035212a01eed4c408
    Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Commits on Jan 7, 2015
  1. ODROIDC:armv7: temporarily set -mno-unaligned-access

    tobetter committed Jan 7, 2015
    Recent compiler generates unaligned memory access in armv7 default.
    But current U-Boot does not allow unaligned memory access, so it causes
    data abort exception. This patch add compile option "-mno-unaligned-access"
    if it is available.
    
    Reference commit:
      [1] http://lists.denx.de/pipermail/u-boot/2012-July/127260.html
      [1] http://lists.denx.de/pipermail/u-boot/2012-October/136558.html
    
    Change-Id: Id774f4a783ea457feeccefb6dea00662198f153c
    Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Commits on Jan 3, 2015
  1. ODROIDC:config: Add to support EXT4 filesystem commands

    tobetter committed Jan 3, 2015
    This patch enables the command ext4ls and ext4load to access EXT4 partition.
    
    Change-Id: I7f4d648a176fa9d708e795d3b954850b2105b9ad
    Signed-off-by: Dongjin Kim <tobetter@gmail.com>
  2. BACKPORT: ext4fs write support

    Uma Shankar committed with Dongjin Kim May 25, 2012
    Change-Id: I47ec5bfe2f4e0d78e439d44d00e29bcdca182591
    Signed-off-by: Uma Shankar <uma.shankar@samsung.com>
    Signed-off-by: Manjunatha C Achar <a.manjunatha@samsung.com>
    Signed-off-by: Iqbal Shareef <iqbal.ams@samsung.com>
    Signed-off-by: Hakgoo Lee <goodguy.lee@samsung.com>
    Signed-off-by: Dongjin Kim <tobetter@gmail.com>
  3. BACKPORT: ext4fs ls load support

    Uma Shankar committed with Dongjin Kim May 25, 2012
    Signed-off-by: Uma Shankar <uma.shankar@samsung.com>
    Signed-off-by: Manjunatha C Achar <a.manjunatha@samsung.com>
    Signed-off-by: Iqbal Shareef <iqbal.ams@samsung.com>
    Signed-off-by: Hakgoo Lee <goodguy.lee@samsung.com>
    
    Conflicts:
    
    	common/cmd_ext2.c
    	fs/ext2/dev.c
    	fs/ext2/ext2fs.c
    
    Change-Id: I61021fa4c06bd94b9145e3b6ac226bb13011102f
    Signed-off-by: Dongjin Kim <tobetter@gmail.com>