Re: [U-Boot] [RFC] ARM timing code refactoring

2011-01-23 Thread Reinhard Meyer
Dear all, its quite funny to see how we go around in circles here, this proposal of Albert now is quite close to my original proposal. Only that I factored the ms_to_ticks AND the comparison into the timer calls: u64 timer_setup(u32 timeout_in_ms) { return get_ticks() + ms_to_ticks(timeou

[U-Boot] [PATCH v4 3/3] armv7: add support for s5pc210 universal board

2011-01-23 Thread Minkyu Kang
This patch adds support for Samsung s5pc210 universal board Signed-off-by: Minkyu Kang Signed-off-by: Kyungmin Park --- v4 use get_ram_size function fix the sp address v3 remove config.mk don't add board to MAKEALL v2 remove debug message MAINTAINERS |

[U-Boot] [PATCH v4 2/3] armv7: add support for S5PC210 SoC

2011-01-23 Thread Minkyu Kang
S5PC210 is a 32-bit RISC and Cortex-A9 Dual Core based micro-processor. Signed-off-by: Minkyu Kang Signed-off-by: Kyungmin Park --- v4 use inline function instead of static value v3 support EVT1 cpu_id v2 fix typo: RSIC -> RISC, Coretex -> Cortex arch/arm/cpu/armv7/s5pc2xx/Makefile

[U-Boot] [PATCH v4 1/3] S5P: serial: Use the inline function instead of static value

2011-01-23 Thread Minkyu Kang
Signed-off-by: Minkyu Kang --- arch/arm/include/asm/arch-s5pc1xx/uart.h |5 - drivers/serial/serial_s5p.c |2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/arch/arm/include/asm/arch-s5pc1xx/uart.h b/arch/arm/include/asm/arch-s5pc1xx/uart.h index f6eea

Re: [U-Boot] [RFC] ARM timing code refactoring

2011-01-23 Thread Albert ARIBAUD
Le 24/01/2011 02:42, J. William Campbell a écrit : > Hi All, > In order to avoid doing 64 bit math, we can define a "jiffie" > or a "bogo_ms" that is the 64 bit timebase shifted right such that the > lsb of the bottom 32 bits has a resolution of between 0.5 ms and 1 ms. > It is then po

Re: [U-Boot] [PATCH v3] arm926ejs: timer: Replace bss variable by gdr

2011-01-23 Thread Heiko Schocher
Hello Alexander, Alexander Holler wrote: > Am 22.01.2011 08:46, schrieb Albert ARIBAUD: >> Le 22/01/2011 06:39, Alexander Holler a écrit : >>> Hello, >>> >>> Am 21.01.2011 09:56, schrieb Heiko Schocher: >>> -static ulong timestamp; -static ulong lastdec; +DECLARE_GLOBAL_DATA_PTR; >>

[U-Boot] [PATCH v8] mpq101: initial support for Mercury Computer Systems MPQ101 board

2011-01-23 Thread Alex Dubov
Mpq101 is a RapidIO development board in AMC form factor, featuring MPC8548 processor, 512MB of hardwired DDR2 RAM, 128MB of hardwired NAND flash memory, real time clock and additional serial EEPROM on i2c bus (enabled). USB controller is available, but not presently enabled. Additional board info

Re: [U-Boot] [PATCH 3/8 v2] Introduce the Tertiary Program loader

2011-01-23 Thread Haiying Wang
On Sat, 2011-01-22 at 23:04 +0100, Wolfgang Denk wrote: > > diff --git a/Makefile b/Makefile > > index 87a383d..94af465 100644 > > --- a/Makefile > > +++ b/Makefile > > @@ -290,6 +290,10 @@ LDPPFLAGS += \ > > $(shell $(LD) --version | \ > > sed -ne 's/GNU ld version > > \([0-9][0-9]*\)\.

Re: [U-Boot] [PATCH 4/8 v2] powerpc/85xx: add TPL_BOOT support

2011-01-23 Thread Haiying Wang
On Sat, 2011-01-22 at 23:12 +0100, Wolfgang Denk wrote: > You should not undo a previous copyright. I guess you mean: > > Copyright 2009-2010 Freescale Semiconductor, Inc. > > ? Yes. Sorry about it. > > +DECLARE_GLOBAL_DATA_PTR; > > Please move this up to top of file. OK. > > +unsigned lon

Re: [U-Boot] [PATCH] net: ne2000: Add spport RTL-8019AS

2011-01-23 Thread Nobuhiro Iwamatsu
Dear Wolfgang Denk. Please apply this patch. Best regards, Nobuhiro 2010/10/26 Nobuhiro Iwamatsu : > Add infomation of RTL-8016AS to hw_info. > > Signed-off-by: Nobuhiro Iwamatsu > CC: Ben Warren > --- >  drivers/net/ne2000.c |    3 ++- >  1 files changed, 2 insertions(+), 1 deletions(-) > >

Re: [U-Boot] [RFC] ARM timing code refactoring

2011-01-23 Thread J. William Campbell
On 1/23/2011 2:57 PM, Wolfgang Denk wrote: > Dear Reinhard Meyer, > > In message<4d3c9bfc.1010...@emk-elektronik.de> you wrote: get_timer() returns a monotonous upward counting time stamp with a resolution of milliseconds. After reaching ULONG_MAX the timer wraps around to 0. >> Exa

Re: [U-Boot] A question in lowlevel_init.S

2011-01-23 Thread krrish53
Hi Albert, Thanks for your response. Albert ARIBAUD wrote: > > Hi Vamsi, > Thanks for your response. Sorry for not mentioning the file name. its here > uboot/arch/arm/cpu/arm920t/at91rm9200/lowlevel_init.S and also in > uboot/board/samsung/smdk2410/lowlevel_init.S. My doubt is that as of now >

Re: [U-Boot] [PATCH] Top config.mk: add include/config.mk

2011-01-23 Thread Joakim Tjernlund
Wolfgang Denk wrote on 2011/01/23 23:50:03: > Dear Joakim Tjernlund, > > In message > you > wrote: > > > > > What is the exact problem you are trying to fix? Do you have a test > > > case? > > > > Example from my board/config.mk, I have: > > ifeq ($(SUBBOARD),cu) > > LUMENTIS_CPPFLAGS=-DCONF

Re: [U-Boot] [RFC] ARM timing code refactoring

2011-01-23 Thread Wolfgang Denk
Dear Reinhard Meyer, In message <4d3c9bfc.1010...@emk-elektronik.de> you wrote: > > >> get_timer() returns a monotonous upward counting time stamp with a > >> resolution of milliseconds. After reaching ULONG_MAX the timer wraps > >> around to 0. > > Exactly that wrap makes the situation so compli

Re: [U-Boot] [PATCH] Top config.mk: add include/config.mk

2011-01-23 Thread Wolfgang Denk
Dear Joakim Tjernlund, In message you wrote: > > > What is the exact problem you are trying to fix? Do you have a test > > case? > > Example from my board/config.mk, I have: > ifeq ($(SUBBOARD),cu) > LUMENTIS_CPPFLAGS=-DCONFIG_IDENT_STRING=\"\\nCBX-0001A:cuboot02a:p1a:99\" > else > LUMENT

Re: [U-Boot] [RFC] IP allocation from local net

2011-01-23 Thread Wolfgang Denk
Dear g_remlin, In message <4d3c8c41.1020...@rocketmail.com> you wrote: > There is a technique often used with embedded devices for allocation of > an IP. Often used? Come on. Most people use standard protocls instead of such qick and dirty hacks. > This will require substantial effort to imple

Re: [U-Boot] [PATCH 05/13] sh: Remove config.mk for rsk7203 board

2011-01-23 Thread Nobuhiro Iwamatsu
Hi, 2011/1/17 Fabio Giovagnini : > I'm working on a rsk7203 derived board. > I do not have a eth interface. > How can I upgrade the kernel using uboot and the serial line? You use minicom and may put an u-boot image to memory. > When I finish can I send the support for my board? > Sure. There a

[U-Boot] You Have Won

2011-01-23 Thread Mrs . Larisa Саша
Ref: XYL /58302/460037/2011 Batch: 07/02119/I4C This is to inform you that you have been selected for a cash prize of $1,000,000.00 US, 2011 in the Head Quarters in Nigeria. The selection process was carried out through random selection in Our computerized email selection system from a da

[U-Boot] Poor ext2 performance (was USB storage performance EHCI question)

2011-01-23 Thread Aaron Williams
I traced down the poor performance I was seeing with USB to only the ext2 filesystem. With FAT32 I am getting 10MB/sec for file transfers, but with ext2 I am only getting 100KB/sec. I formatted the drive with: mkfs.ext3 -j -L iomega -O dir_index,has_journal,large_file -t ext3 -v /dev/sdc1 mke2f

Re: [U-Boot] [RFC] ARM timing code refactoring

2011-01-23 Thread Reinhard Meyer
On 23.01.2011 22:22, Reinhard Meyer wrote: > On 23.01.2011 21:59, Albert ARIBAUD wrote: >> Le 23/01/2011 20:35, Wolfgang Denk a écrit : >> >>> At the moment I would suggest to change the existing interface like >>> that: >>> >>> * Drop the set_timer() function. >>> >>> * Change get_timer() to take

[U-Boot] Reactivating at91sam9rl

2011-01-23 Thread uprinz
Hi! I am new in here, so first a kind 'hello' to everyone in here. I wanted to linux-ify a given board that is very similar to a AT91SAM9RL-EK. Similar but not equal as it misses the LEDs and the dataflash. But I'd like to add network later. So here is a short summary of the story how I proceede

Re: [U-Boot] [RFC] ARM timing code refactoring

2011-01-23 Thread Reinhard Meyer
On 23.01.2011 21:59, Albert ARIBAUD wrote: > Le 23/01/2011 20:35, Wolfgang Denk a écrit : > >> At the moment I would suggest to change the existing interface like >> that: >> >> * Drop the set_timer() function. >> >> * Change get_timer() to take no argument, i. e.: >> >> unsigned long get_timer(voi

Re: [U-Boot] [RFC] ARM timing code refactoring

2011-01-23 Thread Albert ARIBAUD
Le 23/01/2011 20:35, Wolfgang Denk a écrit : > At the moment I would suggest to change the existing interface like > that: > > * Drop the set_timer() function. > > * Change get_timer() to take no argument, i. e.: > > unsigned long get_timer(void); > >get_timer() returns a monotonous upwa

Re: [U-Boot] [PATCH] Top config.mk: add include/config.mk

2011-01-23 Thread Joakim Tjernlund
Wolfgang Denk wrote on 2011/01/23 20:35:48: > > Dear Joakim Tjernlund, > > In message > you > wrote: > > > > > > > > Seems to that the top level config.mk should include > > > the auto generated include/config.mk so that all Makefile's > > > pickup those definitions. > > > > > > Signed-off-by:

[U-Boot] [RFC] IP allocation from local net

2011-01-23 Thread g_remlin
There is a technique often used with embedded devices for allocation of an IP. Basically, if the network interface has no current IP every received packet is examined (when the destination MAC Address matches that of the device), the destination IP is checked. If this IP is a valid node IP (i.e.

Re: [U-Boot] [PATCH] Top config.mk: add include/config.mk

2011-01-23 Thread Wolfgang Denk
Dear Joakim Tjernlund, In message you wrote: > > > > > Seems to that the top level config.mk should include > > the auto generated include/config.mk so that all Makefile's > > pickup those definitions. > > > > Signed-off-by: Joakim Tjernlund > > --- > > config.mk |1 + > > 1 files change

Re: [U-Boot] [RFC] ARM timing code refactoring

2011-01-23 Thread Wolfgang Denk
Dear Reinhard Meyer, In message <4d3c77bc.50...@emk-elektronik.de> you wrote: > > >> u32 timeout = timeout_init(100); /* 100ms timeout */ > >> > >> do {...} while (!timed_out(timeout)); > > > > I dislike this approach. I immediately fear the same problem I just > > saw (incorrectly) in Albert's pr

Re: [U-Boot] [PATCH] Top config.mk: add include/config.mk

2011-01-23 Thread Joakim Tjernlund
> > Seems to that the top level config.mk should include > the auto generated include/config.mk so that all Makefile's > pickup those definitions. > > Signed-off-by: Joakim Tjernlund > --- > config.mk |1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > > diff --git a/config.mk b/confi

Re: [U-Boot] [RFC] ARM timing code refactoring

2011-01-23 Thread Reinhard Meyer
Dear Wolfgang Denk, > Dear Reinhard Meyer, > > In message<4d3c0271.4070...@emk-elektronik.de> you wrote: >> >> There were several suggestions about that in the past (including from me) >> that involve rework everywhere HZ related timeouts are used. I still >> prefer a method as follows (because it

Re: [U-Boot] A question in lowlevel_init.S

2011-01-23 Thread Ulf Samuelsson
2011-01-22 11:19, Reinhard Meyer skrev: > Dear Eric Bénard wrote: >> Hi, >> >> On 22/01/2011 08:39, Reinhard Meyer wrote: >>> I am not aware of any > ADD: working >>> AT91SAM9xxx systems right now that uses low-level init, it >>> would only make sense for those that boot directly from NOR, without

Re: [U-Boot] [GIT PULL] Please pull u-boot-mpc85xx.git

2011-01-23 Thread Kumar Gala
On Jan 20, 2011, at 2:00 AM, Kumar Gala wrote: > > On Jan 19, 2011, at 11:01 PM, Kumar Gala wrote: > >> The following changes since commit e1ccf97c5d7651664d37c0c5aa243874b8851b2d: >> >> Merge branch 'master' of git://git.denx.de/u-boot-mpc85xx (2011-01-17 >> 20:31:46 +0100) >> >> are availa

Re: [U-Boot] [PATCH] MX5: Reuse the gd->tbl value for timestamp and add gd->lastinc for lastinc bss

2011-01-23 Thread Stefano Babic
On 01/23/2011 05:28 PM, Wolfgang Denk wrote: > Why do we need these parens? Checkpatch raises warnings without them. Best regards, Stefano Babic -- = DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 16

Re: [U-Boot] [PATCH] MX5: Reuse the gd->tbl value for timestamp and add gd->lastinc for lastinc bss

2011-01-23 Thread Wolfgang Denk
Dear Stefano Babic, In message <1295798910-20382-1-git-send-email-sba...@denx.de> you wrote: > The usage of bss values in drivers before initialisation of bss is forbidden. > In that special case some data in .rel.dyn gets corrupted. > > This patch is the same as recently applied for arm926js arc

Re: [U-Boot] link error with uboot-2010-12

2011-01-23 Thread Wolfgang Denk
Dear xiao jizhong, In message you wrote: ... >I am trying porting the latest uboot (u-boot-2010.12.tar.bz2) to my > arm board.When coming to the link stage,I got a strange link > error,following is the output, ... > arm-linux-ld: cannot open cpu/sep4020/start.o: No such file or directory > m

Re: [U-Boot] [RFC] ARM timing code refactoring

2011-01-23 Thread Wolfgang Denk
Dear Reinhard Meyer, In message <4d3c0271.4070...@emk-elektronik.de> you wrote: > > There were several suggestions about that in the past (including from me) > that involve rework everywhere HZ related timeouts are used. I still > prefer a method as follows (because it does not need repeated mul/d

Re: [U-Boot] [RFC] ARM timing code refactoring

2011-01-23 Thread Wolfgang Denk
Dear Albert ARIBAUD, In message <4d3b568d.3080...@free.fr> you wrote: > > > You see the problem? > > Actually no, I don't. As a reminder, I am considering the following > definitions: > > #define time(n) (ticks-n) > #define ms_to_ticks(ms) (ms * fast_tick_rate) / CONFIG_SYS_HZ Ah,

[U-Boot] [PATCH] MX5: Reuse the gd->tbl value for timestamp and add gd->lastinc for lastinc bss

2011-01-23 Thread Stefano Babic
The usage of bss values in drivers before initialisation of bss is forbidden. In that special case some data in .rel.dyn gets corrupted. This patch is the same as recently applied for arm926js architecture. Signed-off-by: Stefano Babic CC: Heiko Schocher --- arch/arm/cpu/armv7/mx5/timer.c |

[U-Boot] link error with uboot-2010-12

2011-01-23 Thread xiao jizhong
Hi all: I am trying porting the latest uboot (u-boot-2010.12.tar.bz2) to my arm board.When coming to the link stage,I got a strange link error,following is the output, make[1]: Leaving directory `/home/uboot/u-boot-2010.12/board/zx/BoardOne' UNDEF_SYM=`arm-linux-objdump -x board/zx/BoardOne/lib

Re: [U-Boot] Cannot access memory at address 0xd8013fa8 when using gdb/BDI3000 to debug u-boot

2011-01-23 Thread davis mcpherson
Ok, I'm updated my u-boot source code to the v2010.12 release and i'm still seeing the same behaviour as with the earlier version... in summary: early in the boot process, in the start.S file, the L1 DCache is configured for use as some initial RAM, the stack is located there, and the global

Re: [U-Boot] [RFC] ARM timing code refactoring

2011-01-23 Thread Reinhard Meyer
Dear Wolfgang Denk, > In message<4d3b5171.7090...@emk-elektronik.de> you wrote: >> >> With all this half quoting and deleting of important parts, >> my original proposal was lost again. > > This is a prettyu long running thread, and I am not exactly sure what > your original proposal actually was.

Re: [U-Boot] [RFC] ARM timing code refactoring

2011-01-23 Thread Wolfgang Denk
Dear Reinhard Meyer, In message <4d3b5171.7090...@emk-elektronik.de> you wrote: > > With all this half quoting and deleting of important parts, > my original proposal was lost again. This is a prettyu long running thread, and I am not exactly sure what your original proposal actually was. Could