Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
1,146 Views

Why can't I modify the sysfs

Jump to solution

Hi

 

I was going through a tutorial on a DE10-Nano on how to make custom overlays, and I seem to have hit a bit of a puzzle.

https://rocketboards.org/foswiki/Documentation/HOWTOCreateADeviceTree

 

At one stage, it requires me to create a directory and update values in sysfs.

sudo mkdir /sys/kernel/config/device-tree/overlays/my-cv-fpga-overlay sudo echo my_cv_fpga_overlay.dtb > /sys/kernel/config/device-tree/overlays/my-cv-fpga-overlay/path

Problem is I cannot seem to do so. the command returns "Operation not permitted" error message.

I tried the LDXE linux image from terasic and also a rootfs/kernel that I made based on ubuntu base and kernel 4.9...lsti

https://github.com/rsarwar87/altera-soc-rootfs

 

Presumably it is some kernel configuration that I need to turn on maybe to allow modification of sysfs? I was wondering if anyone could kindly shed some light on this puzzle.

 

Thanks

RD

 

0 Kudos

Accepted Solutions
Highlighted
Beginner
62 Views

Hi Anand

 

Thank you for your reply. Unfortunately logging in as root did not help.

 

however, I remounted the configfs with the following code and was able to edit it like normal.

sudo mount -t configfs none /config

 

Br

R

View solution in original post

0 Kudos
2 Replies
Highlighted
62 Views

Hi,

 

Can you run the command in root privilege and without sudo.

like :root@socfpga:~# mkdir /sys/kernel/config/device-tree/overlays/my-cv-fpga-overlay 

 

Let me know if this has helped resolve the issue you are facing or if you need any further assistance.

 

Best Regards,

Anand Raj Shankar

(This message was posted on behalf of Intel Corporation)

 

0 Kudos
Highlighted
Beginner
63 Views

Hi Anand

 

Thank you for your reply. Unfortunately logging in as root did not help.

 

however, I remounted the configfs with the following code and was able to edit it like normal.

sudo mount -t configfs none /config

 

Br

R

View solution in original post

0 Kudos