2.6.24 for mpc8458amc

12 messages, 6 authors, 2008-02-25 · open the first message on its own page

2.6.24 for mpc8458amc

From: maxime louvel <hidden>
Date: 2008-02-19 11:59:03

Hi,

I am trying to make a 2.6.24 vanilla kernel boot (an work fine in a second
time) on a mpc8548amc board.
I have add the platform specific stuff from the sources of the current
kernel running on the cards.
What I have basically add is:
- a folder mpc8548amc, in the config/platform directory, which allow to
select the mpc8548amc as the supported platform
- add the following files:
  - arch/ppc/configs/mpc8548amc_defconfig
  - arch/ppc/configs/platforms/85xx/mpc_8548_amc.h and .c
- I have used the dts of an another platform (mpc8548cds) which seems quite
the same, but I haven't got any confirmation of that yet.

When I am booting the kernel image I get:

AMC=> dhcp 0x1000000 uImage.amc.2.6.24
Speed: 1000, full duplex
BOOTP broadcast 1
DHCP client bound to address 10.255.255.2
Using eTSEC0 device
TFTP from server 0.0.0.0; our IP address is 10.255.255.2; sending through
gateway 10.1.1.1
Filename 'uImage.amc.2.6.24'.
Load address: 0x1000000
Loading: #################################################################
        #################################################################
        #################################################################
        #################################################################
        #################################################################
        ###########################
done
Bytes transferred = 1802102 (1b7f76 hex)
AMC=> bootm 0x1000000
## Booting image at 01000000 ...
  Image Name:   Linux-2.6.24
  Image Type:   PowerPC Linux Kernel Image (gzip compressed)
  Data Size:    1802038 Bytes =  1.7 MB
  Load Address: 00000000
  Entry Point:  00000000
  Verifying Checksum ... OK
  Uncompressing Kernel Image ... OK

No further messages...

Does someone has an idea ?

thanks,
Maxime


-- 
Maxime Louvel
0044 7964 5555 80
43 Allen road
Whitemore reans
WV60AW Wolverhampton
United Kingdom

Re: 2.6.24 for mpc8458amc

From: <hidden>
Date: 2008-02-19 12:19:08

Hello Maxime,

if your board is still running, although you can't see the messages tha=
t
means you don't have any console. Try to set one (I think you can use a=
 SCM
of the CPM) in the kernel configuration (characters devices)  or in the=

command line (console=3D).

Anyway, if you want to be sure if the  kernel is booting up, look up th=
e
buffer where the messages are saved before the console is enabled. Find=
 the
function __log_buffer in the System.map file and throu the bootloader, =
have
a look at this address.

Ra=FAl Moreno



"maxime louvel" [off-list ref]
"maxime louvel"
Enviado por:
linuxppc-embedded-bounces+raul.moreno=3Dtelvent.abengoa.com@ozlabs.org
19/02/2008 12:59
                                                                       =
                                                
 Para:   linuxppc-embedded@ozlabs.org                                  =
                                                
                                                                       =
                                                
 cc:                                                                   =
                                                
                                                                       =
                                                
 Asunto: 2.6.24 for mpc8458amc                                         =
                                                
                                                                       =
                                                





Hi,

I am trying to make a 2.6.24 vanilla kernel boot (an work fine in a sec=
ond
time) on a mpc8548amc board.
I have add the platform specific stuff from the sources of the current
kernel running on the cards.
What I have basically add is:
- a folder mpc8548amc, in the config/platform directory, which allow to=

select the mpc8548amc as the supported platform
- add the following files:
  - arch/ppc/configs/mpc8548amc_defconfig
  - arch/ppc/configs/platforms/85xx/mpc_8548_amc.h and .c
- I have used the dts of an another platform (mpc8548cds) which seems q=
uite
the same, but I haven't got any confirmation of that yet.

When I am booting the kernel image I get:

AMC=3D> dhcp 0x1000000 uImage.amc.2.6.24
Speed: 1000, full duplex
BOOTP broadcast 1
DHCP client bound to address 10.255.255.2
Using eTSEC0 device
TFTP from server 0.0.0.0; our IP address is 10.255.255.2; sending throu=
gh
gateway 10.1.1.1
Filename 'uImage.amc.2.6.24'.
Load address: 0x1000000
Loading: ##############################
###################################
        ###############################################################=
##
        ###############################################################=
##
        ###############################################################=
##
        ###############################################################=
##
        ###########################
done
Bytes transferred =3D 1802102 (1b7f76 hex)
AMC=3D> bootm 0x1000000
## Booting image at 01000000 ...
  Image Name:   Linux-2.6.24
  Image Type:   PowerPC Linux Kernel Image (gzip compressed)
  Data Size:    1802038 Bytes =3D  1.7 MB
  Load Address: 00000000
  Entry Point:  00000000
  Verifying Checksum ... OK
  Uncompressing Kernel Image ... OK

No further messages...

Does someone has an idea ?

thanks,
Maxime


--
Maxime Louvel
0044 7964 5555 80
43 Allen road
Whitemore reans
WV60AW Wolverhampton
United Kingdom _______________________________________________
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded=

Re: 2.6.24 for mpc8458amc

From: Jon Loeliger <hidden>
Date: 2008-02-19 14:25:11

maxime louvel wrote:
Hi,

I am trying to make a 2.6.24 vanilla kernel boot (an work fine in a 
second time) on a mpc8548amc board.
I have add the platform specific stuff from the sources of the current 
kernel running on the cards.
What I have basically add is:
- a folder mpc8548amc, in the config/platform directory, which allow to 
select the mpc8548amc as the supported platform
- add the following files:
  - arch/ppc/configs/mpc8548amc_defconfig
  - arch/ppc/configs/platforms/85xx/mpc_8548_amc.h and .c
- I have used the dts of an another platform (mpc8548cds) which seems 
quite the same, but I haven't got any confirmation of that yet.
Uh, let's clear up minor confusion here.  Are you using
ARCH=ppc or ARCH=powerpc?  I'm surprised to see that there
is mention of arch/ppc/... above.  Are you sure this is an
ARCH=ppc build?  You won't need a DTS file at all then.

But if you are using a DTS file, and I suspect you should,
then this is ARCH=powerpc.
When I am booting the kernel image I get:

AMC=> dhcp 0x1000000 uImage.amc.2.6.24
Speed: 1000, full duplex
BOOTP broadcast 1
DHCP client bound to address 10.255.255.2 <http://10.255.255.2/>
Using eTSEC0 device
TFTP from server 0.0.0.0 <http://0.0.0.0/>; our IP address is 
10.255.255.2 <http://10.255.255.2/>; sending through gateway 10.1.1.1 
<http://10.1.1.1/>
Filename 'uImage.amc.2.6.24'.
Load address: 0x1000000
Loading: ##############################
###################################
        #################################################################
        #################################################################
        #################################################################
        #################################################################
        ###########################
done
Bytes transferred = 1802102 (1b7f76 hex)
AMC=> bootm 0x1000000
## Booting image at 01000000 ...
  Image Name:   Linux-2.6.24
  Image Type:   PowerPC Linux Kernel Image (gzip compressed)
  Data Size:    1802038 Bytes =  1.7 MB
  Load Address: 00000000
  Entry Point:  00000000
  Verifying Checksum ... OK
  Uncompressing Kernel Image ... OK

No further messages...

Does someone has an idea ?

thanks,
Maxime
Did you download a DTB file and use it on the bootm
command?  Nope.

This is really a FAQ failure mode.  Are you sure
you have the console set up properly?  Any chance
you can get to the __log_buf with a BDI-2000?

Thanks,
jdl

Re: 2.6.24 for mpc8458amc

From: maxime louvel <hidden>
Date: 2008-02-19 14:42:18

Thanks for your answer,

I am going to check this ppc / powerpc things.
I should use the architecture powerpc, don't I?

I'm not really sure I have understand what do you want to do with a
BDI-2000.
I access the cards through a serial line directly.

cheers,
Maxime

On Feb 19, 2008 2:24 PM, Jon Loeliger [off-list ref] wrote:
maxime louvel wrote:
quoted
Hi,

I am trying to make a 2.6.24 vanilla kernel boot (an work fine in a
second time) on a mpc8548amc board.
I have add the platform specific stuff from the sources of the current
kernel running on the cards.
What I have basically add is:
- a folder mpc8548amc, in the config/platform directory, which allow to
select the mpc8548amc as the supported platform
- add the following files:
  - arch/ppc/configs/mpc8548amc_defconfig
  - arch/ppc/configs/platforms/85xx/mpc_8548_amc.h and .c
- I have used the dts of an another platform (mpc8548cds) which seems
quite the same, but I haven't got any confirmation of that yet.
Uh, let's clear up minor confusion here.  Are you using
ARCH=ppc or ARCH=powerpc?  I'm surprised to see that there
is mention of arch/ppc/... above.  Are you sure this is an
ARCH=ppc build?  You won't need a DTS file at all then.

But if you are using a DTS file, and I suspect you should,
then this is ARCH=powerpc.
quoted
When I am booting the kernel image I get:

AMC=> dhcp 0x1000000 uImage.amc.2.6.24
Speed: 1000, full duplex
BOOTP broadcast 1
DHCP client bound to address 10.255.255.2 <http://10.255.255.2/>
Using eTSEC0 device
TFTP from server 0.0.0.0 <http://0.0.0.0/>; our IP address is
10.255.255.2 <http://10.255.255.2/>; sending through gateway 10.1.1.1
<http://10.1.1.1/>
Filename 'uImage.amc.2.6.24'.
Load address: 0x1000000
Loading: ##############################
###################################
#################################################################
quoted
#################################################################
quoted
#################################################################
quoted
#################################################################
quoted
        ###########################
done
Bytes transferred = 1802102 (1b7f76 hex)
AMC=> bootm 0x1000000
## Booting image at 01000000 ...
  Image Name:   Linux-2.6.24
  Image Type:   PowerPC Linux Kernel Image (gzip compressed)
  Data Size:    1802038 Bytes =  1.7 MB
  Load Address: 00000000
  Entry Point:  00000000
  Verifying Checksum ... OK
  Uncompressing Kernel Image ... OK

No further messages...

Does someone has an idea ?

thanks,
Maxime
Did you download a DTB file and use it on the bootm
command?  Nope.

This is really a FAQ failure mode.  Are you sure
you have the console set up properly?  Any chance
you can get to the __log_buf with a BDI-2000?

Thanks,
jdl


-- 
Maxime Louvel
0044 7964 5555 80
43 Allen road
Whitemore reans
WV60AW Wolverhampton
United Kingdom

Re: 2.6.24 for mpc8458amc

From: Jon Loeliger <hidden>
Date: 2008-02-19 14:57:21

maxime louvel wrote:
Thanks for your answer,

I am going to check this ppc / powerpc things.
I should use the architecture powerpc, don't I?
ARCH == ppc is scheduled for _removal_ from the
entire Kernel source base is just about 4 months.
Feel free to move the deck chairs around. :-)
I'm not really sure I have understand what do you want to do with a 
BDI-2000.
Perhaps, for starters, you read "Building Embedded Linux Systems"
as found here:
    http://www.oreilly.com/catalog/belinuxsys/
I access the cards through a serial line directly.
Of course.  But when you get no information there,
you might try a different interface.

jdl

Re: 2.6.24 for mpc8458amc

From: maxime louvel <hidden>
Date: 2008-02-19 16:38:58

Hi again,

this time I have tried to compile the kernel, with an embedded compiler on
the board.
here is the result...

....
  BOOTAS  arch/powerpc/boot/ps3-hvcall.o
  BOOTCC  arch/powerpc/boot/ps3.o
  BOOTCC  arch/powerpc/boot/treeboot-bamboo.o
  BOOTCC  arch/powerpc/boot/cuboot-8xx.o
  BOOTCC  arch/powerpc/boot/cuboot-pq2.o
  BOOTCC  arch/powerpc/boot/cuboot-sequoia.o
  BOOTCC  arch/powerpc/boot/treeboot-walnut.o
Assembler messages:
Error: Internal assembler error for instruction icbt
Internal error, aborting at ../../gas/config/tc-ppc.c line 1300 in
ppc_setup_opcodes
Please report this bug.
make[2]: *** [arch/powerpc/boot/treeboot-walnut.o] Error 2
make[1]: *** [uImage] Error 2
make: *** [sub-make] Error 2

any idea ?

cheers,
Maxime

On Feb 19, 2008 2:57 PM, Jon Loeliger [off-list ref] wrote:
maxime louvel wrote:
quoted
Thanks for your answer,

I am going to check this ppc / powerpc things.
I should use the architecture powerpc, don't I?
ARCH == ppc is scheduled for _removal_ from the
entire Kernel source base is just about 4 months.
Feel free to move the deck chairs around. :-)
quoted
I'm not really sure I have understand what do you want to do with a
BDI-2000.
Perhaps, for starters, you read "Building Embedded Linux Systems"
as found here:
   http://www.oreilly.com/catalog/belinuxsys/
quoted
I access the cards through a serial line directly.
Of course.  But when you get no information there,
you might try a different interface.

jdl


-- 
Maxime Louvel
0044 7964 5555 80
43 Allen road
Whitemore reans
WV60AW Wolverhampton
United Kingdom

Re: 2.6.24 for mpc8458amc

From: Scott Wood <hidden>
Date: 2008-02-19 17:52:50

maxime louvel wrote:
Hi again,

this time I have tried to compile the kernel, with an embedded compiler 
on the board.
here is the result...

....
  BOOTAS  arch/powerpc/boot/ps3-hvcall.o
  BOOTCC  arch/powerpc/boot/ps3.o
  BOOTCC  arch/powerpc/boot/treeboot-bamboo.o
  BOOTCC  arch/powerpc/boot/cuboot-8xx.o
  BOOTCC  arch/powerpc/boot/cuboot-pq2.o
  BOOTCC  arch/powerpc/boot/cuboot-sequoia.o
  BOOTCC  arch/powerpc/boot/treeboot-walnut.o
Assembler messages:
Error: Internal assembler error for instruction icbt
Internal error, aborting at ../../gas/config/tc-ppc.c line 1300 in 
ppc_setup_opcodes
Please report this bug.
make[2]: *** [arch/powerpc/boot/treeboot-walnut.o] Error 2
make[1]: *** [uImage] Error 2
make: *** [sub-make] Error 2
That's a bug in older toolchains, which is aggravated by a misguided 
policy that we build all wrapper platforms, always.  Either use a newer 
toolchain, or remove treeboot-walnut from arch/powerpc/boot/Makefile.

-Scott

Re: 2.6.24 for mpc8458amc

From: Josh Boyer <hidden>
Date: 2008-02-19 20:19:09

On Tue, 19 Feb 2008 11:53:02 -0600
Scott Wood [off-list ref] wrote:
maxime louvel wrote:
quoted
Hi again,

this time I have tried to compile the kernel, with an embedded compiler 
on the board.
here is the result...

....
  BOOTAS  arch/powerpc/boot/ps3-hvcall.o
  BOOTCC  arch/powerpc/boot/ps3.o
  BOOTCC  arch/powerpc/boot/treeboot-bamboo.o
  BOOTCC  arch/powerpc/boot/cuboot-8xx.o
  BOOTCC  arch/powerpc/boot/cuboot-pq2.o
  BOOTCC  arch/powerpc/boot/cuboot-sequoia.o
  BOOTCC  arch/powerpc/boot/treeboot-walnut.o
Assembler messages:
Error: Internal assembler error for instruction icbt
Internal error, aborting at ../../gas/config/tc-ppc.c line 1300 in 
ppc_setup_opcodes
Please report this bug.
make[2]: *** [arch/powerpc/boot/treeboot-walnut.o] Error 2
make[1]: *** [uImage] Error 2
make: *** [sub-make] Error 2
That's a bug in older toolchains, which is aggravated by a misguided 
policy that we build all wrapper platforms, always.  Either use a newer 
toolchain, or remove treeboot-walnut from arch/powerpc/boot/Makefile.
It would be good to know what versions of binutils and gcc are being
used though.

josh

Re: 2.6.24 for mpc8458amc

From: Kumar Gala <hidden>
Date: 2008-02-20 05:19:18

On Feb 19, 2008, at 6:19 AM, raul.moreno@telvent.abengoa.com wrote:
Hello Maxime,

if your board is still running, although you can't see the messages  
that
means you don't have any console. Try to set one (I think you can  
use a SCM
of the CPM) in the kernel configuration (characters devices)  or in  
the
command line (console=).
If you really have a mpc8548 than there is no CPM.  It has 16550 style  
UARTs on it.

- k

Re: 2.6.24 for mpc8458amc

From: maxime louvel <hidden>
Date: 2008-02-20 13:00:58

Hi,

yes It has something like 16550 UART.
the compiler version is gcc-3.4.3 with some specific stuff for the platform.
I also have a gcc-4.1.2 vanilla which has been compiled with the previous
one. The 4.1.2 works if you tell it to emulate the floating point
instructions.

thanks Scott,
without the treeboot-walnut it compiled

I have still my first problem though:

AMC=> bootm 0x1000000
## Booting image at 01000000 ...
  Image Name:   Linux-2.6.24
  Image Type:   PowerPC Linux Kernel Image (gzip compressed)
  Data Size:    1802038 Bytes =  1.7 MB
  Load Address: 00000000
  Entry Point:  00000000
  Verifying Checksum ... OK
  Uncompressing Kernel Image ... OK

and nothing else...

Any idea ?

This may become from the fact that the uboot installed on the cards is old
and it apparently doesn't support the newer version of the kernel image...
(I have got that from an another mailing list)

cheers,
Maxime

On Feb 20, 2008 5:19 AM, Kumar Gala [off-list ref] wrote:
On Feb 19, 2008, at 6:19 AM, raul.moreno@telvent.abengoa.com wrote:
quoted
Hello Maxime,

if your board is still running, although you can't see the messages
that
means you don't have any console. Try to set one (I think you can
use a SCM
of the CPM) in the kernel configuration (characters devices)  or in
the
command line (console=).
If you really have a mpc8548 than there is no CPM.  It has 16550 style
UARTs on it.

- k


-- 
Maxime Louvel
0044 7964 5555 80
43 Allen road
Whitemore reans
WV60AW Wolverhampton
United Kingdom

Re: 2.6.24 for mpc8458amc

From: Kumar Gala <hidden>
Date: 2008-02-20 13:53:14

On Feb 20, 2008, at 7:00 AM, maxime louvel wrote:
Hi,

yes It has something like 16550 UART.
the compiler version is gcc-3.4.3 with some specific stuff for the  
platform.
I also have a gcc-4.1.2 vanilla which has been compiled with the  
previous one. The 4.1.2 works if you tell it to emulate the floating  
point instructions.

thanks Scott,
without the treeboot-walnut it compiled

I have still my first problem though:

AMC=> bootm 0x1000000
## Booting image at 01000000 ...
  Image Name:   Linux-2.6.24
  Image Type:   PowerPC Linux Kernel Image (gzip compressed)
  Data Size:    1802038 Bytes =  1.7 MB
  Load Address: 00000000
  Entry Point:  00000000
  Verifying Checksum ... OK
  Uncompressing Kernel Image ... OK

and nothing else...

Any idea ?

This may become from the fact that the uboot installed on the cards  
is old and it apparently doesn't support the newer version of the  
kernel image... (I have got that from an another mailing list)
Yes, you'll either need to look at updating u-boot and including  
support for the device tree in it or look at the cuImage wrappers in  
arch/powerpc/boot as a mechanism to boot a kernel w/an old fw.

- k

Re: 2.6.24 for mpc8458amc

From: maxime louvel <hidden>
Date: 2008-02-25 10:42:58

Hi,

I have updated the uboot on the cards and get the same result

AMC=> bootm 0x1000000
## Booting image at 01000000 ...
  Image Name:   Linux-2.6.24
  Image Type:   PowerPC Linux Kernel Image (gzip compressed)
  Data Size:    1802038 Bytes =  1.7 MB
  Load Address: 00000000
  Entry Point:  00000000
  Verifying Checksum ... OK
  Uncompressing Kernel Image ... OK

No further messages...

However I have try to boot an image (2.6.23-rc6 from freescale) which has
been patched for my platform and it works.
Thus the problem is not coming from the uboot anymore, but from something
else.
I can't get the source from freescale to see what they have changed because
their is some other stuff (unrelated with my problem or even my platform)
that are confidential to them...

So what I am looking for here is a hint of where to look, an idea of what I
might have done wrong...

regards,
Maxime

On Wed, Feb 20, 2008 at 1:53 PM, Kumar Gala [off-list ref]
wrote:
On Feb 20, 2008, at 7:00 AM, maxime louvel wrote:
quoted
Hi,

yes It has something like 16550 UART.
the compiler version is gcc-3.4.3 with some specific stuff for the
platform.
I also have a gcc-4.1.2 vanilla which has been compiled with the
previous one. The 4.1.2 works if you tell it to emulate the floating
point instructions.

thanks Scott,
without the treeboot-walnut it compiled

I have still my first problem though:

AMC=> bootm 0x1000000
## Booting image at 01000000 ...
  Image Name:   Linux-2.6.24
  Image Type:   PowerPC Linux Kernel Image (gzip compressed)
  Data Size:    1802038 Bytes =  1.7 MB
  Load Address: 00000000
  Entry Point:  00000000
  Verifying Checksum ... OK
  Uncompressing Kernel Image ... OK

and nothing else...

Any idea ?

This may become from the fact that the uboot installed on the cards
is old and it apparently doesn't support the newer version of the
kernel image... (I have got that from an another mailing list)
Yes, you'll either need to look at updating u-boot and including
support for the device tree in it or look at the cuImage wrappers in
arch/powerpc/boot as a mechanism to boot a kernel w/an old fw.

- k


-- 
Maxime Louvel
0044 7964 5555 80
43 Allen road
Whitemore reans
WV60AW Wolverhampton
United Kingdom
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help