Port Debian Linux to the Tiny210 platform

Source: Internet
Author: User
I personally like Debian Linux, which is concise, elegant, lightweight, and stable. Debian has a wide range of utilities to choose from, and its Aptitude tool is very easy to use. it perfectly solves the problems of version matching and library dependency during compilation and installation in Linux. Therefore, in embedded development with sufficient hardware resources, you can consider porting Deb.

Preface:
I personally like Debian Linux, which is concise, elegant, lightweight, and stable. Debian has a wide range of utilities to choose from, and its Aptitude tool is very easy to use. it perfectly solves the problems of version matching and library dependency during compilation and installation in Linux. Therefore, Debian can be transplanted to embedded development with sufficient hardware resources. For example, the use of ARM11-based s36410 and Cotex-A8-based S5PV210 chip board (with this CPU with RAM and Flash how not too bad ?), It is more than enough to run a streamlined Debian system.

Statement:

The DebianLinux transplantation in this article does not include the transplantation of Bootloader and Linux kernel, which is already quite a lot on the Internet. This article describes how to create a file system based on the existing things on the Tiny210 development board, and then burn the file system to the development board for running. This file system contains the most basic content required for running Debian. you can use Aptitude to obtain the required tools, such as ftp and nfs.

Although the porting process is not complex, this article assumes that the reader has a certain Linux Foundation and has been familiar with Ubuntu or Debian distributions. This article will not describe some basic things, for example, how to use Aptitude. If you do not understand, you can leave a message and ask, preferably search by yourself. Finally, you need to refer to the Tiny210 user manual for more operations on the development board.

Preparations:

Obtain a set of Tiny210 development board and related materials.

Install Minitools in the related documents and connect to the development board.

Prepare a reliable SD card and card reader.

Debian desktop is installed on a PC or virtual machine (hereinafter referred to as a development host). The author uses Squeeze, make sure that the Debian can access the Internet and configure the source for its Aptitude (edit/etc/apt/source. list ).

Install the nfs server on the development host.

Steps:

Install bootstrap. this is a tool provided by Debian. it can be used to customize the installation system or generate a file system of the specified architecture:
Aptitude install debootstrap

Create a folder in the working directory:
Mkdir fs_debian_squeeze

Download the basic file system:
Debootstrap -- arch = armel -- foreign squeeze fs_debian_squeeze http://cdn.debian.net/debian

It takes about 30 minutes depending on the network speed;


Cd fs_debian_squeeze
Echo "proc/proc none 0 0"> etc/fstab
Mkdir-p usr/share/man/man1/
Mknod dev/console c 5 1

The last step may prompt that an existing instance exists.

Follow the instructions in the Tiny210 User Manual to connect the serial port of the Development Board and power on the following:

Start Minitools and enter the following in the kernel Commandline field:
Console = ttySAC0 init =/bin/sh root =/dev/nfs nfsroot = 192.168.86.231:/root/fs/dynamic ip = 192.168.86.237: 192.168.86.231: 192.168.86.253: 255.255.255.0: debian: eth0: off skipcali = yes ctp = 3

The nfsroot address is the address of the development host, and the ip address is: Temporary IP of the Development Board: Development host address: Gateway: Mask: host hostname: Nic device: off. modify the address as needed:

Click "quick start" and then click "quick start". the serial port terminal will enter the following interface:

Input:
Mount-t proc/proc

Input:
/Debootstrap -- second-stage

Another wait;

Input:
Echo ttySAC0>/etc/securetty

Input:
Echo "T0: 123: respawn:/sbin/getty 115200 ttySAC0 \ n">/etc/inittab

Enter passwd to set the root login password, and then enter reboot-f to restart the development board.

At this time, the development board will still stop waiting for the USB to be written. change the init field in KernelCommandline to/sbin/init:
Console = ttySAC0 init =/sbin/init root =/dev/nfs nfsroot = 192.168.86.231:/root/fs/dynamic ip = 192.168.86.237: 192.168.86.231: 192.168.86.253: 255.255.255.0: debian: eth0: off skipcali = yes ctp = 3

Click "quick start". The logon page is displayed;

Copy the driver module file: If you have another development board, you can use nfs to copy all the files in/lib/modules/of the Linux system that comes with the development board, if not, compile the kernel (Linux-3.0.8) on the CD and generate the folder modules under/mnt/lib:
Cp mini210_linux_defconfig. config
Make CROSS_COMPILE =/opt/FriendlyARM/toolschain/4.5.1/bin/arm-none-linux-gnueabi-
Make CROSS_COMPILE =/opt/FriendlyARM/toolschain/4.5.1/bin/arm-none-linux-gnueabi-INSTALL_MOD_PATH =/mnt/modules_install

Restart and use Minitools to quickly start the system.

Now, you can say that your basic Debian system has been completed. you can install the required utility using Aptitude, all the changes will be saved in the fs_debian_mini folder of your development host (do you know why you want to start nfs ?). After DIY, the system can create a file system image on the development host using tools provided by the friendly arm, then, according to the introduction in the Tiny210 User Manual, burn it into the Nand of the Development Board.

Others:

If the Mini/Tiny6410 Superboot is not supported by Minitools, the Linux startup parameters are changed to the U-Boot menu in steps 1 and 2 to modify the Linux startup parameters. If you have any questions or guidance, thank you.

Reference: http://code.google.com/p/mini6410-debian/wiki/Tutorial

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.