08 Jan, 2016
24 commits
-
from linux commit ce8155f7a3d5:
Perl 5.22 emits a deprecated message when "\C" is used in a regex. Perl
5.24 will disallow it altogether.Fix it by using [A-Z] instead of \C.
>From linux adapted to U-Boot by:
Signed-off-by: Heiko Schocher
Reviewed-by: Andre Przywara -
Since 51209b1f42cb ("Use common mtest iteration counting"),
do_mem_mtest has always reported 0 errors and hence returned 0, even
if errors were detected. Fix the helpers mem_test_alt() and
mem_test_quick() to return the number of errors found.Signed-off-by: Rasmus Villemoes
-
If CONFIG_SYS_STDIO_DEREGISTER is not enabled, usb reset
will fail every time. Enabling it allows usb reset to
work.Signed-off-by: Andy Fleming
-
Change from yorksun@freescale.com to york.sun@nxp.com.
Signed-off-by: York Sun
-
On these platforms we have many cases of boards that enable device model
and GPIO support but do not enable OF_CONTROL and pass in a device tree
with the binary. We need to bring in the platform data here as well.Tested on Beaglebone Black.
Reported-by: Robert Nelson
Reported-by: Francisco Aguerre
Reported-by: Jason Kridner
Signed-off-by: Tom Rini -
Mark _debug_uart_init() as static to avoid sparse warning and
inline it to debug_uart_init().Reported-by: Thomas Chou
Signed-off-by: Michal Simek
Reviewed-by: Thomas Chou
Reviewed-by: Simon Glass
Reviewed-by: Bin Meng
Acked-by: Simon Glass -
In many parts of the computing world having a unique MAC address
sitting in some on-NIC storage is considered the normal case.
Remove the warning to not scare the user unnecessarily.
This applies to Highbank/Midway and ARM's Juno, for instance.
Besides that this fixes the formatting on Midway, for instance,
which currently looks like:
...
Net: xgmac0
Warning: xgmac0 using MAC address from net device
, xgmac1
Warning: xgmac1 using MAC address from net device
...Signed-off-by: Andre Przywara
-
The default kernel load offset for an arm64 kernel is 0x80000, so
U-Boot takes cares of moving the loaded kernel to a matching memory
location just before booting it.
Since we run with caches off, this takes a while for any decently
sized kernel - with no output explaining the reason for the delay
(unless one uses a DEBUG build).
By adjusting the default load offset for Juno and VFP to be 512K
aligned in the first place we can skip this copying and boot much
faster.
Tested on Juno.Signed-off-by: Andre Przywara
Reviewed-by: Linus Walleij
Tested-by: Ryan Harkin -
The compilation of u-boot-dtb.img should be controlled by
CONFIG_OF_CONTROL and not CONFIG_DM.
CONFIG_DM may be defined even without Device Tree requirement.This was added in commit 947cee1127c5fa97529c8cda4f0b48d141f92560.
Signed-off-by: Ruchika Gupta
Signed-off-by: Aneesh Bansal
CC: Alison Wang -
Correct mismatched comment on #endif to agree with its #if defined().
Also add some missing #endif comments for consistency, take out
extraneous blank lines for readability.rday
-
First (small) pass at tidying up the README file, including:
* remove references to obsolete CREDITS file
* remove (some) references to obsolete boards.cfg file
* remove at least one reference to a "scrapped" board
* cut down unnecessarily detailed directory hierarchy
* bunch of grammar and spelling tweaksSigned-off-by: Robert P. J. Day
-
Signed-off-by: Robert P. J. Day
-
Signed-off-by: Robert P. J. Day
Acked-by: Thomas Chou -
Introduced in 45b4773 (net/arp: account for ARP delay, avoid duplicate packets on timeout)
Check the arp timeout and adjust the timeout start time before the call
to eth_recv() so that the sandbox driver has the opportunity to adjust
the sandbox timer after the new start time has been recorded.Also, change the adjustment amount by 11 seconds instead of exactly the
10 seconds that the ping timout is expecting since the timeout check is
looking for the time elapsed to be greater than but not equal to the
specified delay.Signed-off-by: Joe Hershberger
Reviewed-by: Stefan Brüns
Acked-by: Simon Glass -
Commit: dm: core: Enable optional use of fdt_translate_address()
Enables use of this function as default, but after this it's not
possible to get dev address for the case in which: '#size-cells == 0'This causes errors when getting address for some GPIOs, for which
the '#size-cells' is set to 0.Example error:
'__of_translate_address: Bad cell count for gpx0'Allowing for that case by modifying the macro 'OF_CHECK_COUNTS',
(called from )__of_translate_address(), fixes the issue.Now, this macro doesn't check, that '#size-cells' is greater than 0.
This is possible from the specification point of view, but I'm not sure
that it doesn't introduce a regression for other configs.Please test and share the results.
Tested-on: Odroid U3, Odroid X2, Odroid XU3, Sandbox.
Signed-off-by: Przemyslaw Marczak
Cc: Masahiro Yamada
Cc: Lukasz Majewski
Cc: Jaehoon Chung
Cc: Stefan Roese
Cc: Simon Glass
Cc: Bin Meng
Cc: Marek Vasut
Tested-by: Jaehoon Chung
Tested-by: Lukasz Majewski -
At present USB keyboards are not properly removed with driver model. Add the
code to handle this.Signed-off-by: Simon Glass
Reviewed-by: Marek Vasut -
The current limit of 5 is not enough for the driver model USB tests. Really
we should not have a limit but the driver model code still uses the
usb_dev_desc[] array, which has a limit.Increasing the limit by 2 should not bother anyone. Adjust it.
Signed-off-by: Simon Glass
Reviewed-by: Marek Vasut -
This subsystem has been broken since commit:
4efad20a sf: Update status reg check in spi_flash_cmd_wait_ready
There has so far been no response from the maintainer, and a release is
imminent. For now, let's just disable the tests.Signed-off-by: Simon Glass
-
When 'ethrotate' variable is set to 'no' and 'ethact' variable
is already set to an ethernet device, we should stick to 'ethact'.Signed-off-by: Bin Meng
Acked-by: Joe Hershberger
Acked-by: Simon Glass
Tested-by: Simon Glass -
In eth_current_changed(), the call to eth_get_dev() below has a side
effect of rotating ethernet device if uc_priv->current == NULL. This
is not what we want when 'ethrotate' variable is 'no'.Signed-off-by: Bin Meng
Acked-by: Joe Hershberger
Acked-by: Simon Glass
Tested-by: Simon Glass -
Add missing sandbox timer to test.dts, so that test-dm works.
Signed-off-by: Thomas Chou
Acked-by: Simon Glass
Tested-by: Simon Glass
07 Jan, 2016
2 commits
-
This commit fixes the change of below commit
"spi: fsl_qspi: Use GENMASK"
(sha1 :bad490a24212c068c5b718b9189f47ea4075d078)Signed-off-by: Gong Qianyu
Reviewed-by: Jagan Teki -
stm_is_locked_sr() takes the status register (SR) value as the last
parameter, not the second.Based on a patch from Brian Norris for the linux kernel:
http://git.infradead.org/linux-mtd.git/commit/a32d5b726ff8cf32bf491522b0ac8ae2545a063eSigned-off-by: Fabio Estevam
Reviewed-by: Jagan Teki
06 Jan, 2016
1 commit
-
since:
commit: f05ad9ba "Add a way to skip relocation"tqm5200s board fails to boot. Reason is that
board_init_f has a function parameter bootflag,
which is not setup in
in arch/powerpc/cpu/mpc5xxx/start.S _startSo board_init_f gets a undefined bootflag,
currently the gd pointer address. Unfortunately
this address sets the GD_FLG_SKIP_RELOC bit,
so u-boot code gets not relocated and u-boot
does not boot ...Init bootflag with 0, and tqm5200 boots fine again.
Signed-off-by: Heiko Schocher
Reviewed-by: Simon Glass
Reviewed-by: York Sun
05 Jan, 2016
8 commits
-
Signed-off-by: Tom Rini
-
Use snprintf to replace sprintf.
Coverity log:
"
Unbounded source buffer (STRING_SIZE)
string_size: Passing string init_val of unknown size to sprintf.
"Reported-by: Coverity
Signed-off-by: Peng Fan
Cc: Tom Rini
Cc: Simon Glass
Reviewed-by: Joe Hershberger -
Before calling hsearch_r, initialize callback entry to NULL.
Coverity log:
"
Uninitialized scalar variable (UNINIT)
uninit_use_in_call: Using uninitialized value e.
Field e.callback is uninitialized when calling hsearch_r.
"Reported-by: Coverity
Signed-off-by: Peng Fan
Cc: Tom Rini
Cc: Simon Glass -
Whether CONFIG_SYS_HUSH_PARSER is defined or not, should always
check to free 'buff' to avoid memory leak.Signed-off-by: Peng Fan
Cc: Tom Rini
Cc: Masahiro Yamada
Cc: Simon Glass -
In struct e1000_rx_desc, field 'length' is declared as
uint16_t, so use le16_to_cpu() to do endianness conversion.Also drop conversion on 'status' which is declared as
uint8_t.Signed-off-by: Miao Yan
Reviewed-by: Bin Meng -
In pci_map_region(), pass 'range_id' to fdt_read_range(),
otherwise the same address will be mapped again in other
calls to pci_map_region()Signed-off-by: Miao Yan
Reviewed-by: Bin Meng
Reviewed-by: Alexander Graf -
using checkpatch with Perl 5.22.0 generates a warning,
this is fixed in linux through commit:commit 4e5d56bdf892e18832a6540b63ebf709966bce2a
Author: Eddie Kovsky
Date: Wed Sep 9 15:37:52 2015 -0700checkpatch: fix left brace warning
Using checkpatch.pl with Perl 5.22.0 generates the following warning:
Unescaped left brace in regex is deprecated, passed through in regex;
This patch fixes the warnings by escaping occurrences of the left brace
inside the regular expression.Adapt it for U-Boot.
Signed-off-by: Heiko Schocher
-
Table 41 of the JEDEC standard for eMMC says that bit 31 of
the command argument is obsolete when issuing the ERASE
command (CMD38) on page 115 of this document:
http://www.jedec.org/sites/default/files/docs/jesd84-B45.pdfThe SD Card Association Physical Layer Simplified Specification also
makes no mention of the use of bit 31.
https://www.sdcard.org/downloads/pls/part1_410.pdfThe Linux kernel distinguishes between secure (bit 31 set) and
non-secure erase, and this patch copies the macro names from
include/linux/mmc/core.h.Tested-by: Fabio Estevam
Signed-off-by: Eric Nelson
Tested-by: Hector Palacios
04 Jan, 2016
2 commits
-
drivers/mtd/ubi/io.c:1354:3: error: 'dump_len' undeclared (first use in
this function)
dump_len = max_t(int, 128, len - i);Signed-off-by: Ladislav Michl
03 Jan, 2016
3 commits
-
Move setup_display from board_early_init_f to board_init.
Add more clock settings.
Add blacklight iomux setting.
Add display_info_t info for the lvds screen.Signed-off-by: Peng Fan
Cc: Fabio Estevam
Cc: Stefano Babic -
This could avoid executing the code that only applies to i.MX platforms.
The bus_i2c_init() is called before relocation and will assgin value
to a static variable. If U-Boot is then still running in a flash
device, it's theoretically not allowed to write data to flash without
an erasing operation. For i.MX platforms, the U-Boot is always running
in DDR.Actually it causes asynchronous error when the ARM64 system error
report is enabled and the flash write protect is set.Signed-off-by: Gong Qianyu
Reviewed-by: Heiko Schocher