summaryrefslogtreecommitdiffstats
path: root/common/filetype.c
Commit message (Collapse)AuthorAgeFilesLines
...
| * | xload: get barebox size from barebox_arm_headJan Weitzel2012-09-071-1/+1
| |/ | | | | | | | | | | | | | | | | Add functions to read the barebox_arm_head, check barebox magicword and read out the barebox image size. Create a inital partion of 1Mb to access the barebox image on nand. Signed-off-by: Jan Weitzel <j.weitzel@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* / filetype: Improve FAT detectionFranck Jullien2012-09-201-12/+56
|/ | | | | | | | | | | | | | | | We may have some disk with MBR as a first sector. In this case, the current FAT check returns an error. However, the FAT sector exist and the MBR can tell us where it is. This patch add to file_name_detect_type function the ability to find the FAT boot sector on the first sector of the first partition in case it is not on sector 0. It also introduce is_fat_or_mbr to check if a buffer is a FAT boot or MBR sector Signed-off-by: Franck Jullien <franck.jullien@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* filetype: add fat filesystem supportJean-Christophe PLAGNIOL-VILLARD2012-09-041-0/+20
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* filetype: add forgotten mips barebox filetype_strAntony Pavlov2012-07-161-0/+1
| | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MIPS: bootm: add "MIPS barebox" handlerAntony Pavlov2012-05-111-0/+2
| | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* filetype: add Bourne Shell supportJean-Christophe PLAGNIOL-VILLARD2012-04-181-0/+3
| | | | | | Put it at first as it's the most likely to detect Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* Merge branch 'master' into nextSascha Hauer2012-04-171-2/+2
|\
| * filetype: Make it work on files < 512 bytesSascha Hauer2012-04-171-2/+2
| | | | | | | | | | | | | | This is a brown paper bag type of bugs. Do not assume that a file has to be at minimun 512 bytes to be detectable. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | filetype: add Android boot image supportJean-Christophe PLAGNIOL-VILLARD2012-04-121-0/+3
|/ | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* filetype: Add oftree detectionSascha Hauer2011-12-151-0/+3
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* add file detection supportSascha Hauer2011-11-291-0/+99
Several filetypes can be autodetected. Barebox could make use of this in several ways: - Add a command to detect filetypes - detect arm zImages and uImages to unify the different boot commands - maybe detect UBI or JFFS2 images to construct parts of the kernel command line - select correct uncompression function based on filetype This patch adds basic support to detect filetypes. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>