Customize Linux to P1010rdb with Yocto and start Linux

Source: Internet
Author: User
Tags yocto

I. Custom Linux via Yocto

1. Installing Yocto

Yocto can only be compiled under a non-root user, so create a new user first.

    Useradd Chen Passwd-d Chen restarted the computer and entered Chen's user .

Add root permission to Chen user, vim/etc/sudoers 99th line add Chen All= (all) all

                       Chen all = nopasswd:/usr/bin/yum

mkdir yocto Copy the data from the disc to Yocto, the disc name (Yocto soure ISO).

Add executable permissions chmod +x install./install Follow the steps to mount the Yocto.

2. Compiling Linux files

Enter the installation folder for Yocto:

    ./scripts/host-prepare.sh Configure the environment variables for Yocto.

    source./fsl-setup-poky-m P1010rdb starts compiling the build file.

Choose a compilation method, here are the following:

Fsl-image-minimal

Fsl-image-core

Fsl-image-full

Fsl-image-flash

Fsl-toolchain

Package-name (USDPAA)

I chose the fsl-image-minimal:

    Bitbake Fsl-image-minimal

At compile time will be prompted missing a library, directly with the Yum Install Library name continue to compile the line

Waiting for compilation to complete under the Qoriq-sdk-v1.2-20120614-yocto/build_p1010rdb_release/tmp/deploy/images path will generate a compiled file system, kernel image, and drive tree.

    

Tips:

To leave at least 20g of hard disk space for the file to use.

Second, start Linux

Here are two ways to start Linux:

1. Direct boot via TFTP

Open the Start_here.html document in the installation package and locate the development deployment chapter to ensure that the TFTP server on the host can be used according to the documentation.

To configure the board's startup parameters:

      setenv ipaddr 192.168.1.10

      Setenv ServerIP 192.168.1.20

      Setenv Gatewayip 192.168.1.1

      Setenv Bootargs ' root=/dev/ram rw ramdisk_size=10000000 console=ttys0,115200 '

Saveenv

Start Linux:

TFTP 0x1000000 Uimage-p1010rdb.bin

TFTP 0x2000000 Fsl-image-minimal-p1010rdb.rootfs.ext2.gz.u-boot

TFTP 0xc00000 UIMAGE-P1010RDB.DTB

Bootm 0x1000000 0x2000000 0xc00000 started Linux successfully.

2. Booting via NFS server

Build an NFS server on the host, Mkdir/tftpboot/systembuilder, CP P1010rdb-rootfs.tar.gz/tftpboot/systembuilder

Tar XF p1010rdb-rootfs.tar.gz, chmod 777/tftpboot/systembuilder-r

    Vi/etc/exports Join/tftpboot/systembuilder * (rw, No_root_squash, async)

To configure the startup parameters:

      setenv ipaddr 192.168.1.10

      Setenv ServerIP 192.168.1.20

      Setenv Gatewayip 192.168.1.1

      setenv bootargs root=/dev/nfs rw nfsroot=192.168.1.20:/tftpboot/systembuilder nolock ip= 192.168.1.10:192.168.1.20:192.168.1.1:255.255.0.0::eth0:off/> console=ttys0,115200

Saveenv

Start Linux:

TFTP 0x1000000 Uimage-p1010rdb.bin

TFTP 0xc00000 UIMAGE-P1010RDB.DTB

BOOTM 0x1000000-0xc00000 started Linux successfully.

 

 

              

      

Customize Linux to P1010rdb with Yocto and start Linux

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.