Search results

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

  1. S

    Help needed for cross-compiling driver

    You might need to help the compiler a bit to find the library by pointing it to the path using an environment variable or the -rpath option: https://stackoverflow.com/questions/8835108/how-to-specify-non-default-shared-library-path-in-gcc-linux-getting-error-whil
  2. S

    Help needed for cross-compiling driver

    Would that be for an Asus device or something else? If something else, do you have access to the cross-compile toolchain? On first look irqbalance should be able to be compiled for AArch64 (ARM64), just need to know if you need a specific toolchain and then set the .configure to point to the...
  3. S

    Help needed for cross-compiling driver

    I managed to build the driver by setting the library path with export LD_LIBRARY_PATH="bla" and enabling support for various 802.11 options as module in the kernel source and rebuilding the kernel in my build environment. However, loading the 802.11 modules on which the driver surely depends...
  4. S

    Help needed for cross-compiling driver

    I want to enable support for the RT5370 by compiling a kernel driver module. Natively, the used 2.6.36 kernel doesn't seem to have these drivers in the source, but I found a driver package from the manufacturer which should work with the 2.6.36 kernel...
  5. S

    Problems reading out USB to serial converter

    Ok... the problems are not over yet. While it receives most of the data fine, it misses a character now and then. This doesn't happen with the same device under Ubuntu 16.04. Could this be a hardware limitations of the AC68u router? It is only a serial port at 115200 baud...
  6. S

    Problems reading out USB to serial converter

    I managed to get the Keyspan device working without building the entire firmware for the router as I didn't like this option. I added user space firmware loading as a module in my Ubuntu build environment to give me firmware_class.ko, I also build usbserial.ko and keyspan.ko and moved these all...
  7. S

    Problems reading out USB to serial converter

    I had to give up with the ch341 driver. I suspect the baud rate is set wrong and cannot be corrected, which is fixed at some point in the new driver which is part of the modern kernel. Unfortunately, the code which seems to do fix this uses a tty construct which is not supported in the 2.6.36...
  8. S

    Problems reading out USB to serial converter

    I can unload it with rmmod, so that gives me some room to play. I think I give up on the manufacturer driver as hardly anyone seems to use it (not part of any kernel). I did find the git of the ch341.c driver though...
  9. S

    Problems reading out USB to serial converter

    Succeeded in building the driver, thanks for the guide, although I saw some warnings flashing by that certain variables were not used in ch34x.c. Unfortunately, I don't receive anything with the driver from the manufacturer... this is getting quite annoying. As I at least receive some hex data...
  10. S

    Problems reading out USB to serial converter

    Thanks! Will give this a go tomorrow. Just to be sure I do the right thing, how do I apply this patch? Can I change the running system (stock Asuswrt-merlin, so far I didn't manage to write anything outside the jffs and netware partition as everything else is marked read-only). Or do I have to...
  11. S

    Problems reading out USB to serial converter

    You are absolutely right about the Ubuntu implantation requiring a newer kernel. I tried building it using these guides: https://www.hqt.ro/how-to-compile-modules-for-asuswrt-routers/ but part of the functionality is unsupported. I did find another driver, though, from the manufacturer...
  12. S

    Problems reading out USB to serial converter

    After more investigation on how Ubuntu and the Asuswrt handle the device, and by comparing the source of the ch341.ko drivers between the kernel in Ubuntu 16.04.3 and the Asuswrt Blackfuel build it appears the latter uses different drivers which omit certain functionality (like different...
  13. S

    Problems reading out USB to serial converter

    I managed to load the driver by putting it in the Jffs partition (to allow loading during boot once everything works) and by using insmod /jffs/ch341.ko. dmesg | grep tty now shows the devices correctly: Kernel command line: root=/dev/mtdblock2 console=ttyS0,115200 init=/sbin/preinit...
  14. S

    Problems reading out USB to serial converter

    The init-start script indeed nicely blocked loading of the gsm driver. Unfortunately, with modprobe cdc-acm I cannot get the device to be recognised as USB to serial converter. I am now trying to figure out how to get it to load the ch341.ko from the blackfuel build. Edit: well I guess I should...
  15. S

    Problems reading out USB to serial converter

    Thanks a lot for the great suggestions! Will try them out as soon a possible and let you know how it turns out.
  16. S

    Problems reading out USB to serial converter

    I am trying to use my ASUS RT-AC68U router to read-out a device through the serial interface. The device send a 35 lines message every 20 seconds, of which I want to capture some data. I tested the USB convertor under Windows and Ubuntu 16.04.3 on my laptop, and I have no problems in receiving...
Top