Creating Emdebian file system for ARM
Posted: Tue Jul 19, 2011 5:24 pm
To create a file system for the ARM you can use http://linux.die.net/man/8/debootstrap utility.
First, create a debootstrap directory and change to it:
The using the utility as root you can create an initial file system.Note: if you have no debootstrap command, you must install the debootstrap package
The --arch show that the target is ARM.
The --foreign show the utility to do the initial unpack phase of bootstrapping only, for example if the target architecture does not match the host architecture. A copy of debootstrap sufficient for completing the bootstrap process will be installed as /debootstrap/debootstrap in the target filesystem.
The next parameter shows the name of the distro to use (testing/stable/etch/sid/lenny/squeeze).
The grip/ is the directory to download the packages, and final parameter is the URL to get the packages from.
After this step you have successfully downloaded a file system, but is is incomplete.The file system needs to be configured.
In these steps you make sure that the file system will have initial fstab and you create console and ttyAM0 nods in the /dev system to ensure access to console after boot.
Note: creating the serial device depends on your hardware platform - the name of the device and the parameters to configure it.
First, create a debootstrap directory and change to it:
- Code: Select all
$mkdir /opt/debootstrap
$cd /opt/debootstrap
The using the utility as root you can create an initial file system.Note: if you have no debootstrap command, you must install the debootstrap package
- Code: Select all
$debootstrap --arch=armel --foreign lenny grip/ http://www.emdebian.org/grip/
The --arch show that the target is ARM.
The --foreign show the utility to do the initial unpack phase of bootstrapping only, for example if the target architecture does not match the host architecture. A copy of debootstrap sufficient for completing the bootstrap process will be installed as /debootstrap/debootstrap in the target filesystem.
The next parameter shows the name of the distro to use (testing/stable/etch/sid/lenny/squeeze).
The grip/ is the directory to download the packages, and final parameter is the URL to get the packages from.
After this step you have successfully downloaded a file system, but is is incomplete.The file system needs to be configured.
- Code: Select all
$cd grip/
$echo "proc /proc proc none 0 0" >>etc/fstab
$echo "EP9302" >etc/hostname
$mknod dev/console c 5 1
$mknod dev/ttyAM0 c 204 64
$echo 'http://www.emdebian.org/grip/ lenny main' >>etc/apt/sources.list
In these steps you make sure that the file system will have initial fstab and you create console and ttyAM0 nods in the /dev system to ensure access to console after boot.
Note: creating the serial device depends on your hardware platform - the name of the device and the parameters to configure it.