Side note:
Am 19.12.2016 um 16:22 schrieb Icenowy Zheng:
[...]
According to some facts:
- The register based access to SID is weird: it needs ~5 register
operations per word of SID.
[...]
My experiments seem to indicate that Allwinner's implementation might be
overly complicated. I have
Hi all!
This is rather interesting stuff. Actually it's possible to find partial
documentation for this method (of reading SID/efuse values) even for older
SoCs. There's an early version of the A20 User Manual (Revision 1.0 -
Feb. 18, 2013) available on the net, where chapter 1.18 describes the
Hi Joe!
Thanks for chiming in, especially seeing that you have previously worked
on something very similar.
Am 27.11.2016 um 19:53 schrieb Joe Hershberger:
On Wed, Nov 16, 2016 at 4:29 AM, Bernhard Nortmann
<bernhard.nortm...@web.de> wrote:
"transient" (='t') is like &qu
.
With that added to the series, do you think this has matured enough
to promote it from "RFC" to an actual PATCH when submitting v3?
Regards, B. Nortmann
From f0cae5d87bcf9366786367976a71b908ee9f2410 Mon Sep 17 00:00:00 2001
From: Bernhard Nortmann <bernhard.nortm...@web.de>
Date: Wed, 2
Hi Simon!
Am 19.11.2016 um 14:47 schrieb Simon Glass:
Hi Bernhard,
On 16 November 2016 at 03:30, Bernhard Nortmann
<bernhard.nortm...@web.de> wrote:
This is an attempt to prevent such information from ending up
in exported environment data, especially when doing "save
Hi Simon!
Am 19.11.2016 um 14:47 schrieb Simon Glass:
Hi Bernhard,
On 16 November 2016 at 03:30, Bernhard Nortmann
<bernhard.nortm...@web.de> wrote:
Like setenv(), but automatically marks the entry as "don't export".
Signed-off-by: Bernhard Nortmann <bernhard.nortm...@w
Hi Simon!
Am 19.11.2016 um 14:47 schrieb Simon Glass:
Hi Bernhard,
On 16 November 2016 at 03:29, Bernhard Nortmann
<bernhard.nortm...@web.de> wrote:
"transient" (='t') is like "any", but requests that a variable
should not be exported (ENV_FLAGS_VARACCESS_PREVE
031.html
Regards, B. Nortmann
Changes in v2:
- Add "Reviewed-by" sjg
- Removed too narrow (flag & H_FORCE) expression, use "flag" directly
- Fixed outdated "env_flags_varaccess_lock" to the correct
"env_flags_varaccess_system"
Bernhard Nortmann (7):
scripts) is expected to
be marked H_INTERACTIVE.
Signed-off-by: Bernhard Nortmann <bernhard.nortm...@web.de>
---
Changes in v2: None
common/env_flags.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/common/env_flags.c b/common/env_flags.c
index 921d377..1087f4e 100644
--- a/commo
env_print() is
essentially an "export to text" operation.
Signed-off-by: Bernhard Nortmann <bernhard.nortm...@web.de>
---
Changes in v2:
- Removed too narrow (flag & H_FORCE) expression, use "flag" directly
cmd/nvedit.c| 3 ++-
common/env_flags.c | 8 ++
"transient" (='t') is like "any", but requests that a variable
should not be exported (ENV_FLAGS_VARACCESS_PREVENT_EXPORT).
"system" (='S') is meant for 'internal' variables that
aren't supposed to be changed by the user. It corresponds
to "transient" pl
Like setenv(), but automatically marks the entry as "don't export".
Signed-off-by: Bernhard Nortmann <bernhard.nortm...@web.de>
---
Changes in v2: None
cmd/nvedit.c | 21 +
include/common.h | 1 +
2 files changed, 22 insertions(+)
diff --git a/cm
ss flags,
also enable the "env flags" command.
Signed-off-by: Bernhard Nortmann <bernhard.nortm...@web.de>
---
Changes in v2: None
include/configs/sunxi-common.h | 8
1 file changed, 8 insertions(+)
diff --git a/include/configs/sunxi-common.h b/include/configs/sunxi-common
pdated via network configuration:
BOOTP/DHCP (netboot_update_env), CDP (cdp_update_env) and
link-local protocol (do_link_local).
Signed-off-by: Bernhard Nortmann <bernhard.nortm...@web.de>
---
Changes in v2: None
cmd/net.c | 34 +-
1 file changed, 17 i
This prevents a possible compiler warning similar to
"net/eth-uclass.c::: warning: enumeration value
'env_op_*' not handled in switch [-Wswitch]".
Signed-off-by: Bernhard Nortmann <bernhard.nortm...@web.de>
Reviewed-by: Simon Glass <s...@chromium.org>
---
Changes in v2:
-
Hi Simon!
Am 15.07.2016 um 05:19 schrieb Simon Glass:
[...]
Presumably hitting the default would be an internal error. So in that
case there is no point in returning an error, I think, and what you
have is best.
Regards,
Simon
It's not pretty, but a "catch all" solution. The alternative is
Am 11.07.2016 um 20:14 schrieb Bernhard Nortmann:
This patch introduces a new "export" environment operation
(env_op_export) and the corresponding access flag
ENV_FLAGS_VARACCESS_PREVENT_EXPORT; so that env_flags_validate()
may now check requests to export specific variables.
In turn,
Am 11.07.2016 um 20:14 schrieb Bernhard Nortmann:
"transient" (='t') is like "any", but requests that a variable
should not be exported (ENV_FLAGS_VARACCESS_PREVENT_EXPORT).
"system" (='S') is meant for 'internal' variables that
aren't supposed to be chang
ss flags,
also enable the "env flags" command.
Signed-off-by: Bernhard Nortmann <bernhard.nortm...@web.de>
---
include/configs/sunxi-common.h | 8
1 file changed, 8 insertions(+)
diff --git a/include/configs/sunxi-common.h b/include/configs/sunxi-common.h
index 94275
env_print() is
essentially an "export to text" operation.
Signed-off-by: Bernhard Nortmann <bernhard.nortm...@web.de>
---
cmd/nvedit.c| 3 ++-
common/env_flags.c | 8 +++-
include/env_flags.h | 3 ++-
include/search.h| 1 +
lib/hashtable.c | 4
5 files ch
Like setenv(), but automatically marks the entry as "don't export".
Signed-off-by: Bernhard Nortmann <bernhard.nortm...@web.de>
---
cmd/nvedit.c | 21 +
include/common.h | 1 +
2 files changed, 22 insertions(+)
diff --git a/cmd/nvedit.c b/cmd/nvedit
pdated via network configuration:
BOOTP/DHCP (netboot_update_env), CDP (cdp_update_env) and
link-local protocol (do_link_local).
Signed-off-by: Bernhard Nortmann <bernhard.nortm...@web.de>
---
cmd/net.c | 34 +-
1 file changed, 17 insertions(+), 17 deletion
"transient" (='t') is like "any", but requests that a variable
should not be exported (ENV_FLAGS_VARACCESS_PREVENT_EXPORT).
"system" (='S') is meant for 'internal' variables that
aren't supposed to be changed by the user. It corresponds
to "transient" pl
This prevents a possible compiler warning similar to
"net/eth-uclass.c::: warning: enumeration value
'env_op_*' not handled in switch [-Wswitch]".
Signed-off-by: Bernhard Nortmann <bernhard.nortm...@web.de>
---
net/eth-uclass.c | 2 ++
1 file changed, 2 insertions(+)
diff
ble solution.)
See also:
http://lists.denx.de/pipermail/u-boot/2015-September/227611.html
http://lists.denx.de/pipermail/u-boot/2016-April/250237.html
Regards, B. Nortmann
BTW: What the correct 'subsystem'/prefix for the "core" changes
related to env vars? patman isn't happy with my
scripts) is expected to
be marked H_INTERACTIVE.
Signed-off-by: Bernhard Nortmann <bernhard.nortm...@web.de>
---
common/env_flags.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/common/env_flags.c b/common/env_flags.c
index 921d377..1087f4e 100644
--- a/common/env_flags.c
+++ b/co
officially.
Ok I've just completed a battery of tests and these 2 look good,
I'll submit them upstream right after this mail.
Regards,
Hans
I can confirm that applying these two patches on top of 2016.07-rc3
solves the
"usb info" problem I've been observing with sun7i-a20.
e can also be demonstrated with U-Boot's sandbox
architecture, by simply enabling the inactive "usb_2" node in
test.dts. This creates a similar situation, where the existing
usb_device_info() implementation would crash (segfault) when
issuing a "usb info" command.
Si
Hi Simon, thanks for replying!
Am 23.06.2016 um 15:12 schrieb Simon Glass:
Hi Benhard,
On 22 June 2016 at 03:05, Bernhard Nortmann <bernhard.nortm...@web.de> wrote:
[...]
I'm not sure why this particular problem didn't manifest earlier and
only now became apparent with the change
Starting with commit b19236fd1c1ef289bab9e243ee5b50d658fcac3f I am observing
a breakage of the "usb info" command on my BananaPi (Allwinner A20, sun7i),
while "usb tree" and dm commands ("dm tree", "dm uclass") are fine.
See attached usb-info-breakage.log
Tracing back the error positon from pc
attempt to autoboot - specifically, this also allows overriding
"bootcmd".
With fel_script_addr set and a zero fel_uEnv_length, U-Boot is
safe to assume that data in .scr format (a mkimage-type script)
was passed at fel_script_addr, and will handle it using the
existing mechanism ("boot
Hi Hans!
Am 08.06.2016 um 22:13 schrieb Hans de Goede:
Hi,
[...]
This patch looks good to me.
Siarhei any comments from your side ? If not then I'll add this to
u-boot-sunxi/next.
Regards,
Hans
Thanks for looking into it. One small thing I only noticed after posting
the patch: The last
attempt to autoboot - specifically, this also allows overriding
"bootcmd".
With fel_script_addr set and a zero fel_uEnv_length, U-Boot is
safe to assume that data in .scr format (a mkimage-type script)
was passed at fel_script_addr, and will handle it using the
existing mechanism ("boot
Hello Siarhei!
Am 06.06.2016 um 11:20 schrieb Siarhei Siamashka:
On Sun, 5 Jun 2016 15:01:30 +0200
Bernhard Nortmann <bernhard.nortm...@web.de> wrote:
Hi Siarhei!
[...]
No, you're right and not missing anything. Setting ${filesize} alone
doesn't achieve much, and would require f
Hi Siarhei!
Am 05.06.2016 um 13:44 schrieb Siarhei Siamashka:
Hello Bernhard,
[...]
How does this work in general with "boot.scr" and "uEnv.txt" use
cases? Could you provide a bit more detailed description?
I mean, who is going to do "import -t ${fel_script_addr} ${filesize}"
invocation?
} ${filesize}" on them.
Signed-off-by: Bernhard Nortmann <bernhard.nortm...@web.de>
---
arch/arm/include/asm/arch-sunxi/spl.h | 3 ++-
board/sunxi/board.c | 8 +++-
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/arch/arm/include/asm/arch-sunxi/spl.h
Am 02.06.2016 um 16:57 schrieb Siarhei Siamashka:
On Mon, 16 May 2016 19:52:33 +0200
Hans de Goede wrote:
[...]
Other then that worry, I see no problem with adding a
fel_script_length, Siarhei what is your opinion on this ?
I personally have no objections.
Does it
Am 02.06.2016 um 12:32 schrieb Siarhei Siamashka:
This patch updates the mksunxiboot tool to optionally add
the default device tree name string to the SPL header. This
information can be used by the firmware upgrade tools to
protect users from harming themselves by trying to upgrade
to an
Given that there now are quite a few additional "reserved" entries, and
while we're still at SPL_HEADER_VERSION 1, I'd like to renew my request
of dedicating one of these fields to the script length - which would
enable us to set the U-Boot ${filesize} accordingly.
i.e.
---
This addresses a cosmetic issue when booting a sunxi device
over USB (FEL mode), where the SPL currently would just print
"Trying to boot from ". The patch fixes that to properly read
"Trying to boot from FEL".
Signed-off-by: Bernhard Nortmann <bernhard.nortm...@web.de>
ateusz.kulikow...@gmail.com>
>---
Confirmed working for Banana Pi, both on top of 3f9f8a5 and when applied
to current master (563d8d9).
Tested-by: Bernhard Nortmann <bernhard.nortm...@web.de>
Regards, B. Nortmann
___
U-Boot mailing list
U-
Commit 3f9f8a5b83f8aec40c9f4ee496046a695e333c45 breaks U-Boot on Banana
Pi (tested using FEL mode):
--- snip ---
U-Boot SPL 2016.03-00612-g3f9f8a5 (Apr 03 2016 - 12:53:35)
DRAM: 1024 MiB
CPU: 91200Hz, AXI/AHB/APB: 3/2/2
Trying to boot from
U-Boot 2016.03-00612-g3f9f8a5 (Apr 03 2016 -
Hi everybody!
I'm wondering what the correct / official way of setting a "read-only"
environment variable is.
It's simple enough to declare some #define CONFIG_ENV_FLAGS_LIST_STATIC
"myvar:sr" to begin with, but this backfires - i.e. prevents write
access - as soon as I try to set a value
Hello Hans!
Am 17.09.2015 um 23:48 schrieb Hans de Goede:
Hi,
Thanks, I've added these to my personal tree and will include
it in a future pull-req.
Regards,
Hans
Great. Thanks!
Regards, Bernhard
___
U-Boot mailing list
U-Boot@lists.denx.de
Am 17.09.2015 um 18:52 schrieb Bernhard Nortmann:
The sunxi platform currently doesn't seem to make any use of the
asm/arch-sunxi/spl.h file. This patch moves some declarations from
tools/mksunxiboot.c into it.
This enables us to reuse those definitions when extending the
sunxi board code
Hi!
Am 16.09.2015 um 03:00 schrieb Siarhei Siamashka:
On Mon, 14 Sep 2015 15:15:29 +0200
Bernhard Nortmann <bernhard.nortm...@web.de> wrote:
This patch extends the misc_init_r() function on sunxi boards
to test for the presence of a suitable "sunxi" SPL header. If
found, and
oot
process, allowing specific customizations for the "FEL boot" case.
Signed-off-by: Bernhard Nortmann <bernhard.nortm...@web.de>
---
Changes in v3:
- make use of asm/arch/spl.h to share definitions / helper macro
- revert SPL version check to expect exact SPL_HEADER_VERSION
Changes in
The sunxi platform currently doesn't seem to make any use of the
asm/arch-sunxi/spl.h file. This patch moves some declarations from
tools/mksunxiboot.c into it.
This enables us to reuse those definitions when extending the
sunxi board code (boards/sunxi/boards.c).
Signed-off-by: Bernhard
enamed fel_data_addr to fel_scriptaddr
- combined both tests into one as suggested by Hans de Goede
Bernhard Nortmann (4):
sunxi: move SPL-related definitions to platform-specific include
sunxi: (mksunxiboot) signature to indicate "sunxi" SPL variant
sunxi: retrieve FEL-provided v
quot;pub_head_size" field. This can be
used to reliably distinguish between compatible versions of sunxi
SPL and anything else (older variants or Allwinner's boot0).
Signed-off-by: Bernhard Nortmann <bernhard.nortm...@web.de>
---
Changes in v3:
- adapted to use asm/arch/spl.h
Chang
ausing "distro_bootcmd" to proceed with the next boot target.
Signed-off-by: Bernhard Nortmann <bernhard.nortm...@web.de>
Acked-by: Siarhei Siamashka <siarhei.siamas...@gmail.com>
---
Changes in v3: None
Changes in v2:
- renamed fel_data_addr to fel_scriptaddr
- combined both
_data_addr to fel_scriptaddr
- combined both tests into one as suggested by Hans de Goede
Bernhard Nortmann (3):
sunxi: (mksunxiboot) signature to indicate "sunxi" SPL variant
sunxi: retrieve FEL-provided values to environment variables
sunxi:
Hi Ian, hello Hans!
That's an interesting find, Ian - thank you.
Unfortunately it seems that flagging our environment vars accordingly
isn't enough (on its own) to prevent them from being written by
"saveenv". I've been testing
#define CONFIG_ENV_FLAGS_LIST_STATIC
quot;pub_head_size" field. This can be
used to reliably distinguish between compatible versions of sunxi
SPL and anything else (older variants or Allwinner's boot0).
Signed-off-by: Bernhard Nortmann <bernhard.nortm...@web.de>
---
Changes in v2:
- Rename field to fel_script_address,
oot
process, allowing specific customizations for the "FEL boot" case.
Signed-off-by: Bernhard Nortmann <bernhard.nortm...@web.de>
---
Changes in v2:
- renamed fel_data_addr to fel_script_addr, discarded fel_data_size
- make sure that FEL-related environment vars are always cleared f
ausing "distro_bootcmd" to proceed with the next boot target.
Signed-off-by: Bernhard Nortmann <bernhard.nortm...@web.de>
---
Changes in v2:
- renamed fel_data_addr to fel_scriptaddr
- combined both tests into one as suggested by Hans de Goede
include/configs/sunxi-common.h | 11
to unregister / remove network devices needs to be implemented.
Signed-off-by: Bernhard Nortmann <bernhard.nortm...@web.de>
Reviewed-by: Simon Glass <s...@chromium.org>
Acked-by: Joe Hershberger <joe.hershber...@ni.com>
---
Changes in v3: None
Changes in v2:
- add "net:" prefi
all sunxi boards using CONFIG_SUNXI_[EG]MAC.)
Signed-off-by: Bernhard Nortmann <bernhard.nortm...@web.de>
Acked-by: Joe Hershberger <joe.hershber...@ni.com>
---
Changes in v3: None
Changes in v2: None
configs/Bananapi_defconfig | 3 ++-
configs/Bananapro_defconfig | 3 ++-
2 files
pointer and tests it for ETH_STATE_ACTIVE.
Signed-off-by: Bernhard Nortmann <bernhard.nortm...@web.de>
Reviewed-by: Simon Glass <s...@chromium.org>
---
Changes in v3:
- use dev_get_uclass_priv()
Changes in v2: None
include/net.h | 6 ++
net/eth.c | 18 +-
2 f
the introduction of DM_ETH, and I'm lacking
other hardware to test CONFIG_NETCONSOLE with).
Regards, B. Nortmann
Changes in v3:
- use dev_get_uclass_priv()
Changes in v2:
- add "net:" prefix to commit message
- add "net:" prefix to commit message
Bernhard Nortmann (5):
net:
might 'vanish' if they start to use
CONFIG_NET or CONFIG_NETDEVICES.
Signed-off-by: Bernhard Nortmann <bernhard.nortm...@web.de>
Acked-by: Joe Hershberger <joe.hershber...@ni.com>
---
Changes in v3: None
Changes in v2: None
net/Kconfig | 6 ++
1 file changed, 6 insertions(+)
diff
This patch uses the eth_is_active() function to work around
issues that prevented compilation with the newer driver model.
Signed-off-by: Bernhard Nortmann <bernhard.nortm...@web.de>
Acked-by: Joe Hershberger <joe.hershber...@ni.com>
---
Changes in v3: None
Changes in v2:
- add &
Hello Hans!
Thanks for looking into this.
Am 10.09.2015 um 20:29 schrieb Hans de Goede:
I believe these 2 should be renamed to:
uint32_t fel_boot_script_address;
uint32_t fel_boot_script_size;
To properly reflect what they are (they are not some abstract
data, they are specifically
Hi!
Am 10.09.2015 um 20:36 schrieb Hans de Goede:
Hi,
I would prefer to have this like this:
"bootcmd_fel=" \
"if test -n ${fel_booted} && test -n ${fel_data_addr}; then " \
"echo '(FEL boot)';" \
"source ${fel_data_addr}; " \
"fi\0"
Sure, we
Hi Hans!
Am 10.09.2015 um 20:34 schrieb Hans de Goede:
What if the user interrupts auto-boot with a fel provided boot.scr
and then does "saveenv" ?
Then we end up with a fel_data_addr and fel_data_size permanently
in the env.
At a minimum this function must always do:
lowing specific customizations for the "FEL boot" case.
Signed-off-by: Bernhard Nortmann <bernhard.nortm...@web.de>
---
board/sunxi/board.c | 59 +
1 file changed, 59 insertions(+)
diff --git a/board/sunxi/board.c b/board/sunxi/boa
ausing "distro_bootcmd" to proceed with the next boot target.
Signed-off-by: Bernhard Nortmann <bernhard.nortm...@web.de>
---
include/configs/sunxi-common.h | 13 +
1 file changed, 13 insertions(+)
diff --git a/include/configs/sunxi-common.h b/include/configs/sunxi-commo
it 'the right
way'. Any feedback is appreciated.
Regards, B. Nortmann
Bernhard Nortmann (2):
sunxi: retrieve FEL-provided values to environment variables
sunxi: add "fel" boot target
board/sunxi/board.c| 59 ++
include/conf
Am 02.09.2015 um 16:51 schrieb Siarhei Siamashka:
On Wed, 2 Sep 2015 15:17:11 +0200
Bernhard Nortmann <bernhard.nortm...@web.de> wrote:
This patch follows up on a discussion of ways to improve support
for the sunxi FEL ("USB boot") mechanism, especially with regard
to boot scr
quot;pub_head_size" field. This can be
used to reliably distinguish between compatible versions of sunxi
SPL and anything else (older variants or Allwinner's boot0).
Signed-off-by: Bernhard Nortmann <bernhard.nortm...@web.de>
---
tools/mksunxiboot.c | 27 ++-
nyway...
Regards, B. Nortmann
Am 28.08.2015 um 17:00 schrieb Tom Rini:
> On Mon, Aug 24, 2015 at 11:51:46AM +0200, Bernhard Nortmann wrote:
>> Hello Simon!
>>
>> Am 23.08.2015 23:21, schrieb Simon Glass:
>>> Hi Bernard,
>>>
>>> [...]
>>> If
pointer and tests it for ETH_STATE_ACTIVE.
Series-changes: 3
- use dev_get_uclass_priv()
Signed-off-by: Bernhard Nortmann bernhard.nortm...@web.de
Reviewed-by: Simon Glass s...@chromium.org
---
include/net.h | 6 ++
net/eth.c | 18 +-
2 files changed, 23 insertions(+), 1
This patches uses the eth_is_active() function to work around
issues that prevented compilation with the newer driver model.
Signed-off-by: Bernhard Nortmann bernhard.nortm...@web.de
---
Changes in v2:
- add net: prefix to commit message
drivers/net/netconsole.c | 14 +++---
1 file
pointer and tests it for ETH_STATE_ACTIVE.
Signed-off-by: Bernhard Nortmann bernhard.nortm...@web.de
Reviewed-by: Simon Glass s...@chromium.org
---
Changes in v2:
- add net: prefix to commit message
include/net.h | 6 ++
net/eth.c | 18 +-
2 files changed, 23 insertions
might 'vanish' if they start to use
CONFIG_NET or CONFIG_NETDEVICES.
Signed-off-by: Bernhard Nortmann bernhard.nortm...@web.de
---
Changes in v2: None
net/Kconfig | 6 ++
1 file changed, 6 insertions(+)
diff --git a/net/Kconfig b/net/Kconfig
index 915371d..77a2f7e 100644
--- a/net/Kconfig
boards using CONFIG_SUNXI_[EG]MAC.)
Signed-off-by: Bernhard Nortmann bernhard.nortm...@web.de
---
Changes in v2: None
configs/Bananapi_defconfig | 3 ++-
configs/Bananapro_defconfig | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/configs/Bananapi_defconfig b/configs
to unregister / remove network devices needs to be implemented.
Signed-off-by: Bernhard Nortmann bernhard.nortm...@web.de
Reviewed-by: Simon Glass s...@chromium.org
---
Changes in v2:
- add net: prefix to commit message
common/bootm.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/common/bootm.c b
- add net: prefix to commit message
- add net: prefix to commit message
Bernhard Nortmann (5):
net: expose eth_is_active() function to test network device state
net: fix netconsole when CONFIG_DM_ETH is set
net: avoid eth_unregister() call when function is unavailable
net: support NETCONSOLE
Am 25.08.2015 um 17:55 schrieb Joe Hershberger:
Hi Bernhard,
[...]
It's good to have a build target and also a test or so. We should
maybe enable it in sandbox.
I'm not familiar at all with the U-Boot sandbox architecture, so I'd
prefer
to leave that to someone else.
I'm pretty sure
Am 24.08.2015 um 19:02 schrieb Joe Hershberger:
Hi Simon,
On Mon, Aug 24, 2015 at 11:59 AM, Simon Glass s...@chromium.org wrote:
Hi Bernhard,
[...]
i.e. sunxi GMAC (by simply adding #define CONFIG_NETCONSOLE).
In that case how about adding that config to that board? Does it cause
problems for
Hi Simon!
Am 23.08.2015 23:21, schrieb Simon Glass:
A few points:
- You should tag your patch with the subsystem it targets - in your
case I think you should prefix the subject with 'net: '
Okay. I'll keep that in mind for future reiterations of this patch set.
Btw: Thanks for looking into my
Hello Simon!
Am 23.08.2015 23:21, schrieb Simon Glass:
Hi Bernard,
[...]
If this is a new option it should be added to Kconfig. Otherwise:
Reviewed-by: Simon Glass s...@chromium.org
Right. Kconfig wasn't on my agenda, but I agree that it should go in there.
Unfortunately this points out
Hi Hans!
I agree that picking user-defined LEDs as an example might not have been the
best choice. Stuff like that should probably go into more 'generic'
frameworks,
e.g. a place to deal with those would be to define them in the device
tree and
have a proper driver handling them.
definitions.
The latter would probably originate from the boards' *_defconfig files.
Regards, B. Nortmann
Bernhard Nortmann (1):
sunxi: support board-specific configuration options
configs/Bananapi_defconfig | 2 +-
include/configs/bananapi.h | 23 +++
include
Extend sunxi-common.h to include sunxi-boards.h - which in turn
can support multiple configurations/options/includes, based on
board-specific symbols (preprocessor definitions). These might
be supplied by the respective *_defconfig files.
Signed-off-by: Bernhard Nortmann bernhard.nortm...@web.de
probably best to introduce an additional
configuration setting. I've chosen CONFIG_GPIO_LED_STUBS for that.
Placing the code in drivers/misc/gpio_led.c also ensures that it
automatically depends on CONFIG_GPIO_LED too.
Signed-off-by: Bernhard Nortmann bernhard.nortm...@web.de
---
drivers/misc
is sufficient to justify a
corresponding call to status_led_init(), even with no STATUS_LED_BOOT
defined. To do so, common/board_r.c needs call that routine, so it now
is exposed via status_led.h.
Signed-off-by: Bernhard Nortmann bernhard.nortm...@web.de
---
common/board_r.c | 9
to unregister / remove network devices needs to be implemented.
Signed-off-by: Bernhard Nortmann bernhard.nortm...@web.de
---
common/bootm.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/common/bootm.c b/common/bootm.c
index 667c934..c0d0d09 100644
--- a/common/bootm.c
+++ b/common/bootm.c
@@ -474,7
pointer and tests it for ETH_STATE_ACTIVE.
Signed-off-by: Bernhard Nortmann bernhard.nortm...@web.de
---
include/net.h | 6 ++
net/eth.c | 18 +-
2 files changed, 23 insertions(+), 1 deletion(-)
diff --git a/include/net.h b/include/net.h
index d09bec9..c135ec4 100644
netconsole again.
I've also backported eth_is_active() and netconsole.c to
v2015.04 to make sure they properly worked in case CONFIG_DM_ETH
is absent.
Regards, B. Nortmann
Bernhard Nortmann (3):
expose eth_is_active() function to test network device state
fix netconsole when CONFIG_DM_ETH
This patches uses the eth_is_active() function to work around
issues that prevented compilation with the newer driver model.
Signed-off-by: Bernhard Nortmann bernhard.nortm...@web.de
---
drivers/net/netconsole.c | 14 +++---
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git
Ian Campbell ijc+uboot at hellion.org.uk writes:
I would have expected this to become necessary at with sunxi: Support
the FEL boot mode in the regular u-boot build rather than at sunxi:
Move all boards to the driver-model.
Anyway, I'll try your suggested path tonight. I'm pretty certain
fabioca fabio_cannizzo at yahoo.com writes:
I just cloned the repo (top commit: 64d16706a052553c85d2f8f4c741879a4e3e6116)
and run on a bananapi (armv7):
# make Bananapi_defconfig
# make
The second command fails with errors like:
ld.bfd: error:
, on a
Banana Pi = sun7i/A20).
So I'll add a
Tested-by: Bernhard Nortmann bernhard.nortm...@web.de
BTW: There's a small typo you also might want to fix: The erase range would
be change to - The erase range would be changed to
Regards, B. Nortmann
___
U
The switch to DM in
http://git.denx.de/?p=u-boot.git;a=commit;h=b6006baf9c2553543e3384983d23d95efbf24fa6
causes u-boot compilation to fail when CONFIG_NETCONSOLE is enabled:
CC common/bootm.o
common/bootm.c: In function 'bootm_disable_interrupts':
common/bootm.c:472:2: warning: implicit
(The post to the ML was here:
http://lists.denx.de/pipermail/u-boot/2015-June/216284.html)
I've been asking around a bit on the issue on IRC in #linux-sunxi and
#u-boot (and originally contacted Hans on this). The user Kasreyn brought
the subject up on #linux-sunxi, reporting that his Banana Pi
From c02e4e8d6f89889255f8f8ec78abc7f33faac3b5 Mon Sep 17 00:00:00 2001
From: Bernhard Nortmann bernhard.nortm...@web.de
Date: Wed, 10 Jun 2015 10:23:13 +0200
Subject: [PATCH] add CONFIG_SYS_64BIT_LBA
Due to absence of CONFIG_SYS_64BIT_LBA, u-boot-sunxi currently has
no support for the (GPT
For current U-Boot to initialize status LEDs via status_led_init(), it
is required to have both CONFIG_STATUS_LED and STATUS_LED_BOOT defined.
This may be a particular concern with GPIO LEDs, where __led_init() is
required to correctly set up the GPIO (gpio_request and
gpio_direction_output).
For boards that support LEDs driven via GPIO (CONFIG_GPIO_LED), it may
be useful to have some generic stubs (wrapper functions) for the
colored LEDs. This allows definitions like:
#define GREEN_LED_GPIO 248 /* = PH24 */
#define STATUS_LED_BIT GREEN_LED_GPIO
#define
99 matches
Mail list logo