Boot process fail



  • Im using Onion2+ without dock. I power it from a lab power supply with thick wires and a 100uF cap near power pins. I also connect a serial adapter to TX and RX pins to see boot log.

    After power up i see ALWAIS the same log, after last line power comsumption drop to about 50mA and nothing else happends.

    What can i do? How can i update if i cant get the board to start? Can i boot from an SD card?

    Here my boot log:

    
       ____       _             ____
      / __ \___  (_)__  ___    / __ \__ _  ___ ___ ____ _
     / /_/ / _ \/ / _ \/ _ \  / /_/ /  ' \/ -_) _ `/ _ `/
     \____/_//_/_/\___/_//_/  \____/_/_/_/\__/\_, /\_,_/
     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: 87f5c000
    ******************************
    Software System Reset Occurred
    ******************************
    flash manufacture id: c2, device id 20 19
    find flash: MX25L25635E
    *** Warning - bad CRC, using default environment
    
    ============================================ 
    Onion Omega2 UBoot Version: 4.3.0.3
    -------------------------------------------- 
    ASIC 7628_MP (Port5<->None)
    DRAM component: 1024 Mbits DDR, width 16
    DRAM bus: 16 bit
    Total memory: 128 MBytes
    Flash component: SPI Flash
    Date:Nov  8 2019  Time:13:46:42
    ============================================ 
    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 = 128 Mbytes
    Resetting MT7628 PHY.
    Initializing MT7688 GPIO system.
    wifi mac address = 40A36BC59E77.
    
    
    **************************************
    * 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:    1572605 Bytes =  1.5 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, 128
    
    Starting kernel ...
    
    [    0.000000] Linux version 4.14.81 (root@9be0ff6623b9) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r0-)) #0 Mon Aug 26 14:30:37 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=00062a70
    [    0.000000] Readback ErrCtl register=00062a70
    [    0.000000] Memory: 124712K/131072K available (3613K kernel code, 198K rwdata, 900K rodata, 208K init, 202K bss, 6360K 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.007539] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
    [    0.073498] pid_max: default: 32768 minimum: 301
    [    0.078197] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.084543] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.098635] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [    0.108130] futex hash table entries: 256 (order: -1, 3072 bytes)
    [    0.114076] pinctrl core: initialized pinctrl subsystem
    [    0.119646] NET: Registered protocol family 16
    [    0.152471] mt7621_gpio 10000600.gpio: registering 32 gpios
    [    0.158075] mt7621_gpio 10000600.gpio: registering 32 gpios
    [    0.163679] mt7621_gpio 10000600.gpio: registering 32 gpios
    [    0.170172] i2c-mt7621 10000900.i2c: clock 100 kHz
    [    0.179626] clocksource: Switched to clocksource MIPS
    [    0.185864] NET: Registered protocol family 2
    [    0.191048] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.197740] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.203926] TCP: Hash tables configured (established 1024 bind 1024)
    [    0.210174] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [    0.215774] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [    0.222136] NET: Registered protocol family 1
    [    0.230076] Crashlog allocated RAM at address 0x3f00000
    [    0.236647] workingset: timestamp_bits=30 max_order=15 bucket_order=0
    [    0.248850] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    0.254474] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
    [    0.274220] io scheduler noop registered
    [    0.277951] io scheduler deadline registered (default)
    [    0.283969] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
    [    0.291316] console [ttyS0] disabled
    [    0.294753] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 28, base_baud = 2500000) is a 16550A
    [    0.303527] console [ttyS0] enabled
    [    0.303527] console [ttyS0] enabled
    [    0.310519] bootconsole [early0] disabled
    [    0.310519] bootconsole [early0] disabled
    [    0.319270] 10000d00.uart1: ttyS1 at MMIO 0x10000d00 (irq = 29, base_baud = 2500000) is a 16550A
    [    0.328866] 10000e00.uart2: ttyS2 at MMIO 0x10000e00 (irq = 30, base_baud = 2500000) is a 16550A
    [    0.338369] cacheinfo: Failed to find cpu0 device node
    [    0.343620] cacheinfo: Unable to detect cache hierarchy for CPU 0
    [    0.350603] spi-mt7621 10000b00.spi: sys_freq: 193333333
    [    0.361680] m25p80 spi0.0: mx25l25635e (32768 Kbytes)
    [    0.366864] 5 fixed-partitions partitions found on MTD device spi0.0
    [    0.373367] Creating 5 MTD partitions on "spi0.0":
    [    0.378232] 0x000000000000-0x000000030000 : "u-boot"
    [    0.384220] 0x000000030000-0x000000040000 : "u-boot-env"
    [    0.390514] 0x000000040000-0x000000050000 : "factory"
    [    0.396449] 0x000000050000-0x000001f80000 : "firmware"
    [    0.471027] 2 uimage-fw partitions found on MTD device firmware
    [    0.477056] 0x000000050000-0x0000001cff3d : "kernel"
    [    0.483068] 0x0000001cff3d-0x000001f80000 : "rootfs"
    [    0.488893] mtd: device 5 (rootfs) set to be root filesystem
    [    0.496164] 1 squashfs-split partitions found on MTD device rootfs
    [    0.502503] 0x000000970000-0x000001f80000 : "rootfs_data"
    [    0.508915] 0x000001f80000-0x000002000000 : "user"
    [    0.515658] libphy: Fixed MDIO Bus: probed
    [    0.531563] rt3050-esw 10110000.esw: link changed 0x00
    [    0.538438] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
    [    0.547134] i2c /dev entries driver
    [    0.552556] NET: Registered protocol family 10
    [    0.561552] Segment Routing with IPv6
    [    0.565387] NET: Registered protocol family 17
    [    0.570017] 8021q: 802.1Q VLAN Support v1.8
    [    0.583800] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
    [    0.592148] Freeing unused kernel memory: 208K
    [    0.596654] This architecture does not have kernel memory protection.
    [    1.514685] init: Console is alive
    [    1.518372] init: - watchdog -
    [    2.244178] random: fast init done
    [    5.014409] kmodloader: loading kernel modules from /etc/modules-boot.d/*
    [    5.309463] usbcore: registered new interface driver usbfs
    [    5.315212] usbcore: registered new interface driver hub
    [    5.320766] usbcore: registered new device driver usb
    [    5.332437] exFAT: Version 1.2.9
    [    5.371699] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    [    5.387953] SCSI subsystem initialized
    [    5.397482] ehci-platform: EHCI generic platform driver
    [    5.413180] phy phy-10120000.usbphy.0: remote usb device wakeup disabled
    [    5.420009] phy phy-10120000.usbphy.0: UTMI 16bit 30MHz
    [    5.425323] ehci-platform 101c0000.ehci: EHCI Host Controller
    [    5.431196] ehci-platform 101c0000.ehci: new USB bus registered, assigned bus number 1
    [    5.439365] ehci-platform 101c0000.ehci: irq 26, io mem 0x101c0000
    [    5.469674] ehci-platform 101c0000.ehci: USB 2.0 started, EHCI 1.00
    [    5.477134] hub 1-0:1.0: USB hub found
    [    5.481405] hub 1-0:1.0: 1 port detected
    [    5.491455] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
    [    5.499309] ohci-platform: OHCI generic platform driver
    [    5.505000] ohci-platform 101c1000.ohci: Generic Platform OHCI controller
    [    5.511972] ohci-platform 101c1000.ohci: new USB bus registered, assigned bus number 2
    [    5.520127] ohci-platform 101c1000.ohci: irq 26, io mem 0x101c1000
    [    5.594696] hub 2-0:1.0: USB hub found
    [    5.598971] hub 2-0:1.0: 1 port detected
    [    5.617519] MTK MSDC device init.
    [    5.679859] mtk-sd: MediaTek MT6575 MSDC Driver
    [    5.688949] sdhci: Secure Digital Host Controller Interface driver
    [    5.695293] sdhci: Copyright(c) Pierre Ossman
    [    5.701102] sdhci-pltfm: SDHCI platform and OF driver helper
    [    5.711427] usbcore: registered new interface driver usb-storage
    [    5.721294] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
    [    5.739142] init: - preinit -
    [    7.202479] 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.403359] random: procd: uninitialized urandom read (4 bytes read)
    [   10.655422] mount_root: loading kmods from internal overlay
    [   10.727645] kmodloader: loading kernel modules from //etc/modules-boot.d/*
    [   10.741124] kmodloader: done loading kernel modules from //etc/modules-boot.d/*
    [   11.928301] block: attempting to load /etc/config/fstab
    [   11.939078] block: unable to load configuration (fstab: Entry not found)
    [   11.946048] block: no usable configuration
    [   11.951210] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
    [   12.027646] urandom-seed: Seed file not found (/etc/urandom.seed)
    [   12.237649] procd: - early -
    [   12.241525] procd: - watchdog -
    [   12.915745] procd: - watchdog -
    [   12.919239] procd: - ubus -
    [   13.016407] random: ubusd: uninitialized urandom read (4 bytes read)
    [   13.215312] random: ubusd: uninitialized urandom read (4 bytes read)
    [   13.222384] random: ubusd: uninitialized urandom read (4 bytes read)
    [   13.229970] procd: - init -
    Please press Enter to activate this console.
    [   13.784226] kmodloader: loading kernel modules from /etc/modules.d/*
    [   13.953072] RPC: Registered named UNIX socket transport module.
    [   13.959085] RPC: Registered udp transport module.
    [   13.963914] RPC: Registered tcp transport module.
    [   13.968682] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [   13.987582] ntfs: driver 2.1.32 [Flags: R/O MODULE].
    [   14.079954] ip6_tables: (C) 2000-2006 Netfilter Core Team
    [   14.696927] 
    [   14.696927] 
    [   14.696927] === pAd = c0622000, size = 1178064 ===
    [   14.696927] 
    [   14.708270] mt7628_init(FW(8a00), HW(8a01), CHIPID(7628))
    [   14.857514] Linux video capture interface: v2.00
    [   14.874949] hidraw: raw HID events driver (C) Jiri Kosina
    [   14.904553] ledchain: pwm_base=0xB0005000
    [   14.908760] ledchain: v2 - Device: /dev/ledchain2
    [   14.913609] ledchain: - PWM channel    : 2
    [   14.917761] ledchain: - PWM buffer size: 12
    [   14.922011] ledchain: - Number of LEDs : 1
    [   14.926161] ledchain: - Inverted       : 0
    [   14.930321] ledchain: - LED type       : WS2812
    [   14.934911] ledchain: - Max retries    : 3
    [   14.939060] ledchain: - Max Tpassive   : 10000 nS
    [   15.101207] Bluetooth: Core ver 2.22
    [   15.104937] NET: Registered protocol family 31
    [   15.109440] Bluetooth: HCI device and connection manager initialized
    [   15.115956] Bluetooth: HCI socket layer initialized
    [   15.120921] Bluetooth: L2CAP socket layer initialized
    [   15.126076] Bluetooth: SCO socket layer initialized
    [   15.133896] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
    [   15.139294] Bluetooth: BNEP filters: protocol multicast
    [   15.144672] Bluetooth: BNEP socket layer initialized
    [   15.157381] usbcore: registered new interface driver btusb
    [   15.167759] usbcore: registered new interface driver cdc_acm
    [   15.173577] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
    [   15.219304] Bluetooth: HCI UART driver ver 2.3
    [   15.223902] Bluetooth: HCI UART protocol H4 registered
    [   15.229112] Bluetooth: HCI UART protocol BCSP registered
    [   15.247286] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
    [   15.253385] Bluetooth: HIDP socket layer initialized
    [   15.264754] ip_tables: (C) 2000-2006 Netfilter Core Team
    [   15.292787] nf_conntrack version 0.5.0 (2048 buckets, 8192 max)
    [   15.391615] rt2880-pinmux pinctrl: pin io18 already requested by pinctrl; cannot claim for 10005000.pwm
    [   15.401227] rt2880-pinmux pinctrl: pin-18 (10005000.pwm) status -22
    [   15.407587] rt2880-pinmux pinctrl: could not request pin 18 (io18) from group pwm0  on device rt2880-pinmux
    [   15.417487] mtk-pwm 10005000.pwm: Error applying setting, reverse things back
    [   15.432069] Bluetooth: RFCOMM TTY layer initialized
    [   15.437045] Bluetooth: RFCOMM socket layer initialized
    [   15.442349] Bluetooth: RFCOMM ver 1.11
    [   15.463596] usbcore: registered new interface driver ums-alauda
    [   15.472888] usbcore: registered new interface driver ums-cypress
    [   15.482435] usbcore: registered new interface driver ums-datafab
    [   15.491656] usbcore: registered new interface driver ums-freecom
    [   15.501102] usbcore: registered new interface driver ums-isd200
    [   15.510667] usbcore: registered new interface driver ums-jumpshot
    [   15.520010] usbcore: registered new interface driver ums-karma
    [   15.530185] usbcore: registered new interface driver ums-sddr09
    [   15.539539] usbcore: registered new interface driver ums-sddr55
    [   15.549409] usbcore: registered new interface driver ums-usbat
    [   15.562829] usbcore: registered new interface driver usbhid
    [   15.568489] usbhid: USB HID core driver
    [   15.576878] usbcore: registered new interface driver usblp
    [   15.592522] usbcore: registered new interface driver usbserial
    [   15.598544] usbcore: registered new interface driver usbserial_generic
    [   15.605329] usbserial: USB Serial support registered for generic
    [   15.624993] Driver for 1-wire Dallas network protocol.
    [   15.654401] xt_time: kernel timezone is -0000
    [   15.661426] usbcore: registered new interface driver ch341
    [   15.667095] usbserial: USB Serial support registered for ch341-uart
    [   15.676573] usbcore: registered new interface driver cp210x
    [   15.682405] usbserial: USB Serial support registered for cp210x
    [   15.692431] usbcore: registered new interface driver ftdi_sio
    [   15.698363] usbserial: USB Serial support registered for FTDI USB Serial Device
    [   15.719919] usbcore: registered new interface driver pl2303
    [   15.725673] usbserial: USB Serial support registered for pl2303
    [   15.737599] PPP generic driver version 2.4.2
    [   15.745446] NET: Registered protocol family 24
    [   15.764994] usbcore: registered new interface driver snd-usb-audio
    [   15.788422] usbcore: registered new interface driver uvcvideo
    [   15.794314] USB Video Class driver (1.1.1)
    [   15.805551] usbcore: registered new interface driver option
    [   15.811401] usbserial: USB Serial support registered for GSM modem (1-port)
    [   15.824121] kmodloader: done loading kernel modules from /etc/modules.d/*
    [   16.166038] urandom_read: 5 callbacks suppressed
    [   16.166048] random: jshn: uninitialized urandom read (4 bytes read)
    [   26.512136] jffs2: notice: (1236) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
    [   30.901412] IPv6: ADDRCONF(NETDEV_UP): br-wlan: link is not ready
    [   31.593655] 
    [   31.593655] _      _____   ___  ___    _________  ___  ____
    [   31.593655] | | /| / / _ | / _ \/ _ \  / ___/ __ \/ _ \/ __/ V1.1
    [   31.593655] | |/ |/ / __ |/ , _/ ___/ / /__/ /_/ / , _/ _/  
    [   31.593655] |__/|__/_/ |_/_/|_/_/     \___/\____/_/|_/___/  
    [   31.593655]             Onion Enhanced MT7688 WiFi Driver 
    [   31.593655] 
    [   31.849687] DMA Scheduler Mode=0(LMAC)
    [   31.853516] efuse_probe: efuse = 10000012
    [   31.857636] 1. Phy Mode = 14
    
    

    Led power of after this line and console locks, power comsumptions down to 50mA.



  • Just past 31 seconds is indicative of a power supply issue as well as the symptoms. That's ironic as you clearly took some precautions. Here are some thoughts:

    1. Thick wires - good as this lowers inductance. If there's any appreciable wire length, twist them up. The twisted pair won't benefit you with this issue but will make your system less susceptible to nearby emitters as well as be less of a transmitter. This is a good general practice.

    2. 100uF bypass near power pins - good to have a nice size bulk cap nearby. You may need smaller caps as well for their higher frequency discharge capabilities. I doubt that is the issue.

    3. The lab power supply is where I would point my suspicion. What is the voltage (presumably 3.3 as you're applying directly to device)? What is the peak current capability of the power supply? Does the supply have a current limiting feature and, if so, is it on?

    The O2+ has a large peak in required current as the WiFi system comes up, right around 31 seconds. Likely something in your general power supply circuit is limiting charge to the device as peak charge is required.

    Best of luck!
    Bill



  • @Edu I agree with @William-Scott power consumption may drop because the device has hung. Starting wifi creates a spike. Try plugging your device into a computer USB port and see how it boots.



  • OMG! Omega2 is really sensible to power drops. I finally use an oscilloscope to monitor power and see some small sag while booting before hang.

    I solve the problem sordering directly power wires, maybe my connectors do not touch correctly or dont have enought contact surface.



  • @Edu I'm not sure Omega is any more sensitive than the alternatives, it's a question of understanding the platform and designing in accordance with the parameters.


Log in to reply
 

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