now I can drop socat and use moxa real TTY driver
it seems you are trying to compile the FTDI USB drivers. If you search on the forum there is a very long thread on this topic.
The short answer is that the local compiling procedure it is not usable with ftdi driver because the Linux kernel headers are not installed, it works for simpler kernel drivers that not require kernel headers, like the Sylabs cp210x. If you need a serial usb converter the best thing is to use a Prolific PL2303HX because it works with the standard driver already loaded on the Edison.
With a FTDI adapter the best way is to install the drivers using the AlexT repository. You can find the instruction with a search in the forum.
Thanks! I have used AlexT's repo.
All the links say "404 - error": "the page you requested can't be found". Could you please reload the files to another place?
Thank you a lot for a great instructions!
Hi, where can we download the poky headers (.deb file)?
The steps for #7 are not too clear. You mentioned this:
7. now you need to link you kernel directory with the "build" directory where the make command can find the Poky headers (make look for '/lib/modules/3.10.17-poky-Edison+/build')
ln -s /home/root/usr/src/linux-headers-3.10.17-poky-edison build (<-- this create the link '/lib/modules/3.10.17-poky-Edison+/build' that point to the Linux-headres directory)
My system was updated with firmware 20160606 just this Friday, so my kernel at this location shows me:
Sorry, newbie at this - will I be able to proceed with step 7 even though one is version 17 while my kernel is 98? Where can I get the version 98 deb file?
Anyway, I tried executing the following:
ln -s /home/root/usr/src/linux-headers-3.10.17-poky-edison build (<-- this create the link '/lib/modules/3.10.98-poky-Edison+/build' that point to the Linux-headres directory)
This was successful... a "build" file was created at /lib/modules/3.10.98-poky-edison+
As I expected, making my driver at ~/ gives me this error:
make: *** /lib/modules/3.10.98-poky-edison+/build: No such file or directory.
Checking the /lib/modules/3.10.98-poky-edison+ folder for any output shows only the earlier "build" file.
Did I miss anything at all? Am I supposed to install something else?
Please ignore my previous query.
How did you go about solving that problem? I'm in the exact same problem as you now.
EDIT: Nevermind, found the solution. Go to http://iotdk.intel.com/repos/3.5/iotdk/edison/edison/ (for 3.10.98-poky-edison+, the 20160606 firmware), and download http://iotdk.intel.com/repos/3.5/iotdk/edison/edison/kernel-dev_1.0-r2_edison.ipk . Do the following to expand the /boot space first, otherwise the next steps will complain about running out of space....
cp -rp /boot/* /home/root/boot-backup/
ls -alF /home/root/boot-backup/
mkfs.vfat -v -nboot -F16 /dev/mmcblk0p7
df -h /boot
cp -rp /home/root/boot-backup/* /boot
ls -alF /boot
rm -r /home/root/boot-backup
opkg install kernel-dev_1.0-r2_edison.ipk
To complete the headers,
Hope this helps