Skip to contentSkip to conversation

Problem running Linux 2.6.11 on MPC8272ADS

DISCUSSION Mike Rapoport 3 participants 4 messages Mar 27, 2005 – Mar 28, 2005

lore
Share & tools
lore
#0 lore raw

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:

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.

Signature · 9 lines
Sincerely Yours,
Mike Rapoport
-----------------------------------------------------------------
CompuLab Ltd.
MALAT Bldg., Technion, Haifa, ISRAEL
Mailing address: P.O. Box 66, Nesher 36770, ISRAEL
Tel: 972-4-8290146
Fax: 972-4-8325251
Web: http://www.compulab.co.il
#1 lore raw

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 13 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:

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.

#2 lore raw

A patch to make this work properly would be appreciated.

- kumar

Quoted 5 lines · Walter L. Wimer III

Hi Mike,

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

arch/ppc/platforms/pq2ads.c

Quoted 7 lines

contains the following function:

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

~BCSR1_RS232_EN2;

Quoted 5 lines

=A0 }

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

the

Quoted 6 lines

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

is
using, and that area of memory isn't properly mapped into the kernel address space this early in the boot sequence.=A0 As a result, I was getting an Oops() before the console was even enabled (I could see =

the

Quoted 8 lines

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

Good luck,

Quoted 10 lines

Walt Wimer
TimeSys Corporation

Quoted 2 lines · Mike Rapoport

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

to

Quoted 17 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 right=20

after

Quoted 2 lines

the kernel decompression.

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

#3 lore raw

I'll submit one once I get everything else working on this board that I need.... :-)

Walt

Quoted 64 lines · Kumar Gala

A patch to make this work properly would be appreciated.

- kumar

Quoted 57 lines · Walter L. Wimer III

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 11 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:

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

Quoted 2 lines

the kernel decompression.

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