Re: [U-Boot] Running u-boot on a x86 board

2016-07-16 Thread Bin Meng
+Simon, ML, On Fri, Jul 15, 2016 at 6:48 PM, Nicolae Rosia wrote: > Hello, > > I would like to run u-boot instead of grub on an Advantech UNO-2473G > board with a Intel ATOM CPU 3845. > Is it possible with the current u-boot to be loaded by UEFI and u-boot > to load the Linux Kernel from a SATA h

[U-Boot] [PATCH v2] efi_loader: Add debug output for efi_add_memory_map()

2016-07-16 Thread Andreas Färber
Tracing the arguments has been helpful for pinpointing overflows. Cc: Alexander Graf Signed-off-by: Andreas Färber --- lib/efi_loader/efi_memory.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/efi_loader/efi_memory.c b/lib/efi_loader/efi_memory.c index df2381e..df3547c 100644 --- a

Re: [U-Boot] [PATCH] test: Adjust the of-platdata test run condition

2016-07-16 Thread Tom Rini
On Sat, Jul 16, 2016 at 06:36:44PM -0600, Simon Glass wrote: > This should be spl_of_platdata, since otherwise it will try to run on boards > that don't support of-platdata. > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature

[U-Boot] [PATCH] test: Adjust the of-platdata test run condition

2016-07-16 Thread Simon Glass
This should be spl_of_platdata, since otherwise it will try to run on boards that don't support of-platdata. Signed-off-by: Simon Glass --- test/py/tests/test_ofplatdata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/py/tests/test_ofplatdata.py b/test/py/tests/test_

[U-Boot] PCIe bridges on Jetson TK1

2016-07-16 Thread Andreas Färber
Hi, When I boot my Jetson TK1, by default I get this from lspci: 00:02.0 PCI bridge: NVIDIA Corporation TegraK1 PCIe x1 Bridge (rev a1) 01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0c) If however I plug some mini PCIe

Re: [U-Boot] [PATCH v4.1 3/4] rockchip: rk3288: add fastboot support

2016-07-16 Thread Simon Glass
On 14 July 2016 at 21:20, Simon Glass wrote: > On 14 July 2016 at 10:26, Ziyuan Xu wrote: >> From: Xu Ziyuan >> >> Enable fastboot feature on rk3288. >> >> This path doesn't support the fastboot flash function command entirely. > > patch? > >> We will hit "cannot find partition" assertion withou

Re: [U-Boot] Please pull u-boot-sunxi master

2016-07-16 Thread Tom Rini
On Sat, Jul 16, 2016 at 07:54:35PM +0200, Andreas Färber wrote: > Am 16.07.2016 um 15:52 schrieb Tom Rini: > > +(pine64_plus)himport_r(&env_htab, (char *)spl->fel_script_address, > > +(pine64_plus) ^ > > w+(pine64_plus) ../board/sunxi/board.c: In function ‘parse_spl_head

Re: [U-Boot] [PATCH v4 2/4] usb: dwc2-otg: adjust fifo size via platform data

2016-07-16 Thread Simon Glass
Hi Marek, On 15 July 2016 at 23:43, Marek Vasut wrote: > On 07/15/2016 05:56 AM, Simon Glass wrote: >> >> On 14 July 2016 at 21:20, Simon Glass wrote: >>> >>> On 14 July 2016 at 00:52, Ziyuan Xu wrote: From: Xu Ziyuan The total FIFO size of some SoCs may be different from t

Re: [U-Boot] Please pull u-boot-sunxi master

2016-07-16 Thread Andreas Färber
Am 16.07.2016 um 15:52 schrieb Tom Rini: > +(pine64_plus)himport_r(&env_htab, (char *)spl->fel_script_address, > +(pine64_plus) ^ > w+(pine64_plus) ../board/sunxi/board.c: In function ‘parse_spl_header’: > w+(pine64_plus) ../board/sunxi/board.c:601:24: warning: cast to p

[U-Boot] [PATCH] ARM: uniphier: select CONFIG_ARMV8_SPIN_TABLE

2016-07-16 Thread Masahiro Yamada
This is needed when booting Linux without ARM Trusted Firmware. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-uniphier/Kconfig b/arch/arm/mach-uniphier/Kconfig index e256eeb..e39ced6 100644 --- a/arch/arm/mach

Re: [U-Boot] [PATCH] mkimage: rockchip: add suport for rk33 serial

2016-07-16 Thread Andreas Färber
Simon, Am 15.07.2016 um 05:56 schrieb Simon Glass: > On 14 July 2016 at 21:20, Simon Glass wrote: >> On 13 July 2016 at 21:51, Kever Yang wrote: >>> Add support for rockchip rk33 series Soc like rk3368 and rk3399 >>> >>> Signed-off-by: Kever Yang >>> --- >>> >>> tools/rkcommon.c | 1 + >>> 1 f

Re: [U-Boot] [PATCH v2] armv8: spl: Call board_init_r from crt0_64 in SPL

2016-07-16 Thread Andreas Färber
Am 16.07.2016 um 00:21 schrieb Jeremy Hunt: > As part of the startup process for boards using the SPL, the > meaning of board_init_f changed such that it should return normally > rather than calling board_init_r directly. (see > db910353a126d84fe8dff7a694ea792f50fcfb6a ) > This was fixed in 32-bit

Re: [U-Boot] [PATCH 3/9] cosmetic: rockchip: sort socs according to numbers

2016-07-16 Thread Andreas Färber
Am 16.07.2016 um 00:17 schrieb Heiko Stuebner: > Having some sort of ordering proofed helpful in a lot of other places "proved" > already. So for a larger number of rockchip socs it might be helpful > as well instead of an ever increasing unsorted list. > > Signed-off-by: Heiko Stuebner > --- >

[U-Boot] [PATCH v2 4/4] tools/env: reuse fw_getenv in fw_printenv function

2016-07-16 Thread Andreas Fenkart
Try to avoid adhoc iteration of the environment. Reuse fw_getenv to find the variables that should be printed. Only use open-coded iteration when printing all variables. For backwards compatibility, keep emitting a newline when printing with value_only. Signed-off-by: Andreas Fenkart --- tools/e

[U-Boot] [PATCH v2 3/4] tools/env: move envmatch further up in file to avoid forward declarations

2016-07-16 Thread Andreas Fenkart
forward declaration not needed when re-ordered Reviewed-by: Simon Glass Signed-off-by: Andreas Fenkart --- tools/env/fw_env.c | 38 ++ 1 file changed, 18 insertions(+), 20 deletions(-) diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c index fe479e9..f155c

[U-Boot] [PATCH v2 0/4] tools/env: minor refactorings

2016-07-16 Thread Andreas Fenkart
various patches, see individual patch descriptions Andreas Fenkart (4): tools/env: return with error if redundant environments have unequal size tools/env: kernel-doc for fw_printenv, fw_getenv and fw_parse_script tools/env: move envmatch further up in file to avoid forward declarati

[U-Boot] [PATCH v2 1/4] tools/env: return with error if redundant environments have unequal size

2016-07-16 Thread Andreas Fenkart
For double buffering to work, the target buffer must always be big enough to hold all data. This can only be ensured if buffers are of equal size, otherwise one must be smaller and we risk data loss when copying from the bigger to the smaller buffer. Reviewed-by: Simon Glass Signed-off-by: Andrea

[U-Boot] [PATCH v2 2/4] tools/env: kernel-doc for fw_printenv, fw_getenv and fw_parse_script

2016-07-16 Thread Andreas Fenkart
there are two groups of functions: - application ready tools: fw_setenv/fw_getenv/fw_parse_script these are used, when creating a single binary containing multiple tools (busybox like) - file access like: open/read/write/close above functions are implemented on top of these. applications can use th

Re: [U-Boot] is minicom still discouraged as the serial comms program?

2016-07-16 Thread Måns Rullgård
Tom Rini writes: > On Sat, Jul 16, 2016 at 06:52:38AM -0400, Robert P. J. Day wrote: > >> i know that minicom has been discouraged for quite some time WRT >> u-boot, is that still the case? and what was the flaw with minicom, >> anyway? and is there any problem with picocom, which seems to work

Re: [U-Boot] [U-Boot, 3/3] stm32: Change USART port to USART6 for stm32f746 discovery board

2016-07-16 Thread Tom Rini
On Fri, Jul 08, 2016 at 01:02:26AM +0900, tnishinaga@gmail.com wrote: > From: Toshifumi NISHINAGA > > This change is to remove a halt at about 200KiB > while sending a large(1MiB) binary to a micro controller using USART1. > USART1 is connected to a PC via an on-board ST-Link debugger > that

Re: [U-Boot] [U-Boot, 08/14] test/py: Add an option to execute a string containing a command

2016-07-16 Thread Tom Rini
On Sun, Jul 03, 2016 at 09:40:40AM -0600, Simon Glass wrote: > It is sometimes inconvenient to convert a string into a list for execution > with run_and_log(). Provide a helper function to do this. > > Signed-off-by: Simon Glass > Reviewed-by: Teddy Reed Applied to u-boot/master, thanks! --

Re: [U-Boot] is minicom still discouraged as the serial comms program?

2016-07-16 Thread Tom Rini
On Sat, Jul 16, 2016 at 06:52:38AM -0400, Robert P. J. Day wrote: > i know that minicom has been discouraged for quite some time WRT > u-boot, is that still the case? and what was the flaw with minicom, > anyway? and is there any problem with picocom, which seems to work for > me just fine. As

Re: [U-Boot] [PATCH] configs: Add more CONFIG_ARMV7_PSCI_NR_CPUS entries

2016-07-16 Thread Tom Rini
On Fri, Jul 15, 2016 at 03:32:39PM -0400, Tom Rini wrote: > The code had assumed 4 CPUS before and now we have this configurable. > For now, set this to the previous default. > > Cc: Chander Kashyap > Cc: Steve Rae > Cc: Minkyu Kang > Signed-off-by: Tom Rini Applied to u-boot/master, thanks!

Re: [U-Boot] [PATCH v2] Various, unrelated tree-wide typo fixes.

2016-07-16 Thread Tom Rini
On Fri, Jul 15, 2016 at 01:44:45PM -0400, Robert P. J. Day wrote: > Fix a number of typos, including: > > * "compatble" -> "compatible" > * "eanbeld" -> "enabled" > * "envrionment" -> "environment" > * "FTD" -> "FDT" (for "flattened device tree") > * "ommitted" -> "om

Re: [U-Boot] Please pull u-boot-sunxi master

2016-07-16 Thread Tom Rini
On Fri, Jul 15, 2016 at 04:29:28PM +0200, Hans de Goede wrote: > Hi Tom, > > Here is the first sunxi pull-req for v2016.09, > the big one here is Chen-Yu's PSCI cleanup, this > also touches non sunxi specific files but it seemed > best to me merge this through the sunxi tree. > > Besides this, i

Re: [U-Boot] please pull u-boot-samsung master

2016-07-16 Thread Tom Rini
On Fri, Jul 15, 2016 at 01:17:14PM +0900, Minkyu Kang wrote: > Dear Tom, > > The following changes since commit 19ce924ff914f315dc2fdf79f357825c513aed6e: > > Prepare v2016.07 (2016-07-11 15:01:01 -0400) > > are available in the git repository at: > > git://git.denx.de/u-boot-samsung master

Re: [U-Boot] Please pull u-boot-dm

2016-07-16 Thread Tom Rini
On Thu, Jul 14, 2016 at 10:02:40PM -0600, Simon Glass wrote: > Hi Tom, > > Here is the of-platdata implementation, including the introduction of > sandbox_spl. > > > The following changes since commit 3a592a1349ac3961b0f4f2db0a8d9f128225d897: > > Revert "armv8: Enable CPUECTLR.SMPEN for cohe

Re: [U-Boot] configs: da850evm: enable bootz command

2016-07-16 Thread Tom Rini
On Tue, Jul 12, 2016 at 04:24:48PM +0530, Sekhar Nori wrote: > Enable bootz command on Texas Instruments DA850 EVM > board. This helps it boot zImage with device-tree > blob passed. > > Signed-off-by: Sekhar Nori > Reviewed-by: Tom Rini > Tested-by: Kevin Hilman Applied to u-boot/master, than

Re: [U-Boot] ARM: OMAP5+: Enable errata i727

2016-07-16 Thread Tom Rini
On Tue, Jul 12, 2016 at 02:47:41PM +0530, Lokesh Vutla wrote: > Errata i727 is applicable on all OMAP5 and DRA7 variants but enabled only > on OMAP5 ES1.0. So, enable it on all platforms. > > Signed-off-by: Lokesh Vutla > Reviewed-by: Tom Rini Applied to u-boot/master, thanks! -- Tom signa

Re: [U-Boot] mkimage: fix missing break for -p switch

2016-07-16 Thread Tom Rini
On Mon, Jul 11, 2016 at 10:54:26PM -0700, Teddy Reed wrote: > Signed-off-by: Teddy Reed > Reported-by: Coverity (CID: 150277) > Reviewed-by: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature ___ U-Boot

Re: [U-Boot] bootm: fixup silent Linux out of BOOTM_STATE_LOADOS state

2016-07-16 Thread Tom Rini
On Mon, Jul 11, 2016 at 12:34:37PM +0200, Hector Palacios wrote: > The function fixup_silent_linux() is called in status BOOTM_STATE_LOADOS > to silence Linux if variable 'silent' is set. > Currently only the 'bootm' command state machine contains > BOOTM_STATE_LOADOS, but others like 'booti' or '

Re: [U-Boot] [U-Boot, 1/3] stm32: clk: Add 200MHz clock configuration for stm32f746 discovery board

2016-07-16 Thread Tom Rini
On Fri, Jul 08, 2016 at 01:02:24AM +0900, tnishinaga@gmail.com wrote: > From: Toshifumi NISHINAGA > > This patch adds 200MHz clock configuration for stm32f746 discovery board. > This patch is based on STM32F4 and emcraft's[1]. > > [1]: https://github.com/EmcraftSystems/u-boot > > Signed-o

Re: [U-Boot] [U-Boot, 2/3] stm32: Add SDRAM support for stm32f746 discovery board

2016-07-16 Thread Tom Rini
On Fri, Jul 08, 2016 at 01:02:25AM +0900, tnishinaga@gmail.com wrote: > From: Toshifumi NISHINAGA > > This patch adds SDRAM support for stm32f746 discovery board. > This patch depends on previous patch. > This patch is based on STM32F4 and emcraft's[1]. > > [1]: https://github.com/EmcraftS

Re: [U-Boot] dragonboard410c: adding missing default addr for script and pxe boot

2016-07-16 Thread Tom Rini
On Sun, Jul 03, 2016 at 02:16:03PM -0300, Ricardo Salveti de Araujo wrote: > Cc: Mateusz Kulikowski > Signed-off-by: Ricardo Salveti Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature ___ U-Boot mailing list U-Bo

Re: [U-Boot] [U-Boot, 13/14] test/py: Fix up after the rename of CONFIG_SYS_HUSH_PARSER

2016-07-16 Thread Tom Rini
On Sun, Jul 03, 2016 at 09:40:45AM -0600, Simon Glass wrote: > At present all the hush tests are skipped on sandbox because the test thinks > that this option is disabled. In fact it has just been renamed. > > It might be better to use the full CONFIG_xxx name in tests with > @pytest.mark.buildco

Re: [U-Boot] [U-Boot, 14/14] test: Convert the vboot test to test/py

2016-07-16 Thread Tom Rini
On Sun, Jul 03, 2016 at 09:40:46AM -0600, Simon Glass wrote: > Now that we have a suitable test framework we should move all tests into it. > The vboot test is a suitable candidate. Rewrite it in Python and move the > data files into an appropriate directory. > > Signed-off-by: Simon Glass Appl

Re: [U-Boot] dragonboard410c: prefer sdcard boot over emmc

2016-07-16 Thread Tom Rini
On Sun, Jul 03, 2016 at 01:59:01PM -0300, Ricardo Salveti de Araujo wrote: > Make the external devices the preferred ones when booting the system > (usb is already the first option). This allows users to easily boot > custom distributions without requiring them to reflash/customize u-boot. > > Cc

Re: [U-Boot] [U-Boot, 11/14] tools: Add an error code when fit_handle_file() fails

2016-07-16 Thread Tom Rini
On Sun, Jul 03, 2016 at 09:40:43AM -0600, Simon Glass wrote: > The error code may provide useful information for debugging. Add it to the > error string. > > Signed-off-by: Simon Glass > Reviewed-by: Teddy Reed Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital sig

Re: [U-Boot] [U-Boot, 10/14] test/py: Add a helper to run a list of U-Boot commands

2016-07-16 Thread Tom Rini
On Sun, Jul 03, 2016 at 09:40:42AM -0600, Simon Glass wrote: > Some tests want to execute a sequence of commands. Add a helper for this. > > Signed-off-by: Simon Glass > Reviewed-by: Teddy Reed Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature __

Re: [U-Boot] [U-Boot, 12/14] tools: Correct error handling in fit_image_process_hash()

2016-07-16 Thread Tom Rini
On Sun, Jul 03, 2016 at 09:40:44AM -0600, Simon Glass wrote: > We should not be returning -1 as an error code. This can mask a situation > where we run out of space adding things to the FIT. By returning the correct > error in this case (-ENOSPC) it can be handled by the higher-level code. > > Th

Re: [U-Boot] [U-Boot, 10/14] test/py: Add a helper to run a list of U-Boot commands

2016-07-16 Thread Tom Rini
On Sun, Jul 03, 2016 at 09:40:42AM -0600, Simon Glass wrote: > Some tests want to execute a sequence of commands. Add a helper for this. > > Signed-off-by: Simon Glass > Reviewed-by: Teddy Reed Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature __

Re: [U-Boot] [U-Boot, 02/14] mkimage: Explain the auto-fit imagefile special case

2016-07-16 Thread Tom Rini
On Thu, Jun 30, 2016 at 10:52:08AM -0600, Simon Glass wrote: > There is a special case in the code when auto-fit is used. Add a comment to > make it easier to understand why this is needed. > > Signed-off-by: Simon Glass > Acked-by: Joe Hershberger Applied to u-boot/master, thanks! -- Tom

Re: [U-Boot] [U-Boot, 09/14] test/py: Provide a way to check that a command fails

2016-07-16 Thread Tom Rini
On Sun, Jul 03, 2016 at 09:40:41AM -0600, Simon Glass wrote: > Sometimes we want to run a command and check that it fails. Add a function > to handle this. It can check the return code and also make sure that the > output contains a given error message. > > Signed-off-by: Simon Glass Applied to

Re: [U-Boot] [U-Boot, 07/14] test/py: Return output from run_and_log()

2016-07-16 Thread Tom Rini
On Sun, Jul 03, 2016 at 09:40:39AM -0600, Simon Glass wrote: > It is useful to be able to obtain the output from a command. Return it from > this function. > > Signed-off-by: Simon Glass > Reviewed-by: Teddy Reed Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital s

Re: [U-Boot] [U-Boot, 05/14] test/py: Allow RunAndLog() to return the output

2016-07-16 Thread Tom Rini
On Sun, Jul 03, 2016 at 09:40:37AM -0600, Simon Glass wrote: > Tests may want to look at the output from running a command. Return it so > that this is possible. > > Signed-off-by: Simon Glass > Reviewed-by: Teddy Reed Applied to u-boot/master, thanks! -- Tom signature.asc Description: Dig

Re: [U-Boot] [U-Boot, 02/14] test: Add a simple script to run tests on sandbox

2016-07-16 Thread Tom Rini
On Sun, Jul 03, 2016 at 09:40:34AM -0600, Simon Glass wrote: > A common check before sending patches is to run all available tests on > sandbox. But everytime I do this I have to look up the README. This presents > quite a barrier to actually doing this. > > Add a shell script to help. To run the

Re: [U-Boot] [U-Boot, 06/14] test/py: Provide output from exceptions with RunAndLog()

2016-07-16 Thread Tom Rini
On Sun, Jul 03, 2016 at 09:40:38AM -0600, Simon Glass wrote: > Tests may want to look at the output from running a command, even if it > fails (e.g. with a non-zero return code). Provide a means to obtain this. > > Another approach would be to return a class object containing both the > output an

Re: [U-Boot] [U-Boot, 04/14] test/py: Allow tests to control the sandbox device-tree file

2016-07-16 Thread Tom Rini
On Sun, Jul 03, 2016 at 09:40:36AM -0600, Simon Glass wrote: > Normally tests will run with the test.dtb file designed for this purpose. > However, the verified boot tests need to run with their own device-tree > file, containing a public key. > > Make the device-tree file a config option so that

Re: [U-Boot] [U-Boot, 14/14] tools: Allow building with debug enabled

2016-07-16 Thread Tom Rini
On Thu, Jun 30, 2016 at 10:52:20AM -0600, Simon Glass wrote: > Sometimes it is useful to build tools with debugging information included so > that line-number information is available when run under gdb. Add a Kconfig > option to support this. > > Signed-off-by: Simon Glass > Reviewed-by: Tom Ri

Re: [U-Boot] [U-Boot,01/14] test: Add a README

2016-07-16 Thread Tom Rini
On Sun, Jul 03, 2016 at 09:40:33AM -0600, Simon Glass wrote: > Add a few notes about how testing works in U-Boot. > > Signed-off-by: Simon Glass > Reviewed-by: Teddy Reed Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature _

Re: [U-Boot] [U-Boot, 03/14] sandbox: Don't exit when bootm completes

2016-07-16 Thread Tom Rini
On Sun, Jul 03, 2016 at 09:40:35AM -0600, Simon Glass wrote: > At present sandbox exits when the 'bootm' command completes, since it is not > actually able to run the OS that is loaded. Normally 'bootm' failure is > considered a fatal error in U-Boot. > > However this is annoying for tests, which

Re: [U-Boot] [U-Boot, 11/14] mkimage: Allow display of a list of any image header category

2016-07-16 Thread Tom Rini
On Thu, Jun 30, 2016 at 10:52:17AM -0600, Simon Glass wrote: > Add a generic function which can display a list of items in any category. > This will allow displaying of images for the -A, -C, -O and -T flags. At > present only -T is supported. > > Signed-off-by: Simon Glass > Reviewed-by: Tom Ri

Re: [U-Boot] [U-Boot, 13/14] mkimage: Show item lists for all categories

2016-07-16 Thread Tom Rini
On Thu, Jun 30, 2016 at 10:52:19AM -0600, Simon Glass wrote: > Update the error-handling code for -A, -C and -O to show a list of valid > options when an invalid one is provided. > > Signed-off-by: Simon Glass > Reported-by: Vinoth Eswaran > Reviewed-by: Tom Rini Applied to u-boot/master, tha

Re: [U-Boot] [U-Boot, 12/14] mkimage: Use generic code for showing an 'image type' error

2016-07-16 Thread Tom Rini
On Thu, Jun 30, 2016 at 10:52:18AM -0600, Simon Glass wrote: > The existing error code only displays image types which are claimed by a > particular U_BOOT_IMAGE_TYPE() driver. But this does not seem correct. The > mkimage tool should support all image types, so it makes sense to allow > creation

Re: [U-Boot] [U-Boot,09/14] image: Add a name for invalid types

2016-07-16 Thread Tom Rini
On Thu, Jun 30, 2016 at 10:52:15AM -0600, Simon Glass wrote: > At present the name is NULL, which prevents qsort() fromp being used. Use > the name "invalid" instead. > > Signed-off-by: Simon Glass > Reviewed-by: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Description:

Re: [U-Boot] [U-Boot, 10/14] image: Add functions to obtain category information

2016-07-16 Thread Tom Rini
On Thu, Jun 30, 2016 at 10:52:16AM -0600, Simon Glass wrote: > Add generic functions which can look up information about a category: > > - the number of items in the category > - the category description > - an item long time > - an item short time > > Signed-off-by: Simon Glass > Reviewed-by:

Re: [U-Boot] [U-Boot, 08/14] image: Create a table of information for each category

2016-07-16 Thread Tom Rini
On Thu, Jun 30, 2016 at 10:52:14AM -0600, Simon Glass wrote: > Add a table that contains the category name, the number of items in each > category and a pointer to the table of items. This will allow us to use > generic code to deal with the categories. > > Signed-off-by: Simon Glass > Reviewed-

Re: [U-Boot] [U-Boot, 07/14] image: Convert the IH_... values to enums

2016-07-16 Thread Tom Rini
On Thu, Jun 30, 2016 at 10:52:13AM -0600, Simon Glass wrote: > We need to know the number of values of each category (architecture, > compression, OS and image type). To make this value easier to maintain, > convert all values to enums. The count is then automatic. > > Signed-off-by: Simon Glass

Re: [U-Boot] [U-Boot, 04/14] mkimage: Drop premature setting of params.fit_image_type

2016-07-16 Thread Tom Rini
On Thu, Jun 30, 2016 at 10:52:10AM -0600, Simon Glass wrote: > There is no need to set params.fit_image_type while parsing the arguments. > It is set up later anyway. > > Signed-off-by: Simon Glass > Reviewed-by: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Description:

Re: [U-Boot] [U-Boot,05/14] mkimage: Drop blank line before main()

2016-07-16 Thread Tom Rini
On Thu, Jun 30, 2016 at 10:52:11AM -0600, Simon Glass wrote: > This is not needed. Drop it. > > Signed-off-by: Simon Glass > Reviewed-by: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature ___ U-Boot ma

Re: [U-Boot] [U-Boot, 06/14] image: Correct auto-fit architecture property name

2016-07-16 Thread Tom Rini
On Thu, Jun 30, 2016 at 10:52:12AM -0600, Simon Glass wrote: > The fit_write_images() function incorrectly uses the long name for the > architecture. This cannot be parsed with the FIT is read. Fix this by using > the short name instead. > > Signed-off-by: Simon Glass > Reviewed-by: Tom Rini A

Re: [U-Boot] [U-Boot, 03/14] mkimage: Require a data file when auto-fit is used

2016-07-16 Thread Tom Rini
On Thu, Jun 30, 2016 at 10:52:09AM -0600, Simon Glass wrote: > When auto-fit is used, it is not valid to create a FIT without an image > file. Add a check for this to avoid a very confusing error message later > ("Can't open (null): Bad address"). > > Signed-off-by: Simon Glass > Reviewed-by: To

Re: [U-Boot] [U-Boot, v2, 3/3] linux/io.h: add generic ioremap()/iounmap() defines

2016-07-16 Thread Tom Rini
On Tue, Jun 28, 2016 at 10:48:42AM +0900, Masahiro Yamada wrote: > For most of architectures in U-Boot, virtual address is straight > mapped to physical address. So, it makes sense to have generic > defines of ioremap and friends in . > > All of them are just empty and will disappear at compile

Re: [U-Boot] [U-Boot, 01/14] mkimage: Honour the default image type with auto-fit

2016-07-16 Thread Tom Rini
On Thu, Jun 30, 2016 at 10:52:07AM -0600, Simon Glass wrote: > The default image type is supposed to be IH_TYPE_KERNEL, as set in the > 'params' variable. Honour this with auto-fit also. > > Signed-off-by: Simon Glass > Reviewed-by: Tom Rini Applied to u-boot/master, thanks! -- Tom signatu

Re: [U-Boot] [U-Boot, v2, 1/3] types.h: move and redefine resource_size_t

2016-07-16 Thread Tom Rini
On Tue, Jun 28, 2016 at 10:48:40AM +0900, Masahiro Yamada wrote: > Currently, this is only defined in arch/arm/include/asm/types.h, > so move it to include/linux/types.h to make it available for all > architectures. > > I defined it with phys_addr_t as Linux does. I needed to surround > the defi

Re: [U-Boot] [U-Boot, v3, 9/9] doc: Update info on using secure devices from TI

2016-07-16 Thread Tom Rini
On Mon, Jun 27, 2016 at 09:19:24AM -0500, Andreas Dannenberg wrote: > Adds information regarding SPL handling the loading and processing of > secured u-boot images as part of the second stage boot the SPL does. > Introduces the description of a new interface script in the TI SECDEV > Package which

Re: [U-Boot] [U-Boot, v2, 2/3] arm, nds32, sh: remove useless ioremap()/iounmap() defines

2016-07-16 Thread Tom Rini
On Tue, Jun 28, 2016 at 10:48:41AM +0900, Masahiro Yamada wrote: > These defines are valid only when iomem_valid_addr is defined, > but I do not see such defines anywhere. Remove. > > Signed-off-by: Masahiro Yamada Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital

Re: [U-Boot] [U-Boot, v3, 8/9] arm: am4x: add U-Boot FIT signing and SPL image post-processing

2016-07-16 Thread Tom Rini
On Mon, Jun 27, 2016 at 09:19:23AM -0500, Andreas Dannenberg wrote: > From: Madan Srinivas > > Modify the SPL build procedure for AM437x high-security (HS) device > variants to create a secure u-boot_HS.img FIT blob that contains U-Boot > and DTB artifacts signed (and optionally encrypted) with

Re: [U-Boot] [U-Boot, v3, 5/9] arm: omap-common: Update to generate secure U-Boot FIT blob

2016-07-16 Thread Tom Rini
On Mon, Jun 27, 2016 at 09:19:20AM -0500, Andreas Dannenberg wrote: > Adds commands so that when a secure device is in use and the SPL is > built to load a FIT image (with combined U-Boot binary and various > DTBs), these components that get fed into the FIT are all processed to > be signed/encryp

Re: [U-Boot] [U-Boot, v3, 7/9] arm: omap5: add U-Boot FIT signing and SPL image post-processing

2016-07-16 Thread Tom Rini
On Mon, Jun 27, 2016 at 09:19:22AM -0500, Andreas Dannenberg wrote: > Modify the SPL build procedure for AM57xx and DRA7xx high-security (HS) > device variants to create a secure u-boot_HS.img FIT blob that contains > U-Boot and DTB artifacts signed with a TI-specific process based on the > CONFIG

Re: [U-Boot] [U-Boot, v3, 6/9] spl: fit: add support for post-processing of images

2016-07-16 Thread Tom Rini
On Mon, Jun 27, 2016 at 09:19:21AM -0500, Andreas Dannenberg wrote: > From: Daniel Allred > > The next stage boot loader image and the selected FDT can be post- > processed by board/platform/device-specific code, which can include > modifying the size and altering the starting source address bef

Re: [U-Boot] [U-Boot, v3, 4/9] arm: omap-common: secure ROM signature verify API

2016-07-16 Thread Tom Rini
On Mon, Jun 27, 2016 at 09:19:19AM -0500, Andreas Dannenberg wrote: > Adds an API that verifies a signature attached to an image (binary > blob). This API is basically a entry to a secure ROM service provided by > the device and accessed via an SMC call, using a particular calling > convention. >

Re: [U-Boot] [U-Boot, v3, 1/9] arm: cache: add missing dummy functions for when dcache disabled

2016-07-16 Thread Tom Rini
On Mon, Jun 27, 2016 at 09:19:16AM -0500, Andreas Dannenberg wrote: > From: Daniel Allred > > Adds missing flush_dcache_range and invalidate_dcache_range dummy > (empty) placeholder functions to the #else portion of the #ifndef > CONFIG_SYS_DCACHE_OFF, where full implementations of these functio

Re: [U-Boot] [U-Boot, v3, 2/9] arm: omap-common: add secure smc entry

2016-07-16 Thread Tom Rini
On Mon, Jun 27, 2016 at 09:19:17AM -0500, Andreas Dannenberg wrote: > From: Daniel Allred > > Add an interface for calling secure ROM APIs across a range of OMAP and > OMAP compatible high-security (HS) device variants. While at it, also > perform minor cleanup/alignment without any change in fu

Re: [U-Boot] [U-Boot, v2] arm64: add better and more generic spin-table support

2016-07-16 Thread Tom Rini
On Mon, Jun 27, 2016 at 07:31:05PM +0900, Masahiro Yamada wrote: > There are two enable methods supported by ARM64 Linux; psci and > spin-table. The latter is simpler and helpful for quick SoC bring > up. My main motivation for this patch is to improve the spin-table > support, which allows us t

Re: [U-Boot] [U-Boot, v3, 3/9] arm: omap-common: add secure rom call API for secure devices

2016-07-16 Thread Tom Rini
On Mon, Jun 27, 2016 at 09:19:18AM -0500, Andreas Dannenberg wrote: > Adds a generic C-callable API for making secure ROM calls on OMAP and > OMAP-compatible devices. This API provides the important function of > flushing the ROM call arguments to memory from the cache, so that the > secure world

Re: [U-Boot] [U-Boot,v2] rtc: Tidy up the code style

2016-07-16 Thread Tom Rini
On Sun, Jun 19, 2016 at 07:51:00PM -0600, Simon Glass wrote: > This code generates lots of checkpatch errors. Fix them. > > Signed-off-by: Simon Glass > Reviewed-by: Bin Meng Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature _

Re: [U-Boot] [U-Boot,3/5] Add comments for debug() and pr_fmt

2016-07-16 Thread Tom Rini
On Sun, Jun 19, 2016 at 07:43:03PM -0600, Simon Glass wrote: > Add a note to each of these so it is more obvious how they work. > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature __

Re: [U-Boot] [U-Boot, 5/5] arm: Show cache warnings in U-Boot proper only

2016-07-16 Thread Tom Rini
On Sun, Jun 19, 2016 at 07:43:05PM -0600, Simon Glass wrote: > Avoid bloating the SPL image size. > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature ___ U-Boot mailing list U-Boot@l

Re: [U-Boot] [U-Boot, 4/5] Add warn_non_spl() to show a message in U-Boot proper

2016-07-16 Thread Tom Rini
On Sun, Jun 19, 2016 at 07:43:04PM -0600, Simon Glass wrote: > SPL tends to be more space-constrained that U-Boot proper. Some error > messages are best suppressed in SPL. Add a macros to make this easy. > > warn_non_spl() does nothing when built in SPL code. > > Signed-off-by: Simon Glass App

Re: [U-Boot] [U-Boot, 2/5] arm: Don't invalidate unaligned cache regions

2016-07-16 Thread Tom Rini
On Sun, Jun 19, 2016 at 07:43:02PM -0600, Simon Glass wrote: > At present armv7 will unhappily invalidate a cache region and print an > error message. Make it skip the operation instead, as it does with other > cache operations. > > Signed-off-by: Simon Glass > Reviewed-by: Marek Vasut Applied

Re: [U-Boot] [U-Boot, 1/5] arm: Move check_cache_range() into a common place

2016-07-16 Thread Tom Rini
On Sun, Jun 19, 2016 at 07:43:01PM -0600, Simon Glass wrote: > This code is common, so move it into a common file. > > Signed-off-by: Simon Glass > Reviewed-by: Marek Vasut Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature ___

Re: [U-Boot] [U-Boot, 2/2] board_f: prevent misleading "Watchdog enabled" output

2016-07-16 Thread Tom Rini
On Mon, Jun 13, 2016 at 02:24:24PM +0200, Anatolij Gustschin wrote: > Output the "Watchdog enabled" message only if hw_watchdog_init() > call really happened. > > Signed-off-by: Anatolij Gustschin Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature

Re: [U-Boot] [U-Boot, 1/2] board_f: init designware watchdog if CONFIG_DESIGNWARE_WATCHDOG=y

2016-07-16 Thread Tom Rini
On Mon, Jun 13, 2016 at 02:24:23PM +0200, Anatolij Gustschin wrote: > The designware watchdog init is skipped even if CONFIG_DESIGNWARE_WATCHDOG > is enabled. Fix it. > > Signed-off-by: Anatolij Gustschin Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature

[U-Boot] file "doc/README.mpc83xxads" seems way obsolete

2016-07-16 Thread Robert P. J. Day
that file talks about configuring with: $ make MPC8349ADS_config Configuring for MPC8349ADS board... but that was merged into MPC8349EMDS about a decade ago: commit 8fe9bf61efa6cab617dc99dfc5413e47f2ef969f Author: Kumar Gala Date: Thu Apr 20 13:45:32 2006 -0500 Merged MPC834

[U-Boot] is minicom still discouraged as the serial comms program?

2016-07-16 Thread Robert P. J. Day
i know that minicom has been discouraged for quite some time WRT u-boot, is that still the case? and what was the flaw with minicom, anyway? and is there any problem with picocom, which seems to work for me just fine. rday -- ==

Re: [U-Boot] [PATCH] configs: Add more CONFIG_ARMV7_PSCI_NR_CPUS entries

2016-07-16 Thread Hans de Goede
Hi, On 15-07-16 21:32, Tom Rini wrote: The code had assumed 4 CPUS before and now we have this configurable. For now, set this to the previous default. Cc: Chander Kashyap Cc: Steve Rae Cc: Minkyu Kang Signed-off-by: Tom Rini Looks good to me: Reviewed-by: Hans de Goede Regards, Hans