<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mediawiki.compulab.com/w/index.php?action=history&amp;feed=atom&amp;title=Linux%3A_Debian%3A_Minimal_ARM_filesystem</id>
	<title>Linux: Debian: Minimal ARM filesystem - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mediawiki.compulab.com/w/index.php?action=history&amp;feed=atom&amp;title=Linux%3A_Debian%3A_Minimal_ARM_filesystem"/>
	<link rel="alternate" type="text/html" href="https://mediawiki.compulab.com/w/index.php?title=Linux:_Debian:_Minimal_ARM_filesystem&amp;action=history"/>
	<updated>2026-09-02T08:18:12Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>https://mediawiki.compulab.com/w/index.php?title=Linux:_Debian:_Minimal_ARM_filesystem&amp;diff=985&amp;oldid=prev</id>
		<title>Mike at 07:01, 1 June 2010</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.compulab.com/w/index.php?title=Linux:_Debian:_Minimal_ARM_filesystem&amp;diff=985&amp;oldid=prev"/>
		<updated>2010-06-01T07:01:23Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Overview ==&lt;br /&gt;
Debian Linux for ARM processors provides thousands of software packages. CompuLab provides minimal Debian filesystem that can be used as a basis for custom filesystem creation. The minimal filesystem packages include archive of basic Debian system created with [http://linux.die.net/man/8/debootstrap debootsrap].&lt;br /&gt;
&lt;br /&gt;
== Suites ==&lt;br /&gt;
The basic Debian system is available for the following Debian suites:&lt;br /&gt;
* [http://www.compulab.co.il/workspace/sw/debian/releases/lenny-minimal-armel.tar.bz2 Lenny] - [http://www.debian.org/releases/stable/ stable]&lt;br /&gt;
* [http://www.compulab.co.il/workspace/sw/debian/releases/squeeze-minimal-armel.tar.bz2 Squeeze] - [http://www.debian.org/releases/testing/ testing]&lt;br /&gt;
* [http://www.compulab.co.il/workspace/sw/debian/releases/sid-minimal-armel.tar.bz2 Sid] - [http://www.debian.org/releases/unstable/ unstable]&lt;br /&gt;
&lt;br /&gt;
== Custom filesystem development ==&lt;br /&gt;
The basic Debian system allows development of custom filesystem images either on-target in NFS-rooted environment or on-host using QEMU ARM emulation.&lt;br /&gt;
&lt;br /&gt;
=== NFS-rooted environment ===&lt;br /&gt;
* Extract the basic Debian filesystem to a directory on the host workstation and export that directory through NFS:&lt;br /&gt;
 mkdir -p /path/to/armel/debian/sid&lt;br /&gt;
 cd /path/to/armel/debian/sid&lt;br /&gt;
 sudo tar xjvf /path/to/sid-minimal-armel.tar.bz2&lt;br /&gt;
 sudo sh -c 'echo &amp;quot;/path/to/armel/debian/sid 192.168.0.0/24(rw,no_root_squash,sync)&amp;quot; &amp;gt;&amp;gt; /etc/exports'&lt;br /&gt;
 sudo exportfs -a&lt;br /&gt;
* Ensure that kernel command line contains parameters required to boot the target system with root on NFS, for example&lt;br /&gt;
 setenv bootargs &amp;quot;root=/dev/nfs nfsroot=&amp;lt;hostip&amp;gt;:/path/to/armel/debian/sid ip=dhcp console=ttyS2,38400&amp;quot;&lt;br /&gt;
* Boot the target.&lt;br /&gt;
* Login as {{parameter|root}}, password {{cmd|111111}}&lt;br /&gt;
* Use [http://linux.die.net/man/8/apt-get apt-get] package handling utility to install required packages&lt;br /&gt;
&lt;br /&gt;
== QEMU environment ==&lt;br /&gt;
* Setup binfmt_misc support and statically built QEMU as described in [[Linux:_Development_for_ARM_modules#Chroot_with_QEMU|Chroot with QEMU]] section of the [[Linux:_Development_for_ARM_modules|Linux Development for ARM modules]] article.&lt;br /&gt;
* Extract the basic Debian filesystem to a directory on the host workstation&lt;br /&gt;
 mkdir -p /path/to/armel/debian/sid&lt;br /&gt;
 cd /path/to/armel/debian/sid&lt;br /&gt;
 sudo tar xjvf /path/to/sid-minimal-armel.tar.bz2&lt;br /&gt;
* Copy static QEMU into the basic Debian system:&lt;br /&gt;
 cp /path/to/static/qemu-arm* /path/to/armel/debian/sid/usr/local/bin&lt;br /&gt;
* Enter the ARM Debian environment:&lt;br /&gt;
  sudo chroot /path/to/armel/debian/sid /bin/sh&lt;br /&gt;
* Use [http://linux.die.net/man/8/apt-get apt-get] package handling utility to install required packages&lt;br /&gt;
&lt;br /&gt;
== Deployment ==&lt;br /&gt;
&lt;br /&gt;
=== Reducing target filesystem size ===&lt;br /&gt;
{{Warning|The following commands must be executed on target or in chroot'ed environment. Execution of the below commands on the host system may severely damage it!}}&lt;br /&gt;
* Remove packages that were automatically installed to satisfy dependencies for some package and that are no more needed&lt;br /&gt;
 apt-get --purge autoremove&lt;br /&gt;
* Remove packages that are not needed on the target system, for example:&lt;br /&gt;
 apt-get purge man&lt;br /&gt;
* Clean local repository of retrieved package files&lt;br /&gt;
 apt-get clean&lt;br /&gt;
* If the target is not intended to run package management tools remove Debian package databases:&lt;br /&gt;
 find  /var/lib/dpkg/ /var/lib/apt -type f -exec rm {} \;&lt;br /&gt;
* Remove unneeded data in {{filename|/usr/share}}, for instance&lt;br /&gt;
 rm -fr /usr/share/doc/ /usr/share/info/&lt;br /&gt;
&lt;br /&gt;
=== Creating NAND flash image ===&lt;br /&gt;
After the filesystem modifications are complete follow the [[Linux_Development_for_XScale_modules#Creating_NAND_flash_images|Creating NAND flash images]] guide to create an image ready for deployment onto the system NAND flash.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Linux: Development for ARM modules]]&lt;br /&gt;
* [[CM-X300: Linux: Debian]]&lt;br /&gt;
* [http://www.aurel32.net/info/debian_arm_qemu.php Debian on an emulated ARM machine]&lt;br /&gt;
* [http://wiki.debian.org/ArmEabiPort ArmEabiPort - Debian Wiki]&lt;/div&gt;</summary>
		<author><name>Mike</name></author>
		
	</entry>
</feed>