Table of contents

A little history Thinking about embedded linux probably leads to first try of porting linux to different architecture. I did google research (I know I should probably read mailing list archive) and found that there were few attempt to port linux to different platform. There is no clear information about which port of linux was first. This is probably because many hackers didn’t report their effort. Arguably earliest out-of-tree version was probably for Acron A5000 (arm), Motorola 68000 (m68k) around Spring/Summer of 1994. I found also notes about SPARC port in 1993. Some sources also tells story about 1993 Amiga and Atari port. But first port that get in to official linux tree was DEC Alpha.

[1][2] So linux is already 22 years old and first port start when it was 2-3 years old, so we can assume it is mature enough to support most of non-x86 architectures.

Get linux and build it To deal with our

embedded board we need operating system or some kind of software that will allow us to use board features. Right now to boot system we need at least kernel. So we have to prepare kernel for board of choice versatilepb. Let’s start with cloning Linux repository: git clone https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git and configure kernel for

versatilepb. cd linux make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- versatile_defconfig It looks some feature is disabled in

versatile_defconfig. I mean CONFIG_AEABI. It specifies file format, data types, register usage and other things. The main difference between EABI and ABI is that privileged instructions are allowed in application code. More about EABI here. To enable this option run: make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- menuconfig and go to:

IP: DHCP support and can be found under: -> Networking support (NET [=y]) -> Networking options -> TCP/IP networking (INET [=y]) -> IP: kernel level autoconfiguration (IP_PNP [=y]) Second is :

previous post we can use bare-metal qemu, but not with uImage kernel. This is special U-Boot kernel, so easiest way will be using it with bootloader. We will figure out how to do this in next section about tftp and qemu network configuration. TODO: add picture of configuration in intro – vdb, link it here Target configuration will consist on providing kernel through tftp server using U-Boot. Also want to use NFS root filesystem to boot our small distro. As it is in real development environment. NOTE: During compilation process you can encounter error like this: (…) UIMAGE arch/arm/boot/uImage “mkimage” command not found – U-Boot images will not be built make1: *** [arch/arm/boot/uImage] Error 1 make: *** [uImage] Error 2 Of course it means that we need mkimage to create U-Boot image, so:

Update: in Debian jessie/sid this package was replaced by u-boot-tools. We have to use uImage special build because load and execute address differes from board to board. If we will use vmlinux image then addresses should be manually modified. So using uImage is easiest

Kudos 1

UNIX/Linux History 2 [The History of ARM Linux]5