@crispyoz sadly no. I broke it last night. Apparently it does NOT like a 24V input ... sigh
Posts made by davidsi
-
RE: can't install python
-
RE: can't install python
@crispyoz said in can't install python:
ping repo.onioniot.com
thanks, but no that was not it. I can see them both
-
RE: can't install python
@György-Farkas Sadly the same command did not work for me.
-
RE: cross compiling serial port failure (yes I know there are other answers)
@davidsi forgot to mention, once everything was compiled I simply copied them to my sd card on my omega2
-
cross compiling serial port failure (yes I know there are other answers)
I'm trying to cross-compile serialport. I know there are other answers, but they did not work for me, and there are binaries, but I want to learn how to do it myself for other modules.
I have my environment set up, and can build and port a regular c program. However, I can't create an npm module. When I do, I end up with the error ....
root@Omega-B116:/mnt/mmcblk0p1/development/node/source/tmp# node serial.js /mnt/mmcblk0p1/development/node/node_modules/bindings/bindings.js:121 throw e; ^ Error: Error loading shared library /mnt/mmcblk0p1/development/node/node_modules/@serialport/bindings/build/Release/bindings.node: Exec format error at Object.Module._extensions..node (module.js:681:18) at Module.load (module.js:565:32) at tryModuleLoad (module.js:505:12) at Function.Module._load (module.js:497:3) at Module.require (module.js:596:17) at require (internal/module.js:11:18) at bindings (/mnt/mmcblk0p1/development/node/node_modules/bindings/bindings.js:112:48) at Object.<anonymous> (/mnt/mmcblk0p1/development/node/node_modules/@serialport/bindings/lib/linux.js:2:36) at Module._compile (module.js:652:30) at Object.Module._extensions..js (module.js:663:10)
My command line is ...
npm --arch=mipsel_24kc install serial port
and it compiles just fine. Any help would be appreciated
-
RE: can't install python
@crispyoz Hmm, I already changed it for some other issue... right now I have
#src/gz openwrt_core http://downloads.openwrt.org/releases/18.06-SNAPSHOT/targets/ramips/mt76x8/packages
#src/gz openwrt_base http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/base
#src/gz openwrt_luci http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/luci
#src/gz openwrt_onion http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/onion
#src/gz openwrt_packages http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/packages
#src/gz openwrt_routing http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/routing
#src/gz openwrt_telephony http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/telephony
src/gz omega2_core http://repo.onioniot.com/omega2/packages/core
src/gz omega2_base http://repo.onioniot.com/omega2/packages/base
src/gz omega2_packages http://repo.onioniot.com/omega2/packages/packages
src/gz omega2_routing http://repo.onioniot.com/omega2/packages/routing
src/gz omega2_onion http://repo.onioniot.com/omega2/packages/onion -
can't install python
I'm trying to use python for the first time. I get "python not found" ... so I tried to install it using opkg with the following
python
python2
python3
python-lite
python2-lite
python-3liteand in every case I get that the package can not be installed. I also tried opkg list and got nothing I could see that would help
Any help wold be greatly appreciated
-
SMS on Omega LTE
can someone please point me to the docs on how to send a message via SMS (to a phone) using the omega LTE.
thx
-
RE: lack of understanding, physical space vs logical space
@yoursunny AH!, the missing link :-). Thank you both. I bought the onion to learn and this is really helping
-
RE: lack of understanding, physical space vs logical space
@UFD just realized, that still doesn't explain my lack of space. ROM is ROM and obviously at 100% but shouldn't mntblock and overlay still be usable? Or is it just overlay and that is nearly full?
-
lack of understanding, physical space vs logical space
I know very little about linux and I'm having a hard time understanding how the physical space and logical space map to each other. I was installing various node packages and ran out of disk space. I ran the df command and got:
When investigating further, it seems that /rom is at least partially mapped to everything else. Which makes sense. However, what does not make sense to me is how this maps to my file system and how adding an SD card is going to help. Mounting the sd card at /mnt will give me lots of space under /mnt but I do not know how to make that give me enough space across the file system mapped to ..
What is also confusing me is that, as I've been installing rpm modules under /root/...., and it seems (from what I can tell) that is not under /dev/root, why am I even running out of space?
I tried reading this up on the web and simply got confused. Is there a guide someone can point me to that will explain how, once I've added my SD card I use it properly?
-
RE: Cannot install Node
@Ick-Sung-Choi
opkg install npm --> does not work
opkg install node-npm -> does workBut you have to upgrade your firmware if you didn't yet. I received an onion about a week ago and it still needed upgrading.
-
RE: Can't install any packages at all using opkg install on Onion Omega2 Pro [RESOLVED]
@Lazar-Demin I just tried installing node following the same (updated) directions on a brand new onion 2+ and got the same error,
root@Omega-63D5:~# opkg install node
Unknown package 'node'.
Collected errors:- opkg_install_cmd: Cannot install package node.
-
RE: Someone has worked with LCD 4x20 I2C Model 2004A ?
@Marcelo-Silva said in Someone has worked with LCD 4x20 I2C Model 2004A ?:
LCD 4x20 2004A
sorry, ignore that. I did it with GPIO not I2C. I could not get the I2C to work with the supplied libraries either.
-
RE: Someone has worked with LCD 4x20 I2C Model 2004A ?
are you using it in 4-bit mode? The setup is a little odd. I can give you my code as an example but it's in javascript not python
-
wifisetup not working
I'm trying to change the wifi from the console using wifi setup. I search for the correct wifi, enter the password and it does not work. Output below and any help appreciated ..
Restarting wifimanager for changes to take effect
root@Omega-95A4:/# [ 5516.143671] br-wlan: port 2(ra0) entered disabled state
[ 5517.754093] EEPROM:Read from [factory] offset 0x0,length 0x400.
[ 5520.238252] ch1 bssid=02:71:47:8f:f6:79
[ 5520.242253] ch1 bssid=6a:54:fd:f7:63:da
[ 5520.246232] ch1 bssid=b0:39:56:71:b4:36
[ 5520.250241] ch1 bssid=e8:94:f6:c5:02:ae
[ 5520.254218] =====================================================
[ 5520.260415] Channel 1 : Dirty = 300, False CCA = 0, Busy Time = 12257, Skip Channel = FALSE
[ 5520.268898] Channel 2 : Dirty = 128, False CCA = 0, Busy Time = 13066, Skip Channel = FALSE
[ 5520.277367] Channel 3 : Dirty = 112, False CCA = 0, Busy Time = 7928, Skip Channel = FALSE
[ 5520.285762] Channel 4 : Dirty = 96, False CCA = 0, Busy Time = 2523, Skip Channel = FALSE
[ 5520.294069] Channel 5 : Dirty = 80, False CCA = 0, Busy Time = 19, Skip Channel = FALSE
[ 5520.302200] Channel 6 : Dirty = 0, False CCA = 0, Busy Time = 0, Skip Channel = FALSE
[ 5520.310157] Channel 7 : Dirty = 0, False CCA = 0, Busy Time = 45, Skip Channel = FALSE
[ 5520.318183] Channel 8 : Dirty = 0, False CCA = 0, Busy Time = 69, Skip Channel = FALSE
[ 5520.326226] Channel 9 : Dirty = 0, False CCA = 0, Busy Time = 97, Skip Channel = FALSE
[ 5520.334280] Channel 10 : Dirty = 0, False CCA = 0, Busy Time = 135, Skip Channel = FALSE
[ 5520.342502] Channel 11 : Dirty = 0, False CCA = 0, Busy Time = 219, Skip Channel = FALSE
[ 5520.350714] =====================================================
[ 5520.356894] Rule 1 CCA value : Min Dirtiness (Include extension channel) ==> Select Channel 6
[ 5520.365634] Min Dirty = 0
[ 5520.368304] ExChannel = 0 , 0
[ 5520.371311] BW = 20
[ 5520.402807] br-wlan: port 2(ra0) entered forwarding state
[ 5520.408387] br-wlan: port 2(ra0) entered forwarding state
[ 5522.408248] br-wlan: port 2(ra0) entered forwarding state
[ 5550.990067] br-wlan: port 2(ra0) entered disabled state
[ 5552.592769] EEPROM:Read from [factory] offset 0x0,length 0x400.
[ 5555.078250] ch1 bssid=b0:39:56:71:b4:36
[ 5555.082250] ch1 bssid=e8:94:f6:c5:02:ae
[ 5555.086231] ch1 bssid=02:71:47:8f:f6:79
[ 5555.090239] ch1 bssid=6a:54:fd:f7:63:da
[ 5555.094215] =====================================================
[ 5555.100413] Channel 1 : Dirty = 300, False CCA = 0, Busy Time = 26961, Skip Channel = FALSE
[ 5555.108896] Channel 2 : Dirty = 128, False CCA = 0, Busy Time = 14663, Skip Channel = FALSE
[ 5555.117364] Channel 3 : Dirty = 112, False CCA = 0, Busy Time = 10843, Skip Channel = FALSE
[ 5555.125847] Channel 4 : Dirty = 96, False CCA = 0, Busy Time = 8352, Skip Channel = FALSE
[ 5555.134154] Channel 5 : Dirty = 80, False CCA = 0, Busy Time = 147, Skip Channel = FALSE
[ 5555.142376] Channel 6 : Dirty = 0, False CCA = 0, Busy Time = 74, Skip Channel = FALSE
[ 5555.150421] Channel 7 : Dirty = 0, False CCA = 0, Busy Time = 87, Skip Channel = FALSE
[ 5555.158464] Channel 8 : Dirty = 0, False CCA = 0, Busy Time = 112, Skip Channel = FALSE
[ 5555.166579] Channel 9 : Dirty = 0, False CCA = 0, Busy Time = 607, Skip Channel = FALSE
[ 5555.174721] Channel 10 : Dirty = 0, False CCA = 0, Busy Time = 345, Skip Channel = FALSE
[ 5555.182942] Channel 11 : Dirty = 0, False CCA = 0, Busy Time = 21, Skip Channel = FALSE
[ 5555.191067] =====================================================
[ 5555.197246] Rule 1 CCA value : Min Dirtiness (Include extension channel) ==> Select Channel 6
[ 5555.205987] Min Dirty = 0
[ 5555.208657] ExChannel = 0 , 0
[ 5555.211665] BW = 20
[ 5555.243147] br-wlan: port 2(ra0) entered forwarding state
[ 5555.248730] br-wlan: port 2(ra0) entered forwarding state
[ 5557.248249] br-wlan: port 2(ra0) entered forwarding state
[ 5585.169200] br-wlan: port 2(ra0) entered disabled state
[ 5587.387972] EEPROM:Read from [factory] offset 0x0,length 0x400.
[ 5589.878257] ch1 bssid=02:71:47:8f:f6:79
[ 5589.882256] ch1 bssid=6a:54:fd:f7:63:da
[ 5589.886238] ch1 bssid=b0:39:56:71:b4:36
[ 5589.890246] ch1 bssid=e8:94:f6:c5:02:ae
[ 5589.894222] =====================================================
[ 5589.900421] Channel 1 : Dirty = 300, False CCA = 0, Busy Time = 2622, Skip Channel = FALSE
[ 5589.908817] Channel 2 : Dirty = 128, False CCA = 0, Busy Time = 6575, Skip Channel = FALSE
[ 5589.917195] Channel 3 : Dirty = 112, False CCA = 0, Busy Time = 5543, Skip Channel = FALSE
[ 5589.925589] Channel 4 : Dirty = 96, False CCA = 0, Busy Time = 1270, Skip Channel = FALSE
[ 5589.933896] Channel 5 : Dirty = 80, False CCA = 0, Busy Time = 88, Skip Channel = FALSE
[ 5589.942028] Channel 6 : Dirty = 0, False CCA = 0, Busy Time = 100, Skip Channel = FALSE
[ 5589.950160] Channel 7 : Dirty = 0, False CCA = 0, Busy Time = 110, Skip Channel = FALSE
[ 5589.958302] Channel 8 : Dirty = 0, False CCA = 0, Busy Time = 130, Skip Channel = FALSE
[ 5589.966418] Channel 9 : Dirty = 0, False CCA = 0, Busy Time = 63, Skip Channel = FALSE
[ 5589.974461] Channel 10 : Dirty = 0, False CCA = 0, Busy Time = 71, Skip Channel = FALSE
[ 5589.982591] Channel 11 : Dirty = 0, False CCA = 0, Busy Time = 51, Skip Channel = FALSE
[ 5589.990715] =====================================================
[ 5589.996896] Rule 1 CCA value : Min Dirtiness (Include extension channel) ==> Select Channel 6
[ 5590.005636] Min Dirty = 0
[ 5590.008308] ExChannel = 0 , 0
[ 5590.011316] BW = 20
[ 5590.042876] br-wlan: port 2(ra0) entered forwarding state
[ 5590.048456] br-wlan: port 2(ra0) entered forwarding state
[ 5592.048260] br-wlan: port 2(ra0) entered forwarding state
ifconfig
br-wlan Link encap:Ethernet HWaddr 40:A3:6B:C1:95:A5
inet addr:192.168.3.1 Bcast:192.168.3.255 Mask:255.255.255.0
inet6 addr: fd1d:48c4:7633::1/60 Scope:Global
inet6 addr: fe80::42a3:6bff:fec1:95a5/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:60 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:11445 (11.1 KiB)eth0 Link encap:Ethernet HWaddr 40:A3:6B:C1:95:A5
inet6 addr: fe80::42a3:6bff:fec1:95a5/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:1952 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:654745 (639.3 KiB)
Interrupt:5eth0.1 Link encap:Ethernet HWaddr 40:A3:6B:C1:95:A5
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:60 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:11445 (11.1 KiB)lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:8792 errors:0 dropped:0 overruns:0 frame:0
TX packets:8792 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:535816 (523.2 KiB) TX bytes:535816 (523.2 KiB)ra0 Link encap:Ethernet HWaddr 40:A3:6B:C1:95:A4
inet6 addr: fe80::42a3:6bff:fec1:95a4/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:3 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:6 -
RE: Cross Compile docker libwebsockets.h not found mosquitto
@Lazar-Demin seeing the same thing running Parallels with ubuntu.
I did find that libwebsockets was unchecked. Checking it got me further, but I still can not build, on MacOS or Ubuntu, same errors as everyone else with mosquitto and SSLlibwebsockets