当前位置: 首页 > 软件库 > 其他开源 > 物联网 >

openwrt-node-packages

授权协议 GPL-2.0 License
开发语言 JavaScript
所属分类 其他开源、 物联网
软件类型 开源软件
地区 不详
投 递 者 鞠嘉誉
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

OpenWrt Node.js Packages (nodejs)

Description

OpenWrt/LEDE Node.js Packages : for Head (Development branch)

Note: support arches are aarch64, arm, x86_64

MIPS without hardware FPU no longer be supported

License

See LICENSE file.

Usage

Add the following line to feeds.conf or feeds.conf.default.

src-git node https://github.com/nxhack/openwrt-node-packages.git

Run

./scripts/feeds update node
rm ./package/feeds/packages/node
rm ./package/feeds/packages/node-*
./scripts/feeds install -a -p node
make defconfig

Request to add a package is welcome

If you want a new module (native module) that requires a precompiled binary, please open the issue.

Note

If you want to use with Chaos Calmer(15.05), see for-15.05 branch (End of life)

If you want to use with LEDE (17.01), see lede-17.01 branch (End of life)

If you want to use with 18.06, see openwrt-18.06 branch (End of life)

If you want to use with 19.07, see openwrt-19.07 branch (MIPS FPU EMULATOR support)

If you want to use with 21.02, see openwrt-21.02 branch (MIPS is no longer supported)

OpenSSL 1.0.x becomes EoL, OpenWrt-18.06 will not be supported.Python2 becomes EoL, node v8.x will not be supported.

On the host side, the following preparations are required.

  • Unix prerequisites
  • To build a 32-bit target, gcc-multilib, g++-multilib are required.
  • The libatomic package is required. (Install the 32-bit library at the same time, if necessary).

Illegal instruction issue

V8 JIT code generates FP instruction. Node.js does not work without hardware FPU.

If you are running nodejs on the Atheros AR71xx/AR933x, MediaTek MT76x8, it will not work because there is no hardware FPU.ARM cores without vfp or neon (such as bcm53xx) will not work either.

Enable Inspector

Processor ICU Inspector
32bit Disable NO
32bit small-icu YES
64bit Disable NO
64bit small-icu YES
64bit system-icu YES

Debugging Guide Nice to use Chrome DevTools.

Note: ICU currently supports only LITTLE ENDIAN.

Note about mDNS and homebridge

If you use node-homebridge(node-hap-nodejs), please install mDNS package (umdns / avahi-dbus-daemon / mdnsresponder).

(1)Some OpenWrt / Lede images have built in dnscrypt-proxy package, which by default listening on 5353 port.

In that case, installed avahi-daemon will not start on ipv4 interface, only on ipv6 because ipv4 port is taken.

This will lead to strange issue: your homebrdge accessory will be visible in 'Home' app, but can't finish pairing.

To fix this, you have to stop and disable dnscrypt-proxy

Also, you have to enable: dbus and avahi-daemon services to start automatically, i.e for Lede:

/etc/init.d/dbus enable
/etc/init.d/avahi-daemon enable

(2)avahi on home network

Please read this document. 'Why avahi and bonjour don't work on your home network'

IGMP-querier will solve your problem.

OpenWrt custom packages available: https://github.com/nxhack/openwrt-custom-packages

Low memory

Specify v8-options.

--max_old_space_size=80

Or use swap.

Modules that use pre-compiled binary (native module)

node-authenticate-pam
node-aws-crt
node-bcryp
node-bignum
node-bluetooth-hci-socket
node-bufferutil
node-deasync
node-ejdb2_node
node-epoll
node-expat
node-ffi-napi			(ffi-napi, ref-napi)
node-fuse-bindings
node-hid
node-pty-prebuilt-multiarch
node-i2c-bus
node-leveldown
node-megahash
node-mdns
node-net-ping			(raw-socket)
node-openzwave-shared
node-pi-spi
node-pty
node-rpio
node-serialport-bindings
node-sleep
node-spi-device
node-sqlite3
node-statvfs
node-ubus
node-usb
node-utf-8-validate
node-zigbee2mqtt		(@serialport/bindings,unix-dgram)

Other modules can be installed by 'npm install'.

Package Guidelines

See CONTRIBUTING.md file.

  • luci 参考资料 http://luci.subsignal.org/trac/wiki/Documentation http://wiki.openwrt.org/doc/techref/preinit_mount?#first.boot http://www.google.com.hk/search?q=Luci&hl=en&safe=strict&domains=openwrt.org&s

  • openwrt 和 buildroot类似,添加自己的app应用程序,参照package里面的模板,建立自己的app 在目录openwrt/package/下,建立app文件夹,存放自己的应用,可仿照openwrt/package/utils/fbtest eric@eric-PC:~/Documents/work/mt7628/openwrt/package/utils$ tree fbtest

  • 本篇是OpenWrt 研发过程中,记录修改第三方包的方法。配置完Openwrt后,首次编译后会在编译过程中下载各种源码包,在package中有各报的配置文件和补丁文件,如果我们需要调整这些报的内容,我们应该如何处理呢? OpenWRT 的源码包管理方法,是采用发行版本+补丁方式管理,我们如果需要修改此包的内容,同样需要以补丁方式添加内容。OpenWrt的补丁管理工具 quilt,需要安装该工具。s

  • 新手入门openwrt 编译出错求解决方案 Configuring kmod-sched-cake. Configuring kmod-ifb. Configuring iptables-mod-conntrack-extra. Configuring sqm-scripts. Configuring ip6tables. Configuring bird1-ipv4-uci. Configuri

  • 安装openwrt 1、新建虚拟机,删除默认添加的硬盘 2、将镜像文件,比如openwrt-x64-R22.5.5-generic-squashfs-combined-efi.img通过scp上传到proxmox目录 3、执行下面命令(虚拟机ID为100,文件位于/root) qm importdisk 100 /root/openwrt-x64-R22.5.5-generic-squashfs-

  • Install packages via web interface Trigger to send file                 in file of packages.htm(View), which represent the apperance at Client’s site,  use method of POST , and input of FILE and SUBMI

 相关资料
  • 1. 关于 OpenWrt 当Linksys 释放 WRT54G/GS 的源码后,网上出现了很多不同版本的 Firmware 去增强原有的功能。大多数的 Firmware 都是99%使用 Linksys的源码,只有1%是加上去的,每一种 Firmware 都是针对特定的市场而设计,这样做有2个缺点,第一个是难以集合各版本Firmware的长处,第二个是这版本距离 Linux 正式发行版越来越远。

  • Pantou(OpenWRT)是基于BackFire OpenWrt软件版本(Linux 2.6.32)实现的把商用的无线路由器或无线接入点设备变为一个支持OpenFlow的交换机,把OpenFlow作为OpenWrt上面的一个应用来实现,Pantou支持的设备包括:普通的Broadcom接入点设备、部分型号的LinkSys设备、以及采用Broadcom和Atheros芯片组的TP-LINK的接入点设备。

  • 什么是OpenWrt? OpenWrt是一款基于Linux的操作系统,主要用于路由器。 Openwrt News 开源项目动态 2018年8月,极路由创始人发布公开信:受i财富影响现金流断裂 8月2日凌晨,极路由创始人王楚云发表公开信称,由于国内整个P2P金融市场都在洗牌,一个月内几千家P2P公司出现问题,公司的合作伙伴i财富也发出兑付困难通知,并以“非法吸收公众存款罪”被立案,受此影响,公司正常

  • OpenWrt 是一款基于 Linux 的操作系统,主要用于路由器。

  • 拷贝默认配置: cp configs/leo_gx8010_ssd_1v_defconfig .config 加载默认配置: make defconfig 修改 openwrt 配置: make menuconfig 编译: make 如果想加快编译速度,请加-j 参数使用多线程编译 如果想查看详细编译信息,请加 V=s 参数打印编译 log 清理 packages,kernel,uboo

  • 我家中的网络是这样的: 工控机安装了 esxi,其中安装了 openWrt,通过 openWrt 拨号上网,然后路由器A放在客厅,路由器B放在最远的卧室。 现在有个问题,IPHONE连接路由器B的WIFI后,我在 openWrt 上通过 IPHONE 的 MAC 控制 IPHONE 不可上网是无效的,必须在路由器B的控制页面针对该 MAC 设置才有效。 我想要在 opwnWrt 上控制连接到路由器