[U-Boot] relocation problem (again)

2011-08-11 Thread Cajus Hahn
Dear Marcel, Dear Reinhard,

sorry I forgot to mention, that this is in reply to 
http://lists.denx.de/pipermail/u-boot/2011-January/084499.html

I have the same problem with my board and the actual u-boot-atmel (git
from 5th Aug. 2011). It even looks like I am using the same board.
It is a in-circuit ICnova SAM9G45 OEM on a ADB1000 with a 5 display.

Actually I use the u-boot from in-circuit, which is a patched version
basing on u-boot from 2009. I would like to upgrade this old version to
the actual u-boot version. Some time ago somebody tried to get the
in-circuit patch into the u-boot mainstream, but the patch was rejected
because of not meeting the coding rules.

Marcel, can you give me a hint what you changed to get your
configuration running ? I used the latest code for the
at91sam9m10g45ek as reference and added/changed it.

Starting the old u-boot version with patches from in-circuit:
-

Start AT91Bootstrap

U-Boot 2009.11 (Jun 18 2011 - 19:57:09)

DRAM:  128 MB
Flash:  1 MB
NAND:  256 MiB
In:serial
Out:   serial
Err:   serial
MMC:   Atmel MCI: 0
Net:   macb0
Hit any key to stop autoboot:  0
ICnova


Starting u-boot-atmel (git) from 5th Aug. 2011:


Start AT91Bootstrap

U-Boot 2011.06 (Aug 10 2011 - 20:49:32)

U-Boot code: 73F0 - 73F45494  BSS: - 73F87110
CPU: AT91SAM9G45
Crystal frequency:   12 MHz
CPU clock:  400 MHz
Master clock :  133.333 MHz
monitor len: 00087110
ramsize: 0800
TLB table at: 77ff
Top of RAM usable for U-Boot at: 77ff
Reserving 540k for U-Boot at: 77f68000
Reserving 384k for malloc() at: 77f08000
Reserving 24 Bytes for Board Info at: 77f07fe8
Reserving 144 Bytes for Global Data at: 77f07f58
New Stack Pointer is: 77f07f48
RAM Configuration:
Bank #0: 7000 128 MiB
relocation Offset is: 04068000

no more output, it seems the relocation fails.
I have a #DEBUG in lib/board.c to get the above output.

Here is my configuration:

/*
 * Configuation settings for the ICNOVA ADB1000 with SAM9G45 OEM and 5 TFT.
 *
 * See file CREDITS for list of people who contributed to this
 * project.
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation; either version 2 of
 * the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
 * MA 02111-1307 USA
 */

#ifndef __CONFIG_H
#define __CONFIG_H

#include asm/hardware.h

#define CONFIG_AT91_LEGACY
#define CONFIG_ATMEL_LEGACY /* required until (g)pio is fixed */

/* ARM asynchronous clock */
#define CONFIG_SYS_AT91_SLOW_CLOCK  32768
#define CONFIG_SYS_AT91_MAIN_CLOCK  1200 /* from 12 MHz crystal */
#define CONFIG_SYS_HZ   1000

#define CONFIG_AT91FAMILY
#define CONFIG_ARCH_CPU_INIT
#undef CONFIG_USE_IRQ   /* we don't need IRQ/FIQ stuff  */

#define CONFIG_CMDLINE_TAG  /* enable passing of ATAGs  */
#define CONFIG_SETUP_MEMORY_TAGS
#define CONFIG_INITRD_TAG
#define CONFIG_SKIP_LOWLEVEL_INIT
#define CONFIG_BOARD_EARLY_INIT_F
#define CONFIG_DISPLAY_CPUINFO

/* general purpose I/O */
#define CONFIG_ATMEL_LEGACY /* required until (g)pio is fixed */
#define CONFIG_AT91_GPIO
#define CONFIG_AT91_GPIO_PULLUP 1   /* keep pullups on peripheral pins */

/* serial console */
#define CONFIG_ATMEL_USART
#define CONFIG_USART_BASE   ATMEL_BASE_DBGU
#define CONFIG_USART_ID ATMEL_ID_SYS

/*
 * This needs to be defined for the OHCI code to work but it is defined as
 * ATMEL_ID_UHPHS in the CPU specific header files.
 */
#define ATMEL_ID_UHPATMEL_ID_UHPHS

/*
 * Specify the clock enable bit in the PMC_SCER register.
 */
#define ATMEL_PMC_UHP   AT91SAM926x_PMC_UHP

/* LCD */
#define CONFIG_LCD
#define LCD_BPP LCD_COLOR8
#define CONFIG_LCD_LOGO
#undef LCD_TEST_PATTERN
#define CONFIG_LCD_INFO
#define CONFIG_LCD_INFO_BELOW_LOGO
#define CONFIG_SYS_WHITE_ON_BLACK
#define CONFIG_ATMEL_LCD
#define CONFIG_ATMEL_LCD_RGB565
#define CONFIG_SYS_CONSOLE_IS_IN_ENV
/* board specific(not enough SRAM) */
#define CONFIG_ICNOVA_LCD_BASE  0x73E0

#define CONFIG_BOOTDELAY3

/*
 * Command line configuration.
 */
#include config_cmd_default.h
#define CONFIG_CMD_ASKENV
#define CONFIG_CMD_DHCP
#define CONFIG_CMD_USB
#define CONFIG_CMD_NAND
#define CONFIG_CMD_MTDPARTS
#define CONFIG_MTD_DEVICE
#define CONFIG_MTD_PARTITIONS

Re: [U-Boot] relocation problem (again)

2011-08-11 Thread Reinhard Meyer
Dear Cajus Hahn,
 Dear Marcel, Dear Reinhard,
 
 sorry I forgot to mention, that this is in reply to 
 http://lists.denx.de/pipermail/u-boot/2011-January/084499.html

I suppose you have not followed the steps I pointed out then?

 
 I have the same problem with my board and the actual u-boot-atmel (git
 ...

Please do not repeat the same message.

Best Regards,
Reinhard
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] relocation problem (again)

2011-08-11 Thread Detlev Zundel
Hi Reinhard,

 Dear Cajus Hahn,
 Dear Marcel, Dear Reinhard,
 
 sorry I forgot to mention, that this is in reply to 
 http://lists.denx.de/pipermail/u-boot/2011-January/084499.html

 I suppose you have not followed the steps I pointed out then?

 
 I have the same problem with my board and the actual u-boot-atmel (git
 ...

 Please do not repeat the same message.

I have to admit that I'm responsible for this repetition.  The copy of
Cajus' mail that I received missed your address in the CC header, so I
told Cajus off-list to explicitely CC you to increase chances of you
reading the mail.  Of course this misleading instruction by myself led
to confusion and the repeated message.

So I take the blame for this, sorry.
  Detlev

-- 
To summarize:  It is a well known and lamented fact  that those people who
most want to  rule people are,  ipso facto, those  least suited  to do it.
To summarize the summary: anyone who is capable of getting themselves made
President should on no account be allowed to do the job.
  -- The Hitchhikers Guide To The Galaxy
--
DENX Software Engineering GmbH,  MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: d...@denx.de
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot