Difference between revisions of "WebOS Internals PDK Gentoo"

From WebOS Internals
Jump to navigation Jump to search
m
Line 85: Line 85:
  
 
make stage
 
make stage
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
Checked out revision 3922.
 +
mkdir -p ../../../downloads
 +
tar -C build/`basename http://navit.svn.sourceforge.net/svnroot/navit/trunk` -zcf ../../../downloads/navit-svn-r3922.tar.gz .
 +
rm -f build/.unpacked
 +
mkdir -p build
 +
tar -C build -z -x -f ../../../downloads/navit-svn-r3922.tar.gz
 +
mv build/navit build/src
 +
touch build/.unpacked
 +
rm -f build/.patched
 +
patch -p2 -d build/src -i `pwd`/patches/0001-apply-development-changes.patch;  patch -p2 -d build/src -i `pwd`/patches/0002-add-translations-for-new-menu.patch;
 +
patching file navit/speech/speech_dispatcher/speech_speech_dispatcher.c
 +
patching file navit/xpm/Makefile.am
 +
Hunk #1 FAILED at 1.
 +
Hunk #2 succeeded at 183 (offset -7 lines).
 +
Hunk #3 succeeded at 194 (offset -7 lines).
 +
Hunk #4 succeeded at 215 (offset -7 lines).
 +
1 out of 4 hunks FAILED -- saving rejects to file navit/xpm/Makefile.am.rej
 +
patching file navit/xpm/navit_svg2png
 +
patching file navit/navit_shipped.xml
 +
patching file po/de.po.in
 +
Hunk #2 succeeded at 1551 (offset -2 lines).
 +
Hunk #3 FAILED at 1586.
 +
1 out of 3 hunks FAILED -- saving rejects to file po/de.po.in.rej
 +
make[3]: *** [build/.patched] Error 1
 +
make[3]: Leaving directory `/srv/preware/cross-compile/packages/apps/navit'
 +
make[2]: *** [build_apps/navit] Error 2
 +
make[2]: Leaving directory `/srv/preware/cross-compile'
 +
make[1]: *** [staging-armv6] Error 2
 +
make[1]: Leaving directory `/srv/preware/cross-compile'
 +
make: *** [stage] Error 2

Revision as of 18:59, 18 January 2011

Preamble

The page at:

http://www.webos-internals.org/wiki/WebOS_Internals_PDK

Is written for (blah...) Ubuntu, there are some changes that need to be made to get this to work on Gentoo.

Also, build script needs major work. This whole process would go MUCH faster if you could tell make to thread gcc. You can't currently because it messes up wget. It's on the TODO list.


GCC

(MAYBE NOT! Hold on!)

You need gcc 3.* for the qemu portions to compile. Gentoo defaults to gcc 4.*

 emerge sys-devel/gcc:3.4

Change your default compiler:

# gcc-config -l
[1] i686-pc-linux-gnu-3.4.6 
[2] i686-pc-linux-gnu-3.4.6-hardened
[3] i686-pc-linux-gnu-3.4.6-hardenednopie
[4] i686-pc-linux-gnu-3.4.6-hardenednopiessp
[5] i686-pc-linux-gnu-3.4.6-hardenednossp
[6] i686-pc-linux-gnu-4.4.4 *
# gcc-config i686-pc-linux-gnu-3.4.6
# gcc-config -l
[1] i686-pc-linux-gnu-3.4.6 *
[2] i686-pc-linux-gnu-3.4.6-hardened
[3] i686-pc-linux-gnu-3.4.6-hardenednopie
[4] i686-pc-linux-gnu-3.4.6-hardenednopiessp
[5] i686-pc-linux-gnu-3.4.6-hardenednossp
[6] i686-pc-linux-gnu-4.4.4

Note the change in where the asterisk is. You need to run

source /etc/profile

in any open shell you intend on using gcc-3* in. Don't forget to set the default compiler back to whatever you used to build your whole system!

gcc-config i686-pc-linux-gnu-4.4.4


KERNEL

You need to make sure kvm support is compiled in your kernel.

 Processor type and features  --->
  [*] Paravirtualized guest support  --->
   [ ]   VMI Guest support (DEPRECATED)
   [*]   KVM paravirtualized clock
   [*]   KVM Guest support
   [ ]   Lguest guest support
   -*-   Enable paravirtualization code
   [ ]     Paravirtualization layer for spinlocks

and

 [*] Virtualization  --->
  <M>   Kernel-based Virtual Machine (KVM) support
   <M>     KVM for Intel processors support
   < >     KVM for AMD processors support
   <M>   Host kernel accelerator for virtio net (EXPERIMENTAL)
   <M>   Linux hypervisor example code
   <M>   PCI driver for virtio devices (EXPERIMENTAL)
   <M>   Virtio balloon driver (EXPERIMENTAL)


PACKAGES

 emerge sys-apps/fakeroot dev-embedded/scratchbox2 app-emulation/qemu-kvm app-arch/xar


(too be continued. making notes as I go)

PROCEDE

Start setup

Setup Scratchbox

make stage






Checked out revision 3922. mkdir -p ../../../downloads tar -C build/`basename http://navit.svn.sourceforge.net/svnroot/navit/trunk` -zcf ../../../downloads/navit-svn-r3922.tar.gz . rm -f build/.unpacked mkdir -p build tar -C build -z -x -f ../../../downloads/navit-svn-r3922.tar.gz mv build/navit build/src touch build/.unpacked rm -f build/.patched patch -p2 -d build/src -i `pwd`/patches/0001-apply-development-changes.patch; patch -p2 -d build/src -i `pwd`/patches/0002-add-translations-for-new-menu.patch; patching file navit/speech/speech_dispatcher/speech_speech_dispatcher.c patching file navit/xpm/Makefile.am Hunk #1 FAILED at 1. Hunk #2 succeeded at 183 (offset -7 lines). Hunk #3 succeeded at 194 (offset -7 lines). Hunk #4 succeeded at 215 (offset -7 lines). 1 out of 4 hunks FAILED -- saving rejects to file navit/xpm/Makefile.am.rej patching file navit/xpm/navit_svg2png patching file navit/navit_shipped.xml patching file po/de.po.in Hunk #2 succeeded at 1551 (offset -2 lines). Hunk #3 FAILED at 1586. 1 out of 3 hunks FAILED -- saving rejects to file po/de.po.in.rej make[3]: *** [build/.patched] Error 1 make[3]: Leaving directory `/srv/preware/cross-compile/packages/apps/navit' make[2]: *** [build_apps/navit] Error 2 make[2]: Leaving directory `/srv/preware/cross-compile' make[1]: *** [staging-armv6] Error 2 make[1]: Leaving directory `/srv/preware/cross-compile' make: *** [stage] Error 2