View previous topic :: View next topic |
Author |
Message |
rapso
Joined: 28 Mar 2005 Posts: 147
|
Posted: Thu Sep 03, 2009 12:34 am Post subject: |
|
|
maaku wrote: | rapso,
I'm sorry I don't have the time to engage in a full discussion on this | but your try is pretty good.
Quote: | * Linux can be streamlined to an embedded profile, but at the cost of many man hours initially and continually in maintenance. Easy for a corporation to do, not so much for a loose-nit homebrew community. | ... but that was not the point.
Quote: | * The existing kernels are all desktop/server derived variants of Linux. There is not, to my knowledge, any true real-time Linux kernel for the PS3/Cell. Real-time linux is always highly-coupled with the architecture that it is designed for, and developing such a kernel for PS3/Cell will take a non-trivial amount of time and resources to do properly. It's not just a matter of hitting some checkboxes and compiling. | that was just an example and also not the point.
Quote: | * The ps3sdk has very small, but very specific needs that do not match up very closely with Linux (even with the patches Sony and those on this forum have made). | yeah, I think that's why its written from scratch, rather than porting yet again another kernel.
Quote: | * Don't fall into the "Linux will be easier because it's Linux" fallacy. Linux is around ~3 million lines of code. MINIX is just 4000 lines of kernel code. L4 is of similar size, and already ported to 64-bit PowerPC. That's three orders of magnitude difference (yes, I know we are comparing micro- to macro-kernels, but for reasons of software engineering complexity it is relevant). What's more, these kernels already have reliable implementations of feature sets needed for real-time embedded programming and are simple enough to not require the extensive tweaking in the port that Linux RTOS options do. | that was just my sample for you, so you dont fall into "[place here any existing os] will be easier, because it's already there".
Quote: |
Most people don't know, or underestimate even if they do the amount of work that must go into creating and maintaining a custom linux kernel for a real-time application. It is my professional opinion that the ps3sdk could be finished faster, and with better satisfaction by adopting an existing, smaller, non-Linux solution. | and from what i've seen, mc is pretty good in ramping up his own micro kernels.
Quote: |
EDIT: But perhaps we should agree to disagree, if you're still not convinced. | yeah, and probably mc coded as many lines as we wrote, but on his kernel ;) |
|
Back to top |
|
|
mc
Joined: 12 Jan 2005 Posts: 212 Location: Linköping
|
Posted: Mon Sep 07, 2009 7:44 am Post subject: |
|
|
maaku wrote: | MC, are you still here? Unless I hear from you, I'm going to begin porting either MINIX or L4 to Cell, but I could use some of your expert knowledge... (or anyone else here that is familiar with kernel mode PPE). |
I'm here.
Please feel free to start porting MINIX, or Mach, or NetBSD, or whatever you might like. It's a different project from this one though (although I'm certain some results could be shared). _________________ Flying at a high speed
Having the courage
Getting over crisis
I rescue the people |
|
Back to top |
|
|
guilt
Joined: 22 Sep 2009 Posts: 2 Location: Chennai, India
|
Posted: Tue Sep 22, 2009 7:12 pm Post subject: |
|
|
Hi MC,
I downloaded the source using BZR. I think I'll need Linux to run the bootstrap (aclocal/autoconf/automake etc) ... I was wondering if you could also ship a working config.h/Makefile for the prebuilt windows toolchain. That would be really useful.
Thanks a lot,
-Guilt |
|
Back to top |
|
|
ifcaro
Joined: 19 Oct 2008 Posts: 23
|
Posted: Wed Oct 14, 2009 5:51 am Post subject: |
|
|
Hi,
I managed to compile the toolchain and ps3sdk on windows with mingw. Then I went to compile the examples and I have generated an elf.
The question is: Now how do I run this elf in the otheros?
Some time ago I compiled the otheros-demo and it generated a bld.
Are there any bld with which it can launch these elfs? |
|
Back to top |
|
|
guilt
Joined: 22 Sep 2009 Posts: 2 Location: Chennai, India
|
Posted: Tue Nov 03, 2009 3:53 am Post subject: |
|
|
@ifcaro: can you post your makefile/build scripts?
I guess you would need to gzip it and rename it to otheros.bld .. then it should work on the PS3. |
|
Back to top |
|
|
mc
Joined: 12 Jan 2005 Posts: 212 Location: Linköping
|
Posted: Mon Nov 23, 2009 7:35 am Post subject: |
|
|
@guilt: Well, I don't have such a config.h, because I don't do windows, but if you create one that works, I can merge it to my repository.
@ifcaro: You can convert the ELF to a BLD as guild suggests (although you need to convert the ELF to raw binary using "ppu-objcopy -O binary" before gzipping it), but if you have an otheros partition on your harddrive (formatted as EXT2/EXT3), it's more convenient to use mcload, which can run the ELFs directly. _________________ Flying at a high speed
Having the courage
Getting over crisis
I rescue the people |
|
Back to top |
|
|
ifcaro
Joined: 19 Oct 2008 Posts: 23
|
Posted: Mon Jan 25, 2010 9:01 am Post subject: |
|
|
mc wrote: | @guilt: Well, I don't have such a config.h, because I don't do windows, but if you create one that works, I can merge it to my repository.
@ifcaro: You can convert the ELF to a BLD as guild suggests (although you need to convert the ELF to raw binary using "ppu-objcopy -O binary" before gzipping it), but if you have an otheros partition on your harddrive (formatted as EXT2/EXT3), it's more convenient to use mcload, which can run the ELFs directly. |
Hi, I have converted the elf to a bld and have run the hello world :D
I have uploaded my ps3dev to megaupload. Here is the link http://www.megaupload.com/?d=15HD693J |
|
Back to top |
|
|
ps2devman
Joined: 09 Oct 2006 Posts: 265
|
Posted: Tue Jan 26, 2010 4:53 pm Post subject: |
|
|
Great! Thanks for sharing! |
|
Back to top |
|
|
ifcaro
Joined: 19 Oct 2008 Posts: 23
|
Posted: Mon Feb 01, 2010 8:21 am Post subject: |
|
|
@mc: How can I set the boot flag for rebooting into gameos?
I have tried several ways and I did not succeed.
PD: I am making a simple graphics lib :D |
|
Back to top |
|
|
carlosn
Joined: 10 Mar 2005 Posts: 38 Location: Orlando, Florida, US
|
Posted: Mon Feb 01, 2010 12:18 pm Post subject: |
|
|
If you look at the source code in otheros_demo_1.0, you will see a function call to set_boot_flag(0) in demo.c. The source code for the function is in flash.c |
|
Back to top |
|
|
ooPo Site Admin
Joined: 17 Jan 2004 Posts: 2032 Location: Canada
|
Posted: Tue May 18, 2010 11:03 pm Post subject: |
|
|
So I grabbed the source and I'm having trouble building it. What kind of autoconf magic do I need to perform to get this into a buildable state? |
|
Back to top |
|
|
jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
Posted: Wed May 19, 2010 3:42 am Post subject: |
|
|
I think running bootstrap then configure is all you need. |
|
Back to top |
|
|
|