Re: [U-Boot] [PATCH v2 04/10] powerpc, 8xx: Implement GLL2 ERRATA

2017-07-06 Thread Wolfgang Denk
0002) { > + clrbits_be32(&immr->im_clkrst.car_sccr, 0x0006); > + setbits_be32(&immr->im_clkrst.car_sccr, 0x0002); > + } Like a few lines above, you could/should use a single call to clrsetbits_be32() here. And as Heiko already commente

Re: [U-Boot] [PATCH] video: add config option to skip framebuffer clear

2017-07-04 Thread Wolfgang Denk
ry due to hardware properties or such. In this case it is a decision of the user whether he wants to clear the FB or not, thus no _SYS. Thanks. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Gr

Re: [U-Boot] [PATCH 2/7] powerpc, 8xx: Implement GLL2 ERRATA

2017-07-04 Thread Wolfgang Denk
ixit statement here how you are going to > > handle this in the future? [And again, schedule is important, too.] > > My plan is to convert to the use of IO accessors during this week. Thanks. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director:

Re: [U-Boot] [PATCH v5] powerpc: Partialy restore core of mpc8xx

2017-06-30 Thread Wolfgang Denk
ADME.fsl-clk 626662e 2017-06-29 21:24:16 -0400 .travis.yml: All DENX boards are now under Aries ... BTW: Heiko reported the same issue, so it seems to be not only me having this problem. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Den

Re: [U-Boot] [PATCH 2/7] powerpc, 8xx: Implement GLL2 ERRATA

2017-06-30 Thread Wolfgang Denk
amming standards). Can you please make an explixit statement here how you are going to handle this in the future? [And again, schedule is important, too.] Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.

Re: [U-Boot] [PATCH v5] powerpc: Partialy restore core of mpc8xx

2017-06-30 Thread Wolfgang Denk
Dear Christophe, In message <20170629165215.9672c67...@pc13941vm.idsi0.si.c-s.fr> you wrote: > > This commit partially restores support for the 8xx, with the > following limitations: checkpatch complains about this patch like this: total: 97 errors, 714 warnings, 87 checks, 6380 lines ch

Re: [U-Boot] [PATCH v5] powerpc: Partialy restore core of mpc8xx

2017-06-30 Thread Wolfgang Denk
instead. To restore the original branch and stop patching, run "git am -i --abort". Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax:

Re: [U-Boot] [PATCH v3] powerpc: Restore core of mpc8xx

2017-06-30 Thread Wolfgang Denk
quires continuous efforts. > I have kept only the needed stuff in my soon-to come v5 version of the > patch. Good. Thanks! > Your advices are welcome. Now you know my requirements, so your help is > of course more than welcome. I still don't have the information I asked for

Re: [U-Boot] [PATCH v4] powerpc: Restore core of mpc8xx

2017-06-23 Thread Wolfgang Denk
s of the many boards we had to support. Trust me, I know what I'm speaking about. To make this clear: I am in no way against continuing to support mpc8xx. But we should not let him run into an unmaintainable mess of code. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH

Re: [U-Boot] [PATCH v4] powerpc: Restore core of mpc8xx

2017-06-23 Thread Wolfgang Denk
t; create mode 100644 examples/standalone/test_burst_lib.S > create mode 100644 examples/standalone/timer.c > create mode 100644 include/commproc.h > create mode 100644 include/mpc823_lcd.h > create mode 100644 include/usb/mpc8xx_udc.h > create mode 100644 post/cpu/mpc8xx/Makefi

Re: [U-Boot] [PATCH 4/4] powerpc, 8xx: Add support for MCR3000 board from CSSI

2017-06-23 Thread Wolfgang Denk
4 board/cssi/MCR3000/MCR3000.c > create mode 100644 board/cssi/MCR3000/Makefile > create mode 100644 board/cssi/MCR3000/nand.c > create mode 100644 board/cssi/MCR3000/u-boot.lds > create mode 100644 configs/MCR3000_defconfig > create mode 100644 include/configs/MCR3000.h Does not a

Re: [U-Boot] [PATCH 3/4] powerpc, 8xx: Properly set CPM frequency in the device tree

2017-06-23 Thread Wolfgang Denk
t needs to pass the correct value. > > Signed-off-by: Christophe Leroy > --- > arch/powerpc/cpu/mpc8xx/fdt.c | 2 ++ > 1 file changed, 2 insertions(+) Does not apply: 'arch/powerpc/cpu/mpc8xx/fdt.c': No such file or directory Naked-by: Wolfgang Denk Best regards, Wolf

Re: [U-Boot] [PATCH 2/4] powerpc, 8xx: Implement GLL2 ERRATA

2017-06-23 Thread Wolfgang Denk
pu/mpc8xx/cpu_init.c deleted in 431c66a3bad13e13c1d44ef4ec3638f95e72e11d and modified in powerpc, 8xx: Implement GLL2 ERRATA. Version powerpc, 8xx: Implement GLL2 ERRATA of arch/powerpc/cpu/mpc8xx/cpu_init.c left in tree. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing

Re: [U-Boot] [PATCH 1/4] powerpc, 8xx: add support for LXT973 PHY

2017-06-23 Thread Wolfgang Denk
phe Leroy > --- > arch/powerpc/cpu/mpc8xx/fec.c | 4 > 1 file changed, 4 insertions(+) Otherwise: Reviewed-by: Wolfgang Denk Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Gr

Re: [U-Boot] [PATCH v3] powerpc: Restore core of mpc8xx

2017-06-23 Thread Wolfgang Denk
rry, I don't want to have that. > No, that's not correct. I want to adapt it, but again, I don't think it > is a good idea to do it in a few hours, in a hurry. But that's exactly what you are pushing us for: we shall accept the old crap in a hurry. No, take all the time

Re: [U-Boot] [PATCH v3] powerpc: Restore core of mpc8xx

2017-06-22 Thread Wolfgang Denk
ease check your own board configuration and come up with a list of needed features, and re-add only those, cleaning up file hierarchy while you go. See .sig below (non-random today). Thanks. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165

Re: [U-Boot] [PATCH v3] powerpc: Restore core of mpc8xx

2017-06-22 Thread Wolfgang Denk
also omit stuff like the 823 video support. Sorry, but: Nacked-by: Wolfgang Denk Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142

Re: [U-Boot] [PATCHv2] powerpc: Restore core of mpc8xx

2017-06-22 Thread Wolfgang Denk
have to admit that it is kind of breaking my heart to see 8xx go, as this is where it all started - this was the first code of this project, long before the name U-Boot came up. But formally I'm still maintainer of this code, and in it's current form I want to see it removed and gone.

Re: [U-Boot] [PATCH 11/11] powerpc, 8xx: Add a directory for soon to come boards from CSSI

2017-06-22 Thread Wolfgang Denk
n a way that matches today's requirements. The code needs cleanup everywhere: directory layout, Kconfig, DM support, I/O accessors, etc. NAK! Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194

Re: [U-Boot] at91: smartweb board fails with current HEAD

2017-06-22 Thread Wolfgang Denk
d, we should search for a compromise. We will have to do this now. But that should have been done before upstreaming this code. Thanks. Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone

Re: [U-Boot] [PATCH v6 3/3] GPT: provide commands to selectively rename partitions

2017-06-18 Thread Wolfgang Denk
that the behaviour is the _same_ is not strictly correct. atoi() returns "int", while strtol() returns "long int"... Anyway, you are right that atoi() is not being used anywhere in active U-Boot code. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH,

Re: [U-Boot] [PATCH v6 3/3] GPT: provide commands to selectively rename partitions

2017-06-18 Thread Wolfgang Denk
ed in simple_atoi() from > lib/vsprintf.c, but assuredly that is an ugly solution.Does anyone have > a better idea to solve this problem? U-Boot should always be self-contained and not link regular library code from the tool chain. Best regards, Wolfgang Denk -- DENX Software Engineer

Re: [U-Boot] [PATCH v6 3/3] GPT: provide commands to selectively rename partitions

2017-06-12 Thread Wolfgang Denk
will never know if there really was a pair of names that was swapped. Just a single rename of name1->name2 _or_ of name2->name1 will make the user think everything was fine. [Note: I'm in the process of relocating and will be offline for the next 2..3. days. Don't expect more co

Re: [U-Boot] [PATCH v5 3/3] rename GPT partitions to detect boot failure

2017-06-09 Thread Wolfgang Denk
back to the ‘backup’ partition after a single boot attempt, but instead try other things first, like booting another kernel or another device tree blob? I feel this should be not so much hardwired, but leave more freedom for the user's creativity. What do you think? Best regards, Wolfgang Den

Re: [U-Boot] [ANN] U-Boot v2017.05 is released

2017-05-10 Thread Wolfgang Denk
3 (2.1%) ST Microelectronics 2 (1.4%) Konsulko Group 1 (0.7%) ... Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142

Re: [U-Boot] reverse engineering a Philips photoframe

2017-05-07 Thread Wolfgang Denk
o images... It my help to look for compression headers - strings does not help on compressed images / compressed parts within an image. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell

Re: [U-Boot] __FILE__ usage and and SPL limits for SRAM

2017-04-05 Thread Wolfgang Denk
ID ? OK, this requires the code to be in a git repository, but should we really care about people who don't use git? ;-) Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, German

Re: [U-Boot] Remove global variable env_t *env_ptr ?

2017-04-04 Thread Wolfgang Denk
nced that it's wise to touch such ancient, "stable" code for an exotic feature that probably nobody else will ever need? Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebe

Re: [U-Boot] Remove global variable env_t *env_ptr ?

2017-04-04 Thread Wolfgang Denk
So you attempt to switch between different settings? Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.d

Re: [U-Boot] Remove global variable env_t *env_ptr ?

2017-04-04 Thread Wolfgang Denk
uot;switch" to a different location, i. e. to alternative environment settings. If this is what you want to do I wonder if it's not easier (at least it does not require code changes) to switch "profiles" by using "env import" ? Best regards, Wolfgang Denk -- DENX Soft

Re: [U-Boot] Remove global variable env_t *env_ptr ?

2017-04-03 Thread Wolfgang Denk
t these, and verify that the image layout does not change for these with any such changes. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fa

Re: [U-Boot] [PATCH v2] net: eth_common: Don't use %pM when USE_TINY_PRINTF is enabled

2017-04-03 Thread Wolfgang Denk
am437x/am335x boards with > CONFIG_USE_TINY_PRINTF(to reduce code size due to internal SRAM size > constraint) and therefore need networking support in SPL. So you need networking _and_ USB and still care about the printf() size? Ouch... Best regards, Wolfgang Denk -- DENX Software Engineering GmbH,

Re: [U-Boot] [PATCH v2] net: eth_common: Don't use %pM when USE_TINY_PRINTF is enabled

2017-04-02 Thread Wolfgang Denk
with CONFIG_USE_TINY_PRINTF. OTOH - what is the use case for CONFIG_USE_TINY_PRINTF in combination with network related code? I would expect to see this config option in memory restricted environments like SPL, but there you don't include support for networking - or do you? Best regards,

Re: [U-Boot] [PATCH] common, kconfig: Fix defaut value of BOOTSTAGE_STASH_SIZE

2017-04-02 Thread Wolfgang Denk
hex number? Thanks. Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de Always borrow money from a pessimist; they d

Re: [U-Boot] U-boot multi-file format

2017-03-30 Thread Wolfgang Denk
at puts the image into memory - all the rest is the responsibility of Linux. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w

Re: [U-Boot] so u-boot can be configured to try to update itself on every boot?

2017-03-29 Thread Wolfgang Denk
gned to stop you from doing stupid things, because that would also stop you from doing clever things." - Doug Gwyn ;-) Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germa

Re: [U-Boot] fatls returncode

2017-03-27 Thread Wolfgang Denk
i Shtylyov Date: Mon Aug 8 09:38:33 2011 + fat: fix crash with big sector size Sergei, do you agree that ret = 0 should be set before the "goto exit" here? Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Muni

Re: [U-Boot] fatls returncode

2017-03-23 Thread Wolfgang Denk
ovide correct return code from disk_{read|write} to upper layers Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80

Re: [U-Boot] [ANN] U-Boot v2017.03 is released

2017-03-21 Thread Wolfgang Denk
3 (2.3%) Socionext Inc. 3 (2.3%) Samsung 2 (1.6%) Collabora Ltd. 2 (1.6%) ... Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 G

[U-Boot] Mailing list moved

2017-02-27 Thread Wolfgang Denk
care of it. Also, if you notice any problems, please do not hesitate to contact me. Thanks! Best regards, Wolfgang Denk -- Meet DENX at the Embedded World Trade Show 14 Mar - 16 Mar 2017, Nuremberg Trade Fair Centre, Hall 4, Booth 581 -- DENX Software Engineering GmbH, Managing Director

Re: [U-Boot] Assigning u-boot environment variables from memory

2017-02-20 Thread Wolfgang Denk
Dear brendan, In message <1487107650642-281788.p...@n7.nabble.com> you wrote: > I am storing some information regarding my board within EEPROM (in memory > after I use the >eeprom read command) and I was wondering if it was possible > for me to somehow read from memory and store the values into an

Re: [U-Boot] Using 'gitdm' to generate U-Boot release statistics

2017-01-13 Thread Wolfgang Denk
see [1]. > > The configuration used for the U-Boot statistics is in the "u-boot" > branch. Here is the missing link: [1] git://git.denx.de/gitdm http://git.denx.de/gitdm.git Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk

[U-Boot] Using 'gitdm' to generate U-Boot release statistics

2017-01-13 Thread Wolfgang Denk
2017.01 ) | \ ./gitdm -u -s -a -o /tmp/results -h /tmp/results.html Hope this helps. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (

Re: [U-Boot] [ANN] U-Boot v2017.01 is released

2017-01-11 Thread Wolfgang Denk
3 (2.2%) Marvell 3 (2.2%) CompuLab 2 (1.4%) ... Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10

Re: [U-Boot] [PATCH v2 2/2] lib: net_utils: enforce '.' as octet separator in string_to_ip

2017-01-08 Thread Wolfgang Denk
0168:0001:0001" but the former triggers the ipv4 mapping > logic. Ah, I see. Makes sense. Should we add error handling to TFTP and NFS, then? Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-8

Re: [U-Boot] [PATCH v2 2/2] lib: net_utils: enforce '.' as octet separator in string_to_ip

2017-01-04 Thread Wolfgang Denk
pt 192,168,1,2 as well. Do we need to be so strict here - at the cost of added code size? Also, at least crtitical parts of the network code (NFS, TFTP) do not check the return value of string_to_ip() - so what is the benefit of this change? Best regards, Wolfgang Denk -- DENX Sof

Re: [U-Boot] [PATCH v2 1/2] lib: net_utils: make string_to_ip stricter

2017-01-04 Thread Wolfgang Denk
poses of IP addresses can be > considered an error. Does code that calls string_to_ip() check for such an error condition? Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany

Re: [U-Boot] [PATCH] common: Fix logic in fpga programming

2016-12-20 Thread Wolfgang Denk
nning the user > > has no indication of what failed... > > Isn't it message above enough? In the patch, I see only a "return 1;". Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office:

Re: [U-Boot] [PATCH] common: Fix logic in fpga programming

2016-12-20 Thread Wolfgang Denk
d, you can see at last where it crashed, i. e. what the last running command was. Your change breaks this - in the error path nothing gets printed. This is even worse, as even though the system keeps running the user has no indication of what failed... I suggest to keep the printf() as bef

Re: [U-Boot] Environment storage format stability

2016-12-15 Thread Wolfgang Denk
format with an older boot loader. The user space tools may be upgraded > as part of a rootfs update, but the boot loader typically will not. As of now, you can still read the environment of a 16 year old PPCBoot :-) Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managin

Re: [U-Boot] [ANN] U-Boot v2016.11 is released

2016-11-22 Thread Wolfgang Denk
ith "www" part please remove the same. Done. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de

Re: [U-Boot] [ANN] U-Boot v2016.11 is released

2016-11-19 Thread Wolfgang Denk
Dear Jagan, In message you wrote: > > Unfortunately "Amarula Solutions" is not listed in Employers list [1] > for this I sent a domain-map mail to Wolfgang Denk during MW, any edit > for this? Where should it show up? You sent me an entry for a www.amarulaso

Re: [U-Boot] is there any issue with creating and using more than one hashtable?

2016-10-02 Thread Wolfgang Denk
Dear Robert, In message you wrote: > > i'm going to assume other net-related commands have this behaviour > as well, yes? like ping? which would explain why ping'ing even the > alleged gateway didn't work in this context. Yes. This is common network code. B

Re: [U-Boot] is there any issue with creating and using more than one hashtable?

2016-10-01 Thread Wolfgang Denk
what i use to add/modify a new env variable -- is this the > correct approach, to add it to the "env_htab" hashtable? > > int > add_entry_to_env(ENTRY* e) > { > ENTRY* ep; > > printf("Adding stuff k: [%s], d: [%s] to env.\n", e->key, e

Re: [U-Boot] is there any issue with creating and using more than one hashtable?

2016-10-01 Thread Wolfgang Denk
tings through a setenv command. It is obvious that the U-Boot design did not anticipate a situation where an alternative hash table with different settings would be created. A quick but ugly workaround could be to re-set the variables to the values stored in the environment by running something

Re: [U-Boot] interaction between CONFIG_CMD_SAVEENV and CONFIG_BOOTCOMMAND

2016-09-14 Thread Wolfgang Denk
plan to upgrade this > "primary bootloader" u-boot. Hm... this should still not show such behaviour. Check your board config file thoroughly, especially your environment settings. Check that environment definitions are explicitly terminated by NUL characters, and that all string quo

Re: [U-Boot] interaction between CONFIG_CMD_SAVEENV and CONFIG_BOOTCOMMAND

2016-09-14 Thread Wolfgang Denk
gt; one time to construct the environment content. This would be a bug. Whcih exact version of U-Boot are you talking about? Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Ger

Re: [U-Boot] recommended place to add some custom settings to u-boot environment?

2016-09-14 Thread Wolfgang Denk
s a bit fragile to me. Experience tells me that very soon someone _will_ use a space in a variable. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989

Re: [U-Boot] recommended place to add some custom settings to u-boot environment?

2016-09-14 Thread Wolfgang Denk
h as a space character is a legal part of the value of an environment variable. You would need to tweak the import code. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Pho

Re: [U-Boot] recommended place to add some custom settings to u-boot environment?

2016-09-14 Thread Wolfgang Denk
made to work with "env import" using this well-known address? I mean, if it's plain text, it should just work. If it's some other, more exotic format, you could probably implement a custom import format? Best regards, Wolfgang Denk -- DENX Software Engineering GmbH,

Re: [U-Boot] recommended place to add some custom settings to u-boot environment?

2016-09-14 Thread Wolfgang Denk
will have been initialized, and i'll have access to "env_htab". > thoughts? is there a better place to "adjust" the u-boot environment > once u-boot has done its normal work? thanks. Why not simply putting this as text (or wrapped with an uImage header) into some storage (

Re: [U-Boot] [ANN] U-Boot v2016.09 is released

2016-09-12 Thread Wolfgang Denk
2 (1.5%) Red Hat 1 (0.8%) ... Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de There is a

Re: [U-Boot] [PATCH 1/1] ARM: Move SYS_CACHELINE_SIZE over to Kconfig

2016-08-21 Thread Wolfgang Denk
s added, there was just L1 cache around. There were a very small number of systems with L2 cache, but IIRC this never got used for other purposes than providing static RAM for U-Boot ;-) Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165

Re: [U-Boot] U-Boot SPL 2016.09-rc1 on NTC C.H.I.P.

2016-08-21 Thread Wolfgang Denk
. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de It is not best to swap horses while crossing the river. -

Re: [U-Boot] A command to discard saved environments?

2016-08-11 Thread Wolfgang Denk
makes sense... > As Tom pointed out, the latter can use CONFIG_ENV_IS_NOWHERE. Of course. TIMTOWTDI... Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8

Re: [U-Boot] A command to discard saved environments?

2016-08-03 Thread Wolfgang Denk
> of operation as a normal part of doing business. Agreed. This should never be part of regular operation. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-

Re: [U-Boot] A command to discard saved environments?

2016-08-03 Thread Wolfgang Denk
the result is that you will use the default settings at next boot - and the samve effect can be acchieved by using "env reset" + "env save" as already recommended. [The only difference is that you will not see the "invalid CRC, using the default env" warning then, bu

Re: [U-Boot] Disable command at runtime

2016-08-03 Thread Wolfgang Denk
ral it is a good approach to consider an open CLI interface in U-Boot as a mighty tool for all kinds of use. "UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things." - Doug Gwyn Same holds for U-Boot... Best regards,

Re: [U-Boot] Disable command at runtime

2016-08-01 Thread Wolfgang Denk
f you grand somebody access to the U-Boot command line interface, he owns the system. If not directly, so by just pulling a few simple tricks. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenze

Re: [U-Boot] Disable command at runtime

2016-08-01 Thread Wolfgang Denk
em you are already doomed. If it's in U-Boot, you lost. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w.

Re: [U-Boot] Network boot fallback usage/features

2016-08-01 Thread Wolfgang Denk
es, even with a complete example. See [3] [1] http://catb.org/esr/faqs/smart-questions.html [2] http://catb.org/esr/faqs/smart-questions.html#urgent [2] http://www.denx.de/wiki/view/DULG/CommandLineParsing Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director:

Re: [U-Boot] a few questions about saving bootcount in the environment

2016-07-26 Thread Wolfgang Denk
e technique you select: These methods access the persistent copy of the variable. The setenv_ulong() just creates a transient work copy. > it appears that, no matter what, the environment *is* updated every > single time because of this line in the bootdelay_process() routine: > &g

Re: [U-Boot] [PATCH 3/4] net: cpsw: Add support to drive gpios for ethernet to be functional

2016-07-25 Thread Wolfgang Denk
s already a blank line which provides enough separation. No need to have multiple consecutive blank lines. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66

Re: [U-Boot] [PATCH 03/10] arm: dts: imx7: add pinctrl defines

2016-07-25 Thread Wolfgang Denk
ncluding commit ID, see [1] bullet 4 for details. [1] http://www.denx.de/wiki/view/U-Boot/Patches#Attributing_Code_Copyrights_Sign Thanks. Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany

Re: [U-Boot] a few questions about saving bootcount in the environment

2016-07-25 Thread Wolfgang Denk
only the resetting is done in user space (and requires another write). Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Emai

Re: [U-Boot] a few questions about saving bootcount in the environment

2016-07-25 Thread Wolfgang Denk
oot time it may be important, too. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de Some people marc

Re: [U-Boot] a few questions about saving bootcount in the environment

2016-07-25 Thread Wolfgang Denk
s. And even on other stoage each write access includes the risk of errors. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80

Re: [U-Boot] confused by "upgrade_available=0\0" in include/configs/taurus.h

2016-07-25 Thread Wolfgang Denk
obj-$(CONFIG_SOC_DA8XX) += bootcount_davinci.o > obj-$(CONFIG_BOOTCOUNT_AM33XX) += bootcount_davinci.o ..this would make more sense to me if it was called CONFIG_BOOTCOUNT_DAVINCI Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich

Re: [U-Boot] a few questions about saving bootcount in the environment

2016-07-24 Thread Wolfgang Denk
the number of writes to the environment. > now, i can see where one wants to reset "bootcount" to zero once you > boot successfully, but why would you also set "upgrade_available" to > zero? don't you want to keep using that feature when you boot in the >

Re: [U-Boot] confused by "upgrade_available=0\0" in include/configs/taurus.h

2016-07-24 Thread Wolfgang Denk
cause unwanted side effects. This needs thorough checking and cleanup, if it should turn out thatthese macros are used only to select specific bootcount implementations - in that case, they should be renamed into something like CONFIG_BOOTCOUNT_* or such. Heiko, maybe you could have a look tat that

Re: [U-Boot] confused by "upgrade_available=0\0" in include/configs/taurus.h

2016-07-22 Thread Wolfgang Denk
ailable" 925 and "bootcount" variable to 0, if a boot was successfully. This is a special measure for boards where there was no good place to store the boot counter variable in some hardware register, so it was instead placed in the environment. Adding Heiko on Cc: so

Re: [U-Boot] suggested/stealable setups for robustness with switchable partitions?

2016-07-22 Thread Wolfgang Denk
bably want to look at the swupdate [1] project and read it's documentation... [1] http://git.denx.de/?p=swupdate.git;a=summary Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germ

Re: [U-Boot] "uEnv.txt" versus "fw_setenv" -- a question about style

2016-07-22 Thread Wolfgang Denk
just a single environment variable using fw_setenv than to edit a text file, or to manage a number of alternative text files through copies, moves and/or links. Others may tell you different stories... I think this is one of the cases of "there is more than one way to do it". Best r

Re: [U-Boot] Dynamic linker in uboot

2016-07-21 Thread Wolfgang Denk
Dear atulkumar singh, In message you wrote: > > Could some one please let me know whether u-boot has its own dynamic linker? It does not. The U-Boot image is linked statically, but relocatable. Relocation is done manually, no linker or such is involved. Best regards, Wolfgan

Re: [U-Boot] MPC8347 Initial Boot problems

2016-07-21 Thread Wolfgang Denk
FFF and wraps arount to continue at 0x0 which cuses the huge image size. We have seen this before with somme tool chain versions and some (usually sub-optimal) optimizer settings. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 1652

Re: [U-Boot] [v2 1/1] wandboard: fix dtb file names.

2016-07-19 Thread Wolfgang Denk
u should add some error checking here? Each of the getenv() calls may fail, as well as the malloc() - and then? As is: NAK!! Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Ge

Re: [U-Boot] [PATCH] common: fit: Allow U-Boot images to be booted

2016-07-19 Thread Wolfgang Denk
-boot.git;a=blob;f=include/image.h#l228 Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de "Obviously,

Re: [U-Boot] [PATCH 1/1] configs/wandboard.h: fix dtb file name for findfdt.

2016-07-18 Thread Wolfgang Denk
test $board_name = B1 && test $board_rev = MX6DL ; then " \ Instead of adding to an ever growing list of names, would it not make sense to solve this programmatically, like by concatenating "i" + tolower($board_rev) + "-wandboard-rev" + tolower($board_name) + &

Re: [U-Boot] online wiki page for "fdt" commands full of FDT_ERR_BADMAGIC msgs

2016-07-18 Thread Wolfgang Denk
ata_%BOARD%.UBootFDTCmd* %INCLUDE files are broken. Eventually Heiko might remember where this test case was run; alternatively, someone could recreate these manually. Let's wait for comment from Heiko when he's back from vacation in a week. Best regards, Wolfgang Denk -- DENX Softwa

Re: [U-Boot] more "#if 0" pedantry related to moving macros in header files

2016-07-18 Thread Wolfgang Denk
the end, only a tiny percentage of this will be used. We never tried to clean up such files to include only used defines [which is probably a bad idea anyway, as the next driver might need just the defines you remove now.] Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Manag

Re: [U-Boot] what is with the "#if 0"ed part of ARP hdr in include/net.h?

2016-07-18 Thread Wolfgang Denk
e using "#if 0" was deemed to be easier to forward-port to new versions of the code than deleting the whole block, where any changes in this (uninteresting) code would cause conflicts. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk H

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

2016-07-18 Thread Wolfgang Denk
least in some default installations issues a set of AT modem commands when connecting to a serial line, which have caused funny effects with U-Boot here and there... Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office:

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

2016-07-18 Thread Wolfgang Denk
attach to terminal servers in the same way as to regular serial ports, which gives a single tool and a common interface to all kinds of connections. That's _nice_.] Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office

Re: [U-Boot] does u-boot automatically determine valid command abbreviations?

2016-07-14 Thread Wolfgang Denk
were scripts. The word was fine again. You guess what happened? Right - then the command "setexpr" was added, and again "sete" was no longer unique. Moral of the stroy: use "env set" ;-) Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Mana

Re: [U-Boot] [ANN] U-Boot v2016.07 is released

2016-07-11 Thread Wolfgang Denk
17 (12.4%) Xilinx 14 (10.2%) DENX Software Engineering4 (2.9%) Linaro 3 (2.2%) Novell 2 (1.5%) Samsung 2 (1.5%) Debian.org 2 (1.5%) Red Hat 1 (0.7%) ... Bes

Re: [U-Boot] what are valid formats for initrd image downloaded and used by "bootm"

2016-07-08 Thread Wolfgang Denk
more complicated initially, but they are also much more flexible and allow for things like signed / encrypted images and such... Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Ge

Re: [U-Boot] what are valid formats for initrd image downloaded and used by "bootm"

2016-07-08 Thread Wolfgang Denk
ARCH} -O linux -T ramdisk -C $2 -n ${IMAGE_NAME} \ -d ${DEPLOY_DIR_IMAGE}/$1 ${DEPLOY_DIR_IMAGE}/$1.u-boot if [ x$3 = x"clean" ]; then rm $1 fi } This would indeed mean that ".u-boot" is, from U-Boot's point of view, a ramdisk image wrapped

Re: [U-Boot] Brotli Compression to Fit Image/bzImage

2016-07-08 Thread Wolfgang Denk
Dear Vinoth, In message you wrote: > > Where can I check the heap configuration in U-Boot?? The REAME says: - CONFIG_SYS_MALLOC_LEN: Size of DRAM reserved for malloc() use. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Ma

Re: [U-Boot] what are valid formats for initrd image downloaded and used by "bootm"

2016-07-08 Thread Wolfgang Denk
f > different image types. thanks. "bootm" understands botht he (deprecated) legacy uImage format, plus of course the (preferred) FIT images. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5,

Re: [U-Boot] where *precisely* is u-boot's environment stored?

2016-07-06 Thread Wolfgang Denk
;From the console output it is trivial - you will see Warning: Bad CRC, using default environment Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-

<    3   4   5   6   7   8   9   10   11   12   >