Skip to contentSkip to conversation

U-boot-1.1.4 on MPC8540

U-Boot-Users revathy 3 participants 6 messages Nov 23, 2006 – Nov 27, 2006

lore
Share & tools
lore

revathy

author
#0 lore raw

Hi all,

I'm booting a newly compiled u-boot-1.1.4 image on my MPC8540, and it doesn't work. It hangs after this..
**************************************
U-Boot 1.1.4 (Nov 23 2006 - 10:34:07)

Freescale PowerPC

    Core: E500, Version: 2.0, (0x80200020)
CPU:   8540, Version: 2.0, (0x80300020)
Clock Configuration:
       CPU: 825 MHz, CCB: 330 MHz,
       DDR: 165 MHz, LBC:  82 MHz
L1:    D-cache 32 kB enabled
       I-cache 32 kB enabled

        CPU: 825 MHz
        CCB: 330 MHz
        DDR: 165 MHz
        LBC: 82 MHz
L1 D-cache 32KB, L1 I-cache 32KB enabled.
I2C:   ready
DRAM:  256 MB

PCIG8400 in PCI Host Mode.
PCIG8400 not PCI Arbiter.
********************************************
I've carefully copied every setup from the u-boot-1.1.2 image which I've made.
Now, how do I debug this,any help is greatly appreciated.

Thanks in advance.
Revathy

author
#1 lore raw
Quoted 23 lines

Hi all,

I'm booting a newly compiled u-boot-1.1.4 image on my MPC8540, and it doesn't work. It hangs after this..
**************************************
U-Boot 1.1.4 (Nov 23 2006 - 10:34:07)

Freescale PowerPC
Core: E500, Version: 2.0, (0x80200020)
CPU: 8540, Version: 2.0, (0x80300020)
Clock Configuration:

      CPU: 825 MHz, CCB: 330 MHz,
      DDR: 165 MHz, LBC:  82 MHz
L1:    D-cache 32 kB enabled
      I-cache 32 kB enabled

       CPU: 825 MHz
       CCB: 330 MHz
       DDR: 165 MHz
       LBC: 82 MHz
L1 D-cache 32KB, L1 I-cache 32KB enabled.
I2C:   ready
DRAM:  256 MB
Quoted 6 lines

PCIG8400 in PCI Host Mode.
PCIG8400 not PCI Arbiter.
********************************************
I've carefully copied every setup from the u-boot-1.1.2 image which I've made.
Now, how do I debug this.

On debugging , " In relocating the command table", *for* loop is going on infinite loop in lib/ppc/board.c.
Can anyone help in this.

Quoted 4 lines

Thanks in advance.
Revathy

#2 lore raw
Quoted 3 lines · In message <[email protected]> you wrote:
Quoted 3 lines

I'm booting a newly compiled u-boot-1.1.4 image on my MPC8540, and it doesn't work. It hangs after this..

...

Quoted 2 lines

On debugging , " In relocating the command table", *for* loop is going on infinite loop in lib/ppc/board.c.

Please use current code. It makes little sense to hunt down problems with such old code.

Best regards,

Wolfgang Denk

Signature · 3 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"It is easier to port a shell than a shell script."      - Larry Wall
author
#3 lore raw

Hi,

I'm booting a newly compiled u-boot-1.1.4 image on my MPC8540, and it doesn't work. when i debugged i found in lib_ppc/board.c

	for (cmdtp = &__u_boot_cmd_start; cmdtp !=  &__u_boot_cmd_end; cmdtp++)

&__u_boot_cmd_start=0fff3750

&__u_boot_cmd_end =0fff43b8
and cmdtp is encremanted as 0x18 each
times..but it is not matching with u_boot_cmd_end so loop goes on until ffffffff and hangs..
what could be the problem..
can anyone plz help me to proceed..
Thanks
Revathy

Quoted 24 lines · Wolfgang Denk
Quoted 4 lines · In message <[email protected]> you wrote:
Quoted 4 lines

I'm booting a newly compiled u-boot-1.1.4 image on my MPC8540, and it doesn't work. It hangs after this..

...

Quoted 4 lines

On debugging , " In relocating the command table", *for* loop is going on infinite loop in lib/ppc/board.c.

Please use current code. It makes little sense to hunt down problems with such old code.

Best regards,

Wolfgang Denk

#4 lore raw
Quoted 3 lines · In message <[email protected]> you wrote:

I'm booting a newly compiled u-boot-1.1.4 image on my MPC8540, and it doesn't work. when i debugged i found in lib_ppc/board.c

...

Quoted 1 line

can anyone plz help me to proceed..

I already told you what to do, and I hereby repeat it once more. Note that I won't repeat it again:

Quoted 2 lines
Quoted 2 lines

Please use current code. It makes little sense to hunt down problems with such old code.

Please use current code, i. e. top of tree from the git repository.

Wolfgang Denk

Signature · 3 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
What is research but a blind date with knowledge?      -- Will Harvey
#5 lore raw
In reply to revathy
Quoted 10 lines · revathy

Hi,

I'm booting a newly compiled u-boot-1.1.4 image on my MPC8540, and it doesn't work. when i debugged i found in lib_ppc/board.c

	for (cmdtp = &__u_boot_cmd_start; cmdtp !=  &__u_boot_cmd_end; cmdtp++)

&__u_boot_cmd_start=0fff3750

Quoted 9 lines

&__u_boot_cmd_end =0fff43b8
and cmdtp is encremanted as 0x18 each
times..but it is not matching with u_boot_cmd_end so loop goes on until ffffffff and hangs..
what could be the problem..
can anyone plz help me to proceed..
Thanks
Revathy

I think your loader script (.lds) is not up to date to work with your toolchain (ld version 2.16 or later). See the following commit.

http://www.denx.de/cgi-bin/gitweb.cgi?p=u-boot.git;a=commit;h=807d5d7319330e336ab34a5623c5e0d73b87d540

I had similar issue when I updated the toolchain and tried to compile 1.3 based board lds script. Obviously working with latest U-Boot does not help if your board was not in public git repository when this patch got in.

Tolunay