respeaker / get_started_with_respeaker

This is the wiki of ReSpeaker Core V2, ReSpeaker Core and ReSpeaker Mic Array.
260 stars 83 forks source link

Unable to boot. Caught in a loop #211

Open vdudas opened 6 years ago

vdudas commented 6 years ago

Which version is your board?

Respeaker v1

It's caught in a reboot loop, even after flashing with latest firmware:

root@(none):/mnt# mount /dev/mmcblk0p1 /mnt/dos
[  339.150000] [EXFAT] trying to mount...
[  339.150000] [EXFAT] mounted successfully
root@(none):/mnt# cd dos
root@(none):/mnt/dos# sysupgrade -v ramips-openwrt-latest-LinkIt7688-squashfs-sysupgrade.bin
Saving config files...
etc/avahi/avahi-daemon.conf
etc/avrdude.conf
etc/config/dhcp
etc/config/dropbear
etc/config/firewall
etc/config/luci
etc/config/mjpg-streamer
etc/config/mountd
etc/config/rpcd
etc/config/samba
etc/config/system
etc/config/ucitrack
etc/config/uhttpd
etc/config/yunbridge
etc/dnsmasq.conf
etc/dropbear/dropbear_dss_host_key
etc/dropbear/dropbear_rsa_host_key
etc/firewall.user
etc/group
etc/hosts
etc/inittab
etc/opkg.conf
etc/opkg/customfeeds.conf
etc/opkg/keys/53bad1233d4c98c5
etc/opkg/keys/5f64b581c977dd75
etc/opkg/keys/de98a2dd1d0f8a07
etc/passwd
etc/ppp/chap-secrets
etc/ppp/filter
etc/ppp/options
etc/profile
etc/protocols
etc/rc.local
etc/samba/smb.conf.template
etc/services
etc/shadow
etc/shells
etc/sysctl.conf
etc/sysupgrade.conf
killall: watchdog: no process killed
Failed to connect to ubus
Switching to ramdisk...
Performing system upgrade...
Unlocking firmware ...

Writing from <stdin> to firmware ...
Appending jffs2 data from /tmp/sysupgrade.tgz to firmware...
Writing from <stdin> to firmware ...
Upgrade completed
Rebooting [  565.380000] reboot: Restarting system
system...
[04050C0C][04050C0E]
DDR Calibration DQS reg = 00008988

U-Boot 1.1.3 (Sep 23 2016 - 12:27:20)

Board: Ralink APSoC
DRAM:  128 MB
relocate_code Pointer at: 87f68000
******************************
Software System Reset Occurred
******************************
flash manufacture id: ef, device id 40 19
find flash: W25Q256FV
============================================
Ralink UBoot Version: 4.3.0.0
--------------------------------------------
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:Sep 23 2016  Time:12:27:20
============================================
icache: sets:512, ways:4, linesz:32 ,total:65536
dcache: sets:256, ways:4, linesz:32 ,total:32768

 ##### The CPU freq = 580 MHZ ####
 estimate memory size =128 Mbytes
RESET MT7628 PHY!!!!!!

GPIOMODE --> 50054404

GPIOMODE2 --> 5540551

Please choose the operation:
   1: Load system code to SDRAM via TFTP.
   2: Load system code then write to Flash via TFTP.
   3: Boot system code via Flash (default).
   4: Entr boot command line interface.
   7: Load Boot Loader code then write to Flash via Serial.
   9: Load Boot Loader code then write to Flash via TFTP.                                                                                                           0

3: System Boot system code via Flash.
## Booting image at bc050000 ...
   Image Name:   MIPS OpenWrt Linux-3.18.23
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1153659 Bytes =  1.1 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 3.18.23 (pillar@server) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r49389) ) #83 Sat Nov 19 07:15:53 PST 2016
[    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 Seeed ReSpeaker v1 7688
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x00000000-0x07ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000-0x07ffffff]
[    0.000000] Initmem setup node 0 [mem 0x00000000-0x07ffffff]
[    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: 32512
[    0.000000] Kernel command line: console=ttyS2,57600 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=0004cb30
[    0.000000] Readback ErrCtl register=0004cb30
[    0.000000] Memory: 126272K/131072K available (2551K kernel code, 128K rwdata, 524K rodata, 180K init, 186K bss, 4800K 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_of_init: no matching clocksources found
[    0.000000] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[    0.060000] pid_max: default: 32768 minimum: 301
[    0.060000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.070000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.080000] pinctrl core: initialized pinctrl subsystem
[    0.090000] NET: Registered protocol family 16
[    0.110000] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.120000] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.130000] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.140000] Switched to clocksource MIPS
[    0.150000] NET: Registered protocol family 2
[    0.150000] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.170000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.180000] TCP: Hash tables configured (established 1024 bind 1024)
[    0.190000] TCP: reno registered
[    0.200000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.210000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.220000] NET: Registered protocol family 1
[    0.230000] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.250000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.260000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.290000] msgmni has been set to 246
[    0.290000] io scheduler noop registered
[    0.300000] io scheduler deadline registered (default)
[    0.310000] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    0.330000] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 28, base_baud = 2500000) is a 16550A
[    0.340000] 10000d00.uart1: ttyS1 at MMIO 0x10000d00 (irq = 29, base_baud = 2500000) is a 16550A
[    0.360000] console [ttyS2] disabled
[    0.370000] 10000e00.uart2: ttyS2 at MMIO 0x10000e00 (irq = 30, base_baud = 2500000) is a 16550A
[    0.390000] console [ttyS2] enabled
[    0.390000] console [ttyS2] enabled
[    0.400000] bootconsole [early0] disabled
[    0.400000] bootconsole [early0] disabled
[    0.420000] spi-mt7621 10000b00.spi: sys_freq: 193333333
[    0.440000] m25p80 spi32766.0: found w25q256, expected mx25l25635e
[    0.450000] m25p80 spi32766.0: w25q256 (32768 Kbytes)
[    0.460000] m25p80 spi32766.0: using chunked io
[    0.470000] 4 ofpart partitions found on MTD device spi32766.0
[    0.480000] Creating 4 MTD partitions on "spi32766.0":
[    0.490000] 0x000000000000-0x000000030000 : "u-boot"
[    0.510000] 0x000000030000-0x000000040000 : "u-boot-env"
[    0.520000] 0x000000040000-0x000000050000 : "factory"
[    0.530000] 0x000000050000-0x000002000000 : "firmware"
[    0.610000] 2 uimage-fw partitions found on MTD device firmware
[    0.620000] 0x000000050000-0x000000169abb : "kernel"
[    0.630000] 0x000000169abb-0x000002000000 : "rootfs"
[    0.640000] mtd: device 5 (rootfs) set to be root filesystem
[    0.650000] 1 squashfs-split partitions found on MTD device rootfs
[    0.660000] 0x000001e40000-0x000002000000 : "rootfs_data"
[    0.690000] ralink_soc_eth 10100000.ethernet eth0: ralink at 0xb0100000, irq 5
[    0.700000] mt7621_wdt 10000120.watchdog: Initialized
[    0.710000] TCP: cubic registered
[    0.720000] NET: Registered protocol family 17
[    0.730000] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    0.750000] 8021q: 802.1Q VLAN Support v1.8
[    0.770000] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[    0.780000] Freeing unused kernel memory: 180K (80323000 - 80350000)
[    2.280000] init: Console is alive
[    2.290000] init: - watchdog -
[    5.340000] usbcore: registered new interface driver usbfs
[    5.350000] usbcore: registered new interface driver hub
[    5.360000] usbcore: registered new device driver usb
[    5.380000] exFAT: Version 1.2.9
[    5.420000] SCSI subsystem initialized
[    5.440000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    5.450000] ehci-platform: EHCI generic platform driver
[    5.660000] phy phy-usbphy.0: remote usb device wakeup disabled
[    5.670000] phy phy-usbphy.0: UTMI 16bit 30MHz
[    5.680000] ehci-platform 101c0000.ehci: EHCI Host Controller
[    5.690000] ehci-platform 101c0000.ehci: new USB bus registered, assigned bus number 1
[    5.710000] ehci-platform 101c0000.ehci: irq 26, io mem 0x101c0000
[    5.740000] ehci-platform 101c0000.ehci: USB 2.0 started, EHCI 1.00
[    5.750000] hub 1-0:1.0: USB hub found
[    5.760000] hub 1-0:1.0: 1 port detected
[    5.770000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    5.780000] ohci-platform: OHCI generic platform driver
[    5.790000] ohci-platform 101c1000.ohci: Generic Platform OHCI controller
[    5.810000] ohci-platform 101c1000.ohci: new USB bus registered, assigned bus number 2
[    5.820000] ohci-platform 101c1000.ohci: irq 26, io mem 0x101c1000
[    5.890000] hub 2-0:1.0: USB hub found
[    5.900000] hub 2-0:1.0: 1 port detected
[    5.910000] platform gpio-leds: Driver leds-gpio requests probe deferral
[    5.930000] MTK MSDC device init.
[    5.980000] mtk-sd: MediaTek MT6575 MSDC Driver
[    5.990000] sdhci: Secure Digital Host Controller Interface driver
[    6.000000] sdhci: Copyright(c) Pierre Ossman
[    6.010000] platform gpio-leds: Driver leds-gpio requests probe deferral
[    6.030000] sdhci-pltfm: SDHCI platform and OF driver helper
[    6.040000] usbcore: registered new interface driver usb-storage
[    6.130000] mmc0: new high speed SDHC card at address aaaa
[    6.140000] mmcblk0: mmc0:aaaa SL08G 7.40 GiB
[    6.150000]  mmcblk0: p1 p2
[    6.160000] platform gpio-leds: Driver leds-gpio requests probe deferral
[    6.320000] init: - preinit -
[    7.220000] rt305x-esw 10110000.esw: link changed 0x00
[    7.370000] random: procd urandom read with 12 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
[   10.710000] mount_root: loading kmods from internal overlay
[   11.110000] jffs2_scan_eraseblock(): End of filesystem marker found at 0x10000
[   11.130000] jffs2_build_filesystem(): unlocking the mtd device... done.
[   11.140000] jffs2_build_filesystem(): erasing all blocks after the end marker... done.
[   18.430000] jffs2: notice: (370) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[   18.470000] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
[   18.480000] block: unable to load configuration (fstab: Entry not found)
[   18.490000] block: attempting to load /tmp/jffs_cfg/etc/config/fstab
[   18.510000] block: unable to load configuration (fstab: Entry not found)
[   18.520000] block: attempting to load /etc/config/fstab
[   18.770000] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts:
[   18.820000] mount_root: switched to extroot
[   18.840000] procd: - early -
[   18.850000] procd: - watchdog -
cat: can't open '/sys//devices/101c0000.ehci/usb1/interface': No such file or directory
[   19.590000] procd: - ubus -
[   20.600000] procd: - init -
Please press Enter to activate this console.
[   23.160000] NET: Registered protocol family 10
[   23.230000] RPC: Registered named UNIX socket transport module.
[   23.240000] RPC: Registered udp transport module.
[   23.250000] RPC: Registered tcp transport module.
[   23.260000] RPC: Registered tcp NFSv4.1 backchannel transport module.
[   23.280000] ntfs: driver 2.1.31 [Flags: R/O MODULE].
[   23.370000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   23.400000] i2c /dev entries driver
[   24.060000] <-- RTMPAllocTxRxRingMemory, Status=0, ErrorValue=0x
[   24.070000] <-- RTMPAllocAdapterBlock, Status=0
[   24.120000] mtk_gpio_wifi gpio-wifi: registering 1 gpio
[   24.200000] i2c-ralink 10000900.i2c: loaded
[   24.220000] Linux video capture interface: v2.00
[   24.280000] hidraw: raw HID events driver (C) Jiri Kosina
[   24.330000] fuse init (API version 7.23)
[   24.350000] Enable Ralink GDMA Controller Module
[   24.360000] GDMA IP Version=3
[   24.410000] *******Enter codec_wm8960_i2c_probe********
[   24.420000] soc-audio soc-audio: ASoC: machine MTK APSoC I2S should use snd_soc_register_card()
[   24.440000] wm8960 0-001a: No platform data supplied
[   24.450000] ****** wm8960_preinit ******
[   24.960000] soc-audio soc-audio: wm8960-hifi <-> mt76xx-i2s mapping ok
[   24.980000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   25.020000] nf_conntrack version 0.5.0 (1975 buckets, 7900 max)
[   25.190000] usbcore: registered new interface driver usbhid
[   25.210000] usbhid: USB HID core driver
[   25.220000] usbcore: registered new interface driver uvcvideo
[   25.240000] USB Video Class driver (1.1.1)
[   25.260000] xt_time: kernel timezone is -0000
[   25.280000] PPP generic driver version 2.4.2
[   25.290000] NET: Registered protocol family 24
[   25.310000] usbcore: registered new interface driver snd-usb-audio
[   31.210000] random: nonblocking pool is initialized
[   33.510000] device eth0.1 entered promiscuous mode
[   33.520000] device eth0 entered promiscuous mode
[   33.580000] br-lan: port 1(eth0.1) entered forwarding state
[   33.590000] br-lan: port 1(eth0.1) entered forwarding state
[   35.070000] efuse_probe: efuse = 10000012
[   35.090000] net ra0: Direct firmware load for mt7628.eeprom failed with error -2
[   35.100000] net ra0: Falling back to user helper
[   35.590000] br-lan: port 1(eth0.1) entered forwarding state
[04050C0B][04050C0E]
DDR Calibration DQS reg = 00008988

U-Boot 1.1.3 (Sep 23 2016 - 12:27:20)

Board: Ralink APSoC
DRAM:  128 MB
relocate_code Pointer at: 87f68000
flash manufacture id: ef, device id 40 19
find flash: W25Q256FV
============================================
Ralink UBoot Version: 4.3.0.0
--------------------------------------------
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:Sep 23 2016  Time:12:27:20
============================================
icache: sets:512, ways:4, linesz:32 ,total:65536
dcache: sets:256, ways:4, linesz:32 ,total:32768

 ##### The CPU freq = 580 MHZ ####
 estimate memory size =128 Mbytes
RESET MT7628 PHY!!!!!!

GPIOMODE --> 50054404

GPIOMODE2 --> 5540551

Please choose the operation:
   1: Load system code to SDRAM via TFTP.
   2: Load system code then write to Flash via TFTP.
   3: Boot system code via Flash (default).
   4: Entr boot command line interface.
   7: Load Boot Loader code then write to Flash via Serial.
   9: Load Boot Loader code then write to Flash via TFTP.                                                                                                           

And then it starts all over again...

xyx0826 commented 9 months ago

It's been five years and I hope you've figured it out. :)

I ran into the same issue on a completely different product using the same MT7628 SoC and I found this issue by searching the boot log. It seemed like that part of booting required significant current for bringing up Wi-Fi. I fixed my issue by setting a 1.5 A current limit on my power supply and not using flaky jumper wires.