Building petitboot with OpenWRT ------------------------------- NOTE: The example commands provided assume that you checkout the necessary repositories to the following output directory names: /openwrt-repos |--/trunk |--/packages |--/patches 1) Check out OpenWRT trunk repository from git or svn $ git clone git://nbd.name/openwrt.git trunk OR $ svn co https://svn.openwrt.org/openwrt/trunk trunk 2) Check out OpenWRT packages repository from svn or git $ git clone git://nbd.name/packages.git packages OR $ svn co https://svn.openwrt.org/openwrt/packages packages 3) Get OpenWRT patches from Geoff's page http://www.kernel.org/pub/linux/kernel/people/geoff/cell/ps3-petitboot/ Download tarball and extract. For this example the extracted directory will be called 'patches'. The 'patches' directory should have patch sub-directories for 'trunk' and 'packages'. 4) Apply the patch series for both 'trunk' and 'packages' $ cd trunk $ ln -s ../patches/trunk patches $ quilt push -a $ cd packages $ ln -s ../patches/packages patches $ quilt push -a 5) Symbolically link all or necessary packages to 'trunk/package' * If you symbolically link all packages into trunk, you will have to deal with all packages in menuconfig, so I recommend just linking just the packages you need. $ ln -s packages/*/* trunk/package/ OR $ ln -s packages/libs/jpeg trunk/package/jpeg $ ln -s packages/libs/libpng trunk/package/libpng $ ln -s packages/libs/libtwin trunk/package/libtwin $ ln -s packages/utils/petitboot trunk/package/petitboot $ ln -s packages/utils/ps3-utils trunk/package/ps3-utils 6) Use the appropriate defconfig to build image The patches should create defconfig-petitboot in 'trunk' top-level directory * OpenWRT is a little bit picky about the .config at very 1st run! Ways to set your .config at 1st run: 1) run make menuconfig and manually choose alternate config from menu 2) copy your desired defconfig to '$HOME/.openwrt/defconfig' 3) run make menuconfig, then save and exit, then copy your desired defconfig to 'trunk/.config' * After your initial run of make, you should be able to just copy your desired defconfig to 'trunk/.config' To make any changes to the configuration: $ make menuconfig 7) Build the image $ make OR $ make V=99 // verbose option This should create 'trunk/bin/otheros-ps3.bld'