Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Emulation of Cell Broadband Engine Processor
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
canduc17
l33t
l33t


Joined: 11 Oct 2005
Posts: 795
Location: Ferrara, Italy

PostPosted: Sat Apr 19, 2008 10:58 am    Post subject: Emulation of Cell Broadband Engine Processor Reply with quote

Hi everybody.
I have to work with an emulator for the Cell Broadband Engine Processor.
I have installed this package from portage:
Code:
[I] app-emulation/systemsim-cell
     Available versions:  (~)3.0_p22!f
     Installed versions:  3.0_p22!f(12:32:26 19/04/2008)
     Homepage:            http://www.alphaworks.ibm.com/tech/cellsystemsim
     Description:         Full-System Simulator for the Cell Broadband Engine Processor
This is the message at the end of the installation:
Code:
* Messages for package app-emulation/systemsim-cell-3.0_p22:

 * The provided systemsim doesn't have kernel and system images, please
 * install them in /usr/share/systemsim-cell/image/cell
 * GNU info directory index is up-to-date.

In the program dir, I've found an advice
Code:
candell canduc # cat /usr/share/systemsim-cell/image/cell/README
Put a system image with the name 'sysroot_disk' and a kernel image\n with the name 'vmlinux' here

I suppose I have to install this package to create the kernel image:
Code:
 sys-kernel/cell-sources
     Available versions: 
   (2.6.18-r6)   ~*2.6.18-r6
   (2.6.19_rc5-r1)   ~*2.6.19_rc5-r1
   (2.6.19_rc6-r1)   ~*2.6.19_rc6-r1
   (2.6.24-r1)   ~*2.6.24-r1
   {build symlink}
     Homepage:            http://www.kernel.org/pub/linux/kernel/people/geoff/cell/ps3-linux/
     Description:         Full sources including the cell/ps3 patchset for the 2.6 kernel tree

But what is a system image? How can I obtain it?

Is there someone out there that has worked with this stuff?
_________________
A cow enters a supermarket, does an handstand and dies. (Public toilet graffito)
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Sun Apr 20, 2008 6:21 am    Post subject: Reply with quote

Moved from Portage & Programming to Gentoo on PPC.
More chance of an answer here, so moved.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
corsair
Retired Dev
Retired Dev


Joined: 06 Oct 2003
Posts: 451
Location: Aachen, Germany

PostPosted: Sun Apr 20, 2008 8:23 am    Post subject: Reply with quote

I wanted to add a few more lines to the ebuild a long time ago!

General question: what arch are you running the simulator on? (amd64/ppc64/x86)

here is what I sent another person per mail a few weeks ago, who asked almost the same question:

Quote:

> I am trying to get running systemsim-cell package, but when I run systemsim
> I get an error that my "/usr/share/systemsim-cell/image/cell/vmlinux is not
> an elf file"
>
> I am running up-to-date gentoo through VMware on a MacBook Pro (OSX 10.5.2).
> I have recompiled the kernel 2.6.24-gentoo-r3 and it boots fine, so I fed it
> to systemsim. Do you have any idea what could be wrong with my setup.

you need to cross compile the kernel for the ppc64 archtechture. From
the above statement it seems as you want to use your "normal" kernel for
the systemsim. This cannot work.

This are your options:

a) Search the web for the sysroot/kernel that Fedora built for the SDK.
The rpm is called "sysroot_image-3.0-7.noarch.rpm". You can convert it
to tar.gz using the rpm2targz tool. The RPM can be found for example at
[1]. Extract it and copy the sysroot and kernel to the usual place.

b) Create a kernel and sysroot following the howto in the attached PDF.

You should choose a) if you want quick results.

Regards,

-markus

[1]
http://mirror.lzu.edu.cn/software/Cell_SDK3.0/CellSDK-Open-Fedora/x86/sysroot_image-3.0-7.noarch.rpm
(~275MB)


The mentioned PDF can be found here: http://www.unixforces.net/~markus/stuff/IBMFullSystemSimulator_Overview_and_Installation.pdf

Regards,

-corsair
Back to top
View user's profile Send private message
canduc17
l33t
l33t


Joined: 11 Oct 2005
Posts: 795
Location: Ferrara, Italy

PostPosted: Sun Apr 20, 2008 9:51 am    Post subject: Reply with quote

I have a Intel Core 2 Duo with amd64 arch.

It could be a problem?

And what about the sys-kernel/cell-sources package?
_________________
A cow enters a supermarket, does an handstand and dies. (Public toilet graffito)
Back to top
View user's profile Send private message
corsair
Retired Dev
Retired Dev


Joined: 06 Oct 2003
Posts: 451
Location: Aachen, Germany

PostPosted: Sun Apr 20, 2008 10:25 am    Post subject: Reply with quote

no, I'm running the simulator on amd64, too.

for some quick results you should definitely go with the "sysroot/kernel from fedora" option. I would start with vanilla-sources for the kernel and work my way up to the needed patches if there are any needed. cell-sources is mainly for ps3 IIRC.

EDIT: A note on the pdf I linked in the above post: You should start the simulator with "systemsim -g" and not with "../run_gui" as described in the pdf. The pdf is quite outdated, but never versions of the pdf have the "gentoo way" removed. I should add some documentation to the ebuild...
Back to top
View user's profile Send private message
canduc17
l33t
l33t


Joined: 11 Oct 2005
Posts: 795
Location: Ferrara, Italy

PostPosted: Sun Apr 20, 2008 10:39 pm    Post subject: Reply with quote

Great, it starts perfectly!

Now I have just to learn how to use it... :D

Just one issue: the color of the characters of the emulator is light-gray as the gui itself...so I can't read unless I focus the buttons with mouse cursor...

I have found the Options button, but I can't change the character color...

Do you know how to turn the characters to simple black?

P.S.: is the simulator gui based on Tcl/tk? Maybe I have to config the character color through these libraries...
_________________
A cow enters a supermarket, does an handstand and dies. (Public toilet graffito)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum