I am trying to update firmware using the bootloader, but it does not seem to detect any USB devices.
I have an Onion Omega 2 (64 MB version) with an Arduino Dock 2 board.
I connected it to a PC using a CH341-based USB to TTL converter and can communicate over it OK.
I am trying to follow the following guide to update firmware: http://community.onion.io/topic/1154/omega-2-usb-firmware-install-after-brick-resolved.
So I copied omega2.bin to a USB flash stick and power up with the reset button pressed.
However when selecting option 2 the board just continues booting Linux.
I have seen other people output on this forum where the Omega board scans for USB devices but it does not seem to be the case for me, as if there is no USB.
When it boots to Linux it detects the USB flash drive just fine.
What may be wrong? Thanks.
____ _ ____
/ __ \___ (_)__ ___ / __ \__ _ ___ ___ ____ _
/ /_/ / _ \/ / _ \/ _ \ / /_/ / ' \/ -_) _ `/ _ `/
\____/_//_/_/\___/_//_/ \____/_/_/_/\__/\_, /\_,_/
W H A T W I L L Y O U I N V E N T ? /___/"
Board: Onion Omega2 APSoC DRAM: 64 MB
relocate_code Pointer at: 83f60000
flash manufacture id: ef, device id 40 18
find flash: W25Q128BV
*** Warning - bad CRC, using default environment
============================================
Onion Omega2 UBoot Version: 4.3.0.3
--------------------------------------------
ASIC 7628_MP (Port5<->None)
DRAM component: 512 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 64 MBytes
Flash component: SPI Flash
Date:Oct 18 2016 Time:17:30:55
============================================
icache: sets:512, ways:4, linesz:32 ,total:65536
dcache: sets:256, ways:4, linesz:32 ,total:32768
CPU freq = 575 MHZ
Estimated memory size = 64 Mbytes
Resetting MT7628 PHY.
Initializing MT7688 GPIO system.
**************************************
* Hold Reset button for more options *
**************************************
You have 40 seconds left to select a menu option...
Please select option:
[ Enter ]: Boot Omega2.
[ 0 ]: Start Web recovery mode.
[ 1 ]: Start command line mode.
[ 2 ]: Flash firmware from USB storage.
Option [2] selected.
Boot Linux from Flash.
## Booting image at bc050000 ...
Image Name: MIPS LEDE Linux-4.4.46
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 1306790 Bytes = 1.2 MB
Load Address: 80000000
Entry Point: 80000000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80000000) ...
## Giving linux memsize in MB, 64
Starting kernel ...
[ 0.000000] Linux version 4.4.46 (root@2272a3272872) (gcc version 5.4.0 (LEDE GCC 5.4.0 r3273-a0888ec) ) #0 Thu Feb 2 23:46:03 2017
[ 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: 04000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000000000000-0x0000000003ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x0000000003ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[ 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] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
[ 0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2
[ 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=00016d6c
[ 0.000000] Readback ErrCtl register=00016d6c
[ 0.000000] Memory: 60580K/65536K available (3013K kernel code, 143K rwdata, 724K rodata, 208K init, 196K bss, 4956K 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] clocksource_probe: no matching clocksources 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.007521] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[ 0.070039] pid_max: default: 32768 minimum: 301
[ 0.074634] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.080975] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.094289] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.103936] pinctrl core: initialized pinctrl subsystem
[ 0.109673] NET: Registered protocol family 16
[ 0.133079] mt7621_gpio 10000600.gpio: registering 32 gpios
[ 0.138613] mt7621_gpio 10000600.gpio: registering 32 gpios
[ 0.144044] mt7621_gpio 10000600.gpio: registering 32 gpios
[ 0.150560] i2c-mt7621 10000900.i2c: clock 100KHz, re-start not support
[ 0.158086] clocksource: Switched to clocksource MIPS
[ 0.164464] NET: Registered protocol family 2
[ 0.169560] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.176254] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.182436] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.188633] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.194233] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.200587] NET: Registered protocol family 1
[ 0.210235] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.216186] Crashlog allocated RAM at address 0x3f00000
[ 0.236267] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.241918] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.254011] io scheduler noop registered
[ 0.257753] io scheduler deadline registered (default)
[ 0.263635] rt2880-pinmux pinctrl: pin io18 already requested by pinctrl; cannot claim for 10005000.pwm
[ 0.272717] rt2880-pinmux pinctrl: pin-18 (10005000.pwm) status -22
[ 0.278728] rt2880-pinmux pinctrl: could not request pin 18 (io18) from group pwm0 on device rt2880-pinmux
[ 0.288131] mtk-pwm 10005000.pwm: Error applying setting, reverse things back
[ 0.295473] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[ 0.303038] console [ttyS0] disabled
[ 0.306471] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 28, base_baud = 2500000) is a 16550A
[ 0.315251] console [ttyS0] enabled
[ 0.315251] console [ttyS0] enabled
[ 0.322248] bootconsole [early0] disabled
[ 0.322248] bootconsole [early0] disabled
[ 0.330915] 10000d00.uart1: ttyS1 at MMIO 0x10000d00 (irq = 29, base_baud = 2500000) is a 16550A
[ 0.340409] 10000e00.uart2: ttyS2 at MMIO 0x10000e00 (irq = 30, base_baud = 2500000) is a 16550A
[ 0.350984] spi-mt7621 10000b00.spi: sys_freq: 193333333
[ 0.360966] m25p80 spi32766.0: using chunked io (size=31)
[ 0.366456] m25p80 spi32766.0: w25q128 (16384 Kbytes)
[ 0.371673] 4 ofpart partitions found on MTD device spi32766.0
[ 0.377586] Creating 4 MTD partitions on "spi32766.0":
[ 0.382815] 0x000000000000-0x000000030000 : "u-boot"
[ 0.389635] 0x000000030000-0x000000040000 : "u-boot-env"
[ 0.396825] 0x000000040000-0x000000050000 : "factory"
[ 0.403832] 0x000000050000-0x000001000000 : "firmware"
[ 0.431226] 2 uimage-fw partitions found on MTD device firmware
[ 0.437253] 0x000000050000-0x00000018f0e6 : "kernel"
[ 0.443938] 0x00000018f0e6-0x000001000000 : "rootfs"
[ 0.450859] mtd: device 5 (rootfs) set to be root filesystem
[ 0.456677] 1 squashfs-split partitions found on MTD device rootfs
[ 0.463015] 0x0000006f0000-0x000001000000 : "rootfs_data"
[ 0.480135] rt3050-esw 10110000.esw: link changed 0x00
[ 0.487787] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
[ 0.496462] i2c /dev entries driver
[ 0.500640] mt7621_wdt 10000120.watchdog: Initialized
[ 0.507264] NET: Registered protocol family 10
[ 0.515740] NET: Registered protocol family 17
[ 0.520415] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[ 0.533233] 8021q: 802.1Q VLAN Support v1.8
[ 0.544445] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[ 0.552808] Freeing unused kernel memory: 208K (803cc000 - 80400000)
[ 1.544261] init: Console is alive
[ 1.547933] init: - watchdog -
[ 3.973192] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 4.125422] usbcore: registered new interface driver usbfs
[ 4.131173] usbcore: registered new interface driver hub
[ 4.136662] usbcore: registered new device driver usb
[ 4.148254] exFAT: Version 1.2.9
[ 4.190051] SCSI subsystem initialized
[ 4.200808] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 4.209297] ehci-platform: EHCI generic platform driver
[ 4.224945] phy phy-10120000.usbphy.0: remote usb device wakeup disabled
[ 4.231761] phy phy-10120000.usbphy.0: UTMI 16bit 30MHz
[ 4.237088] ehci-platform 101c0000.ehci: EHCI Host Controller
[ 4.242962] ehci-platform 101c0000.ehci: new USB bus registered, assigned bus number 1
[ 4.251122] ehci-platform 101c0000.ehci: irq 26, io mem 0x101c0000
[ 4.268131] ehci-platform 101c0000.ehci: USB 2.0 started, EHCI 1.00
[ 4.275544] hub 1-0:1.0: USB hub found
[ 4.279819] hub 1-0:1.0: 1 port detected
[ 4.288786] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 4.296743] ohci-platform: OHCI generic platform driver
[ 4.302391] ohci-platform 101c1000.ohci: Generic Platform OHCI controller
[ 4.309373] ohci-platform 101c1000.ohci: new USB bus registered, assigned bus number 2
[ 4.317482] ohci-platform 101c1000.ohci: irq 26, io mem 0x101c1000
[ 4.383234] hub 2-0:1.0: USB hub found
[ 4.387465] hub 2-0:1.0: 1 port detected
[ 4.404664] MTK MSDC device init.
[ 4.448260] mtk-sd: MediaTek MT6575 MSDC Driver
[ 4.456218] sdhci: Secure Digital Host Controller Interface driver
[ 4.462566] sdhci: Copyright(c) Pierre Ossman
[ 4.468452] sdhci-pltfm: SDHCI platform and OF driver helper
[ 4.478759] usbcore: registered new interface driver usb-storage
[ 4.488618] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 4.506424] init: - preinit -
[ 4.728840] usb 1-1: new high-speed USB device number 2 using ehci-platform
[ 5.037896] random: procd: uninitialized urandom read (4 bytes read, 9 bits of entropy available)
[ 5.047622] usb-storage 1-1:1.0: USB Mass Storage device detected
[ 5.077056] scsi host0: usb-storage 1-1:1.0
[ 5.381534] 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
[ 6.080322] scsi 0:0:0:0: Direct-Access USB DISK 2.0 1219 PQ: 0 ANSI: 0 CCS
[ 6.092856] sd 0:0:0:0: [sda] 7831552 512-byte logical blocks: (4.01 GB/3.73 GiB)
[ 6.101596] sd 0:0:0:0: [sda] Write Protect is off
[ 6.107458] sd 0:0:0:0: [sda] No Caching mode page found
[ 6.112908] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 6.157499] sda:
[ 6.163471] sd 0:0:0:0: [sda] Attached SCSI removable disk
[ 7.702162] jffs2: notice: (409) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[ 7.720124] mount_root: switching to jffs2 overlay
[ 7.754371] urandom-seed: Seeding with /etc/urandom.seed
[ 7.845193] procd: - early -
[ 7.849641] procd: - watchdog -
[ 8.573593] procd: - ubus -
[ 8.778466] random: ubusd: uninitialized urandom read (4 bytes read, 26 bits of entropy available)
[ 8.788218] random: ubusd: uninitialized urandom read (4 bytes read, 26 bits of entropy available)
[ 8.797390] random: ubusd: uninitialized urandom read (4 bytes read, 26 bits of entropy available)
[ 8.806940] random: ubusd: uninitialized urandom read (4 bytes read, 26 bits of entropy available)
[ 8.816188] random: ubusd: uninitialized urandom read (4 bytes read, 26 bits of entropy available)
[ 8.825851] random: ubusd: uninitialized urandom read (4 bytes read, 26 bits of entropy available)
[ 8.835254] random: ubusd: uninitialized urandom read (4 bytes read, 26 bits of entropy available)
[ 8.844812] procd: - init -
Please press Enter to activate this console.
etc etc