Editing Petitboot
Jump to navigation
Jump to search
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 1: | Line 1: | ||
[[Category: | [[Category:Linux]] | ||
Crossreference: [http://portal.gitbrew.org/wikibrew/Petitboot gitbrew.org::Petitboot] <br /> | Crossreference: [http://portal.gitbrew.org/wikibrew/Petitboot gitbrew.org::Petitboot] <br /> | ||
Line 11: | Line 11: | ||
<li>Install Dependencies: | <li>Install Dependencies: | ||
<pre> $ sudo apt-get install build-essential subversion libncurses5-dev zlib1g-dev gawk flex</pre></li> | |||
<li>Clone Gits: | <li>Clone Gits: <pre> $ mkdir petitboot | ||
$ cd petitboot | |||
$ mkdir petitboot | $ git clone git://foxbrew.org/ps3linux/petitboot/openwrt.git | ||
$ cd petitboot | $ git clone git://foxbrew.org/ps3linux/petitboot/openwrt_packages.git</pre></li> | ||
$ git clone git://foxbrew.org/ps3linux/petitboot/openwrt.git | |||
$ git clone git://foxbrew.org/ps3linux/petitboot/openwrt_packages.git | |||
</ | |||
<li>Link packages: | <li>Link packages: | ||
<pre> packages to link are in the file ps3_petitboot_howto</pre></li> | |||
<li>Copy the configuration: | <li>Copy the configuration: | ||
<pre> $ cp ps3_petitboot_config .config</pre></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). | ||
<pre> $ Make V=99</pre></li> | |||
</ol> | </ol> | ||
Line 37: | Line 33: | ||
===WIFI(SLIMS)=== | ===WIFI(SLIMS)=== | ||
# cd into package folder | # cd into package folder | ||
# clone my ps3-jupiter fork on github | # clone my ps3-jupiter fork on github | ||
# enable | # enable wireless-tools, kmod-ps3-jupiter, and wpa-supplicant(if needed see WPA below) as builtin (*) in menuconfig | ||
# enable | # enable wireless-extensions as builtin (*) in kernel_menuconfig | ||
you can use / to search in menuconfig (thanks jevin) | |||
(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) | ||
$ cd package | |||
$ cd package | $ git clone git://github.com/DirtyJerz/ps3-jupiter.git | ||
$ git clone git://github.com/DirtyJerz/ps3-jupiter.git | $ make menuconfig | ||
$ make kernel_menuconfig | |||
$ make menuconfig | |||
$ make kernel_menuconfig | |||
===WPA=== | ===WPA=== | ||
Line 67: | Line 55: | ||
put those files in package/base-files and apply the patches with | put those files in package/base-files and apply the patches with | ||
$ patch < Makefile.patch | |||
$ patch < Makefile.patch | $ patch < image-config.in.patch | ||
$ patch < image-config.in.patch | |||
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 86: | Line 74: | ||
* I created a new openwrt git repository which contains my patches and PS3 NOR and VFLASH block device drivers | * I created a new openwrt git repository which contains my patches and PS3 NOR and VFLASH block device drivers | ||
At this moment, the | <pre>At this moment, the officiel GIT server is down : | ||
$ git clone git://dukio.com/openwrt | |||
$ git clone git://nbd.name/packages.git openwrt_packages | |||
Use this GIT mirror instead : | |||
$ git clone git://git-hacks.com/linux-ps3/openwrt.git | |||
$ git clone git:// | $ git clone git://git-hacks.com/linux-ps3/openwrt_packages.git | ||
git clone git:// | |||
$ 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 | ||
ln -s ../../openwrt_packages/libs/libtwin libtwin | $ ln -s ../../openwrt_packages/libs/libtwin libtwin | ||
ln -s ../../openwrt_packages/utils/ps3-utils ps3-utils | $ ln -s ../../openwrt_packages/utils/ps3-utils ps3-utils | ||
ln -s ../../openwrt_packages/utils/petitboot petitboot | $ ln -s ../../openwrt_packages/utils/petitboot petitboot | ||
ln -s ../../openwrt_packages/utils/bzip2 bzip2 | $ ln -s ../../openwrt_packages/utils/bzip2 bzip2 | ||
ln -s ../../openwrt_packages/utils/sed sed | $ ln -s ../../openwrt_packages/utils/sed sed | ||
ln -s ../../openwrt_packages/utils/tar tar | $ ln -s ../../openwrt_packages/utils/tar tar | ||
ln -s ../../openwrt_packages/utils/less less | $ ln -s ../../openwrt_packages/utils/less less | ||
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 | ||
# link here more packages if you want to | |||
$ 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 | ||
ln -sf ../../openwrt_packages/net/nmap nmap | $ ln -sf ../../openwrt_packages/net/nmap nmap | ||
ln -sf ../../openwrt_packages/net/ncftp ncftp | $ ln -sf ../../openwrt_packages/net/ncftp ncftp | ||
ln -sf ../../openwrt_packages/mail/mutt mutt | $ ln -sf ../../openwrt_packages/mail/mutt mutt | ||
ln -sf ../../openwrt_packages/devel/make make | $ ln -sf ../../openwrt_packages/devel/make make | ||
ln -sf ../../openwrt_packages/devel/patch patch | $ ln -sf ../../openwrt_packages/devel/patch patch | ||
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 | ||
$ cd .. | $ cd .. | ||
cp ps3_petitboot_config_minimal .config | $ cp ps3_petitboot_config_minimal .config | ||
make menuconfig | $ make menuconfig | ||
make kernel_menuconfig | $ make kernel_menuconfig | ||
make V=99 | $ make V=99 | ||
</ | </pre> | ||
''' Source: graf_chokolo @ http://ps3wiki.lan.st/index.php/Petitboot ''' |