S32G2 - How to add script in BSP

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

S32G2 - How to add script in BSP

1,245 次查看
Ironmanrex
Contributor I

 

Device : S32G2

How to add script in BSP

0 项奖励
回复
3 回复数

1,183 次查看
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 项奖励
回复

1,222 次查看
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 项奖励
回复

1,199 次查看
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 项奖励
回复