Difference between revisions of "Software projects/OS/Slackware/Build-system"
From Pandora Wiki
Linux-SWAT (talk | contribs) (→rc.local) |
m (Reverted edits by Linux-SWAT (talk) to last revision by Double7) |
||
Line 4: | Line 4: | ||
= Principles = | = Principles = | ||
− | + | * The target directory is likely to be a SD card. 8G recommended. | |
− | * The target directory is likely to be a SD card. 8G | + | * Phase 1 populates the target directory with the main ARMedslack Linux distribution. |
− | * Phase 1 populates the target directory with the main ARMedslack Linux distribution | ||
* Phase 2 populates the target directory with parts from official Open Pandora OS and tweaked stuff. | * Phase 2 populates the target directory with parts from official Open Pandora OS and tweaked stuff. | ||
* A specific part of rc.local is executed during the first boot on a Pandora. | * A specific part of rc.local is executed during the first boot on a Pandora. | ||
* The files folder contains tweaked stuff. | * The files folder contains tweaked stuff. | ||
− | * The pkg folder contains pre-built packages from previous alpha | + | * The pkg folder contains pre-built packages from a previous alpha build. |
* The sources folder contains sources for essential programs. | * The sources folder contains sources for essential programs. | ||
− | * Some proprietary stuff is missing, like 3D drivers | + | * Some proprietary stuff is missing, like 3D drivers. |
= Get the build system = | = Get the build system = | ||
− | * Get the archive [http://slackware.openpandora.org/pandora/index.php?dir=sl4p%2Fsl4p- | + | * Get the archive [http://slackware.openpandora.org/pandora/index.php?dir=sl4p%2Fsl4p-13.37%2Fbuild-system here.] |
− | * If you don't run a Slackware or a derivative, get the Slackware's installpkg script [http://slackware.openpandora.org/pandora/index.php?dir=sl4p%2Fsl4p-13.37%2Fbuild-system here.] Put it in /sbin and make it executable. | + | * If you don't run a Slackware or a derivative, get the Slackware's installpkg script [http://slackware.openpandora.org/pandora/index.php?dir=sl4p%2Fsl4p-13.37%2Fbuild-system here.] |
+ | * Put it in /sbin and make it executable. | ||
= Dependencies = | = Dependencies = | ||
Line 24: | Line 24: | ||
* If you don't know how to format a drive, use GParted under Linux, or run their [http://sourceforge.net/projects/gparted/files/latest/download?source=files Live-CD]. Here's the [http://gparted.sourceforge.net/display-doc.php?name=help-manual manual.] | * If you don't know how to format a drive, use GParted under Linux, or run their [http://sourceforge.net/projects/gparted/files/latest/download?source=files Live-CD]. Here's the [http://gparted.sourceforge.net/display-doc.php?name=help-manual manual.] | ||
* It's highly recommended to have a second partition formated as a swap. 256M or more is a good choice. | * It's highly recommended to have a second partition formated as a swap. 256M or more is a good choice. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
= Phase 1 = | = Phase 1 = | ||
Line 42: | Line 31: | ||
= Phase 2 = | = Phase 2 = | ||
* Run as su -. | * Run as su -. | ||
− | * | + | * For this very first alpha build, don't remove the SD card now, you have to edit ie.: /media/SLACK/etc/rc.d/rc.local |
− | = | + | = rc.local = |
− | + | * Remove double-comments in order to produce the needed packages during the first boot. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | * | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
* Put the SD card in the Pandora, and power it on. | * Put the SD card in the Pandora, and power it on. | ||
− | * The Pandora will generate | + | * The Pandora will generate all (or almost all) needed packages. |
− | * The | + | * The pandora will power off after having done the job. May last for one hour or two. |
* Remove the card. | * Remove the card. | ||
− | * Save | + | * Save /media/SLACK/tmp/*.t?z in the pkg folder of the build system. |
− | * Now, you can | + | * Now, you can boot normally. |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
[[Category:Development]] | [[Category:Development]] | ||
[[Category:Software]] | [[Category:Software]] | ||
[[Category:Slackware]] | [[Category:Slackware]] |
Revision as of 07:16, 18 August 2013
Contents
Disclaimer
- Same as here.
- The build system is GPL V3.
Principles
- The target directory is likely to be a SD card. 8G recommended.
- Phase 1 populates the target directory with the main ARMedslack Linux distribution.
- Phase 2 populates the target directory with parts from official Open Pandora OS and tweaked stuff.
- A specific part of rc.local is executed during the first boot on a Pandora.
- The files folder contains tweaked stuff.
- The pkg folder contains pre-built packages from a previous alpha build.
- The sources folder contains sources for essential programs.
- Some proprietary stuff is missing, like 3D drivers.
Get the build system
- Get the archive here.
- If you don't run a Slackware or a derivative, get the Slackware's installpkg script here.
- Put it in /sbin and make it executable.
Dependencies
- You need to download the official Open Pandora rootfs: http://openpandora.org/firmware/pandora-rootfs.tar.bz2
- Uncompress it as root anywhere and link it to the build directory as "pandora-rootfs".
- Format a 8G or more SD card with the Ext2 filesystem. To make explanations clear, name it SLACK.
- If you don't know how to format a drive, use GParted under Linux, or run their Live-CD. Here's the manual.
- It's highly recommended to have a second partition formated as a swap. 256M or more is a good choice.
Phase 1
- Run as su -.
- You'll see packages errors because it's a first run.
Phase 2
- Run as su -.
- For this very first alpha build, don't remove the SD card now, you have to edit ie.: /media/SLACK/etc/rc.d/rc.local
rc.local
- Remove double-comments in order to produce the needed packages during the first boot.
- Put the SD card in the Pandora, and power it on.
- The Pandora will generate all (or almost all) needed packages.
- The pandora will power off after having done the job. May last for one hour or two.
- Remove the card.
- Save /media/SLACK/tmp/*.t?z in the pkg folder of the build system.
- Now, you can boot normally.