forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Building a minimalistic otheros.bld?

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS3 Linux Development
View previous topic :: View next topic  
Author Message
allanl1234



Joined: 28 Dec 2009
Posts: 4

PostPosted: Mon Dec 28, 2009 1:45 am    Post subject: Building a minimalistic otheros.bld? Reply with quote

I was wondering if it would be possible to build a minimalistic otheros.bld that immediately boots the linux installation on the internal hdd?

When you only use a local hdd Linux-installation it seems that alot of devices are initialized during the early boot phase (display, usb devices, network devices, waiting for an ip) for no particular reason since they will be initialized again when booting the OS you have installed on the hdd.

Ideally the minimalistic otheros.bld should only be a blank screen that initializes enough devices to boot the hdd installation.

Does anyone know if such an otheros.bld exists - or if it actually possible to build one like this?

If it does not already exists, does anyone know a good starting place for learning how to build your own otheros.bld?
Back to top
View user's profile Send private message
cheriff
Regular


Joined: 23 Jun 2004
Posts: 262
Location: Sydney.au

PostPosted: Mon Dec 28, 2009 8:24 am    Post subject: Reply with quote

If you're willing to compile your own kernel, there is one option that may interest you. I'm fairly sure that a otheros.bld is produced by the linux build system when building for ps3. This may be flashed in as 'otheros' and off you go.

So rather than writing a kernel + mini-userspace whos sole purpose is to load a vmlinuz off the hdd and boot it, we flash our actual kernel and let gameOS start it for us.

I was doing this for a while, but moved back to the separate bootloader as its nice to use to boot live CDs, do some minimal FS recovery in the shell, etc. Fast boot it nice, but its a trade-off against flexibility :)

Some things to watch out for:
* the ps3 hdd driver should be built in, ie not as a module, since there's no option to use an initrd. (I usually build most 'core' stuff in on fixed systems anyway)
* you may have to compile your desired commandline into the kernel as there's no place to specify on a per-boot basis
* maybe more i can't remember any more :(
_________________
Damn, I need a decent signature!
Back to top
View user's profile Send private message
allanl1234



Joined: 28 Dec 2009
Posts: 4

PostPosted: Sat Jan 02, 2010 6:27 am    Post subject: Reply with quote

Thanks for the suggestion.

I've tried to use the otheros.bld created when compiling my kernel, but I'm having problems building the commandline into the kernel.

I've configured a kernel that doesn't use an initrd and made sure that all necessary drivers are compiled into it. I've inserted the commandline into CONFIG_CMDLINE in the .config file for the kernel:

CONFIG_CMDLINE_BOOL=y
CONFIG_CMDLINE="video=ps3fb:mode:162 quiet root/dev/ps3da2"

I tested the kernel with kexec without passing any parameters to the kernel and it clearly is not using the command line. If I pass the commandline manually to the kernel with kexec --append then it works fine.

When I install the otheros.bld in the PS3 XMB and boot other os nothing is initialized and it just hangs at a black screen. My guess is because it does not know what to mount as root folder because the command line is not working.

Any ideas for how to fix this?
Back to top
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Mon Jan 04, 2010 5:35 am    Post subject: Reply with quote

You might have more luck by starting with a kboot/petitboot build and just modifying it to get what you want. Then you'll know when your changes cause it to no longer boot :)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS3 Linux Development All times are GMT + 10 Hours
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


Powered by phpBB © 2001, 2005 phpBB Group