Hack-A-N900/Development: Unterschied zwischen den Versionen

aus Metalab Wiki, dem offenen Zentrum für meta-disziplinäre Magier und technisch-kreative Enthusiasten.
Zur Navigation springenZur Suche springen
Zeile 6: Zeile 6:
 
<b>WARNING:</b> Accoring to this [http://talk.maemo.org/showthread.php?t=35122&page=2#19 post], installing packages from the SDK repository to your device might cripple the root fs and force you to reflash it. Anyway, the maemo scratchbox environment is awful and for small builds it is more convient to build directly on the device. Packages mentoned in this guide don't seem to cause serious problem.
 
<b>WARNING:</b> Accoring to this [http://talk.maemo.org/showthread.php?t=35122&page=2#19 post], installing packages from the SDK repository to your device might cripple the root fs and force you to reflash it. Anyway, the maemo scratchbox environment is awful and for small builds it is more convient to build directly on the device. Packages mentoned in this guide don't seem to cause serious problem.
  
=== Add extras, tools and sdk to /etc/apt/sources.list ===
+
=== Prerequisites ===
 +
 
 +
* [http://metalab.at/wiki/Hack-A-N900/First_Steps First Steps]
 +
 
 +
=== Add tools and sdk to /etc/apt/sources.list ===
 
<pre>
 
<pre>
#Extras
 
deb http://repository.maemo.org/extras/ fremantle free non-free
 
deb-src http://repository.maemo.org/extras/ fremantle free
 
 
 
# TOOLS
 
# TOOLS
 
deb http://repository.maemo.org/ fremantle/tools free
 
deb http://repository.maemo.org/ fremantle/tools free
Zeile 20: Zeile 20:
 
deb-src http://repository.maemo.org/ fremantle/sdk free
 
deb-src http://repository.maemo.org/ fremantle/sdk free
 
</pre>
 
</pre>
 
 
  
 
=== Install build tools ===
 
=== Install build tools ===

Version vom 14. April 2010, 14:16 Uhr


ALWAYS CREATE A BACKUP BEFORE TINKERING WITH YOUR N900

ON-Device - Getting Started

WARNING: Accoring to this post, installing packages from the SDK repository to your device might cripple the root fs and force you to reflash it. Anyway, the maemo scratchbox environment is awful and for small builds it is more convient to build directly on the device. Packages mentoned in this guide don't seem to cause serious problem.

Prerequisites

Add tools and sdk to /etc/apt/sources.list

# TOOLS
deb http://repository.maemo.org/ fremantle/tools free
deb-src http://repository.maemo.org/ fremantle/tools free

# SDK
deb http://repository.maemo.org/ fremantle/sdk free
deb-src http://repository.maemo.org/ fremantle/sdk free

Install build tools

apt-get install bzip2 cpio cpp dpkg-dev g++ g++-4.2 gcc libc6-dev libstdc++6-4.2-dev \
libstdc++6-4.2-dbg patch perl perl-modules autoconf automake1.9 libtool flex bison gdb

On default setups it will fail because of apt-get saving temporary files on the root partition.

Just clean the apt cache (

apt-get clean

) and repeat the above command.


You might want to install kernel headers:

apt-get install linux-kernel-headers