Skip to contentSkip to conversation

8272ADS and Linux 2.6.12

DISCUSSION SIP COP 009 5 participants 10 messages Jul 14, 2005 – Aug 19, 2005

lore
Share & tools
lore
#0 lore raw

Hello,

We have a MPC8272 Eval Board which came with Linux 2.4 and U-boot. We wanted to move to 2.6. I downloaded the latest 2.6.12 sources and compiled the sources for this platform. The kernel is built, have run the mkimage tool, but the kernel wont boot. It just hangs after decompressing the image.

Any ideas ? Anything different that needs to be done for 2.6 ? Or any known issues ?

Thanks!
ashutosh

#1 lore raw

You may need to check the bootargs to insure that console=ttyCPM0

- kumar

Quoted 18 lines · On Jul 14, 2005, at 1:55 AM, SIP COP 009 wrote:

Hello,

We have a MPC8272 Eval Board which came with Linux 2.4 and U-boot. We wanted to move to 2.6. I downloaded the latest 2.6.12 sources and compiled the sources for this platform. The kernel is built, have run the mkimage tool, but the kernel wont boot. It just hangs after decompressing the image.

Any ideas ? Anything different that needs to be done for 2.6 ? Or any known issues ?

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

#2 lore raw

Kumar,

Thanks for u'r reply. I tried it but it does not seem to work.

Here's my uboot info...
U-Boot 1.1.1 (Oct 29 2004 - 18:28:57)

MPC8272 Reset Status: External Soft, External Hard

MPC8272 Clock Configuration
- Bus-to-Core Mult 4x, VCO Div 2, 60x Bus Freq 25-75 , Core Freq 100-300
- dfbrg 1, corecnf 0x0a, busdf 3, cpmdf 1, plldf 0, pllmf 3

 - vco_out  400000000, scc_clk  100000000, brg_clk   25000000
 - cpu_clk  400000000, cpm_clk  200000000, bus_clk  100000000

- pci_clk 66666666

CPU:   MPC8272 (HiP7 Rev 13, Mask 0.0 0K50M) at 400 MHz
Board: Motorola MPC8272ADS
DRAM:  64 MB
Now running in RAM - U-Boot at: 03fc4000
FLASH:  8 MB
In:    serial
Out:   serial
Err:   serial
Net:   FCC1 ETHERNET
Hit any key to stop autoboot:  0=20

=3D> setenv bootargs console=3DttyCPM0,115200 root=3D/dev/ram =3D> bootm fe600000
## Booting image at fe600000 ...

   Image Name:   2.6.12 for 8272
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    875845 Bytes =3D 855.3 kB

Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK

Hang here...

Anymore thots and pointers ?

Thanks!
ashutosh

Quoted 26 lines · Kumar Gala

You may need to check the bootargs to insure that console=3DttyCPM0 =20
- kumar
=20
On Jul 14, 2005, at 1:55 AM, SIP COP 009 wrote:
=20

Quoted 11 lines

Hello,

We have a MPC8272 Eval Board which came with Linux 2.4 and U-boot. We wanted to move to 2.6. I downloaded the latest 2.6.12 sources and compiled the sources for this platform. The kernel is built, have run the mkimage tool, but the kernel wont boot. It just hangs after decompressing the image.

Any ideas ? Anything different that needs to be done for 2.6 ? Or any known issues ?

Quoted 7 lines

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

=20

#3 lore raw
Quoted 11 lines

=> setenv bootargs console=ttyCPM0,115200 root=/dev/ram => bootm fe600000
## Booting image at fe600000 ...

   Image Name:   2.6.12 for 8272
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    875845 Bytes = 855.3 kB

Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK

Can you provide your kernel configuration information regarding the serial ports. Which serial port is your console port? Check the following configuration options:
CONFIG_SERIAL_CONSOLE
CONFIG_SCC_CONSOLE
CONFIG_SERIAL_CORE
CONFIG_SERIAL_CORE_CONSOLE

Another observation is that you are trying to boot with a RAM disk but you have not provided the RAM disk address to the bootm command. This is not your current problem since you don't get that far.

- Allen

#4 lore raw

It would also be beneficial if you turned on CONFIG_DEBUG_KERNEL. You will get lots more messages early in the boot.

Quoted 27 lines
Quoted 11 lines

=> setenv bootargs console=ttyCPM0,115200 root=/dev/ram => bootm fe600000
## Booting image at fe600000 ...

   Image Name:   2.6.12 for 8272
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    875845 Bytes = 855.3 kB

Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK

Can you provide your kernel configuration information regarding the serial ports. Which serial port is your console port? Check the following configuration options:
CONFIG_SERIAL_CONSOLE
CONFIG_SCC_CONSOLE
CONFIG_SERIAL_CORE
CONFIG_SERIAL_CORE_CONSOLE

Another observation is that you are trying to boot with a RAM disk but you have not provided the RAM disk address to the bootm command. This is not your current problem since you don't get that far.

- Allen

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

#5 lore raw
In reply to Allen Curtis

Here's my serial config..., also these dont show up if i just=20 run "make ads8272_defconfig". I have to explicitly go and enable the serial options.

#
# Serial drivers
#
CONFIG_SERIAL_8250=3Dy
CONFIG_SERIAL_8250_CONSOLE=3Dy
CONFIG_SERIAL_8250_NR_UARTS=3D4
# CONFIG_SERIAL_8250_EXTENDED is not set

#
# Non-8250 serial port support
#
CONFIG_SERIAL_CORE=3Dy
CONFIG_SERIAL_CORE_CONSOLE=3Dy
# CONFIG_SERIAL_CPM is not set
# CONFIG_SERIAL_JSM is not set
CONFIG_UNIX98_PTYS=3Dy
CONFIG_LEGACY_PTYS=3Dy
CONFIG_LEGACY_PTY_COUNT=3D256

Thanks!
ashutosh

Quoted 27 lines · Allen Curtis
Quoted 11 lines

=3D> setenv bootargs console=3DttyCPM0,115200 root=3D/dev/ram =3D> bootm fe600000
## Booting image at fe600000 ...

   Image Name:   2.6.12 for 8272
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    875845 Bytes =3D 855.3 kB

Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK

=20
Can you provide your kernel configuration information regarding the serial ports. Which serial port is your console port? Check the following configuration options:
CONFIG_SERIAL_CONSOLE
CONFIG_SCC_CONSOLE
CONFIG_SERIAL_CORE
CONFIG_SERIAL_CORE_CONSOLE
=20
Another observation is that you are trying to boot with a RAM disk but you have not provided the RAM disk address to the bootm command. This is not your current problem since you don't get that far. =20
- Allen
=20

#6 lore raw
Quoted 12 lines

Here's my serial config..., also these dont show up if i just run "make ads8272_defconfig". I have to explicitly go and enable the serial options.

#
# Serial drivers
#
CONFIG_SERIAL_8250=y
CONFIG_SERIAL_8250_CONSOLE=y
CONFIG_SERIAL_8250_NR_UARTS=4
# CONFIG_SERIAL_8250_EXTENDED is not set

Quoted 10 lines

#
# Non-8250 serial port support
#
CONFIG_SERIAL_CORE=y
CONFIG_SERIAL_CORE_CONSOLE=y
# CONFIG_SERIAL_CPM is not set
# CONFIG_SERIAL_JSM is not set
CONFIG_UNIX98_PTYS=y
CONFIG_LEGACY_PTYS=y
CONFIG_LEGACY_PTY_COUNT=256

Unless something has changed recently, the 8272 is configured like a 8260 and uses arch/ppc/8260_io/uart.c. CONFIG_SERIAL_CONSOLE should be defined. By default, SMC1 will be your console port. I will very later but you may want to have a look for yourself.

Regards

#7 lore raw
In reply to SIP COP 009
Quoted 11 lines · SIP COP 009 wrote:

Hello,

We have a MPC8272 Eval Board which came with Linux 2.4 and U-boot. We wanted to move to 2.6. I downloaded the latest 2.6.12 sources and compiled the sources for this platform. The kernel is built, have run the mkimage tool, but the kernel wont boot. It just hangs after decompressing the image.

Quoted 5 lines

Any ideas ? Anything different that needs to be done for 2.6 ? Or any known issues ?

If you're using the u-boot that came with MPC8272 Eval board it may happen that BCSR is mapped differently in u-boot and the kernel 2.6. That's what happened when I tried to boot linux 2.6 on MPC8272ADS. Check the value of CFG_BCSR in u-boot/include/configs/MPC8260ADS.h and BCSR_ADDR in linux/arch/ppc/platforms/pq2ads.h

Quoted 4 lines

Thanks!
ashutosh

Signature · 2 lines
Sincerely yours,
Mike 
#8 lore raw

Thanks all for the replies and help. I have the 2.6 Kernel running now. Here are few of the things that i did to make it happen:

1: make ads8272_defconfig
2: edit .config to add the follow:
CONFIG_SERIAL_CORE=3Dy
CONFIG_SERIAL_CORE_CONSOLE=3Dy
CONFIG_SERIAL_CPM=3Dy
CONFIG_SERIAL_CPM_CONSOLE=3Dy
CONFIG_SERIAL_CPM_SCC1=3Dy
CONFIG_SERIAL_CPM_SCC2=3Dy

3. In u-boot, set the bootargs to bootargs=3Droot=3D/dev/ram rw console=3DttyCPM0,115200

4.Modify the file arch/ppc/platforms/pq2ads.h,
// #define BCSR_ADDR ((uint)0xf4500000)
#define BCSR_ADDR ((uint)0xff080000)

Thanks!
ashutosh

Quoted 33 lines · Mike Rapoport

SIP COP 009 wrote:
=20

Quoted 10 lines

Hello,

We have a MPC8272 Eval Board which came with Linux 2.4 and U-boot. We wanted to move to 2.6. I downloaded the latest 2.6.12 sources and compiled the sources for this platform. The kernel is built, have run the mkimage tool, but the kernel wont boot. It just hangs after decompressing the image.

=20

Quoted 5 lines

Any ideas ? Anything different that needs to be done for 2.6 ? Or any known issues ?

If you're using the u-boot that came with MPC8272 Eval board it may happen that BCSR is mapped differently in u-boot and the kernel 2.6. That's what happened when I tried to boot linux 2.6 on MPC8272ADS. Check the value of CFG_BCSR in u-boot/include/configs/MPC8260ADS.h and BCSR_ADDR in linux/arch/ppc/platforms/pq2ads.h
=20

Quoted 4 lines

Thanks!
ashutosh

--
Sincerely yours,
Mike
=20

#9 lore raw
Quoted 11 lines · On Tue, 2005-07-19 at 10:18 -0700, SIP COP 009 wrote:

Thanks all for the replies and help. I have the 2.6 Kernel running now. Here are few of the things that i did to make it happen:

1: make ads8272_defconfig
2: edit .config to add the follow:
CONFIG_SERIAL_CORE=y
CONFIG_SERIAL_CORE_CONSOLE=y
CONFIG_SERIAL_CPM=y
CONFIG_SERIAL_CPM_CONSOLE=y
CONFIG_SERIAL_CPM_SCC1=y
CONFIG_SERIAL_CPM_SCC2=y

Are you sure it should not be SCC1 and SCC4? Can you verify SCC2 works for you?

-Matthew