summaryrefslogtreecommitdiff
path: root/fs
AgeCommit message (Collapse)AuthorFilesLines
2008-12-10fs/fat: handle FAT on SATASonic Zhang1-0/+3
The FAT file system driver should also handle FAT on SATA devices. Signed-off-by: Sonic Zhang <Sonic.Zhang@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2008-12-10jffs2: cache data_crc resultsIlya Yanok2-1/+5
As we moved data_crc() invocation from jffs2_1pass_build_lists() to jffs2_1pass_read_inode() data_crc is going to be calculated on each inode access. This patch adds caching of data_crc() results. There is no significant improvement in speed (because of flash access caching added in previous patch I think, crc in RAM is really fast) but this patch impacts memory usage -- every b_node structure uses 12 bytes instead of 8. Signed-off-by: Alexey Neyman <avn@emcraft.com> Signed-off-by: Ilya Yanok <yanok@emcraft.com>
2008-12-10jffs2: summary supportIlya Yanok2-1/+349
This patch adds support for reading fs information from summary node instead of scanning full eraseblock. Signed-off-by: Ilya Yanok <yanok@emcraft.com>
2008-12-10jffs2: add buffer to cache flash accessesIlya Yanok2-45/+73
With this patch JFFS2 code allocates memory buffer of max_totlen size (size of the largest node, calculated during scan time) and uses it to store entire node. Speeds up loading. If malloc fails we use old ways to do things. Signed-off-by: Alexey Neyman <avn@emcraft.com> Signed-off-by: Ilya Yanok <yanok@emcraft.com>
2008-12-10jffs2: rewrite jffs2 scanning code based on Linux oneIlya Yanok1-56/+171
Rewrites jffs2_1pass_build_lists() function in style of Linux's jffs2_scan_medium() and jffs2_scan_eraseblock(). This includes: - Caching flash acceses - Smart dealing with free space Signed-off-by: Alexey Neyman <avn@emcraft.com> Signed-off-by: Ilya Yanok <yanok@emcraft.com>
2008-12-10jffs2: fix searching for latest version in jffs2_1pass_list_inodes()Ilya Yanok1-3/+2
We need to update i_version inside cycle to find really latest version inside jffs2_1pass_list_inodes(). With that fixed we can use isize inside dump_inode() instead of calling expensive jffs2_1pass_read_inode(). Signed-off-by: Alexey Neyman <avn@emcraft.com> Signed-off-by: Ilya Yanok <yanok@emcraft.com>
2008-12-04Remove non-ascii characters from fat codeRemy Bohmer1-2/+2
This code contains some non-ascii characters in comment lines and code. Most editors do not display those characters properly and editing those files results always in diffs at these places which are usually not required to be changed at all. This is error prone. So, remove those weird characters and replace them by normal C-style equivalents for which the proper defines were already in the header. Signed-off-by: Remy Bohmer <linux@bohmer.net>
2008-10-31JFFS2: Eliminate compiler error when both NAND and OneNAND are enabled.Scott Wood1-7/+5
Reported-by: Alessandro Rubini <rubini-list@gnudd.com> Signed-off-by: Scott Wood <scottwood@freescale.com>
2008-10-18rename CFG_ macros to CONFIG_SYSJean-Christophe PLAGNIOL-VILLARD3-13/+13
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2008-09-07Add JFFS2 command support on OneNANDKyungmin Park1-0/+118
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
2008-08-31fs: Move conditional compilation to MakefileJean-Christophe PLAGNIOL-VILLARD30-109/+32
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2008-08-21Make the YAFFS filesystem workRemy Bohmer1-1/+4
Recently the YAFFS filesystem support has been added to U-boot. However, just enabling CONFIG_YAFFS2 is not enough to get it working. ymount will generate an exception (when dereferencing mtd->readoob()), because the genericDevice is a null pointer. Further, a lot of logging is produced while using YAFFS fs, so logging should also be disabled. Both issues are solved by this patch. With this patch and CONFIG_YAFFS2 enabled, I get a readable filesystem in U-boot, as well as in Linux. Tested on a Atmel AT91SAM9261EK board. Signed-off-by: Remy Bohmer <linux@bohmer.net> Acked-by: William Juul <william.juul@tandberg.com> Signed-off-by: Scott Wood <scottwood@freescale.com>
2008-08-14Coding Style cleanup, update CHANGELOGWolfgang Denk33-937/+928
Signed-off-by: Wolfgang Denk <wd@denx.de>
2008-08-13drivers/mtd/nand: Move conditional compilation to MakefileJean-Christophe PLAGNIOL-VILLARD2-4/+4
rename CFG_NAND_LEGACY to CONFIG_NAND_LEGACY Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2008-08-12moving files from yaffs2/direct/ to yaffs2/ and deleting all symlinksWilliam Juul36-34/+2
Signed-off-by: William Juul <william.juul@tandberg.com>
2008-08-12Clean out unneeded filesWilliam Juul27-10446/+0
Signed-off-by: William Juul <william.juul@tandberg.com>
2008-08-12Create symlinks from yaffs2/direct to yaffs2William Juul26-0/+26
Signed-off-by: William Juul <william.juul@tandberg.com>
2008-08-12Incorporate yaffs2 into U-bootWilliam Juul28-88/+448
To use YAFFS2 define CONFIG_YAFFS2 Signed-off-by: William Juul <william.juul@tandberg.com> Signed-off-by: Scott Wood <scottwood@freescale.com>
2008-08-12YAFFS2 importWilliam Juul63-0/+24326
Direct import of yaffs as a tarball as of 20071113 from their public CVS-web at http://www.aleph1.co.uk/cgi-bin/viewcvs.cgi/yaffs2/ The code can also be imported on the command line with: export CVSROOT=:pserver:anonymous@cvs.aleph1.co.uk:/home/aleph1/cvs cvs logon (Hit return when asked for a password) cvs checkout yaffs2 Signed-off-by: William Juul <william.juul@tandberg.com> Signed-off-by: Stig Olsen <stig.olsen@tandberg.com>
2008-07-14Fix printf() format issues with sizeof_t types by using %zuWolfgang Denk2-8/+12
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Wolfgang Denk <wd@denx.de>
2008-07-13Fix some more printf() format problems.Wolfgang Denk1-2/+2
Signed-off-by: Wolfgang Denk <wd@denx.de>
2008-07-13Fix some more printf() format issues.Jean-Christophe PLAGNIOL-VILLARD1-2/+2
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2008-06-29jffs2_1pass.c: add watchdog supportStuart Wood1-0/+3
Signed-off-by: Stuart Wood <stuart.wood@labxtechnologies.com>
2008-05-28Cleanup nand_info[] declaration.Stelian Pop1-3/+0
The nand_info array is declared as extern in several .c files. Those days, nand.h contains a reference to the array, so there is no need to declare it elsewhere. Signed-off-by: Stelian Pop <stelian@popies.net> Signed-off-by: Scott Wood <scottwood@freescale.com>
2008-05-21Big white-space cleanup.Wolfgang Denk5-82/+81
This commit gets rid of a huge amount of silly white-space issues. Especially, all sequences of SPACEs followed by TAB characters get removed (unless they appear in print statements). Also remove all embedded "vim:" and "vi:" statements which hide indentation problems. Signed-off-by: Wolfgang Denk <wd@denx.de>
2008-04-29jffs2_1pass.c: fix incompatible pointer type warningWolfgang Denk1-4/+0
Signed-off-by: Wolfgang Denk <wd@denx.de>
2008-03-26Merge branch 'new-image' of git://www.denx.de/git/u-boot-testingBartlomiej Sieka1-18/+2
Conflicts: common/cmd_bootm.c cpu/mpc8xx/cpu.c Signed-off-by: Bartlomiej Sieka <tur@semihalf.com>
2008-03-16cramfs: Fix ifdefJean-Christophe PLAGNIOL-VILLARD1-1/+1
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2008-03-12Merge branch 'master' of git://www.denx.de/git/u-boot into new-imageMarian Balakowicz2-4/+20
2008-03-03Fix checking fat32 cluster size.michael1-4/+4
This fixes the cluster size tests in the FAT32 file system. The current implementation of VFAT support doesn't work if the referred cluster has an offset > 16bit representation, causing "fatload" and "fatls" commands etc. to fail. Signed-off-by: michael trimarchi <trimarchi@gandalf.sssup.it>
2008-03-03fs: Fix ext2 read issueDave Liu1-0/+16
The ext2 aligned process will corrupt the key data struct, the patch fix this. Signed-off-by: Dave Liu <daveliu@freescale.com>
2008-02-21Merge branch 'master' of /home/git/u-bootMarian Balakowicz1-1/+1
2008-02-15Fix CONFIG_MMC usage in fat codeAndy Fleming1-1/+1
A #if statement in fat.c depended on CONFIG_MMC, instead of defined(CONFIG_MMC). This meant CONFIG_MMC needed to be defined as "1" rather than just defined. Now it's better. Signed-off-by: Andy Fleming <afleming@freescale.com>
2008-02-07[new uImage] Move gunzip() common code to common/gunzip.cMarian Balakowicz1-18/+2
Move gunzip(), zalloc() and zfree() to a separate file. Share zalloc() and zfree() with cramfs uncompress routine. Signed-off-by: Marian Balakowicz <m8@semihalf.com>
2008-01-10Fix my own merge stupidityAndy Fleming1-34/+29
Way back in August I merged Heiko's patch: 566a494f592: [PCS440EP] upgrade the PCS440EP board with Jon's CONFIG_COMMANDS patches. This was done in commit: 6bf6f114dcdd97ec3f80c2761ed40e31229d6b78 However, in the process, I left out some of Heiko's good changes. Now Heiko's and Jon's patches are properly merged in fat_register_device() Signed-off-by: Andy Fleming <afleming@freescale.com>
2008-01-09fix comments with new drivers organizationMarcel Ziswiler1-1/+1
Signed-off-by: Marcel Ziswiler <marcel@ziswiler.com>
2008-01-09Fix building with CRAMFS but not JFFS2 supportHarald Welte1-1/+1
Signed-off-by: Harald Welte <laforge@openmoko.org>
2008-01-09Fix memset bug in ext2fs_read_file()Wolfgang Denk1-1/+1
ext2fs_read_file() had the function arguments swapped. Pointed out by Mike Montour, 19 Dec 2007 22:34:25 -0800 Signed-off-by: Wolfgang Denk <wd@denx.de>
2007-11-15Build: split COBJS value into multiple linesGrant Likely1-3/+9
This change is in preparation for condtitionial compile support in the build system. By spliting them all into seperate lines now, subsequent patches that change 'COBJS-y += ' into 'COBJS-$(CONFIG_<blah>) += ' will be less invasive and easier to review Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
2007-09-16[FIX] remove files form repositoryMichal Simek2-289/+0
2007-09-15Synchronize with U-BOOT mainlineMichal Simek1-1/+1
2007-08-15[FIX] Correction command definitionMichal Simek1-1/+1
2007-08-08Merge git://www.denx.de/git/u-bootMichal Simek23-77/+89
2007-08-07Fix missing brace error in fs/fat/fat.cWolfgang Denk1-28/+29
[pointed out by Roderik Wildenburg] Signed-off-by: Wolfgang Denk <wd@denx.de>
2007-08-07[FIX] Fix romfs codeMichal Simek1-35/+5
2007-08-03Merge branch 'testing' into workingAndy Fleming23-53/+64
Conflicts: CHANGELOG fs/fat/fat.c include/configs/MPC8560ADS.h include/configs/pcs440ep.h net/eth.c
2007-07-14[FS] Added support for ROMFSMichal Simek3-1/+320
2007-07-10fs/: Remove lingering references to CFG_CMD_* symbols.Jon Loeliger11-11/+11
Fixed some broken instances of "#ifdef CMD_CFG_IDE" too. Those always evaluated TRUE, and thus were always compiled even when IDE really wasn't defined/wanted. Signed-off-by: Jon Loeliger <jdl@freescale.com>
2007-07-10fs/: Remove obsolete references to CONFIG_COMMANDSJon Loeliger23-42/+42
Signed-off-by: Jon Loeliger <jdl@freescale.com>
2007-07-05Fixing some typos etc. introduced mainly by cfg patches.Wolfgang Denk1-3/+6
Signed-off-by: Wolfgang Denk <wd@denx.de>