Skip to contentSkip to conversation

Problem running Linux 2.6.11 on MPC8272ADS

DISCUSSION Bastos Fernandez Alexandre 3 participants 4 messages Mar 29, 2005 – Mar 30, 2005 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

Hi,

Quoted 1 line

From "linux/arch/ppc/platforms/pq2ads.h"

#define BCSR_ADDR ((uint) 0xf4500000)

Quoted 1 line

From "u-boot/include/configs/MPC8260ADS.h"

#define CFG_BCSR 0xF4500000
So ...
Which version of u-boot and/or linux tree are you using? With linuxppc-2.5 and u-boot 1.2 everything works fine for me. Maybe Mike's problem is other. Maybe not. :-)

Best regards,
Alex

Quoted 58 lines

-----Original Message-----
From: Walter L. Wimer III [SMTP:[email protected]]
Sent: Monday, March 28, 2005 6:07 PM
To: Mike Rapoport
Cc: [email protected]
Subject: Re: Problem running Linux 2.6.11 on MPC8272ADS

Hi Mike,

I had the same "hang" experience. The file arch/ppc/platforms/pq2ads.c contains the following function:

  void __init
  m82xx_board_setup(void)
  {
  	/* Enable the 2nd UART port */
  	*(volatile uint *)(BCSR_ADDR + 4) &= ~BCSR1_RS232_EN2;
  }

I had to ifdef-out the assignment statement above. It appears that the definition for BCSR_ADDR in the kernel code differs from what U-Boot is using, and that area of memory isn't properly mapped into the kernel address space this early in the boot sequence. As a result, I was getting an Oops() before the console was even enabled (I could see the Oops message by examining the kernel's printk log buffer using a BDI-2000 hardware debugger).

Good luck,

Walt Wimer
TimeSys Corporation

Quoted 5 lines · Mike Rapoport

Hi,
I'm trying to bring up the Linux 2.6.11 on MPC8272ADS and it seem to hang up at the very beginning.
I use ads8272_defconfig and then enable console on SCC:

Quoted 8 lines

CONFIG_SERIAL_CPM=y
CONFIG_SERIAL_CPM_CONSOLE=y
CONFIG_SERIAL_CPM_SCC1=y

when I boot the kernel from the u-boot the system hangs up right after the kernel decompression.

_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded

#1 lore raw

Thanks for the data points, Alex.

I'm using U-Boot 1.1.1 and vanilla kernel.org 2.6.11.4 (actually now 2.6.11.5). My BCSR_ADDR looks the same as what you've listed below, so I'd guess the difference is with U-Boot... (Another engineer here installed U-Boot on my board, from, I believe, a binary copy he got from a Freescale(?) CD... I didn't build U-Boot from source... That's something I'll need to take a look at...)

Mike, have you discovered anything further about your problem?

Walt

Quoted 72 lines · Bastos Fernandez Alexandre

Hi,

Quoted 1 line

From "linux/arch/ppc/platforms/pq2ads.h"

#define BCSR_ADDR ((uint) 0xf4500000)

Quoted 1 line

From "u-boot/include/configs/MPC8260ADS.h"

#define CFG_BCSR 0xF4500000
So ...
Which version of u-boot and/or linux tree are you using? With linuxppc-2.5 and u-boot 1.2 everything works fine for me. Maybe Mike's problem is other. Maybe not. :-)

Best regards,
Alex

Quoted 58 lines

-----Original Message-----
From: Walter L. Wimer III [SMTP:[email protected]]
Sent: Monday, March 28, 2005 6:07 PM
To: Mike Rapoport
Cc: [email protected]
Subject: Re: Problem running Linux 2.6.11 on MPC8272ADS

Hi Mike,

I had the same "hang" experience. The file arch/ppc/platforms/pq2ads.c contains the following function:

  void __init
  m82xx_board_setup(void)
  {
  	/* Enable the 2nd UART port */
  	*(volatile uint *)(BCSR_ADDR + 4) &= ~BCSR1_RS232_EN2;
  }

I had to ifdef-out the assignment statement above. It appears that the definition for BCSR_ADDR in the kernel code differs from what U-Boot is using, and that area of memory isn't properly mapped into the kernel address space this early in the boot sequence. As a result, I was getting an Oops() before the console was even enabled (I could see the Oops message by examining the kernel's printk log buffer using a BDI-2000 hardware debugger).

Good luck,

Walt Wimer
TimeSys Corporation

Quoted 5 lines · Mike Rapoport

Hi,
I'm trying to bring up the Linux 2.6.11 on MPC8272ADS and it seem to hang up at the very beginning.
I use ads8272_defconfig and then enable console on SCC:

Quoted 8 lines

CONFIG_SERIAL_CPM=y
CONFIG_SERIAL_CPM_CONSOLE=y
CONFIG_SERIAL_CPM_SCC1=y

when I boot the kernel from the u-boot the system hangs up right after the kernel decompression.

_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded

#3 lore raw
In reply to a message not in the archive

This matched my experience as well.

Does anyone know why U-Boot 1.1.1 from Freescale uses a different BCSR address than U-Boot 1.1.1 from Sourceforge?

Any opinions on which address is the "correct" one to use? Kumar asked for a patch to fix this, so what do we think the correct fix is?

Thanks!

Walt

Quoted 115 lines · Mike Rapoport

Walter,
Thanks for you help. I've discovered several things and now the things seem to work fine.
I've used u-boot-1.1.1 that came with the Freescale BSP and it maps BCSR to 0xf8000000. The "regular" u-boot-1.1.1 (from sf.net) maps the BCSR to 0xf4500000 as well as the kernel does (arch/ppc/platforms/pq2ads.h). The difference causes the "hang"-like behaviour when the kernel initializes serial comm and kernel crash afterwards when FCC is initialized.

Mike.

Quoted 103 lines

Thanks for the data points, Alex.

I'm using U-Boot 1.1.1 and vanilla kernel.org 2.6.11.4 (actually now 2.6.11.5). My BCSR_ADDR looks the same as what you've listed below, so I'd guess the difference is with U-Boot... (Another engineer here installed U-Boot on my board, from, I believe, a binary copy he got from a Freescale(?) CD... I didn't build U-Boot from source... That's something I'll need to take a look at...)

Mike, have you discovered anything further about your problem?

Walt

Quoted 79 lines · Bastos Fernandez Alexandre

Hi,

Quoted 1 line

From "linux/arch/ppc/platforms/pq2ads.h"

#define BCSR_ADDR ((uint) 0xf4500000)

Quoted 1 line

From "u-boot/include/configs/MPC8260ADS.h"

#define CFG_BCSR 0xF4500000
So ...
Which version of u-boot and/or linux tree are you using? With linuxppc-2.5 and u-boot 1.2 everything works fine for me. Maybe Mike's problem is other. Maybe not. :-)

Best regards,
Alex

Quoted 63 lines

-----Original Message-----
From: Walter L. Wimer III [SMTP:[email protected]]
Sent: Monday, March 28, 2005 6:07 PM
To: Mike Rapoport
Cc: [email protected]
Subject: Re: Problem running Linux 2.6.11 on MPC8272ADS

Hi Mike,

I had the same "hang" experience. The file arch/ppc/platforms/pq2ads.c contains the following function:

void __init
m82xx_board_setup(void)
{

(quoted diff) +0 -0
 	/* Enable the 2nd UART port */
 	*(volatile uint *)(BCSR_ADDR + 4) &= ~BCSR1_RS232_EN2;
 }

I had to ifdef-out the assignment statement above. It appears that the definition for BCSR_ADDR in the kernel code differs from what U-Boot is using, and that area of memory isn't properly mapped into the kernel address space this early in the boot sequence. As a result, I was getting an Oops() before the console was even enabled (I could see the Oops message by examining the kernel's printk log buffer using a BDI-2000 hardware debugger).

Good luck,

Walt Wimer
TimeSys Corporation

Quoted 5 lines · Mike Rapoport

Hi,
I'm trying to bring up the Linux 2.6.11 on MPC8272ADS and it seem to hang up at the very beginning.
I use ads8272_defconfig and then enable console on SCC:

Quoted 10 lines

CONFIG_SERIAL_CPM=y
CONFIG_SERIAL_CPM_CONSOLE=y
CONFIG_SERIAL_CPM_SCC1=y

when I boot the kernel from the u-boot the system hangs up right after the kernel decompression.

_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded

#4 lore raw

Also,

If you guys come to some conclusion about a fix we can make to the=20 boards that would improve functionality, I'll try to get that back to=20 the board guys to look at implementing for future revs.

- kumar

Quoted 8 lines · Walter L. Wimer III

This matched my experience as well.

Does anyone know why U-Boot 1.1.1 from Freescale uses a different BCSR address than U-Boot 1.1.1 from Sourceforge?

Any opinions on which address is the "correct" one to use?=A0 Kumar =

asked

Quoted 31 lines

for a patch to fix this, so what do we think the correct fix is?

Thanks!

Walt

Quoted 2 lines · Mike Rapoport

Walter,
Thanks for you help. I've discovered several things and now the=20

things

Quoted 2 lines

seem to work fine.
I've used u-boot-1.1.1 that came with the Freescale BSP and it maps=20=

BCSR

Quoted 1 line

to 0xf8000000. The "regular" u-boot-1.1.1 (from sf.net) maps the=20

BCSR to

Quoted 1 line

0xf4500000 as well as the kernel does (arch/ppc/platforms/pq2ads.h).=20=

The

Quoted 1 line

difference causes the "hang"-like behaviour when the kernel=20

initializes

Quoted 4 lines

serial comm and kernel crash afterwards when FCC is initialized.

Mike.

Quoted 8 lines
Quoted 3 lines
Quoted 3 lines

Thanks for the data points, Alex.

I'm using U-Boot 1.1.1 and vanilla kernel.org 2.6.11.4 (actually=20=

now

Quoted 1 line
Quoted 1 line

2.6.11.5).=A0 My BCSR_ADDR looks the same as what you've listed=20

below, so

Quoted 1 line
Quoted 1 line

I'd guess the difference is with U-Boot...=A0 (Another engineer =

here

Quoted 3 lines
Quoted 1 line
Quoted 1 line

installed U-Boot on my board, from, I believe, a binary copy he=20

got from

Quoted 1 line
Quoted 1 line

a Freescale(?) CD...=A0 I didn't build U-Boot from source...=A0 =

That's

Quoted 25 lines
Quoted 11 lines
Quoted 11 lines

something I'll need to take a look at...)

Mike, have you discovered anything further about your problem?

Walt

On Tue, 2005-03-29 at 08:29 +0200, Bastos Fernandez Alexandre=20

Quoted 13 lines · wrote:
Quoted 13 lines

=A0

Quoted 11 lines

Hi,

Quoted 1 line

=46rom "linux/arch/ppc/platforms/pq2ads.h"

#define BCSR_ADDR ((uint) 0xf4500000)

Quoted 1 line

=46rom "u-boot/include/configs/MPC8260ADS.h"

#define CFG_BCSR 0xF4500000
So ...
Which version of u-boot and/or linux tree are you using? With linuxppc-2.5 and u-boot 1.2 everything works fine for me. Maybe Mike's problem is other. Maybe not. :-)

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

Best regards,
Alex

=A0=A0=A0

Quoted 2 lines

-----Original Message-----
From:=A0=A0=A0=A0=A0 Walter L. Wimer III =

[SMTP:[email protected]]

Quoted 82 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

Sent:=A0=A0=A0=A0=A0 Monday, March 28, 2005 6:07 PM To:=A0=A0=A0=A0=A0=A0=A0 Mike Rapoport Cc:=A0=A0=A0=A0=A0=A0=A0 [email protected] Subject:=A0=A0 Re: Problem running Linux 2.6.11 on MPC8272ADS

Hi Mike,

I had the same "hang" experience.=A0 The file=20

arch/ppc/platforms/pq2ads.c

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

contains the following function:

=A0 void __init
=A0 m82xx_board_setup(void)
=A0 {
=A0=A0 /* Enable the 2nd UART port */
=A0=A0 *(volatile uint *)(BCSR_ADDR + 4) &=3D ~BCSR1_RS232_EN2; =A0 }

I had to ifdef-out the assignment statement above.=A0 It appears=20=

that the

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

definition for BCSR_ADDR in the kernel code differs from what=20

U-Boot is

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

using, and that area of memory isn't properly mapped into the=20

kernel

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

address space this early in the boot sequence.=A0 As a result, I=20=

was

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

getting an Oops() before the console was even enabled (I could=20=

see the

Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines

Oops message by examining the kernel's printk log buffer using a BDI-2000 hardware debugger).

Good luck,

Walt Wimer
TimeSys Corporation

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines · Mike Rapoport

=A0=A0=A0=A0=A0

Quoted 2 lines

Hi,
I'm trying to bring up the Linux 2.6.11 on MPC8272ADS and it=20

seem to

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

hang up at the very beginning.
I use ads8272_defconfig and then enable console on SCC:

CONFIG_SERIAL_CPM=3Dy
CONFIG_SERIAL_CPM_CONSOLE=3Dy
CONFIG_SERIAL_CPM_SCC1=3Dy

when I boot the kernel from the u-boot the system hangs up=20

right after

Quoted 12 lines
Quoted 12 lines
Quoted 10 lines
Quoted 10 lines
Quoted 4 lines

the kernel decompression.

=A0=A0=A0=A0=A0=A0=A0

_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded
=A0=A0=A0=A0=A0

Quoted 3 lines
Quoted 2 lines

=A0

_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded