El Capitan FTDI kext file editing not holding

edited March 2017 in Software
Hi all,

I'm trying to fix the FTDI buffer size on my Mac (running El Capitan, 10.11.6) following this tutorials:

http://docs.openbci.com/Tutorials/10-Mac_FTDI_Driver_Fix

Everything works fine after saving the file as it is visible in this figure: https://ibb.co/fmD6Ov (the name is OpenBCI, as saved in the file)
But after rebooting my laptop, the new settings disappear: https://ibb.co/hTiO3v (back to the name "usbserial").

Any idea on how to solve this problem? 

Thanks,

Davide

Comments

  • wjcroftwjcroft Mount Shasta, CA
    Mentioning @marion who devised this technique.
  • edited March 2017
    [Update] What I noticed is that, after rebooting, the "Info.plist" file is still ok, while the backup version "Info.plist~" doesn't reflect that changes. 


    drwxrwxr-x  6 root  wheel     204 11 Mar 12:53 .

    drwxrwxrwx  3 root  wheel     102  8 Ago  2012 ..

    -rwxrwxr-x  1 root  wheel  200601 11 Mar 12:53 Info.plist

    -rwxrwxr-x  1 root  wheel  200444  8 Ago  2012 Info.plist~

    drwxrwxr-x  3 root  wheel     102  8 Ago  2012 MacOS

    drwxrwxr-x  3 root  wheel     102  8 Ago  2012 Resources




    p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo}
    span.s1 {font-variant-ligatures: no-common-ligatures}
  • wjcroftwjcroft Mount Shasta, CA
    So you are saying the problem is resolved? Info.plist reflects your edits? Who cares about the backup file.
  • It reflects my edits, but the problem is still present. I was thinking that maybe, after rebooting, the backup file is loaded instead of the one that I edited.




  • edited March 2017
    I tried the following:
    • after rebooting, with the Dongle inserteed, ls -la /dev grep OpenBCI doesn't print anything. ls -la /dev grep usbserial  prints the following:
    crw-rw-rw- 1 root wheel 18, 5 11 Mar 14:07 cu.usbserial-DJ00IL36
    crw-rw-rw- 1 root wheel 18, 4 11 Mar 14:07 tty.usbserial-DJ00IL36

    • I unloaded the kernel extension with 
    sudo kextunload /System/Library/Extensions/FTDIUSBSerialDriver.kext

    • I loaded it again with
    sudo kextload /System/Library/Extensions/FTDIUSBSerialDriver.kext
    • and the output of ls-la /dev grep OpenBCI is now correct:

            crw-rw-rw- 1 root wheel 18, 5 11 Mar 14:09 cu.OpenBCI-DJ00IL36
    crw-rw-rw- 1 root wheel 18, 4 11 Mar 14:09 tty. OpenBCI-DJ00IL36


    So, I'm not an expert in this topic and I don't know what the problem is, but my idea is that the kernel extension that is loaded at boot is the original one, and it is necessary to load the new one. Could it be possible? 


    Thank you very much for your help @wjcroft


    p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo}
    span.s1 {font-variant-ligatures: no-common-ligatures}
  • wjcroftwjcroft Mount Shasta, CA
    The tutorial seems damaged, use @marion 's version,


    You need to enable kext dev mode.
Sign In or Register to comment.