pastebin - collaborative debugging tool
rovema.kpaste.net RSS


simatic nvram test #003
Posted by Anonymous on Tue 10th Aug 2021 08:17
raw | new post

  1. # fix permissions so a plain user can use the test program
  2. $ ls -l /dev/uio0
  3. crw------- 1 root root 243, 0 Aug 10 09:07 /dev/uio0
  4. $ su - root -c 'chmod go=u /dev/uio0'
  5. # ls -l /dev/uio0
  6. crw-rw-rw- 1 root root 243, 0 Aug 10 09:07 /dev/uio0
  7.  
  8. # run test program
  9. $ ./test_uio_nvram
  10. test_uio_nvram: count=131072 device=/dev/uio0
  11. write and read nvram and compare with preset buffer
  12. elapsed write: 4.2550 ms
  13. elapsed read: 49.7250 ms
  14.  
  15. # works :-)

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at