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

Will not boot



  • Sorry, had the USB out of it. here is the boot with the usb drive attached.

    *********************************************
    *   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 r47277
       Image type:   MIPS Linux Kernel Image (lzma compressed)
       Data size:    1135916 Bytes = 1.1 MB
       Load address: 0x80060000
       Entry point:  0x80060000
    
    Uncompressing kernel image... OK!
    Starting kernel...
    
    [    0.000000] Linux version 3.18.21 (zh@ci-onion) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r47277) ) #1 Sat Oct 31 01:02:34 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 (2475K kernel code, 128K rwdata, 528K rodata, 252K 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-0x00000013572c : "kernel"
    [    0.530000] 0x00000013572c-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] 0x0000006d0000-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.220000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
    [    1.220000] Freeing unused kernel memory: 252K (80371000 - 803b0000)
    [    2.680000] init: Console is alive
    [    2.680000] init: - watchdog -
    [    4.970000] usbcore: registered new interface driver usbfs
    [    4.970000] usbcore: registered new interface driver hub
    [    4.980000] usbcore: registered new device driver usb
    [    5.040000] SCSI subsystem initialized
    [    5.050000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    [    5.060000] ehci-platform: EHCI generic platform driver
    [    5.060000] ehci-platform ehci-platform: EHCI Host Controller
    [    5.060000] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1
    [    5.070000] ehci-platform ehci-platform: irq 3, io mem 0x1b000000
    [    5.100000] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00
    [    5.100000] hub 1-0:1.0: USB hub found
    [    5.100000] hub 1-0:1.0: 1 port detected
    [    5.120000] usbcore: registered new interface driver usb-storage
    [    5.430000] usb 1-1: new high-speed USB device number 2 using ehci-platform
    [    5.840000] usb-storage 1-1:1.0: USB Mass Storage device detected
    [    5.840000] scsi host0: usb-storage 1-1:1.0
    [    5.850000] init: - preinit -
    [    6.580000] 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
    [    6.840000] scsi 0:0:0:0: Direct-Access     Generic- SD/MMC           1.00 PQ: 0 ANSI: 0 CCS
    [    7.450000] sd 0:0:0:0: [sda] 30367744 512-byte logical blocks: (15.5 GB/14.4 GiB)
    [    7.460000] sd 0:0:0:0: [sda] Write Protect is off
    [    7.470000] sd 0:0:0:0: [sda] No Caching mode page found
    [    7.470000] sd 0:0:0:0: [sda] Assuming drive cache: write through
    [    7.480000]  sda: sda1
    [    7.490000] sd 0:0:0:0: [sda] Attached SCSI removable disk
    [    9.960000] mount_root: loading kmods from internal overlay
    [   10.560000] jffs2: error: (355) jffs2_build_inode_pass1: child dir "usr" (ino #3129) of dir ino #3071 appears to be a hard link
    [   10.580000] jffs2: notice: (355) 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.600000] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
    [   10.610000] block: extroot: not configured
    [   10.810000] jffs2: error: (352) jffs2_build_inode_pass1: child dir "usr" (ino #3129) of dir ino #3071 appears to be a hard link
    [   10.830000] jffs2: notice: (352) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
    [   11.020000] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
    [   11.030000] block: extroot: not configured
    [   11.040000] mount_root: switching to jffs2 overlay
    [   11.090000] jffs2: warning: (1) jffs2_get_inode_nodes: Eep. No valid nodes for ino #3129.
    [   11.100000] jffs2: warning: (1) jffs2_do_read_inode_internal: no data nodes found for ino #3129
    [   11.110000] jffs2: iget() failed for ino #3129
    /sbin/procd: can't load library 'libjson-c.so.2'
    [   11.220000] ath79_wdt: device closed unexpectedly, watchdog timer will not stop!
    [   11.220000] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00001000
    [   11.220000]
    [   11.220000] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00001000
    [   11.220000]
    




  • I think in order to boot from USB we'll need to modify the uboot. For now you will need to restore the Omega. Did you order an ethernet expansion?



  • @Boken-Lin No. I only have the mini dock, but will order whatever I need to get this done.


  • administrators

    You'll need the Expansion Dock and Ethernet Expansion.
    They can be ordered from our online store.



  • Hello,

    Has the guide to working with the expansion dock to flash it been posted yet? If so, can it be linked here. Thank you



  • @Daniel-Anner There's no way to flash a bricked Omega with just the expansion dock. You will also require the ethernet expansion.



  • @Boken-Lin I already have the Ethernet expansion. I just need the guide to flashing the bricked omega



  • @Daniel-Anner I don't have the guide written yet. We will make sure we do that next week.

    For the time being, here is a short guide:

    1. Ensure that the Expansion dock is in the OFF position
    2. Plug ethernet expansion to the expansion dock
    3. Connect your computer to the Omega with the ethernet expansion via ethernet cable
    4. Connect the micro USB cable to the Expansion Dock
    5. Start serial terminal
    6. Switch the Expansion dock to ON position
    7. At this point you will see some text appear in your serial terminal IMMEDIATELY PRESS ANY KEY ON YOUR COMPUTER. This will interrupt the normal booting sequence and put you into the uboot.
    8. Type httpd to start the httpd service in uboot. A message should tell you that a server is hosted in 192.168.1.1.
    9. Open up the browser on your computer, and navigate to http://192.168.1.1, here you will see an interface that allows you to upload and re-flash the firmware.

  • administrators

    @Boken-Lin said:

    @Daniel-Anner I don't have the guide written yet. We will make sure we do that next week.

    For the time being, here is a short guide:

    1. Ensure that the Expansion dock is in the OFF position
    2. Plug ethernet expansion to the expansion dock
    3. Connect your computer to the Omega with the ethernet expansion via ethernet cable
    4. Connect the micro USB cable to the Expansion Dock
    5. Start serial terminal
    6. Switch the Expansion dock to ON position
    7. At this point you will see some text appear in your serial terminal IMMEDIATELY PRESS ANY KEY ON YOUR COMPUTER. This will interrupt the normal booting sequence and put you into the uboot.
    8. Type httpd to start the httpd service in uboot. A message should tell you that a server is hosted in 192.168.1.1.
    9. Open up the browser on your computer, and navigate to http://192.168.1.1, here you will see an interface that allows you to upload and re-flash the firmware.

    There is not DHCP under boot loader, so before step 9 make sure you manually configure your computer with the same subnet as Omega. For example: 192.168.1.2, netmask 255.255.255.0



  • Is there a way to do this rescue procedure with the mini dock. So long as uboot's core issue is that it fails and needs a reflash, is there any way to add a rescue method besides httpd?

    Nominally, as it stands right now, there should be a way to boot from USB itself, right? Is there a flashable image we can put to usb drive, and boot from that instead of ROM image?



  • @Theodore-Borromeo There is a tftpboot option, though it requires a different format than the BIN file we're given for firmware updates.



  • @Andrew-Donnelly Do you know if there are any ways to convert a BIN file into a format that can be accepted by tftpboot?



  • @Boken-Lin Not from this format, I'm going to dig into the new firmware file's structure and see if I can't find the updated version of U-Boot and extract it, I figure if I can get that to load over tftpboot, then I could possibly trigger the httpd from that and upgrade.

    Update: I tried extracting the U-Boot from the working Omega and tftpbooting that on the bricked one, and no dice, "Bad Magic Number" same as the rest of my attempts.



  • @Andrew-Donnelly What magic number is it referring to? Is that just some number that we've set up as a part of the build process to identify the firmware?



  • @Andrew-Donnelly what is the format it requires? I'm pretty sure tftpboot can accept a bin, uImage or ELF executable. The biggest issue, I would think, is figuring out the hex offset that said images/binaries would need to be flashed at. . . @Boken-Lin can probably assist in that via contact with the manufacturers or a priori knowledge of the platform's memory layout šŸ˜‰



  • @Theodore-Borromeo Our firmware flashes at 0X20000



  • @Tom-Karickhoff This won't work as you're still booting from the same 0x9F020000 address (the internal image)

    Could we see if: http://www.chtaube.eu/kb/openwrt/debrick_tp-link_router

    contains a method that mini dock (or all non-ethernet expansion docks) can use? Serial communication should be possible with all docks, and so long as we have the boot sector and offset, we should be able to erase then load a new binary, correct?

    This may work as a short term solution until usb support is baked into uboot. . .



  • @Boken-Lin OK, so some quick googling shows an intrepid coder that is doing support for a firmware image based on Uboot 1.1.4 and AR9331 chipsets to imbue them with web failsafes (sound familiar).

    His project is at: https://github.com/pepe2k/u-boot_mod

    and he has modified sources provided from the release of tp-link and dlink routers:
    http://www.tp-link.com/en/gpl-code.html <-- TP-Link's WR740N v4 download was tested
    http://tsd.dlink.com.tw/downloads2008detail.asp <-- DLINK's DIR-505 (similar AR1311 chipset)

    Worse comes to worse, you should be able to glean the base configurations/settings necessary to build from source using the 1.1.4 tag w/o any special modifications, right?



  • @Theodore-Borromeo said:

    @Andrew-Donnelly what is the format it requires? I'm pretty sure tftpboot can accept a bin, uImage or ELF executable. The biggest issue, I would think, is figuring out the hex offset that said images/binaries would need to be flashed at. . . @Boken-Lin can probably assist in that via contact with the manufacturers or a priori knowledge of the platform's memory layout šŸ˜‰

    I got that far, but when I flashed the U-Boot was still looking in the wrong location and throws bad magic number when I try to boot from that location. I want to quickly confirm with devs if the firmware image that I listed on this post is indeed cleared to be flashed to this hardware, and if so, just start writing it at 20000?

    I work on the hardware and OS sides of the equipment, I don't normally do programming other than flashing systems from boot. We use a modified version of U-Boot at work too with some extra tools built in, the httpd server is a great public alternative to what we have baked into ours.


Log in to reply
 

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