@Gabriel-Ongpauco Thank you so mach. I just got the Expansion Dock. I will try to debrick the Omega ASAP.
Hong Chen
@Hong Chen
Best posts made by Hong Chen
-
RE: boot loop
-
RE: boot loop
I try building my own Ethernet expansion, it look good, PC LAN port LED start blinking.
but httpd command not work, I try reconnect the Ethernet cable and try again. It still same.
any way I can make sure the connect ?Omega> httpd Link down: eth0 Link down: eth1 Link down: eth0 Link down: eth1 Link down: eth0 Link down: eth1 Link down: eth0 Link down: eth1 Link down: eth0 Link down: eth1 Link down: eth0 Link down: eth1 Link down: eth0 Link down: eth1 Link down: eth0 Link down: eth1 Link down: eth0 Link down: eth1 Link down: eth0 Link down: eth1 ## Error: couldn't initialize eth (cable disconnected?)! Omega>
Latest posts made by Hong Chen
-
Using Motion Sensor HC-SR501
I try a project using motion sensor.
if motion detected, turn on a LED.Program write in Python.
#!/usr/local/bin/python # -*- coding: utf-8 -*- import time import onionGpio from datetime import datetime # LED GPIO led_pin = 0 pir_pin = 9 sleeptime = 100000 led_light_up_time = 1 led = onionGpio.OnionGpio(led_pin) pir = onionGpio.OnionGpio(pir_pin) led.setOutputDirection(0) pir.setInputDirection() while True: value = pir.getValue().rstrip() if(value == "1"): print datetime.now(), print "motion_detected" led.setValue(1) time.sleep(led_light_up_time) led.setValue(0)
It seem work well.
but a problem is when press Ctrl-C to stop running,
then try run again, some time cause ”Resource busy“ error.root@Omega-6F83:~# python motion2.py Traceback (most recent call last): File "motion2.py", line 17, in <module> pir.setInputDirection() File "/usr/lib/python2.7/onionGpio.py", line 158, in setInputDirection ret = self._setDirection(_GPIO_INPUT_DIRECTION) File "/usr/lib/python2.7/onionGpio.py", line 134, in _setDirection status = self._initGpio() File "/usr/lib/python2.7/onionGpio.py", line 46, in _initGpio fd.close() IOError: [Errno 16] Resource busy root@Omega-6F83:~#
May be onionGpio not release some "Resource" after Ctrl-C.
How can I fix it? -
RE: boot loop
Sorry for replay late, I try to debrick , because I am quite busy and try many time but still not work.
it seem hardware not stable. see following describe. any thing wrong?
(btw, I backed 2 Omega2, hope go smoothly!)- Usually only show following message then freeze.
********************************************* * U-Boot 1.1.4 (Sep 14 2015, 08:21:31) * ********************************************* AP121 (AR9331) U-Boot for Onion Omega DRAM: 64 MB DDR2 16-bit id read ox100000ff FLASH: 16MCLOCKS: 400/400/200/20 MHz (CPU/RAM/AHB/SPI) LED on during eth initialization... (freeze) --------------
- May be one time go through after many try, then freeze after starting httpd...
********************************************* * U-Boot 1.1.4 (Sep 14 2015, 08:21:31) * ********************************************* AP121 (AR9331) U-Boot for Onion Omega DRAM: 64 MB DDR2 16-bit id read ox100000ff FLASH: 16MCLOCKS: 400/400/200/20 MHz (CPU/RAM/AHB/SPI) LED on during eth initialization... Hit any key to stop autobooting: 0 Omega> httpd Ethernet mode (duplex/speed): 1/100 Mbps HTTP server is starting at IP: 192.168.1.1 (freeze) --------------
I am give up!
-
RE: boot loop
@Gabriel-Ongpauco Thank you so mach. I just got the Expansion Dock. I will try to debrick the Omega ASAP.
-
RE: boot loop
@Gabriel-Ongpauco I still not get the Expansion Dock, is it still on the way?
or any other new way to debrick the Omega? -
RE: boot loop
@Boken-Lin Thank for replay.
I was initially use a phone charger, I check the current only 30-100 mA.
but 2nd day I can't browse and ssh into Onion and can't find it on LAN with tool "fing".
so I trying serial connect to see what happen.
the TTL output reboot was on the case using serial connect, it connected Notebook PC USB and OMEGA micro USB.
Today I try use powered USB hub (HUB with 2.5A power supply ), unfortunate I still can't start httpd.
I think if only current 30-100 mA, Notebook PC USB power is enough.Thanks! & Merry Christmas!
-
RE: boot loop
@Boken-Lin because I can't start httpd. so I try to find problem.
what is "serverip=192.168.1.100" meaning? the Omega ip?
I set PC ip to 192.168.1.111 and ping 192.168.1.1, .100, both no reach.
than I try ping from Omega self, and found it "not alive".how can I make Omega work. is it any way to use USB serial to make a solution?
-
RE: boot loop
I try it, still can't start httpd.
Also it is stranger, why ping self-ipaddr gotError: ping failed, host 192.168.1.1 is not alive!
Omega> printenv bootcmd=bootm 0x9F020000 bootdelay=2 baudrate=115200 ipaddr=192.168.1.1 serverip=192.168.1.100 bootfile="firmware.bin" loadaddr=0x80800000 ncport=6666 uboot_addr=0x9F000000 uboot_name=uboot.bin uboot_size=0x10000 uboot_upg=if ping $serverip; then tftp $loadaddr $uboot_name && if itest.l $filesize == $uboot_size; then erase $uboot_addr +$filesize && cp.b $loadaddr $uboot_addr $filesize && echo OK!; else echo ERROR! Wrong file size!; fi; else ERROR! Server not reachable!; fi firmware_addr=0x9F020000 firmware_name=firmware.bin firmware_upg=if ping $serverip; then tftp $loadaddr $firmware_name && erase $firmware_addr +$filesize && cp.b $loadaddr $firmware_addr $filesize && echo OK!; else ERROR! Server not reachable!; fi stdin=serial stdout=serial stderr=serial ethact=eth0 Environment size: 779 bytes Omega> ping 192.168.1.1 Link down: eth0 Link down: eth1 ## Error: ping failed, host 192.168.1.1 is not alive! Omega>