summaryrefslogtreecommitdiff
path: root/common
Commit message (Collapse)AuthorAgeLines
* ENGR00119033: System can not find MMC/SD card in SD slot 1Terry Lv2010-03-30-4/+4
| | | | | | | System can not find MMC/SD card in SD slot 1 when booting from Uboot. Signed-off-by: Terry Lv <r65388@freescale.com>
* ENGR00121779 Support a single kernel image on MX5x partsDinh Nguyen2010-03-19-0/+7
| | | | | | | | | This change is required by kernel change ENGR00121762 (enables a single kernel image on MX5x parts using run-time phys_offset). Load address and Entry points are set for MX53 parts(0x7xxxxxxx). So the bootloader must add the offset 0x20000000 for MX51 parts. Signed-off-by: Lily Zhang <r58066@freescale.com>
* ENGR00120830: Add eMMC and eSD fast boot supportTerry Lv2010-02-08-1/+130
| | | | | | | Add eMMC and eSD fast boot support. Signed-off-by: Terry Lv <r65388@freescale.com> Signed-off-by: Brian Liu <b14843@freescale.com>
* ENGR00118978: Timer adjustment for all platformsFred Fan2009-12-04-4/+8
| | | | | | | | | In current u-boot design, get_timer_masked is not correct and udelay is not accurate when the time is less than 1000us. Thus we need to use ipg clock source for accurate timer. Signed-off-by: Terry Lv <r65388@freescale.com>
* ENGR00118362: Correct recovery NAND cmdTerry Lv2009-11-12-0/+1
| | | | | | | | | This patch will fix three issues: 1. Add boot device detection. 2. Use right nand command in anroid for recovery mode. 3. Recovery mode code clean. Signed-off-by: Terry Lv <r65388@freescale.com>
* ENGR00118294: Misc changes for v2009.08 upgrade.Terry Lv2009-11-11-255/+34
| | | | | | Misc changes for v2009.08 upgrade. Signed-off-by: Terry Lv <r65388@freescale.com>
* ENGR00117616: PATA support in u-boot.Terry Lv2009-11-04-0/+204
| | | | | | PATA support in u-boot. Signed-off-by: Terry Lv <r65388@freescale.com>
* u-boot v2009.08 sd/mmc support.Terry Lv2009-11-03-23/+86
| | | | Signed-off-by: Terry Lv <r65388@freescale.com>
* ENGR00116472-1 U-BOOT upgrade to V2009.08Fred Fan2009-09-14-8/+0
| | | | | | | | | | U-BOOT upgrade from V2009.01 to V2009.08 Initial version for i.MX51 BBG board. Support: FEC, SPI, spi Nor Flash Boot from spi nor flash and mmc/sd Signed-off-by:Fred Fan <r01011@freescale.com>
* ENGR00114201: Add MMC configs to mx35 3stack config file.Terry Lv2009-09-10-1/+1
| | | | | | Add MMC configs to mx35 3stack config file. Signed-off-by: Terry Lv <r65388@freescale.com>
* ENGR00112273 BBG2: MMC boot support.Terry Lv2009-09-10-3/+344
| | | | | | BBG2: MMC boot support. Signed-off-by: Terry Lv <r65388@freescale.com>
* bugfix CONFIG_SYS_CONSOLE_INFO_QUIETDavid Brownell2009-08-30-1/+1
| | | | | | | | | The "console: unify printing current devices" patch goofed: CONFIG_SYS_CONSOLE_INFO_QUIET is supposed to *REMOVE* boot time noise, not add it. Said patch changed the #ifndefs to #ifdef; this one restores them to the proper sense. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
* fdt: Fix fdt_pci_dma_ranges handling of 64-bit rangesKumar Gala2009-08-09-2/+2
| | | | | | | | | | If the size of a region equal to 4G it can't be represnted in a 32-bit BAR so we should have marked that case as MEM64. Additionally bump the number of inbound windows up to 4 to handle the fact that Freescale PPCs that have an implicit window for CCSRBAR. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
* hush: Fix bogus free() callPeter Tyser2009-08-09-1/+1
| | | | | | | An off-by-one error in hush.c resulted in an unintentional free() call every time a command was executed Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
* env: kill off default_environment_sizeMike Frysinger2009-08-09-22/+1
| | | | | | | | | The only environment type that uses this variable is spi flash, and that is only because it is reimplementing the common set_default_env() function. So fix the spi flash code and kill off the default_environment_size in the process. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* export SPI functions to standalone appsMike Frysinger2009-08-09-0/+8
| | | | | | While we're here, fix the broken #ifdef handling in _exports.h. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Merge branch 'next' of git://git.denx.de/u-boot-coldfireWolfgang Denk2009-08-04-1/+1
|\
| * Command for accessing serial flash updateTsiChung Liew2009-07-14-1/+1
| | | | | | | | | | | | Change strtoul number base of argv 3 from 0 to 16 Signed-off-by: TsiChung Liew <tsicliew@gmail.com>
* | Fix ext2load return codeWolfgang Denk2009-07-28-36/+38
| | | | | | | | | | | | | | | | | | | | Make the ext2load command return 0 on success (instead of the file length). Also fix output format (get rid of random newlines) and some coding style issues (long lines etc.). Signed-off-by: Wolfgang Denk <wd@denx.de>
* | Less verbose output when loading vxworks 6.x imagesNiklaus Giger2009-07-27-1/+1
| | | | | | | | | | | | | | | | Loading vxWorks 5.x images resulted just into 3 or 4 lines of output. With vxWorks 6.x and the new GCC it emits about 30 lines, which is far too noisy in my opinion. Signed-off-by: Niklaus Giger <niklaus.giger@member.fsf.org>
* | Fix compiler warnings after loff_t changeKyungmin Park2009-07-27-1/+1
| | | | | | | | | | | | Now 'env_addr' type is loff_t so use correct field type. Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
* | video: move extern declarations from C to headersAlessandro Rubini2009-07-25-16/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This moves some extern declaration from lcd.c to lcd.h, removing unneeded ifdef around a pair of them. Additionally, since gunzip_bmp() was declared static in cmd_bmp.c but extern in lcd.c, I removed the static. The extra "#include <lcd.h>" in cmd_bmp.c is added to ensure the header is consistent with the source. This has been compile-tested on both ARM (at91 boards) and PowerPC (HH405_config, TQM823L_LCD_config, mcc200_config), to test all use combinations. Signed-off-by: Alessandro Rubini <rubini@gnudd.it> [agust@denx.de: removed gunzip_bmp() fixes as commit c01171ea did it] Signed-off-by: Anatolij Gustschin <agust@denx.de>
* | Coding Style cleanup; update CHANGELOG.Wolfgang Denk2009-07-23-1/+0
| | | | | | | | Signed-off-by: Wolfgang Denk <wd@denx.de>
* | Remove static declaration from gunzip_bmp()Mark Jackson2009-07-23-2/+2
| | | | | | | | | | | | | | | | | | This patch removes the static declaration from gunzip_bmp() Without it, the gunzip_bmp() function is not visible to common/lcd.c and fails to compile with an error. Signed-off-by: Mark Jackson <mpfj@mimc.co.uk>
* | cmd_tsi148: General cleanupPeter Tyser2009-07-23-41/+44
| | | | | | | | | | | | | | | | | | | | - Fix command help message - Disable DEBUG by default - Fix whitespace issues - Fix lines > 80 characters Signed-off-by: Peter Tyser <ptyser@gmail.com> Acked-by: Stefan Roese <sr@denx.de>
* | Re-add support for image type 'Standalone Program'Detlev Zundel2009-07-23-0/+33
| | | | | | | | | | | | Support for this type was lost during the bootm refactoring. Signed-off-by: Detlev Zundel <dzu@denx.de>
* | Add error checking for unsupported OS types.Detlev Zundel2009-07-23-2/+13
| | | | | | | | Signed-off-by: Detlev Zundel <dzu@denx.de>
* | Add DNS supportRobin Getz2009-07-22-0/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On 04 Oct 2008 Pieter posted a dns implementation for U-Boot. http://www.mail-archive.com/u-boot-users@lists.sourceforge.net/msg10216.html > > DNS can be enabled by setting CFG_CMD_DNS. After performing a query, > the serverip environment var is updated. > > Probably there are some cosmetic issues with the patch. Unfortunatly I > do not have the time to correct these. So if anybody else likes DNS > support in U-Boot and has the time, feel free to patch it in the main tree. Here it is again - slightly modified & smaller: - update to 2009-06 (Pieter's patch was for U-Boot 1.2.0) - README.dns is added - syntax is changed (now takes a third option, the env var to store the result in) - add a random port() function in net.c - sort Makefile in ./net/Makefile - dns just returns unless a env var is given - run through checkpatch, and clean up style issues - remove packet from stack - cleaned up some comments - failure returns much faster (if server responds, don't wait for timeout) - use built in functions (memcpy) rather than byte copy. Signed-off-by: Robin Getz <rgetz@blackfin.uclinux.org> Signed-off-by: Pieter Voorthuijsen <pieter.voorthuijsen@prodrive.nl> Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
* | Refresh LZMA-lib to v4.65Luigi 'Comio' Mantellini2009-07-22-3/+2
| | | | | | | | Signed-off-by: Luigi 'Comio' Mantellini <luigi.mantellini@idf-hit.com>
* | ubi: help message correctionAndrzej Wolski2009-07-20-2/+2
| | | | | | | | | | | | | | Fix incorrect information about size units and correct typo. Signed-off-by: Andrzej Wolski <awolski@poczta.fm> Signed-off-by: Stefan Roese <sr@denx.de>
* | common: fix 'dummy' is used uninitialized in this function warningKim Phillips2009-07-19-1/+1
| | | | | | | | | | | | | | | | | | fix this gcc 4.4 warning: xyzModem.c: In function 'xyzModem_stream_open': xyzModem.c:564: warning: 'dummy' is used uninitialized in this function Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
* | cmd_flash.c: fix fix compile error for boards with DataFlashWolfgang Denk2009-07-19-1/+3
| | | | | | | | | | | | | | | | | | | | | | Commit 5669ed45 ("cmd_flash.c: fix warning: unused variable 'addr_first'/'addr_last'") changed the #ifdef logic areound the declaration of these variables and missed a combination of settings of HAS_DATAFLASH with SYS_NO_FLASH; this patch fixes this. Also spotted by Alessandro Rubini <rubini@gnudd.com> Signed-off-by: Wolfgang Denk <wd@denx.de>
* | Add support for the Tundra TSI148 VME-bridgeReinhard Arlt2009-07-19-0/+489
| | | | | | | | | | | | | | | | | | | | From: Reinhard Arlt <reinhard.arlt@esd-electronics.com> This patch adds support for the Tundra TSI148 VME-bridge. It's used on the upcoming esd VME8349 board. Signed-off-by: Reinhard Arlt <reinhard.arlt@esd-electronics.com> Signed-off-by: Stefan Roese <sr@denx.de>
* | console: unify printing current devicesJean-Christophe PLAGNIOL-VILLARD2009-07-19-46/+29
| | | | | | | | | | | | Create stdio_print_current_devices() for this purpose Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* | Merge branch 'master' of git://git.denx.de/u-boot-nand-flashWolfgang Denk2009-07-19-2617/+18
|\ \
| * | Remove legacy NAND and disk on chip code.Scott Wood2009-07-16-2600/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Legacy NAND had been scheduled for removal. Any boards that use this were already not building in the previous release due to an #error. The disk on chip code in common/cmd_doc.c relies on legacy NAND, and it has also been removed. There is newer disk on chip code in drivers/mtd/nand; someone with access to hardware and sufficient time and motivation can try to get that working, but for now disk on chip is not supported. Signed-off-by: Scott Wood <scottwood@freescale.com>
| * | MTD: OneNAND: Increase the environment size to 4KiBKyungmin Park2009-07-16-17/+18
| | | | | | | | | | | | | | | | | | | | | Also use mtd operation instead of onenand functions Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Scott Wood <scottwood@freescale.com>
* | | cmd_flash.c: fix warning: unused variable 'addr_first'/'addr_last'Wolfgang Denk2009-07-18-3/+3
| | | | | | | | | | | | Signed-off-by: Wolfgang Denk <wd@denx.de>
* | | Merge branch 'master' of /home/wd/git/u-boot/custodiansWolfgang Denk2009-07-18-3/+3
|\ \ \
| * \ \ Merge branch 'master' of git://git.denx.de/u-boot-i2cWolfgang Denk2009-07-18-3/+3
| |\ \ \
| | * | | cmd_i2c: bugfix: add missing braceAlessandro Rubini2009-07-18-3/+3
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The sub-command parser missed a brace, so "return 0;" is always taken and no error message is diplayed if you say "i2c scan" instead of "i2c probe", for example. Proper brace is added. Also, a misleading and unneeded else is removed. Signed-off-by: Alessandro Rubini <rubini@gnudd.com.it>
* | | | stdio/device: rework function naming conventionJean-Christophe PLAGNIOL-VILLARD2009-07-18-75/+75
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | So far the console API uses the following naming convention: ======Extract====== typedef struct device_t; int device_register (device_t * dev); int devices_init (void); int device_deregister(char *devname); struct list_head* device_get_list(void); device_t* device_get_by_name(char* name); device_t* device_clone(device_t *dev); ======= which is too generic and confusing. Instead of using device_XX and device_t we change this into stdio_XX and stdio_dev This will also allow to add later a generic device mechanism in order to have support for multiple devices and driver instances. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Edited commit message. Signed-off-by: Wolfgang Denk <wd@denx.de>
* | | Merge branch 'master' of git://git.denx.de/u-boot-videoWolfgang Denk2009-07-17-2/+37
|\ \ \
| * | | Added support for splash screen positioningMatthias Weisser2009-07-17-2/+37
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds support splash image positioning by adding an additional variable "splashpos" to the environment. Please see README for details. Signed-off-by: Matthias Weisser <matthias.weisser@graf-syteco.de> Acked-by: Matthias Fuchs <matthias.fuchs@esd.eu> Signed-off-by: Anatolij Gustschin <agust@denx.de>
* | | sata: namespace curr_device variableMike Frysinger2009-07-17-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The curr_device variable really should be namespaced with a "sata_" prefix since it is only used by the sata code. It also avoids random conflicts with other pieces of code (like cmd_mmc): common/libcommon.a(cmd_sata.o):(.data.curr_device+0x0): multiple definition of `curr_device' common/libcommon.a(cmd_mmc.o):(.data.curr_device+0x0): first defined here Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* | | cmd_mmc: make curr_device staticMike Frysinger2009-07-17-1/+1
|/ / | | | | | | | | | | | | | | | | | | | | The curr_device variable isn't used outside of cmd_mmc, so mark it static to avoid conflicts with other pieces of code (like sata which also exports a curr_device). Otherwise we end up with stuff like: common/libcommon.a(cmd_sata.o):(.data.curr_device+0x0): multiple definition of `curr_device' common/libcommon.a(cmd_mmc.o):(.data.curr_device+0x0): first defined here Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* | Add simple hwconfig infrastructureAnton Vorontsov2009-07-16-0/+211
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch implements simple hwconfig infrastructure: an interface for software knobs to control a hardware. This is very simple implementation, i.e. it is implemented via `hwconfig' environment variable. Later we could write some "hwconfig <enable|disable|list>" commands, ncurses interface for Award BIOS-like interface, and frame-buffer interface for AMI GUI[1] BIOS-like interface with mouse support[2]. Current implementation details/limitations: 1. Doesn't support options dependencies and mutual exclusion. We can implement this by integrating apt-get[3] into the u-boot. But I didn't bother yet. 2. Since we don't implement hwconfig command, i.e. we're working with the environement directly, there is no way to tell that toggling a particular option will need a reboot to take an effect. So, for now it's advised to always reboot the target after modifying hwconfig variable. 3. We support hwconfig options with arguments. For example, set hwconfig dr_usb:mode=peripheral,phy_type=ulpi That means: - dr_usb - enable Dual-Role USB controller; - dr_usb:mode=peripheral - USB in Function mode; - dr_usb:phy_type=ulpi - USB should work with ULPI PHYs; The purpose of this simple implementation is to define some internal API and then we can continue improving user experience by adding more mature interface, like hwconfig command with bells and whistles. Or not adding, if we feel that current interface fits its needs. [1] http://en.wikipedia.org/wiki/American_Megatrends [2] Regarding ncurses and GUI with mouse support -- I'm just kidding. [3] The comment regarding apt-get is also a joke, meaning that dependency tracking could be non-trivial. For example, for enabling HW feature X we may need to disable Y, and turn Z into reduced mode (like RMII-only interface for ethernet, no MII). It's quite trivial to implement simple cases though. Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com> Acked-by: Kim Phillips <kim.phillips@freescale.com>
* Command improvements for ubifsSimon Kagstrom2009-07-09-5/+21
| | | | | | | | | Check that an argument is passed to ubifsmount and that addresses and sizes are actually numbers for ubifsload. Also improve the instructions a bit. Signed-off-by: Simon Kagstrom <simon.kagstrom@netinsight.net> Signed-off-by: Stefan Roese <sr@denx.de>
* Handle VID header offset in ubi part commandSimon Kagstrom2009-07-09-5/+16
| | | | | | | | | | | | The VID header offset is sometimes needed to initialize the UBI partition. This patch adds it (optionally) to the command line for the ubi part command. (Lines have been properly wrapped since last version) Signed-off-by: Simon Kagstrom <simon.kagstrom@netinsight.net> Acked-by: Stefan Roese <sr@denx.de> Signed-off-by: Stefan Roese <sr@denx.de>
* env_onenand: change env_address type from unsigned long to loff_tHeungJun Kim2009-07-07-1/+1
| | | | | | | | | | | If use the onenand boot, the env_relocate_spec() calls mtd->read(), and the type of the argument #2 of mtd->read() was changed to loff_t. But, the "env_addr" type is still unsigned long, thus this patch change the type from unsigned long to loff_t. Acked-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: HeungJun, Kim <riverful.kim@samsung.com> Signed-off-by: Scott Wood <scottwood@freescale.com>