Use SkyEye to run Uboot, linux-2.6.31 and BusyBox

Source: Internet
Author: User
Tags chmod file system mkdir pack svn

LDD6410 Project website is:

http://code.google.com/p/ldd6410

Code is managed via SVN and gets the method:

# Non-members may check out a read-only working copy anonymously over HTTP. SVN checkout Http://ldd6410.googlecode.com/svn/trunk/ldd6410-read-only

This page explains how to use the LDD6410 Engineering code to run the Uboot, 2.6.31 kernel, and file system in SkyEye. Since SkyEye does not support s3c6410 at the moment, the images we generate are s3c2410. Support How to function:

CS8900 Network card

320*240 16BPP LCD

Tftp

Nfs

U-boot

linux-2.6.31

BusyBox

Guide linux-2.6.31 from U-boot

Host-side configuration

Install SkyEye

Executing on host side:

  sudo apt-get install SkyEye

Install the Configure TFTP server

Executing on host side:

  sudo apt-get install tftpd-hpa
  sudo mkdir/home/tftp
  sudo chmod 777/home/tftp

sudo vim/etc/default/tftpd-hpa Modify the contents of the file as follows:

  run_daemon= "Yes
  options="-l-c-s/home/tftp "

To turn on the TFTP service:

  SUDO/ETC/INIT.D/TFTPD-HPA start
  starting hpa ' s tftpd:in.tftpd.

SkyEye Target downloads files from the host in the following ways:

  Tftp-r file-g 10.0.0.1

Install Configure Server for NFS

Executing on host side:

  Apt-get Install nfs-kernel-server
  cd/home
  sudo ln-s tftp NFS

sudo vim/etc/exports Modify the contents of this file as follows:

  /home/nfs * (SYNC,RW)

Run EXPORTFS-RV to open NFS services:

   /etc/init.d/nfs-kernel-server restart

The way to mount NFS on SkyEye target is:

   Mount-t Nfs-o nolock 10.0.0.1:/home/nfs/mnt

Compiling uboot, kernels, and file systems

Compiling u-boot

Enter the project source code directory ldd6410/s3c-u-boot-1.1.6, run make smdk2410_config, then run make to get u-boot image.

Compiling the kernel

Copy the LDD6410 project Ldd6410/patches/2410-skyeye_ldd6410-project.patch to the Linux 2.6.31 source directory and Play Patch:

  Patch-p0 <2410-skyeye_ldd6410-project.patch

Then run: Make Smdk2410_skyeye_defconfig configures the kernel make vmlinux to get the vmlinux image of the kernel.

Make root file System initrd.img

Enter the following directory for LDD6410 Engineering code: ldd6410/utils/busybox-1.15.1 Run make Menuconfig Select the necessary items, and then run Make,make install. The result of the make install run is to generate Install,busybox corresponding LINUXRC,/bin,/sbin,/usr is in the directory. With the BusyBox after the production of initrd.img is much easier, just say more cumbersome. As a command demo: Create an image file and hang to the INITRD directory

  mkdir initrd
  dd if=/dev/zero of=initrd.img bs=1k count=4096
  mke2fs-f-v initrd.img
  Mount-o Loop initrd.img I Nitrd

Add BusyBox to this image file

  CD INITRD
  cp-r ... /_install/*.

Create the necessary directory

  mkdir proc Lib etc Dev Root home var tmp
  chmod 777 TMP

Setting up device files

  CD Dev
  mknod-m 644 console C
  mknod-m 644null
  mknod-m 640 Ram B mknod-m
  644 mem C 11
  
   cd..
  

Create a script file Etc/inittab that reads as follows:

  :: Sysinit:/etc/init.d/rcs
  :: askfirst:-/bin/sh
  :: Restart:/sbin/init
  :: Ctrlaltdel:/sbin/reboot :
  : Shutdown:/bin/umount-a-R
  :: Shutdown:/sbin/swapoff-a

Set this script Execute permissions

  chmod 644 Etc/inittab

Create a script file Etc/init.d/rcs that reads as follows:

  #!/bin/sh
  /bin/mount-t proc none/proc
  /sbin/ifconfig lo 127.0.0.1 up
  /sbin/ifconfig eth0 10.0.0.2 netmask 2 55.0.0.0 up
  hostname skyeye
  mkdir/var/tmp
  mkdir/var/log mkdir/var/run mkdir/var/lock
  / Bin/ash

Set this script Execute permissions

  chmod 755 Etc/init.d/rcs

The final step is to perform the actual write operation to generate INITRD.IMG

  CD..
  Umount INITRD

Run

Put the compiled u-boot, Vmlinux, initrd.img into the same directory, and copy vmlinux into the TFTP server root directory. Can run Linux directly, using http://ldd6410.googlecode.com/files/ldd6410-skyeye-pack.tar.gz skyeye-standalone.conf configuration file, combined with kernel image Vmlinux:sudo Skyeye-e vmlinux-c skyeye-standalone.conf can also start U-boot first, Then download the vmlinux in the Uboot and start it up, using http://ldd6410.googlecode.com/files/ldd6410-skyeye-pack.tar.gz The skyeye-with-uboot.conf configuration file in conjunction with the previously compiled u-boot:

   sudo skyeye-e u-boot-c skyeye-with-uboot.conf

After the u-boot is started, download vmlinux from the TFTP server:

   TFTP 0xc0000000 Vmlinux

Then run the Bootelf 0xc0000000,linux kernel to start.

The http://ldd6410.googlecode.com/files/ldd6410-skyeye-pack.tar.gz contains images that are already done and can be run directly.

This article is from the "Song Baohua blog" blog, please be sure to keep this source http://21cnbao.blog.51cto.com/109393/213771

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.