cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Adventurer
Adventurer
1,320 Views
Registered: ‎08-28-2017

Editing sysctl.conf Petalinux

 Hi,

 

I want to edit the sysctl.conf file and change few variables (like buffer sizes). I am using petalinux and was wondering how to edit that file (I couldnt find it anywhere). I can boot petalinux and then run sysctl command, but i want to edit the sysctl.conf permanently at boot.

 

Regards,

Karthik

0 Kudos
4 Replies
Highlighted
Explorer
Explorer
922 Views
Registered: ‎05-22-2008

@skaat27

 

Did you ever figure out how to do this?

0 Kudos
Highlighted
Moderator
Moderator
908 Views
Registered: ‎12-04-2016

Hi

 

See if this post helps you, but this is to change /etc/syslog-startup.conf. Same should be applicable to edit /etc/sysctl.conf

https://forums.xilinx.com/t5/Embedded-Linux/How-to-Make-Recipe-to-Modify-syslog-startup-conf-busybox/m-p/847178#M25489

 

 

Best Regards

Shabbir

0 Kudos
Highlighted
Observer
Observer
312 Views
Registered: ‎01-05-2020

I am using Petalinux 2019.2. There is no recipes-core directory under project-spec/meta-user.

How can I modify /etc/sysctl.conf in this case?

Thanks,

 

0 Kudos
Highlighted
Visitor
Visitor
145 Views
Registered: ‎06-12-2020

Anybody had any success in this?

 

I tried to apply changes to procps recipe (petalinux yocto 2018.1), as I found that it is the recipe for generating the sysctl.conf in /etc.

Created a .bbappend for the procps receipe with my changes in sysctl.conf.

 

Surprisingly my rootfs doesn't has the /etc/sysctl.conf or /etc/sysctl.d files/folders.

I tried removing the bbappend, but still the /etc/sysctl.conf is not getting deployed in rootfs.

Any help, what may I be missing.

0 Kudos