And then modify and replace the two items of the configuration files located at
<WORKDIR>/Filesystem/buildroot/configs/myd_y335x_defconfig
and
<WORKDIR>/Filesystem/buildroot/configs/myd_y335x_qt5_defconfig
, as shown below:
BR2_TARGET_KERNEL_CUSTOM_REPO_URL="~/myir-kernel/.git"
BR2_TARGET_KERNEL_CUSTOM_REPO_VERSION="master"
Configuration for Filesystem:
The configuration for filesystem determines what filesystem images are generated in
myir-buildroot/output/images/
directory after compiling, If we choose
ramdisk
in the
configuration, we will get a ramdisk filesystem image. EXT2/4, UBIFS, and rootfs tar
package can also be create if they are choosed in configuration.
By the way, the rootfs.tar.gz can be uncompressed and used as the nfsroot directory,
it can also be made to other formats of filesystem images by host mtd-utils. For
example, we can create UBIFS filesystem image without building Buildroot again
after doing some modification for rootfs.Firstly, we create a file
ubinize.cfg
as shown
below:
[ubifs]
mode=ubi
vol_id=0
vol_type=dynamic
vol_name=rootfs
vol_alignment=1
vol_flags=autoresize
image=rootfs.ubifs
Then, make a UBIFS image with UBIFS tools by the following processes:
$ export PATH=$PATH:<WORKDIR>/Filesystem/myir-buildroot/output/host/usr/sbin
$ tar zxvf rootfs.tar.gz
$ mkfs.ubifs -d rootfs -e 0x1f000 -c 2048 -m 0x800 -x lzo -F -o rootfs.ubifs
$ ubinize -o rootfs.ubi -m 0x800 -p 0x20000 -s 512 -m 2048 -O 2048 ubinize.cfg
24