PdaXrom: pdaXrom-builder

From OESF

(Difference between revisions)
Jump to: navigation, search
(Mini HOWTO about the building of the pdaXrom distribution)

Line 43:

Line 43:

mkdir -p pdaXrom-builder/bootdisk/feed
mkdir -p pdaXrom-builder/bootdisk/feed
 +
== Choose a platform from ready configurations ==
-
To be continued...
+
Enter to the builder directory:
 +
cd pdaXrom-builder
 +
 
 +
Config-sys directory includes examples of ready configurations.
 +
 
 +
The structure of directory names is:<br>
 +
<platform>-<architecture CPU>-<type of mathematical coprocessor>-<version of C compiler>-<version of glibc>-<version of kernel>
 +
 
 +
Explore what directory corgi-xscale-softvfp-3.3.2-2.2.5-2.4.18 includes:
 +
:Corgi platform:
 +
::Processor Intel Xscale PXA (armv5tel architecture by ARM classification)
 +
::Coprocessor – vector float point unit emulation
 +
::Version of gcc 3.3.2
 +
::Version of glibc 2.2.5
 +
::Version of Linux kernel 2.4.18
 +
::File config_xtools has the configuration for compiling cross-development tools for given architecture.
 +
::File config_qtopia21 has the configuration for compile distribution.
 +
 
 +
== Compile cross-development tools ==
 +
 
 +
Copy the file config_xtools to the builder's top directory with a name .config:
 +
cp config-sys/corgi-xscale-softvfp-3.3.2-2.2.5-2.4.18/config_xtools .config
 +
 
 +
Set a directory where will be install compiled tools:
 +
 
 +
make menuconfig
 +
 
 +
 
 +
[[Image:Pdaxrom-builder-pic01.png|pic01]]
 +
 
 +
 
 +
Go to submenu Target Architecture
 +
 
 +
[[Image:Pdaxrom-builder-pic02.png|pic02]]
 +
 
 +
 
 +
Change prefix for cross-development tools
 +
 
 +
[[Image:Pdaxrom-builder-pic03.png|pic03]]

Revision as of 21:24, 24 February 2005

Contents

Getting pdaX86

PdaX86 is a Linux distribution built with pdaXrom-builder for x86 based PCs. The main feature of this Linux distribution is the ability to be the host OS for the pdaXrom-builder scripts. To get it, download the bootable CD image, from http://mirror1.pdaxrom.org/pdaX86/ and burn it on a CD-R or a CD-RW disk. Reboot the system from this CD and login as root.

To work with the builder you need space on a hard drive. If a Linux partition exists, you can use it. In this case, all setting will be placed in the partition's /.pdaX86 directory. If the partition is FAT, all settings will be written in the root directory, in a file named .pdaX86.dsk. If there aren't any partition or you don't have free space on them, you may use fdisk or cfdisk to create/add partitions. To install the system, enter setup and choose a partition from the menu. After that, enter reboot. On the next boot, pdaX86 will use the saved settings from the selected partition.

Note: Setup doesn’t destroy the selected partition, just creates a directory or file there for storing the settings. Just remove the.pdaX86 directory (Linux partition) or .pdaX86.dsk file (for FAT) if you no longer need the saved settings.

Getting pdaXrom-builder and necessary sources

For building pdaX distributions it's necessary to have:

  • pdaX86 as host OS
  • pdaXrom-builder scripts
  • program sources


In order to build the distribution, it's good if the computer meets the following requiments:

  • powerful CPU with a minimum of 512 MB of RAM
  • at least 15 GB of hard disk space
  • it’s desirable to have 512MB of swap space as a minimum


If you have permanent connection to the Internet then the program sources will be automatically downloaded from original sites during the build of the system, or they can be downloaded from http://mirror1.pdaxrom.org/source/. You can build the distribution without connecting to the Internet if all sources are available on the hard drive.

Setup pdaXrom-builder

The structure of the compressed pdaXrom-builder file: pdaXrom-builder-03.12_09.02.05.tar.bz2, where

  • pdaXrom-builder – name of the system
  • 03.12 – time of the archive
  • 09.02.05 – date of the archive
  • tar.bz2 – tar-bzip2 archive extension


  • Select a directory, where the builder will be installed
cd /some/where
  • Unpack the file:
tar jxf pdaXrom-builder-03.12_09.02.05.tar.bz2
  • Make a link to the sources
ln -s <path to sources> pdaXrom-builder/src
  • Create a directory for the compiled binary packages. Usually it's pdaXrom-builder/bootdisk/feed:
mkdir -p pdaXrom-builder/bootdisk/feed

Choose a platform from ready configurations

Enter to the builder directory:

cd pdaXrom-builder

Config-sys directory includes examples of ready configurations.

The structure of directory names is:
<platform>-<architecture CPU>-<type of mathematical coprocessor>-<version of C compiler>-<version of glibc>-<version of kernel>

Explore what directory corgi-xscale-softvfp-3.3.2-2.2.5-2.4.18 includes:

Corgi platform:
Processor Intel Xscale PXA (armv5tel architecture by ARM classification)
Coprocessor – vector float point unit emulation
Version of gcc 3.3.2
Version of glibc 2.2.5
Version of Linux kernel 2.4.18
File config_xtools has the configuration for compiling cross-development tools for given architecture.
File config_qtopia21 has the configuration for compile distribution.

Compile cross-development tools

Copy the file config_xtools to the builder's top directory with a name .config:

cp config-sys/corgi-xscale-softvfp-3.3.2-2.2.5-2.4.18/config_xtools .config

Set a directory where will be install compiled tools:

make menuconfig


pic01


Go to submenu Target Architecture

pic02


Change prefix for cross-development tools

pic03

Personal tools