linux哪个系统能编译固件,Linux Environment (Customization)、三大件与固件编译

Linux Environment (Customization)

5.1. Kernel creation

5.1.1. Make

Go to $WORKSPACE/release, set the path of the tool. Then, go to the directory that contains the kernel source, and execute make.

> cd $WORKSPACE/release/

> source ./set_gnutool_path.sh

> cd ain1e/dev/cpu0/kernel/src/linux-x.xx.xx-xarina/

> make

5.1.2. Identification

Confirm that the three files uImage, zImage and Image have been generated.

> ls $WORKSPACE/release/ain1e/dev/cpu0/kernel/src/linux-x.xx.xx-xarina/arch/arm/boot/*Image

uImage

zImage

Image

5.1.3. Copy to release directory

Copy “uImage” file to “$WORKSPACE/release/fw_image/kernel” directory with renaming. It is required because install_fw.sh gathers Linux kernel image from “$WORKSPACE/release/fw_image/kerne/” directory.

> cp $WORKSPACE/release/ain1e/dev/cpu0/kernel/src/linux-x.xx.xx-xarina/arch/arm/boot/uImage \

$WORKSPACE/release/fw_image/kerne/uImage_3.10.55_yyyymmdd_XARINA_evb

* yyyymmdd = “yyyy” is the year such as 2015, “mm” is the month, and “dd” is the date. These are all numbers.

===============================================================

5.2. Modules / Middleware / Application / Tapp / Util Creation

About creation of a driver module(modules), “5.1 Kernel Creation” needs to be created beforehand.

5.2.1. make

Go to the build directory, and execute make.

> cd $WORKSPACE/release/ain1e/dev/cpu0/build

> make

The items in $WORKSPACE/release/rootfs/xarina-latest/usr/local/xarina/ are created and the execution files are generated by DEBUG configuration. If users would like to build RELEASE configuration, please refer “5.2.3 PRODUCT=RELEASE option”.

5.2.2. Make install

Make install is the command that updates executable binaries under the directory $WORKSPACE/release/rootfs/xarina-latest/usr/local/xarina/ . Root privilege is required for the execution.

> su

password:

# cd $WORKSPACE/release/ain1e/dev/cpu0/build

# make install

5.2.3. PRODUCT=RELEASE option

Release build is configured if PRODUCT=RELEASE option is specified though debug build option is default during the build of modules, mw, app and util.

> $WORKSPACE/release/ain1e/dev/cpu0/build

> make PRODUCT=RELEASE

File system under rootfs is consisted of binaries compiled with release build option. Make install command with PRODUCT=RELEASE option updates binaries into release binaries for file system if release build is required.

> su

password:

# cd $WORKSPACE/release/ain1e/dev/cpu0/build

# make PRODUCT=RELEASE install

===============================================================

5.3. Application framework

5.3.1. Make

Go to the build directory, and execute make.

> cd $WORKSPACE/release/ain1e/dev/cpu0/afw/

> make

Here, user should input root’s password, then the compiling process continues.

The final compiled files are output in the directory “$WORKSPACE/release/rootfs/xarina-latest/”.

================================================================

5.4. U-boot Creation

5.4.1. u-boot_yyyymmdd.bin and u-boot_evb_nandspl_yyyymmdd.bin Creation

Go to the U-Boot directory, and generate the configuration files. When generated correctly, the message “Configuring for xarina_evb - board...” appears. After that, execute make.

> cd $WORKSPACE/release/

> source ./set_gnutool_path.sh

> cd $WORKSPACE/release/ain1e/dev/cpu0/bootloader/src/u-boot-2013.07

> make xarina_evb_config

> make

Confirm that the four files u-boot, u-boot.bin, nand_spl/u-boot-spl.bin, and u-boot.srec have been generated.

* Copy the u-boot.bin and nand_spl/u-boot-spl.bin to the PC’s own home directory and other locations.

5.4.2. u-boot_evb_netspl_yyyymmdd.bin Creation

Once the files noted above have been copied, execute the following clean command and generate the configuration file, then execute make.

> make distclean

> make xarina_evb_netspl_config

> make

The Netspl binary file (u-boot.bin) is generated at this point

5.4.3. u-boot_evb_sdspl_yyyymmdd.bin Creation

Once the files noted above have been copied, execute the following clean command and generate the configuration file, then execute make.

> make distclean

> make xarina_evb_sdspl_config

> make

The sdspl binary file (u-boot.bin) is generated at this point.

===============================================================

5.5. ubifs (fw) Creation

Go to the release directory, and execute the script (install_fw.sh).

- CXD4145GG SW Startup Guide -

Ver. 1.0.2 July 24th, 2015

[CONFIDENTIAL]

39

> cd $WORKSPACE/release/

> make fw

After the execution is complete, the image file (ubifs_fw.img) is generated in $WORKSPACE/release/work/

> ls

ubifs_fw.img ???

Note: Please do “5.1.3 Copy to release directory” procedure if users re-build Linux kernel.

===============================================================

5.6. ubifs (rootfs) Creation

ubifs (rootfs) has to be installed with super user privilege.

> cd $WORKSPACE/release/

> su

passswd

#

5.6.1. Create ubifs_rootfs.img

Execute 'make rootfs’ on ./release/ain1/afw/ directory.

# cd $WORKSPACE/release/ain1e/dev/cpu0/afw

# make rootfs

ubifs_rootfs.img is created on /release/ain1/afw/out directory.

# cd $WORKSPACE/release/ain1e/dev/cpu0/afw/out

# ls

ubifs_rootfs.img ???

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值