README.OpenWrt 1.4 KB

123456789101112131415161718192021222324252627
  1. First, look at /etc/openwrt_release (on your router). You will see a bunch of
  2. attributes for the OpenWrt system. The DISTRIB_RELEASE attribute is your
  3. OpenWrt version, the first part of DISTRIB_TARGET (before the slash) is the
  4. router's platform, and (only on newer versions) DISTRIB_ARCH is the package
  5. architecture. Older versions of OpenWrt (up to 15.05) use the router's
  6. platform for packages instead of the package architecture.
  7. Now, open up /etc/opkg.conf (again, on your router) in your favourite editor.
  8. Add a new line at the bottom, similar to this:
  9. src/gz bfgminer http://luke.dashjr.org/programs/bitcoin/files/bfgminer/latest/openwrt/17.01/mips_24kc
  10. In this example, 17.01 is the version of OpenWrt, and mips_24kc is the package
  11. architecture. Be sure to change those to match your router! You can also change
  12. "latest" to "stable" or "testing" to get better-tested versions.
  13. Next, save the file and exit your editor. Tell opkg to reload its package lists
  14. by running the command:
  15. opkg update
  16. If you get a "404 Not Found" error, then your router may not be supported. If
  17. you open an issue for your router's platform, it may be possible to add
  18. support.
  19. If all went well updating your package list, you can now install BFGMiner and
  20. any drivers you might need:
  21. opkg install bfgminer
  22. opkg install kmod-usb-serial-ftdi
  23. opkg install kmod-usb-serial-cp210x
  24. opkg install kmod-usb-serial-pl2303