Configure U-Boot; Start Building U-Boot; To Update U-Boot To Target Device; Building & Updating Kernel/Modules/Dtb Manually - Advantech RSB-4411 User Manual

3.5" sbc with nxp i.mx6 processor arm cortex a9 architecture
Table of Contents

Advertisement

3.4.5

Configure u-boot

$ cd ~/code/u‐boot‐imx
$ make distclean
$ make ${MX6PROC}${BOARD}${BOARD_REV}_${MEM_SIZE}_config
3.4.6

Start building u-boot

$ make ‐j4 LDFLAGS=
The two files, u-boot-crc.bin & u-boot-crc.bin.crc, are located in directory "~/code/u-
boot-imx".
3.4.7

To update u-boot to target device

Perform the following command to transfer to exist boot-up SD card
$ dd if=u‐boot_crc.bin.crc of=${SD_DEVICE} bs=512 seek=2 conv=fsync
$ dd if=u‐boot‐crc.bin of=${SD_DEVICE} bs=512 seek=3 conv=fsync
Make sure new u‐boot does work then perform the following commands to
transfer to on‐board flash
# dd if=u‐boot_crc.bin.crc of=/dev/mmcblk0 bs=512 seek=2 conv=fsync
# dd if=u‐boot‐crc.bin of=/dev/mmcblk0 bs=512 seek=3 conv=fsync
3.4.8
Building & updating kernel/modules/dtb manually
To build kernel/modules/dtb, the cross compiling environment must have been set
up. (ref. 3.4.3 Setting up cross compiling environment)
Make one copy from Yocto working directory:
$ mkdir ‐p ~/code
$ pushd ${BSP_HOME}/${BDIR}/tmp/work‐shared/${MC}/
$ rm ‐rf ~/code/linux‐imx
$ cp ‐a ./kernel‐source ~/code/linux‐imx
$ popd
3.4.9

Configure linux kernel

$ cd ~/code/linux‐imx
$ make distclean
$ make imx_v7_adv_defconfig
$ make menuconfig PKG_CONFIG_SYSROOT_DIR= PKG_CONFIG_PATH=
3.4.10

Start building linux kernel

$ make ‐j4 zImage LOADADDR=0x10008000 LDFLAGS=
The kernel image file, zImage, is located in the directory "./arch/arm/boot/".
3.4.11

Start building kernel modules

$ make ‐j4 modules LDFLAGS=
Copy all modules to a temporary rootfs directory, "~/temp/rootfs"
$ make modules_install INSTALL_MOD_PATH=~/temp/rootfs
RSB-4411 User Manual
54

Advertisement

Table of Contents
loading

Table of Contents