MYD-Y7Z010/007S Board Linux Development Manual
MYIR Electronics Limited
|
5
/
14
() Toolchain path
Enter Toolchain path option, fill in the Toolchain path:
<WORKDIR>/Toolchain/CodeSourcery/Sourcery_CodeBench_Lite_for_Xilinx_GNU_Lin
ux
Exit and make:
$ make
After compiling, you will find the rootfs.tar in the
“buildroot-2015.02/output/images”.
3.4 Make File System
3.4.1Make Ramdisk
⑴
Mount ramdisk
Create a new directory “tmp”, and copy the “uramdisk.image.gz” to this directory:
$ cd <WORKDIR>/Filesystem
$ mkdir tmp
$ cp uramdisk.image.gz tmp/
$ cd tmp/
Delete the 64 bytes header file generated by
“mkimage”, and generate a new “ramdisk.image.gz”:
$ dd if=uramdisk.image.gz of=ramdisk.image.gz bs=64 skip=1
gunzip
“ramdisk.image.gz” to generate “ramdisk.image”:
$ gunzip ramdisk.image.gz
Create a new mount directory "ramdiskdir
", and mount the “ramdisk.image” file:
$ mkdir -p ramdiskdir
$ sudo mount -o loop,rw ramdisk.image ramdiskdir
Enter the “ramdiskdir” directory, and modify it if necessary.
⑵
Generatea new ramdisk
Synchronize the file system and unmount the ramdisk file system:
$ sync
$ sudo umount ramdiskdir
Compress “ramdisk.image” with gzip, and generate “ramdisk.image.gz”:
$ gzip -9 ramdisk.image
Add new head file with mkimage, generate a new “uramdisk.image.gz” file for u-boot:
$ mkimage -A arm -T ramdisk -C gzip -n Ramdisk -d ramdisk.image.gz
uramdisk.image.gz
Delete temporary file
“ramdisk.image.gz”: