Posts made by Valentin Haenel
-
Ability to build firmware ourselves
I'd like to enquire about open-sourcing the firmware builder. This would be nice to build much smaller firmwares, e.g. ones w/o nodejs and w/o the console and leave more space for user programs. Also, I could bake my ssh-key an other stuff right easing the re-flashing and setup process.
-
RE: How many WiFi interfaces has Onion Omega?
For example this little project I cobbled together with a spare powerbank I had lying around.
-
RE: How many WiFi interfaces has Onion Omega?
The Omega is equipped with an Atheros AR9331 WiSoC (Wireless System-on-a-Chip). It is a single chip but correctly said by @Andrey-Zolotarev it does have two wifi interfaces. These can in principle be configured to anything.
-
WDS mode for openwrt
Has anyone made the 'wds' mode for openwrt work with the omega yet?
https://wiki.openwrt.org/doc/recipes/atheroswds
I tried today but couldn't make it work. Would be nice to have that so as to make a better range extender.
-
RE: Adafruit Trinket with Onion Omega
On my Raspberry Pi I see:
[1567048.328727] usb 1-1.2: new low-speed USB device number 4 using dwc_otg [1567048.442001] usb 1-1.2: New USB device found, idVendor=1781, idProduct=0c9f [1567048.442034] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [1567048.442049] usb 1-1.2: Product: Trinket [1567048.442062] usb 1-1.2: Manufacturer: Adafruit
Which seems to be indicating a different driver,
dwc_otg
?? -
RE: Adafruit Trinket with Onion Omega
I guess I should also mention, that I am expecting the Trinket red LED to phase for 10 seconds indicating that a program can be uploaded. This doesn't happen when connected to Omgea.
-
Adafruit Trinket with Onion Omega
I have an adafruit trinket and decided to try to connect it to the omega via USB. I was hoping to upload new code to the trinket from the omega using
avrdude
which is installed already on the Omega, No luck unfortunately, I see the following in dmesg:[ 129.120000] usb usb1-port1: connect-debounce failed
If I connect it to my Laptop instead I see:
[219140.790785] usb 3-2: new low-speed USB device number 5 using xhci_hcd [219140.984129] usb 3-2: New USB device found, idVendor=1781, idProduct=0c9f [219140.984138] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [219140.984143] usb 3-2: Product: Trinket [219140.984147] usb 3-2: Manufacturer: Adafruit
I tried uploading something with avrdude anyway, but it was unable to find the board.
Anyone know more?
-
RE: Unable to install python
I installed
python-light
and that was installable. But beware you will need 50MB or more to install a full-stack:https://wiki.openwrt.org/doc/software/python
You can also attempt to use USB-Storage as root-fs:
http://gdgbasel.com/2015/12/06/installing-python-on-onion-omega/
That should give you more than enough space to install anything you want.
-
RE: Unable to install python
It ran out of space, yet the only other thing I installed was git..
-
Unable to install python
I was unable to install python, see the following trace:
root@onionomega:/# opkg install python Installing python (2.7.9-5) to root... Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/packages/python_2.7.9-5_ar71xx.ipk. Installing python-light (2.7.9-5) to root... Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/packages/python-light_2.7.9-5_ar71xx.ipk. Installing python-base (2.7.9-5) to root... Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/packages/python-base_2.7.9-5_ar71xx.ipk. Installing libffi (3.0.13-1) to root... Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/packages/libffi_3.0.13-1_ar71xx.ipk. Installing libbz2 (1.0.6-2) to root... Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/base/libbz2_1.0.6-2_ar71xx.ipk. Installing python-codecs (2.7.9-5) to root... Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/packages/python-codecs_2.7.9-5_ar71xx.ipk. Installing python-compiler (2.7.9-5) to root... Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/packages/python-compiler_2.7.9-5_ar71xx.ipk. Installing python-ctypes (2.7.9-5) to root... Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/packages/python-ctypes_2.7.9-5_ar71xx.ipk. Installing python-db (2.7.9-5) to root... Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/packages/python-db_2.7.9-5_ar71xx.ipk. Installing libdb47 (4.7.25.4.NC-4.1) to root... Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/packages/libdb47_4.7.25.4.NC-4.1_ar71xx.ipk. Installing libxml2 (2.9.2-3) to root... Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/packages/libxml2_2.9.2-3_ar71xx.ipk. Installing python-decimal (2.7.9-5) to root... Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/packages/python-decimal_2.7.9-5_ar71xx.ipk. Installing python-distutils (2.7.9-5) to root... Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/packages/python-distutils_2.7.9-5_ar71xx.ipk. Installing python-email (2.7.9-5) to root... Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/packages/python-email_2.7.9-5_ar71xx.ipk. Installing python-gdbm (2.7.9-5) to root... Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/packages/python-gdbm_2.7.9-5_ar71xx.ipk. Installing libgdbm (1.11-1) to root... Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/packages/libgdbm_1.11-1_ar71xx.ipk. Installing python-logging (2.7.9-5) to root... Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/packages/python-logging_2.7.9-5_ar71xx.ipk. Installing python-multiprocessing (2.7.9-5) to root... Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/packages/python-multiprocessing_2.7.9-5_ar71xx.ipk. Installing python-ncurses (2.7.9-5) to root... Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/packages/python-ncurses_2.7.9-5_ar71xx.ipk. Installing python-openssl (2.7.9-5) to root... Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/packages/python-openssl_2.7.9-5_ar71xx.ipk. Installing python-pydoc (2.7.9-5) to root... Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/packages/python-pydoc_2.7.9-5_ar71xx.ipk. Installing python-sqlite3 (2.7.9-5) to root... Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/packages/python-sqlite3_2.7.9-5_ar71xx.ipk. Installing libsqlite3 (3081101-1) to root... Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/packages/libsqlite3_3081101-1_ar71xx.ipk. Configuring python-base. Configuring libffi. Configuring libbz2. Configuring python-light. Configuring python-codecs. Configuring libxml2. Configuring libdb47. Configuring python-db. Configuring python-decimal. Configuring python-distutils. Configuring python-pydoc. Configuring python-email. Configuring python-ctypes. Configuring libgdbm. Configuring python-gdbm. Configuring python-ncurses. Configuring python-sqlite3. Configuring python-compiler. Configuring python-openssl. Configuring python-multiprocessing. Configuring python-logging. Collected errors: * pkg_write_filelist: Failed to open //usr/lib/opkg/info/libsqlite3.list: No space left on device. * opkg_install_pkg: Failed to extract data files for libsqlite3. Package debris may remain! * opkg_install_cmd: Cannot install package python.
Please help!
-
RE: Disable second SSID
I have been thinking some more about this and maybe we should attempt to disable the DHCP-Server
dnsmasq
and maybe remove the firewall zones? -
RE: Disable second SSID
Maybe that should be made part of the setup instructions, at least that it is optional? Almost all the unboxing videos have stated that this is an issue. cc @Lazar-Demin
-
RE: Disable second SSID
After putting all the config under version control, I can confirm, that
wifisetup -killap
will simply remove thewifi-iface
as shown by the following difff:diff --git a/wireless b/wireless index f5bfbb3..b24bc29 100644 --- a/wireless +++ b/wireless @@ -9,13 +9,6 @@ config wifi-device 'radio0' option txpower '30' option country 'US' -config wifi-iface - option device 'radio0' - option network 'wlan' - option mode 'ap' - option encryption 'none' - option ssid 'Omega-XXXX' - config wifi-iface option device 'radio0' option mode 'sta'
-
RE: Disable second SSID
There is also an option for the
wifisetup
script to disable (kill) the Access Point (AP):$ wifisetup -killap
Though I am not yet sure what exactly this does but it might do the trick.
-
RE: Disable second SSID
I can confirm that commenting out the section in
/etc/config/wireless
like so:#config wifi-iface # option device 'radio0' # option network 'wlan' # option mode 'ap' # option encryption 'none' # option ssid 'Omega-XXXX'
Where
XXXX
is your name of the SSID.If I am not mistaken you then need to restart the wirless by using the
wifi
command like so:root@onion:~# wifi
-
Disable second SSID
I'd like to see a tutorial about disabling the secondary SSID. I.e. the one that you can use to log in initially. This would be nice, because it is still on, after connecting my home network, and this could be a way to hijack an omega for a tech-savy attacker.
I know that it is probably enough for now to simply disable the Wireless interface in
/etc/config/wireless
but I'd like to also remove the corresponding sections in/etc/config/network
/etc/config/dhcp
and/etc/config/firewall
. However I don't really know enough about OpenWRT yet to confidently modify those files. Would anyone like to collaborate with me on a tutorial about this? Or perhaps someone has already solved this and there is a solution, maybe even a script one could run?