Official Gitbrew Forums
These forums cover all aspects of the Gitbrew biosphere. If you would like your development project to be based here, ask an admin.

Home » PS3 » OtherOS++ » Linux » automated install (just run script, and have linux !!)
icon3.gif  automated install [message #747] Mon, 05 March 2012 13:06 Go to next message
dudu.clx is currently offline  dudu.clx
Messages: 3
Registered: August 2011
Location: france
Gitbrew Noob

hello all,

in last november, i wrote script to install several linux distrib' on ps3.

never totaly tested, and never released, i decide to finish it.

there's is function:
-multi language (En, Fr, De, Sp, It)
-many install option (usb/internal hdd, 3.15/3.41/3.55 ps3's version)
-prepare hard drive (format and create_hdd_region.sh)
-install debian base or ubuntu base from debootstrap and glevand's git-kernel's
-unzip pre-installed linux (masterzorag's FC12, mintppc, roadrunner's redribbon, glevand's freebsd, ubuntu, xubuntu)

i was working on a complete linux thème, but last changes crashed the desktop, so i droped this project. (and time is missing).

the total space used by all pre-installed linux version is about 5Go.
the script is separate on 3 files: install.sh, debianbase.sh and ubuntubase.sh

at the moment, i'm missing information about 3.x.x kernel on FAT, and surely need to update the script to compile the kernel responding to the linux version.
i also use pre-compiled kernel (choice to select during the script).

i need to know:
-wich linux distrib can be run on wich ps3 version and with wich kernel ?
-wich git to use for 2.6 or 3.x.x kernel ?
-where have to be to download a SLES version ?
-any help to install suse, sles and gentoo on ps3 ?
-do nevik worked on tiger/leopard (mac) support ?

thanks for all
Re: automated install [message #748 is a reply to message #747] Mon, 05 March 2012 15:35 Go to previous messageGo to next message
masterzorag is currently offline  masterzorag
Messages: 99
Registered: August 2011
Location: maiworld
Gitbrew Member
on the FAT: kernel status

2.6 supports: dispatch-manager, system-manager with old ps3dm-utils, ps3sm-utils,
old ambiguous vflash naming scheme,
wlan and 7th SPU via kernel command line.
tested precompiled 2.6.39-gb9133b3-dirty

3.2 supports: dispatch-manager, system-manager, av-manager with rewritten vuart-tools,
new flash naming scheme,
wlan out-of-the-box, 7th SPU via kernel command line.
tested compiled 3.2.5

major changes on devices access, no loss against 2.6
Re: automated install [message #749 is a reply to message #747] Mon, 05 March 2012 15:47 Go to previous messageGo to next message
masterzorag is currently offline  masterzorag
Messages: 99
Registered: August 2011
Location: maiworld
Gitbrew Member
dudu.clx wrote on Mon, 05 March 2012 13:06
-any help to install gentoo on ps3?

was a pain waiting the sources compiled, but it run.
I've this emerge --info around (was 29/02 this year, exactly 2 years ago! Shocked )
Re: automated install [message #750 is a reply to message #749] Mon, 05 March 2012 16:16 Go to previous messageGo to next message
dudu.clx is currently offline  dudu.clx
Messages: 3
Registered: August 2011
Location: france
Gitbrew Noob

lastest debian (installed from debootstrap) will run with 3.2 kernel ?
so, can i compile or use pre-compiled 3.2 kernel on fat and slim without issue ?!
well, so, i have to set choice on ubuntubase install (install from debootstrap) with lucid+k2.6 or natty/oneiric+k3.2 !

i'll will post all script here, it'will be more simple and trivial !
Re: automated install [message #751 is a reply to message #750] Mon, 05 March 2012 16:44 Go to previous messageGo to next message
masterzorag is currently offline  masterzorag
Messages: 99
Registered: August 2011
Location: maiworld
Gitbrew Member
dudu.clx wrote on Mon, 05 March 2012 16:16
so, can i compile or use pre-compiled 3.2 kernel on fat and slim without issue ?!

precompiled are SLIM targeted, there are some diffs for FAT:
you can apply all patches, and have .config-SLIM and one .config-FAT to compile kernel in your script!
but:
if you apply ps3fb-use-fifo.patch you can't access the physical memory of PS3 provided by ps3physmem.patch with new ps3vram driver!
they are mutually exclusive, if apply the first patch then CONFIG_PS3_VRAM must not be set!
I can upload some precompiled 3.2-fat-kernel, or some 3.2-fat-config, anyway.
Re: automated install [message #753 is a reply to message #751] Mon, 05 March 2012 18:17 Go to previous messageGo to next message
glevand is currently offline  glevand
Messages: 955
Registered: July 2011
Location: SONY
Gitbrew God
My precompiled Linux 3 kernels work on both, slims and phats.
But i didn't enable PHAT wlan in my kernels because i don't have
phat wlan.

My old Linux 2 git repo won't be updated by me anymore.

I improved all drivers in Linux 3. Linux 2 PS3 drivers from graf and me were hackish and do not work with 32bit user space e.g.
With improved Linux 3 drivers, you can use all drivers with 32bit user space too, e.g. on petitboot.

ps3physmem.patch has nothing to do with ps3vram module.
If you want to use ps3vram then don't use ps3fb-use-fifo.patch because
ps3vram depends on code in ps3fb driver which is changed by ps3fb-use-fifo.patch.
ps3vram is video ram used as swap space, nothing else, i don't use it because the performance difference is almost zero.
Doesn't make sense to use it for me.
ps3fb-use-fifo.patch patches ps3fb driver and makes it more efficient which is more importnat to me
because i want my display driver to be fast. Furthermore, ps3fb-use-fifo.patch allows you to use 3D acceleration on Linux.
With old ps3fb driver you won't be able to do 3D on Linux.

[Updated on: Mon, 05 March 2012 18:21]

Report message to a moderator

Re: automated install [message #754 is a reply to message #753] Mon, 05 March 2012 18:24 Go to previous messageGo to next message
glevand is currently offline  glevand
Messages: 955
Registered: July 2011
Location: SONY
Gitbrew God
I'm using debian with Linux 3.2.9 currently which was installed with deboostrap on petitboot.
No problems.

[Updated on: Mon, 05 March 2012 18:24]

Report message to a moderator

Re: automated install [message #759 is a reply to message #754] Mon, 05 March 2012 19:39 Go to previous messageGo to next message
glevand is currently offline  glevand
Messages: 955
Registered: July 2011
Location: SONY
Gitbrew God
I updated my precompiled Linux kernel 3.2.9 and included all patches this time (for PHAT too). It works on slim and phat.

Here if you want to test it: http://gitbrew.org/~glevand/ps3/linux/linux-3/linux-3.2.9-bu ild.tar.bz2

PHAT WLAN detection is done automatically now.

[Updated on: Mon, 05 March 2012 20:23]

Report message to a moderator

Re: automated install [message #778 is a reply to message #759] Mon, 05 March 2012 21:35 Go to previous messageGo to next message
dudu.clx is currently offline  dudu.clx
Messages: 3
Registered: August 2011
Location: france
Gitbrew Noob

if pre-compiled kernel 3.2.9 works on debian and ubuntu (natty and oneiric) on phat and slim ps3, well, script will be changed (no more compilation and 2.6 kernel) and 3.2.9 kernel will be use on 3.41 and 3.55 ps3.

i think i must keep generic kernel for 3.15 classic otherOs install (via xmb) ... but i prefer have information about petitboot on 3.15 to accept your (glevand) kernel ... and so have one kernel for all ps3 system version.

and so have one pre-compiled kernel for both ps3 version (system version and model).

if someone have pre-installed suse, SLES or other linux system on his ps3, please share and send a backup (without personnal data).

i have read than 3.2.x kernel works on both internal and external (usb) hard drive, isn't it ?

@masterzorag: i remember have issue with LAN and Repo with your FC12, any solution to get a visual desktop ? ibm sdk successfull installed on it ?
About gentoo, i used "portage" abd "stage3", but never have a good config when compiling the kernel and "make menuconfig" make my confused.
i'll try to install it from media drive (DVD) later.

@glevand: thanks for your hard work !
Re: automated install [message #792 is a reply to message #778] Tue, 06 March 2012 09:10 Go to previous message
masterzorag is currently offline  masterzorag
Messages: 99
Registered: August 2011
Location: maiworld
Gitbrew Member
gentoo:
. I've used releases/ppc/2008.0/ from gentoo mirrors as stage3,
. kernel config: see attachment for 2.6.23-ps3 (unpatched, was running on 3.15)
. I've also tried to setup OpenCL without success, that's why I've cleaned all for fedora.

fedora:
. updated link at wiki, there's also a lan fix posted, or maybe just deleting /etc/udev/rules.d/70-persistent-net.rules it will be regenerated by udev on reboot...
. sdk: not only, with my image you can start developing OpenCL also!
. visual desktop: just # yum install openbox, or setup a vncserver
it's minimal, but it's fedora, so rpms, yum is the package manager, has its repo and so on

make menuconfig makes you confused:
. if you have a working kernel-config just overwrite .config in kernel source tree and do make oldconfig to import previous configuration first,
. if you don't have, you can do a make ps3_defconfig;
then adjust/check with make menuconfig
  • Attachment: config.txt
    (Size: 25.34KB, Downloaded 33 times)
Previous Topic: Writing to NOR via ps3sbmmio. Is it possible?
Next Topic: kexec problem
Goto Forum:
  


Current Time: Wed Jun 19 08:23:12 CEST 2013

Total time taken to generate the page: 0.02382 seconds