[Cbe-oss-dev] How to build petitboot

Jiafu Gao jiafu_gao at yahoo.com
Fri Aug 15 12:52:45 EST 2008


Hi, 

I am trying to build petitboot on ps3. First I need to build OpenWRT. I downloaded the source (version 7.09) from  [0] , and the patches on the page from [1]. However, I got some errors when applying some of the patches (The errors and output are at the end of this email.). 

I ignored the errors, and use the provided config (openwrt-config) to make OpenWRT. The build succeeded after a long time (maybe 30 minutes?). I saw a bunch of *.bin files in bin directory, such as openwrt-wr850g-squashfs.bin. 

Now now questions what is next? How to I generate otheros.bld from the binary petitiboot (and its other files) using openwrt? The instruction on [1] is not detailed enough. 

Please help. Best regards.

Jiafu

[0] http://downloads.openwrt.org/kamikaze/ 
[1] http://ozlabs.org/~jk/projects/petitboot

=========================================
The patch errors:
$ patch -p1 < add-udev-utils.patch
patching file package/udev/Makefile
Hunk #1 succeeded at 38 with fuzz 2 (offset 3 lines).
Hunk #2 succeeded at 58 (offset 3 lines).

$ patch -p1 < cleaner-biarch-specification.patch
patching file toolchain/Config.in
patching file toolchain/gcc/files/alternate-arch-cc.in
patching file toolchain/gcc/Makefile
Hunk #1 succeeded at 47 with fuzz 2 (offset 7 lines).
Hunk #2 FAILED at 69.
Hunk #3 FAILED at 102.
Hunk #4 FAILED at 111.
Hunk #5 succeeded at 129 (offset -2 lines).
3 out of 5 hunks FAILED -- saving rejects to file toolchain/gcc/Makefile.rej
patching file toolchain/binutils/Makefile
Hunk #2 FAILED at 35.
1 out of 2 hunks FAILED -- saving rejects to file toolchain/binutils/Makefile.rej

$ patch -p1 < use-new-kexec-tools.patch
patching file package/kexec-tools/Makefile
Hunk #1 FAILED at 9.
1 out of 1 hunk FAILED -- saving rejects to file package/kexec-tools/Makefile.rej

$ patch -p1 < bump-ps3-version-to-2.6.24-rc7.patch
patching file target/linux/generic-2.6/patches-2.6.24/001-ps3fb-prevent-use-after-free-of-fb_info.patch
patching file target/linux/generic-2.6/patches-2.6.24/002-ps3fb-fix-deadlock-on-kexec.patch
can't find file to patch at input line 138
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: kamikaze/target/linux/ps3/Makefile
|===================================================================
|--- kamikaze.orig/target/linux/ps3/Makefile
|+++ kamikaze/target/linux/ps3/Makefile
--------------------------
File to patch:

$ patch -p1 < udev-group-input-devices.patch
patching file package/udev/Makefile
Hunk #1 FAILED at 60.
1 out of 1 hunk FAILED -- saving rejects to file package/udev/Makefile.rej
patching file package/udev/files/20-input-grouping.rules


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/cbe-oss-dev/attachments/20080814/e50737c7/attachment.htm>


More information about the cbe-oss-dev mailing list