Even if U-Boot does not use this, some libraries do. Add back this header
file so that the build does not fall back to using the host version, which
may include stdint.h and break the build due to conflicts with uint64_t,
etc.
This partially reverts commit dee37fc99d94 ("Remove includes
and PRI*
The current function delays in one millisecond at a time. This does not
work well on sandbox since it results in lots of calls to usleep(1000) in
a tight loop. This makes the sleep duration quite variable since each call
results in a sleep of *at least* 1000us, but possibly more. Depending on
how b
At present there are no users of the 64-byte v2 context. The v1 context is
only 16 bytes long and currently an error is raised if too much data is
returned from the EC.
Update the code to limit the size to 16 bytes.
Signed-off-by: Simon Glass
---
drivers/misc/cros_ec_sandbox.c | 10 ++
Fix the printf() string to avoid a warning.
Signed-off-by: Simon Glass
---
lib/tpm-common.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/tpm-common.c b/lib/tpm-common.c
index 2bf0b41e26f..86b4f413c2e 100644
--- a/lib/tpm-common.c
+++ b/lib/tpm-common.c
@@ -119,7 +119,
These constants are defined by stdint.h but not by kernel.h, which is
its stand-in in U-Boot. Add the definitions so that libraries which expect
stdint.h constants can work.
Signed-off-by: Simon Glass
---
include/linux/kernel.h | 4
1 file changed, 4 insertions(+)
diff --git a/include/lin
At present logging does not check printf() arguments. Now that all users
have been corrected, enable this to prevent further problems.
Signed-off-by: Simon Glass
---
include/log.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/include/log.h b/include/log.h
index 4f14937b7
We cannot be sure that the interface name takes up the full length of the
space available to it. Use strcpy() instead of memcpy() in this case. This
corrects a valgrind warning.
Signed-off-by: Simon Glass
---
drivers/net/sandbox-raw-bus.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
d
As an experiment, build U-Boot as a library, u-boot.o, so it can be used
by other open-source software. Update the sandbox build rules to suit.
This has not been tested in any meaningful way. It breaks sandbox_spl and
all x86 boards.
I am interested in feedback as to how useful this might be.
Si
This has an extra argument. Remove it.
Signed-off-by: Simon Glass
---
drivers/video/pwm_backlight.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/video/pwm_backlight.c b/drivers/video/pwm_backlight.c
index c13a9077090..bd733f5f1ca 100644
--- a/drivers/video/pwm_bac
There is only one place in the code which assumes at build-time that we
are using either a v1 or a v2 TPM. Fix this up and add a new function to
return the version of a TPM.
Supported TPM versions (v1 and v2) can be enabled independently and it is
possible to use both versions at once. This is use
We should not have exported functions in a driver. The i8042_disable()
function is used to disable the keyboard. Provide a remove() method
instead, which is the standard way of disabling a device.
We could potentially add a method to flush input but that does not seem
necessary.
Signed-off-by: Si
This function is intended to be exported but is not. Add it to the header
file.
Signed-off-by: Simon Glass
---
include/tpm-common.h | 8
1 file changed, 8 insertions(+)
diff --git a/include/tpm-common.h b/include/tpm-common.h
index 91a1484b3d6..f9c2ca20539 100644
--- a/include/tpm-com
Version-2 TPMs support attributes for nvdata. Add definitions to the
header file so that clients can use it.
Signed-off-by: Simon Glass
---
include/tpm-v2.h | 33 +
1 file changed, 33 insertions(+)
diff --git a/include/tpm-v2.h b/include/tpm-v2.h
index 2f2e66de1
At present sandbox has a start.o in the 'start' target but also includes
it in the normal target list. This is not how this is normally handled. It
is needed because sandbox does not include the u-boot-init variable in its
link rule.
Update the rule and move start.o from the normal target list to
If U-Boot is started from SPL or TPL, then those earlier phases deal with
the reset cause. On real hardware this cause may be lost once it is read.
Emulate that behaviour in sandbox by reporting a warm reset when a
previous phase has run since start-up.
Signed-off-by: Simon Glass
---
drivers/sy
Correct a warning that occurs on sandbox. Also fix the comment style in
cros_ec_set_lid_shutdown_mask().
Signed-off-by: Simon Glass
---
drivers/misc/cros_ec.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/misc/cros_ec.c b/drivers/misc/cros_ec.c
index 2dcdb3d8d6
At present the RAM buffer is not inited unless it is read from a file,
likely produced by an earlier phase of U-Boot. This causes valgrind
warnings whenever the RAM buffer is used. Correct this by initing it if
needed.
Signed-off-by: Simon Glass
---
arch/sandbox/cpu/start.c | 7 +++
Replace the raw cast with a map_sysmem() call so this code works with
sandbox.
Signed-off-by: Simon Glass
---
lib/physmem.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lib/physmem.c b/lib/physmem.c
index f21ac243edc..84b191dae3e 100644
--- a/lib/physmem.c
+++ b/lib/ph
If the filename is NULL this function currently crashes. Update it to fail
gracefully.
Signed-off-by: Simon Glass
---
arch/sandbox/cpu/spl.c | 8 ++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/arch/sandbox/cpu/spl.c b/arch/sandbox/cpu/spl.c
index 5005ed2f54a..2ca4cd6e35e
It is useful to run sandbox from valgrind to find memory errors, etc. At
present this works OK until U-Boot jumps into the next phase (e.g. from
SPL to U-Boot). Update os_jump_to_file() to use valgrind for each
subsequent phase also.
Signed-off-by: Simon Glass
---
arch/sandbox/cpu/os.c | 37 +++
This currently prints out the wrong filename. Fix it.
Signed-off-by: Simon Glass
---
arch/sandbox/cpu/os.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/sandbox/cpu/os.c b/arch/sandbox/cpu/os.c
index aa926943427..58d9a46263e 100644
--- a/arch/sandbox/cpu/os.c
+++ b/ar
This is (for now) the last series to enable Chromium OS verified boot in
U-Boot. It includes:
- Sandbox valgrind spport
- Minor TPM enhancements and fixes
- Resurection of inttypes.h
- Args checking for log functions
- Sandbox fix for time jitter
- Various other minir things
Simon Glass (21):
On Wed, Nov 21, 2018 at 05:25:59PM -0700, Simon Glass wrote:
> Hi Tom,
>
> The following changes since commit a3e1653ddeb02f39481eba572275016171e9670c:
>
> Merge git://git.denx.de/u-boot-marvell (2018-11-20 12:39:16 -0500)
>
> are available in the Git repository at:
>
> git://git.denx.de/u
FDT property searching can overflow when comparing strings. This will
result in undefined behavior. This upstream patch adds checks to assure
property name lengths do not overrun the string region or the totalsize.
The implementation is from upstream dtc:
70166d62a27f libfdt: Safer access to stri
On 11/22/18 9:46 PM, Simon Glass wrote:
> The functions in bootefi are very long because they mix high-level code
> and control with the low-level implementation. To help with this, create
> functions which handle preparing for running the test and cleaning up
> afterwards.
>
> Also shorten the aw
Hey guys,
So, from the BLK conversion thread, I'd like to bring up and ask what
needs to happen before we can consider the i.MX families ready for bulk
conversion to using DM (and OF_CONTROL and BLK and ..) at least in full
U-Boot. I know some things have been converted already and some
platforms
On Fri, Nov 23, 2018 at 05:04:46AM -0700, Simon Glass wrote:
> Hi Tom,
>
> On Thu, 22 Nov 2018 at 16:31, Tom Rini wrote:
> >
> > On Thu, Nov 22, 2018 at 01:50:34PM -0700, Simon Glass wrote:
> > > Hi Tom,
> > >
> > > On Wed, 21 Nov 2018 at 08:10, Tom Rini wrote:
> > > >
> > > > On Tue, Nov 20, 20
> On 22.11.2018, at 22:12, Richard Röjfors wrote:
>
> It does not make sense to allow disable of a regulator that
> is defined always on.
>
> I found this because the new mmc code that tests if the mmc
> power can be switched off. That results in the rk3288
> firefly board to die since the regu
On 22/11/2018 21:12, Richard Röjfors wrote:
> It does not make sense to allow disable of a regulator that
> is defined always on.
>
> I found this because the new mmc code that tests if the mmc
> power can be switched off. That results in the rk3288
> firefly board to die since the regulator, whic
Port for the PHYTEC phyBOARD-i.MX6UL-Segin single board computer. Based on
the PHYTEC phyCORE-i.MX6UL SOM (PCL063). This port provides both SPL and
DCD based boot options (hence the two defconfigs).
CPU: Freescale i.MX6UL rev1.2 528 MHz (running at 396 MHz)
CPU: Industrial temperature grade (-
Current define usage causes tooling to attempt to build for USB driver
model when building non-DM SPL. Update logic to avoid this.
Signed-off-by: Martyn Welch
---
Changes in v2:
- New in v2
drivers/usb/gadget/ci_udc.c | 2 +-
drivers/usb/host/Makefile | 14 ++
drivers/usb/host/
Currently if we have more than one phy on the MDIO bus, we do not have a
good mechanism for determining which should be used at runtime. Enable the
FEC driver to determine the address for the PHY from the device tree.
Signed-off-by: Martyn Welch
---
Changes in v2:
- New in v2
drivers/net/fec_
On 23.11.18 14:37, Petr Štetiar wrote:
> Currently it's not possible to get filesize of downloaded images and
> it's impossible to automate some tasks in scripts. So this patch adds
> `filesize` environment variable with size (as hex number in bytes) of
> the last successfully downloaded file via
Hi Fabio,
On 23.11.18 01:31, Fabio Estevam wrote:
> Hi Soeren,
>
> On Tue, Nov 20, 2018 at 10:44 AM Soeren Moch wrote:
>
>> Fabio, Stefano,
>>
>> it seems (almost?) all i.mx6 boards should be removed within two weeks.
>> But would it not make more sense to convert the reference boards first
>> (m
This upgrades U-Boot to 2018.11 release and drop the backported
security fixes which are now included upstream.
Signed-off-by: Otavio Salvador
---
Changes in v2:
- rebase on top of mkimage rework patch
.../u-boot/files/CVE-2018-1000205-1.patch | 59
.../u-boot/files/CVE-2018-1000
Oh, I missed that. I will send them as a separate series soon.
Thanks!
Janine
On 23.11.18 14:18, Philipp Tomsich wrote:
I had asked for these to be split out as a separate series and rebased.
Might have been v3 that I replied to, though…
Thanks,
Philipp.
On 23.11.2018, at 14:13, Janine Ha
> -Original Message-
> From: U-Boot [mailto:u-boot-boun...@lists.denx.de] On Behalf Of Chuanhua
> Han
> Sent: Friday, November 23, 2018 2:08 PM
> To: u-boot@lists.denx.de
> Cc: Chuanhua Han
> Subject: [U-Boot] [PATCH] armv8: lx2160a: Modify dspi1 controller intrrupts
> property
>
> This
On 23.11.2018 14:12, Jagan Teki wrote:
On Fri, Nov 23, 2018 at 6:24 PM Simon Goldschmidt
wrote:
[Responding from my work address due to problems with gmail]
On 23.11.2018 13:27, Jagan Teki wrote:
On Fri, Nov 23, 2018 at 1:51 AM wrote:
On Fri, 16 Nov 2018 at 12:40, Simon Goldschmidt
wro
On 11/23/2018 10:21 AM, Petr Štetiar wrote:
> Currently it's not possible to get filesize of downloaded images and
> it's impossible to automate some tasks in scripts.
... so ... what does this patch do about it ? That sort of thing should
be in the commit message.
> Cc: Lukasz Majewski
> Cc: Ma
I had asked for these to be split out as a separate series and rebased.
Might have been v3 that I replied to, though…
Thanks,
Philipp.
> On 23.11.2018, at 14:13, Janine Hagemann wrote:
>
> Hello,
>
> I just want to ask what happened to some of my patches from august 2018.
>
> https://patchw
Hello,
I just want to ask what happened to some of my patches from august 2018.
https://patchwork.ozlabs.org/patch/962733/
https://patchwork.ozlabs.org/patch/962736/
https://patchwork.ozlabs.org/patch/962742/
https://patchwork.ozlabs.org/patch/962735/
Should I send them again?
Kind re
On Fri, Nov 23, 2018 at 6:24 PM Simon Goldschmidt
wrote:
>
> [Responding from my work address due to problems with gmail]
>
> On 23.11.2018 13:27, Jagan Teki wrote:
> > On Fri, Nov 23, 2018 at 1:51 AM wrote:
> >>
> >> On Fri, 16 Nov 2018 at 12:40, Simon Goldschmidt
> >> wrote:
> >>>
> >>> On 31.
Hi Tom,
On Thu, 22 Nov 2018 at 16:25, Tom Rini wrote:
>
> On Thu, Nov 22, 2018 at 01:50:26PM -0700, Simon Glass wrote:
> > Hi,
> >
> > On Tue, 20 Nov 2018 at 18:01, Ley Foon Tan wrote:
> > >
> > > On Tue, Nov 20, 2018 at 1:27 AM Simon Glass wrote:
> > > >
> > > > This board has not been convert
Currently it's not possible to get filesize of downloaded images and
it's impossible to automate some tasks in scripts.
Cc: Lukasz Majewski
Cc: Marek Vasut
Cc: Stefan Agner
Signed-off-by: Petr Štetiar
---
drivers/usb/gadget/f_sdp.c | 5 +
1 file changed, 5 insertions(+)
diff --git a/driv
Can you rebase this on top of the mkimage changes?
Ross
On Wed, 21 Nov 2018 at 13:42, Otavio Salvador wrote:
>
> This upgrades U-Boot to 2018.11 release and drop the backported
> security fixes which are now included upstream.
>
> Signed-off-by: Otavio Salvador
> ---
>
> .../u-boot/files/CVE-20
Hello to each other,
can you help me start the Cubietruck / Cubieboard 3?
I can not use the SD card / mmc because the drive is broken.
Currently I use Debian wheezy; uname -a
Kernel Linux cubietruck 3.4.61+ # 1 SMP PREEMPT Mon Dec 23 12:44:19 CST
2013 armv7l GNU / Linux
However, I would like t
[Responding from my work address due to problems with gmail]
On 23.11.2018 13:27, Jagan Teki wrote:
On Fri, Nov 23, 2018 at 1:51 AM wrote:
On Fri, 16 Nov 2018 at 12:40, Simon Goldschmidt
wrote:
On 31.10.2018 07:42, Simon Goldschmidt wrote:
On Wed, Oct 31, 2018 at 7:22 AM Jagan Teki wrote
Hi,
I have custom board based on am335x which have assembled 43-46TR16512A
RAM (should be 512x16 = 1GB size). Board boots fine with DDR3 config
for BBB (RAM data looks similar) but shows only 512MB of RAM available
(also in linux). IIRC it is necessary to update RAM EMIF table to have
support for
This patch is to modify the dspi1 controller interrupt number for
lx2160a, the original 240 interrupt is problematic and cannot be
registered, so first change it to share an interrupt with dspi0.
Signed-off-by: Chuanhua Han
---
depend on:
- https://patchwork.ozlabs.org/patch/990093/
ar
On Fri, 2018-11-23 at 11:13 +0530, Jagan Teki wrote:
> On Thu, Nov 22, 2018 at 2:29 PM Guochun Mao wrote:
> >
> > On Thu, 2018-11-22 at 11:51 +0530, Jagan Teki wrote:
> > > On Wed, Nov 21, 2018 at 5:16 PM Guochun Mao
> > > wrote:
> > > >
> > > > Hi Jagan,
> > > >
> > > > On Wed, 2018-11-21 at 15
On 11/23/2018 11:05 AM, Chee, Tien Fong wrote:
> On Wed, 2018-11-21 at 15:21 +0100, Marek Vasut wrote:
>> On 11/21/2018 11:41 AM, tien.fong.c...@intel.com wrote:
>>>
>>> From: Tien Fong Chee
>>>
>>> Add empty SPL fitImage configuration match. This can be extended
>>> if there is ever need to suppo
This patch is to modify the dspi1 controller interrupt number for
lx2160a, the original 240 interrupt is problematic and cannot be
registered, so first change it to share an interrupt with dspi0.
Signed-off-by: Chuanhua Han
---
depend on:
- https://patchwork.ozlabs.org/patch/990093/
ar
This patch is to modify the dspi1 controller interrupt number for
lx2160a, the original 240 interrupt is problematic and cannot be
registered, so first change it to share an interrupt with dspi0.
Signed-off-by: Chuanhua Han
---
depend on:
- https://patchwork.ozlabs.org/patch/990093/
ar
On 11/23/2018 11:10 AM, Chee, Tien Fong wrote:
> On Wed, 2018-11-21 at 15:22 +0100, Marek Vasut wrote:
>> On 11/21/2018 11:41 AM, tien.fong.c...@intel.com wrote:
>>>
>>> From: Tien Fong Chee
>> Again, not your patch, please don't change authorship.
>>
>> http://git.denx.de/?p=u-boot/u-boot-socfpga
On 11/23/2018 10:54 AM, Chee, Tien Fong wrote:
> On Wed, 2018-11-21 at 15:21 +0100, Marek Vasut wrote:
>> On 11/21/2018 11:41 AM, tien.fong.c...@intel.com wrote:
>>>
>>> From: Tien Fong Chee
>> Did you change Author:ship of the patch ?
I believe you did, so please fix that.
>>> Bundle U-Boot fit
On 11/23/2018 10:43 AM, Chee, Tien Fong wrote:
> On Wed, 2018-11-21 at 15:18 +0100, Marek Vasut wrote:
>> On 11/21/2018 11:41 AM, tien.fong.c...@intel.com wrote:
>>>
>>> From: Tien Fong Chee
>>>
>>> Add FPGA driver to support program FPGA with FPGA bitstream loading
>>> from
>>> filesystem. The dr
On 11/23/2018 10:51 AM, Chee, Tien Fong wrote:
> On Wed, 2018-11-21 at 15:19 +0100, Marek Vasut wrote:
>> On 11/21/2018 11:41 AM, tien.fong.c...@intel.com wrote:
>>>
>>> From: Tien Fong Chee
>>>
>>> Add support for loading FPGA bitstream to get DDR up running before
>>> U-Boot is loaded into DDR.
On 11/23/2018 10:19 AM, Chee, Tien Fong wrote:
> On Wed, 2018-11-21 at 15:11 +0100, Marek Vasut wrote:
>> On 11/21/2018 11:41 AM, tien.fong.c...@intel.com wrote:
>>>
>>> From: Tien Fong Chee
>>>
>>> This patch adds description on properties about file name used for
>>> both
>>> peripheral bitstrea
On Fri, Nov 23, 2018 at 1:51 AM wrote:
>
> On Fri, 16 Nov 2018 at 12:40, Simon Goldschmidt
> wrote:
> >
> > On 31.10.2018 07:42, Simon Goldschmidt wrote:
> > > On Wed, Oct 31, 2018 at 7:22 AM Jagan Teki
> > > wrote:
> > >> On Wed, Oct 31, 2018 at 1:40 AM Simon Goldschmidt
> > >> wrote:
> > >>>
Hi Tom,
On Thu, 22 Nov 2018 at 16:31, Tom Rini wrote:
>
> On Thu, Nov 22, 2018 at 01:50:34PM -0700, Simon Glass wrote:
> > Hi Tom,
> >
> > On Wed, 21 Nov 2018 at 08:10, Tom Rini wrote:
> > >
> > > On Tue, Nov 20, 2018 at 08:53:12AM -0500, Tom Rini wrote:
> > > > On Tue, Nov 20, 2018 at 02:45:24P
On Wed, 2018-11-21 at 15:22 +0100, Marek Vasut wrote:
> On 11/21/2018 11:41 AM, tien.fong.c...@intel.com wrote:
> >
> > From: Tien Fong Chee
> Again, not your patch, please don't change authorship.
>
> http://git.denx.de/?p=u-boot/u-boot-socfpga.git;a=commit;h=eb32e56886
> 9b5f91fe34efb2642875a8
On Wed, 2018-11-21 at 15:21 +0100, Marek Vasut wrote:
> On 11/21/2018 11:41 AM, tien.fong.c...@intel.com wrote:
> >
> > From: Tien Fong Chee
> >
> > Add empty SPL fitImage configuration match. This can be extended
> > if there is ever need to support multiple boards with single SFP
> > image.
>
On Wed, 2018-11-21 at 15:21 +0100, Marek Vasut wrote:
> On 11/21/2018 11:41 AM, tien.fong.c...@intel.com wrote:
> >
> > From: Tien Fong Chee
> Did you change Author:ship of the patch ?
>
> >
> > Bundle U-Boot fitImage containing U-Boot and FPGA bitstream into
> > the
> > u-boot-with-spl.sfp on
Sometimes enumeration fails (about 1 in 50 times on my custom board).
The underlying reason is probably electrical but Linux does not have
the problem.
Comparing the Linux / u-boot implementations shows that Linux
retries the error case whereas u-boot aborts early.
Removing the early abort in u-
On 23.11.18 06:34, Jagan Teki wrote:
> Note, that the DT patch for emac enable is already synced, check it on master.
Saw it while updating the patch with the requested change.
I made a note about this in the change description
and only send one patch in the v2 version of this series.
I'm a first
On Wed, 2018-11-21 at 15:19 +0100, Marek Vasut wrote:
> On 11/21/2018 11:41 AM, tien.fong.c...@intel.com wrote:
> >
> > From: Tien Fong Chee
> >
> > Add support for loading FPGA bitstream to get DDR up running before
> > U-Boot is loaded into DDR. Boot device initialization, generic
> > firmware
On Wed, 2018-11-21 at 15:18 +0100, Marek Vasut wrote:
> On 11/21/2018 11:41 AM, tien.fong.c...@intel.com wrote:
> >
> > From: Tien Fong Chee
> >
> > Add FPGA driver to support program FPGA with FPGA bitstream loading
> > from
> > filesystem. The driver are designed based on generic firmware
> >
On Fri, 23 Nov 2018 10:21:24 +0100
Petr Štetiar wrote:
> Currently it's not possible to get filesize of downloaded images and
> it's impossible to automate some tasks in scripts.
>
> Cc: Lukasz Majewski
> Cc: Marek Vasut
> Cc: Stefan Agner
> Signed-off-by: Petr Štetiar
> ---
> drivers/usb/g
On Wed, 2018-11-21 at 15:11 +0100, Marek Vasut wrote:
> On 11/21/2018 11:41 AM, tien.fong.c...@intel.com wrote:
> >
> > From: Tien Fong Chee
> >
> > This patch adds description on properties about file name used for
> > both
> > peripheral bitstream and core bitstream.
> >
> > Signed-off-by: Ti
Hi Bin,
> Missing commit message
I will fix this.
>
> APL means ApolloLake? Could you please spell it out?
I will fix this.
>
> > Signed-off-by: Bernhard Messerklinger automation.com>
> > ---
> >
> > drivers/timer/tsc_timer.c | 2 ++
> > 1 file changed, 2 insertions(+)
> >
> > diff --git a/dri
On 11/22/18 9:50 PM, Simon Glass wrote:
> Hi Heinrich,
>
> On Wed, 21 Nov 2018 at 07:35, Heinrich Schuchardt wrote:
>>
>> On 11/18/18 4:16 PM, Simon Glass wrote:
>>> This is an experimental check for adding new uclasses without a test.
>>>
>>> I am not sure of the best way to add U-Boot-specific
BSS section was all the time separated for SPL but this symbol wasn't
enabled. It is necessary to have it enabled for OF_SEPARATE
configuration where DTB is appended to u-boot with DTB.
Signed-off-by: Michal Simek
---
arch/arm/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm
72 matches
Mail list logo