@tjoseph1 and @crispyoz, Thank you for all of your support. All information which you gave me was so useful for me.
Posts made by optech
-
RE: installing an ipk package and incompatible with the architecture error
-
RE: installing an ipk package and incompatible with the architecture error
@crispyoz even simplifying script looks complex thanks again i will try to use it
-
RE: installing an ipk package and incompatible with the architecture error
@crispyoz thank you very much. i am looking forward your packaging script...
-
RE: installing an ipk package and incompatible with the architecture error
i compiled chirpstack-packet-multiplexer application. But i couldnt make ipk file. So i duplicated chirpstack-gateway-bridge files on working system, then i replaced with chirpstack-packet-multiplexer files and edited init.d script
Could you inform me about how can i make ipk packages after compilation of an application?
-
RE: installing an ipk package and incompatible with the architecture error
There is no chirpstack option in "make menuconfig" in openwrt, maybe i couldnt see
i think go lang uses mips float point but i guess there is no hardware fpu in MT7688, so instructions doesnt work when go compile with default GOMIPS option. Then when i make chances on make menuconfig about float point options while compiling custom openwrt, it will be ok even go uses float point option.. What do you think about this explanation?
-
RE: installing an ipk package and incompatible with the architecture error
When I check makefile i see:
.PHONY: build clean test package serve run-compose-test VERSION := $(shell git describe --always |sed -e "s/^v//") build: @echo "Compiling source" @mkdir -p build go build $(GO_EXTRA_BUILD_ARGS) -ldflags "-s -w -X main.version=$(VERSION)" -o build/chirpstack-gateway-bridge cmd/chirpstack-gateway-bridge/main.go
so makefile has no redefining options for "GOOS=linux GOARCH=mipsle GOMIPS=softfloat".
when i tried stock omega 19.07 binary, it was didnt work. but after you told me about softfloat option, i tried to change some options while custom compilation of openwrt by make menuconfig. I set softfloat by default from advanced compile options and i set MIPS FPU emulator enable. after making this custom binary for openwrt, even the first chirpstack-gateway-bridge exe, that you sent me before, works well in my custom openwrt compilation I guess this way is ok, right? can i will have side effects of it for future with another app? Thank you for your all support
But i couldnt find how i can make ipk file after chirpstack-gateway-bridge compilation.. Could you inform me about it how i make ipk packages?
-
RE: installing an ipk package and incompatible with the architecture error
@optech by the way, i first setup the chirpstack-gateway-bridge ipk file which you sent before, then i replace the exe in opt/chirpstack-gateway-bridge with i compiled. then it didnt work on openwrt 19.07
-
RE: installing an ipk package and incompatible with the architecture error
@tjoseph1 Thank you again for your help.
I compiled the hello world go app as following...:
export GOARCH=mipsle export GOOS=linux export GOMIPS=softfloat go build hello.go
if i dont use "GOMIPS=softfloat", it works on openWRT 18.06 but dont work on openWRT 19.07 as giving following error:
root@OpenWrt:~# ./hello Illegal instruction
with "GOMIPS=softfloat" option, it works on openWRT 19.07..
But after seeing that, i compiled chirpstack-gateway-bridge app with same options. But it still doesnt work on openWRT 19.07
chirpstack-gateway-bridge$ export GOARCH=mipsle chirpstack-gateway-bridge$ export GOOS=linux chirpstack-gateway-bridge$ export GOMIPS=softfloat chirpstack-gateway-bridge$ make build
i feel near to solution but i have no idea for now.
-
RE: installing an ipk package and incompatible with the architecture error
I recompiled chirpstack gateway bridge as following the steps below:
export GOARCH=mipsle export GOOS=linux make build
root@OpenWrt:~# file /opt/chirpstack-gateway-bridge/chirpstack-gateway-bridge /opt/chirpstack-gateway-bridge/chirpstack-gateway-bridge: ELF 32-bit LSB executable, MIPS, MIPS32 version 1 (SYSV), statically linked, Go BuildID=VcvuifmDnNysO-WpZUz5/FGFca5Lt5vpptRtlLTBo/l2QuqgekGwKVygyjsXAL/6lmuYGmDGU2RDGrxxamU, stripped
The result is the same doesn't work on openwrt 19.07...
-
RE: installing an ipk package and incompatible with the architecture error
@tjoseph1 Thank you for your help. I was on a vacation sorry for late...
I replaced "/opt/chirpstack-gateway-bridge/chirpstack-gateway-bridge" with the file that you sent. But result is same, dont work and so no ram change(on openwrt 19.07)..
Do you have another idea to find the reason of this issue? -
RE: installing an ipk package and incompatible with the architecture error
@tjoseph1 thank you very much for your help.
I loaded onion build firmware and tried it again then it works.But it doesn't work on openwrt 19.07 custom build.. I really wonder what would be the reason of this issue?
Here is the build which chirpstack gateway bridge doesnt work on..:
https://drive.google.com/file/d/1i5PeBWMF-9kke3xLXnlwJIylrfxVHWhm/view?usp=sharing -
RE: installing an ipk package and incompatible with the architecture error
root@OpenWrt:/# opkg files chirpstack-gateway-bridge Package chirpstack-gateway-bridge (3.11.0) is installed on root and has the following files: /etc/init.d/chirpstack-gateway-bridge /opt/chirpstack-gateway-bridge/LICENSE /opt/chirpstack-gateway-bridge/chirpstack-gateway-bridge /etc/chirpstack-gateway-bridge/chirpstack-gateway-bridge.toml /opt/chirpstack-gateway-bridge/README.md root@OpenWrt:/# free total used free shared buff/cache available Mem: 124860 14664 96916 312 13280 79712 Swap: 0 0 0 root@OpenWrt:/# /etc/init.d/chirpstack-gateway-bridge start Starting chirpstack-gateway-bridge root@OpenWrt:/# free total used free shared buff/cache available Mem: 124860 14668 96912 312 13280 79708 Swap: 0 0 0
root@OpenWrt:/# ps | grep chirpstack 2048 root 1212 S grep chirpstack
root@OpenWrt:/# logread | grep chirpstack root@OpenWrt:/#
What could be the reason of this difference? what do you think? By the way, i loaded a custom build openwrt firmware 19.07.. Is that can be the reason?
-
RE: installing an ipk package and incompatible with the architecture error
I did it but still there is nothing about chirpstack gateway bridge !
-
RE: installing an ipk package and incompatible with the architecture error
@crispyoz said in installing an ipk package and incompatible with the architecture error:
logread
I did but nothing about chirpstack gateway bridge
-
RE: installing an ipk package and incompatible with the architecture error
@tjoseph1 I tried to run follows:
/etc/init.d/chirpstack-gateway-bridge enable
/etc/init.d/chirpstack-gateway-bridge start
It says "Starting chirpstack-gateway-bridge" but there is no start an instance as proccess.. Could you had a chance to test it on Omega after compiling?
-
RE: installing an ipk package and incompatible with the architecture error
@tjoseph1 Thank you for packing for me the information you gave me was useful.. Thanks again...
-
RE: installing an ipk package and incompatible with the architecture error
I have the sources here:
https://www.chirpstack.io/gateway-bridge/community/source/I recompiled it but it compiles as big endian as you said. So do you think is there a way to compile as little endian?
By the way, i also ask this issue to author in chirpstack community forum. no answer yet.
-
RE: Help for implementation for Lora package sniffer with Onion Omega2 and Bosch Parking Sensor
Please check this link:
https://www.pocketmagic.net/dragino-lg01-lorawan-gateway/
But im not sure one channel gateway would be efficient for car parking sensor application.
-
installing an ipk package and incompatible with the architecture error
Hello all,
I would like to install chirpstack gateway bridge application on my gateway which has Omega2S+.
I follow the instructions below:
wget https://artifacts.chirpstack.io/vendor/dragino/LG308/chirpstack-gateway-bridge_3.11.0-r1_mips_24kc.ipk
opkg install chirpstack-gateway-bridge_3.11.0-r1_mips_24kc.ipk
Result is:
Unknown package 'chirpstack-gateway-bridge'. Collected errors: * pkg_hash_fetch_best_installation_candidate: Packages for chirpstack-gateway-bridge found, but incompatible with the architectures configured * opkg_install_cmd: Cannot install package chirpstack-gateway-bridge.
I see architecture is mipsel_24kc for both system and package.. What would be the reason of this issue?
root@OpenWrt:~# opkg print-architecture arch all 1 arch noarch 1 arch mipsel_24kc 10
the conf file "/etc/opkg.conf" :
dest root / dest ram /tmp lists_dir ext /var/opkg-lists option overlay_root /overlay option check_signature
-
RE: omega 2+ ssh soooooooooooo damn slow and laggy
maybe it could help us to make some helpful comment, if you can share a picture of physical(hardware) setup which has omega2+...