
4. Run the below command to set the cross compile path:
>>export CROSS_COMPILE=/home/<user>/DCM_git/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-
gnu/bin/aarch64-linux-gnu-
5. Pass the command
make clean
for cleaning all the existing object files.
6. Run
make
in the same directory to build.
An elf
ls_ipcf_tx_rx
will be created in
../ls_ipcf_tx_rx/build
directory.
To add the elf generated to the root file system of the Linux image follow the below steps:
1. Copy
fsl-image-core-ls1043ardb.ext2
to a new directory
ramdisk_fs
.
2. Copy the executable
ls_ipcf_tx_rx
to
ramdisk_fs
.
3. In the
ramdisk_fs
directory, make a new directory
TEMP
.
4. Run the following commands inside the ramdisk_fs directory:
>sudo gunzip fsl-image-core-ls1043ardb.ext2
>sudo mount fsl-image-core-ls1043ardb.ext2 TEMP/
>sudo cp ls_ipcf_tx_rx TEMP/home/root/
>sudo vi TEMP/etc/profile
a. A new window will open displaying the content of profile. Using the down arrow key come to the bottom of the file.
Note: The user can read about
vi editor
to edit files in vi editor.
b. Press the “o” button to enable writing in the editor file.
c. Copy the below commands in the file: (Snapshot provided for more clarity)
####### IPCF Application traces ########
echo " "
echo -e "********** \t Linux booted successfully \t *********"
echo " "
echo -e "********** \t Network I/F Configuration \t **********"
if ifconfig eth2 192.168.0.11 ; then
sleep 1s
echo "IP address 192.168.0.11 successfully assigned to eth2 port"
else
echo "IP address 192.168.0.11 not successfully assigned to eth2 port"
fi
sleep 1s
./ls_ipcf_tx_rx get_status
NXP Semiconductors
How to build the software for LS1043A and MPC5748G
MPC-LS Vehicle Network Processing Evaluation Board User Manual, Rev. 0, Feb 2019
User's Guide
36 / 107