| a9804be8 | 09-Aug-2010 |
Reinhard Meyer <u-boot@emk-elektronik.de> |
fix cmd_mmc.c, line 136 missing "
Remove warning for missing " at the end of line 136
Signed-off-by: Reinhard Meyer <u-boot@emk-elektronik.de> |
| ede16ea3 | 27-Jul-2010 |
Mike Frysinger <vapier@gentoo.org> |
miiphy: leverage current_mii cache more
For code that uses miiphy_{read,write}, every call invokes a full look up of the mii list. There is already a "current_mii" cache that is used by some code,
miiphy: leverage current_mii cache more
For code that uses miiphy_{read,write}, every call invokes a full look up of the mii list. There is already a "current_mii" cache that is used by some code, but have the miiphy_{read,write} function use it as well. This does increase the code size slightly, but I think it's worth it.
Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
show more ...
|
| 0daac978 | 27-Jul-2010 |
Mike Frysinger <vapier@gentoo.org> |
miiphy: unify device list lookup
Rather than have every func re-implement the list walking code, do it one local function. This shrinks the resulting object code a little while making the source mu
miiphy: unify device list lookup
Rather than have every func re-implement the list walking code, do it one local function. This shrinks the resulting object code a little while making the source much more manageable.
Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
show more ...
|
| 5700bb63 | 27-Jul-2010 |
Mike Frysinger <vapier@gentoo.org> |
miiphy: constify device name
The driver name does not need to be writable, so constify it.
Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Ben Warren <biggerbadderben@gmail.com> |
| 3840ebfa | 03-Aug-2010 |
Feng Wang <fwang02@harris.com> |
fdt: Fix bug in size calculation in fdt_resize() with initrd use
Original bug description from Feng (fdt_resize() bug caused "WARNING: could not set linux, initrd-start FDT_ERR_NOSPACE."):
What I g
fdt: Fix bug in size calculation in fdt_resize() with initrd use
Original bug description from Feng (fdt_resize() bug caused "WARNING: could not set linux, initrd-start FDT_ERR_NOSPACE."):
What I got is an error: "WARNING: could not set linux,initrd-start FDT_ERR_NOSPACE." after loading Device Tree blob. This in turn caused linux to miss init part.
After some digging, I found out the reason for this error, it is caused by fdt_resize().
FDT blob got resized after filling in all board specific information of PowerPC. (in boot_body_linux()). It reduced blob size with only extra space for two fdt_reserve_entry, one for fdt itself, and one for initrd. Then it's aligned to a 0x1000 page boundary. However, later in fdt_initrd(), it could add two more properties, initrd-start AND initrd-end, each one needs at least two fdt_reserve_entry sizes done by _fdt_add_property() (name and value). Thus, the two fdt_reserve_entry extra space is not sufficient.
So for some specific fdt size which is just under the page boundary after resizing, this will cause an error of FDT_ERR_NOSPACE in fdt_initrd() when setting those two properties, and failed to pass initrd information to linux.
My fix is in fdt_resize(), leave at least 4 fdt_reserve_entry for initrd. So instead of 2*sizeof(struct fdt_reserve_entry) for actual_totalsize, use 5*sizeof(struc fdt_reserve_entry).
Stefan: I got this same error on katmai, when trying to boot with initrd (run flash_self). This patch fixes this issue.
Signed-off-by: Feng Wang <fwang02@harris.com> Tested-by: Stefan Roese <sr@denx.de> Cc: Jerry Van Baren <gvb.uboot@gmail.com> Acked-by: Gerald Van Baren <vanbaren@cideas.com>
show more ...
|
| 388a29d0 | 31-Jul-2010 |
Frans Meulenbroeks <fransmeulenbroeks@gmail.com> |
various cmd_* files: fixed layout a little bit
Most of the files have U_BOOT_CMD on a separate line, but a few didn't and had the first line on the same line as U_BOOT_CMD.
This changes these files
various cmd_* files: fixed layout a little bit
Most of the files have U_BOOT_CMD on a separate line, but a few didn't and had the first line on the same line as U_BOOT_CMD.
This changes these files by adding a line break and a tab
Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
show more ...
|
| cc9f607b | 31-Jul-2010 |
Frans Meulenbroeks <fransmeulenbroeks@gmail.com> |
various cmd_* files: remove the command name from the help message
removed the command name from the help message as it is already printed. for cmd_mmc also rewrote the message a little bit
Signed-
various cmd_* files: remove the command name from the help message
removed the command name from the help message as it is already printed. for cmd_mmc also rewrote the message a little bit
Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
show more ...
|
| a4e8d9f5 | 29-Jul-2010 |
Mike Frysinger <vapier@gentoo.org> |
flash_protect: check for NULL flash info
If a flash is unable to be detected, and then someone calls flash_protect on it (like the common code does in flash_init), the flash_protect logic will deref
flash_protect: check for NULL flash info
If a flash is unable to be detected, and then someone calls flash_protect on it (like the common code does in flash_init), the flash_protect logic will dereference a NULL pointer.
Since flash_protect already does sanity checking on the info structs, add a NULL pointer check in there.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
show more ...
|
| 9ed4a958 | 24-Jul-2010 |
Wolfgang Denk <wd@denx.de> |
getenv_f(): fix handling of too short buffers
Fix error handling in getenv_f() when the user provided buffer is too short to hold the variable name; make sure to truncate and NUL-terminate without o
getenv_f(): fix handling of too short buffers
Fix error handling in getenv_f() when the user provided buffer is too short to hold the variable name; make sure to truncate and NUL-terminate without overwriting the buffer limits.
Signed-off-by: Wolfgang Denk <wd@denx.de>
show more ...
|
| 739b8080 | 29-Jul-2010 |
Mike Frysinger <vapier@gentoo.org> |
dataflash mmc mux: use common cmd_usage function
Signed-off-by: Mike Frysinger <vapier@gentoo.org> |
| a7481b35 | 29-Jul-2010 |
Mike Frysinger <vapier@gentoo.org> |
mflash: use common cmd_usage function
Signed-off-by: Mike Frysinger <vapier@gentoo.org> |
| 8faba489 | 23-Jul-2010 |
Mike Frysinger <vapier@gentoo.org> |
cmd editing: optimize/shrink output blanking
No need to output spaces 1 char at a time in a loop when the printf code can do the same thing with the right format string. This shrinks things and giv
cmd editing: optimize/shrink output blanking
No need to output spaces 1 char at a time in a loop when the printf code can do the same thing with the right format string. This shrinks things and gives a nice speed up when killing off lines more than a byte or two as printf will send out the buffer in one big chunk.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
show more ...
|
| 958e1206 | 25-Jun-2010 |
Stephan Linz <linz@li-pro.net> |
fdt relocate: have more attention to use a bootmap or not
Platforms with flat device tree support can use a bootmap to relocate the fdt_blob. This is not a must. That's why the relocation function b
fdt relocate: have more attention to use a bootmap or not
Platforms with flat device tree support can use a bootmap to relocate the fdt_blob. This is not a must. That's why the relocation function boot_relocate_fdt() should be use only if CONFIG_OF_LIBFDT was defined together with CONFIG_SYS_BOOTMAPSZ (see common/cmd_bootm.c).
On MicroBlaze platforms there is no need to use a bootmap to relocate a fdt blob. So we need a more precise focus on the compilation and usage of boot_relocate_fdt().
In general it is valid to exclude the function boot_relocate_fdt() if the bootmap size CONFIG_SYS_BOOTMAPSZ is not defined.
Signed-off-by: Stephan Linz <linz@li-pro.net>
show more ...
|
| 5f305003 | 07-Aug-2010 |
Prafulla Wadaskar <prafulla@pe-lt078.(none)> |
cmd_ide: add support for Kirkwood
Added MVSATAC definitions to Kirkwood. Added support for Kirkwood in cmd_ide.
Signed-off-by: Prafulla Wadaskar <prafulla@marvell.com> |
| 113bfe48 | 07-Aug-2010 |
Albert Aribaud <[albert.aribaud@free.fr]> |
cmd_ide: add support for orion5x
Add MVSATAHC definitions to orion5x. Add support for orion5x in cmd_ide.
Signed-off-by: Albert Aribaud <albert.aribaud@free.fr> |
| f2a37fcd | 07-Aug-2010 |
Albert Aribaud <[albert.aribaud@free.fr]> |
ide: add configuration
CONFIG_IDE_SWAP_IO
This configuration option replaces a complex conditional in cmd_ide.c with an explicit define to be added to SoC or board configs.
Signed-off-by: Albert A
ide: add configuration
CONFIG_IDE_SWAP_IO
This configuration option replaces a complex conditional in cmd_ide.c with an explicit define to be added to SoC or board configs.
Signed-off-by: Albert Aribaud <albert.aribaud@free.fr>
show more ...
|
| 60fdc5f2 | 05-Aug-2010 |
Matthias Weisser <weisserm@arcor.de> |
LZMA and LZO causes compile error
If both LZMA and LZO compressions are used there is a compile error in cmd_bootm.c
Signed-off-by: Matthias Weisser <weisserm@arcor.de> |
| c519facc | 08-Jul-2010 |
Matthew McClintock <msm@freescale.com> |
Fix condition where bootm_size not set and wrong memory size reported
If the user sets bootm_low and does not set bootm_size, u-boot will report the memory node in the flat device tree incorrectly.
Fix condition where bootm_size not set and wrong memory size reported
If the user sets bootm_low and does not set bootm_size, u-boot will report the memory node in the flat device tree incorrectly. Instead of reporting the remaining size of memory, it will report the total available memory which is incorrect.
Specifically this fixes the situation when booting a relocatable kernel and the memory is reported as an offset and size in the device tree, and the size needs to be adjusted accordingly.
Signed-off-by: Matthew McClintock <msm@freescale.com> Acked-by: Kumar Gala <galak@kernel.crashing.org>
show more ...
|
| cdb74977 | 24-Jul-2010 |
Wolfgang Denk <wd@denx.de> |
Rename getenv_r() into getenv_f()
While running from flash, i. e. before relocation, we have only a limited C runtime environment without writable data segment. In this phase, some configurations (f
Rename getenv_r() into getenv_f()
While running from flash, i. e. before relocation, we have only a limited C runtime environment without writable data segment. In this phase, some configurations (for example with environment in EEPROM) must not use the normal getenv(), but a special function. This function had been called getenv_r(), with the idea that the "_r" suffix would mean the same as in the _r_eentrant versions of some of the C library functions (for example getdate vs. getdate_r, getgrent vs. getgrent_r, etc.).
Unfortunately this was a misleading name, as in U-Boot the "_r" generally means "running from RAM", i. e. _after_ relocation.
To avoid confusion, rename into getenv_f() [as "running from flash"]
Signed-off-by: Wolfgang Denk <wd@denx.de> Acked-by: Detlev Zundel <dzu@denx.de>
show more ...
|
| 78e1e846 | 25-Jul-2010 |
Mike Frysinger <vapier@gentoo.org> |
bootm: fix pointer warning with lzma
Avoid warning: cmd_bootm.c: In function 'bootm_load_os': cmd_bootm.c:394: warning: passing argument 2 of 'lzmaBuffToBuffDecompress' from incompatible pointer ty
bootm: fix pointer warning with lzma
Avoid warning: cmd_bootm.c: In function 'bootm_load_os': cmd_bootm.c:394: warning: passing argument 2 of 'lzmaBuffToBuffDecompress' from incompatible pointer type
For 32 bit systems, this change shouldn't make a difference to code size since sizeof(size_t) and sizeof(unsigned int) are equal. But it does fix the warning.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
show more ...
|
| b4b847e9 | 09-Jul-2010 |
Kumar Gala <galak@kernel.crashing.org> |
fdt: Add function to alloc phandle values
If we are creating reference (handles) to nodes in a device tree we need to first create a new phandle in node and this needs a new phandle value. So we se
fdt: Add function to alloc phandle values
If we are creating reference (handles) to nodes in a device tree we need to first create a new phandle in node and this needs a new phandle value. So we search through the whole dtb to find the max phandle value and return the next greater value for a new phandle allocation.
Signed-off-by: Kumar Gala <galak@kernel.crashing.org> Acked-by: Gerald Van Baren <vanbaren@cideas.com>
show more ...
|
| 7385c28e | 19-Jul-2010 |
Wolfgang Denk <wd@denx.de> |
fs/fat: Big code cleanup.
- reformat - throw out macros like FAT_DPRINT and FAT_DPRINT - remove dead code
Signed-off-by: Wolfgang Denk <wd@denx.de> |
| 226fa9bb | 19-Jul-2010 |
Wolfgang Denk <wd@denx.de> |
usb_storage.c: change progress output in debug() message
The dots printed by common/usb_storage.c as progress meter corrupt the output for example of "fatls usb" commands like this:
=> fatls usb 0
usb_storage.c: change progress output in debug() message
The dots printed by common/usb_storage.c as progress meter corrupt the output for example of "fatls usb" commands like this:
=> fatls usb 0 . <<==== here 29 file.001 29 file.002 29 file.003 29 file.004 29 file.005 29 file.006 29 file.007 29 file.008 29 file.009 29 file.010 29 file.011 29 file.012 29 file.013 29 file.014 29 file.015 29 file.016 . <<==== here 29 file.017 29 file.018 29 file.019 ...
Turn the progress output into a debug message.
Signed-off-by: Wolfgang Denk <wd@denx.de> Cc: Remy Bohmer <linux@bohmer.net>
show more ...
|
| a17c548b | 19-Jul-2010 |
Wolfgang Denk <wd@denx.de> |
usb_storage.c: initialize device type
The device type was left uninitialized which caused later tests against DEV_TYPE_UNKNOWN to fail. In the result, "usb part" would attempt to print information a
usb_storage.c: initialize device type
The device type was left uninitialized which caused later tests against DEV_TYPE_UNKNOWN to fail. In the result, "usb part" would attempt to print information about non-existent devices like this:
=> usb part print_part of 0
Partition Map for USB device 0 -- Partition Type: DOS
Partition Start Sector Num Sectors Type 1 0 2031616 f8
print_part of 1 ## Unknown partition table
print_part of 2 ## Unknown partition table
print_part of 3 ## Unknown partition table
print_part of 4 ## Unknown partition table =>
By initializing the type as DEV_TYPE_UNKNOWN we avoid all the "Unknown partition table" messages.
[Note: the "print_part of ?" messages is left over debug code that will be removed in another patch.]
Signed-off-by: Wolfgang Denk <wd@denx.de> Cc: Remy Bohmer <linux@bohmer.net>
show more ...
|
| 47e26b1b | 16-Jul-2010 |
Wolfgang Denk <wd@denx.de> |
cmd_usage(): simplify return code handling
Lots of code use this construct:
cmd_usage(cmdtp); return 1;
Change cmd_usage() let it return 1 - then we can replace all these ocurrances by
return
cmd_usage(): simplify return code handling
Lots of code use this construct:
cmd_usage(cmdtp); return 1;
Change cmd_usage() let it return 1 - then we can replace all these ocurrances by
return cmd_usage(cmdtp);
This fixes a few places with incorrect return code handling, too.
Signed-off-by: Wolfgang Denk <wd@denx.de>
show more ...
|