longsleep/u-boot-odroidc forked from hardkernel/u-boot
-
Merge branch 'odroidc-v2011.03'
longsleep committedSep 26, 2015
-
ODROID-C1+: Cold reset of SD card by power cycle
tobetter committedJul 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>
-
Use 128k env size to be able to use fw_* tools on snappy.
longsleep committedJul 23, 2015
-
Added support to load uboot.env file from FAT partition.
longsleep committedJul 20, 2015 -
Merge branch 'odroidc-configfat'
longsleep committedJul 20, 2015 -
new tool mkenvimage: generates an env image from an arbitrary config …
…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
-
longsleep committed
Jul 20, 2015 -
env_fat has several checkpatch warnings - clean those up. Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
-
env: remove duplicated env_get_char_spec()
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
-
README: document the CONFIG_ENV_IS_IN_FAT option
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
-
Add support for loading and saving the environment to a FAT partition
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
-
fs/fat: correct FAT16/12 file finding in root dir
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>
-
fs: fat_write: fix the incorrect last cluster checking
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> -
fs:fat: fix set file name function
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>
-
fs: fat: don't call disk_write with zero sector num
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>
-
fs/fat: Don't multiply fatsize with sector size
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>
-
FAT: use toupper/tolower instead of recoding them
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
-
Backported complete fat command from upstream u-boot v2012.04 (http:/…
longsleep committedJun 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>
-
fs/fat: Fix FAT detection to support non-DOS partition tables
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
-
fs/fat/fat_write.c: Fix GCC 4.6 warnings
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>
-
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>
-
FAT: update the second FAT when writing a file
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>
-
FAT: fix some issues in FAT write support code
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>
-
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
-
cmd_fat: add FAT write command
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
-
Fixed sector size merge error.
longsleep committedJun 6, 2015 -
fat: fix crash with big sector size
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
-
ODROID-C: power: deactivate power control pins on off
tobetter committedApr 6, 2015 Change-Id: I524eed7f46b2de48524780501887850c92242bcb Signed-off-by: Dongjin Kim <tobetter@gmail.com>
-
Merge pull request #15 from graugans/odroidc-v2011.03-armhf
mdrjr committedMar 29, 2015 use lldiv() for 64-bit division
-
use lldiv() for 64-bit division
graugans committedMar 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>
-
serial/pin: active TX/RX internal pull-up
tobetter committedFeb 13, 2015 Change-Id: Ia60430bf51145980e2efb92035212a01eed4c408 Signed-off-by: Dongjin Kim <tobetter@gmail.com>
-
ODROIDC:armv7: temporarily set -mno-unaligned-access
tobetter committedJan 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>
-
ODROIDC:config: Add to support EXT4 filesystem commands
tobetter committedJan 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>
-
BACKPORT: ext4fs write support
Uma Shankar committed with Dongjin KimMay 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>
-
BACKPORT: ext4fs ls load support
Uma Shankar committed with Dongjin KimMay 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>