summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* PANDA: remove CONFIG_FS_RAMFS and CONFIG_FS_DEVFSHEADmasterJan Weitzel2011-06-201-0/+2
| | | | | | | | MLO is to big (>40000) to save Space disable CONFIG_FS_RAMFS and CONFIG_FS_DEVFS in defconfig Signed-off-by: Jan Weitzel <j.weitzel@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Disable emitting mul instructions by gccFranck Jullien2011-06-161-1/+1
| | | | | | | | If we are using barebox on a NiosII/e variant, the mul instruction is not supported and causes an exception. Signed-off-by: Franck Jullien <franck.jullien@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Improved gpmc_nand driver to show the current eccmode.Juergen Kilb2011-06-101-3/+5
| | | | | | | | | | Now a 'devinfo gpmc_nand0' shows the current used eccmode instead of <NULL>. The function omap_gpmc_eccmode is now called by dev_set_param. Signed-off-by: Juergen Kilb <J.Kilb@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Check return values of erase and tftp/cpTeresa Gamez2011-06-101-3/+3
| | | | | | | | | The _update script does not check the return value of erasing a partiton or flashing the image to the device. Added this check to get a evaluable return value from the update script. Signed-off-by: Teresa Gámez <t.gamez@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'next'Sascha Hauer2011-06-0629-1/+2463
|\
| * at91: Support for at91rm9200: core chip & board supportJean-Christophe PLAGNIOL-VILLARD2011-05-3118-1/+1650
| | | | | | | | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Cc: Nicolas Ferre <nicolas.ferre@atmel.com> Cc: Patrice Vilchez <patrice.vilchez@atmel.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * Enable display for MINI2440 board.Alexey Galakhov2011-05-193-0/+104
| | | | | | | | | | | | | | Also add display modes for usual MINI2440 displays. Signed-off-by: Alexey Galakhov <agalakhov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * Add support for Samsung S3C24x0 framebuffer.Alexey Galakhov2011-05-194-0/+502
| | | | | | | | | | | | | | Heavily based on original Juergen Beisert's code. Signed-off-by: Alexey Galakhov <agalakhov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * commands: add md5/sha1/sha256sum commands using the digest apiPeter Korsgaard2011-05-193-0/+206
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The interface emulates the Linux commands, except that you can specify a sub area - E.G.: barebox:/ md5sum /dev/fd0 2M+1M /env/config /env/bin/boot 10+2 61c4c0180b044191d28f27545f43562f /dev/fd0 0x00200000 ... 0x00300000 908b84bcbadd2f263583a65ff31d1cad /env/config 0x00000000 ... 0x000003a7 f23bd15825cc5006cf5f9fd486d82d2d /env/bin/boot 0x0000000a ... 0x0000000c Adds around 1400 bytes (+ size of digest code) with everything enabled. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * sandbox: allow lseek on host filesPeter Korsgaard2011-05-171-0/+1
| | | | | | | | | | Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Release v2011.06.0Sascha Hauer2011-06-061-1/+1
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | scripts/getenv: delete backup files from enviroment directoryHubert Feurstein2011-06-011-1/+2
| | | | | | | | | | | | | | | | Also add the '--no-run-if-empty' option to xargs to avoid an error message when no files/folders were found. Signed-off-by: Hubert Feurstein <h.feurstein@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | pr_warn() must be pr_warning()Dirk Behme2011-06-011-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | Fix the warning/error: drivers/mci/mci-core.c: In function 'mci_card_probe': drivers/mci/mci-core.c:1195: warning: implicit declaration of function 'pr_warn' ... drivers/built-in.o: In function `mci_card_probe': mc13892.c:(.text.mci_card_probe+0x68): undefined reference to `pr_warn' Signed-off-by: Dirk Behme <dirk.behme@googlemail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | mci-core: add missing newline in debug messageHubert Feurstein2011-06-011-1/+1
| | | | | | | | | | | | Signed-off-by: Hubert Feurstein <h.feurstein@gmail.com> Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Revert "fix printf warnings"Sascha Hauer2011-05-261-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While getting rid of all the format(barebox_printf) warnings was nice, it caused the printf calls in arch/sandbox/os/common.c to get directed to the barebox versions rather than the libc ones causing a crash: E.G. before this revert: nm -a barebox|grep -w printf 0000000000404fa3 T print And after: nm -a barebox|grep -w printf U printf@@GLIBC_2.2.5 Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk> This reverts commit 6b082cfe9f9b5b2bea294918ad916c739490cea7.
* | Always initialize oob_poi before writing OOB dataJuergen Beisert2011-05-251-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The following patch came across the mtd mailing list today. I thinks its also valid for barebox (it handles a special corner case, but maybe it can hit us, too): In nand_do_write_ops() code it is possible for a caller to provide ops.oobbuf populated and ops.mode == MTD_OOB_AUTO, which currently means that the chip->oob_poi buffer isn't initialised to all 0xFF. The nand_fill_oob() method then carries out the task of copying the provided OOB data to oob_poi, but with MTD_OOB_AUTO it skips areas marked as unavailable by the layout struct, including the bad block marker bytes. An example of this causing issues is when the last OOB data read was from the start of a bad block where the markers are not 0xFF, and the caller wishes to write new OOB data at the beginning of another block. In this scenario the caller would provide OOB data, but nand_fill_oob() would skip the bad block marker bytes in oob_poi before copying the OOB data provided by the caller. This means that when the OOB data is written back to NAND, the block is inadvertently marked as bad without the caller knowing. This has been witnessed when using YAFFS2 where tags are stored in the OOB. This patch changes the code so that oob_poi is always initialised to 0xFF to make sure no left over data is inadvertently written back to OOB data. The comment above is for the linux kernel, but the same is valid for barebox and CPUs writing the OOB date controlled in software (like the Samsung S3C2440 does). Signed-off-by: Adam Thomson <adam.thomson@alcatel-lucent.com> Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | fix genenv when using svn based enviroment directoryTim Sander2011-05-231-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Hi When setting the default env of barebox to a svn directory the build stops with questions on removal and the barebox env is polluted with svn files. The patch below fixes that. Tested with 2011.03.1. Newer versions don't boot anymore on my pcm043 :-(. Signed-off-by: Tim Sander <tim.sander@hbm.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | usb: make locally used functions staticSascha Hauer2011-05-181-17/+10
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | usb ehci: fix wrong argument order for memsetSascha Hauer2011-05-181-3/+3
| | | | | | | | | | | | Also, make locally used function ehci_submit_root static. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | fix console fifo (and loadb/loady commands)Alexey Galakhov2011-05-161-11/+16
| | | | | | | | | | | | | | | | This patch fixes loadb and loady commands. tstc() should return true if console_input_buffer is not empty. Signed-off-by: Alexey Galakhov <agalakhov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Fix dma mapping end addressFranck JULLIEN2011-05-161-1/+1
| | | | | | | | | | | | | | | | The flush_dcache_range function takes an absolute end address so we have to add start address to the second parameter. Signed-off-by: Franck JULLIEN <franck.jullien@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Fix compiler warningFranck JULLIEN2011-05-161-1/+1
| | | | | | | | | | | | | | Fix incompatible pointer type warning. Signed-off-by: Franck JULLIEN <franck.jullien@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Change system frequency in generic boardFranck JULLIEN2011-05-161-6/+6
| | | | | | | | | | | | | | | | | | In order to match the example I'll provide on my website, set the system frequency to 100MHz in the generic board nios_sopc.h Signed-off-by: Franck JULLIEN <franck.jullien@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Fix typo in generic.cFranck JULLIEN2011-05-161-2/+2
| | | | | | | | | | | | | | | | The device init function has the name of one of my board (comBoard). This patch fix the name of the function to generic_device_init. Signed-off-by: Franck JULLIEN <franck.jullien@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Update generic env/configFranck JULLIEN2011-05-161-0/+5
| | | | | | | | | | | | | | | | | | This adds kernel_loc, kernelimage_type and bootargs to the generic board environment. This allows the generic board to boot linux on the example I'll provide on my website. Signed-off-by: Franck JULLIEN <franck.jullien@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | setenv: be robust against setenv(<var>, NULL)Peter Korsgaard2011-05-161-1/+1
| | | | | | | | | | | | | | | | Handle value == NULL similiar to how value == '' is currently handled. hush's builtin_getopt() seems to trigger this for OPTARG. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | commands/crc.c: fix typo in help textPeter Korsgaard2011-05-161-1/+1
| | | | | | | | | | Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'next'Sascha Hauer2011-05-06159-3710/+14313
|\|
| * ARM: compile in image size and magic into barebox imageSascha Hauer2011-05-063-0/+10
| | | | | | | | | | | | | | | | This is useful to detect a barebox image and to be able to copy only the image size if barebox is stored on raw partitions which are bigger than the image. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ata: guessing disk sizes is only needed on X86Sascha Hauer2011-05-061-1/+4
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * mci: turn several pr_* statements into debugSascha Hauer2011-05-061-12/+12
| | | | | | | | | | | | These are mostly useful for developers, so turn them off by default. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * mci: shrink string footprintSascha Hauer2011-05-061-6/+8
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * scripts: Fix compilation warning.Marek Belisko2011-05-041-4/+2
| | | | | | | | | | | | | | | | | | | | | | Fix following warning: scripts/kallsyms.c: In function ‘read_symbol’: scripts/kallsyms.c:81:9: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result Solution overtaken from kernel tree. Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * arm: karo-tx25: Fix compilation warning.Marek Belisko2011-05-041-1/+0
| | | | | | | | | | | | | | | | | | Fix following warning: arch/arm/boards/karo-tx25/lowlevel.c: In function 'board_init_lowlevel': arch/arm/boards/karo-tx25/lowlevel.c:75:6: warning: unused variable 'i' Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * arm: eukrea: Fix compilation warning.Marek Belisko2011-05-041-2/+0
| | | | | | | | | | | | | | | | | | Fix following warning: arch/arm/boards/eukrea_cpuimx35/eukrea_cpuimx35.c: In function 'eukrea_cpuimx35_devices_init': arch/arm/boards/eukrea_cpuimx35/eukrea_cpuimx35.c:176:15: warning: unused variable 'tmp' Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * Add bootm supportFranck JULLIEN2011-05-042-0/+84
| | | | | | | | | | | | | | This patch adds the bootm support to the Nios2 arch. Signed-off-by: Franck JULLIEN <franck.jullien@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * Add platform data to the mac deviceFranck JULLIEN2011-05-021-4/+7
| | | | | | | | | | | | | | The PHY address must be passed to the driver via platform_data. Signed-off-by: Franck JULLIEN <franck.jullien@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * Nios2: Add Altera TSE driverFranck JULLIEN2011-05-024-0/+899
| | | | | | | | | | | | | | Add Altera Triple Speed Ethernet driver Signed-off-by: Franck JULLIEN <franck.jullien@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * Fix coding style in driver/net/MakefileFranck JULLIEN2011-05-021-2/+2
| | | | | | | | | | Signed-off-by: Franck JULLIEN <franck.jullien@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: omap4: fix dev_width for omap_enable_hweccJan Weitzel2011-04-201-1/+1
| | | | | | | | | | | | | | | | NAND_BUSWIDTH_16 should result in dev_width = 1 according to the kernel driver omap_enable_hwecc: dev_width = (chip->options & NAND_BUSWIDTH_16) ? 1 : 0; Signed-off-by: Jan Weitzel <j.weitzel@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * pcm049: remove unused bootsrcJan Weitzel2011-04-181-3/+0
| | | | | | | | | | Signed-off-by: Jan Weitzel <j.weitzel@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * OMAP4: change boot orderJan Weitzel2011-04-181-2/+2
| | | | | | | | | | | | | | | | | | If OMAP4 fall back to MMC1 boot in bootmode 0x39 (NAND,USB,UART,MMC1) NAND and MMC bit in TRACING_VECTOR3 are set. With changed order it will detect boot from MMC. Signed-off-by: Jan Weitzel <j.weitzel@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * mci-core: fix debug statementsSascha Hauer2011-04-121-4/+4
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * mci omap: make write support optionalSascha Hauer2011-04-121-1/+4
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * mci omap: rename functions from mxc to omapSascha Hauer2011-04-121-6/+6
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM beagle board: add xload defconfigSascha Hauer2011-04-121-0/+38
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM omap beagle: update defconfigSascha Hauer2011-04-121-2/+13
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM omap beagle: Add noshell support for booting from MMCSascha Hauer2011-04-122-0/+43
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: add pcm049 defconfigsSascha Hauer2011-04-122-0/+97
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM omap4: Add pcm049 board supportSascha Hauer2011-04-129-0/+679
| | | | | | | | | | | | This patch adds support for Phytecs pcm049 board Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>