Create a linux root file system (ramdisk) on ZedBoard

Digilent's OOB design gives all the files needed for a complete running Linux system on the ZedBoard, including configuring the FPGA's bit file, configuring the ARM-based First-Stage boot loader (FSBL), and the Second-Stage for booting Linux. Boot loader (SSBL), Linux kernel zImage, device tree file devicetree_ramdisk.dtb, and root file system ramdisk8M.image.gz. When linux is running, load the ramdisk8M.image.gz image file into DDR3 to implement the root file system. Many of them are not as simple as file system operations in Ubuntu. This section describes how to make a ZardBoard executable root file system ramdisk8M.image.gz image file, refer to the xilinx wiki.

Through the study of this section, in the future development, the file system can be modified more smoothly, bringing convenience to the design.

Hardware platform: Digilent ZedBoard

Development environment: Windows XP 32 bit + Wmare 8.0 + Ubuntu 10.04 + arm-linux-xilinx-gnueabi cross-compilation environment

Zedboard linux: Digilent OOB Design

1, FHS (Filesystem Hierarchy Standard) standard introduction

When we type ls / under linux, the directory structure we see and the contents of these directories are similar. This is because all Linux distributions follow the FHS standard recommendations for the root file system layout. The standard specifies the names of the subdirectories under the root directory and their contents:

Directory name

Stored content


/bin

Mandatory user commands, such as ls, cp, etc.


/sbin

Required system administrator commands, such as ifconfig, reboot, etc.


/dev

Device files, such as mtdblock0, tty1, etc.


/etc

System configuration files, including startup files, such as inittab, etc.


/lib

Necessary link libraries, such as C link libraries, kernel modules


/home

Ordinary user home directory


/root

Root user home directory


/usr/bin

Non-essential user programs, such as find, du, etc.


/usr/sbin

Non-essential administrator programs, such as chroot, inetd, etc.


/usr/lib

Library file


/var

Variables stored by daemons and utilities, such as log files


/proc

A virtual file system used to provide kernel and process information. The kernel automatically generates the contents of the directory.


/sys

A virtual file system used to provide kernel and device information. The kernel automatically generates the contents of the directory.


/mnt

File system mount point for temporary file system installation


/tmp

Temporary files will be automatically cleared after reboot


Making a root file system is to create the above directory and create a complete directory in it. The process generally includes:

Compile/install busybox, generate /bin, /sbin, /usr/bin, /usr/sbin directory using cross-compilation toolchain, build /lib directory to manually build /etc directory to make image file of root file system. process.

1. Compile and install busybox, generate /bin, /sbin, /usr/bin, /usr/sbin directory

First download the BusyBox source, use the command
Git clone git://git.busybox.net/busybox

Of course, as always, in order to provide convenience to students who cannot access foreign websites, here is a domestic download link:

Busybox download

After downloading, switch to the busybox directory and configure it by default
Make ARCH=arm CROSS_COMPILE=arm-xilinx-linux-gnueabi- defconfig

Use command
Make ARCH=arm CROSS_COMPILE=arm-xilinx-linux-gnueabi- menuconfig

Open the visual interface configuration

Learn ZedBoard Zynq step by step (seven): Create a linux root file system (ramdisk) on ZedBoard

Enter one by one
BusyBox SetTIngs->InstallaTIon OpTIons->BusyBox installaTIon prefix

Learn ZedBoard Zynq step by step (seven): Create a linux root file system (ramdisk) on ZedBoard

Set the directory to
/home/devel/_rootfs

Save and exit, and install busybox
Make ARCH=arm CROSS_COMPILE=arm-xilinx-linux-gnueabi- install

After installation, we can see the generated bin sbin usr/bin usr/sbin directory in the /home/devel/_rootfs directory, which contains the commands we use. These commands are soft links to bin/busybox. .

3, install Dropbear
I don't understand the function of dropbear. The information obtained from Baidu is "dropbear implements the complete SSH client and server version 2 protocol. It does not support backward compatibility of SSH version 1 to save space and resources, and Avoid the inherent security vulnerabilities in SSH version 1. Also implemented SCP. SFTP support relies on a binary file that can be provided by OpenSSH or a similar program." Due to such steps on the xilinx wiki, it is still honest. do it.

Download dropbear and unzip
Wget
Tar xfvz dropbear-0.53.1.tar.gz

New Energy Vehicle Parts & Accessories

ev car accessories,ev charger accessories,chargers & adapters,ev car charger adapter,electric vehicle charging station

Shenzhen Jiesai Electric Co.,Ltd , https://www.gootuenergy.com