Editing Petitboot

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 11: Line 11:


<li>Install Dependencies:
<li>Install Dependencies:
{{keyboard|content=<syntaxhighlight lang="bash">$ sudo apt-get install quilt build-essential subversion libncurses5-dev zlib1g-dev gawk flex</syntaxhighlight>}}</li>
{{keyboard|content=$ sudo apt-get install quilt build-essential subversion libncurses5-dev zlib1g-dev gawk flex}}</li>


<li>Clone Gits:  
<li>Clone Gits:  
{{keyboard|content=<syntaxhighlight lang="bash">
{{keyboard|content=$ mkdir petitboot
$ mkdir petitboot
$ cd petitboot
$ cd petitboot
$ git clone git://foxbrew.org/ps3linux/petitboot/openwrt.git
$ git clone git://foxbrew.org/ps3linux/petitboot/openwrt.git
$ git clone git://foxbrew.org/ps3linux/petitboot/openwrt_packages.git
$ git clone git://foxbrew.org/ps3linux/petitboot/openwrt_packages.git}}</li>
</syntaxhighlight>}}</li>
Foxbrew openwrt links are dead. Mirrors at https://github.com/jumoog/openwrt https://github.com/jumoog/openwrt_packages. Just replace the links with the GitHub ones.


<li>Link packages:
<li>Link packages:
{{keyboard|content=<syntaxhighlight lang="bash">packages to link are in the file ps3_petitboot_howto</syntaxhighlight>}}</li>
{{keyboard|content=packages to link are in the file ps3_petitboot_howto}}</li>


<li>Copy the configuration:
<li>Copy the configuration:
{{keyboard|content=<syntaxhighlight lang="bash">$ cp ps3_petitboot_config .config</syntaxhighlight>}}</li>
{{keyboard|content=$ cp ps3_petitboot_config .config}}</li>


<li>Build: <br />
<li>Build: <br />
The first time you build, a cross-compiling toolchain will be downloaded and built. This takes a very long time. Subsequent builds are much quicker (~10 minutes).
The first time you build, a cross-compiling toolchain will be downloaded and built. This takes a very long time. Subsequent builds are much quicker (~10 minutes).
{{keyboard|content=<syntaxhighlight lang="bash">$ make V=99</syntaxhighlight>}}</li>
{{keyboard|content=$ make V=99}}</li>


</ol>
</ol>
Line 48: Line 45:
(If you choose (M) it will be compiled but not included in the dtbImage. Useful for debugging a module that hangs the kernel :D)
(If you choose (M) it will be compiled but not included in the dtbImage. Useful for debugging a module that hangs the kernel :D)


{{keyboard|content=<syntaxhighlight lang="bash">
{{keyboard|content=$ cd package
$ cd package
$ git clone git://github.com/DirtyJerz/ps3-jupiter.git
$ git clone git://github.com/DirtyJerz/ps3-jupiter.git
$ cd ..
$ cd ..
Line 55: Line 51:
$ make kernel_menuconfig
$ make kernel_menuconfig
$ cd target/linux/ps3/petitboot/base-files/etc/init.d
$ cd target/linux/ps3/petitboot/base-files/etc/init.d
$ nano kexec --modify MODULES="ps3_jupiter_sta ps3_jupiter.."
$ nano kexec --modify MODULES="ps3_jupiter_sta ps3_jupiter.."}}
</syntaxhighlight>}}


===WPA===
===WPA===
Line 67: Line 62:
put those files in package/base-files and apply the patches with  
put those files in package/base-files and apply the patches with  


{{keyboard|content=<syntaxhighlight lang="bash">
{{keyboard|content=$ patch < Makefile.patch
$ patch < Makefile.patch
$ patch < image-config.in.patch}}
$ patch < image-config.in.patch
</syntaxhighlight>}}


you can now enter your SSID and wpa2 PSK in menuconfig and wpa_supplicant.conf will be added to /etc in petitboot.
you can now enter your SSID and wpa2 PSK in menuconfig and wpa_supplicant.conf will be added to /etc in petitboot.
Line 88: Line 81:
At this moment, the official GIT server is down :
At this moment, the official GIT server is down :


{{keyboard|content=<syntaxhighlight lang="bash">
{{keyboard|content=$ git clone git://foxbrew.org/ps3linux/petitboot/openwrt.git
$ git clone git://foxbrew.org/ps3linux/petitboot/openwrt.git
git clone git://foxbrew.org/ps3linux/petitboot/openwrt_packages.git}}
git clone git://foxbrew.org/ps3linux/petitboot/openwrt_packages.git
</syntaxhighlight>}}


{{keyboard|content=<syntaxhighlight lang="bash">
{{keyboard|content=$ cd openwrt/package
$ cd openwrt/package
ln -s ../../openwrt_packages/libs/jpeg jpeg
ln -s ../../openwrt_packages/libs/jpeg jpeg
ln -s ../../openwrt_packages/libs/libpng libpng
ln -s ../../openwrt_packages/libs/libpng libpng
Line 106: Line 96:
ln -s ../../openwrt_packages/net/dhcpcd dhcpcd
ln -s ../../openwrt_packages/net/dhcpcd dhcpcd
ln -s ../../openwrt_packages/net/wget wget
ln -s ../../openwrt_packages/net/wget wget
ln -s ../../openwrt_packages/utils/coreutils coreutils
ln -s ../../openwrt_packages/utils/coreutils coreutils}}
</syntaxhighlight>}}


<nowiki>#</nowiki> link here more packages if you want to
<nowiki>#</nowiki> link here more packages if you want to


{{keyboard|content=<syntaxhighlight lang="bash">
{{keyboard|content=$ ln -sf ../../openwrt_packages/utils/bc bc
$ ln -sf ../../openwrt_packages/utils/bc bc
ln -sf ../../openwrt_packages/utils/sg3-utils sg3-utils
ln -sf ../../openwrt_packages/utils/sg3-utils sg3-utils
ln -sf ../../openwrt_packages/utils/cifsmount cifsmount
ln -sf ../../openwrt_packages/utils/cifsmount cifsmount
Line 122: Line 110:
ln -sf ../../openwrt_packages/libs/db47 db47
ln -sf ../../openwrt_packages/libs/db47 db47
ln -sf ../../openwrt_packages/libs/gdbm gdbm
ln -sf ../../openwrt_packages/libs/gdbm gdbm
ln -sf ../../openwrt_packages/libs/libxml2 libxml2
ln -sf ../../openwrt_packages/libs/libxml2 libxml2}}
</syntaxhighlight>}}


{{keyboard|content=<syntaxhighlight lang="bash">
{{keyboard|content=$ cd ..
$ cd ..
cp ps3_petitboot_config_minimal .config
cp ps3_petitboot_config_minimal .config
make menuconfig # optional
make menuconfig # optional
make kernel_menuconfig # optional
make kernel_menuconfig # optional
make V=99
make V=99}}
</syntaxhighlight>}}


''' Old Source: graf_chokolo @ http://ps3wiki.lan.st/index.php/Petitboot '''
''' Old Source: graf_chokolo @ http://ps3wiki.lan.st/index.php/Petitboot '''
Please note that all contributions to PS3 Developer wiki are considered to be released under the GNU Free Documentation License 1.2 (see PS3 Developer wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following hCaptcha:

Cancel Editing help (opens in new window)