Hello.
I made a python lib for the MCP 23017 i hope you will find it usefull , i am not a good programmer but i hope it does the job. feel free to give me pointers.
https://github.com/HaythemLtifi/MCP23017-python-lib-for-omega-onion/blob/main/README.md
haythem
@haythem
Best posts made by haythem
-
MCP23017 librarie for python
-
RE: MCP23017 librarie for python
@crispyoz thankssss , I appreciate the comment
Latest posts made by haythem
-
RE: MCP23017 librarie for python
@crispyoz thankssss , I appreciate the comment
-
MCP23017 librarie for python
Hello.
I made a python lib for the MCP 23017 i hope you will find it usefull , i am not a good programmer but i hope it does the job. feel free to give me pointers.
https://github.com/HaythemLtifi/MCP23017-python-lib-for-omega-onion/blob/main/README.md -
.Net core on Omega 2+
Hello , i know this topic was discussed before but the links are broken.
i have a .netcore c# app made in visual studio i want to cross compile it to run onion omega 2+.
Is it even possible?
if yes HOWWWWWWWWWWW
Thanks -
RE: Cross compile Mono from source for the Omega2 and Omega2+
@Jackdaw2 HEY
i am noob and i have no idea how to do all this. do you have some free time to chat on how to solve my problem?
i have a made a program with c# in visual studio on my windows10 machine. i want to know how i can run it or re code it on my omega 2+. is it even possible? thank you -
RE: Python3 is only 3.6
did you run the python installation command and specified the python3.7?
i never tried but try this
opkg update
opkg install python3.7
and let us know if it works -
RE: omega 2+ ssh soooooooooooo damn slow and laggy
@Nate i just gave up and got a usb to serial converter and i use serial communication , no lag . but the omega needs to be connected to my pc at all times , well at least i can prototype with out headache .
i will look into the antenna thing . thanks for the info -
RE: i broke my omega with factory reset
@crispyoz it did work , and no idea why . it even show the access point ............
"before the factory reset the access point was broken "
damn my mind is toasted ......... been debugging for hours ,...
yeeey -
RE: i broke my omega with factory reset
@crispyoz so much fun....................
the omega used to work fine.
now the led will blink and shut down .
putty will stop too
my putty setting are just the com port and the datta speed set to 115200
i have no eithernet doc so i cant run the web recovery mode.
i am lost here ........ its not even my board. i am borrowing it . -
i broke my omega with factory reset
i had my omega IP show as omega-0000 after modding the etc/config/wirless file.
i only changed the channel to 1 instead of auto but it broke.
so i run factory reset command using USB to serial converter .
when i power it , the omega led will blink for a minut then i again get the omega-0000 after that it will stop working .i copied the msg i get from the serial interface using putty and i included it below . please have a look at it and tell me if this is fixable and if you can guide me throw it .
note: i dont have a doc .
my power supply is . 3.3v 1.2 A
i did a voltage divider to divide the 5 v on the USB to 3v so i dont burn the omega.
/ __ ___ ()__ ___ / __ _ _ ___ ___ ____ _
/ // / _ / / _ / _ \ / // / ' / -) _/ _
/
_/////___//// _////_/_, /_,/
W H A T W I L L Y O U I N V E N T ? /__/"Board: Onion Omega2 APSoC DRAM: 128 MB
relocate_code Pointer at: 87f60000
flash manufacture id: c2, device id 20 19
find flash: MX25L25635E
*** Warning - bad CRC, using default environment============================================
Onion Omega2 UBoot Version: 4.3.0.3ASIC 7628_MP (Port5<->None)
DRAM component: 1024 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 128 MBytes
Flash component: SPI Flash
Date:Oct 18 2016 Time:17:29:05icache: sets:512, ways:4, linesz:32 ,total:65536
dcache: sets:256, ways:4, linesz:32 ,total:32768
CPU freq = 575 MHZ
Estimated memory size = 128 Mbytes
Resetting MT7628 PHY.
Initializing MT7688 GPIO system.
- Hold Reset button for more options *
Boot Linux from Flash NO RESET PRESSED.
Booting image at bc050000 ...
Image Name: MIPS OpenWrt Linux-4.14.81
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 1614126 Bytes = 1.5 MB
Load Address: 80000000
Entry Point: 80000000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
No initrdTransferring control to Linux (at address 80000000) ...
Giving linux memsize in MB, 128
Starting kernel ...
[ 0.000000] Linux version 4.14.81 (root@bd51b33d7aa3) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r0-)) #0 Fri Dec 6 16:28:06 2019
[ 0.000000] Board has DDR2
[ 0.000000] Analog PMU set to hw control
[ 0.000000] Digital PMU set to hw control
[ 0.000000] SoC Type: MediaTek MT7688 ver:1 eco:2
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 00019655 (MIPS 24KEc)
[ 0.000000] MIPS: machine is Onion Omega2+
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 08000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000000000000-0x0000000007ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x0000000007ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[ 0.000000] random: get_random_bytes called from start_kernel+0x8c/0x474 with crng_init=0
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 32512
[ 0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2
[ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Writing ErrCtl register=0004000f
[ 0.000000] Readback ErrCtl register=0004000f
[ 0.000000] Memory: 124644K/131072K available (3699K kernel code, 204K rwdata, 916K rodata, 164K init, 205K bss, 6428K reserved, 0K cma-reserved)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS: 256
[ 0.000000] intc: using register map from devicetree
[ 0.000000] CPU Clock: 580MHz
[ 0.000000] timer_probe: no matching timers found
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6590553264 ns
[ 0.000012] sched_clock: 32 bits at 290MHz, resolution 3ns, wraps every 7405115902ns
[ 0.007676] Console: colour dummy device 80x25
[ 0.011933] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[ 0.073524] pid_max: default: 32768 minimum: 301
[ 0.078209] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.084561] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.098549] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.108045] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.113992] pinctrl core: initialized pinctrl subsystem
[ 0.119566] NET: Registered protocol family 16
[ 0.155926] mt7621_gpio 10000600.gpio: registering 32 gpios
[ 0.161608] mt7621_gpio 10000600.gpio: registering 32 gpios
[ 0.167120] mt7621_gpio 10000600.gpio: registering 32 gpios
[ 0.173736] i2c-mt7621 10000900.i2c: clock 100 kHz
[ 0.183341] clocksource: Switched to clocksource MIPS
[ 0.195223] NET: Registered protocol family 2
[ 0.200346] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.207100] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.213197] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.219481] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.225123] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.231420] NET: Registered protocol family 1
[ 0.250256] Crashlog allocated RAM at address 0x3f00000
[ 0.256890] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[ 0.269120] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.274741] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.294571] io scheduler noop registered
[ 0.298302] io scheduler deadline registered (default)
[ 0.304350] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[ 0.311658] console [ttyS0] disabled
[ 0.315159] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 28, base_baud = 2500000) is a 16550A
[ 0.323881] console [ttyS0] enabled
[ 0.323881] console [ttyS0] enabled
[ 0.330877] bootconsole [early0] disabled
[ 0.330877] bootconsole [early0] disabled
[ 0.339694] 10000d00.uart1: ttyS1 at MMIO 0x10000d00 (irq = 29, base_baud = 2500000) is a 16550A
[ 0.349331] 10000e00.uart2: ttyS2 at MMIO 0x10000e00 (irq = 30, base_baud = 2500000) is a 16550A
[ 0.358851] cacheinfo: Failed to find cpu0 device node
[ 0.364111] cacheinfo: Unable to detect cache hierarchy for CPU 0
[ 0.371071] spi-mt7621 10000b00.spi: sys_freq: 193333333
[ 0.382232] m25p80 spi0.0: mx25l25635e (32768 Kbytes)
[ 0.387480] 5 fixed-partitions partitions found on MTD device spi0.0
[ 0.393940] Creating 5 MTD partitions on "spi0.0":
[ 0.398807] 0x000000000000-0x000000030000 : "u-boot"
[ 0.404819] 0x000000030000-0x000000040000 : "u-boot-env"
[ 0.411028] 0x000000040000-0x000000050000 : "factory"
[ 0.417080] 0x000000050000-0x000001f80000 : "firmware"
[ 0.502975] 2 uimage-fw partitions found on MTD device firmware
[ 0.509024] 0x000000050000-0x0000001da16e : "kernel"
[ 0.515004] 0x0000001da16e-0x000001f80000 : "rootfs"
[ 0.520831] mtd: device 5 (rootfs) set to be root filesystem
[ 0.528115] 1 squashfs-split partitions found on MTD device rootfs
[ 0.534454] 0x000000970000-0x000001f80000 : "rootfs_data"
[ 0.540876] 0x000001f80000-0x000002000000 : "user"
[ 0.547645] libphy: Fixed MDIO Bus: probed
[ 0.563666] rt3050-esw 10110000.esw: link changed 0x00
[ 0.570554] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
[ 0.579244] i2c /dev entries driver
[ 0.584677] NET: Registered protocol family 10
[ 0.593633] Segment Routing with IPv6
[ 0.597473] NET: Registered protocol family 17
[ 0.602035] 8021q: 802.1Q VLAN Support v1.8
[ 0.616235] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[ 0.624344] Freeing unused kernel memory: 164K
[ 0.628849] This architecture does not have kernel memory protection.
[ 1.591466] init: Console is alive
[ 1.595263] init: - watchdog -
[ 2.233356] random: fast init done
[ 5.209150] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 5.513661] usbcore: registered new interface driver usbfs
[ 5.519316] usbcore: registered new interface driver hub
[ 5.524867] usbcore: registered new device driver usb
[ 5.536558] exFAT: Version 1.2.9
[ 5.575259] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 5.591719] SCSI subsystem initialized
[ 5.601270] ehci-platform: EHCI generic platform driver
[ 5.616965] phy phy-10120000.usbphy.0: remote usb device wakeup disabled
[ 5.623792] phy phy-10120000.usbphy.0: UTMI 16bit 30MHz
[ 5.629110] ehci-platform 101c0000.ehci: EHCI Host Controller
[ 5.634995] ehci-platform 101c0000.ehci: new USB bus registered, assigned bus number 1
[ 5.643160] ehci-platform 101c0000.ehci: irq 26, io mem 0x101c0000
[ 5.673388] ehci-platform 101c0000.ehci: USB 2.0 started, EHCI 1.00
[ 5.680863] hub 1-0:1.0: USB hub found
[ 5.685122] hub 1-0:1.0: 1 port detected
[ 5.695239] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 5.703140] ohci-platform: OHCI generic platform driver
[ 5.708820] ohci-platform 101c1000.ohci: Generic Platform OHCI controller
[ 5.715794] ohci-platform 101c1000.ohci: new USB bus registered, assigned bus number 2
[ 5.723931] ohci-platform 101c1000.ohci: irq 26, io mem 0x101c1000
[ 5.798431] hub 2-0:1.0: USB hub found
[ 5.802696] hub 2-0:1.0: 1 port detected
[ 5.821409] MTK MSDC device init.
[ 5.883580] mtk-sd: MediaTek MT6575 MSDC Driver
[ 5.895201] sdhci: Secure Digital Host Controller Interface driver
[ 5.901496] sdhci: Copyright(c) Pierre Ossman
[ 5.907555] sdhci-pltfm: SDHCI platform and OF driver helper
[ 5.919506] usbcore: registered new interface driver usb-storage
[ 5.931469] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 5.949371] init: - preinit -
[ 6.144020] mmc0: new high speed SDHC card at address 0001
[ 6.158962] mmcblk0: mmc0:0001 00000 7.27 GiB
[ 6.171975] mmcblk0: p1
[ 7.477485] rt3050-esw 10110000.esw: link changed 0x00
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[ 7.677812] random: procd: uninitialized urandom read (4 bytes read)
[ 10.920771] mount_root: loading kmods from internal overlay
[ 10.992549] kmodloader: loading kernel modules from //etc/modules-boot.d/*
[ 11.006076] kmodloader: done loading kernel modules from //etc/modules-boot.d/*
[ 12.426639] block: attempting to load /etc/config/fstab
[ 12.437445] block: unable to load configuration (fstab: Entry not found)
[ 12.444412] block: no usable configuration
[ 12.449452] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
[ 12.525650] urandom-seed: Seed file not found (/etc/urandom.seed)
[ 12.735803] procd: - early -
[ 12.738840] procd: - watchdog -
[ 13.488191] procd: - watchdog -
[ 13.491679] procd: - ubus -
[ 13.595715] random: ubusd: uninitialized urandom read (4 bytes read)
[ 13.794445] random: ubusd: uninitialized urandom read (4 bytes read)
[ 13.801458] random: ubusd: uninitialized urandom read (4 bytes read)
[ 13.809043] procd: - init -
Please press Enter to activate this console.
[ 14.365966] kmodloader: loading kernel modules from /etc/modules.d/*
[ 14.534417] RPC: Registered named UNIX socket transport module.
[ 14.540431] RPC: Registered udp transport module.
[ 14.545261] RPC: Registered tcp transport module.
[ 14.550028] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 14.568546] ntfs: driver 2.1.32 [Flags: R/O MODULE].
[ 14.653402] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 15.285977]
[ 15.285977]
[ 15.285977] === pAd = c061e000, size = 1178064 ===
[ 15.285977]
[ 15.297281] mt7628_init(FW(8a00), HW(8a01), CHIPID(7628))
[ 15.367111] Linux video capture interface: v2.00
[ 15.462360] hidraw: raw HID events driver (C) Jiri Kosina
[ 15.491827] ledchain: pwm_base=0xB0005000
[ 15.496137] ledchain: v2 - Device: /dev/ledchain2
[ 15.500909] ledchain: - PWM channel : 2
[ 15.505104] ledchain: - PWM buffer size: 12
[ 15.509345] ledchain: - Number of LEDs : 1
[ 15.513505] ledchain: - Inverted : 0
[ 15.517654] ledchain: - LED type : WS2812
[ 15.522243] ledchain: - Max retries : 3
[ 15.526404] ledchain: - Max Tpassive : 10000 nS
[ 15.688741] Bluetooth: Core ver 2.22
[ 15.692485] NET: Registered protocol family 31
[ 15.697039] Bluetooth: HCI device and connection manager initialized
[ 15.703508] Bluetooth: HCI socket layer initialized
[ 15.708459] Bluetooth: L2CAP soc
[ 52.645596] IPv6: ADDRCONF(NETDEV_UP): br-wlan: link is not ready
[ 55.806262] br-wlan: port 1(ra0) entered blocking state
[ 55.811668] br-wlan: port 1(ra0) entered disabled state
[ 55.817401] device ra0 entered promiscuous mode
[ 55.822234] br-wlan: port 1(ra0) entered blocking state
[ 55.827592] br-wlan: port 1(ra0) entered forwarding state
[ 55.834713] IPv6: ADDRCONF(NETDEV_CHANGE): br-wlan: link becomes ready
[ 63.844694] device ra0 left promiscuous mode
[ 63.849170] br-wlan: port 1(ra0) entered disabled state
[ 64.662043] IPv6: ADDRCONF(NETDEV_UP): br-wlan: link is not ready
[ 65.327750] IPv6: ADDRCONF(NETDEV_UP): ra0: link is not ready
[ 65.873474] IPv6: ADDRCONF(NETDEV_CHANGE): ra0: link becomes ready