[U-Boot] flash.o flash.c errors

2009-12-30 Thread 王培养
hi all, u-boot-1.3.4,which was ported to my board S3C44B0. after I make the commonds as follows: 1. make distclean  2. make B2_config 3. make then appear errors : -- flash.o flash.c In file included from flash.c:30: ../common/flash.c: In f

Re: [U-Boot] [PATCH] Make getenv_IPaddr() global

2009-12-30 Thread Dirk Behme
On 30.12.2009 22:31, Ben Warren wrote: > Hi Dirk, > > On Wed, Dec 30, 2009 at 6:36 AM, Dirk Behmewrote: > >> There are boards out there that do not have network support in >> U-Boot (CONFIG_CMD_NET not set), but they do so in Linux. This >> makes it desirable to be able to port network configuratio

Re: [U-Boot] Board is not booting after flashing U-boot and hard reset

2009-12-30 Thread prakash bedge
Hi Stefan, I am modifying the start.S code and I believe this is the basic initialization code need to bring up the board at start. If I flash my sample initialization code in flash and do hard reset then board is working, but after flashing u-boot image, board does not boot up. Even the system

Re: [U-Boot] [PATCH v2 3/3] powerpc: Add support for ram filesystems in FIT uImages

2009-12-30 Thread Peter Tyser
On Wed, 2009-12-30 at 17:01 -0700, Grant Likely wrote: > On Wed, Dec 30, 2009 at 4:39 PM, Peter Tyser wrote: > > Hi Grant, > > I put U-Boot ML on CC. > > Thinking further, I do actually have another concern, at least with > regard to the way the current patch set implements things. Is it > expec

Re: [U-Boot] [PATCH v2 3/3] powerpc: Add support for ram filesystems in FIT uImages

2009-12-30 Thread Grant Likely
On Wed, Dec 30, 2009 at 4:39 PM, Peter Tyser wrote: > Hi Grant, > I put U-Boot ML on CC. Thinking further, I do actually have another concern, at least with regard to the way the current patch set implements things. Is it expected or even "recommended" that fit images will *always* contain a .dt

Re: [U-Boot] FW: MPC8313ERDB board hangs on u-boot start up

2009-12-30 Thread Wolfgang Denk
Dear "Doug Warner", In message you wrote: > > I found that u-boot-2008.10 with default settings, and anything prior to > this version, works; u-boot-2009.01 through u-boot-2009.11 will not (hangs > up per output below). So you have two goot corner stones for running "git bisect". Please try tha

Re: [U-Boot] U-boot debug

2009-12-30 Thread Wolfgang Denk
Dear Kelven Huai, In message you wrote: > > Now we're debugging Microsys PM520 U-boot-1.2.0, and facing a huge problem, > we can NOT debug the u-boot via BDI2000. U-Boot 1.2.0 is way over two years old. Don't expect much support for such old code. Is there any reason why you do not use a curre

Re: [U-Boot] [PATCH v2 3/3] powerpc: Add support for ram filesystems in FIT uImages

2009-12-30 Thread Peter Tyser
Hi Grant, I put U-Boot ML on CC. On Wed, 2009-12-30 at 16:02 -0700, Grant Likely wrote: > On Mon, Dec 21, 2009 at 6:50 PM, Peter Tyser wrote: > > The PowerPC architecture has the ability to embed the ramdisk located > > at arch/powerpc/boot/ramdisk.image.gz into a bootable kernel image. If > > t

[U-Boot] CFI not detecting S29 flash device on 405gp board

2009-12-30 Thread ayman
I've got a custom board that was based on the walnut. I have a 2+ year old version of u-boot working on it, but we are trying to go to the newer version to match our newer hardware. The hardware is a 405gpr to spansion s29jl064. I found another board using the same flash for some hints. Here are

Re: [U-Boot] [PATCH] Make getenv_IPaddr() global

2009-12-30 Thread Ben Warren
Hi Dirk, On Wed, Dec 30, 2009 at 6:36 AM, Dirk Behme wrote: > There are boards out there that do not have network support in > U-Boot (CONFIG_CMD_NET not set), but they do so in Linux. This > makes it desirable to be able to port network configuration (like > the IP address) to the Linux kernel.

[U-Boot] FW: MPC8313ERDB board hangs on u-boot start up

2009-12-30 Thread Doug Warner
I found that u-boot-2008.10 with default settings, and anything prior to this version, works; u-boot-2009.01 through u-boot-2009.11 will not (hangs up per output below). Has anybody else run into this problem when using 2009.01 or above with the MPC8313ERDB REVB board and figured out the issue? -

[U-Boot] [PATCH] NetStar: Disable CONFIG_CMD_JFFS2

2009-12-30 Thread Ladislav Michl
Signed-off-by: Ladislav Michl --- include/configs/netstar.h |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/include/configs/netstar.h b/include/configs/netstar.h index 7bddf24..e37a378 100644 --- a/include/configs/netstar.h +++ b/include/configs/netstar.h @@ -151,7 +15

[U-Boot] [PATCH] NetStar: Remove debug junk leaked into eeprom utility

2009-12-30 Thread Ladislav Michl
Signed-off-by: Ladislav Michl --- board/netstar/eeprom.c |8 +-- board/netstar/eeprom_start.S | 190 +++--- 2 files changed, 14 insertions(+), 184 deletions(-) rewrite board/netstar/eeprom_start.S (94%) diff --git a/board/netstar/eeprom.c b/board/

[U-Boot] [PATCH] NetStar: make crcit utility more readable.

2009-12-30 Thread Ladislav Michl
Signed-off-by: Ladislav Michl --- board/netstar/crcit.c |9 + 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/board/netstar/crcit.c b/board/netstar/crcit.c index e0cea9b..0eef41a 100644 --- a/board/netstar/crcit.c +++ b/board/netstar/crcit.c @@ -56,13 +56,14 @@ static

[U-Boot] [PATCH 4/4] ppc: Make mpc83xx start.S relative.

2009-12-30 Thread Joakim Tjernlund
To use a different link address than load address, start.S must not make any absolute accesses. This makes it so. Use link_off(), if defined, to calculate the difference in load and link address. --- cpu/mpc83xx/start.S | 35 --- 1 files changed, 28 insertions(+),

[U-Boot] [PATCH 3/4] Use LINK_OFF in enviroment too

2009-12-30 Thread Joakim Tjernlund
This is the most complex change. Keep this one as a separate commit for now. --- common/env_flash.c | 65 +++ 1 files changed, 39 insertions(+), 26 deletions(-) diff --git a/common/env_flash.c b/common/env_flash.c index b860c48..64882d2 100644 ---

[U-Boot] [PATCH 2/4] Use LINK_OFF to access global data

2009-12-30 Thread Joakim Tjernlund
Accessing global data before relocation needs special handling if link address != load address. Use LINK_OFF to calculate the difference. --- common/cmd_nvedit.c |2 ++ common/console.c | 12 +--- common/env_common.c |2 +- cpu/mpc83xx/cpu.c

[U-Boot] [PATCH 1/4] ppc: Add const void *link_off(const void *addr)

2009-12-30 Thread Joakim Tjernlund
Calculates the offset between global data link address and where the data is actually loaded. Add this offset to 'addr' arg and return the result. Useful for true PIC and when relocating code to RAM. --- include/common.h |7 +++ lib_ppc/reloc.S | 21 + 2 files change

[U-Boot] [PATCH 0/4] Make u-boot true PIC for ppc

2009-12-30 Thread Joakim Tjernlund
This series adds link_off(), a function to calculate the difference between load address and link address. Using this function it is possible to make u-boot 100% PIC by wrapping global data accesses LINK_OFF() calls. Plenty of examples in the code to show how to use it. All start.S needs to be up

[U-Boot] [PATCH 3/4] ppc: remove -ffixed-r14 gcc option.

2009-12-30 Thread Joakim Tjernlund
This is no loger needed, free up r14 for general usage. --- cpu/74xx_7xx/config.mk |2 +- cpu/mpc512x/config.mk |2 +- cpu/mpc5xx/config.mk |2 +- cpu/mpc5xxx/config.mk |2 +- cpu/mpc8220/config.mk |2 +- cpu/mpc824x/config.mk |2 +- cpu/mpc8260/config.mk |2 +-

[U-Boot] [PATCH 4/4] ppc: Update README about the new GOT ptr.

2009-12-30 Thread Joakim Tjernlund
r14 is no longer used as non volatile GOT ptr. Instead the volatile r12 is used so be sure to do GET_GOT in asm code when you need to access global data. Signed-off-by: Joakim Tjernlund --- README |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/README b/README index 7

[U-Boot] [PATCH 2/4] ppc: Use r12 instead of r14 as GOT pointer.

2009-12-30 Thread Joakim Tjernlund
r14 is not supposed to be clobbered by functions. Switch to r12 and call GET_GOT when needed. This will allow u-boot to loose the -ffixed-r14 gcc option. --- cpu/74xx_7xx/start.S | 11 ++- cpu/mpc512x/start.S | 11 ++- cpu/mpc5xx/start.S | 11 ++- cpu/mpc5xxx/start

[U-Boot] [PATCH 1/4] ppc: Loose GOT access in IRQ

2009-12-30 Thread Joakim Tjernlund
Using the GOT in IRQ handlers requires r14 to be -ffixed-r14. Avoid this by relocatate transfer_to_handler too. This will allow to free up r14 later on. --- cpu/74xx_7xx/start.S | 36 +++- cpu/mpc512x/start.S | 35 +++ cpu/mpc5xx

[U-Boot] [PATCH 0/4] No GOT in IRQ and use r12 as GOT ptr

2009-12-30 Thread Joakim Tjernlund
This series removes the needs to access the GOT in IRQ handlers, then switches GOT PTR in start.S asm to use r12 instead of r14. This leads up to the removal of -ffixed-r14 gcc option for ppc This is a resend since the it seems like the series was lost Joakim Tjernlund (3): ppc: Loose GOT acces

[U-Boot] [PATCH] Make getenv_IPaddr() global

2009-12-30 Thread Dirk Behme
There are boards out there that do not have network support in U-Boot (CONFIG_CMD_NET not set), but they do so in Linux. This makes it desirable to be able to port network configuration (like the IP address) to the Linux kernel. We should not make the passing of the IP configuration to Linux depen

Re: [U-Boot] Board is not booting after flashing U-boot and hard reset

2009-12-30 Thread Vivek
- Original Message - From: "prakash bedge" To: "Stefan Roese" Cc: ; Sent: Wednesday, December 30, 2009 5:01 PM Subject: Re: [U-Boot] Board is not booting after flashing U-boot and hard reset > Hi Stefan, > > I am using PPC440GX. > I did not understood what mean by EEPROM configuratio

Re: [U-Boot] Board is not booting after flashing U-boot and hard reset

2009-12-30 Thread Stefan Roese
Hi Prakash, On Wednesday 30 December 2009 12:31:52 prakash bedge wrote: > I am using PPC440GX. > I did not understood what mean by EEPROM configuration. Do you want to say > that board is using data from EEPROM? I'm talking about the bootstrap controller of the PPC. I suggest you take a look at

Re: [U-Boot] Board is not booting after flashing U-boot and hard reset

2009-12-30 Thread prakash bedge
Hi Stefan, I am using PPC440GX. I did not understood what mean by EEPROM configuration. Do you want to say that board is using data from EEPROM? I believe I am using fix configuration as I am not calling any I2C call in bootloader code. How to check this hard reset issue. Thanks in Advance. Pra

Re: [U-Boot] u-boot doubts

2009-12-30 Thread Dennis Semakin
> Hi , > > If i enable the CONFIG_ENV_IS_EMBEDDED macro, where the environmental > variables will be stored? > Can i use saveenv command? if yes, where it will be stored? > > thanks > -chandru > > May be here, in common/env_embedded.c written /* * Generate embedded environm

[U-Boot] u-boot doubts

2009-12-30 Thread Chandra Sekar
Hi , If i enable the CONFIG_ENV_IS_EMBEDDED macro, where the environmental variables will be stored? Can i use saveenv command? if yes, where it will be stored? thanks -chandru ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/ma