I'm searching for a Openwrt Toolchain to cross compile the ftdio_sio kernel module because I cannot find a precompiled version of the package for my openwrt version. I don't know which version of openwrt is running the system, but from the date and linux version (2.6.30) I thinks that is running Openwrt 10.03
My router infos:
Linux localhost 2.6.30 #1 SMP PREEMPT Mon Jun 8 16:14:23 CEST 2015 mips GNU/Linux
2.6.30 SMP preempt mod_unload MIPS32_R1 32BIT
Version of uClibc: libuClibc-0.9.31
The kernel modules that are already installed are using Big Endian format.
What are you using this for? What hardware is it running on?
This is beyond ancient. There are many known and actively exploited security vulnerabilities for this version. This version has been EOL for probably a decade now, and is completely unsupported. It should not be used anymore. Full stop.
Because it is so old, I'd be surprised if anyone remembers any of the details about how to get this version to compile or even how to perform basic configuration. It is so far out of support that you are on your own here.
I need to use it to read data from a ftdi data logger connected to a Davis Vantage VUE weather station. I need to connect the FTDI usb of the data logger to the USB port of the router and redirect the data to another server where I elaborate the data and send over the net.
The problem is that the old version of the kernel does not have the ftdi_sio module to read the data from the data logger
I'd highly recommend picking up something newer that can support OpenWrt 21.02. This would get you on a supported (and safe/secure) version that has FTDI packages available to install without any additional hurdles.
Alternatively, you could pick up something like a RPi for the same purpose (and you could use OpenWrt or RPi OS).
My apologies, looking at the device, it seemed [clear] that it had Ethernet connectivity. I actually had a difficult time finding information on its serial connection. I must have found another model in my searching.
So the final solution was to use the ADB VV2220 modem with openwrt 10.03.
I tried to cross compile the module for that kernel successfully. I was able to insert the module into the kernel and the usb FTDI dalalogger is detected by the system. The only poblem occurs when I try to read the device using dd if=/dev/ttyUSB0 of=/root/test.bin bs=1 count=1. The kernel crash with a long message:
Linux kmods must match the installed kernel exactly, or they will almost certainly crash.
I have run weewx directly on OpenWrt on a Netgear R6100. So the system is weather station -> OpenWrt router -> Internet. This requires at least 128/128 MB memory, but you can get something meeting that spec for $30..
Does anyone know a way to upgrade this old version of openwrt to a new one? The router has a CFE interface that allows to update a new firmware. I also have access to a root shell in the system and I can see that the system is openwrt because it has opkg installed.
The problem is that opkg doesn't work. The opkg.conf file contains the following content:
src/gz snapshots http://downloads.openwrt.org/snapshots/trunk/bcm412l07/packages
dest root /
dest ram /tmp
dest usb1 /mnt/sda1
lists_dir ext /var/opkg-lists
option overlay_root /overlay
I tried to open that link but it doesn't work anymore. Any solution?
I really want to upgrade this router to a new version of openwrt, since it's a good router. It has 126MB of ram
A couple of the above suggestions include switching to a different network device. Can you not do that?
Are you familar enough with Unix utilities like find, md5, etc to try and understnad what is same or different about the device and a contemporary OpenWrt build? Reverse engineering it's config might allow you to understand what to put on a new image, if something suitable is in the standard or user builds.
At a push, you might be able to get a build working where the binaries start to match what is on there, improving the chances of your kmod build working.
I'm still unsure why you want to upgrade what is on the device rather than move to a more modern, supported device. Both will (probably) break any bespoke software on the device, but the latter will be a lot easier.
If there is bespoke software and you really want to compile new things for it, how about cat /etc/openwrt_release to try and zoom in on what to work with?