Within this article, we describe how we have set up an embedded debian (SID) on a mini2440 / friendlyarm development board, and how we have installed all the fun stuff, as Java and the JNI (native interface), X11, the GCC/G++ toolchain and much more.
We will use a SD-Card to store the root file system (just because of the bigger storage size)
Therefore we have to create the partitions on the card:
Bootloader
We will use the standard bootloader provided (vivi).
First of all, we have to set up the boot parameters properly. This is done using the serial console and supervivi. Switch the boot-switch to NOR and power on the mini2440. On the serial console, you will now get the output of the supervivi console:
##### FriendlyARM BIOS 2.0 for 2440 #####
[x] format NAND FLASH for Linux
[v] Download vivi
[k] Download linux kernel
[y] Download root_yaffs image
[a] Absolute User Application
[n] Download Nboot for WinCE
[l] Download WinCE boot-logo
[w] Download WinCE NK.bin
[d] Download & Run
[z] Download zImage into RAM
[g] Boot linux from RAM
[f] Format the nand flash
[b] Boot the system
[s] Set the boot parameters
[u] Backup NAND Flash to HOST through USB(upload)
[r] Restore NAND Flash from HOST through USB
[q] Goto shell of vivi
We use s to set the boot parameters:
The press s, then “linux_cmd_line” to set the boot parameters appended to the boot arguments of the linux kernel.
The boot arguments are:
console=ttySAC0,115200 noinitrd root=/dev/mmcblk0p2 rootwait=4 rw ip=dhcp
This tells the kernel to mount the second partition of the SD-Card as root file system (read-and-writeable)
Own Kernel
Building your own kernel, requires you to have a working cross compilation environment. Please take a look at: http://www.friendlyarm.net for the toolchain.
You can optain the used config file here: download Kernel config
Simply copy the config file into your kernel source directory and name it “.config”. Then compile your kernel. The kernel will be located in
in the supervivi console press “k” and start the upload through “USB” on your pc.
Your new kernel is now flashed into the NAND storage of your mini2440/friendlyarm.
Debootstrapping Debian
Note, this article is based upon: http://code.google.com/p/mini2440/wiki/Emdebian
Download Kernel config
Recent Comments