[U-Boot] [PATCH v2 3/4] arm: socfpga: remove CONFIG_SYS_BOOTMAPSZ

2019-04-09 Thread Simon Goldschmidt
socfpga_common.h defines CONFIG_SYS_BOOTMAPSZ to 64 MiB. Since having this define overrides the 'bootm_size' env variable for the whole socfpga platform, let's remove this define from socfpga_common.h and instead rely on the 'bootm_size' env variable (which is initialized to 160 MiB in the same

[U-Boot] [PATCH v2 4/4] arm: socfpga: clean up board config files

2019-04-09 Thread Simon Goldschmidt
Remove outdated defines (not used any more, outdated due to DM conversion) from various socfpga files in include/config. Signed-off-by: Simon Goldschmidt --- Changes in v2: - added (this) patch with further cleanups to the socfpga board config files include/configs/socfpga_arria10_socdk.h

[U-Boot] [PATCH v4 0/4] arm: socfpga: stack and Kconfig cleanups

2019-04-09 Thread Simon Goldschmidt
This series cleans up stack definitions in socfpga_common.h as well as cleans up defconfig files by implying/defaulting common things in Kconfig files. Finally, it reduces the malloc pool size used in first stage of gen5 SPL (without ddr available) in order to have more space available for code.

Re: [U-Boot] [U-Boot, v1] fdt: Fix mkimage list to try every header type

2019-04-09 Thread Vagrant Cascadian
On 2019-04-09, Jordan Hand wrote: > Signed-off-by: Jordan Hand > --- > Image type is not supplied to `mkimage -l`. For this reason, we cannot > use imagetool_verify_print_header_by_type. Instead, this patch uses > imagetool_verify_print_header to look through all header types to find > one where

Re: [U-Boot] [PATCH 8/8] sunxi: allow boards to de-select SYS_WHITE_ON_BLACK font scheme

2019-04-09 Thread Anatolij Gustschin
On Sat, 23 Mar 2019 01:30:02 + Andre Przywara andre.przyw...@arm.com wrote: > In the sunxi-common.h config header we unconditionally define > CONFIG_SYS_WHITE_ON_BLACK, although it's actually a Kconfig option which > could be individually selected by a user. > Remove this #define from the

[U-Boot] Possible bug in release: fdisk in linux cannot read /dev/mmcblk0 anymore

2019-04-09 Thread U.Mutlu
Hi folks, # U-Boot 2019.04 Configuration I just updated to the latest version via git. My previous version was the recent 2019.04-rc4. Now in this latest version I think a bug shows up: Inside Linux on the device, suddenly the following command no longer works: # fdisk -l /dev/mmcblk0 fdisk:

Re: [U-Boot] Bug in saveenv handling?

2019-04-09 Thread U.Mutlu
Tom Rini wrote on 04/09/2019 11:09 PM: On Tue, Apr 09, 2019 at 10:53:36PM +0200, U.Mutlu wrote: Frank Wunderlich wrote on 04/09/2019 09:39 PM: this looks for me like the CONFIG_ENV_OFFSET+CONFIG_ENV_SIZE is overlapping uboots code can you post these values and position of uboot and its size

Re: [U-Boot] [PATCH v2 3/4] arm: socfpga: remove CONFIG_SYS_BOOTMAPSZ

2019-04-09 Thread Marek Vasut
On 4/9/19 8:52 PM, Simon Goldschmidt wrote: > socfpga_common.h defines CONFIG_SYS_BOOTMAPSZ to 64 MiB. > > Since having this define overrides the 'bootm_size' env variable for > the whole socfpga platform, let's remove this define from socfpga_common.h > and instead rely on the 'bootm_size' env

Re: [U-Boot] [PATCH v2 2/4] arm: socfpga: clean up socfpga_common.h

2019-04-09 Thread Marek Vasut
On 4/9/19 8:52 PM, Simon Goldschmidt wrote: > Remove outdated defines (not used any more, outdated due to DM > conversion) from socfpga_common.h. s/defines/macros and comments/ > Signed-off-by: Simon Goldschmidt > --- > > Changes in v2: > - remove even more outdated things > >

Re: [U-Boot] [PATCH v2 4/4] arm: socfpga: clean up board config files

2019-04-09 Thread Marek Vasut
On 4/9/19 8:52 PM, Simon Goldschmidt wrote: > Remove outdated defines (not used any more, outdated due to DM > conversion) from various socfpga files in include/config. > > Signed-off-by: Simon Goldschmidt > --- > > Changes in v2: > - added (this) patch with further cleanups to the socfpga

Re: [U-Boot] [PATCH v4 2/4] arm: socfpga: put initial U-Boot stack into DDR

2019-04-09 Thread Marek Vasut
On 4/9/19 9:02 PM, Simon Goldschmidt wrote: > If SPL post-reloc stage puts the stack into DDR, U-Boot should be able to > do that, too. > > The reason to do so is that this way, U-Boot initial stack can be larger > than SPL initial stack. In situations where we want to save the SPL > in SRAM for

Re: [U-Boot] Bug in saveenv handling?

2019-04-09 Thread U.Mutlu
Frank Wunderlich wrote on 04/09/2019 09:39 PM: this looks for me like the CONFIG_ENV_OFFSET+CONFIG_ENV_SIZE is overlapping uboots code can you post these values and position of uboot and its size for your device? which env-storage do you use (EMV_IN_MMC or ENV_FAT)? I looked up in the

Re: [U-Boot] Bug in saveenv handling?

2019-04-09 Thread U.Mutlu
U.Mutlu wrote on 04/09/2019 11:01 PM: U.Mutlu wrote on 04/09/2019 10:53 PM: Frank Wunderlich wrote on 04/09/2019 09:39 PM: this looks for me like the CONFIG_ENV_OFFSET+CONFIG_ENV_SIZE is overlapping uboots code can you post these values and position of uboot and its size for your device? $

Re: [U-Boot] [PATCH 1/1] video: backlight: Parse PWM polarity cell

2019-04-09 Thread Anatolij Gustschin
On Mon, 25 Mar 2019 09:53:48 +0200 Stefan Mavrodiev ste...@olimex.com wrote: > This patch enables the reading of the polarity cell from a PWM > phandle and calls pwm_set_invert(). > --- > drivers/video/pwm_backlight.c | 10 ++ > 1 file changed, 10 insertions(+) Applied to

[U-Boot] [PATCH] fastboot: add support for 'getvar platform'

2019-04-09 Thread Eugeniu Rosca
Our R-Car3 Android userspace relies on the output of 'fastboot getvar platform' and U-Boot currently is not able to handle it: host $> fastboot getvar platform getvar:platform FAILED (remote: Variable not implemented) finished. total time: 0.001s We either have the option of adding

Re: [U-Boot] Bug in saveenv handling?

2019-04-09 Thread Frank Wunderlich
this looks for me like the CONFIG_ENV_OFFSET+CONFIG_ENV_SIZE is overlapping uboots code can you post these values and position of uboot and its size for your device? which env-storage do you use (EMV_IN_MMC or ENV_FAT)? regards Frank > Gesendet: Dienstag, 09. April 2019 um 21:05 Uhr > Von:

Re: [U-Boot] [PATCH 7/8] usb: kbd: Properly translate up/down arrow keys

2019-04-09 Thread Anatolij Gustschin
On Sat, 23 Mar 2019 01:30:01 + Andre Przywara andre.przyw...@arm.com wrote: > So far arrows key pressed on an USB keyboard got translated to some > low ASCII control sequences (Ctrl+N, Ctrl+P). Some programs understand > these codes, but the standard for those keys is to use ANSI control >

Re: [U-Boot] [PATCH 4/8] video/console: Implement ANSI clear line command

2019-04-09 Thread Anatolij Gustschin
On Sat, 23 Mar 2019 01:29:58 + Andre Przywara andre.przyw...@arm.com wrote: > There is a standard ANSI terminal escape sequence to clear a whole line > of text. So far the DM_VIDEO console was missing this code. > > Detect the sequence and use vidconsole_set_row with the background > colour

Re: [U-Boot] [PATCH 5/8] video/console: Factor out actual character output

2019-04-09 Thread Anatolij Gustschin
On Sat, 23 Mar 2019 01:29:59 + Andre Przywara andre.przyw...@arm.com wrote: > In preparation for doing character set translations, factor out the > actual glyph display functionality into a separate function. > This will be used in a subsequent patch. > > Signed-off-by: Andre Przywara > ---

[U-Boot] Bug in saveenv handling?

2019-04-09 Thread U.Mutlu
I just made this unpleasant observation while playing with u-boot: On the u-boot CLI I changed an envvar and saved the env: setenv bootdelay 5 ; saveenv Then I issued, just for fun, the command "scsi scan", but it crashed and rebooted the device. But this time on the display only the tuxx

Re: [U-Boot] [PATCH 2/8] video/console: Implement reverse video ANSI sequence for DM_VIDEO

2019-04-09 Thread Anatolij Gustschin
On Sat, 23 Mar 2019 01:29:56 + Andre Przywara andre.przyw...@arm.com wrote: > The video console for DM_VIDEO compliant drivers only understands a very > small number of ANSI sequences. First and foremost it misses the "reverse > video" command, which is used by our own bootmenu command to

Re: [U-Boot] [PATCH 3/8] video/console: Implement relative cursor movement ANSI handling

2019-04-09 Thread Anatolij Gustschin
On Sat, 23 Mar 2019 01:29:57 + Andre Przywara andre.przyw...@arm.com wrote: > The ANSI terminal escapce sequence standard defines relative cursor > movement commands (ESC [ A-F). So far the DM_VIDEO console code was > ignoring them. > > Interpret those sequences and move the cursor by the

[U-Boot] u-boot-video failure in ut dm video_ansi

2019-04-09 Thread Stephen Warren
Anatolij, The latest changes in u-boot-video.git master branch break the "ut dm video_ansi" unit test: => ut dm video_ansi Test: dm_test_video_ansi: video.c /var/lib/jenkins/workspace/u-boot-denx_uboot_video-master-build/src/u-boot/test/dm/video.c:186, dm_test_video_ansi(): 272 ==

Re: [U-Boot] [PATCH] rockchip: add Kever Yang as co-custodian

2019-04-09 Thread Tom Rini
On Tue, Apr 09, 2019 at 03:54:07PM +0800, Kever Yang wrote: > Add Tom. > > > Thanks, > - Kever > On 04/03/2019 03:59 PM, Philipp Tomsich wrote: > > > >> On 03.04.2019, at 09:28, Kever Yang wrote: > >> > >> This updates MAINTAINERS and git-mailrc to add me as a > >> co-custodian for rockchip >

Re: [U-Boot] [U-Boot, RESEND, v5, 1/7] fs: ext4: do not allow writes if metadata checksum is active

2019-04-09 Thread Tom Rini
On Wed, Feb 13, 2019 at 12:15:21PM +0100, Jean-Jacques Hiblot wrote: > u-boot does not supports updating the metadata chacksums > > Signed-off-by: Jean-Jacques Hiblot > Reviewed-by: Tom Rini Deferred as I picked up commit 2e7365518acdb8fb6e9be332c8a6c57b457188d9 Author: Sébastien Szymanski

Re: [U-Boot] [PATCH v2 1/4] arm: socfpga: move vining_fpga to DM_I2C

2019-04-09 Thread Marek Vasut
On 4/9/19 8:52 PM, Simon Goldschmidt wrote: > All socfpga boards except for vining_fpga use DM_I2C. Enable > DM_I2C for this board and set the EEPROM defines via Kconfig > (enabling CONFIG_I2C_EEPROM from MISC). > > Signed-off-by: Simon Goldschmidt > --- > > Changes in v2: > - added (this)

[U-Boot] [PATCH] test.py: Disable fsck for FAT tests for now

2019-04-09 Thread Tom Rini
Currently enabling fsck on FAT16/FAT32 exposes that we have problems with: TestFsBasic.test_fs13[fat16] TestFsBasic.test_fs11[fat32] TestFsBasic.test_fs12[fat32] TestFsBasic.test_fs13[fat32] TestFsExt.test_fs_ext1[fat32] TestFsExt.test_fs_ext2[fat32] TestFsExt.test_fs_ext3[fat32]

Re: [U-Boot] Bug in saveenv handling?

2019-04-09 Thread Tom Rini
On Tue, Apr 09, 2019 at 10:53:36PM +0200, U.Mutlu wrote: > Frank Wunderlich wrote on 04/09/2019 09:39 PM: > >this looks for me like the CONFIG_ENV_OFFSET+CONFIG_ENV_SIZE is overlapping > >uboots code > > > >can you post these values and position of uboot and its size for your device? > > > >which

Re: [U-Boot] [RFC 1/1] cmd: fs: fix data abort in load cmd

2019-04-09 Thread Heinrich Schuchardt
On 4/9/19 3:08 PM, Igor Opaniuk wrote: > With CONFIG_CMD_BOOTEFI=y, load command causes data abort > when path_to_uefi(fp->str, path) tries to write uefi path out of > bounds of u16 str[] array (check efi_device_path_file_path struct for > details). This is caused by unproper handling of void *buf

Re: [U-Boot] Automatic starting of netconsole at boot

2019-04-09 Thread U.Mutlu
I think there is a bug in netconsole of u-boot: about every 8 seconds it pauses for about another 8 seconds. Ie. some of the pressed keys on the netconsole host get struck (gets lost), after a while it continues. Happens with "tools/netconsole" as well with "nc -u -l -p ". This can also

[U-Boot] [PATCH v2 2/4] arm: socfpga: clean up socfpga_common.h

2019-04-09 Thread Simon Goldschmidt
Remove outdated defines (not used any more, outdated due to DM conversion) from socfpga_common.h. Signed-off-by: Simon Goldschmidt --- Changes in v2: - remove even more outdated things include/configs/socfpga_common.h | 40 1 file changed, 40 deletions(-)

[U-Boot] [PATCH v2 1/4] arm: socfpga: move vining_fpga to DM_I2C

2019-04-09 Thread Simon Goldschmidt
All socfpga boards except for vining_fpga use DM_I2C. Enable DM_I2C for this board and set the EEPROM defines via Kconfig (enabling CONFIG_I2C_EEPROM from MISC). Signed-off-by: Simon Goldschmidt --- Changes in v2: - added (this) patch to move socfpga_vining to DM_I2C

[U-Boot] [PATCH v2 0/4] arm: socfpga: clean up socfpga_common.h

2019-04-09 Thread Simon Goldschmidt
This series cleans up the include/configs/socfpga_common.h file a bit. It removes some defines that are used nowhere and cleans up some leftovers after various subsystems have been converted to use DM. Changes in v2: - added patch to move socfpga_vining to DM_I2C - remove even more outdated

Re: [U-Boot] [PATCH v2 2/2] Revert "cmd: Kconfig: Do not include EEPROM if DM_I2C is used without DM_I2C_COMPAT"

2019-04-09 Thread Marek Vasut
On 4/9/19 8:53 PM, Simon Goldschmidt wrote: > Am 30.03.2019 um 22:18 schrieb Simon Glass: >> On Tue, 26 Mar 2019 at 06:39, Simon Goldschmidt >> wrote: >>> >>> This reverts commit 65a97e7fcf54feb7c4ebe1aee8a572830af4cf51. >>> >>> The 'eeprom' command has been converted to work with DM_I2C in a

Re: [U-Boot] [PATCH] Revert "fdt: Fix FIT header verification in mkimage and conduct same checks as bootm"

2019-04-09 Thread Vagrant Cascadian
FTR, using updated email addresses for agraf and sjg. On 2019-04-09, Jordan Hand wrote: > On Mon, Apr 8, 2019 at 9:54 PM Vagrant Cascadian wrote: >> >> This reverts commit d32aa3cae44e618048ff7f378577d44f9b6d6dcc. >> >> This breaks the "list_image" test in tests/image/test-imagetools.sh, >>

Re: [U-Boot] [PATCH] fastboot: Replace literal 32 with PART_NAME_LEN

2019-04-09 Thread Eugeniu Rosca
Running `md5sum drivers/fastboot/fb_mmc.o` before and after the change returns the same result, so this is expectedly a non-functional change. In addition, `git grep -w 32 -- drivers/fastboot/` reveals no other occurrences of the magic number, except in below line where it stands for something

[U-Boot] [PATCH v4 3/4] arm: socfpga: imply/default common config options

2019-04-09 Thread Simon Goldschmidt
This commit moves common config options used in all socfpga boards to select/imply in Kconfig. This both cleans up the defconfig files as well as makes future changes easier. Options implied/defaulted for all sub-arches: - SPL, SPL_DM, USE_TINY_PRINTF, NR_DRAM_BANKS Options implied/defaulted for

[U-Boot] [PATCH v4 1/4] arm: socfpga: fix comment about SPL memory layout

2019-04-09 Thread Simon Goldschmidt
The comment about SPL memory layout for socfpga gen5 is outdated: the initial malloc memory is now at the end of the SRAM, gd is below it (see board_init_f_alloc_reserve). Signed-off-by: Simon Goldschmidt --- Changes in v4: None Changes in v3: None Changes in v2: None

[U-Boot] [PATCH v4 2/4] arm: socfpga: put initial U-Boot stack into DDR

2019-04-09 Thread Simon Goldschmidt
If SPL post-reloc stage puts the stack into DDR, U-Boot should be able to do that, too. The reason to do so is that this way, U-Boot initial stack can be larger than SPL initial stack. In situations where we want to save the SPL in SRAM for next boot without reloading, this prevents overwriting

[U-Boot] [PATCH v4 4/4] arm: socfpga: gen5: reduce SPL pre-reloc malloc

2019-04-09 Thread Simon Goldschmidt
By enabling debug prints in malloc_simple, we can see that SPL for socfpga gen5 does by far not need the 8 KiB malloc pool currently allocated for SPL in pre-reloc phase. On socfpga_socrates, 1304 bytes are currently used (and this increases by ~200 bytes only for the sdram/reset fixes in

Re: [U-Boot] [PATCH v4 3/4] arm: socfpga: imply/default common config options

2019-04-09 Thread Marek Vasut
On 4/9/19 9:02 PM, Simon Goldschmidt wrote: > This commit moves common config options used in all socfpga boards > to select/imply in Kconfig. This both cleans up the defconfig files > as well as makes future changes easier. > > Options implied/defaulted for all sub-arches: > - SPL, SPL_DM,

Re: [U-Boot] [PATCH v4 4/4] arm: socfpga: gen5: reduce SPL pre-reloc malloc

2019-04-09 Thread Marek Vasut
On 4/9/19 9:02 PM, Simon Goldschmidt wrote: > By enabling debug prints in malloc_simple, we can see that SPL for socfpga > gen5 does by far not need the 8 KiB malloc pool currently allocated for > SPL in pre-reloc phase. > > On socfpga_socrates, 1304 bytes are currently used (and this increases

Re: [U-Boot] [PATCH v2 1/4] arm: socfpga: move vining_fpga to DM_I2C

2019-04-09 Thread Simon Goldschmidt
Am 09.04.2019 um 21:27 schrieb Marek Vasut: On 4/9/19 8:52 PM, Simon Goldschmidt wrote: All socfpga boards except for vining_fpga use DM_I2C. Enable DM_I2C for this board and set the EEPROM defines via Kconfig (enabling CONFIG_I2C_EEPROM from MISC). Signed-off-by: Simon Goldschmidt ---

Re: [U-Boot] uboot sandbox tracing

2019-04-09 Thread Simon Glass
Hi Andrzej, On Mon, 1 Apr 2019 at 08:26, Witkowski, Andrzej wrote: > > Hi, > > > > I’m SW Developer at Intel, Poland. > > I try to enable tracing in u-boot to see how it works. > > I follow the procedure described in “doc/README.trace” file. > > Unfortunately, I always receive segmentation

Re: [U-Boot] [RFC PATCH v2] MLK-12883 usb: limit USB_MAX_XFER_BLK to 256

2019-04-09 Thread Tom Rini
On Tue, Apr 09, 2019 at 05:20:45PM +0200, Marcel Ziswiler wrote: > From: Peng Fan > > For Some USB mass storage devices, such as: > " > - Kingston DataTraveler 2.0 001D7D06CF09B04199C7B3EA > - Class: (from Interface) Mass Storage > - PacketSize: 64 Configurations: 1 > - Vendor: 0x0930

[U-Boot] [PATCH 1/1] efi_loader: remove stray #define LOG_CATEGORY LOGL_ERR

2019-04-09 Thread Heinrich Schuchardt
The statement '#define LOG_CATEGORY LOGL_ERR' makes not sense. LOGL_ERR is not a LOG_CATEGORY. Remove the statement. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_device_path.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/efi_loader/efi_device_path.c

Re: [U-Boot] [PATCH v2 2/2] Revert "cmd: Kconfig: Do not include EEPROM if DM_I2C is used without DM_I2C_COMPAT"

2019-04-09 Thread Simon Goldschmidt
Am 30.03.2019 um 22:18 schrieb Simon Glass: On Tue, 26 Mar 2019 at 06:39, Simon Goldschmidt wrote: This reverts commit 65a97e7fcf54feb7c4ebe1aee8a572830af4cf51. The 'eeprom' command has been converted to work with DM_I2C in a patch submitted around the same time as this commit: commit

Re: [U-Boot] [PATCH v4 0/4] arm: socfpga: stack and Kconfig cleanups

2019-04-09 Thread Marek Vasut
On 4/9/19 9:02 PM, Simon Goldschmidt wrote: > This series cleans up stack definitions in socfpga_common.h as well as > cleans up defconfig files by implying/defaulting common things in Kconfig > files. > > Finally, it reduces the malloc pool size used in first stage of gen5 SPL > (without ddr

Re: [U-Boot] [PATCH v4 1/4] arm: socfpga: fix comment about SPL memory layout

2019-04-09 Thread Marek Vasut
On 4/9/19 9:02 PM, Simon Goldschmidt wrote: > The comment about SPL memory layout for socfpga gen5 is outdated: the > initial malloc memory is now at the end of the SRAM, gd is below it > (see board_init_f_alloc_reserve). > > Signed-off-by: Simon Goldschmidt > --- > > Changes in v4: None >

Re: [U-Boot] Bug in saveenv handling?

2019-04-09 Thread U.Mutlu
U.Mutlu wrote on 04/09/2019 10:53 PM: Frank Wunderlich wrote on 04/09/2019 09:39 PM: this looks for me like the CONFIG_ENV_OFFSET+CONFIG_ENV_SIZE is overlapping uboots code can you post these values and position of uboot and its size for your device? which env-storage do you use (EMV_IN_MMC

Re: [U-Boot] [PATCH 1/2] Add domain mapping for Pepperl+Fuchs

2019-04-09 Thread Simon Goldschmidt
Wolfang, Am 21.03.2019 um 20:30 schrieb Simon Goldschmidt: Hi Wolfgang, Am 24.01.2019 um 13:22 schrieb Tom Rini: On Thu, Jan 24, 2019 at 12:40:14PM +0100, Simon Goldschmidt wrote: On Mon, Aug 13, 2018 at 12:07 PM Simon Goldschmidt wrote: Signed-off-by: Simon Goldschmidt Gentle ping

Re: [U-Boot] [PATCH v2 2/4] arm: socfpga: clean up socfpga_common.h

2019-04-09 Thread Simon Goldschmidt
Am 09.04.2019 um 21:28 schrieb Marek Vasut: On 4/9/19 8:52 PM, Simon Goldschmidt wrote: Remove outdated defines (not used any more, outdated due to DM conversion) from socfpga_common.h. s/defines/macros and comments/ > Signed-off-by: Simon Goldschmidt --- Changes in v2: - remove even more

Re: [U-Boot] [U-Boot, RESEND, v5, 3/7] test: fs: Add filesystem integrity checks

2019-04-09 Thread Tom Rini
On Wed, Feb 13, 2019 at 12:15:23PM +0100, Jean-Jacques Hiblot wrote: > We need to make sure that file writes,file creation, etc. are properly > performed and do not corrupt the filesystem. > To help with this, introduce the assert_fs_integrity() function that > executes the appropriate fsck tool.

Re: [U-Boot] [PATCH v2 2/4] arm: socfpga: clean up socfpga_common.h

2019-04-09 Thread Marek Vasut
On 4/9/19 9:45 PM, Simon Goldschmidt wrote: > Am 09.04.2019 um 21:28 schrieb Marek Vasut: >> On 4/9/19 8:52 PM, Simon Goldschmidt wrote: >>> Remove outdated defines (not used any more, outdated due to DM >>> conversion) from socfpga_common.h. >> >> s/defines/macros and comments/ > >>>

Re: [U-Boot] [PATCH v2 1/4] arm: socfpga: move vining_fpga to DM_I2C

2019-04-09 Thread Marek Vasut
On 4/9/19 9:38 PM, Simon Goldschmidt wrote: > Am 09.04.2019 um 21:27 schrieb Marek Vasut: >> On 4/9/19 8:52 PM, Simon Goldschmidt wrote: >>> All socfpga boards except for vining_fpga use DM_I2C. Enable >>> DM_I2C for this board and set the EEPROM defines via Kconfig >>> (enabling CONFIG_I2C_EEPROM

[U-Boot] efi: fix memory calculation overflow on 32-bit systems

2019-04-09 Thread Patrick Wildt
Hi, There are Cubox-i machines out there with nearly 4 GiB of RAM. The RAM starts at 0x1000 with a size of 0xf000. Thus the end of RAM is at 0x1. This overflows a 32-bit integer, which should be fine since in the EFI memory code the variables used are all 64-bit with a fixed

Re: [U-Boot] [PATCH 1/8] video/console: Fix DM_VIDEO font glyph array indexing

2019-04-09 Thread Anatolij Gustschin
On Sat, 23 Mar 2019 01:29:55 + Andre Przywara andre.przyw...@arm.com wrote: > When the character to be printed on a DM_VIDEO console is from the > "extended ASCII" range (0x80 - 0xff), it will be treated as a negative > number, as it's declared as a signed char. This leads to negative array >

Re: [U-Boot] Possible bug in release: fdisk in linux cannot read /dev/mmcblk0 anymore

2019-04-09 Thread U.Mutlu
Sorry, seems to be a false alert. After rebuilding u-boot it works fine again. U.Mutlu wrote on 04/10/2019 12:37 AM: Hi folks, # U-Boot 2019.04 Configuration I just updated to the latest version via git. My previous version was the recent 2019.04-rc4. Now in this latest version I think a

Re: [U-Boot] [U-Boot, RESEND, v5, 3/7] test: fs: Add filesystem integrity checks

2019-04-09 Thread Tom Rini
On Wed, Apr 10, 2019 at 10:37:42AM +0900, Takahiro Akashi wrote: > On Tue, Apr 09, 2019 at 08:19:40PM -0400, Tom Rini wrote: > > On Wed, Apr 10, 2019 at 02:10:12AM +0200, Heinrich Schuchardt wrote: > > > On 4/9/19 10:03 PM, Tom Rini wrote: > > > > On Wed, Feb 13, 2019 at 12:15:23PM +0100,

Re: [U-Boot] [PATCH v2] ARM: dts: i.MX6Q: fix avoid_unnecessary_addr_size warnings

2019-04-09 Thread Lukasz Majewski
On Tue, 9 Apr 2019 17:21:13 +0200 Marcel Ziswiler wrote: > From: Marcel Ziswiler > > Re-synced the device tree with Linux 5.0. > > This fixes the following warnings: > > w+arch/arm/dts/imx6-apalis.dtb: Warning > (reg_format): /soc/ipu@280/ port@2/endpoint@0:reg: property has > invalid

Re: [U-Boot] [PATCH v2 3/3] i2c: muxes: pca954x: support PCA9543 I2C switch

2019-04-09 Thread Heiko Schocher
Hello Luca, Am 09.04.2019 um 08:57 schrieb Luca Ceresoli: The PCA9543 is a 2-channel I2C switch. Signed-off-by: Luca Ceresoli Reviewed-by: Heiko Schocher --- Changes v1 -> v2: - rebase on current tree --- drivers/i2c/muxes/Kconfig | 3 ++- drivers/i2c/muxes/pca954x.c | 6 ++ 2

Re: [U-Boot] [PATCH 1/1] efi: fix memory calculation overflow on 32-bit systems

2019-04-09 Thread Heinrich Schuchardt
On 4/9/19 10:58 PM, Patrick Wildt wrote: > Hi, > > There are Cubox-i machines out there with nearly 4 GiB of RAM. The > RAM starts at 0x1000 with a size of 0xf000. Thus the end > of RAM is at 0x1. This overflows a 32-bit integer, which > should be fine since in the EFI memory

Re: [U-Boot] [U-Boot, RESEND, v5, 3/7] test: fs: Add filesystem integrity checks

2019-04-09 Thread Takahiro Akashi
On Tue, Apr 09, 2019 at 10:25:14PM -0400, Tom Rini wrote: > On Wed, Apr 10, 2019 at 10:37:42AM +0900, Takahiro Akashi wrote: > > On Tue, Apr 09, 2019 at 08:19:40PM -0400, Tom Rini wrote: > > > On Wed, Apr 10, 2019 at 02:10:12AM +0200, Heinrich Schuchardt wrote: > > > > On 4/9/19 10:03 PM, Tom Rini

Re: [U-Boot] [PATCH v2 1/2] eeprom: fix DM_I2C support without CONFIG_SYS_I2C_EEPROM_BUS

2019-04-09 Thread Heiko Schocher
Hello Simon, Am 26.03.2019 um 13:38 schrieb Simon Goldschmidt: The current device model enabled eeprom code only works if CONFIG_SYS_I2C_EEPROM_BUS is set. This patch makes it work without that define so that the bus number passed to 'eeprom_init' is used. Signed-off-by: Simon Goldschmidt

Re: [U-Boot] [PATCH v2 2/2] Revert "cmd: Kconfig: Do not include EEPROM if DM_I2C is used without DM_I2C_COMPAT"

2019-04-09 Thread Heiko Schocher
Hello Simon, Am 26.03.2019 um 13:38 schrieb Simon Goldschmidt: This reverts commit 65a97e7fcf54feb7c4ebe1aee8a572830af4cf51. The 'eeprom' command has been converted to work with DM_I2C in a patch submitted around the same time as this commit: commit 0c07a9b4078d ("eeprom: Add device model

Re: [U-Boot] [PATCH 2/2] misc: i2c_eeprom: add eeprom write support

2019-04-09 Thread Heiko Schocher
Hello Baruch, Am 07.04.2019 um 11:38 schrieb Baruch Siach: Write up to page size in each i2c transfer. Signed-off-by: Baruch Siach --- drivers/misc/i2c_eeprom.c | 20 +++- 1 file changed, 19 insertions(+), 1 deletion(-) Reviewed-by: Heiko Schocher bye, Heiko -- DENX

Re: [U-Boot] [PATCH 1/2] DM: I2C: Introduce 'u-boot, i2c-transaction-bytes' property

2019-04-09 Thread Heiko Schocher
Hello Lukasz, Am 04.04.2019 um 12:35 schrieb Lukasz Majewski: The 'u-boot,i2c-transaction-bytes' device tree property provides information regarding number of bytes transferred by a device in a single transaction. This change is necessary to avoid hanging devices after soft reset. One notable

Re: [U-Boot] [PATCH 2/2] misc: i2c_eeprom: add eeprom write support

2019-04-09 Thread Heiko Schocher
Hello Baruch, Am 07.04.2019 um 11:38 schrieb Baruch Siach: Write up to page size in each i2c transfer. Signed-off-by: Baruch Siach --- drivers/misc/i2c_eeprom.c | 20 +++- 1 file changed, 19 insertions(+), 1 deletion(-) Applied to u-boot-i2c.git master Thanks! bye,

Re: [U-Boot] [PATCH 1/2] misc: i2c_eeprom: support DT pagesize property

2019-04-09 Thread Heiko Schocher
Hello Baruch, Am 07.04.2019 um 11:38 schrieb Baruch Siach: Read the page size from DT when available. Signed-off-by: Baruch Siach --- drivers/misc/i2c_eeprom.c | 6 ++ 1 file changed, 6 insertions(+) Applied to u-boot-i2c.git master Thanks! bye, Heiko -- DENX Software Engineering

Re: [U-Boot] [U-Boot, RESEND, v5, 3/7] test: fs: Add filesystem integrity checks

2019-04-09 Thread Heinrich Schuchardt
On 4/9/19 10:03 PM, Tom Rini wrote: > On Wed, Feb 13, 2019 at 12:15:23PM +0100, Jean-Jacques Hiblot wrote: > >> We need to make sure that file writes,file creation, etc. are properly >> performed and do not corrupt the filesystem. >> To help with this, introduce the assert_fs_integrity() function

Re: [U-Boot] [U-Boot, RESEND, v5, 3/7] test: fs: Add filesystem integrity checks

2019-04-09 Thread Takahiro Akashi
On Tue, Apr 09, 2019 at 08:19:40PM -0400, Tom Rini wrote: > On Wed, Apr 10, 2019 at 02:10:12AM +0200, Heinrich Schuchardt wrote: > > On 4/9/19 10:03 PM, Tom Rini wrote: > > > On Wed, Feb 13, 2019 at 12:15:23PM +0100, Jean-Jacques Hiblot wrote: > > > > > >> We need to make sure that file

Re: [U-Boot] [PATCH v2 2/3] i2c: muxes: pca954x: clarify enable field

2019-04-09 Thread Heiko Schocher
Hello Luca, Am 09.04.2019 um 08:57 schrieb Luca Ceresoli: The chip_desc.enable field is used only for muxes, not for switches. Document it and remove the unused values. Signed-off-by: Luca Ceresoli Reviewed-by: Heiko Schocher --- Changes v1 -> v2: - fix typo in commit message (Michal)

Re: [U-Boot] [PATCH 2/2] DTS: imx53: Add imx53-kp-u-boot.dtsi file with u-boot specific property

2019-04-09 Thread Heiko Schocher
Hello Lukasz, Am 04.04.2019 um 12:35 schrieb Lukasz Majewski: This file adds the "u-boot,i2c-transaction-bytes" to mc34708 PMIC. Signed-off-by: Lukasz Majewski --- arch/arm/dts/imx53-kp-u-boot.dtsi | 10 ++ 1 file changed, 10 insertions(+) create mode 100644

Re: [U-Boot] [PATCH v2 1/3] i2c: muxes: pca954x: update list of supported devices

2019-04-09 Thread Heiko Schocher
Hello Luca, Am 09.04.2019 um 08:57 schrieb Luca Ceresoli: The Kconfig help has not been updated while adding PCA9547 and PCA9646. Signed-off-by: Luca Ceresoli --- Changes v1 -> v2: - add missing comma (Michal) - reword and rewrap the sentence --- drivers/i2c/muxes/Kconfig | 10

Re: [U-Boot] [PATCH v2 2/2] Revert "cmd: Kconfig: Do not include EEPROM if DM_I2C is used without DM_I2C_COMPAT"

2019-04-09 Thread Simon Goldschmidt
Hello Heiko, On Wed, Apr 10, 2019 at 7:20 AM Heiko Schocher wrote: > > Hello Marek, Simon, > > Am 09.04.2019 um 21:30 schrieb Marek Vasut: > > On 4/9/19 8:53 PM, Simon Goldschmidt wrote: > >> Am 30.03.2019 um 22:18 schrieb Simon Glass: > >>> On Tue, 26 Mar 2019 at 06:39, Simon Goldschmidt > >>>

Re: [U-Boot] [PATCH 1/2] misc: i2c_eeprom: support DT pagesize property

2019-04-09 Thread Heiko Schocher
Hello Baruch, Am 07.04.2019 um 11:38 schrieb Baruch Siach: Read the page size from DT when available. Signed-off-by: Baruch Siach --- drivers/misc/i2c_eeprom.c | 6 ++ 1 file changed, 6 insertions(+) Reviewed-by: Heiko Schocher bye, Heiko -- DENX Software Engineering GmbH,

Re: [U-Boot] [RFC PATCH v1] MLK-12883 usb: limit USB_MAX_XFER_BLK to 256

2019-04-09 Thread Peng Fan
Hi Marcel, > -Original Message- > From: Marcel Ziswiler [mailto:mar...@ziswiler.com] > Sent: 2019年2月2日 0:43 > To: u-boot@lists.denx.de > Cc: Peng Fan ; Marcel Ziswiler > ; Masahiro Yamada > ; Bin Meng ; > Sven Schwermer > Subject: [RFC PATCH v1] MLK-12883 usb: limit USB_MAX_XFER_BLK to

Re: [U-Boot] [PATCH 1/1] test: call hexdump tests via `ut lib`

2019-04-09 Thread Heinrich Schuchardt
On 2/11/19 8:42 PM, Simon Goldschmidt wrote: > Am 11.02.2019 um 18:29 schrieb Heinrich Schuchardt: >> The unit tests in test/lib/hexdump.c are not related to the device tree. >> So they should be executed via `ut lib` and not via `ut dm`. >> >> Signed-off-by: Heinrich Schuchardt > > Reviewed-by:

Re: [U-Boot] [PATCH 2/2] riscv: qemu-riscv.h: define CONFIG_PREBOOT (enables extlinux)

2019-04-09 Thread Anup Patel
> -Original Message- > From: David Abdurachmanov > Sent: Tuesday, April 9, 2019 4:13 PM > To: r...@andestech.com; Atish Patra ; Anup Patel > ; lukas.a...@aisec.fraunhofer.de; u- > b...@lists.denx.de > Cc: David Abdurachmanov > Subject: [PATCH 2/2] riscv: qemu-riscv.h: define

Re: [U-Boot] [PATCH 1/2] riscv: set CONFIG_SYS_BOOTM_LEN to SZ_64M

2019-04-09 Thread Anup Patel
> -Original Message- > From: David Abdurachmanov > Sent: Tuesday, April 9, 2019 4:13 PM > To: r...@andestech.com; Atish Patra ; Anup Patel > ; lukas.a...@aisec.fraunhofer.de; u- > b...@lists.denx.de > Cc: David Abdurachmanov > Subject: [PATCH 1/2] riscv: set CONFIG_SYS_BOOTM_LEN to

Re: [U-Boot] [U-Boot, RESEND, v5, 3/7] test: fs: Add filesystem integrity checks

2019-04-09 Thread Tom Rini
On Wed, Apr 10, 2019 at 02:10:12AM +0200, Heinrich Schuchardt wrote: > On 4/9/19 10:03 PM, Tom Rini wrote: > > On Wed, Feb 13, 2019 at 12:15:23PM +0100, Jean-Jacques Hiblot wrote: > > > >> We need to make sure that file writes,file creation, etc. are properly > >> performed and do not corrupt the

Re: [U-Boot] [PATCH v2 0/6] pico-imx7d: Add support for BL33 case

2019-04-09 Thread Jun Nie
Otavio Salvador 于2019年4月4日周四 下午8:40写道: > > On Wed, Apr 3, 2019 at 9:00 AM Jun Nie wrote: > > And for the file name pico-imx7d_bl33_defconfig, > > pico-pi-imx7d_bl33_defconfig should be better in my later thought. > > Because a concrete device tree source file should be specified in > > defconfig

Re: [U-Boot] [PATCH v2 2/2] Revert "cmd: Kconfig: Do not include EEPROM if DM_I2C is used without DM_I2C_COMPAT"

2019-04-09 Thread Heiko Schocher
Hello Marek, Simon, Am 09.04.2019 um 21:30 schrieb Marek Vasut: On 4/9/19 8:53 PM, Simon Goldschmidt wrote: Am 30.03.2019 um 22:18 schrieb Simon Glass: On Tue, 26 Mar 2019 at 06:39, Simon Goldschmidt wrote: This reverts commit 65a97e7fcf54feb7c4ebe1aee8a572830af4cf51. The 'eeprom' command

Re: [U-Boot] [U-Boot, RESEND, v5, 3/7] test: fs: Add filesystem integrity checks

2019-04-09 Thread Takahiro Akashi
On Wed, Apr 10, 2019 at 11:51:20AM +0900, Takahiro Akashi wrote: > On Tue, Apr 09, 2019 at 10:25:14PM -0400, Tom Rini wrote: > > On Wed, Apr 10, 2019 at 10:37:42AM +0900, Takahiro Akashi wrote: > > > On Tue, Apr 09, 2019 at 08:19:40PM -0400, Tom Rini wrote: > > > > On Wed, Apr 10, 2019 at

Re: [U-Boot] [RFC PATCH v2] MLK-12883 usb: limit USB_MAX_XFER_BLK to 256

2019-04-09 Thread Lukasz Majewski
On Tue, 9 Apr 2019 17:14:26 -0400 Tom Rini wrote: > On Tue, Apr 09, 2019 at 05:20:45PM +0200, Marcel Ziswiler wrote: > > > From: Peng Fan > > > > For Some USB mass storage devices, such as: > > " > > - Kingston DataTraveler 2.0 001D7D06CF09B04199C7B3EA > > - Class: (from Interface) Mass

Re: [U-Boot] [PATCH] i2c: mvtwsi: fix hang on SPL bind

2019-04-09 Thread Heiko Schocher
Hello Baruch, Am 07.04.2019 um 11:30 schrieb Baruch Siach: The mvebu specific debug register is not accessible when the bind code runs in SPL. Skip it. Signed-off-by: Baruch Siach --- drivers/i2c/mvtwsi.c | 4 1 file changed, 4 insertions(+) Applied to u-boot-i2c.git master Thanks!

Re: [U-Boot] [PATCH 3/3] i2c: muxes: pca954x: support PCA9543 I2C switch

2019-04-09 Thread Heiko Schocher
Hello Luca, Am 05.04.2019 um 12:32 schrieb Luca Ceresoli: The PCA9543 is a 2-channel I2C switch. Signed-off-by: Luca Ceresoli --- drivers/i2c/muxes/Kconfig | 10 +- drivers/i2c/muxes/pca954x.c | 6 ++ 2 files changed, 11 insertions(+), 5 deletions(-) Reviewed-by: Heiko

[U-Boot] [PATCH v2 1/3] i2c: muxes: pca954x: update list of supported devices

2019-04-09 Thread Luca Ceresoli
The Kconfig help has not been updated while adding PCA9547 and PCA9646. Signed-off-by: Luca Ceresoli --- Changes v1 -> v2: - add missing comma (Michal) - reword and rewrap the sentence --- drivers/i2c/muxes/Kconfig | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git

[U-Boot] [PATCH v2 3/3] i2c: muxes: pca954x: support PCA9543 I2C switch

2019-04-09 Thread Luca Ceresoli
The PCA9543 is a 2-channel I2C switch. Signed-off-by: Luca Ceresoli Reviewed-by: Heiko Schocher --- Changes v1 -> v2: - rebase on current tree --- drivers/i2c/muxes/Kconfig | 3 ++- drivers/i2c/muxes/pca954x.c | 6 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git

[U-Boot] [PATCH v2 2/3] i2c: muxes: pca954x: clarify enable field

2019-04-09 Thread Luca Ceresoli
The chip_desc.enable field is used only for muxes, not for switches. Document it and remove the unused values. Signed-off-by: Luca Ceresoli Reviewed-by: Heiko Schocher --- Changes v1 -> v2: - fix typo in commit message (Michal) --- drivers/i2c/muxes/pca954x.c | 4 +--- 1 file changed, 1

Re: [U-Boot] [PATCH v1 3/5] board: toradex: tdx-cfg-block: clean-up sku handling

2019-04-09 Thread Igor Opaniuk
Reviewed-by: Igor Opaniuk On Sat, Apr 6, 2019 at 2:47 PM Marcel Ziswiler wrote: > > From: Marcel Ziswiler > > Clean-up handling of several SKUs. > > Signed-off-by: Marcel Ziswiler > > --- > > board/toradex/common/tdx-cfg-block.c | 12 > board/toradex/common/tdx-cfg-block.h | 22

[U-Boot] [PATCH] dm: sound: make all functions static inline

2019-04-09 Thread Christian Gmeiner
Fixes following compile problem: ➜ u-boot-mainline git:(master) ✗ make sandbox_defconfig all NO_SDL=1 scripts/kconfig/conf --syncconfig Kconfig CHK include/config.h CFG u-boot.cfg GEN include/autoconf.mk GEN include/autoconf.mk.dep CHK include/config/uboot.release

Re: [U-Boot] [PATCH 1/2] DM: I2C: Introduce 'u-boot, i2c-transaction-bytes' property

2019-04-09 Thread Heiko Schocher
Hello Lukasz, Am 04.04.2019 um 12:35 schrieb Lukasz Majewski: The 'u-boot,i2c-transaction-bytes' device tree property provides information regarding number of bytes transferred by a device in a single transaction. This change is necessary to avoid hanging devices after soft reset. One notable

Re: [U-Boot] [PATCH 2/2] DTS: imx53: Add imx53-kp-u-boot.dtsi file with u-boot specific property

2019-04-09 Thread Heiko Schocher
Hello Lukasz, Am 04.04.2019 um 12:35 schrieb Lukasz Majewski: This file adds the "u-boot,i2c-transaction-bytes" to mc34708 PMIC. Signed-off-by: Lukasz Majewski --- arch/arm/dts/imx53-kp-u-boot.dtsi | 10 ++ 1 file changed, 10 insertions(+) create mode 100644

Re: [U-Boot] [PATCH] rockchip: add Kever Yang as co-custodian

2019-04-09 Thread Kever Yang
Add Tom. Thanks, - Kever On 04/03/2019 03:59 PM, Philipp Tomsich wrote: > >> On 03.04.2019, at 09:28, Kever Yang wrote: >> >> This updates MAINTAINERS and git-mailrc to add me as a >> co-custodian for rockchip >> >> Signed-off-by: Kever Yang > As previously discussed off-list: happy to have

Re: [U-Boot] [PATCH v1 5/5] board: toradex: add colibri imx8qxp 2gb wb it v1.0b module support

2019-04-09 Thread Igor Opaniuk
Hi Marcel, Just a couple of comments below after a brief look: On Sat, Apr 6, 2019 at 2:49 PM Marcel Ziswiler wrote: > > From: Marcel Ziswiler > > This commit adds initial support for the Toradex Colibri iMX8QXP 2GB WB > IT V1.0B module. Unlike the V1.0A early access samples exclusively >

Re: [U-Boot] [linux-sunxi] [PATCH 2/3] arm: sunxi: Set the default DRAM ZQ value to 3881979 on H3/H5

2019-04-09 Thread Jagan Teki
On Thu, Mar 14, 2019 at 4:07 PM Paul Kocialkowski wrote: > > Most H3/H5 boards we support have the DRAM ZQ value set to 3881979, > which is also consistent with the default set for the R40. > > Make this value the default on H3/H5 instead of 123. > > Signed-off-by: Paul Kocialkowski > ---

Re: [U-Boot] [linux-sunxi] [PATCH 3/3] arm: sunxi: Enable DRAM ODT by default on H3/H5

2019-04-09 Thread Jagan Teki
On Thu, Mar 14, 2019 at 4:07 PM Paul Kocialkowski wrote: > > Most of the boards we support with H3/H5 enable DRAM on-die termination, > which is consistent with the high DRAM clocks that are used. > > Make it the default (like it's done for other similar platforms) instead > of defining it in

Re: [U-Boot] [PATCH 1/3] i2c: muxes: pca954x: update list of supported devices

2019-04-09 Thread Heiko Schocher
Hello Luca, Am 05.04.2019 um 12:32 schrieb Luca Ceresoli: The Kconfig help has not been updated while adding PCA9547 and PCA9646. Signed-off-by: Luca Ceresoli --- drivers/i2c/muxes/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) beside the comments from Michal,

Re: [U-Boot] [PATCH 2/3] i2c: muxes: pca954x: clarify enable field

2019-04-09 Thread Heiko Schocher
Hello Luca, Am 05.04.2019 um 12:32 schrieb Luca Ceresoli: The chip_desc.enable field is used only for muxes, not tor switches. Document it and remove the unused values. Signed-off-by: Luca Ceresoli --- drivers/i2c/muxes/pca954x.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)

  1   2   3   >