[U-Boot] [PATCH V2 4/4] lpi2c: Add bus busy error handling

2018-07-07 Thread Peng Fan
From: Ye Li When doing "i2c dev 4; i2c probe" with ENET daughter card connected on iMX8QXP MEK board, we met a i2c bus busy issue, that the BBF of lpi2c always show busy, but the master is idle, and stop is detected (SDF set). This patch addes a handling to re-init the lpi2c master for this case

[U-Boot] [PATCH V2 3/4] lpi2c: Fix bus stop problem in xfer

2018-07-07 Thread Peng Fan
From: Ye Li In xfer function, both bus_i2c_read and bus_i2c_write will send a STOP command. This causes a problem when reading register data from i2c device. Generally two operations comprise the register data reading: 1. Write the register address to i2c device. START | chip_addr | W

[U-Boot] [PATCH V2 2/4] imx: lpi2c: fix clock issue when NACK detected

2018-07-07 Thread Peng Fan
From: Gao Pan For LPI2C IP, NACK is detected by the rising edge of the ninth clock. In current uboot driver, once NACK is detected, it will reset and then disable LPI2C master. As a result, we can never see the falling edge of the ninth clock. Signed-off-by: Gao Pan Signed-off-by: Peng Fan Rev

[U-Boot] [PATCH V2 1/4] imx_lpi2c: Update lpi2c driver to support imx8

2018-07-07 Thread Peng Fan
From: Ye Li Add compatible string for i.MX8 and move imx_lpi2c.h from mx7ulp directory to u-boot include directory as a common header file. Signed-off-by: Ye Li Signed-off-by: Peng Fan Reviewed-by: Heiko Schocher --- V2: Add review tag drivers/i2c/imx_lpi2c.c

[U-Boot] [PATCH v2 1/1] drivers: rtc: correct week day for mc146818

2018-07-07 Thread Heinrich Schuchardt
For qemu-x86 the date command produces wrong days of the week: Date: 2018-07-06 (Saturday)Time: 18:02:03 Date: 2018-07-07 (unknown day)Time: 21:02:06 According to a comment in the Linux driver the mc146818 only updates the day of the week if the register value is non-zero. Sunday is 1, sa

[U-Boot] [PATCH v2 4/6] efi_loader: complete implementation of GetTime()

2018-07-07 Thread Heinrich Schuchardt
Implement the missing parts of the GetTime() runtime service. Fill seconds. Fill daylight saving time flag correctly. Provide dummy values for capabilities. Signed-off-by: Heinrich Schuchardt --- v2 do not add support for non driver model drivers --- lib/efi_loader/efi_runtime.c | 53 ++

[U-Boot] [PATCH v2 2/6] rtc: remove CONFIG_CMD_DATE dependency

2018-07-07 Thread Heinrich Schuchardt
The EFI subsystem accesses the real time clock and is enabled by default. So we should drop any CONFIG_CMD_DATE dependency from the real time clock drivers. Signed-off-by: Heinrich Schuchardt --- v2 new patch --- drivers/rtc/at91sam9_rtt.c | 4 drivers/rtc/davinci.c | 2 -- dri

[U-Boot] [PATCH v2 6/6] efi_selftest: unit test for GetTime()

2018-07-07 Thread Heinrich Schuchardt
Provide a unit test for the GetTime() runtime service. Signed-off-by: Heinrich Schuchardt --- v2 no change --- lib/efi_selftest/Makefile | 1 + lib/efi_selftest/efi_selftest_rtc.c | 67 + 2 files changed, 68 insertions(+) create mode 100644 lib/efi

[U-Boot] [PATCH v2 1/6] drivers: rtc: resolve year 2038 problem in rtc_to_tm

2018-07-07 Thread Heinrich Schuchardt
Our implementation of rtc_to_tm() cannot handle dates of more than 0x7fff seconds after 1970-01-01. Adopt the Linux kernel implementation. Signed-off-by: Heinrich Schuchardt --- v2 adopt the Linux kernel implementation --- drivers/rtc/Makefile | 1 + drivers/rtc/date.c

[U-Boot] [PATCH v2 3/6] efi_loader: remove unused efi_get_time_init()

2018-07-07 Thread Heinrich Schuchardt
Remove unused function efi_get_time_init(). Initialization of the RTC has to be done in board bring up not in the EFI subsystem. There is no RTC device in the UEFI spec. The RTC is only accessed through the runtime services. Signed-off-by: Heinrich Schuchardt --- v2 update commit messag

[U-Boot] [PATCH v2 0/6] efi_loader: complete implementation of GetTime()

2018-07-07 Thread Heinrich Schuchardt
The year 2038 problem in rtc_to_tm() is reusing code from Linux. The EFI runtime service GetTime() is used to read the time form the real time clock. The RTC drivers are made usable even if U-Boot is built without CONFIG_CMD_DATE. The implementation of the GetTime() runtime service is corrected.

[U-Boot] [PATCH v2 5/6] efi_selftest: support printing leading zeroes

2018-07-07 Thread Heinrich Schuchardt
Allow specifying the precision when printing integers, e.g. efi_st_printf("%.4u-%.2u-%.2u\n", year, month, day); Signed-off-by: Heinrich Schuchardt --- v2 no change --- lib/efi_selftest/efi_selftest_console.c | 33 - 1 file changed, 22 insertions(+), 11 deletions

[U-Boot] [PATCH 1/1] drivers: rtc: correct week day for mc146818

2018-07-07 Thread Heinrich Schuchardt
For qemu-x86 the date command produces wrong days of the week: Date: 2018-07-06 (Saturday)Time: 18:02:03 Date: 2018-07-07 (unknown day)Time: 21:02:06 According to a comment in the Linux driver the mc146818 only updates the day of the week if the register value is non-zero. Sunday is 1, sa

Re: [U-Boot] [PATCH] test: Add ut_assertnull macro

2018-07-07 Thread Ramon Fried
Hi Simon. Would love to get this reviewed. can you assist ? Thanks. Ramon. On Fri, Jun 22, 2018 at 12:47 AM Ramon Fried wrote: > > Add ut_assertnull macro to include/test/ut.h > For testing of functions that returns NULL on errors. > > Signed-off-by: Ramon Fried > --- > include/test/ut.h | 12 +

[U-Boot] [PATCH v3 5/6] lib: crc32: mark function crc32() as __efi_runtime

2018-07-07 Thread Heinrich Schuchardt
The function crc32() is needed by the EFI subsystem at runtime. So it has to be linked into the runtime section together with all dependencies. Eliminate empty define ZEXPORT. Signed-off-by: Heinrich Schuchardt --- v3 new patch --- lib/crc32.c | 17 ++--- 1 file changed, 10

[U-Boot] [PATCH v3 4/6] efi_selftest: unit test for CalculateCrc32()

2018-07-07 Thread Heinrich Schuchardt
This unit test checks the CalculateCrc32 bootservice and checks the headers of the system table, the boot services tablle, and the runtime services table before and after ExitBootServices(). Signed-off-by: Heinrich Schuchardt --- v3 no change v2 no change --- lib/efi_selftest/Mak

[U-Boot] [PATCH v3 6/6] efi_loader: update runtime services table crc32

2018-07-07 Thread Heinrich Schuchardt
The crc32 of the runtime services table must be updated after detaching. efi_update_table_header_crc32() must be __efi_runtime. So move it to efi_runtime.c Signed-off-by: Heinrich Schuchardt --- v3 new patch --- include/efi_loader.h | 3 +++ lib/efi_loader/efi_boottime.c | 12

[U-Boot] [PATCH v3 2/6] efi_loader: update crc32 in InstallConfigurationTable

2018-07-07 Thread Heinrich Schuchardt
If the number of installed tables is changed in InstallConfigurationTable() update the crc32 of the system table. Signed-off-by: Heinrich Schuchardt --- v3: new patch --- lib/efi_loader/efi_boottime.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/efi_loader/efi_boottime.c b/

[U-Boot] [PATCH v3 3/6] efi_selftest: check crc32 for InstallConfigurationTable

2018-07-07 Thread Heinrich Schuchardt
InstallConfigurationTable() may change the number of installed configuration tables. Check the crc32 of the system table. Signed-off-by: Heinrich Schuchardt --- v3 new patch --- lib/efi_selftest/efi_selftest_config_table.c | 43 1 file changed, 43 insertions(+) dif

[U-Boot] [PATCH v3 1/6] efi_loader: correct signature of CalculateCrc32()

2018-07-07 Thread Heinrich Schuchardt
Use const for the buffer. We are not changing the buffer. Use efi_uintn_t where prescribed by the UEFI spec. Prefer u32 over uint32_t. Signed-off-by: Heinrich Schuchardt --- v3 no change --- include/efi_api.h | 5 +++-- lib/efi_loader/efi_boottime.c | 8 2 files chan

[U-Boot] [PATCH v3 0/6] efi_loader: correctly initialize system table crc32

2018-07-07 Thread Heinrich Schuchardt
The crc32 of the system table has to be recalculated when InstallConfigurationTable() changes the number of tables. Adjust the signature of CalculateCrc32(). Provide a unit test that checks the crc32 of the system table, the runtime services table, and the boot sevices table before and after Exit

Re: [U-Boot] [PATCH 00/41] imx: add i.MX8QXP support

2018-07-07 Thread Peng Fan
Hi Stefano, > -Original Message- > From: Stefano Babic [mailto:sba...@denx.de] > Sent: 2018年6月27日 16:14 > To: Peng Fan ; sba...@denx.de; Fabio Estevam > > Cc: u-boot@lists.denx.de; Anatolij Gustschin > Subject: Re: [PATCH 00/41] imx: add i.MX8QXP support > > Hi Peng, > > > On 28/05/20

Re: [U-Boot] [PATCH 02/41] imx: add Kconfig entry for i.MX8

2018-07-07 Thread Peng Fan
Hi Stefano, > -Original Message- > From: Stefano Babic [mailto:sba...@denx.de] > Sent: 2018年6月27日 16:20 > To: Peng Fan ; sba...@denx.de; Fabio Estevam > > Cc: u-boot@lists.denx.de > Subject: Re: [PATCH 02/41] imx: add Kconfig entry for i.MX8 > > On 28/05/2018 14:24, Peng Fan wrote: > > A

Re: [U-Boot] buildman failures and toolchains

2018-07-07 Thread Adam Ford
On Sat, Jul 7, 2018 at 3:42 AM Alex Kiernan wrote: > > On Sat, Jul 7, 2018 at 3:43 AM Adam Ford wrote: > > > > I am going to sound stupid, but I'm struggling to install all the > > toolchains and use them with buildroot. I upgraded to Ubuntu 18.04 > > and whenever try to run buildman, or attempt

[U-Boot] Creating of ramdisk image causes: No space left on device

2018-07-07 Thread Zvi Vered
Hello, I'm using u-boot for xilinx zcu102. In order to create ramdisk image I used the command: genextfs -d $ROOTFS -b 65536 -D rootfs_devices.tab ramdisk But during linux boot, linux writes many message: mdev: can't create '': No space left on device I tried to use 262144 instead of 65536 a

[U-Boot] u-boot serial uart command?

2018-07-07 Thread Dell Green
___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

[U-Boot] [PATCH] tools/imximage: get HAB information from header

2018-07-07 Thread Holger Dengler
Signing parts of a u-boot imximage for image verification in High Assurance Boot (HAB) in a post-build process, requires some information from the imximage header. Currently, this information is only provided during the image build, which makes the transfer of this information to the post-build pro

Re: [U-Boot] [PATCH V2] eth: dm: fec: Add gpio phy reset binding

2018-07-07 Thread Jagan Teki
On Sun, Jun 17, 2018 at 6:52 PM, Michael Trimarchi wrote: > Add the missing gpio phy reset binding to the gpio and > reset time configuration > > Signed-off-by: Michael Trimarchi > --- > Changes v1 -> v2: > - fix commit message > - fix timeout property read > --- > drivers/net/fe

[U-Boot] [PATCH v2 2/2] net: mvgbe: convert to DM

2018-07-07 Thread Chris Packham
Add driver model support to the mvgbe driver. As a temporary measure both DM and non-DM uses are supported. Once all the users have been converted the non-DM support can be dropped. Signed-off-by: Chris Packham --- Changes in v2: - create __mvgbe_phy_init and mvgbe_alloc_buffers helper functions

[U-Boot] [PATCH v2 1/2] net: mvgbe: prepare for conversion to driver model

2018-07-07 Thread Chris Packham
Extract some function bodies to helper functions that can be reused in the DM/non-DM implementations. Signed-off-by: Chris Packham Acked-by: Joe Hershberger --- Changes in v2: None drivers/net/mvgbe.c | 109 1 file changed, 80 insertions(+), 29 del

Re: [U-Boot] buildman failures and toolchains

2018-07-07 Thread Alex Kiernan
On Sat, Jul 7, 2018 at 3:43 AM Adam Ford wrote: > > I am going to sound stupid, but I'm struggling to install all the > toolchains and use them with buildroot. I upgraded to Ubuntu 18.04 > and whenever try to run buildman, or attempt to build the moveconfig > database I get failures. > > i get th

Re: [U-Boot] [U-Boot, v2, 1/3] efi_loader: correctly initialize system table crc32

2018-07-07 Thread Heinrich Schuchardt
On 07/06/2018 07:22 AM, Alexander Graf wrote: >> We should calculate the crc32 after initalizing all fields of the system >> table. >> >> Signed-off-by: Heinrich Schuchardt > > Thanks, applied to efi-next > > Alex > > Hello Alex, this patch series causes a Travis error. Please, remove it from