Re: 2.6.24 for mpc8458amc

2008-02-25 Thread maxime louvel
Hi,

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

AMC=> bootm 0x100
## Booting image at 0100 ...
  Image Name:   Linux-2.6.24
  Image Type:   PowerPC Linux Kernel Image (gzip compressed)
  Data Size:1802038 Bytes =  1.7 MB
  Load Address: 
  Entry Point:  
  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 <[EMAIL PROTECTED]>
wrote:

>
> 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 0x100
> > ## Booting image at 0100 ...
> >   Image Name:   Linux-2.6.24
> >   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
> >   Data Size:1802038 Bytes =  1.7 MB
> >   Load Address: 
> >   Entry Point:  
> >   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  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

2008-02-20 Thread Kumar Gala

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 0x100
> ## Booting image at 0100 ...
>   Image Name:   Linux-2.6.24
>   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
>   Data Size:1802038 Bytes =  1.7 MB
>   Load Address: 
>   Entry Point:  
>   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
___
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded


Re: 2.6.24 for mpc8458amc

2008-02-20 Thread maxime louvel
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 0x100
## Booting image at 0100 ...
  Image Name:   Linux-2.6.24
  Image Type:   PowerPC Linux Kernel Image (gzip compressed)
  Data Size:1802038 Bytes =  1.7 MB
  Load Address: 
  Entry Point:  
  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 <[EMAIL PROTECTED]> wrote:

>
> On Feb 19, 2008, at 6:19 AM, [EMAIL PROTECTED] 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
>



-- 
Maxime Louvel
0044 7964  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

2008-02-19 Thread Kumar Gala

On Feb 19, 2008, at 6:19 AM, [EMAIL PROTECTED] 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
___
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded


Re: 2.6.24 for mpc8458amc

2008-02-19 Thread Josh Boyer
On Tue, 19 Feb 2008 11:53:02 -0600
Scott Wood <[EMAIL PROTECTED]> wrote:

> 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.

It would be good to know what versions of binutils and gcc are being
used though.

josh
___
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded


Re: 2.6.24 for mpc8458amc

2008-02-19 Thread Scott Wood
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
___
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded


Re: 2.6.24 for mpc8458amc

2008-02-19 Thread maxime louvel
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 <[EMAIL PROTECTED]> wrote:

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



-- 
Maxime Louvel
0044 7964  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

2008-02-19 Thread Jon Loeliger
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
___
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded


Re: 2.6.24 for mpc8458amc

2008-02-19 Thread maxime louvel
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 <[EMAIL PROTECTED]> wrote:

> 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 0x100 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: 0x100
> > Loading: ##
> > ###
> >
> #
> >
> #
> >
> #
> >
> #
> > ###
> > done
> > Bytes transferred = 1802102 (1b7f76 hex)
> > AMC=> bootm 0x100
> > ## Booting image at 0100 ...
> >   Image Name:   Linux-2.6.24
> >   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
> >   Data Size:1802038 Bytes =  1.7 MB
> >   Load Address: 
> >   Entry Point:  
> >   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  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

2008-02-19 Thread Jon Loeliger
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 0x100 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: 0x100
> Loading: ##
> ###
> #
> #
> #
> #
> ###
> done
> Bytes transferred = 1802102 (1b7f76 hex)
> AMC=> bootm 0x100
> ## Booting image at 0100 ...
>   Image Name:   Linux-2.6.24
>   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
>   Data Size:1802038 Bytes =  1.7 MB
>   Load Address: 
>   Entry Point:  
>   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
___
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded


Re: 2.6.24 for mpc8458amc

2008-02-19 Thread raul . moreno

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=).

Anyway, if you want to be sure if the  kernel is booting up, look up the
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úl Moreno



"maxime louvel" <[EMAIL PROTECTED]>
"maxime louvel"
Enviado por:
[EMAIL PROTECTED]
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 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 0x100 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: 0x100
Loading: ##
###
#
#
#
#
###
done
Bytes transferred = 1802102 (1b7f76 hex)
AMC=> bootm 0x100
## Booting image at 0100 ...
  Image Name:   Linux-2.6.24
  Image Type:   PowerPC Linux Kernel Image (gzip compressed)
  Data Size:1802038 Bytes =  1.7 MB
  Load Address: 
  Entry Point:  
  Verifying Checksum ... OK
  Uncompressing Kernel Image ... OK

No further messages...

Does someone has an idea ?

thanks,
Maxime


--
Maxime Louvel
0044 7964  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

___
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded


2.6.24 for mpc8458amc

2008-02-19 Thread maxime louvel
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 0x100 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: 0x100
Loading: #
#
#
#
#
###
done
Bytes transferred = 1802102 (1b7f76 hex)
AMC=> bootm 0x100
## Booting image at 0100 ...
  Image Name:   Linux-2.6.24
  Image Type:   PowerPC Linux Kernel Image (gzip compressed)
  Data Size:1802038 Bytes =  1.7 MB
  Load Address: 
  Entry Point:  
  Verifying Checksum ... OK
  Uncompressing Kernel Image ... OK

No further messages...

Does someone has an idea ?

thanks,
Maxime


-- 
Maxime Louvel
0044 7964  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