[U-Boot] [u-boot-denx-usb] Build break on current u-boot-usb master

2017-07-22 Thread Łukasz Majewski
Hi Marek, When I was "cleaning up" my patchwork todo list I've found following problem (s): A lot of boards are broken with message: LD u-boot drivers/usb/host/built-in.o: In function `xhci_dwc3_remove': /home/lukma/work/embedded/u-boot-denx/drivers/usb/host/xhci-dwc3.c:161: undefined

Re: [U-Boot] [u-boot-denx-usb] Build break on current u-boot-usb master

2017-07-22 Thread Łukasz Majewski
On 07/22/2017 08:36 PM, Marek Vasut wrote: On 07/22/2017 08:18 PM, Łukasz Majewski wrote: Hi Marek, When I was "cleaning up" my patchwork todo list I've found following problem (s): A lot of boards are broken with message: LD u-boot drivers/usb/host/built-in

Re: [U-Boot] [PATCH 00/52] Support OF_PLATDATA in TPL, enable RK3368 DRAM init and add RK3368-uQ7

2017-07-24 Thread Łukasz Majewski
On 07/24/2017 10:59 AM, Heiko Stübner wrote: Am Montag, 24. Juli 2017, 16:38:52 CEST schrieb Andy Yan: Hi Philipp: On 2017年07月21日 18:55, Dr. Philipp Tomsich wrote: On 21 Jul 2017, at 04:33, Andy Yan wrote: Hi: On 2017年07月19日 04:35, Philipp Tomsich wrote: Here's a series that has a lot goin

Re: [U-Boot] [u-boot-denx-usb] Build break on current u-boot-usb master

2017-07-24 Thread Łukasz Majewski
On 07/24/2017 09:02 AM, Bin Meng wrote: On Mon, Jul 24, 2017 at 2:48 PM, Patrice CHOTARD wrote: Hi Marek On 07/22/2017 08:36 PM, Marek Vasut wrote: On 07/22/2017 08:18 PM, Łukasz Majewski wrote: Hi Marek, When I was "cleaning up" my patchwork todo list I've found following

Re: [U-Boot] [PATCH] zynq: fb_mmc: Correct cast of address to u32

2017-07-24 Thread Łukasz Majewski
On 07/24/2017 02:53 PM, Marek Vasut wrote: On 07/24/2017 02:47 PM, Tom Rini wrote: On Mon, Jul 24, 2017 at 02:09:56PM +0200, Marek Vasut wrote: On 07/23/2017 05:47 PM, Tom Rini wrote: On Sun, Jul 23, 2017 at 09:05:31AM -0600, Simon Glass wrote: This does not work on 64-bit machines. Update i

Re: [U-Boot] [PATCH v5 00/20] dm: tegra: Move nyan-big, jetson-tk1, beaver to livetree

2017-07-26 Thread Łukasz Majewski
Hi Simon This moves four entire boards to use a live device tree as an example of the impact. I've grepp'ed the ./doc directory and couldn't find any info regarding "livetree" feature. From patches, I guess that livetree is about preparing DM tree just after relocation. Am I right? If I

Re: [U-Boot] [PATCH v3 1/3] usb: gadget: move USB_FUNCTION_MASS_STORAGE to Kconfig

2017-07-28 Thread Łukasz Majewski
Hi Philipp, In order to easily model a that CMD_USB_MASS_STORAGE implies having USB_FUNCTION_MASS_STORAGE enabled, we first need to migrate USB_FUNCTION_MASS_STORAGE to Kconfig. Thanks for the conversion! Signed-off-by: Philipp Tomsich Acked-by: Łukasz Majewski --- Changes in v3

Re: [U-Boot] [PATCH] Convert CONFIG_USB_ETHER et al to Kconfig

2017-07-28 Thread Łukasz Majewski
On 07/26/2017 07:05 PM, Adam Ford wrote: This converts the following to Kconfig: CONFIG_USB_ETHER CONFIG_USB_ETHER_RNDIS Signed-off-by: Adam Ford Acked-by: Łukasz Majewski -- Best regards, Lukasz Majewski -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB

Re: [U-Boot] [PATCH] usb: dwc2: Align size of invalidating dcache before starting DMA

2017-07-31 Thread Łukasz Majewski
EPT_SIZ_XFER_SIZE(length), Reviewed-by: Łukasz Majewski -- Best regards, Lukasz Majewski -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-6698

Re: [U-Boot] [PATCH 3/3] dm: core: Add livetree documentation

2017-08-08 Thread Łukasz Majewski
-Boot 2017.07. There is still quite a bit +of work to do to flesh this out: + +- tests for all access functions +- support for livetree modification +- addition of more access functions as needed +- support for livetree in SPL and before relocation (if desired) + + +-- +Simon Glass +5-Aug-17 Thanks S

Re: [U-Boot] [PATCH v1 1/7] imx: move imximage header to common location

2017-08-08 Thread Łukasz Majewski
ols => include}/imximage.h (100%) diff --git a/tools/imximage.h b/include/imximage.h similarity index 100% rename from tools/imximage.h rename to include/imximage.h Reviewed-by: Łukasz Majewski -- Best regards, Lukasz Majewski -- DENX Software Engineering GmbH, Managing Director: Wo

Re: [U-Boot] [PATCH v1 0/7] imx: add USB Serial Download Protocol (SDP) support

2017-08-08 Thread Łukasz Majewski
Hi Stefan, From: Stefan Agner This series adds NXP's Serial Download Protocol (SDP) support via USB for SPL/U-Boot. It allows to download U-Boot via USB from a (recovered) SPL using the same tools used to download SPL itself (specifically imx_usb, but also sb_loader seems to work). If I migh

Re: [U-Boot] [PATCH v1 2/7] usb: gadget: add SDP driver

2017-08-08 Thread Łukasz Majewski
Hi Stefan, From: Stefan Agner Add SDP (Serial Downloader Protocol) implementation for U-Boot. The protocol is used in NXP SoC's boot ROM and allows to download program images. Beside that, it can also be used to read/write registers and download complete Device Configuration Data (DCD) sets. T

Re: [U-Boot] [PATCH v1 3/7] usb: gadget: sdp: extend images compatible for jumps

2017-08-08 Thread Łukasz Majewski
: Stefan Agner Reviewed-by: Łukasz Majewski --- drivers/usb/gadget/f_sdp.c | 20 ++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/drivers/usb/gadget/f_sdp.c b/drivers/usb/gadget/f_sdp.c index eb89695aaf..9a752843f0 100644 --- a/drivers/usb/gadget/f_sdp.c

Re: [U-Boot] [PATCH v1 4/7] cmd: add sdp command

2017-08-08 Thread Łukasz Majewski
ial Downloader Protocol", + "\n" + " - serial downloader protocol via \n" +); Reviewed-by: Łukasz Majewski -- Best regards, Lukasz Majewski -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.

Re: [U-Boot] Does U-boot allow snapshot restoration?

2017-07-12 Thread Łukasz Majewski
On 07/12/2017 04:13 AM, shiwen wrote: Hi all, This is Shiwen, good morning! :) I wan to do fast boot for arm , but I am not familiar with U-boot, as title says, I'm curious that U-boot for smdk2410 allow snapshot restoration? If allowed, can you tell me witch function do this work? Any advice

Re: [U-Boot] Does U-boot allow snapshot restoration?

2017-07-12 Thread Łukasz Majewski
On 07/12/2017 01:46 PM, 张释文 wrote: On 07/12/2017 04:06 PM, Łukasz Majewski wrote: On 07/12/2017 04:13 AM, shiwen wrote: Hi all, This is Shiwen, good morning! :) I wan to do fast boot for arm , but I am not familiar with U-boot, as title says, I'm curious that U-boot for smdk2410

Re: [U-Boot] Adding Debug Symbol To U-Boot

2017-07-17 Thread Łukasz Majewski
On 07/12/2017 12:42 PM, yyurtcan wrote: Hi, I have p4080ds and lauterbach(T32) hardware debugger. As known, u-boot has written both assembly and C language. I can debug all u-boot code in assembly language(C code also converted to assembly). However, it is hard to follow. How can I debug u-boot C

Re: [U-Boot] [PATCH v2 0/3] CMD_USB_MASS_STORAGE implies USB_FUNCTION_MASS_STORAGE

2017-07-17 Thread Łukasz Majewski
Hi Marek, On 07/17/2017 10:39 AM, Łukasz Majewski wrote: On 07/14/2017 06:27 PM, Philipp Tomsich wrote: Up to now, there's been some ugliness associated with the dependency from CMD_USB_MASS_STORAGE to USB_FUNCTION_MASS_STORAGE: if someone only defined CMD_USB_MASS_STORAGE, they

Re: [U-Boot] [PATCH v2 0/3] CMD_USB_MASS_STORAGE implies USB_FUNCTION_MASS_STORAGE

2017-07-17 Thread Łukasz Majewski
On 07/14/2017 06:27 PM, Philipp Tomsich wrote: Up to now, there's been some ugliness associated with the dependency from CMD_USB_MASS_STORAGE to USB_FUNCTION_MASS_STORAGE: if someone only defined CMD_USB_MASS_STORAGE, they'd meet a linker error due to missing symbols that came from USB_FUNCTION_M

Re: [U-Boot] [PATCH 0/4] dfu: remove limitation on partition size

2017-07-20 Thread Łukasz Majewski
Hi Patrick, I discover some limitation on DFU stack when I play on my ARM board with DFU for my external SDCARD : 16GB It is mainly caused by the 'long' type (32 bits on ARMv7) used for size in dfu.c I solve the issue with the 2 first patches of this serie - manage size and result correctly i

[U-Boot] [GIT] Pull request: u-boot-dfu

2017-07-20 Thread Łukasz Majewski
Dear Marek, The following changes since commit 807598a60c5bf7fdf0eb1d78625eeeacfac3c6bc: usb: add static to local symbols (2017-07-14 20:45:20 +0200) are available in the git repository at: git://git.denx.de/u-boot-dfu.git for you to fetch changes up to 2361a4f3be36c673fbbbd1c76bc96553e5e

Re: [U-Boot] [GIT] Pull request: u-boot-dfu

2017-07-20 Thread Łukasz Majewski
Hi Marek, On 07/20/2017 12:03 PM, Łukasz Majewski wrote: Dear Marek, Hi, The following changes since commit 807598a60c5bf7fdf0eb1d78625eeeacfac3c6bc: usb: add static to local symbols (2017-07-14 20:45:20 +0200) are available in the git repository at: git://git.denx.de/u-boot-dfu.git

Re: [U-Boot] [PATCH] sf: bar: Clean BA24 Bank Address Register bit after read/write/erase operation

2017-09-23 Thread Łukasz Majewski
Hi Fabio, Jagan, Hi Lukasz, On Wed, Sep 13, 2017 at 6:39 AM, Lukasz Majewski wrote: #ifdef CONFIG_SPI_FLASH_BAR +/* + * This "cleanup" is necessary in a situation when one was accessing + * spi flash memory > 16 MiB by using Bank Address Register's BA24 bit. + * + * After it the BA24 bit s

Re: [U-Boot] Makefile: Update minimum dtc version to 1.4.3

2017-09-24 Thread Łukasz Majewski
On 09/24/2017 08:41 AM, Heinrich Schuchardt wrote: On 09/23/2017 07:53 PM, Tom Rini wrote: On Sat, Sep 23, 2017 at 07:43:09PM +0200, Marek Vasut wrote: On 09/23/2017 07:37 PM, Tom Rini wrote: On Sat, Sep 23, 2017 at 07:33:44PM +0200, Marek Vasut wrote: On 09/23/2017 07:05 PM, Tom Rini wrote:

Re: [U-Boot] Makefile: Update minimum dtc version to 1.4.3

2017-09-24 Thread Łukasz Majewski
Hi Marek, Tom, On 09/24/2017 01:36 PM, Tom Rini wrote: On Sun, Sep 24, 2017 at 10:28:18AM +0200, Marek Vasut wrote: On 09/24/2017 05:22 AM, Tom Rini wrote: On Sat, Sep 23, 2017 at 09:07:02PM -0500, Robert Nelson wrote: On Sat, Sep 23, 2017 at 8:49 PM, Bin Meng wrote: Hi Tom, On Sun, Sep 2

Re: [U-Boot] [PATCH 0/5] Follow the Linux Kernel in building dtc as needed

2017-09-24 Thread Łukasz Majewski
Hi Tom, On Sun, Sep 24, 2017 at 06:50:01PM +0200, Marek Vasut wrote: On 09/24/2017 04:26 PM, Tom Rini wrote: The following series has been applied. I am posting this for the record. For the record, I do not believe that using git submodules is a good approach here. We have a small amount of

Re: [U-Boot] Make Menuconfig Fails

2017-09-25 Thread Łukasz Majewski
Hi Duncan, make menuconfig HOSTCC scripts/kconfig/mconf.o In file included from scripts/kconfig/mconf.c:23:0: scripts/kconfig/lxdialog/dialog.h:26:20: fatal error: curses.h: No such file or directory #include CURSES_LOC It seems like you are missing ncurses5-dev package. Appears CURS

Re: [U-Boot] [PATCH] GPT: fix memory leaks identified by Coverity

2017-09-25 Thread Łukasz Majewski
On 09/25/2017 02:37 AM, ali...@peloton-tech.com wrote: From: Alison Chaiken Create a common exit for most of the error handling code in do_rename_gpt_parts. Delete the list elements in disk_partitions before calling INIT_LIST_HEAD from get_gpt_info() a second time. The SIZEOF_MISMATCH error

Re: [U-Boot] Pull request: u-boot-spi/master

2017-09-25 Thread Łukasz Majewski
Hi Jagan, Hi Tom, Please pull this PR. Would you find some time and look into following patch: http://patchwork.ozlabs.org/patch/813266/ Thanks in advance, Łukasz thanks! Jagan. The following changes since commit 1f6049e2501b5c35c61435dbc05ba96743202674: tools/mkimage: Make the path

Re: [U-Boot] [PATCH] sf: bar: Clean BA24 Bank Address Register bit after read/write/erase operation

2017-09-25 Thread Łukasz Majewski
Hi Jagan, On Wed, Sep 13, 2017 at 3:09 PM, Lukasz Majewski wrote: The content of Bank Address Register (BAR) is volatile. It is cleared after power cycle or reset command (RESET F0h). Some memories (like e.g. s25fl256s) use it to access memory larger than 0x100 (16 MiB). The problem show

Re: [U-Boot] [PATCH v2 5/7] armv8: layerscape: Eanble falcon boot

2017-09-25 Thread Łukasz Majewski
Hi York, If you don't mind, I would like to ask you for some help and clarification regarding your work. Add jump_to_image_linux() for arm64. Add "noreturn" flag to armv8_switch_to_el2(). Add hooks to fsl-layerscape to enable falcon boot. I'm trying to do the same on imx6q board (armv7).

Re: [U-Boot] [PATCH v2] sf: bar: Clean BA24 Bank Address Register bit after read/write/erase operation

2017-09-26 Thread Łukasz Majewski
On 09/26/2017 07:40 AM, Jagan Teki wrote: On Mon, Sep 25, 2017 at 4:10 PM, Lukasz Majewski wrote: The content of Bank Address Register (BAR) is volatile. It is cleared after power cycle or reset command (RESET F0h). Some memories (like e.g. s25fl256s) use it to access memory larger than 0x1000

Re: [U-Boot] [PATCH v2] sf: bar: Clean BA24 Bank Address Register bit after read/write/erase operation

2017-09-26 Thread Łukasz Majewski
Hi Jagan, On 09/26/2017 07:40 AM, Jagan Teki wrote: On Mon, Sep 25, 2017 at 4:10 PM, Lukasz Majewski wrote: The content of Bank Address Register (BAR) is volatile. It is cleared after power cycle or reset command (RESET F0h). Some memories (like e.g. s25fl256s) use it to access memory larger

Re: [U-Boot] [PATCH v2] sf: bar: Clean BA24 Bank Address Register bit after read/write/erase operation

2017-09-27 Thread Łukasz Majewski
Hi Jagan, On Tue, Sep 26, 2017 at 12:37 PM, Łukasz Majewski wrote: On 09/26/2017 07:40 AM, Jagan Teki wrote: On Mon, Sep 25, 2017 at 4:10 PM, Lukasz Majewski wrote: The content of Bank Address Register (BAR) is volatile. It is cleared after power cycle or reset command (RESET F0h). Some

Re: [U-Boot] [PATCH v2] sf: bar: Clean BA24 Bank Address Register bit after read/write/erase operation

2017-09-27 Thread Łukasz Majewski
On 09/27/2017 10:04 AM, Jagan Teki wrote: On Mon, Sep 25, 2017 at 4:10 PM, Lukasz Majewski wrote: The content of Bank Address Register (BAR) is volatile. It is cleared after power cycle or reset command (RESET F0h). Some memories (like e.g. s25fl256s) use it to access memory larger than 0x1000

Re: [U-Boot] [PATCH v3 4/7] armv8: ls1043ardb: Use static DDR setting for SPL boot

2017-09-29 Thread Łukasz Majewski
Hi York, This board has soldered DDR chips. To reduce the SPL image size, use static DDR setting instead of dynamic DDR driver. I'm just wondering - since your board supports FIT in SPL, maybe it would be good to have a binary blob with DDR RAM settings embedded into it? Then you would be a

Re: [U-Boot] [PATCH v3 5/7] armv8: layerscape: Enable falcon boot

2017-09-29 Thread Łukasz Majewski
x(struct spl_image_info *spl_image) +{ + debug("Entering kernel arg pointer: 0x%p\n", spl_image->arg); + cleanup_before_linux(); + armv8_switch_to_el2((u64)spl_image->arg, 0, 0, 0, + spl_image->entry_point, ES_TO_AARCH64); +} +#else void __

Re: [U-Boot] Patman - Submitting to mailing list

2017-09-29 Thread Łukasz Majewski
On 09/28/2017 11:05 PM, Duncan Hare wrote: Get the following message from running tools/patman/pathan.py git: 'send-email' is not a git command. See 'git --help'. What do I need to do? Duncan Hare 714 931 7952 ___ U-Boot mailing list U-Boot@lists.denx

Re: [U-Boot] [PATCH v3 4/7] armv8: ls1043ardb: Use static DDR setting for SPL boot

2017-09-29 Thread Łukasz Majewski
Hi York, On 09/29/2017 12:44 AM, Łukasz Majewski wrote: Hi York, This board has soldered DDR chips. To reduce the SPL image size, use static DDR setting instead of dynamic DDR driver. I'm just wondering - since your board supports FIT in SPL, maybe it would be good to have a binary

Re: [U-Boot] [PATCH] Kconfig: BOOTCOMMAND: Define default set of boot commands in Kconfig

2017-09-30 Thread Łukasz Majewski
On 09/14/2017 04:55 PM, Tom Rini wrote: On Mon, Sep 11, 2017 at 10:53:51PM +0200, Łukasz Majewski wrote: On 09/11/2017 07:31 PM, Tom Rini wrote: On Sun, Sep 10, 2017 at 08:25:02PM +0200, Lukasz Majewski wrote: This patch gives an opportunity to override the defined CONFIG_BOOTCOMMAND (at

Re: [U-Boot] fsl_esdhc driver is broken with DM

2017-10-01 Thread Łukasz Majewski
Hi Fabio, Hi Tom, On Sun, Oct 1, 2017 at 11:49 AM, Tom Rini wrote: Same regression is observed with mx7dsabresd board as well. It's likely to be all i.MX :( Only the i.MX configs with CONFIG_DM_MMC=y. Yes, I can confirm this. I'm using SPL + imx_usb (and boot to eMMC) on my imx6q boar

Re: [U-Boot] [PATCH] Kconfig: BOOTCOMMAND: Define default set of boot commands in Kconfig

2017-10-02 Thread Łukasz Majewski
On 10/01/2017 02:41 AM, Tom Rini wrote: On Sat, Sep 30, 2017 at 10:20:47PM +0200, Łukasz Majewski wrote: On 09/14/2017 04:55 PM, Tom Rini wrote: On Mon, Sep 11, 2017 at 10:53:51PM +0200, Łukasz Majewski wrote: On 09/11/2017 07:31 PM, Tom Rini wrote: On Sun, Sep 10, 2017 at 08:25:02PM +0200

Re: [U-Boot] [PATCH] imx: serial: Wait for ongoing transmission to finish before serial reset

2017-10-04 Thread Łukasz Majewski
HI Lothar, Hi, On Tue, 3 Oct 2017 11:16:45 +0200 Lukasz Majewski wrote: It may happen that the MXC serial IP block is performing some ongoing transmission (started at e.g. board_init()) when the "initr_serial" is called. As a result the serial port IP block is reset, so transmitted data is c

Re: [U-Boot] [PATCH v1 2/3] disk: efi: correct the overlap check on GPT header and PTE

2017-10-09 Thread Łukasz Majewski
0a2-b9e5-4433-87c0-68b6b72699c7 type: data guid: b4b84b8a-04e3-4000-0036-aff5c9c495b1 And 0x22 = 34 LBA => offset = 0x4400 is accepted as expected Reviewed-by: Łukasz Majewski Signed-off-by: Patrick Delaunay --- disk/part_efi.c | 4 ++-- 1 file changed, 2 insert

Re: [U-Boot] [PATCH] imx: serial: Wait for ongoing transmission to finish before serial reset

2017-10-09 Thread Łukasz Majewski
Hi Simon, Hi Lukasz, On 3 October 2017 at 03:16, Lukasz Majewski wrote: It may happen that the MXC serial IP block is performing some ongoing transmission (started at e.g. board_init()) when the "initr_serial" is called. As a result the serial port IP block is reset, so transmitted data is c

Re: [U-Boot] [PATCH v2 2/8] usb: gadget: add SDP driver

2017-08-17 Thread Łukasz Majewski
evice Configuration Data (DCD) sets. This basic implementation supports downloading images with the imx header format reading and writing registers. Signed-off-by: Stefan Agner Reviewed-by: Łukasz Majewski --- Changes in v2: - Changed function signature of sdp_init/sdp_handle to allow speci

Re: [U-Boot] [PATCH v2 5/8] spl: add serial download protocol (SDP) support

2017-08-17 Thread Łukasz Majewski
On 08/16/2017 08:00 PM, Stefan Agner wrote: From: Stefan Agner Add USB serial download protocol support to SPL. If the SoC started in recovery mode the SPL will immediately switch to SDP and wait for further downloads/commands from the host side. Reviewed-by: Łukasz Majewski Signed-off

Re: [U-Boot] [PATCH v2 6/8] doc: add Serial Download Protocol documentation

2017-08-17 Thread Łukasz Majewski
Hi Stefan, From: Stefan Agner Document the U-Boot Serial Download Protocol implementation and some typical use cases. Thanks for providing the description :-) Reviewed-by: Łukasz Majewski Signed-off-by: Stefan Agner --- This ended up to be almost more a imx_usb documentation. But

Re: [U-Boot] [PATCH v2 7/8] apalis/colibri_imx6: use independent USB PID for SPL

2017-08-17 Thread Łukasz Majewski
On 08/16/2017 08:00 PM, Stefan Agner wrote: From: Stefan Agner Use a completely independent USB Product ID for SPL. This allows to differentiate a SDP running in SPL and SDP running in a U-Boot which could not read the config block successfully. Reviewed-by: Łukasz Majewski Signed-off-by

Re: [U-Boot] [PATCH v3 18/19] dfu: fix spl build

2017-08-17 Thread Łukasz Majewski
uct mtd_device *mtd_dev; u8 part_num; @@ -220,6 +222,7 @@ int dfu_fill_entity_nand(struct dfu_entity *dfu, char *devstr, char *s) mtdparts_init(); ret = find_dev_and_part(mtd_id, &mtd_dev, &part_num, &pi); + I think that this

Re: [U-Boot] [PATCH v2 2/8] usb: gadget: add SDP driver

2017-08-17 Thread Łukasz Majewski
On 08/17/2017 03:54 PM, Marek Vasut wrote: On 08/17/2017 03:49 PM, Stefano Babic wrote: On 16/08/2017 20:00, Stefan Agner wrote: From: Stefan Agner Add SDP (Serial Downloader Protocol) implementation for U-Boot. The protocol is used in NXP SoC's boot ROM and allows to download program images.

Re: [U-Boot] [PATCH v3 3/3] config: move USB_FUNCTION_MASS_STORAGE

2017-08-17 Thread Łukasz Majewski
Hi Philipp, On 26 July 2017 at 05:22, Philipp Tomsich wrote: With both an imply from CMD_USB to USB_FUNCTION_MASS_STORAGE and with USB_FUNCTION_MASS_STORAGE moved to Kconfig, we can now run moveconfig. Signed-off-by: Philipp Tomsich --- Changes in v3: None Changes in v2: None configs/CHI

Re: [U-Boot] [PATCH] fb_mmc.c: Correct blk_dread() return value checks

2017-08-17 Thread Łukasz Majewski
); - if (res == 0) { + if (res != ramdisk_sectors) { error("cannot read ramdisk from boot partition"); fastboot_fail("cannot read ramdisk from boot partition"); return -1; Reviewed-by: Łukasz Majewski I've applied th

[U-Boot] [GIT] Pull request: u-boot-dfu

2017-08-21 Thread Łukasz Majewski
Dear Marek, The following changes since commit 5b70b1688cdf677563096063e4a48e4bed250a10: usb: ehci: Convert CONFIG_USB_EHCI_PCI to Kconfig (2017-08-09 10:50:08 +0200) are available in the git repository at: git://git.denx.de/u-boot-dfu.git/master for you to fetch changes up to b14b19e1a

Re: [U-Boot] [PATCH v2 4/4] rockchip: enable rockusb for all rockchip SoCs

2017-08-22 Thread Łukasz Majewski
Hi Kever, Philipp, I have no idea about the status of rockusb, it has been a long time on the list. Maybe Eddie or Lukasz have an answer? I've asked Eddie to fix issues with breaking other boards when enabling USB gadget infrastructure on RK. No reply since then. I have to use tho

Re: [U-Boot] [PATCH 0/2] board: ti: am57xx: Add DT support for BeagleBoard-X15 revC

2017-08-23 Thread Łukasz Majewski
: Select dtb name for X15 revC arch/arm/dts/Makefile | 1 + board/ti/am57xx/board.c | 3 +++ configs/am57xx_evm_defconfig| 2 +- configs/am57xx_hs_evm_defconfig | 2 +- include/environment/ti/boot.h | 2 ++ 5 files changed, 8 insertions(+), 2 deletions(-) Reviewed-by: Łukasz

Re: [U-Boot] [PATCH] imx: imx6: Move gpr_init() function to soc.c

2017-08-24 Thread Łukasz Majewski
On 08/24/2017 03:02 PM, Stefano Babic wrote: Hi Breno, On 24/08/2017 15:00, Breno Lima wrote: Since the gpr_init() function is common for boards using MX6S, MX6DL, MX6D, MX6Q and MX6QP processors move it to the soc.c file. Fully agree ! I took a loog a couple of days ago and I saw how much

Re: [U-Boot] [PATCH v2 4/4] rockchip: enable rockusb for all rockchip SoCs

2017-08-25 Thread Łukasz Majewski
Hi Philipp, Andy, Tom On 25 Aug 2017, at 03:51, Andy Yan wrote: Hi Lukasz: 2017-08-22 18:05 GMT+08:00 Łukasz Majewski mailto:lu...@denx.de>>: Hi Kever, Philipp, I have no idea about the status of rockusb, it has been a long time on the list. Maybe Eddie or Lukasz have an

Re: [U-Boot] [PATCH v2 4/4] rockchip: enable rockusb for all rockchip SoCs

2017-08-26 Thread Łukasz Majewski
Dear All, Hi Philipp, Andy, Tom On 25 Aug 2017, at 03:51, Andy Yan wrote: Hi Lukasz: 2017-08-22 18:05 GMT+08:00 Łukasz Majewski mailto:lu...@denx.de>>: Hi Kever, Philipp, I have no idea about the status of rockusb, it has been a long time on the list. Maybe Eddie or Lukasz h

Re: [U-Boot] [PATCH v2 4/4] rockchip: enable rockusb for all rockchip SoCs

2017-08-26 Thread Łukasz Majewski
On 08/26/2017 02:46 PM, Tom Rini wrote: On Fri, Aug 25, 2017 at 01:06:55PM +0200, Łukasz Majewski wrote: Hi Philipp, Andy, Tom On 25 Aug 2017, at 03:51, Andy Yan wrote: Hi Lukasz: 2017-08-22 18:05 GMT+08:00 Łukasz Majewski mailto:lu...@denx.de>>: Hi Kever, Philipp, I have n

Re: [U-Boot] [PATCH] fix: fw_env: Prevent writing error message on special files, which don't support fsync

2017-08-27 Thread Łukasz Majewski
Hi Michael, Hi Lukasz, Am Sonntag, 27. August 2017, 13:46:22 CEST schrieb Lukasz Majewski: According to fsync specification [1] some special files (e.g., a pipe, FIFO, or socket) don't support synchronization and return either EROFS or EINVAL. On the linux side the sys_fsync -> do_fsync() che

Re: [U-Boot] [PATCH v2 5/6] rename GPT partitions to detect boot failure

2017-08-28 Thread Łukasz Majewski
On 08/28/2017 01:02 AM, Chaiken, Alison wrote: On 2017-05-31 01:12, Lukasz Majewski wrote: [ . . . ] And another request -> Could you consider adding tests for those new gpt commands to the 'sandbox' (sandbox_defconfig) ? Then you can 'mount' some gpt test image ('host' command) and use it wi

Re: [U-Boot] [RFC PATCH 0/4] usb: net: Migrate USB Ethernet to Kconfig

2017-08-28 Thread Łukasz Majewski
Hi Chris, I ran into a few problems running moveconfig.py mainly due to boards that include a common .h file. I'm not confident I've captured all the defconfigs that need CONFIG_USB_HOST_ETHER or one of the specific drivers. Is there a more fool-proof way of catching these cases? Needless to say

Re: [U-Boot] [PATCH] imx6: drop duplicated bss memset and board_init_r() call

2017-08-28 Thread Łukasz Majewski
Hi Anatolij, bss section is cleared in crt0.S. board_init_r() is also entered from crt0 code. Reviewed-by: Lukasz Majewski Signed-off-by: Anatolij Gustschin Cc: Christian Gmeiner Cc: Nikita Kiryanov Cc: Jagan Teki Cc: Tim Harvey Cc: Marek Vasut Cc: Lukasz Majewski Cc: Fabio Estevam

[U-Boot] [GIT] Pull request: u-boot-dfu

2017-08-28 Thread Łukasz Majewski
Dear Marek, Those patches are preferably for -next merge widow. The following changes since commit ae61b5353b48fa49c66376f273cc53cd3c06b656: usb: dwc3: fix Kconfig dependency to accept host driver in drivers/usb/dwc3 (2017-08-25 11:23:27 +0200) are available in the git repository at:

Re: [U-Boot] [GIT] Pull request: u-boot-dfu

2017-08-28 Thread Łukasz Majewski
On 08/28/2017 10:32 PM, Marek Vasut wrote: On 08/28/2017 09:28 PM, Łukasz Majewski wrote: Dear Marek, Those patches are preferably for -next merge widow. The following changes since commit ae61b5353b48fa49c66376f273cc53cd3c06b656: usb: dwc3: fix Kconfig dependency to accept host driver

Re: [U-Boot] am33xx ddr tests

2017-08-29 Thread Łukasz Majewski
On 08/27/2017 03:40 PM, Ryan wrote: Hello, I have 2 chips which are 512mb each connected to the AM33xx processor. I want to check if the base address is configured for each chip in u-boot or kernel. Could you be more specific here? In u-boot (SPL + u-boot.img) the DDRs are configured. When

Re: [U-Boot] [PATCH v2] dm: core: Add livetree documentation

2017-08-31 Thread Łukasz Majewski
On 08/31/2017 02:00 PM, Simon Glass wrote: On 31 August 2017 at 19:59, Simon Glass wrote: Add some documentation for the live device tree support in U-Boot. This was missing from the initial series. Signed-off-by: Simon Glass Suggested-by: Lukasz Majewski Reviewed-by: Łukasz Majewski (I

Re: [U-Boot] [PATCH 1/1] usb: gadget: g_dnl: Use serial# variable to set g_dnl_serial

2017-08-31 Thread Łukasz Majewski
On 08/31/2017 08:45 PM, Sam Protsenko wrote: On 31 August 2017 at 21:20, Sam Protsenko wrote: Since 842778a09104 commit, "fastboot devices" stopped to show correct device serial number for TI boards, showing this line instead: fastboot This is because serial# env varia

Re: [U-Boot] [PATCH 1/1] usb: gadget: g_dnl: Use serial# variable to set g_dnl_serial

2017-09-01 Thread Łukasz Majewski
On 09/01/2017 10:19 AM, Marek Vasut wrote: On 08/31/2017 08:20 PM, Sam Protsenko wrote: Since 842778a09104 commit, "fastboot devices" stopped to show correct device serial number for TI boards, showing this line instead: fastboot This is because serial# env variable cou

Re: [U-Boot] [PATCH 1/1] usb: gadget: g_dnl: Use serial# variable to set g_dnl_serial

2017-09-01 Thread Łukasz Majewski
On 09/01/2017 11:51 AM, Marek Vasut wrote: On 09/01/2017 10:36 AM, Łukasz Majewski wrote: On 09/01/2017 10:19 AM, Marek Vasut wrote: On 08/31/2017 08:20 PM, Sam Protsenko wrote: Since 842778a09104 commit, "fastboot devices" stopped to show correct device serial number for TI board

Re: [U-Boot] [PATCH v3 1/1] usb: gadget: g_dnl: Sync internal SN variable with env

2017-09-02 Thread Łukasz Majewski
Hi Heiko, Would you find some time and run this patch through your test setup? Thanks in advance. Best regards, Łukasz Since commit 842778a09104 ("usb: gadget: g_dnl: only set iSerialNumber if we have a serial#") "fastboot devices" stopped to show correct device serial number for TI boards,

Re: [U-Boot] [PATCH v2 1/8] fs/fat: split out helper to init fsdata

2017-09-03 Thread Łukasz Majewski
On 09/02/2017 06:37 PM, Rob Clark wrote: Want to re-use this in fat dirent iterator in next patch. Signed-off-by: Rob Clark Reviewed-by: Łukasz Majewski --- fs/fat/fat.c | 73 +++ include/fat.h | 1 + 2 files changed, 44

Re: [U-Boot] [PATCH v2 2/8] fs/fat: introduce new director iterators

2017-09-03 Thread Łukasz Majewski
On 09/02/2017 06:37 PM, Rob Clark wrote: Untangle directory traversal into a simple iterator, to replace the existing multi-purpose do_fat_read_at() + get_dentfromdir(). Signed-off-by: Rob Clark Reviewed-by: Łukasz Majewski --- fs/fat/fat.c | 326

Re: [U-Boot] [PATCH v2 3/8] fat/fs: convert to directory iterators

2017-09-03 Thread Łukasz Majewski
On 09/02/2017 06:37 PM, Rob Clark wrote: And drop a whole lot of ugly code! +1 Reviewed-by: Łukasz Majewski Signed-off-by: Rob Clark --- fs/fat/fat.c | 723 ++ include/fat.h | 6 - 2 files changed, 75 insertions(+), 654

Re: [U-Boot] [PATCH v2 4/8] fs: add fs_readdir()

2017-09-03 Thread Łukasz Majewski
is held in the FS_DIR "directory stream"), to avoid re-traversing of the directory structure at each step. The directory stream must be released with closedir() when it is no longer needed. Reviewed-by: Łukasz Majewski Signed-off-by: Rob Clark --- disk/part

Re: [U-Boot] [PATCH v2 5/8] fs/fat: implement opendir/readdir/closedir

2017-09-03 Thread Łukasz Majewski
On 09/02/2017 06:38 PM, Rob Clark wrote: Implement the readdir interface using the directory iterators. Reviewed-by: Łukasz Majewski Signed-off-by: Rob Clark --- fs/fat/fat.c | 56 1 file changed, 56 insertions(+) diff --git a

Re: [U-Boot] [PATCH v2 7/8] fat/fs: move ls to generic implementation

2017-09-03 Thread Łukasz Majewski
On 09/02/2017 06:38 PM, Rob Clark wrote: Add a generic implementation of 'ls' using opendir/readdir/closedir, and replace fat's custom implementation. Other filesystems should move to the generic implementation after they add opendir/readdir/closedir support. Reviewed-by:

Re: [U-Boot] [PATCH v2 8/8] fs/fat: fix case for FAT shortnames

2017-09-03 Thread Łukasz Majewski
On 09/02/2017 06:38 PM, Rob Clark wrote: Noticed when comparing our output to linux. There are some lcase bits which control whether filename and/or extension should be downcase'd. Reviewed-by: Łukasz Majewski Signed-off-by: Rob Clark --- fs/fat/fat.c | 17 -

Re: [U-Boot] [RFC] toradex: imx6: Move g_dnl_bind_fixup() into common SPL code

2017-09-03 Thread Łukasz Majewski
On 09/03/2017 04:56 PM, Fabio Estevam wrote: From: Fabio Estevam Instead of having every board file to add its own g_dnl_bind_fixup() implementation, move it to the common imx6 SPL code. Reviewed-by: Łukasz Majewski Signed-off-by: Fabio Estevam --- Stefan, I don't have acce

Re: [U-Boot] [PATCH 1/9] lib: Add CRC32-C

2017-09-03 Thread Łukasz Majewski
Hi Marek, This is needed for BTRFS. Signed-off-by: Marek Behun create mode 100644 lib/crc32c.c Excuse me my ignorance, but in u-boot we already have: ./lib/crc32.c is the crc32c algorithm a different one from venerable crc32? diff --git a/include/u-boot/crc.h b/include/u-boot/crc.h i

Re: [U-Boot] [PATCH v2 1/8] fs/fat: split out helper to init fsdata

2017-09-03 Thread Łukasz Majewski
On 09/03/2017 05:47 PM, Rob Clark wrote: On Sun, Sep 3, 2017 at 10:52 AM, Łukasz Majewski wrote: On 09/02/2017 06:37 PM, Rob Clark wrote: Want to re-use this in fat dirent iterator in next patch. Signed-off-by: Rob Clark Reviewed-by: Łukasz Majewski thanks btw, is there some way to

Re: [U-Boot] [PATCH v3 1/1] usb: gadget: g_dnl: Sync internal SN variable with env

2017-09-05 Thread Łukasz Majewski
Hi Sam, On 4 September 2017 at 08:36, Heiko Schocher wrote: Hello Lukasz, Am 02.09.2017 um 13:08 schrieb Łukasz Majewski: Hi Heiko, Would you find some time and run this patch through your test setup? Thanks in advance. Of course, as it is automated ;-) Okay, I had to add an oneliner

Re: [U-Boot] [PATCH v3 08/14] fit: fdt overlays doc

2017-09-06 Thread Łukasz Majewski
onfig@1 |- description = "configuration description" |- kernel = "kernel sub-node unit name" |- ramdisk = "ramdisk sub-node unit name" - |- fdt = "fdt sub-node unit-name" + |- fdt = "fdt sub-node unit-name" [, "fdt overlay sub-node

Re: [U-Boot] [PATCH v3 09/14] doc: Document how to apply fdt overlays

2017-09-06 Thread Łukasz Majewski
to be invalidated, so keep copies to avoid reloading. + +Pantelis Antoniou +pantelis.anton...@konsulko.com +11/7/2017 Reviewed-by: Łukasz Majewski -- Best regards, Lukasz Majewski -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5

Re: [U-Boot] [PATCH v3 10/14] doc: overlays: Tweak documentation regarding overlays

2017-09-06 Thread Łukasz Majewski
ses on specifically using overlays as part of a FIT image. +General information regarding overlays including its syntax and building it +can be found in doc/README.fdt-overlays + Configuration without overlays -- Reviwed-by: Łukasz Majewski -- Best regard

Re: [U-Boot] [PATCH 06/13] usb: gadget: usb_ether: Move settings to common

2017-09-08 Thread Łukasz Majewski
On 09/08/2017 07:34 PM, Maxime Ripard wrote: The usb_ether gadget duplicates the USB settings for the manufacturer, product ID and vendor ID. Make sure we use the common option so that we can expect a single VID/PID couple for a single device. Signed-off-by: Maxime Ripard Reviewed-by: Lukasz

Re: [U-Boot] [PATCH 05/13] usb: gadget: Make g_dnl USB settings common

2017-09-09 Thread Łukasz Majewski
Hi Maxime, The g_dnl USB settings for the vendor ID, product ID and manufacturer are actually common settings that can and should be shared by all the gadgets. Make them common by renaming them, and convert all the users. Reviewed-by: Lukasz Majewski Signed-off-by: Maxime Ripard --- bo

Re: [U-Boot] [PATCH] Kconfig: BOOTCOMMAND: Define default set of boot commands in Kconfig

2017-09-11 Thread Łukasz Majewski
On 09/11/2017 07:31 PM, Tom Rini wrote: On Sun, Sep 10, 2017 at 08:25:02PM +0200, Lukasz Majewski wrote: This patch gives an opportunity to override the defined CONFIG_BOOTCOMMAND (at files) with set of commands defined in board _defconfig file. Rationale: This change allows having two differ

Re: [U-Boot] [U-Boot,V9,1/4] usb: rockchip: add the rockusb gadget

2017-09-12 Thread Łukasz Majewski
Hi Philipp, This patch series is waiting for opening new merge window. It is already applied to usb-next tree. this patch implement rockusb protocol on the device side. this is based on USB download gadget infrastructure. the rockusb function implements the rd, wl, rid commands. it can work w

Re: [U-Boot] [U-Boot,V9,1/4] usb: rockchip: add the rockusb gadget

2017-09-12 Thread Łukasz Majewski
Hi Dr. Philipp, Hi Lukasz, On 12 Sep 2017, at 10:14, Łukasz Majewski wrote: Hi Philipp, This patch series is waiting for opening new merge window. It is already applied to usb-next tree. Didn’t the new merge window just open yesterday? I'm sure Marek will send PR shortly. Re

Re: [U-Boot] [PATCH v2 02/14] usb: gadget: Document USBNET_DEVADDR

2017-09-13 Thread Łukasz Majewski
:00:01" + help + Ethernet MAC address of the device-side (ie. local board's) MAC + address of the usb_ether interface endif # USB_GADGET Acked-by: Łukasz Majewski -- Best regards, Lukasz Majewski -- DENX Software Engineering GmbH, Managing Director: W

Re: [U-Boot] [PATCH v2 01/14] usb: gadget: Move USBNET_DEVADDR option out of g_dnl

2017-09-13 Thread Łukasz Majewski
"Product ID of USB device" +endif # USB_GADGET_DOWNLOAD + config USBNET_DEVADDR string "USB Gadget Ethernet device mac address" default "de:ad:be:ef:00:01" -endif # USB_GADGET_DOWNLOAD - endif # USB_GADGET Acked-by: Łukasz Majewski --

Re: [U-Boot] [PATCH v2 03/14] usb: gadget: Move USBNET_HOST_ADDR to Kconfig

2017-09-13 Thread Łukasz Majewski
#define CONFIG_USBNET_DEV_ADDR"de:ad:be:af:00:01" #endif diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt index 9ce0c3f039ff..784e83c7c8a1 100644 --- a/scripts/config_whitelist.txt +++ b/scripts/config_whitelist.txt @@ -4983,7 +4983,6 @@ C

Re: [U-Boot] [PATCH v2 04/14] usb: gadget: Convert USB_ETHER to Kconfig

2017-09-13 Thread Łukasz Majewski
On 09/12/2017 09:01 PM, Maxime Ripard wrote: The USB Ethernet gadget option has not yet been moved to Kconfig, let's deal with that. Reviewed-by: Łukasz Majewski Signed-off-by: Maxime Ripard --- configs/am335x_baltos_defconfig | 1 + configs/am335x_boneblack_defc

Re: [U-Boot] [PATCH v2 05/14] usb: gadget: usb_ether: Move the interfaces to Kconfig

2017-09-13 Thread Łukasz Majewski
On 09/12/2017 09:01 PM, Maxime Ripard wrote: We need to select an interface for the usb_ether gadget, and they haven't been converted to Kconfig yet. Add a choice to make sure we have an option selected, and convert all the users. Reviewed-by: Łukasz Majewski Signed-off-by: Maxime R

Re: [U-Boot] [PATCH v2 08/14] sunxi: provide default USB gadget setup

2017-09-13 Thread Łukasz Majewski
On 09/12/2017 09:01 PM, Maxime Ripard wrote: All the Allwinner boards use the same manufacturer, VID and PID for the gadgets. Make them the defaults to remove some boilerplate from our defconfigs. Reviewed-by: Łukasz Majewski Reviewed-by: Simon Glass Signed-off-by: Maxime Ripard

Re: [U-Boot] [PATCH v2 09/14] sunxi: imply USB_GADGET

2017-09-13 Thread Łukasz Majewski
eviewed-by: Łukasz Majewski -- Best regards, Lukasz Majewski -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w.

Re: [U-Boot] [PATCH v2 10/14] cmd: fastboot: Rework fastboot dependency

2017-09-13 Thread Łukasz Majewski
ER="Texas Instruments" CONFIG_USB_GADGET_VENDOR_NUM=0x0451 CONFIG_USB_GADGET_PRODUCT_NUM=0xd022 -CONFIG_USB_GADGET_DOWNLOAD=y CONFIG_OF_LIBFDT=y diff --git a/configs/tinker-rk3288_defconfig b/configs/tinker-rk3288_defconfig index 84fcd8979f20..816fc0189c1d 100644 --- a/configs/tinker-rk3288_defconfig +++ b/c

  1   2   >