Re: [U-Boot] Building qemu-x86_64_defconfig fails: u-boot-spl-nodtb.bin of 4, 293, 642, 704 bytes

2017-09-10 Thread Bin Meng
Hi Heinrich, On Sun, Sep 10, 2017 at 12:36 PM, Heinrich Schuchardt wrote: > export BUILD_ROM=y > make mrproper > make qemu-x86_64_defconfig > make > > results in a file u-boot-spl-nodtb.bin of 4,293,642,704 bytes > for git HEAD. > > The problematic statement is > > objcopy -O binary -R .start16 -

[U-Boot] [PATCH v2 00/21] efi_loader: enough UEFI for standard distro boot

2017-09-10 Thread Rob Clark
This patchset fleshes out EFI_LOADER enough to support booting an upstream \EFI\BOOT\bootaa64.efi (which then loads fallback.efi and then eventually the per-distro shim.efi which loads the per-distro grubaa64.efi) without resorting to hacks to hard-code u-boot to load a particular distro's grub, or

[U-Boot] [PATCH v2 01/21] part: move efi_guid_t

2017-09-10 Thread Rob Clark
Prep work for next patch. Signed-off-by: Rob Clark --- include/efi.h | 4 include/part.h | 3 ++- include/part_efi.h | 4 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/include/efi.h b/include/efi.h index 02b78b31b1..87b0b43f20 100644 --- a/include/efi.h +++ b/

[U-Boot] [PATCH v3 2/9] fs/fat: introduce new director iterators

2017-09-10 Thread Rob Clark
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 | 356 +- include/fat.h | 7 ++ 2 fi

[U-Boot] [PATCH v3 1/9] fs/fat: split out helper to init fsdata

2017-09-10 Thread Rob Clark
Want to re-use this in fat dirent iterator in next patch. Signed-off-by: Rob Clark Reviewed-by: Łukasz Majewski Reviewed-by: Simon Glass --- fs/fat/fat.c | 73 +++ include/fat.h | 1 + 2 files changed, 44 insertions(+), 30 deletions(-)

[U-Boot] [PATCH v2 02/21] part: extract MBR signature from partitions

2017-09-10 Thread Rob Clark
From: Peter Jones EFI client programs need the signature information from the partition table to determine the disk a partition is on, so we need to fill that in here. Signed-off-by: Peter Jones [separated from efi_loader part, and fixed build-errors for non- CONFIG_EFI_PARTITION case] Signed-

[U-Boot] [PATCH v3 3/9] fat/fs: convert to directory iterators

2017-09-10 Thread Rob Clark
And drop a whole lot of ugly code! Signed-off-by: Rob Clark Reviewed-by: Łukasz Majewski --- fs/fat/fat.c | 722 +++--- include/fat.h | 6 - 2 files changed, 76 insertions(+), 652 deletions(-) diff --git a/fs/fat/fat.c b/fs/fat/fat.c index

[U-Boot] [PATCH v3 7/9] fat/fs: move ls to generic implementation

2017-09-10 Thread Rob Clark
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. Signed-off-by: Rob Clark Reviewed-by: Łukasz Majewski Reviewed-by: Simon Gla

[U-Boot] [PATCH v2 05/21] efi_loader: add device-path utils

2017-09-10 Thread Rob Clark
Helpers to construct device-paths from devices, partitions, files, and for parsing and manipulating device-paths. For non-legacy devices, this will use u-boot's device-model to construct device-paths which include bus hierarchy to construct device-paths. For legacy devices we still fake it, but s

[U-Boot] [PATCH v3 6/9] fat/fs: remove a bunch of dead code

2017-09-10 Thread Rob Clark
Spotted by chance, when trying to remove file_fat_ls(), I noticed there were some dead users of the API. Signed-off-by: Rob Clark Acked-by: Stefan Brüns Reviewed-by: Simon Glass --- fs/fat/Makefile | 4 -- fs/fat/file.c | 183 includ

[U-Boot] [PATCH v2 11/21] efi_loader: add file/filesys support

2017-09-10 Thread Rob Clark
fallback.efi (and probably other things) use UEFI's simple-file-system protocol and file support to search for OS's to boot. Signed-off-by: Rob Clark --- include/efi.h | 2 + include/efi_api.h | 65 + include/efi_loader.h | 13 + lib/efi_l

[U-Boot] [PATCH v2 03/21] efi: add some missing __packed

2017-09-10 Thread Rob Clark
All of the device-path related structures should be packed. UEFI defines the device-path as a byte-aligned data structure. Signed-off-by: Rob Clark --- include/efi_api.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/efi_api.h b/include/efi_api.h index ec1b3

[U-Boot] [PATCH v2 04/21] efi: add some more device path structures

2017-09-10 Thread Rob Clark
From: Peter Jones Signed-off-by: Peter Jones Signed-off-by: Rob Clark --- include/efi_api.h | 54 ++ 1 file changed, 54 insertions(+) diff --git a/include/efi_api.h b/include/efi_api.h index 175341348e..b761cf4822 100644 --- a/include/efi_ap

[U-Boot] [PATCH v2 12/21] efi_loader: support load_image() from a file-path

2017-09-10 Thread Rob Clark
Previously we only supported the case when the EFI application loaded the image into memory for us. But fallback.efi does not do this. Signed-off-by: Rob Clark --- lib/efi_loader/efi_boottime.c | 85 +++ 1 file changed, 70 insertions(+), 15 deletions(-)

[U-Boot] [PATCH v2 10/21] efi_loader: refactor boot device and loaded_image handling

2017-09-10 Thread Rob Clark
Get rid of the hacky fake boot-device and duplicate device-path constructing (which needs to match what efi_disk and efi_net do). Instead convert over to use efi_device_path helpers to construct device-paths, and use that to look up the actual boot device. Also, extract out a helper to plug things

[U-Boot] [PATCH v3 4/9] fs: add fs_readdir()

2017-09-10 Thread Rob Clark
Needed to support efi file protocol. The fallback.efi loader wants to be able to read the contents of the /EFI directory to find an OS to boot. Modelled after POSIX opendir()/readdir()/closedir(). Unlike the other fs APIs, this is stateful (ie. state is held in the FS_DIR "directory stream"), to

[U-Boot] [PATCH v2 15/21] efi_loader: add bootmgr

2017-09-10 Thread Rob Clark
Similar to a "real" UEFI implementation, the bootmgr looks at the BootOrder and Boot variables to try to find an EFI payload to load and boot. This is added as a sub-command of bootefi. The idea is that the distro bootcmd would first try loading a payload via the bootmgr, and then if that fai

[U-Boot] [PATCH v2 07/21] efi_loader: flesh out device-path to text

2017-09-10 Thread Rob Clark
It needs to handle more device-path node types, and also multiple levels of path hierarchy. To simplify this, initially construct utf8 string to a temporary buffer, and then allocate the real utf16 buffer that is returned. This should be mostly for debugging or at least not critical- path so an e

[U-Boot] [PATCH v3 5/9] fs/fat: implement opendir/readdir/closedir

2017-09-10 Thread Rob Clark
Implement the readdir interface using the directory iterators. Signed-off-by: Rob Clark Reviewed-by: Łukasz Majewski --- fs/fat/fat.c | 61 1 file changed, 61 insertions(+) diff --git a/fs/fat/fat.c b/fs/fat/fat.c index bbba7947ee..8

[U-Boot] [PATCH v2 06/21] efi_loader: drop redundant efi_device_path_protocol

2017-09-10 Thread Rob Clark
This is really the same thing as the efi_device_path struct. Signed-off-by: Rob Clark --- include/efi_api.h| 12 ++-- lib/efi_loader/efi_device_path_to_text.c | 13 - 2 files changed, 10 insertions(+), 15 deletions(-) diff --git a/include/efi_api.h b/

[U-Boot] [PATCH v2 17/21] efi_loader: set loaded image code/data type properly

2017-09-10 Thread Rob Clark
These should be set according to the image type. Shell.efi and SCT.efi use these fields to determine what sort of image they are loading. Signed-off-by: Rob Clark --- include/pe.h | 6 ++ lib/efi_loader/efi_image_loader.c | 22 ++ 2 files changed, 2

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

2017-09-10 Thread Rob Clark
Noticed when comparing our output to linux. There are some lcase bits which control whether filename and/or extension should be downcase'd. Signed-off-by: Rob Clark Reviewed-by: Łukasz Majewski --- fs/fat/fat.c | 16 ++-- fs/fat/fat_write.c | 4 ++-- include/fat.h | 6

[U-Boot] [PATCH v2 09/21] efi_loader: use proper device-paths for net

2017-09-10 Thread Rob Clark
Signed-off-by: Rob Clark --- lib/efi_loader/efi_net.c | 19 ++- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/lib/efi_loader/efi_net.c b/lib/efi_loader/efi_net.c index 0b949d86e8..aa0618fd3a 100644 --- a/lib/efi_loader/efi_net.c +++ b/lib/efi_loader/efi_net.c @@ -

[U-Boot] [PATCH v2 08/21] efi_loader: use proper device-paths for partitions

2017-09-10 Thread Rob Clark
Also, create disk objects for the disk itself, in addition to the partitions. (UEFI terminology is a bit confusing, a "disk" object is really a partition.) This helps grub properly identify the boot device since it is trying to match up partition "disk" object with it's parent device. Now instea

[U-Boot] [PATCH v2 16/21] efi_loader: file_path should be variable length

2017-09-10 Thread Rob Clark
After "efi_loader: refactor boot device and loaded_image handling" we can drop this hack. Signed-off-by: Rob Clark --- include/efi_api.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/efi_api.h b/include/efi_api.h index d0aefa8221..604c5b7ec4 100644 --- a/include/efi

[U-Boot] [PATCH v3 9/9] fs/fat: Clean up open-coded sector <-> cluster conversions

2017-09-10 Thread Rob Clark
Use the clust_to_sect() helper that was introduced earlier, and add an inverse sect_to_clust(), plus update the various spots that open-coded this conversion previously. Signed-off-by: Rob Clark --- fs/fat/fat.c | 8 +++- fs/fat/fat_write.c | 8 +++- include/fat.h | 6 +-

[U-Boot] [PATCH v2 19/21] efi_loader: split out escape sequence based size query

2017-09-10 Thread Rob Clark
We need to do something different for vidconsole, since it cannot respond to the query on stdin. Prep work for next patch. Signed-off-by: Rob Clark --- lib/efi_loader/efi_console.c | 53 +--- 1 file changed, 30 insertions(+), 23 deletions(-) diff --git a

[U-Boot] [PATCH v2 20/21] efi_loader: Correctly figure out size for vidconsole

2017-09-10 Thread Rob Clark
If stdout is vidconsole, we cannot rely on ANSI escape sequences to query the size, as vidconsole cannot reply on stdin. Instead special- case this if stdout is vidconsole. Signed-off-by: Rob Clark --- lib/efi_loader/efi_console.c | 16 +++- 1 file changed, 15 insertions(+), 1 delet

[U-Boot] [PATCH v2 13/21] efi_loader: make pool allocations cacheline aligned

2017-09-10 Thread Rob Clark
This avoids printf() spam about file reads (such as loading an image) into unaligned buffers (and the associated memcpy()). And generally seems like a good idea. Signed-off-by: Rob Clark --- lib/efi_loader/efi_memory.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib

[U-Boot] [PATCH v2 21/21] efi_loader: Some console improvements for vidconsole

2017-09-10 Thread Rob Clark
1) use fputs() to reduce cache flushes from once-per-char to once-per-string 2) handle \r, \t, and \b in addition to just \n for tracking cursor position 3) cursor row/col are zero based, not one based Signed-off-by: Rob Clark --- include/efi_api.h| 6 +++-- lib/efi_loader/efi

[U-Boot] [PATCH v2 18/21] efi_loader: print GUIDs

2017-09-10 Thread Rob Clark
Utilize printf GUID support to print GUIDs. Signed-off-by: Rob Clark --- lib/efi_loader/efi_boottime.c | 22 +++--- lib/efi_loader/efi_variable.c | 6 +++--- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boott

[U-Boot] [PATCH v2 14/21] efi_loader: efi variable support

2017-09-10 Thread Rob Clark
Add EFI variable support, mapping to u-boot environment variables. Variables are pretty important for setting up boot order, among other things. If the board supports saveenv, then it will be called in ExitBootServices() to persist variables set by the efi payload. (For example, fallback.efi conf

Re: [U-Boot] [PATCH v2 00/21] efi_loader: enough UEFI for standard distro boot

2017-09-10 Thread Rob Clark
Blerg.. pls ignore the resend of "readdir" patchset which hitched a ride on the git-send-email train.. apparently I should not send patches in the morning before coffee.. BR, -R On Sun, Sep 10, 2017 at 7:21 AM, Rob Clark wrote: > This patchset fleshes out EFI_LOADER enough to support booting an

[U-Boot] [PATCH v4 2/4] block: ide: Fix block read/write with driver model

2017-09-10 Thread Bin Meng
This converts the IDE driver to driver model so that block read and write are fully functional. Fixes: b7c6baef ("x86: Convert MMC to driver model") Reported-by: Heinrich Schuchardt Signed-off-by: Bin Meng Reviewed-by: Simon Glass Tested-by: Heinrich Schuchardt --- Changes in v4: - Ensure th

[U-Boot] [PATCH v4 3/4] block: ide: Don't bother to create BLK device if no CDROM inserted

2017-09-10 Thread Bin Meng
When there is no CDROM inserted, the block size is zero hence there is no need to create a BLK device for it. Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- Changes in v4: None Changes in v3: None Changes in v2: None drivers/block/ide.c | 7 +++ 1 file changed, 7 insertions(+) diff

[U-Boot] [PATCH v4 1/4] blk: Use macros for block device vendor/product/rev string size

2017-09-10 Thread Bin Meng
So far these are using magic numbers. Replace them with macros. Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- Changes in v4: None Changes in v3: - Change BLK_XXX_SIZE to not count the ending NULL Changes in v2: None include/blk.h | 10 +++--- 1 file changed, 7 insertions(+), 3 de

[U-Boot] [PATCH v4 4/4] cmd: ide: Make the first device the default one

2017-09-10 Thread Bin Meng
At present the IDE device number is initialized to -1, which means we cannot type "ide read" command before setting the device number via "ide device #". For convenience, let's set the first device as the default one. Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- Changes in v4: None Ch

Re: [U-Boot] [PATCH v3 2/4] block: ide: Fix block read/write with driver model

2017-09-10 Thread Bin Meng
Hi Tom, On Sat, Sep 9, 2017 at 11:25 AM, Tom Rini wrote: > On Sat, Sep 09, 2017 at 08:30:44AM +0800, Bin Meng wrote: >> Hi Tom, >> >> On Wed, Sep 6, 2017 at 3:30 PM, Bin Meng wrote: >> > This converts the IDE driver to driver model so that block read and >> > write are fully functional. >> > >>

[U-Boot] [PATCH v1 00/12] efi_loader+video: support for Shell.efi

2017-09-10 Thread Rob Clark
This patchset gets Shell.efi working to the point where we can start running SCT.efi (the UEFI test suite). There is more fat/fs work needed so that SCT can actually write results to a file so we can even see what is passing and what is not. This applies on top of the "efi_loader: enough UEFI for

[U-Boot] [PATCH v1 02/12] efi_loader: add stub HII protocols

2017-09-10 Thread Rob Clark
From: Leif Lindholm EfiHiiConfigRoutingProtocolGuid EfiHiiDatabaseProtocol EfiHiiStringProtocol Signed-off-by: Leif Lindholm --- include/efi_api.h | 204 include/efi_loader.h | 6 + lib/efi_loader/Makefile | 2 +- lib/efi_loader/efi_b

[U-Boot] [PATCH v1 01/12] efi_loader: add stub EFI_DEVICE_PATH_UTILITIES_PROTOCOL

2017-09-10 Thread Rob Clark
From: Leif Lindholm Signed-off-by: Leif Lindholm --- include/efi_api.h | 30 +++ include/efi_loader.h | 2 + lib/efi_loader/Makefile| 1 + lib/efi_loader/efi_boottime.c | 4 ++ lib/efi_loader/efi_device_p

[U-Boot] [PATCH v1 06/12] efi_loader: start fleshing out efi_device_path_utilities

2017-09-10 Thread Rob Clark
Not complete, but enough for Shell.efi and SCT.efi. Signed-off-by: Rob Clark --- lib/efi_loader/efi_device_path_utilities.c | 28 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/lib/efi_loader/efi_device_path_utilities.c b/lib/efi_loader/efi_device_p

[U-Boot] [PATCH v1 04/12] efi_loader: start fleshing out HII

2017-09-10 Thread Rob Clark
Not complete but enough for Shell.efi and SCT.efi. Signed-off-by: Rob Clark --- include/efi_api.h| 68 +++- lib/efi_loader/efi_hii.c | 274 --- 2 files changed, 304 insertions(+), 38 deletions(-) diff --git a/include/efi_api.h b/inclu

[U-Boot] [PATCH v1 05/12] efi_loader: flesh out unicode protocol

2017-09-10 Thread Rob Clark
Not complete, but enough for Shell.efi and SCT.efi. Signed-off-by: Rob Clark --- include/efi_api.h | 9 +++ include/efi_loader.h | 1 + lib/efi_loader/efi_boottime.c | 5 +- lib/efi_loader/efi_unicode.c | 143 +++--- 4 files changed

[U-Boot] [PATCH v1 03/12] efi_loader: add EFI_UNICODE_COLLATION_PROTOCOL stub

2017-09-10 Thread Rob Clark
From: Leif Lindholm Signed-off-by: Leif Lindholm --- include/efi_api.h | 33 +++ include/efi_loader.h | 2 ++ lib/efi_loader/Makefile | 2 +- lib/efi_loader/efi_boottime.c | 3 ++ lib/efi_loader/efi_unicode.c | 73 ++

[U-Boot] [PATCH v1 10/12] dm: video: Add basic ANSI escape sequence support

2017-09-10 Thread Rob Clark
Really just the subset that is needed by efi_console. Perhaps more will be added later, for example color support would be useful to implement efi_cout_set_attribute(). Signed-off-by: Rob Clark --- drivers/video/vidconsole-uclass.c | 112 ++ drivers/video/vid

[U-Boot] [PATCH v1 09/12] dm: video: Fix cache flushes

2017-09-10 Thread Rob Clark
Content can come to screen via putc() and we cannot always rely on updates ending with a puts(). This is the case with efi_console output to vidconsole. Fixes corruption with Shell.efi. Signed-off-by: Rob Clark --- drivers/video/vidconsole-uclass.c | 3 +++ 1 file changed, 3 insertions(+) dif

[U-Boot] [PATCH v1 08/12] efi_loader: console support for color attributes

2017-09-10 Thread Rob Clark
Shell.efi uses this, and supporting color attributes makes things look nicer. Map the EFI fg/bg color attributes to ANSI escape sequences. Not all colors have a perfect match, but spec just says "Devices supporting a different number of text colors are required to emulate the above colors to the b

[U-Boot] [PATCH v1 12/12] HACK: efi_loader: hacks for SCT

2017-09-10 Thread Rob Clark
Not intended to be merged, just to show the remaning TODOs to get SCT.efi working. --- include/config_distro_bootcmd.h | 2 +- lib/efi_loader/efi_boottime.c | 4 ++-- lib/efi_loader/efi_console.c| 3 ++- lib/efi_loader/efi_file.c | 11 +-- 4 files changed, 14 insertions(+),

[U-Boot] [PATCH v1 11/12] dm: video: Add color ANSI escape sequence support

2017-09-10 Thread Rob Clark
Note that this doesn't differentiate (due to lack of information in video_priv) between different possible component orders for 32bpp. But the main user at this point is efi_loader, and GOP expects xBGR so any video drivers that this is incorrect for already have problems. (Also, conveniently, this

[U-Boot] [PATCH v1 07/12] efi_loader: SIMPLE_TEXT_INPUT_EX plus wire up objects properly

2017-09-10 Thread Rob Clark
I think we need the _EX version for SCT.. and either way we need to wire up the corresponding objects in the systab properly. This fixes some issues with SCT.efi. Signed-off-by: Rob Clark --- include/efi_api.h | 60 +++- include/efi_loader.h | 10 +--- lib

Re: [U-Boot] Building qemu-x86_64_defconfig fails: u-boot-spl-nodtb.bin of 4, 293, 642, 704 bytes

2017-09-10 Thread Heinrich Schuchardt
On 09/10/2017 06:36 AM, Heinrich Schuchardt wrote: > export BUILD_ROM=y > make mrproper > make qemu-x86_64_defconfig > make > > results in a file u-boot-spl-nodtb.bin of 4,293,642,704 bytes > for git HEAD. > > The problematic statement is > > objcopy -O binary -R .start16 -R .resetvec \ > spl/

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

2017-09-10 Thread Lukasz Majewski
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 different u-boot builds - one for production and one (far more larger) for factory setup. Signed-off-by: Lukasz Ma

Re: [U-Boot] [PATCH v4 1/4] blk: Use macros for block device vendor/product/rev string size

2017-09-10 Thread Tom Rini
On Sun, Sep 10, 2017 at 05:12:50AM -0700, Bin Meng wrote: > So far these are using magic numbers. Replace them with macros. > > Signed-off-by: Bin Meng > Reviewed-by: Simon Glass > Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature __

Re: [U-Boot] [PATCH v4 3/4] block: ide: Don't bother to create BLK device if no CDROM inserted

2017-09-10 Thread Tom Rini
On Sun, Sep 10, 2017 at 05:12:52AM -0700, Bin Meng wrote: > When there is no CDROM inserted, the block size is zero hence there > is no need to create a BLK device for it. > > Signed-off-by: Bin Meng > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Descript

Re: [U-Boot] [PATCH v4 4/4] cmd: ide: Make the first device the default one

2017-09-10 Thread Tom Rini
On Sun, Sep 10, 2017 at 05:12:53AM -0700, Bin Meng wrote: > At present the IDE device number is initialized to -1, which means > we cannot type "ide read" command before setting the device number > via "ide device #". > > For convenience, let's set the first device as the default one. > > Signed

Re: [U-Boot] [PATCH v4 2/4] block: ide: Fix block read/write with driver model

2017-09-10 Thread Tom Rini
On Sun, Sep 10, 2017 at 05:12:51AM -0700, Bin Meng wrote: > This converts the IDE driver to driver model so that block read and > write are fully functional. > > Fixes: b7c6baef ("x86: Convert MMC to driver model") > Reported-by: Heinrich Schuchardt > Signed-off-by: Bin Meng > Reviewed-by: Simo

Re: [U-Boot] Building qemu-x86_64_defconfig fails: u-boot-spl-nodtb.bin of 4, 293, 642, 704 bytes

2017-09-10 Thread Bin Meng
Hi Heinrich, On Sun, Sep 10, 2017 at 11:18 PM, Heinrich Schuchardt wrote: > On 09/10/2017 06:36 AM, Heinrich Schuchardt wrote: >> export BUILD_ROM=y >> make mrproper >> make qemu-x86_64_defconfig >> make >> >> results in a file u-boot-spl-nodtb.bin of 4,293,642,704 bytes >> for git HEAD. >> >> Th

Re: [U-Boot] [PATCH v2 1/5] kbuild: Enable -fshort-wchar

2017-09-10 Thread Masahiro Yamada
2017-09-09 19:47 GMT+09:00 Rob Clark : > EFI_LOADER really wants UTF-16 strings (ie. %ls and L"string" are 16bit > chars instead of 32bit chars). But rather than enabling -fshort-wchar > conditionally if EFI_LOADER is enabled, it was deemed preferrable to > globally switch. > > Signed-off-by: Rob

Re: [U-Boot] [PATCH] rockchip: enable SPL_SYSRESET config for all sockchip SoCs

2017-09-10 Thread Kever Yang
Philipp, Sorry for it can not be applied directly, I believe that's because the rockusb patch still not applied. Thanks, - Kever On 09/08/2017 05:25 PM, Dr. Philipp Tomsich wrote: Kever, Note that this patch applies neither to master nor to next cleanly. Given that it’s a single line c

Re: [U-Boot] [PATCH 3/3] rockchip: evb-rv1108: add usb init function for dwc2 gadget

2017-09-10 Thread wlf
Dear Simon, 在 2017年09月09日 12:54, Simon Glass 写道: Hi, On 14 August 2017 at 04:05, wlf wrote: Dear Simon, 在 2017年08月14日 05:35, Simon Glass 写道: On 8 August 2017 at 21:36, William Wu wrote: This patch implements board_usb_init() for dwc2 gadget, it generally called from do_fastboot to do dwc

[U-Boot] [PATCH] armv8: fsl-layerscape: Add back L3 flushing for all exception levels

2017-09-10 Thread York Sun
CCN-504 HPF registers were believed to be accessible only from EL3. However, recent tests proved otherwise. Remove checking for exception level to re-enable L3 cache flushing for all levels. Signed-off-by: York Sun --- arch/arm/cpu/armv8/fsl-layerscape/lowlevel.S | 4 1 file changed, 4 del

Re: [U-Boot] Building qemu-x86_64_defconfig fails: u-boot-spl-nodtb.bin of 4, 293, 642, 704 bytes

2017-09-10 Thread Heinrich Schuchardt
On 09/11/2017 03:42 AM, Bin Meng wrote: > Hi Heinrich, > > On Sun, Sep 10, 2017 at 11:18 PM, Heinrich Schuchardt > wrote: >> On 09/10/2017 06:36 AM, Heinrich Schuchardt wrote: >>> export BUILD_ROM=y >>> make mrproper >>> make qemu-x86_64_defconfig >>> make >>> >>> results in a file u-boot-spl-nod

Re: [U-Boot] USB Ethernet with device model

2017-09-10 Thread Vignesh R
Hi, Removing mugunthan...@ti.com, who is no longer working for TI. On Wednesday 06 September 2017 02:02 AM, Maxime Ripard wrote: > Hi, > > I've been working with USB-Ethernet gadget for quite some time on the > Allwinner SoCs, especially because most Allwinner boards lack an > ethernet controlle

Re: [U-Boot] Building qemu-x86_64_defconfig fails: u-boot-spl-nodtb.bin of 4, 293, 642, 704 bytes

2017-09-10 Thread Bin Meng
Hi Heinrich, On Mon, Sep 11, 2017 at 1:07 PM, Heinrich Schuchardt wrote: > On 09/11/2017 03:42 AM, Bin Meng wrote: >> Hi Heinrich, >> >> On Sun, Sep 10, 2017 at 11:18 PM, Heinrich Schuchardt >> wrote: >>> On 09/10/2017 06:36 AM, Heinrich Schuchardt wrote: export BUILD_ROM=y make mrprop

Re: [U-Boot] [PATCH 01/10] lib: add TPL_OF_LIBFDT option for TPL

2017-09-10 Thread Simon Glass
On 5 September 2017 at 20:14, Kever Yang wrote: > TPL may need use libfdt for dt decode, add option for it. > > Signed-off-by: Kever Yang > --- > > lib/Kconfig | 10 ++ > 1 file changed, 10 insertions(+) Reviewed-by: Simon Glass ___ U-Boot ma

Re: [U-Boot] [PATCH 03/10] arm: add a separate stack for TPL

2017-09-10 Thread Simon Glass
On 5 September 2017 at 20:14, Kever Yang wrote: > TPL stack may different from SPL and sys stack, add support for > separate one when the board defines it. > > Signed-off-by: Kever Yang > --- > > arch/arm/lib/crt0.S | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) Reviewed-by: Simon G

Re: [U-Boot] [PATCH 06/10] spl: add support to booting with OP-TEE

2017-09-10 Thread Simon Glass
Hi, On 5 September 2017 at 20:14, Kever Yang wrote: > OP-TEE is an open source trusted OS, in armv7, its loading and > running are like this: > loading: > - SPL load both OP-TEE and U-Boot > running: > - SPL run into OP-TEE in secure mode; > - OP-TEE run into U-Boot in non-secure mode; > > More d

Re: [U-Boot] [PATCH 02/10] arm: add option for TPL support in arm 32bit

2017-09-10 Thread Simon Glass
On 5 September 2017 at 20:14, Kever Yang wrote: > Some options like TPL_SYS_THUMB_BUILD, TPL_USE_ARCH_MEMCPY > and TPL_USE_ARCH_MEMCPY are needed for TPL build in 32bit arm. > > Signed-off-by: Kever Yang > --- > > arch/arm/Kconfig | 29 + > 1 file changed, 29 insertio

Re: [U-Boot] [PATCH 05/10] sysreset: enable driver support in SPL/TPL

2017-09-10 Thread Simon Glass
On 5 September 2017 at 20:14, Kever Yang wrote: > SPL/TPL also need use sysreset for some feature like panic callback. > > Signed-off-by: Kever Yang > --- > > drivers/sysreset/Kconfig | 18 ++ > drivers/sysreset/Makefile | 2 +- > 2 files changed, 19 insertions(+), 1 deletion(-

Re: [U-Boot] [PATCH 08/10] rockchip: evb-rk3229: add fit source file for itb

2017-09-10 Thread Simon Glass
On 5 September 2017 at 20:14, Kever Yang wrote: > We package U-Boot and OP-TEE into one itb file for SPL, > so that we can support OP-TEE in SPL. > > Signed-off-by: Kever Yang > --- > > board/rockchip/evb_rk3229/fit_spl_optee.its | 48 > + > 1 file changed, 48 insert

Re: [U-Boot] [PATCH] dm: video: Add basic ANSI escape sequence support

2017-09-10 Thread Simon Glass
On 7 September 2017 at 14:28, Rob Clark wrote: > Really just the subset that is needed by efi_console. Perhaps more will > be added later, for example color support would be useful to implement > efi_cout_set_attribute(). > > Signed-off-by: Rob Clark > --- > drivers/video/vidconsole-uclass.c |

Re: [U-Boot] [PATCH 09/10] rockchip: evb-rk3229: add README file for OP-TEE support

2017-09-10 Thread Simon Glass
Hi Kever, On 5 September 2017 at 20:14, Kever Yang wrote: > Detail of step by step to bring up the board with OP-TEE support. > > Signed-off-by: Kever Yang > --- > > board/rockchip/evb_rk3229/README | 72 > > 1 file changed, 72 insertions(+) > create m

Re: [U-Boot] [PATCH v1] drivers: ahci: write upper 32 bits for clb and fis registers

2017-09-10 Thread Simon Glass
On 6 September 2017 at 10:59, Suneel Garapati wrote: > If 64-bit capability is supported, commandlistbase and fis base > should be split as lower32 and upper32. upper32 should be > written to PORT_(LST/FIS)_ADDR_HI. > > Signed-off-by: Suneel Garapati > --- > > Changes v1: > - add macro definitio

Re: [U-Boot] [PATCH v2] misc: Kconfig: Add SPL_I2C_EEPROM option

2017-09-10 Thread Simon Glass
On 5 September 2017 at 23:08, Wenyou Yang wrote: > This option is an SPL-variant of the I2C_EEPROM option to enable > the driver for generic I2C-attached EEPROMs for SPL. > > Signed-off-by: Wenyou Yang > --- > > Changes in v2: > - Rebase the uboot/master (84a4206). > > drivers/misc/Kconfig | 8

Re: [U-Boot] [PATCH 04/10] rockchip: rk322x: enable tpl support

2017-09-10 Thread Simon Glass
On 5 September 2017 at 20:14, Kever Yang wrote: > Move original spl to tpl, and add spl to load next stage firmware, > adapt all the address and option for them. > > Signed-off-by: Kever Yang > --- > > arch/arm/mach-rockchip/Kconfig | 9 > arch/arm/mach-rockchip/Makefile

Re: [U-Boot] [PATCH 10/10] rockchip: evb-rk322x: update defconfig with tpl and optee support

2017-09-10 Thread Simon Glass
On 5 September 2017 at 20:14, Kever Yang wrote: > Enable all the options for TPL/SPL and OPTEE. > > Signed-off-by: Kever Yang > --- > > configs/evb-rk3229_defconfig | 28 > 1 file changed, 24 insertions(+), 4 deletions(-) Reviewed-by: Simon Glass __

Re: [U-Boot] [PATCH 07/10] rockchip: rk322x: dts: enable uart2 for SPL/TPL

2017-09-10 Thread Simon Glass
On 5 September 2017 at 20:14, Kever Yang wrote: > When we use DM_SERIAL for serial driver, we need enable the > dts node for the debug console. > > Signed-off-by: Kever Yang > --- > > arch/arm/dts/rk3229-evb.dts | 1 + > 1 file changed, 1 insertion(+) Reviewed-by: Simon Glass _

Re: [U-Boot] [PATCH v1] cmd: usb: add blk devices to ignore list in tree graph

2017-09-10 Thread Simon Glass
On 6 September 2017 at 11:01, Suneel Garapati wrote: > add blk child devices to ignore list while displaying > usb tree graph, otherwise usb tree and info commands > may cause crash treating blk as usb device. > > Signed-off-by: Suneel Garapati > --- > > Changes v1: > - add separate check on blk

[U-Boot] [PATCH] rockchip: add support for backing to bootrom download mode

2017-09-10 Thread Andy Yan
Rockchip bootrom will enter download mode if it returns from spl/tpl with a none-zero value and couldn't find a valid image in the backup partition. This patch provide a method to instruct the system to back to bootrom download mode by checking the BROM_DOWNLOAD_FLAG register. As the bootrom downlo