S32G2 - How to add script in BSP

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32G2 - How to add script in BSP

777 Views
Ironmanrex
Contributor I

 

Device : S32G2

How to add script in BSP

0 Kudos
Reply
3 Replies

715 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @Ironmanrex 

Thanks for your reply

Now I can understand that you want to put your own script to the default rootfs during Yocto building.

I suggest reading the following link:

https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/How-to-include-any-files-in-rootfs-with-...

You may also put "IMAGE_INSTALL:append = " $filename" to the conf/local.conf under your build directly. and then try rebuilding the Yocto BSP

I hope it will help
 
BR
Chenyin

"

0 Kudos
Reply

754 Views
chenyin_h
NXP Employee
NXP Employee

Hello,Ironmanrex

Thanks for your post.

May I know more details of your request? you want to put your own script to the Rootfs?

 

Thanks

BR

Chenyin

0 Kudos
Reply

731 Views
Ironmanrex
Contributor I
Hi ChenYin

actually, i only have "Vlan"command.(as below)
i hope these command add into script of bsp in rootfs.

Command :
ip link add link pfe0 name pfe0.100 type vlan id 100
sleep 1s
ifconfig pfe0.100 172.16.42.12 up
sleep 1s
ip link add link pfe0 name pfe0.200 type vlan id 200
sleep 1s
ifconfig pfe0.100 172.16.38.12 up
sleep 1s
ifconfig pfe0.200 172.16.42.12 up
sleep 1s
ifconfig

0 Kudos
Reply