Do I create a new rc.local file in /files/etc
.
I am unclear on how to customize an rc.local file in a custom build using Docker.
Thank you!
Do I create a new rc.local file in /files/etc
.
I am unclear on how to customize an rc.local file in a custom build using Docker.
Thank you!
Hello,
I am trying to customize the firmware image for omega2pro by editing the rc.local file. I am using docker to build the system according to https://github.com/OnionIoT/source#option-a-using-the-docker-image.
Currently, I am creating a file called rc.local in /files/etc
. However, after the build it seems as if it is creating a different rc.local file.
Any Suggestions?
Thank you!
Using dd if=/dev/mtd3 of=<IMAGE-NAME>.bin
clones the stock image without the added installed packages/firmware or files.
Is there a similar command I can use to identically mirror the image?
Thank you!
Hi @Lazar-Demin
In the make menuconfig, I have wifi-warp-core to be included in the build.
I ran opkg list-installed | grep wifi
on the device and it appears that the driver is in fact not installed. I tried the steps suggested and that didn't seem to fix the issue.
Hi @Lazar-Demin
I am still running into the built omega2pro image failing to broadcast an SSID.
I am unable to ssh into the omega onion pro2 after flashing with built image so instead I connect serially.
Using PUTTY I typed wifi in the terminal prompt and its says the following:
radio0(ralink): Interface type not supported
Is this the reason why there is no SSID being broadcasted?
Thank you!
Any information I can add that would help with debugging?
Thank you!
Re: Errors building source for cross development
Hello,
I am building a custom image following https://github.com/OnionIoT/source/tree/openwrt-18.06 and building using Docker.
To resolve the following error messages I tried the following two commands, but still facing the same error message.
./scripts/feeds update onion
./scripts/feeds update -a
make: Entering directory '/root/source/build_dir/target-mipsel_24kc_musl/postfix-3.3.0/src/util'
mipsel-openwrt-linux-musl-gcc -DNO_NIS -DUSE_TLS -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/root/source/staging_dir/target-mipsel_24kc_musl/usr/include/sasl -DHAS_LDAP -DHAS_CDB -DNO_DB -DHAS_SQLITE -I/root/source/staging_dir/target-mipsel_24kc_musl/usr/include/ -DHAS_PCRE -I/root/source/staging_dir/target-mipsel_24kc_musl/usr/include/ -DNO_EAI -DDEF_DB_TYPE="cdb" -g -O -I. -DLINUX5 -c alldig.c
cc1: note: someone does not honour COPTS correctly, passed 0 times
In file included from alldig.c:29:0:
./sys_defs.h:1257:2: error: #error "unsupported platform"
#error "unsupported platform"
^~~~~
./sys_defs.h:1320:2: error: #error "define HAS_FCNTL_LOCK and/or HAS_FLOCK_LOCK"
#error "define HAS_FCNTL_LOCK and/or HAS_FLOCK_LOCK"
^~~~~
./sys_defs.h:1324:2: error: #error "define DEF_MAILBOX_LOCK"
#error "define DEF_MAILBOX_LOCK"
^~~~~
./sys_defs.h:1328:2: error: #error "define INTERNAL_LOCK"
#error "define INTERNAL_LOCK"
^~~~~
./sys_defs.h:1336:2: error: #error "define USE_STATFS or USE_STATVFS"
#error "define USE_STATFS or USE_STATVFS"
^~~~~
In file included from alldig.c:29:0:
./sys_defs.h:1347:57: error: unknown type name 'SOCKADDR_SIZE'
extern const char *inet_ntop(int, const void *, char *, SOCKADDR_SIZE);
^~~~~~~~~~~~~
Makefile:187: recipe for target 'alldig.o' failed
make: *** [alldig.o] Error 1
make: Leaving directory '/root/source/build_dir/target-mipsel_24kc_musl/postfix-3.3.0/src/util'
Makefile:92: recipe for target 'update' failed
make[4]: *** [update] Error 1
make[4]: Leaving directory '/root/source/build_dir/target-mipsel_24kc_musl/postfix-3.3.0'
Makefile:265: recipe for target '/root/source/build_dir/target-mipsel_24kc_musl/postfix-3.3.0/.built' failed
make[3]: *** [/root/source/build_dir/target-mipsel_24kc_musl/postfix-3.3.0/.built] Error 2
make[3]: Leaving directory '/root/source/feeds/packages/mail/postfix'
Command exited with non-zero status 2
time: package/feeds/packages/postfix/compile#0.18#0.05#0.22
package/Makefile:107: recipe for target 'package/feeds/packages/postfix/compile' failed
make[2]: *** [package/feeds/packages/postfix/compile] Error 2
make[2]: Leaving directory '/root/source'
package/Makefile:103: recipe for target '/root/source/staging_dir/target-mipsel_24kc_musl/stamp/.package_compile' failed
make[1]: *** [/root/source/staging_dir/target-mipsel_24kc_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/root/source'
/root/source/include/toplevel.mk:216: recipe for target 'world' failed
make: *** [world] Error 2
Any Suggestions?
Thank you!
Hello,
I am having difficulty finding the .bin image file on the Omega2pro.
Is there a directory path for this?
Thank you!
Hello,
I am building a custom image using the latest git rep: https://github.com/OnionIoT/source.git
I want to include mjpg-streamer, and is facing this issue while building after using the 'make' command.
Checking out files from the svn repository...
/bin/sh: 1: svn: not found
/bin/sh: 1: svn: not found
Makefile:116: recipe for target '/root/buildroot/dl/mjpg-streamer-r182.1.tar.xz' failed
make[3]: *** [/root/buildroot/dl/mjpg-streamer-r182.1.tar.xz] Error 127
make[3]: Leaving directory '/root/buildroot/feeds/packages/multimedia/mjpg-streamer'
Command exited with non-zero status 2
time: package/feeds/packages/mjpg-streamer/compile#0.19#0.08#16.04
package/Makefile:107: recipe for target 'package/feeds/packages/mjpg-streamer/compile' failed
make[2]: *** [package/feeds/packages/mjpg-streamer/compile] Error 2
make[2]: Leaving directory '/root/buildroot'
package/Makefile:103: recipe for target '/root/buildroot/staging_dir/target-mips_24kc_musl/stamp/.package_compile' failed
make[1]: *** [/root/buildroot/staging_dir/target-mips_24kc_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/root/buildroot'
/root/buildroot/include/toplevel.mk:216: recipe for target 'world' failed
make: *** [world] Error 2
Any suggestions?
Thank you!
Thanks, I will try this.
I was able to serially connect to this created image and I see the following where there are no characters after the dash in Omega-.
Is this related?
Thank you!
Hello,
I am following the following instructions to serially connect to an omega onion pro 2, but cannot get it to work. Please note for step 2, I am unable to find Silicon Labs CP210x USB to UART Bridge, but instead only see COM3. So I use 3 while configuring PuTTy, but don't see the omega connected.
I am using a DTECH USB to UART TTL Cable Model No. DT-6552 to serially connect. I am also utilizing RX+, TX-, and GND.
Serial on a Windows Device
Step 1: Download Drivers
Download and install the Silicon Labs CP2102 driver for Windows.
Step 2: Find Serial Device
Plug in your Omega & Dock and run Device Manager (Start > Enter “Device Manager” and press ENTER), look for Silicon Labs CP210x USB to UART Bridge under Ports (COM & LPT), and take note of the COM number in bracket.
Step 3: Download Putty
Step 4: Configure the Terminal Program
Open up PuTTy, select Serial for Connection type, enter the COM number noted down in Step 2 as Serial line, and enter 115200 for the speed.
Step 5: Connect
Click on the Open button to connect to the Omega via the serial terminal.
Log in through serial terminal
Any suggestions?
Thank you so much!
Hello,
I am trying to implement a feature where the Omega Onion Pro 2's SSID is hidden from the public, yet one is still able to connect to it if they know the SSID and Password.
Any suggestions?
Thank you!
Thanks @crispyoz !
In the make menuconfig, I searched through all the folders for this and could not find wifi-warp-core. Does wifi-warp-core just extract all different kinds of wireless drivers for one to choose from, because I found many different versions of wireless drivers.
Thanks again!
Hi @crispyoz
I installed the Warp Core drivers using: ./scripts/feeds install wifi-warp-core
, but it did not seem to resolve the issue.
I am customizing the image using the latest git repo: https://github.com/OnionIoT/source/tree/openwrt-18.06 and following the instructions provided in the README section.
After downloading this repository I am changing the rc.local file and adding two scripts to the root directory.
Thank you!
Hello,
After flashing a custom image or at least I think I successfully flashed the custom image (not sure how to check since I cannot ssh into the Onion Omega 2 pro), the onion omega 2 pro no longer broadcasts an SSID to connect to.
Any thoughts on how to approach this?
Thank you!
Hello,
I am attempting to flash a custom image created with a .bin file to an onion omega 2 pro device and is following https://docs.onion.io/omega2-docs/Firmware-Flashing-from-USB-storage.html. However, I do not have a Dock to look for the USB-to-Serial Device.
Are there special instructions for how to flash a custom image for Omega Onion 2 Pro?
Thank you!
@crispyoz said in fatal: unable to access 'https://git.savannah.gnu.org/r/lwip.git/': server certificate verification failed.:
./scripts/feeds update
Hi @crispyoz I have. I get the following error messages:
root@4490a8f97101:~/source# ./scripts/feeds update
Updating feed 'packages' from 'https://git.openwrt.org/feed/packages.git;openwrt-18.06' ...
fatal: unable to access 'https://git.openwrt.org/feed/packages.git/': server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
failed.
Updating feed 'luci' from 'https://git.openwrt.org/project/luci.git;openwrt-18.06' ...
fatal: unable to access 'https://git.openwrt.org/project/luci.git/': server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
failed.
Updating feed 'routing' from 'https://git.openwrt.org/feed/routing.git;openwrt-18.06' ...
fatal: unable to access 'https://git.openwrt.org/feed/routing.git/': server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
failed.
Updating feed 'telephony' from 'https://git.openwrt.org/feed/telephony.git;openwrt-18.06' ...
fatal: unable to access 'https://git.openwrt.org/feed/telephony.git/': server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
failed.
Updating feed 'onion' from 'https://github.com/OnionIoT/OpenWRT-Packages.git;openwrt-18.06' ...
Already up to date.
Create index file './feeds/onion.index'