We have upgraded the community system as part of the upgrade a password reset is required for all users before login in.

boot loop



  • Yesterday I turn on Onion with dock, connect to net and make update. anythinglook OK,
    Just I try to plug USB storage in but nothing happen. not found any under /dev/sd*
    Today I try again, but I can't browse and ssh into Onion
    Last I try serial connect, just saw boot loop message forever. even I hit Enter,...

    *********************************************
    *   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
    
    Booting image at: 0x9F020000
    
       Image name:   OpenWrt r47515
       Image type:   MIPS Linux Kernel Image (lzma compressed)
       Data size:    1139392 Bytes = 1.1 MB
       Load address: 0x80060000
       Entry point:  0x80060000
    
    Uncompressing kernel image... OK!
    Starting kernel...
    
    [    0.000000] Linux version 3.18.23 (zh@ci-onion) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r47515) ) #1 Thu Nov 19 23:49:46 UTC 2015
    [    0.000000] bootconsole [early0] enabled
    [    0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)
    [    0.000000] SoC: Atheros AR9330 rev 1
    [    0.000000] Determined physical RAM map:
    [    0.000000]  memory: 04000000 @ 00000000 (usable)
    [    0.000000] Initrd not found or empty - disabling initrd
    [    0.000000] Zone ranges:
    [    0.000000]   Normal   [mem 0x00000000-0x03ffffff]
    [    0.000000] Movable zone start for each node
    [    0.000000] Early memory node ranges
    [    0.000000]   node   0: [mem 0x00000000-0x03ffffff]
    [    0.000000] Initmem setup node 0 [mem 0x00000000-0x03ffffff]
    [    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
    [    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
    [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
    [    0.000000] Kernel command line:  board=ONION-OMEGA  console=ttyATH0,115200 rootfstype=squashfs,jffs2 noinitrd
    [    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
    [    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
    [    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
    [    0.000000] Writing ErrCtl register=00000000
    [    0.000000] Readback ErrCtl register=00000000
    [    0.000000] Memory: 60944K/65536K available (2486K kernel code, 129K rwdata, 532K rodata, 236K init, 188K bss, 4592K reserved)
    [    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    [    0.000000] NR_IRQS:51
    [    0.000000] Clocks: CPU:400.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:25.000MHz
    [    0.000000] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104)
    [    0.080000] pid_max: default: 32768 minimum: 301
    [    0.080000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.090000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.100000] NET: Registered protocol family 16
    [    0.100000] MIPS: machine is Onion Omega
    [    0.370000] Switched to clocksource MIPS
    [    0.370000] NET: Registered protocol family 2
    [    0.380000] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.380000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.380000] TCP: Hash tables configured (established 1024 bind 1024)
    [    0.390000] TCP: reno registered
    [    0.390000] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [    0.400000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [    0.410000] NET: Registered protocol family 1
    [    0.410000] futex hash table entries: 256 (order: -1, 3072 bytes)
    [    0.430000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    0.430000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
    [    0.440000] msgmni has been set to 119
    [    0.460000] io scheduler noop registered
    [    0.460000] io scheduler deadline registered (default)
    [    0.460000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
    [    0.470000] ar933x-uart: ttyATH0 at MMIO 0x18020000 (irq = 11, base_baud = 1562500) is a AR933X UART
    [    0.480000] console [ttyATH0] enabled
    [    0.480000] console [ttyATH0] enabled
    [    0.490000] bootconsole [early0] disabled
    [    0.490000] bootconsole [early0] disabled
    [    0.500000] m25p80 spi0.0: found w25q128, expected m25p80
    [    0.500000] m25p80 spi0.0: w25q128 (16384 Kbytes)
    [    0.510000] 5 tp-link partitions found on MTD device spi0.0
    [    0.510000] Creating 5 MTD partitions on "spi0.0":
    [    0.520000] 0x000000000000-0x000000020000 : "u-boot"
    [    0.520000] 0x000000020000-0x0000001364c0 : "kernel"
    [    0.530000] 0x0000001364c0-0x000000ff0000 : "rootfs"
    [    0.530000] mtd: device 2 (rootfs) set to be root filesystem
    [    0.540000] 1 squashfs-split partitions found on MTD device rootfs
    [    0.540000] 0x000000780000-0x000000ff0000 : "rootfs_data"
    [    0.550000] 0x000000ff0000-0x000001000000 : "art"
    [    0.550000] 0x000000020000-0x000000ff0000 : "firmware"
    [    0.580000] libphy: ag71xx_mdio: probed
    [    1.170000] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.1:04 [uid=004dd041, driver=Generic PHY]
    [    1.180000] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:MII
    [    1.180000] TCP: cubic registered
    [    1.180000] NET: Registered protocol family 17
    [    1.190000] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
    [    1.200000] 8021q: 802.1Q VLAN Support v1.8
    [    1.210000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
    [    1.220000] Freeing unused kernel memory: 236K (80375000 - 803b0000)
    [    2.680000] init: Console is alive
    [    2.680000] init: - watchdog -
    [    5.210000] usbcore: registered new interface driver usbfs
    [    5.220000] usbcore: registered new interface driver hub
    [    5.220000] usbcore: registered new device driver usb
    [    5.280000] SCSI subsystem initialized
    [    5.290000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    [    5.300000] ehci-platform: EHCI generic platform driver
    [    5.300000] ehci-platform ehci-platform: EHCI Host Controller
    [    5.310000] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1
    [    5.320000] ehci-platform ehci-platform: irq 3, io mem 0x1b000000
    [    5.340000] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00
    [    5.340000] hub 1-0:1.0: USB hub found
    [    5.340000] hub 1-0:1.0: 1 port detected
    [    5.360000] usbcore: registered new interface driver usb-storage
    [    5.700000] init: - preinit -
    [    6.420000] random: procd urandom read with 10 bits of entropy available
    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
    [    9.690000] mount_root: loading kmods from internal overlay
    [   10.070000] jffs2: notice: (337) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
    [   10.080000] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
    [   10.100000] block: extroot: not configured
    [   10.180000] jffs2: notice: (334) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
    [   10.200000] mount_root: loading kmods from internal overlay
    [   10.400000] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
    [   10.410000] block: extroot: not configured
    [   10.410000] mount_root: switching to jffs2 overlay
    [   10.480000] procd: - early -
    [   10.480000] procd: - watchdog -
    [   11.450000] procd: - ubus -
    Command failed: Not found
    [   12.460000] procd: - init -
    Please press Enter to activate this console.
    
    ^[[A
    
    BusyBox v1.23.2 (2015-11-19 23:45:28 UTC) built-in shell (ash)
    
       ____       _             ____
      / __ \___  (_)__  ___    / __ \__ _  ___ ___ ____ _
     / /_/ / _ \/ / _ \/ _ \  / /_/ /  ' \/ -_) _ `/ _ `/
     \____/_//_/_/\___/_//_/  \____/_/_/_/\__/\_, /\_,_/
     W H A T  W I L L  Y O U  I N V E N T ? /___/
     -----------------------------------------------------
       Ω-ware: 0.0.4 b220
     -----------------------------------------------------
    [   13.970000] NET: Registered protocol family 10
    root@(none):/# [   14.000000] ntfs: driver 2.1.31 [Flags: R/O MODULE].
    [   14.030000] ip6_tables: (C) 2000-2006 Netfilter Core Team
    [   14.060000] i2c /dev entries driver
    [   14.060000] Custom GPIO-based I2C driver version 0.1.1
    [   14.070000] i2c-gpio i2c-gpio.0: using pins 21 (SDA) and 20 (SCL)
    [   14.120000] Linux video capture interface: v2.00
    [   14.140000] hidraw: raw HID events driver (C) Jiri Kosina
    [   14.160000] usbcore: registered new interface driver cdc_acm
    [   14.160000] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
    [   14.170000] Loading modules backported from Linux version master-2015-03-09-0-g141f155
    [   14.180000] Backport generated by backports.git backports-20150129-0-gdd4a670
    [   14.190000] ip_tables: (C) 2000-2006 Netfilter Core Team
    [   14.210000] nf_conntrack version 0.5.0 (955 buckets, 3820 max)
    [   14.250000] usbcore: registered new interface driver ums-alauda
    [   14.260000] usbcore: registered new interface driver ums-cypress
    [   14.270000] usbcore: registered new interface driver ums-datafab
    [   14.280000] usbcore: registered new interface driver ums-freecom
    [   14.290000] usbcore: registered new interface driver ums-isd200
    [   14.290000] usbcore: registered new interface driver ums-jumpshot
    [   14.300000] usbcore: registered new interface driver ums-karma
    [   14.310000] usbcore: registered new interface driver ums-sddr09
    [   14.320000] usbcore: registered new interface driver ums-sddr55
    [   14.330000] usbcore: registered new interface driver ums-usbat
    [   14.340000] usbcore: registered new interface driver usbhid
    [   14.350000] usbhid: USB HID core driver
    [   14.350000] usbcore: registered new interface driver usblp
    [   14.370000] usbcore: registered new interface driver usbserial
    [   14.370000] usbcore: registered new interface driver usbserial_generic
    [   14.380000] usbserial: USB Serial support registered for generic
    [   14.390000] usbcore: registered new interface driver uvcvideo
    [   14.400000] USB Video Class driver (1.1.1)
    [   14.430000] xt_time: kernel timezone is -0000
    [   14.540000] cfg80211: Calling CRDA to update world regulatory domain
    [   14.540000] cfg80211: World regulatory domain updated:
    [   14.550000] cfg80211:  DFS Master region: unset
    [   14.550000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
    [   14.560000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
    [   14.570000] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
    [   14.580000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
    [   14.590000] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
    [   14.590000] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
    [   14.600000] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
    [   14.610000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
    [   14.620000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
    [   14.640000] usbcore: registered new interface driver ch341
    [   14.640000] usbserial: USB Serial support registered for ch341-uart
    [   14.650000] usbcore: registered new interface driver cp210x
    [   14.650000] usbserial: USB Serial support registered for cp210x
    [   14.660000] usbcore: registered new interface driver ftdi_sio
    [   14.670000] usbserial: USB Serial support registered for FTDI USB Serial Device
    [   14.780000] usbcore: registered new interface driver pl2303
    [   14.780000] usbserial: USB Serial support registered for pl2303
    [   14.790000] PPP generic driver version 2.4.2
    [   14.800000] NET: Registered protocol family 24
    
    
    *********************************************
    *   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
    
    Booting image at: 0x9F020000
    
       Image name:   OpenWrt r47515
       Image type:   MIPS Linux Kernel Image (lzma compressed)
       Data size:    1139392 Bytes = 1.1 MB
       Load address: 0x80060000
       Entry point:  0x80060000
    
    Uncompressing kernel image... OK!
    Starting kernel...
    


  • @Hong-Chen Do you have anything plugged into the Omega when you start up?



  • Nothing, Actually I try many combination. Not any work now.

    1. Omega + Dock + Relay Module (only 1st day work)
    2. Omega + Dock + Relay Module + 8G USB storage (Ext4)
    3. Omega + Dock
    4. Omega + Mini Dock


  • @Hong-Chen Have you tried to install opkg on a USB drive? Sometimes, if that's not done properly it will lead to a boot loop. If nothing else works the only way to fix it might be to re-flash the firmware using Ethernet expansion. If you don't have an ethernet expansion, might want to try building your own ethernet expansion, which is outlined in this post: https://community.onion.io/topic/130/debrick-with-serial/



  • Yes, I follow the links tried to Using-USB-Storage-as-Rootfs but can't mount and not continue,
    because I try to plug USB storage in but nothing happen. not found any under /dev/sd*
    https://wiki.onion.io/Tutorials/Using-USB-Storage-as-Rootfs
    https://community.onion.io/topic/159/install-lamp-ftp-and-phpmyadmin-on-your-onion-omega

    I don't have an ethernet expansion, neither 2nd Omega.
    I do have Raspberry Pi B, if it help building my own ethernet expansion...



  • @Hong-Chen The technique should work even if you don't have a second Omega. Please take a look at this post: https://community.onion.io/topic/157/reflash-omega-without-ethernet/2. This is connecting from Omega to another computer.

    For the USB extroot setup, i'm not really sure why your USB storage device isn't detected. Once you debrick the Omega, we will work together to find out if we can resolve that problem.

    Please let me know if you need any help with re-flashing the Omega using what's outlined in that tutorial.

    Cheers.



  • Thank you so mach.
    I just order breadboard and jumper... kit, I will let you know once debrick the Omega.



  • @Hong-Chen No problem! Good luck!



  • 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>
    

    omega2.jpg

    omega3.jpg



  • Hi @Hong-Chen TX+ needs to be twisted with TX-, and RX+ with RX- (they are twisted pairs). You twist them together like the following picture:

    And you also need to separate TX+TX- with RX+RX- (right now they are stuck together). After this is done, disconnect the wifi on your computer and try again.

    Twisted Pairs

    Cheers!



  • I try it, still can't start httpd.
    Also it is stranger, why ping self-ipaddr got

    Error: 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>
    


  • @Hong-Chen Hmmm, why are you trying to ping 192.168.1.1 from the Omega? 192.168.1.1 should be the Omega itself. Can you try pinging it from your computer?



  • @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?



  • @Hong-Chen Hi Hong, I was reading over your TTL output once again, and it seems that your Omega reboots whenever it's trying to start the wifi. So it could be that the power supply you are supplying the Omega with doesn't have enough current. Can you try connecting the Omega to another power source? perhaps a powered USB hub or a phone charger? Let's see if the wifi is able to come online.

    the serverip you are trying to set is for tftp server, which isn't directly related to the httpd service that you are trying to start. Let's try this out. If it doesn't work out we'll send you an ethernet expansion so you can reflash the firmware.

    Thanks!



  • @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!



  • Hi @Hong-Chen, in that case I am not sure what the issue is. Your ethernet setup seems to be fine. We will send you an ethernet expansion so you can reflash the Omega. Is your shipping address still the same?



  • @Boken-Lin My address still the same. Thank you so mach.



  • @Boken-Lin Sorry, about how long to get "ethernet expansion"?



  • Hi @Hong-Chen,

    Sorry for the delay, I've created a shipment request for the Expansion Dock. It should get to you within 2-3 weeks.



  • @Gabriel-Ongpauco Thank you so mach.



  • @Gabriel-Ongpauco I still not get the Expansion Dock, is it still on the way?
    or any other new way to debrick the Omega?


Log in to reply
 

Looks like your connection to Community was lost, please wait while we try to reconnect.