Topic
  • 23 replies
  • Latest Post - ‏2007-10-11T16:11:11Z by gcst
SystemAdmin
SystemAdmin
10114 Posts

Pinned topic SDK 3.0 on PS3 (FC7)

‏2007-09-20T16:46:24Z |
Hello,

I have some troubles with SDK 3.0 installation/using on my PS3 with FC7.

If you succeeded to obtain a fine configuration with SDK 3.0 + PS3 + FC7, please discribe me your kernel version and the problems you may encountored.

Thanks by advance,
Guena
Updated on 2007-10-11T16:11:11Z at 2007-10-11T16:11:11Z by gcst
  • neilc_dublin
    neilc_dublin
    94 Posts

    Re: SDK 3.0 on PS3 (FC7)

    ‏2007-09-20T17:55:34Z  
    I've just upgraded my PS3/FC7 SDK 2.1 instalation to SDK 3.0 and had no problems. The new yum based install is very streamlined.

    I've ran a few test programs and, besides some 1.1 to 3.0, path/header problems that I missed before the 2.1 upgrade it seems fine.

    my kernel is : 2.6.21-1.3194.fc7
    (I can't seem to run a later kernel as I installed my original FC7 with LVM support :-(. will this be fixed ?. anyone !?)

    I used the lastest add-on cd (dated 2007-09-04) from http://www.kernel.org/pub/linux/kernel/people/geoff/cell/

    I followed the 2.1 uninstall steps documented in the 3.0 install guide.

    perhaps you could describe the problem encountered in more detail ?

    /Neil
  • SystemAdmin
    SystemAdmin
    10114 Posts

    Re: SDK 3.0 on PS3 (FC7)

    ‏2007-09-20T21:57:11Z  
    I've just upgraded my PS3/FC7 SDK 2.1 instalation to SDK 3.0 and had no problems. The new yum based install is very streamlined.

    I've ran a few test programs and, besides some 1.1 to 3.0, path/header problems that I missed before the 2.1 upgrade it seems fine.

    my kernel is : 2.6.21-1.3194.fc7
    (I can't seem to run a later kernel as I installed my original FC7 with LVM support :-(. will this be fixed ?. anyone !?)

    I used the lastest add-on cd (dated 2007-09-04) from http://www.kernel.org/pub/linux/kernel/people/geoff/cell/

    I followed the 2.1 uninstall steps documented in the 3.0 install guide.

    perhaps you could describe the problem encountered in more detail ?

    /Neil
    You can find a discussion of the boot problem here:

    https://bugzilla.redhat.com/show_bug.cgi?id=249217#c6

    The bottom line is that you need to download the following rpm

    http://david.woodhou.se/lvm2-2.02.24-1.fc7.ps3.ppc.rpm

    Install with

    rpm -Uhv lvm2-2.02.24-1.fc7.ps3.ppc.rpm.

    Make a new boot image with

    cd /boot
    mkinitrd 2.6.xxxxxxxx.img 2.6.xxxxxxxx

    Use the appropriate version info. It should then boot.

    I found that the kernel update provided by Fedora still has problems, however. Shutdown doesn't work properly, for example. The best results are obtained by updating to the 2.6.23-rc6 kernel found on the latest ADDON cd. For the experience of doing so, I rebuilt the kernel following the example by Mike Acton, et al, found here:

    http://www.cellperformance.com/articles/2007/01/howto_huge_tlb_pages_on_ps3_li.html
  • SystemAdmin
    SystemAdmin
    10114 Posts

    Re: SDK 3.0 on PS3 (FC7)

    ‏2007-09-23T07:52:46Z  
    I've just upgraded my PS3/FC7 SDK 2.1 instalation to SDK 3.0 and had no problems. The new yum based install is very streamlined.

    I've ran a few test programs and, besides some 1.1 to 3.0, path/header problems that I missed before the 2.1 upgrade it seems fine.

    my kernel is : 2.6.21-1.3194.fc7
    (I can't seem to run a later kernel as I installed my original FC7 with LVM support :-(. will this be fixed ?. anyone !?)

    I used the lastest add-on cd (dated 2007-09-04) from http://www.kernel.org/pub/linux/kernel/people/geoff/cell/

    I followed the 2.1 uninstall steps documented in the 3.0 install guide.

    perhaps you could describe the problem encountered in more detail ?

    /Neil
    Can you explain me exactly how to install on PS3 the FC7 with the last addon-cd?
    I've been able to install only FC6.

    After that I installed the bootloader and restarted "other OS", i canned not start the installaption with the FC7 disk, it said that it was the wrong disk. He accepted only the FC6 disk.

    What is the step to let start the FC7 installation?
  • SystemAdmin
    SystemAdmin
    10114 Posts

    Re: SDK 3.0 on PS3 (FC7)

    ‏2007-09-23T19:00:26Z  
    Can you explain me exactly how to install on PS3 the FC7 with the last addon-cd?
    I've been able to install only FC6.

    After that I installed the bootloader and restarted "other OS", i canned not start the installaption with the FC7 disk, it said that it was the wrong disk. He accepted only the FC6 disk.

    What is the step to let start the FC7 installation?
    I ran kexec manually.

    cd /mnt/root .... ppc64 .. from the kboot prompt

    then run kexec on the ppc64 vmlinuz with the initrd in that directory. anaconda starts soon thereafter

    Bob
  • neilc_dublin
    neilc_dublin
    94 Posts

    Re: SDK 3.0 on PS3 (FC7)

    ‏2007-09-24T17:01:33Z  
    You can find a discussion of the boot problem here:

    https://bugzilla.redhat.com/show_bug.cgi?id=249217#c6

    The bottom line is that you need to download the following rpm

    http://david.woodhou.se/lvm2-2.02.24-1.fc7.ps3.ppc.rpm

    Install with

    rpm -Uhv lvm2-2.02.24-1.fc7.ps3.ppc.rpm.

    Make a new boot image with

    cd /boot
    mkinitrd 2.6.xxxxxxxx.img 2.6.xxxxxxxx

    Use the appropriate version info. It should then boot.

    I found that the kernel update provided by Fedora still has problems, however. Shutdown doesn't work properly, for example. The best results are obtained by updating to the 2.6.23-rc6 kernel found on the latest ADDON cd. For the experience of doing so, I rebuilt the kernel following the example by Mike Acton, et al, found here:

    http://www.cellperformance.com/articles/2007/01/howto_huge_tlb_pages_on_ps3_li.html
    > The bottom line is that you need to download the
    > following rpm
    >
    > http://david.woodhou.se/lvm2-2.02.24-1.fc7.ps3.ppc.rpm
    >
    >
    > Install with
    >
    > rpm -Uhv lvm2-2.02.24-1.fc7.ps3.ppc.rpm.
    >

    done.
    <cut>

    > I found that the kernel update provided by Fedora
    > still has problems, however. Shutdown doesn't work
    > properly, for example. The best results are obtained
    > by updating to the 2.6.23-rc6 kernel found on the
    > latest ADDON cd. For the experience of doing so, I
    > rebuilt the kernel following the example by Mike
    > Acton, et al, found here:
    >
    > http://www.cellperformance.com/articles/2007/01/howto_
    > huge_tlb_pages_on_ps3_li.html
    done.

    and, via git pull, with the latest kernel candidate
    2.6.23-rc7

    I still can't get to boot and I believe it is because of the LVM issue !!

    by chance
    did you need to enable LVM support somehow in the kernel config ?

    It may be related to the kernel but, in addition to the shutdown issue, I'm having problems execute spulet sample code with the 2.6.21-1.3194.fc7 kernel.
  • neilc_dublin
    neilc_dublin
    94 Posts

    Re: SDK 3.0 on PS3 (FC7)

    ‏2007-10-03T11:00:21Z  
    > The bottom line is that you need to download the
    > following rpm
    >
    > http://david.woodhou.se/lvm2-2.02.24-1.fc7.ps3.ppc.rpm
    >
    >
    > Install with
    >
    > rpm -Uhv lvm2-2.02.24-1.fc7.ps3.ppc.rpm.
    >

    done.
    <cut>

    > I found that the kernel update provided by Fedora
    > still has problems, however. Shutdown doesn't work
    > properly, for example. The best results are obtained
    > by updating to the 2.6.23-rc6 kernel found on the
    > latest ADDON cd. For the experience of doing so, I
    > rebuilt the kernel following the example by Mike
    > Acton, et al, found here:
    >
    > http://www.cellperformance.com/articles/2007/01/howto_
    > huge_tlb_pages_on_ps3_li.html
    done.

    and, via git pull, with the latest kernel candidate
    2.6.23-rc7

    I still can't get to boot and I believe it is because of the LVM issue !!

    by chance
    did you need to enable LVM support somehow in the kernel config ?

    It may be related to the kernel but, in addition to the shutdown issue, I'm having problems execute spulet sample code with the 2.6.21-1.3194.fc7 kernel.
    the following fix worked for me

    http://www-128.ibm.com/developerworks/forums/dw_thread.jsp?forum=739&thread=177745&cat=46
  • SystemAdmin
    SystemAdmin
    10114 Posts

    Re: SDK 3.0 on PS3 (FC7)

    ‏2007-10-03T23:39:00Z  
    I've just upgraded my PS3/FC7 SDK 2.1 instalation to SDK 3.0 and had no problems. The new yum based install is very streamlined.

    I've ran a few test programs and, besides some 1.1 to 3.0, path/header problems that I missed before the 2.1 upgrade it seems fine.

    my kernel is : 2.6.21-1.3194.fc7
    (I can't seem to run a later kernel as I installed my original FC7 with LVM support :-(. will this be fixed ?. anyone !?)

    I used the lastest add-on cd (dated 2007-09-04) from http://www.kernel.org/pub/linux/kernel/people/geoff/cell/

    I followed the 2.1 uninstall steps documented in the 3.0 install guide.

    perhaps you could describe the problem encountered in more detail ?

    /Neil
    I was able to install SDK 3.0 on a PS3 with Fedora 7 (thanks Neil).
    Unfortunately even the simplest examples and the tutorial fail.
    1) exampe DMA/complex (after a tiny edit to make it work with 6 SPEs).
    Error:
    spu_create(): Invalid argument
    Failed spe_context_create(errno=14 strerror=Bad address)

    the error comes from:
    if ((datas[i].speid = spe_context_create (0, NULL)) == NULL)
    2) tutorial/simple
    It compiles, but is does not produce an executable.
    The file "simple" is not executable, even after changing its rights.
    3) tutorial/euler
    same error as DMA complex:
    spu_create(): Invalid argument
    Failed creating context: Bad address
    4) DMA/simple example does not compile:
    In file included from /usr/include/features.h:351,
    from /usr/include/stdlib.h:25,
    from ../simpleDMA.h:44,
    from simpleDMA.c:41:
    /usr/include/gnu/stubs.h:9:27: error: gnu/stubs-64.h: No such file or directory
    make[1]: *** http://simpleDMA.o Error 1
    I'm left wondering whether I missed something during the SDK3.0 installation...

    Any suggestion?

    Thank you
    Paolo
  • gcst
    gcst
    171 Posts

    Re: SDK 3.0 on PS3 (FC7)

    ‏2007-10-04T07:58:10Z  
    I was able to install SDK 3.0 on a PS3 with Fedora 7 (thanks Neil).
    Unfortunately even the simplest examples and the tutorial fail.
    1) exampe DMA/complex (after a tiny edit to make it work with 6 SPEs).
    Error:
    spu_create(): Invalid argument
    Failed spe_context_create(errno=14 strerror=Bad address)

    the error comes from:
    if ((datas[i].speid = spe_context_create (0, NULL)) == NULL)
    2) tutorial/simple
    It compiles, but is does not produce an executable.
    The file "simple" is not executable, even after changing its rights.
    3) tutorial/euler
    same error as DMA complex:
    spu_create(): Invalid argument
    Failed creating context: Bad address
    4) DMA/simple example does not compile:
    In file included from /usr/include/features.h:351,
    from /usr/include/stdlib.h:25,
    from ../simpleDMA.h:44,
    from simpleDMA.c:41:
    /usr/include/gnu/stubs.h:9:27: error: gnu/stubs-64.h: No such file or directory
    make[1]: *** http://simpleDMA.o Error 1
    I'm left wondering whether I missed something during the SDK3.0 installation...

    Any suggestion?

    Thank you
    Paolo
    This means spufs is not mounted. Type "mount" on a command prompt, the output should contain a line like the following:

    spufs on /spu type spufs (rw)
  • SystemAdmin
    SystemAdmin
    10114 Posts

    Re: SDK 3.0 on PS3 (FC7)

    ‏2007-10-04T09:16:33Z  
    • gcst
    • ‏2007-10-04T07:58:10Z
    This means spufs is not mounted. Type "mount" on a command prompt, the output should contain a line like the following:

    spufs on /spu type spufs (rw)
    indeed it's missing.

    should I add such a line to /etc/fstab?

    thank you
  • CellServ
    CellServ
    1346 Posts

    Re: SDK 3.0 on PS3 (FC7)

    ‏2007-10-04T14:17:09Z  
    indeed it's missing.

    should I add such a line to /etc/fstab?

    thank you
    This should have been done by the install (unless it's a known issue this doesn't happen automatically on PS3). Run "cellsdk verify | grep default" and make sure nothing says "not installed". Most importantly, check for the spe packages.

    --
    IBM SDK Service Administrator
  • SystemAdmin
    SystemAdmin
    10114 Posts

    Re: SDK 3.0 on PS3 (FC7)

    ‏2007-10-07T17:52:28Z  
    • CellServ
    • ‏2007-10-04T14:17:09Z
    This should have been done by the install (unless it's a known issue this doesn't happen automatically on PS3). Run "cellsdk verify | grep default" and make sure nothing says "not installed". Most importantly, check for the spe packages.

    --
    IBM SDK Service Administrator
    Hi,

    thanks a lot for all your posts !

    I had the same trouble as PaulDj, so I reinstalled all the packages and now the install seems ok on my PS3.

    I can now compile all the tutorial examples but almost all exec crash my device ! Please let me know the simplest example to try in order to kow if my install is ok. Do I have to install kernel 2.6.23 ?

    Guena

    PS : Here you will find information about my PS3/FC7

    root@localhost cell# cat /proc/version
    Linux version 2.6.22.9-91.fc7 (kojibuilder@ppc2.fedora.redhat.com) (gcc version 4.1.2 20070502 (Red Hat 4.1.2-12)) #1 SMP Thu Sep 27 20:36:40 EDT 2007
    root@localhost cell#
    root@localhost cell#
    root@localhost cell# mount
    /dev/ps3da1 on / type ext3 (rw)
    proc on /proc type proc (rw)
    sysfs on /sys type sysfs (rw)
    devpts on /dev/pts type devpts (rw,gid=5,mode=620)
    spufs on /spu type spufs (rw)
    tmpfs on /dev/shm type tmpfs (rw)
    none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
    sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
    root@localhost cell#
    root@localhost cell#
    root@localhost cell# ./cellsdk verify | grep default
    default CellDevelopmentLibraries alf-devel-3.0.0-9.ppc
    default CellDevelopmentLibraries alf-devel-3.0.0-9.ppc64
    default CellDevelopmentLibraries alfman-3.0-5.noarch
    default CellDevelopmentLibraries blas-devel-3.1.1-1.fc7.ppc
    default CellDevelopmentLibraries blas-devel-3.1.1-1.fc7.ppc64
    default CellDevelopmentLibraries dacs-devel-3.0.0-19.ppc64
    default CellDevelopmentLibraries dacsman-3.0-5.noarch
    default CellDevelopmentLibraries libspe2man-2.2.0-5.noarch
    default CellDevelopmentLibraries ppu-mass-devel-4.5.0-9.ppc
    default CellDevelopmentLibraries ppu-mass-devel-4.5.0-9.ppc64
    default CellDevelopmentLibraries ppu-simdmath-devel-3.0-3.ppc
    default CellDevelopmentLibraries ppu-simdmath-devel-3.0-3.ppc64
    default CellDevelopmentLibraries simdman-3.0-5.noarch
    default CellDevelopmentLibraries spu-mass-devel-4.5.0-9.ppc
    default CellDevelopmentLibraries spu-simdmath-devel-3.0-3.ppc
    default CellProgrammingExamples alf-examples-source-3.0.0-7.noarch
    default CellProgrammingExamples cell-buildutils-3.0-10.noarch
    default CellProgrammingExamples cell-demos-3.0-9.ppc64
    default CellProgrammingExamples cell-demos-source-3.0-9.noarch
    default CellProgrammingExamples cell-examples-3.0-10.ppc64
    default CellProgrammingExamples cell-examples-source-3.0-10.noarch
    default CellProgrammingExamples cell-libs-3.0-16.ppc
    default CellProgrammingExamples cell-libs-3.0-16.ppc64
    default CellProgrammingExamples cell-libs-devel-3.0-16.ppc
    default CellProgrammingExamples cell-libs-devel-3.0-16.ppc64
    default CellProgrammingExamples cell-libs-source-3.0-16.noarch
    default CellProgrammingExamples cell-tutorial-3.0-5.ppc
    default CellProgrammingExamples cell-tutorial-source-3.0-5.noarch
    default CellRuntimeEnvironment alf-3.0.0-9.ppc
    default CellRuntimeEnvironment alf-3.0.0-9.ppc64
    default CellRuntimeEnvironment blas-3.1.1-1.fc7.ppc
    default CellRuntimeEnvironment blas-3.1.1-1.fc7.ppc64
    default CellRuntimeEnvironment dacs-3.0.0-19.ppc64
    default CellRuntimeEnvironment ppu-simdmath-3.0-3.ppc
    default CellRuntimeEnvironment ppu-simdmath-3.0-3.ppc64
    default CellDevelopmentLibraries libspe2-devel-2.2.0-87.ppc
    default CellDevelopmentLibraries libspe2-devel-2.2.0-87.ppc64
    default CellDevelopmentLibraries numactl-devel-0.9.10-1.ppc
    default CellDevelopmentLibraries numactl-devel-0.9.10-1.ppc64
    default CellDevelopmentTools ppu-binutils-2.17.50-31.ppc
    default CellDevelopmentTools ppu-gcc-4.1.1-54.ppc
    default CellDevelopmentTools ppu-gcc-c++-4.1.1-54.ppc
    default CellDevelopmentTools ppu-gdb-6.6.50-23.ppc
    default CellDevelopmentTools spu-binutils-2.17.50-31.ppc
    default CellDevelopmentTools spu-gcc-4.1.1-100.ppc
    default CellDevelopmentTools spu-gcc-c++-4.1.1-100.ppc
    default CellDevelopmentTools spu-gdb-6.6.50-10.ppc
    default CellDevelopmentTools spu-newlib-1.15.0-76.ppc
    default CellRuntimeEnvironment numactl-0.9.10-1.ppc
    default CellRuntimeEnvironment numactl-0.9.10-1.ppc64
  • gcst
    gcst
    171 Posts

    Re: SDK 3.0 on PS3 (FC7)

    ‏2007-10-08T08:13:27Z  
    Hi,

    thanks a lot for all your posts !

    I had the same trouble as PaulDj, so I reinstalled all the packages and now the install seems ok on my PS3.

    I can now compile all the tutorial examples but almost all exec crash my device ! Please let me know the simplest example to try in order to kow if my install is ok. Do I have to install kernel 2.6.23 ?

    Guena

    PS : Here you will find information about my PS3/FC7

    root@localhost cell# cat /proc/version
    Linux version 2.6.22.9-91.fc7 (kojibuilder@ppc2.fedora.redhat.com) (gcc version 4.1.2 20070502 (Red Hat 4.1.2-12)) #1 SMP Thu Sep 27 20:36:40 EDT 2007
    root@localhost cell#
    root@localhost cell#
    root@localhost cell# mount
    /dev/ps3da1 on / type ext3 (rw)
    proc on /proc type proc (rw)
    sysfs on /sys type sysfs (rw)
    devpts on /dev/pts type devpts (rw,gid=5,mode=620)
    spufs on /spu type spufs (rw)
    tmpfs on /dev/shm type tmpfs (rw)
    none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
    sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
    root@localhost cell#
    root@localhost cell#
    root@localhost cell# ./cellsdk verify | grep default
    default CellDevelopmentLibraries alf-devel-3.0.0-9.ppc
    default CellDevelopmentLibraries alf-devel-3.0.0-9.ppc64
    default CellDevelopmentLibraries alfman-3.0-5.noarch
    default CellDevelopmentLibraries blas-devel-3.1.1-1.fc7.ppc
    default CellDevelopmentLibraries blas-devel-3.1.1-1.fc7.ppc64
    default CellDevelopmentLibraries dacs-devel-3.0.0-19.ppc64
    default CellDevelopmentLibraries dacsman-3.0-5.noarch
    default CellDevelopmentLibraries libspe2man-2.2.0-5.noarch
    default CellDevelopmentLibraries ppu-mass-devel-4.5.0-9.ppc
    default CellDevelopmentLibraries ppu-mass-devel-4.5.0-9.ppc64
    default CellDevelopmentLibraries ppu-simdmath-devel-3.0-3.ppc
    default CellDevelopmentLibraries ppu-simdmath-devel-3.0-3.ppc64
    default CellDevelopmentLibraries simdman-3.0-5.noarch
    default CellDevelopmentLibraries spu-mass-devel-4.5.0-9.ppc
    default CellDevelopmentLibraries spu-simdmath-devel-3.0-3.ppc
    default CellProgrammingExamples alf-examples-source-3.0.0-7.noarch
    default CellProgrammingExamples cell-buildutils-3.0-10.noarch
    default CellProgrammingExamples cell-demos-3.0-9.ppc64
    default CellProgrammingExamples cell-demos-source-3.0-9.noarch
    default CellProgrammingExamples cell-examples-3.0-10.ppc64
    default CellProgrammingExamples cell-examples-source-3.0-10.noarch
    default CellProgrammingExamples cell-libs-3.0-16.ppc
    default CellProgrammingExamples cell-libs-3.0-16.ppc64
    default CellProgrammingExamples cell-libs-devel-3.0-16.ppc
    default CellProgrammingExamples cell-libs-devel-3.0-16.ppc64
    default CellProgrammingExamples cell-libs-source-3.0-16.noarch
    default CellProgrammingExamples cell-tutorial-3.0-5.ppc
    default CellProgrammingExamples cell-tutorial-source-3.0-5.noarch
    default CellRuntimeEnvironment alf-3.0.0-9.ppc
    default CellRuntimeEnvironment alf-3.0.0-9.ppc64
    default CellRuntimeEnvironment blas-3.1.1-1.fc7.ppc
    default CellRuntimeEnvironment blas-3.1.1-1.fc7.ppc64
    default CellRuntimeEnvironment dacs-3.0.0-19.ppc64
    default CellRuntimeEnvironment ppu-simdmath-3.0-3.ppc
    default CellRuntimeEnvironment ppu-simdmath-3.0-3.ppc64
    default CellDevelopmentLibraries libspe2-devel-2.2.0-87.ppc
    default CellDevelopmentLibraries libspe2-devel-2.2.0-87.ppc64
    default CellDevelopmentLibraries numactl-devel-0.9.10-1.ppc
    default CellDevelopmentLibraries numactl-devel-0.9.10-1.ppc64
    default CellDevelopmentTools ppu-binutils-2.17.50-31.ppc
    default CellDevelopmentTools ppu-gcc-4.1.1-54.ppc
    default CellDevelopmentTools ppu-gcc-c++-4.1.1-54.ppc
    default CellDevelopmentTools ppu-gdb-6.6.50-23.ppc
    default CellDevelopmentTools spu-binutils-2.17.50-31.ppc
    default CellDevelopmentTools spu-gcc-4.1.1-100.ppc
    default CellDevelopmentTools spu-gcc-c++-4.1.1-100.ppc
    default CellDevelopmentTools spu-gdb-6.6.50-10.ppc
    default CellDevelopmentTools spu-newlib-1.15.0-76.ppc
    default CellRuntimeEnvironment numactl-0.9.10-1.ppc
    default CellRuntimeEnvironment numactl-0.9.10-1.ppc64

    > root@localhost cell# cat /proc/version
    > Linux version 2.6.22.9-91.fc7
    > (kojibuilder@ppc2.fedora.redhat.com) (gcc version
    > 4.1.2 20070502 (Red Hat 4.1.2-12)) #1 SMP Thu Sep 27
    > 20:36:40 EDT 2007

    You are using the Fedora 7 kernel .. try the one from Sony.
  • SystemAdmin
    SystemAdmin
    10114 Posts

    Re: SDK 3.0 on PS3 (FC7)

    ‏2007-10-08T16:51:33Z  
    • gcst
    • ‏2007-10-08T08:13:27Z

    > root@localhost cell# cat /proc/version
    > Linux version 2.6.22.9-91.fc7
    > (kojibuilder@ppc2.fedora.redhat.com) (gcc version
    > 4.1.2 20070502 (Red Hat 4.1.2-12)) #1 SMP Thu Sep 27
    > 20:36:40 EDT 2007

    You are using the Fedora 7 kernel .. try the one from Sony.
    > You are using the Fedora 7 kernel .. try the one from
    > Sony.

    I never heard about Sony Linux Kernel,
    please let me know where can I find such a kernel ?

    Guena
  • SystemAdmin
    SystemAdmin
    10114 Posts

    Re: SDK 3.0 on PS3 (FC7)

    ‏2007-10-08T23:41:42Z  
    > You are using the Fedora 7 kernel .. try the one from
    > Sony.

    I never heard about Sony Linux Kernel,
    please let me know where can I find such a kernel ?

    Guena
    I've installed recently with no problems on a PS3 running FC7. My kernel version is reported as:

    code 2.6.21-1.3194.fc7[/code]

    I didn't bother to check what was there before installing the SDK, but things appear to be working fine with this kernel.

    Overall, the process is a little different from the 2.1 SDK, but everything went fine. Basically, after mounting the ISO, I did this:

    code# ./cellsdk --iso /mnt/cellsdk/ install
    1. yum groupinstall CellDevelopmentLibraries CellProgrammingExamples CellRuntimeEnvironment CellDevelopmentTools CellPerformanceTools[/code]
  • gcst
    gcst
    171 Posts

    Re: SDK 3.0 on PS3 (FC7)

    ‏2007-10-09T07:41:14Z  
    > You are using the Fedora 7 kernel .. try the one from
    > Sony.

    I never heard about Sony Linux Kernel,
    please let me know where can I find such a kernel ?

    Guena
    See the 3rd post in this thread:
    >The best results are obtained by updating to the 2.6.23-rc6 kernel found on the >latest ADDON cd.
  • SystemAdmin
    SystemAdmin
    10114 Posts

    Re: SDK 3.0 on PS3 (FC7)

    ‏2007-10-09T23:16:17Z  
    Hi,

    thanks a lot for all your posts !

    I had the same trouble as PaulDj, so I reinstalled all the packages and now the install seems ok on my PS3.

    I can now compile all the tutorial examples but almost all exec crash my device ! Please let me know the simplest example to try in order to kow if my install is ok. Do I have to install kernel 2.6.23 ?

    Guena

    PS : Here you will find information about my PS3/FC7

    root@localhost cell# cat /proc/version
    Linux version 2.6.22.9-91.fc7 (kojibuilder@ppc2.fedora.redhat.com) (gcc version 4.1.2 20070502 (Red Hat 4.1.2-12)) #1 SMP Thu Sep 27 20:36:40 EDT 2007
    root@localhost cell#
    root@localhost cell#
    root@localhost cell# mount
    /dev/ps3da1 on / type ext3 (rw)
    proc on /proc type proc (rw)
    sysfs on /sys type sysfs (rw)
    devpts on /dev/pts type devpts (rw,gid=5,mode=620)
    spufs on /spu type spufs (rw)
    tmpfs on /dev/shm type tmpfs (rw)
    none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
    sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
    root@localhost cell#
    root@localhost cell#
    root@localhost cell# ./cellsdk verify | grep default
    default CellDevelopmentLibraries alf-devel-3.0.0-9.ppc
    default CellDevelopmentLibraries alf-devel-3.0.0-9.ppc64
    default CellDevelopmentLibraries alfman-3.0-5.noarch
    default CellDevelopmentLibraries blas-devel-3.1.1-1.fc7.ppc
    default CellDevelopmentLibraries blas-devel-3.1.1-1.fc7.ppc64
    default CellDevelopmentLibraries dacs-devel-3.0.0-19.ppc64
    default CellDevelopmentLibraries dacsman-3.0-5.noarch
    default CellDevelopmentLibraries libspe2man-2.2.0-5.noarch
    default CellDevelopmentLibraries ppu-mass-devel-4.5.0-9.ppc
    default CellDevelopmentLibraries ppu-mass-devel-4.5.0-9.ppc64
    default CellDevelopmentLibraries ppu-simdmath-devel-3.0-3.ppc
    default CellDevelopmentLibraries ppu-simdmath-devel-3.0-3.ppc64
    default CellDevelopmentLibraries simdman-3.0-5.noarch
    default CellDevelopmentLibraries spu-mass-devel-4.5.0-9.ppc
    default CellDevelopmentLibraries spu-simdmath-devel-3.0-3.ppc
    default CellProgrammingExamples alf-examples-source-3.0.0-7.noarch
    default CellProgrammingExamples cell-buildutils-3.0-10.noarch
    default CellProgrammingExamples cell-demos-3.0-9.ppc64
    default CellProgrammingExamples cell-demos-source-3.0-9.noarch
    default CellProgrammingExamples cell-examples-3.0-10.ppc64
    default CellProgrammingExamples cell-examples-source-3.0-10.noarch
    default CellProgrammingExamples cell-libs-3.0-16.ppc
    default CellProgrammingExamples cell-libs-3.0-16.ppc64
    default CellProgrammingExamples cell-libs-devel-3.0-16.ppc
    default CellProgrammingExamples cell-libs-devel-3.0-16.ppc64
    default CellProgrammingExamples cell-libs-source-3.0-16.noarch
    default CellProgrammingExamples cell-tutorial-3.0-5.ppc
    default CellProgrammingExamples cell-tutorial-source-3.0-5.noarch
    default CellRuntimeEnvironment alf-3.0.0-9.ppc
    default CellRuntimeEnvironment alf-3.0.0-9.ppc64
    default CellRuntimeEnvironment blas-3.1.1-1.fc7.ppc
    default CellRuntimeEnvironment blas-3.1.1-1.fc7.ppc64
    default CellRuntimeEnvironment dacs-3.0.0-19.ppc64
    default CellRuntimeEnvironment ppu-simdmath-3.0-3.ppc
    default CellRuntimeEnvironment ppu-simdmath-3.0-3.ppc64
    default CellDevelopmentLibraries libspe2-devel-2.2.0-87.ppc
    default CellDevelopmentLibraries libspe2-devel-2.2.0-87.ppc64
    default CellDevelopmentLibraries numactl-devel-0.9.10-1.ppc
    default CellDevelopmentLibraries numactl-devel-0.9.10-1.ppc64
    default CellDevelopmentTools ppu-binutils-2.17.50-31.ppc
    default CellDevelopmentTools ppu-gcc-4.1.1-54.ppc
    default CellDevelopmentTools ppu-gcc-c++-4.1.1-54.ppc
    default CellDevelopmentTools ppu-gdb-6.6.50-23.ppc
    default CellDevelopmentTools spu-binutils-2.17.50-31.ppc
    default CellDevelopmentTools spu-gcc-4.1.1-100.ppc
    default CellDevelopmentTools spu-gcc-c++-4.1.1-100.ppc
    default CellDevelopmentTools spu-gdb-6.6.50-10.ppc
    default CellDevelopmentTools spu-newlib-1.15.0-76.ppc
    default CellRuntimeEnvironment numactl-0.9.10-1.ppc
    default CellRuntimeEnvironment numactl-0.9.10-1.ppc64
    Is there a way to easily resolve this spufs not mounting issue?

    Everything looks okay according to "cellsdk verify".

    I tried building the 2.6.23 kernel but - after hours of building - it is freezing my PS3 during the modules_install.
  • SystemAdmin
    SystemAdmin
    10114 Posts

    Re: SDK 3.0 on PS3 (FC7)

    ‏2007-10-09T23:46:08Z  
    Is there a way to easily resolve this spufs not mounting issue?

    Everything looks okay according to "cellsdk verify".

    I tried building the 2.6.23 kernel but - after hours of building - it is freezing my PS3 during the modules_install.
    This probably is what I missed for the spufs issue

    The SELinux policy files that are included in the Fedora 7 base distribution prevent spufs from loading correctly on boot. To install the SDK, you must either turn off SELinux or update the selinux-policy and selinux-policy-targeted RPMs to the latest version. The preferred method is to update the RPMs. To update, type the following commands as root:
    yum update selinux-policy selinux-policy-targeted
  • SystemAdmin
    SystemAdmin
    10114 Posts

    Re: SDK 3.0 on PS3 (FC7)

    ‏2007-10-10T20:11:04Z  
    I've installed recently with no problems on a PS3 running FC7. My kernel version is reported as:

    code 2.6.21-1.3194.fc7[/code]

    I didn't bother to check what was there before installing the SDK, but things appear to be working fine with this kernel.

    Overall, the process is a little different from the 2.1 SDK, but everything went fine. Basically, after mounting the ISO, I did this:

    code# ./cellsdk --iso /mnt/cellsdk/ install
    1. yum groupinstall CellDevelopmentLibraries CellProgrammingExamples CellRuntimeEnvironment CellDevelopmentTools CellPerformanceTools[/code]
    I also have kernel 2.6.21-1.3194.fc7
    And now (after a reboot)
    spufs on /spu type spufs (rw)
    is in my mtab.

    Out of the 4 problems I described earlier in this thread,
    1) DMA/complex: works fine
    2) tutorial/simple: same problem as before, "simple" is not an executable
    3) tutorial/euler: it looks fine
    4) DMA/simple: same problem as before, "gnu/stubs-64.h: No such file or directory"
    Can anyone help or confirm that with the 2.6.23-rc6 kernel these problems disappear?
    thank you again.
  • SystemAdmin
    SystemAdmin
    10114 Posts

    Re: SDK 3.0 on PS3 (FC7)

    ‏2007-10-10T21:06:48Z  
    I also have kernel 2.6.21-1.3194.fc7
    And now (after a reboot)
    spufs on /spu type spufs (rw)
    is in my mtab.

    Out of the 4 problems I described earlier in this thread,
    1) DMA/complex: works fine
    2) tutorial/simple: same problem as before, "simple" is not an executable
    3) tutorial/euler: it looks fine
    4) DMA/simple: same problem as before, "gnu/stubs-64.h: No such file or directory"
    Can anyone help or confirm that with the 2.6.23-rc6 kernel these problems disappear?
    thank you again.

    >
    > Can anyone help or confirm that with the 2.6.23-rc6
    > kernel these problems disappear?
    > thank you again.

    This is not what you asked, but may be useful information anyway... 2) and 4) compile and run fine for me.

    Note that as discussed elsewhere in this thread, SELinux needs to be disabled or its policy files need to be upgraded. When I installed FC7, I selected the option to warn, but not prevent, things from running (the other option was to completely disable it). Which option did you use -- the latter?

    I'm going to go out on a limb and suggest that upgrading your kernel won't solve this problem. If it helps, i see gnu/stubs-64.h in /usr/include on my system.
  • SystemAdmin
    SystemAdmin
    10114 Posts

    Re: SDK 3.0 on PS3 (FC7)

    ‏2007-10-10T21:57:42Z  

    >
    > Can anyone help or confirm that with the 2.6.23-rc6
    > kernel these problems disappear?
    > thank you again.

    This is not what you asked, but may be useful information anyway... 2) and 4) compile and run fine for me.

    Note that as discussed elsewhere in this thread, SELinux needs to be disabled or its policy files need to be upgraded. When I installed FC7, I selected the option to warn, but not prevent, things from running (the other option was to completely disable it). Which option did you use -- the latter?

    I'm going to go out on a limb and suggest that upgrading your kernel won't solve this problem. If it helps, i see gnu/stubs-64.h in /usr/include on my system.
    This is becoming entertaining... no, not really.

    Don, regarding SELinux, I had disabled it before installing the SDK3.0, as the manual advocates. Now I also updated the policy the way you suggested.

    My /usr/include/gnu/ directory only contains:
    libc-version.h lib-names.h stubs-32.h stubs.h

    I wonder what I did (or am doing) wrong.
    The result of the command ./cellsdk verify | grep default
    seems complete (see below), therefore what am I missing??

    As usual, suggestions are extremely welcome.
    thank you

    default CellDevelopmentLibraries alf-devel-3.0.0-9.ppc
    default CellDevelopmentLibraries alf-devel-3.0.0-9.ppc64
    default CellDevelopmentLibraries alfman-3.0-5.noarch
    default CellDevelopmentLibraries blas-devel-3.1.1-1.fc7.ppc
    default CellDevelopmentLibraries blas-devel-3.1.1-1.fc7.ppc64
    default CellDevelopmentLibraries dacs-devel-3.0.0-19.ppc64
    default CellDevelopmentLibraries dacsman-3.0-5.noarch
    default CellDevelopmentLibraries libspe2man-2.2.0-5.noarch
    default CellDevelopmentLibraries ppu-mass-devel-4.5.0-9.ppc
    default CellDevelopmentLibraries ppu-mass-devel-4.5.0-9.ppc64
    default CellDevelopmentLibraries ppu-simdmath-devel-3.0-3.ppc
    default CellDevelopmentLibraries ppu-simdmath-devel-3.0-3.ppc64
    default CellDevelopmentLibraries simdman-3.0-5.noarch
    default CellDevelopmentLibraries spu-mass-devel-4.5.0-9.ppc
    default CellDevelopmentLibraries spu-simdmath-devel-3.0-3.ppc
    default CellProgrammingExamples alf-examples-source-3.0.0-7.noarch
    default CellProgrammingExamples cell-buildutils-3.0-10.noarch
    default CellProgrammingExamples cell-demos-3.0-9.ppc64
    default CellProgrammingExamples cell-demos-source-3.0-9.noarch
    default CellProgrammingExamples cell-examples-3.0-10.ppc64
    default CellProgrammingExamples cell-examples-source-3.0-10.noarch
    default CellProgrammingExamples cell-libs-3.0-16.ppc
    default CellProgrammingExamples cell-libs-3.0-16.ppc64
    default CellProgrammingExamples cell-libs-devel-3.0-16.ppc
    default CellProgrammingExamples cell-libs-devel-3.0-16.ppc64
    default CellProgrammingExamples cell-libs-source-3.0-16.noarch
    default CellProgrammingExamples cell-tutorial-3.0-5.ppc
    default CellProgrammingExamples cell-tutorial-source-3.0-5.noarch
    default CellRuntimeEnvironment alf-3.0.0-9.ppc
    default CellRuntimeEnvironment alf-3.0.0-9.ppc64
    default CellRuntimeEnvironment blas-3.1.1-1.fc7.ppc
    default CellRuntimeEnvironment blas-3.1.1-1.fc7.ppc64
    default CellRuntimeEnvironment dacs-3.0.0-19.ppc64
    default CellRuntimeEnvironment ppu-simdmath-3.0-3.ppc
    default CellRuntimeEnvironment ppu-simdmath-3.0-3.ppc64
    default CellDevelopmentLibraries libspe2-devel-2.2.0-87.ppc
    default CellDevelopmentLibraries libspe2-devel-2.2.0-87.ppc64
    default CellDevelopmentLibraries numactl-devel-0.9.10-1.ppc
    default CellDevelopmentLibraries numactl-devel-0.9.10-1.ppc64
    default CellDevelopmentTools ppu-binutils-2.17.50-31.ppc
    default CellDevelopmentTools ppu-gcc-4.1.1-54.ppc
    default CellDevelopmentTools ppu-gcc-c++-4.1.1-54.ppc
    default CellDevelopmentTools ppu-gdb-6.6.50-23.ppc
    default CellDevelopmentTools spu-binutils-2.17.50-31.ppc
    default CellDevelopmentTools spu-gcc-4.1.1-100.ppc
    default CellDevelopmentTools spu-gcc-c++-4.1.1-100.ppc
    default CellDevelopmentTools spu-gdb-6.6.50-10.ppc
    default CellDevelopmentTools spu-newlib-1.15.0-76.ppc
    default CellRuntimeEnvironment numactl-0.9.10-1.ppc
    default CellRuntimeEnvironment numactl-0.9.10-1.ppc64
  • gcst
    gcst
    171 Posts

    Re: SDK 3.0 on PS3 (FC7)

    ‏2007-10-11T07:58:46Z  
    I also have kernel 2.6.21-1.3194.fc7
    And now (after a reboot)
    spufs on /spu type spufs (rw)
    is in my mtab.

    Out of the 4 problems I described earlier in this thread,
    1) DMA/complex: works fine
    2) tutorial/simple: same problem as before, "simple" is not an executable
    3) tutorial/euler: it looks fine
    4) DMA/simple: same problem as before, "gnu/stubs-64.h: No such file or directory"
    Can anyone help or confirm that with the 2.6.23-rc6 kernel these problems disappear?
    thank you again.
    > 2) tutorial/simple: same problem as before, "simple"
    > is not an executable
    can you append the output of "file tutorial/simple", please

    Should look like the following:
    root@ps3 bin$ file tutorial/simple
    tutorial/simple: ELF 32-bit MSB executable, PowerPC or cisco 4500, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not stripped

    > 4) DMA/simple: same problem as before,
    > "gnu/stubs-64.h: No such file or directory"

    You are missing a rpm:

    root@ps3 ~# rpm -qf /usr/include/gnu/stubs-64.h
    glibc-devel-2.6-4

    root@ps3 ~# yum list | grep glibc-devel
    glibc-devel.ppc 2.6-4 installed
    glibc-devel.ppc64 2.6-4 installed

    The latter is which you need to install. Question is, why in your setup the programs are compiled as 64 bit programs?

    > Can anyone help or confirm that with the 2.6.23-rc6
    > kernel these problems disappear?

    These are not kernel problems.

  • SystemAdmin
    SystemAdmin
    10114 Posts

    Re: SDK 3.0 on PS3 (FC7)

    ‏2007-10-11T15:17:06Z  
    • gcst
    • ‏2007-10-11T07:58:46Z
    > 2) tutorial/simple: same problem as before, "simple"
    > is not an executable
    can you append the output of "file tutorial/simple", please

    Should look like the following:
    root@ps3 bin$ file tutorial/simple
    tutorial/simple: ELF 32-bit MSB executable, PowerPC or cisco 4500, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not stripped

    > 4) DMA/simple: same problem as before,
    > "gnu/stubs-64.h: No such file or directory"

    You are missing a rpm:

    root@ps3 ~# rpm -qf /usr/include/gnu/stubs-64.h
    glibc-devel-2.6-4

    root@ps3 ~# yum list | grep glibc-devel
    glibc-devel.ppc 2.6-4 installed
    glibc-devel.ppc64 2.6-4 installed

    The latter is which you need to install. Question is, why in your setup the programs are compiled as 64 bit programs?

    > Can anyone help or confirm that with the 2.6.23-rc6
    > kernel these problems disappear?

    These are not kernel problems.

    gcst, thank you.

    2)
    >root@ps3 bin$ file tutorial/simple
    > tutorial/simple: ELF 32-bit MSB executable, PowerPC or cisco 4500, version 1
    > (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not
    > stripped

    I found that the problem was generated by my silly edit:
    INSTALL_DIR = .

    any other target directory makes it work (because . happens to be the source as well).

    4)
    > You are missing a rpm:
    >
    > root@ps3 ~# rpm -qf /usr/include/gnu/stubs-64.h
    > glibc-devel-2.6-4
    >
    > root@ps3 ~# yum list | grep glibc-devel
    > glibc-devel.ppc 2.6-4 installed
    > glibc-devel.ppc64 2.6-4 installed

    I installed glibc-devel.ppc64 and now the tutorial works.
    Now I wonder, why was I missing a rpm?

    > Question is, why in your setup the programs are compiled as 64 bit programs?

    hmmm.... I'm not sure how to answer this question. are you saying that they should be compiled as 32 bit programs?

    Looking at uname -a:
    Linux ****.cs.duke.edu 2.6.21-1.3194.fc7 #1 SMP Wed May 23 22:13:52 EDT 2007 ppc64 ppc64 ppc64 GNU/Linux
  • gcst
    gcst
    171 Posts

    Re: SDK 3.0 on PS3 (FC7)

    ‏2007-10-11T16:11:11Z  
    gcst, thank you.

    2)
    >root@ps3 bin$ file tutorial/simple
    > tutorial/simple: ELF 32-bit MSB executable, PowerPC or cisco 4500, version 1
    > (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not
    > stripped

    I found that the problem was generated by my silly edit:
    INSTALL_DIR = .

    any other target directory makes it work (because . happens to be the source as well).

    4)
    > You are missing a rpm:
    >
    > root@ps3 ~# rpm -qf /usr/include/gnu/stubs-64.h
    > glibc-devel-2.6-4
    >
    > root@ps3 ~# yum list | grep glibc-devel
    > glibc-devel.ppc 2.6-4 installed
    > glibc-devel.ppc64 2.6-4 installed

    I installed glibc-devel.ppc64 and now the tutorial works.
    Now I wonder, why was I missing a rpm?

    > Question is, why in your setup the programs are compiled as 64 bit programs?

    hmmm.... I'm not sure how to answer this question. are you saying that they should be compiled as 32 bit programs?

    Looking at uname -a:
    Linux ****.cs.duke.edu 2.6.21-1.3194.fc7 #1 SMP Wed May 23 22:13:52 EDT 2007 ppc64 ppc64 ppc64 GNU/Linux
    > > Question is, why in your setup the programs are
    > compiled as 64 bit programs?
    >
    > hmmm.... I'm not sure how to answer this question.
    > are you saying that they should be compiled as 32 bit
    > programs?

    The PPE in CELL supports 32 and 64 bit programs. Via compile/link switch you choose whether to build 32 or 64 bit binaries. I believe, the SDK by default creates 32 bit binaries and therefore does not need to install the 64 bit rpm, which was missing.
    Something (either the installation or some manual editing) configured your setup to build 64 bit binaries.

    >
    > Looking at uname -a:
    > Linux ****.cs.duke.edu 2.6.21-1.3194.fc7 #1 SMP Wed
    > May 23 22:13:52 EDT 2007 ppc64 ppc64 ppc64 GNU/Linux

    This just means you are running a 64 bit kernel (, which can execute 32 or 64 bit user space binaries).