| a4cc1c48 | 14-Aug-2012 |
Tom Rini <trini@ti.com> |
SPL: SPI: Enhance spi_spl_load to match the other load functions
Signed-off-by: Tom Rini <trini@ti.com> |
| 022b4975 | 27-Aug-2012 |
Stefan Roese <sr@denx.de> |
SPL: Add option to skip copying of the mkimage header
On some system (e.g. powerpc), the load-address and entry-point is located at address 0. So the current approach to load the image (payload) inc
SPL: Add option to skip copying of the mkimage header
On some system (e.g. powerpc), the load-address and entry-point is located at address 0. So the current approach to load the image (payload) including the header to the address "load-address - 64" can't work here.
This patch adds an flag to skip this copying including header to the SPL framework. By setting SPL_COPY_PAYLOAD_ONLY, only the playload will be copied. This will be used by the SPL NOR flash driver on powerpc.
Signed-off-by: Stefan Roese <sr@denx.de> Signed-off-by: Tom Rini <trini@ti.com>
show more ...
|
| 33d34646 | 27-Aug-2012 |
Stefan Roese <sr@denx.de> |
SPL: Add NOR flash booting support
SPL NOR flash booting support is quite simple. Only copying of the images is needed.
On MPC5xxx we need to make sure to only use the standard memcpy() implementat
SPL: Add NOR flash booting support
SPL NOR flash booting support is quite simple. Only copying of the images is needed.
On MPC5xxx we need to make sure to only use the standard memcpy() implementation and not the MPC5xxx specific one. As the MPC5xxx version has some complexity which is not needed for this SPL booting.
Signed-off-by: Stefan Roese <sr@denx.de> Signed-off-by: Tom Rini <trini@ti.com>
show more ...
|
| a655938a | 06-Sep-2012 |
Chander Kashyap <chander.kashyap@linaro.org> |
PXE: FDT: Add support for fdt in PXE
Now DT support is becoming common for all new SoC's. Hence it is better to have option for getting specific FDT from the remote server.
This patch adds support
PXE: FDT: Add support for fdt in PXE
Now DT support is becoming common for all new SoC's. Hence it is better to have option for getting specific FDT from the remote server.
This patch adds support for new label i.e. 'fdt'. This will allow to retrieve 'fdt blob' from the remote server. This patch take care for the following scenarios.
The usage of fdt is optional. The 'fdt blob' can be retrieved from tftp or can be available locally or can be absent.
If 'fdt_addr_r' environment variable is set and 'fdt' label is defined retrieve 'fdt blob' from tftp. 'fdt_addr_r' is then passed along bootm command.
If 'fdt_addr' is set and 'fdt blob' is not retrieved from the tftp pass 'fdt_addr' to bootm command. In this case 'fdt blob' will be available at 'fdt_addr'.
If 'fdt_addr' is not set and 'fdt blob' is not retrieve from tftp pass NULL to boot command. In this case 'fdt blob' is not required and absent.
Signed-off-by: Chander Kashyap <chander.kashyap@linaro.org> Acked-by: Jason Hobbs <jason.hobbs@calxeda.com>
show more ...
|
| d97b4ce8 | 14-Aug-2012 |
Tom Rini <trini@ti.com> |
SPL: NAND: Move arch/arm/cpu/armv7/omap-common/spl_nand.c to common/spl
We move the spl_nand_load_image function to common/spl. This will allow for easier integration of SPL-boots-Linux code on oth
SPL: NAND: Move arch/arm/cpu/armv7/omap-common/spl_nand.c to common/spl
We move the spl_nand_load_image function to common/spl. This will allow for easier integration of SPL-boots-Linux code on other arches.
Signed-off-by: Tom Rini <trini@ti.com>
show more ...
|
| 77552b06 | 27-Aug-2012 |
Stefan Roese <sr@denx.de> |
SPL: Use image_get_xxx() functions to access header values
Signed-off-by: Stefan Roese <sr@denx.de> Signed-off-by: Tom Rini <trini@ti.com> |
| ae83d882 | 23-Aug-2012 |
Stefano Babic <sbabic@denx.de> |
SPL: do not use fix value for u-boot size
If an u-boot image is not found, SPL thinks to load a bare u-boot.bin image with a maximum size of 200KB. Use CONFIG_SYS_MONITOR_LEN instead.
Signed-off-by
SPL: do not use fix value for u-boot size
If an u-boot image is not found, SPL thinks to load a bare u-boot.bin image with a maximum size of 200KB. Use CONFIG_SYS_MONITOR_LEN instead.
Signed-off-by: Stefan Roese <stefan.roese@gmail.com> Signed-off-by: Stefano Babic <sbabic@denx.de> Signed-off-by: Tom Rini <trini@ti.com>
show more ...
|
| 6507f133 | 22-Aug-2012 |
Tom Rini <trini@ti.com> |
SPL: Create arch/arm/lib/spl.c for board_init_f and jump_to_image_linux
In SPL (CONFIG_SPL_FRAMEWORK) board_init_f must setup the stack pointer, clear the BSS and call board_init_r. We mark this as
SPL: Create arch/arm/lib/spl.c for board_init_f and jump_to_image_linux
In SPL (CONFIG_SPL_FRAMEWORK) board_init_f must setup the stack pointer, clear the BSS and call board_init_r. We mark this as weak as some platforms may need to perform additional initalization at this point. We provide a gd that we know will be in a usable location, once the BSS has been cleared to help with this as well. Finally, we no longer call relocate_code so remove that from the armv7 version.
Next, both board_init_f and jump_to_image_linux are going to be inherently arch-specific, so move these versions to arch/arm/lib/spl.c
Signed-off-by: Tom Rini <trini@ti.com>
show more ...
|
| 47f7bcae | 13-Aug-2012 |
Tom Rini <trini@ti.com> |
SPL: Move the omap SPL framework to common/spl
Add a new flag, CONFIG_SPL_FRAMEWORK to opt into the common/spl SPL framework, enable on all of the previously using boards. We move the spl_ymodem.c
SPL: Move the omap SPL framework to common/spl
Add a new flag, CONFIG_SPL_FRAMEWORK to opt into the common/spl SPL framework, enable on all of the previously using boards. We move the spl_ymodem.c portion to common/ and spl_mmc.c to drivers/mmc/. We leave the NAND one in-place as we plan to replace it later in this series.
We use common/spl to avoid linker problems with respect to merging constant strings in objects. Otherwise all strings in common/ will be linked in and kept which grows SPL in size too much.
Signed-off-by: Tom Rini <trini@ti.com>
show more ...
|
| 1170e634 | 18-Sep-2012 |
Benoît Thébaudeau <benoit.thebaudeau@advansee.com> |
FAT: Make it possible to read from any file position
When storage devices contain files larger than the embedded RAM, it is useful to be able to read these files by chunks, e.g. for a software updat
FAT: Make it possible to read from any file position
When storage devices contain files larger than the embedded RAM, it is useful to be able to read these files by chunks, e.g. for a software update to the embedded NAND Flash from an external storage device (USB stick, SD card, etc.).
Hence, this patch makes it possible by adding a new FAT API to read files from a given position. This patch also adds this feature to the fatload command.
Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com> Cc: Wolfgang Denk <wd@denx.de> Signed-off-by: Tom Rini <trini@ti.com>
show more ...
|
| 9aa90c1d | 23-Sep-2012 |
Igor Grinberg <grinberg@compulab.co.il> |
env: checkpatch clean env_fat
env_fat has several checkpatch warnings - clean those up.
Signed-off-by: Igor Grinberg <grinberg@compulab.co.il> |
| 3bb89e5b | 23-Sep-2012 |
Igor Grinberg <grinberg@compulab.co.il> |
env: remove duplicated env_get_char_spec()
env_fat and env_remote have an implementation of env_get_char_spec() function that is not different than the default. Remove the duplicated code.
Signed-o
env: remove duplicated env_get_char_spec()
env_fat and env_remote have an implementation of env_get_char_spec() function that is not different than the default. Remove the duplicated code.
Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
show more ...
|
| b3873d3f | 25-Sep-2012 |
Tom Rini <trini@ti.com> |
Merge branch 'master' of git://git.denx.de/u-boot-video |
| 5cf41dcc | 21-Sep-2012 |
Stephen Warren <swarren@nvidia.com> |
cmd_part: add partition-related command
This implements the following:
part uuid mmc 0:1 -> print partition UUID part uuid mmc 0:1 uuid -> set environment variable to partition UUID part list m
cmd_part: add partition-related command
This implements the following:
part uuid mmc 0:1 -> print partition UUID part uuid mmc 0:1 uuid -> set environment variable to partition UUID part list mmc 0 -> list the partitions on the specified device
"part uuid" can be useful when writing a bootcmd which searches all known devices for something bootable, and then wants the kernel to use the same partition as the root device, e.g.:
part uuid ${devtype} ${devnum}:${rootpart} uuid setenv bootargs root=PARTUUID=${uuid} ...
Signed-off-by: Stephen Warren <swarren@nvidia.com>
show more ...
|
| 10a37fd7 | 21-Sep-2012 |
Stephen Warren <swarren@nvidia.com> |
disk: get_device_and_partition() "auto" partition and cleanup
Rework get_device_and_partition() to: a) Implement a new partition ID of "auto", which requests that U-Boot search for the first "boo
disk: get_device_and_partition() "auto" partition and cleanup
Rework get_device_and_partition() to: a) Implement a new partition ID of "auto", which requests that U-Boot search for the first "bootable" partition, and fall back to the first valid partition if none is found. This way, users don't need to specify an explicit partition in their commands. b) Make use of get_device(). c) Add parameter to indicate whether returning a whole device is acceptable, or whether a partition is mandatory. d) Make error-checking of the user's device-/partition-specification more complete. In particular, if strtoul() doesn't convert all characters, it's an error rather than just ignored.
The resultant device/partition returned by the function will be as follows, based on whether the disk has a partition table (ptable) or not, and whether the calling command allows the whole device to be returned or not.
(D and P are integers, P >= 1)
D D: No ptable: !allow_whole_dev: error allow_whole_dev: device D ptable: device D partition 1 D:0 !allow_whole_dev: error allow_whole_dev: device D D:P No ptable: error ptable: device D partition P D:auto No ptable: !allow_whole_dev: error allow_whole_dev: device D ptable: first partition in device D with bootable flag set. If none, first valid paratition in device D.
Note: In order to review this patch, it's probably easiest to simply look at the file contents post-application, rather than reading the patch itself.
Signed-off-by: Rob Herring <rob.herring@calxeda.com> [swarren: Rob implemented scanning for bootable partitions. I fixed a couple of issues there, switched the syntax to ":auto", added the error-checking rework, and ":0" syntax for the whole device] Signed-off-by: Stephen Warren <swarren@nvidia.com>
show more ...
|
| 650f3664 | 23-Aug-2012 |
Rob Herring <rob.herring@calxeda.com> |
cmd_reiser: use common get_device_and_partition function
Convert reiserload and reiserls to use common device and partition parsing function. With the common function "dev:part" can come from the en
cmd_reiser: use common get_device_and_partition function
Convert reiserload and reiserls to use common device and partition parsing function. With the common function "dev:part" can come from the environment and a '-' can be used in that case.
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
show more ...
|
| 41204570 | 23-Aug-2012 |
Rob Herring <rob.herring@calxeda.com> |
cmd_zfs: use common get_device_and_partition function
Convert zfsload and zfsls to use common device and partition parsing function. With the common function "dev:part" can come from the environment
cmd_zfs: use common get_device_and_partition function
Convert zfsload and zfsls to use common device and partition parsing function. With the common function "dev:part" can come from the environment and a '-' can be used in that case.
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
show more ...
|
| 475c7970 | 23-Aug-2012 |
Rob Herring <rob.herring@calxeda.com> |
cmd_disk: use common get_device_and_partition function
Signed-off-by: Rob Herring <rob.herring@calxeda.com> |
| cfda5aea | 23-Aug-2012 |
Rob Herring <rob.herring@calxeda.com> |
cmd_fat: use common get_device_and_partition function
Convert fatload, fatls, and fatinfo to use common device and partition parsing function. With the common function "dev:part" can come from the e
cmd_fat: use common get_device_and_partition function
Convert fatload, fatls, and fatinfo to use common device and partition parsing function. With the common function "dev:part" can come from the environment and a '-' can be used in that case.
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
show more ...
|
| 81180819 | 23-Aug-2012 |
Rob Herring <rob.herring@calxeda.com> |
cmd_extX: use common get_device_and_partition function
Convert ext2/4 load, ls, and write functions to use common device and partition parsing function. With the common function "dev:part" can come
cmd_extX: use common get_device_and_partition function
Convert ext2/4 load, ls, and write functions to use common device and partition parsing function. With the common function "dev:part" can come from the environment and a '-' can be used in that case.
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
show more ...
|
| 94501062 | 23-Aug-2012 |
Rob Herring <rob.herring@calxeda.com> |
ext4: remove init_fs/deinit_fs
There's no real need to expose this and it can be removed by using a static allocation.
Signed-off-by: Rob Herring <rob.herring@calxeda.com> |
| 7405a133 | 21-Sep-2012 |
Rob Herring <rob.herring@calxeda.com> |
combine block device load commands into common function
All the raw block load commands duplicate the same code. Starting with the ide version as it has progress updates convert ide, usb, and scsi b
combine block device load commands into common function
All the raw block load commands duplicate the same code. Starting with the ide version as it has progress updates convert ide, usb, and scsi boot commands to all use a common version.
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
show more ...
|
| 5675b509 | 25-Sep-2012 |
Tom Rini <trini@ti.com> |
Merge branch 'master' of git://git.denx.de/u-boot-mpc85xx |
| d23019f3 | 22-Sep-2012 |
Anatolij Gustschin <agust@denx.de> |
common/lcd: fix build breakage for at91sam9x5ek and trats boards
Commit 203c37b8c5556aad1901ce4954792afd718c7d42 (common lcd: simplify core functions)
and commit bfdcc65e1163b4891643c2a670570c478b9
common/lcd: fix build breakage for at91sam9x5ek and trats boards
Commit 203c37b8c5556aad1901ce4954792afd718c7d42 (common lcd: simplify core functions)
and commit bfdcc65e1163b4891643c2a670570c478b9af2a4 (common lcd: simplify lcd_display_bitmap)
caused build breakage for at91sam9x5ek board configurations and for trats board. Fix these build errors.
Signed-off-by: Anatolij Gustschin <agust@denx.de> Acked-by: Nikita Kiryanov <nikita@compulab.co.il>
show more ...
|
| f8be7d65 | 03-Aug-2012 |
Joe Hershberger <joe.hershberger@ni.com> |
net: Improve the speed of netconsole
Previously u-boot would initialize the network interface for every network operation and then shut it down again. This makes sense for most operations where the
net: Improve the speed of netconsole
Previously u-boot would initialize the network interface for every network operation and then shut it down again. This makes sense for most operations where the network in not known to be needed soon after the operation is complete. In the case of netconsole, it will use the network for every interaction with the shell or every printf. This means that the network is being reinitialized very often. On many devices, this intialization is very slow.
This patch checks for consecutive netconsole actions and leaves the ethernet hardware initialized between them. It will still behave the same old way for all other network operations and any time another network operation happens between netconsole operations.
Signed-off-by: Joe Hershberger <joe.hershberger@ni.com> Cc: Stefano Babic <sbabic@denx.de> Acked-by: Stefano Babic <sbabic@denx.de>
show more ...
|