Skip to contentSkip to conversation

Sequoia 440EPx patches not working

DISCUSSION Jerone Young 5 participants 10 messages Aug 8, 2007 – Aug 13, 2007

lore
Share & tools
lore
#0 lore raw

Using the Sequoia (AMCC 440EPx) patches recently submitted to the list I am unable to boot to fully boot a uImage built with these patches under Uboot. It appears to hang in very early boot.

Here is the output:
=> tftp 400000 sequoia/uImage
ENET Speed is 100 Mbps - FULL duplex connection (EMAC0)
Using ppc_4xx_eth0 device
TFTP from server 9.53.41.24; our IP address is 9.53.41.38 Filename 'sequoia/uImage'.
Load address: 0x400000
Loading: #################################################################

         #################################################################      
         #################################################################      
         #######################                                                

done
Bytes transferred = 1112434 (10f972 hex)
=> bootm 400000
## Booting image at 00400000 ...

   Image Name:   Linux-2.6.23-rc2                                               
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)                   
   Data Size:    1112370 Bytes =  1.1 MB                                        

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

#1 lore raw
Quoted 3 lines · Jerone Young

Using the Sequoia (AMCC 440EPx) patches recently submitted to the list I am unable to boot to fully boot a uImage built with these patches under Uboot. It appears to hang in very early boot.

I'm guessing this is an old version of u-boot, that's not device tree aware. That would need a cuImage, not a uImage, and IIRC the posted patches didn't yet have cuboot support for Sequoia.

Signature · 4 lines
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson
#2 lore raw
Quoted 9 lines · David Gibson
Quoted 3 lines · Jerone Young

Using the Sequoia (AMCC 440EPx) patches recently submitted to the list I am unable to boot to fully boot a uImage built with these patches under Uboot. It appears to hang in very early boot.

I'm guessing this is an old version of u-boot, that's not device tree aware. That would need a cuImage, not a uImage, and IIRC the posted patches didn't yet have cuboot support for Sequoia.

The patches do have cuImage support.
I have a Sequoia board with uBoot 1.1.6 and it boots cuImage fine.

#3 lore raw
Quoted 6 lines · On Thu, 09 Aug 2007 14:58:55 +0400 Valentine Barshak <[email protected]>…
Quoted 5 lines · David Gibson
Quoted 3 lines · Jerone Young

Using the Sequoia (AMCC 440EPx) patches recently submitted to the list I am unable to boot to fully boot a uImage built with these patches under Uboot. It appears to hang in very early boot.

Quoted 7 lines
Quoted 4 lines

I'm guessing this is an old version of u-boot, that's not device tree aware. That would need a cuImage, not a uImage, and IIRC the posted patches didn't yet have cuboot support for Sequoia.

The patches do have cuImage support.
I have a Sequoia board with uBoot 1.1.6 and it boots cuImage fine.

Speaking of those patches, are you planning on rebasing them against the latest 4xx series I sent out soon? That should have some cleanups that make adding sequoia support a bit easier.

josh

#4 lore raw
Quoted 12 lines · Josh Boyer
Quoted 9 lines · On Thu, 09 Aug 2007 14:58:55 +0400 Valentine Barshak <[email protected]>…
Quoted 8 lines · David Gibson
Quoted 3 lines · Jerone Young

Using the Sequoia (AMCC 440EPx) patches recently submitted to the list I am unable to boot to fully boot a uImage built with these patches under Uboot. It appears to hang in very early boot.

I'm guessing this is an old version of u-boot, that's not device tree aware. That would need a cuImage, not a uImage, and IIRC the posted patches didn't yet have cuboot support for Sequoia.

Quoted 8 lines
Quoted 2 lines

The patches do have cuImage support.
I have a Sequoia board with uBoot 1.1.6 and it boots cuImage fine.

Speaking of those patches, are you planning on rebasing them against the latest 4xx series I sent out soon? That should have some cleanups that make adding sequoia support a bit easier.

josh

Yes, I do :)

#5 lore raw
In reply to Jerone Young
Quoted 28 lines · On Wed, 08 Aug 2007 13:45:10 -0500 Jerone Young wrote:

Using the Sequoia (AMCC 440EPx) patches recently submitted to the list I am unable to boot to fully boot a uImage built with these patches under Uboot. It appears to hang in very early boot.

Here is the output:
=> tftp 400000
sequoia/uImage ENET Speed is 100 Mbps - FULL duplex connection (EMAC0) Using ppc_4xx_eth0
device TFTP from server 9.53.41.24; our IP address is 9.53.41.38 Filename
'sequoia/uImage'. Load address:
0x400000 Loading:
#################################################################
#################################################################
#################################################################
#######################
done Bytes transferred = 1112434 (10f972
hex) => bootm
400000 ## Booting image at
00400000 ... Image Name:

Linux-2.6.23-rc2 Image Type:   PowerPC Linux Kernel Image (gzip
compressed) Data Size:    1112370 Bytes =  1.1

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

Quoted 4 lines

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

This seems to be a wrong image..

Are you using "make zImage" ?

The proper uImage after that command would be smth like cuImage* then...

Signature · 1 line
Sincerely, Vitaly
#6 lore raw

Nope definitely using a uImage. I'll try a fresh source and try again .. I did base it on kernel.org git tree so I'll try instead with 2.6.23-rc2 and see what happens.

Quoted 42 lines · Vitaly Bordug
Quoted 28 lines · On Wed, 08 Aug 2007 13:45:10 -0500 Jerone Young wrote:

Using the Sequoia (AMCC 440EPx) patches recently submitted to the list I am unable to boot to fully boot a uImage built with these patches under Uboot. It appears to hang in very early boot.

Here is the output:
=> tftp 400000
sequoia/uImage ENET Speed is 100 Mbps - FULL duplex connection (EMAC0) Using ppc_4xx_eth0
device TFTP from server 9.53.41.24; our IP address is 9.53.41.38 Filename
'sequoia/uImage'. Load address:
0x400000 Loading:
#################################################################
#################################################################
#################################################################
#######################
done Bytes transferred = 1112434 (10f972
hex) => bootm
400000 ## Booting image at
00400000 ... Image Name:

Linux-2.6.23-rc2 Image Type:   PowerPC Linux Kernel Image (gzip
compressed) Data Size:    1112370 Bytes =  1.1

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

Quoted 4 lines

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

This seems to be a wrong image..

Are you using "make zImage" ?

The proper uImage after that command would be smth like cuImage* then...

#7 lore raw
In reply to Vitaly Bordug

So did a rebase on kernel.org 2.6.23-rc2 patch (as opposed the latest git). I am using Uboot version 1.2.0-gc0c292b2. This is the version that came with the board. It still appears to hang during early boot on my Sequoia.

Trying the cuImage.sequoia.bin.gz just result in Uboot giving "Bad Magic Number" when trying to boot it. This is also the same for using cuImage.sequoia.elf.

So when I use the uImage file it will load but just hang after it's loaded. I'm building it using "make uImage CROSS_COMPILE=<cross prefix> ARCH=powerpc" on an x86 box.

I'll see what else I could possibly be doing wrong (maybe something happened to the patch when I grabbed it off of gmane and the web filters did something to it, I did have to fix a problem where in the sequoia.dts file the web filter replace "@" with " at ". This was simple enough to fix. Maybe something else when wrong. I'll see what else I can look at.

Quoted 42 lines · Vitaly Bordug
Quoted 28 lines · On Wed, 08 Aug 2007 13:45:10 -0500 Jerone Young wrote:

Using the Sequoia (AMCC 440EPx) patches recently submitted to the list I am unable to boot to fully boot a uImage built with these patches under Uboot. It appears to hang in very early boot.

Here is the output:
=> tftp 400000
sequoia/uImage ENET Speed is 100 Mbps - FULL duplex connection (EMAC0) Using ppc_4xx_eth0
device TFTP from server 9.53.41.24; our IP address is 9.53.41.38 Filename
'sequoia/uImage'. Load address:
0x400000 Loading:
#################################################################
#################################################################
#################################################################
#######################
done Bytes transferred = 1112434 (10f972
hex) => bootm
400000 ## Booting image at
00400000 ... Image Name:

Linux-2.6.23-rc2 Image Type:   PowerPC Linux Kernel Image (gzip
compressed) Data Size:    1112370 Bytes =  1.1

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

Quoted 4 lines

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

This seems to be a wrong image..

Are you using "make zImage" ?

The proper uImage after that command would be smth like cuImage* then...

#8 lore raw
Quoted 60 lines · Jerone Young

So did a rebase on kernel.org 2.6.23-rc2 patch (as opposed the latest git). I am using Uboot version 1.2.0-gc0c292b2. This is the version that came with the board. It still appears to hang during early boot on my Sequoia.

Trying the cuImage.sequoia.bin.gz just result in Uboot giving "Bad Magic Number" when trying to boot it. This is also the same for using cuImage.sequoia.elf.

So when I use the uImage file it will load but just hang after it's loaded. I'm building it using "make uImage CROSS_COMPILE=<cross prefix> ARCH=powerpc" on an x86 box.

I'll see what else I could possibly be doing wrong (maybe something happened to the patch when I grabbed it off of gmane and the web filters did something to it, I did have to fix a problem where in the sequoia.dts file the web filter replace "@" with " at ". This was simple enough to fix. Maybe something else when wrong. I'll see what else I can look at.

Quoted 39 lines · Vitaly Bordug
Quoted 28 lines · On Wed, 08 Aug 2007 13:45:10 -0500 Jerone Young wrote:

Using the Sequoia (AMCC 440EPx) patches recently submitted to the list I am unable to boot to fully boot a uImage built with these patches under Uboot. It appears to hang in very early boot.

Here is the output:
=> tftp 400000
sequoia/uImage ENET Speed is 100 Mbps - FULL duplex connection (EMAC0) Using ppc_4xx_eth0
device TFTP from server 9.53.41.24; our IP address is 9.53.41.38 Filename
'sequoia/uImage'. Load address:
0x400000 Loading:
#################################################################
#################################################################
#################################################################
#######################
done Bytes transferred = 1112434 (10f972
hex) => bootm
400000 ## Booting image at
00400000 ... Image Name:

Linux-2.6.23-rc2 Image Type:   PowerPC Linux Kernel Image (gzip
compressed) Data Size:    1112370 Bytes =  1.1

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

Quoted 4 lines

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

This seems to be a wrong image..

Are you using "make zImage" ?

Quoted 7 lines
Quoted 2 lines

The proper uImage after that command would be smth like cuImage* then...

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

Please, apply clean patches (not filtered by web filters) and try make ARCH=powerpc CROSS_COMPILE=<cross_prefix> zImage The image should be at arch/powerpc/boot/cuImage.sequoia

#9 lore raw

I got it to load now cuImage.sequoia and loading at address 0x200000. I had been trying to load at 0x400000...apparently this was not good. So moving to 0x300000 it loads but stops after setting up the device tree. So the image was clobbering something but now is not at 0x200000. Thanks for the help.
Jerone

Quoted 72 lines · Valentine Barshak
Quoted 60 lines · Jerone Young

So did a rebase on kernel.org 2.6.23-rc2 patch (as opposed the latest git). I am using Uboot version 1.2.0-gc0c292b2. This is the version that came with the board. It still appears to hang during early boot on my Sequoia.

Trying the cuImage.sequoia.bin.gz just result in Uboot giving "Bad Magic Number" when trying to boot it. This is also the same for using cuImage.sequoia.elf.

So when I use the uImage file it will load but just hang after it's loaded. I'm building it using "make uImage CROSS_COMPILE=<cross prefix> ARCH=powerpc" on an x86 box.

I'll see what else I could possibly be doing wrong (maybe something happened to the patch when I grabbed it off of gmane and the web filters did something to it, I did have to fix a problem where in the sequoia.dts file the web filter replace "@" with " at ". This was simple enough to fix. Maybe something else when wrong. I'll see what else I can look at.

Quoted 39 lines · Vitaly Bordug
Quoted 28 lines · On Wed, 08 Aug 2007 13:45:10 -0500 Jerone Young wrote:

Using the Sequoia (AMCC 440EPx) patches recently submitted to the list I am unable to boot to fully boot a uImage built with these patches under Uboot. It appears to hang in very early boot.

Here is the output:
=> tftp 400000
sequoia/uImage ENET Speed is 100 Mbps - FULL duplex connection (EMAC0) Using ppc_4xx_eth0
device TFTP from server 9.53.41.24; our IP address is 9.53.41.38 Filename
'sequoia/uImage'. Load address:
0x400000 Loading:
#################################################################
#################################################################
#################################################################
#######################
done Bytes transferred = 1112434 (10f972
hex) => bootm
400000 ## Booting image at
00400000 ... Image Name:

Linux-2.6.23-rc2 Image Type:   PowerPC Linux Kernel Image (gzip
compressed) Data Size:    1112370 Bytes =  1.1

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

Quoted 4 lines

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

This seems to be a wrong image..

Are you using "make zImage" ?

Quoted 7 lines
Quoted 2 lines

The proper uImage after that command would be smth like cuImage* then...

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

Please, apply clean patches (not filtered by web filters) and try make ARCH=powerpc CROSS_COMPILE=<cross_prefix> zImage The image should be at arch/powerpc/boot/cuImage.sequoia