We need a way to support more than one board per binary in U-Boot with
device tree. Various methods have been discussed. The one that seems to make
the most sense is to adjust SPL so that it can load a FIT which contains
U-Boot and several device tree binaries. This is how things with with Linux:
l
At present main() is very long. Split out the argument processing to make
it easier to follow.
Signed-off-by: Simon Glass
---
Changes in v2: None
tools/mkimage.c | 56
1 file changed, 32 insertions(+), 24 deletions(-)
diff --git a/tools
The current way of parsing arguments is a bit clumsy. It seems better to
use getopt() which is commonly used for this purpose.
Convert the code to use getopt() and make a few minor adjustments as needed.
Signed-off-by: Simon Glass
---
Changes in v2: None
tools/mkimage.c | 233
Adjust the code so that option alphabetical order matches the order in the
switch() statement. This makes it easier to find options.
Signed-off-by: Simon Glass
---
Changes in v2: None
tools/mkimage.c | 50 +-
1 file changed, 25 insertions(+), 25
The existing function to add a new property to a tree being built requires
that the entire contents of the new property be passed in. For some
applications it is more convenient to be able to add the property contents
later, perhaps by reading from a file. This avoids double-buffering of the
conten
Sometimes incorrect arguments are supplied but the reason is not obvious to
the user. Add some helpful messages.
Signed-off-by: Simon Glass
---
Changes in v2: None
tools/mkimage.c | 17 +
1 file changed, 9 insertions(+), 8 deletions(-)
diff --git a/tools/mkimage.c b/tools/mkim
Kconfig options must defined in the defconfig files. Since RSA_SOFTWARE_EXP
relies on CONFIG_DM, unless it is set in kconfig we cannot enable RSA.
Remove the hacks which enable CONFIG_DM in header files and update the
defconfig.
Signed-off-by: Simon Glass
---
Changes in v2: None
arch/arm/inclu
This is not used outside mkimage.c, so make this variable static.
Signed-off-by: Simon Glass
---
Changes in v2: None
tools/mkimage.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/mkimage.c b/tools/mkimage.c
index 5aae748..b8293f6 100644
--- a/tools/mkimage.c
+++ b/t
To avoid a forward declaration, move the usage() function higher in the
file.
Signed-off-by: Simon Glass
---
Changes in v2: None
tools/mkimage.c | 81 ++---
1 file changed, 42 insertions(+), 39 deletions(-)
diff --git a/tools/mkimage.c b/too
At present this file is omitted. It is used to build up a binary device
tree. We plan to do this in mkimage, so include this file in the build.
Signed-off-by: Simon Glass
---
Changes in v2: None
tools/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/Makefile b
Various boards have the wrong Kconfig ordering now. To avoid a misleading
diff in the next patch, reorder the configuration correctly.
Signed-off-by: Simon Glass
---
Changes in v2: None
configs/am335x_gp_evm_defconfig | 2 +-
configs/am437x_sk_evm_defconfig | 6 +++---
conf
At present, when generating a FIT, mkimage requires a .its file containing
the structure of the FIT and referring to the images to be included.
Creating the .its file is a separate step that makes it harder to use FIT.
This is not required for creating legacy images.
Often the FIT is pretty stand
This provides a way to load a FIT containing U-Boot and a selection of device
tree files. The board can select the correct device tree by probing the
hardware. Then U-Boot is started with the selected device tree.
Signed-off-by: Simon Glass
---
Changes in v2:
- Add a few missing header files
K
This option has no meaning without OF_CONTROL, so add a dependency.
Signed-off-by: Simon Glass
---
Changes in v2: None
dts/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/dts/Kconfig b/dts/Kconfig
index fb2d79e..ba83d5f 100644
--- a/dts/Kconfig
+++ b/dts/Kconfig
@@ -53,6 +53,7 @@ e
It is useful to know which sunxi board you are booting. Display this on
start-up to avoid confusion.
Signed-off-by: Simon Glass
---
Changes in v2: None
include/configs/sunxi-common.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/configs/sunxi-common.h b/include/configs/sunxi-comm
This will be used in mkimage when working out the required size of the FIT
based on the files to be placed into it.
Signed-off-by: Simon Glass
---
Changes in v2: None
doc/mkimage.1 | 4 ++--
tools/imagetool.c | 22 ++
tools/imagetool.h | 12
3 files change
One limitation of FIT is that all the data is 'inline' within it, using a
'data' property in each image node. This means that to find out what is in
the FIT it is necessary to scan the entire file. Once loaded it can be
scanned and then the images can be copied to the correct place in memory.
In S
At present FIT images are set up by providing a device tree source file
which is a file with a .its extension. We want to support automatically
creating this file based on the image supplied to mkimage. This means that
even though the final file type is always IH_TYPE_FLATDT, the image inside
may b
Enable SPL FIT support for the Linksprite pcDuino3 as an example of how this
feature is used.
This is only for demonstration purposes and is not to be applied.
Signed-off-by: Simon Glass
---
Changes in v2: None
arch/arm/cpu/armv7/sunxi/board.c | 5 +
configs/Linksprite_pcDuino3_defcon
Add an option to enable libfdt in SPL. This can be useful when decoding
FIT files in SPL.
We need to make sure this option is not enabled in SPL by this change.
Also this option needs to be enabled in host builds. Si add a new
IMAGE_USE_LIBFDT #define which can be used in files that are built on t
On 02/22/2016 02:15 PM, Lubomir Rintel wrote:
> Scrolling the simple framebuffer is really slow in Raspberry Pi to the
> point it delays the boot by a second or two and makes longer output
> inconvenient to follow (printenv, md).
Acked-by: Stephen Warren
__
To make the auto-FIT feature useful we need to be able to provide a list of
device tree files on the command line for mkimage to add into the FIT. Add
support for this feature.
So far there is no support for hashing or verified boot using this method.
For those cases, a .its file must still be pro
SPL calls this function with each device tree it can find in the FIT. The
board should implement this function, using whatever hardware detection it
can muster to determine the correct device tree.
Signed-off-by: Simon Glass
---
Changes in v2: None
include/image.h | 13 +
1 file ch
Detect a FIT when loading from MMC and handle it using the new FIT SPL
support.
Signed-off-by: Simon Glass
---
Changes in v2: None
common/spl/spl_mmc.c | 75 +++-
1 file changed, 57 insertions(+), 18 deletions(-)
diff --git a/common/spl/spl_mmc.
When building a FIT, more than one device tree can be included. The board
can select (at run-time) the one that it wants.
Add a Kconfig option to allow the list of devices trees (supported by the
board) to be specified.
When using SPL_LOAD_FIT, build u-boot.img in FIT format instead of the
legacy
Sometimes it is useful to obtain the short name for an Operating System,
architecture or compression mechanism. Provide functions for this.
Signed-off-by: Simon Glass
---
Changes in v2: None
common/image.c | 26 ++
include/image.h | 27 +++
2 fi
Since we now support data outside the FIT image, bring it into the FIT image
first before we do any processing. This avoids adding new functionality to
the core FIT code for now.
Signed-off-by: Simon Glass
---
Changes in v2: None
tools/fit_image.c | 97 +
Hi Masahiro,
On 17 February 2016 at 20:36, Masahiro Yamada
wrote:
> Hi Simon,
>
> I am working on U-Boot support on my new ARMv8 SoC.
> I was hit by a problem with fdtgrep.
>
> (Note: CONFIG_SPL_OF_CONTROL is on UniPhier SoC family)
>
OK thanks for the report. I will take a look at the end of th
On 02/22/2016 02:06 PM, Lubomir Rintel wrote:
> Gets propagated into the device tree and then into /proc/cpuinfo where
> users often expect it.
Tested-by: Stephen Warren
(on qemu-0xabu at least)
Reviewed-by: Stephen Warren
___
U-Boot mailing list
U-Bo
Hi Bin,
On 16 February 2016 at 02:21, Bin Meng wrote:
> Hi Simon,
>
> On Mon, Feb 15, 2016 at 9:36 AM, Simon Glass wrote:
>> In some cases the timer must be accessible before driver model is active.
>> Examples include when using CONFIG_TRACE to trace U-Boot's execution before
>> driver model is
Hi Bin
On 16 February 2016 at 02:22, Bin Meng wrote:
> Hi Simon,
>
> On Mon, Feb 15, 2016 at 9:36 AM, Simon Glass wrote:
>> Add support for the early timer so we can use tracing with sandbox again.
>>
>> Signed-off-by: Simon Glass
>> ---
>>
>> drivers/timer/sandbox_timer.c | 14 --
Hi Bin,
On 16 February 2016 at 02:21, Bin Meng wrote:
> Hi Simon,
>
> On Mon, Feb 15, 2016 at 9:36 AM, Simon Glass wrote:
>> A few of the functions in the timer uclass are not marked with 'notrace'. Fix
>> this so that tracing can be used with CONFIG_TRACE.
>>
>> Signed-off-by: Simon Glass
>> -
Hi,
On 18 February 2016 at 00:40, Damien Wei Huang wrote:
> Hi
>
> This question is regarding to uboot commands
>
>
>
> I use the uboot "fdt mknode" command to create two nodes as below
>
> uboot> fdt resize
>
> uboot> fdt mknode /my_light_pinctrl
>
> uboot> fdt set /my_light_pintr
Hi Bin,
On 16 February 2016 at 02:31, Bin Meng wrote:
> Hi Simon,
>
> On Fri, Feb 12, 2016 at 4:23 AM, Simon Glass wrote:
>> A common pattern is to call uclass_first_device() and then check if it
>> actually returns a device. Add a new function which does this, returning
>> an error if there are
Hi Michal,
On 22 February 2016 at 08:54, Michal Simek wrote:
> On 19.2.2016 21:55, Simon Glass wrote:
>> Hi Michal,
>>
>> On 18 February 2016 at 09:01, Michal Simek wrote:
>>> Enabling this driver requires some DT changes.
>>> Adding DCC to root or main bus:
>>> dcc: dcc {
>>> compatible
Hi Michal,
On 22 February 2016 at 00:40, Michal Simek wrote:
> On 19.2.2016 21:55, Simon Glass wrote:
>> Hi Michal,
>>
>> On 16 February 2016 at 08:17, Michal Simek wrote:
>>> reg-offset is the part of standard 8250 binding in the kernel.
>>> It is shifting start of address space by reg-offset.
On 22.02.2016 18:59, Fabio Estevam wrote:
On Mon, Feb 22, 2016 at 2:51 PM, Maxime Jayat wrote:
Hello,
I was hit by the same problem, where my USB SD card reader would timeout
in U-boot when reading a large file (16 MB). Changing USB_MAX_XFER_BLK
to 32767 fixed the problem but I investigated a
Hi Minkyu,
On 21 February 2016 at 21:08, Simon Glass wrote:
>
> This series converts the exynos LCD driver to work with driver model. Only
> the eDP display is converted - the MIPI display is left mostly alone as I
> do not have a device to test with.
>
> The conversion involves some refactoring
On Tue, 2016-02-23 at 04:09 +, Prabhakar Kushwaha wrote:
> > -Original Message-
> > From: Scott Wood [mailto:o...@buserror.net]
> > Sent: Tuesday, February 23, 2016 6:52 AM
> > To: Prabhakar Kushwaha ; u-
> > b...@lists.denx.de
> > Cc: york sun ; Priyanka Jain
> > Subject: Re: [RFC] ar
On 23.2.2016 03:57, Masahiro Yamada wrote:
> Hi Michal, Tom, Simon
>
>
>
>
> 2016-02-23 1:16 GMT+09:00 Tom Rini :
>> On Mon, Feb 22, 2016 at 04:51:47PM +0100, Michal Simek wrote:
>>> Hi,
>>>
>>> On 8.2.2016 21:49, Tom Rini wrote:
On Fri, Feb 05, 2016 at 05:55:14PM +0900, Masahiro Yamada wr
Hi Michal,
2016-02-23 16:06 GMT+09:00 Michal Simek :
> On 23.2.2016 03:57, Masahiro Yamada wrote:
>> Hi Michal, Tom, Simon
>>
>>
>>
>>
>> 2016-02-23 1:16 GMT+09:00 Tom Rini :
>>> On Mon, Feb 22, 2016 at 04:51:47PM +0100, Michal Simek wrote:
Hi,
On 8.2.2016 21:49, Tom Rini wrote:
>>
On 23.2.2016 08:47, Masahiro Yamada wrote:
> Hi Michal,
>
>
> 2016-02-23 16:06 GMT+09:00 Michal Simek :
>> On 23.2.2016 03:57, Masahiro Yamada wrote:
>>> Hi Michal, Tom, Simon
>>>
>>>
>>>
>>>
>>> 2016-02-23 1:16 GMT+09:00 Tom Rini :
On Mon, Feb 22, 2016 at 04:51:47PM +0100, Michal Simek wrot
101 - 142 of 142 matches
Mail list logo