Vocore2 Recovery Through Boot Command Line

rcpaul
 
Posts: 39
Joined: Sun Nov 09, 2014 4:20 am

Vocore2 Recovery Through Boot Command Line

Fri Mar 16, 2018 4:03 am

Does anyone know how to recover from the following, it won't let me select option "4" like I usually do, seems like its selecting option "3' on its own.

Connecting to /dev/tty.usbserial, speed 115200
Escape character: Ctrl-\ (ASCII 28, FS): enabled
Type the escape character followed by C to get back,
or followed by ? to see other options.
----------------------------------------------------
*** Warning - bad CRC, using default environment

============================================
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:Jun 25 2016 Time:22:54:33
============================================
icache: sets:512, ways:4, linesz:32 ,total:65536
dcache: sets:256, ways:4, linesz:32 ,total:32768
RESET MT7628 PHY!!!!!!
Please choose the operation:
0: Load system code then write to Flash via SERIAL.
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.
5: Load system code then write to Flash via USB Storage.
7: Load Boot Loader code then write to Flash via Serial.
8: Start Web Server to load system code.
9: Load Boot Loader code then write to Flash via TFTP.
gpio trigger enabled
GPIO 46 used to trigger webpage
Hold button for between 3 seconds and 6 seconds
then release to trigger webpage to load image
Hold button for between 6 seconds and 9 seconds
then release to trigger loading image from USBSTORAGE
GPIO 46 is low

You chose 3

0

3: System Boot system code via Flash.
## Booting image at bc050000 ...
Image Name: MIPS OpenWrt Linux-3.18.45
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 1146069 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.45 (pep@elbono-bigguy) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r49404) ) #5 Sun Jan 29 05:20:22 CST 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 MT7628AN ver:1 eco:2
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 00019655 (MIPS 24KEc)
[ 0.000000] MIPS: machine is VoCore2
[ 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=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=0003e87a
[ 0.000000] Readback ErrCtl register=0003e87a
[ 0.000000] Memory: 126336K/131072K available (2532K kernel code, 130K rwdata, 520K rodata, 136K init, 186K bss, 4736K 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.070000] pinctrl core: initialized pinctrl subsystem
[ 0.080000] NET: Registered protocol family 16
[ 0.100000] mt7621_gpio 10000600.gpio: registering 32 gpios
[ 0.110000] mt7621_gpio 10000600.gpio: registering 32 gpios
[ 0.110000] mt7621_gpio 10000600.gpio: registering 32 gpios
[ 0.120000] Switched to clocksource MIPS
[ 0.120000] NET: Registered protocol family 2
[ 0.130000] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.130000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.140000] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.140000] TCP: reno registered
[ 0.150000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.150000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.160000] NET: Registered protocol family 1
[ 0.170000] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.180000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.190000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.200000] msgmni has been set to 246
[ 0.210000] io scheduler noop registered
[ 0.210000] io scheduler deadline registered (default)
[ 0.220000] gdma-mt7628 10002800.gdma: revision: 3, channels: 16
[ 0.230000] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[ 0.240000] rt2880-pinmux pinctrl: pin io20 already requested by pinctrl; cannot claim for 10000e00.uart2
[ 0.240000] rt2880-pinmux pinctrl: pin-20 (10000e00.uart2) status -22
[ 0.250000] rt2880-pinmux pinctrl: could not request pin 20 (io20) from group uart2 on device rt2880-pinmux
[ 0.260000] of_serial 10000e00.uart2: Error applying setting, reverse things back
[ 0.270000] console [ttyS0] disabled
[ 0.270000] 10000e00.uart2: ttyS0 at MMIO 0x10000e00 (irq = 30, base_baud = 2500000) is a 16550A
[ 0.280000] console [ttyS0] enabled
[ 0.280000] console [ttyS0] enabled
[ 0.290000] bootconsole [early0] disabled
[ 0.290000] bootconsole [early0] disabled
[ 0.300000] spi-mt7621 10000b00.spi: sys_freq: 193333333
[ 0.310000] m25p80 spi32766.0: found w25q128, expected en25q64
[ 0.310000] m25p80 spi32766.0: w25q128 (16384 Kbytes)
[ 0.320000] m25p80 spi32766.0: using chunked io
[ 0.320000] 4 ofpart partitions found on MTD device spi32766.0
[ 0.330000] Creating 4 MTD partitions on "spi32766.0":
[ 0.330000] 0x000000000000-0x000000030000 : "u-boot"
[ 0.340000] 0x000000030000-0x000000040000 : "u-boot-env"
[ 0.350000] 0x000000040000-0x000000050000 : "factory"
[ 0.350000] 0x000000050000-0x000001000000 : "firmware"
[ 0.420000] 2 uimage-fw partitions found on MTD device firmware
[ 0.430000] 0x000000050000-0x000000167d15 : "kernel"
[ 0.430000] 0x000000167d15-0x000001000000 : "rootfs"
[ 0.440000] mtd: device 5 (rootfs) set to be root filesystem
[ 0.440000] 1 squashfs-split partitions found on MTD device rootfs
[ 0.450000] 0x000000910000-0x000001000000 : "rootfs_data"
[ 0.470000] ralink_soc_eth 10100000.ethernet: generated random MAC address 86:23:b9:87:5f:37
[ 0.480000] ralink_soc_eth 10100000.ethernet eth0: ralink at 0xb0100000, irq 5
[ 0.480000] mt7621_wdt 10000120.watchdog: Initialized
[ 0.490000] TCP: cubic registered
[ 0.490000] NET: Registered protocol family 17
[ 0.500000] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[ 0.510000] 8021q: 802.1Q VLAN Support v1.8
[ 0.520000] squashfs: SQUASHFS error: Filesystem uses "lzma" compression. This is not supported
[ 0.530000] jffs2: Flash size not aligned to erasesize, reducing to 14912KiB
[ 0.540000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000000: 0x7368 instead
[ 0.520000] s[ 0.550000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000004: 0x09bb instead
quashfs[ 0.53[ 0.560000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000008: 0x9ddd instead
0000] jffs2: F[ [ 0.570000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000010: 0x0037 instead
0.540000] jff[ 0.580000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000014: 0x0002 instead
s2: j[ 0.5200[ 0.590000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000018: 0x00c0 instead
00] s[ 0.quas[ 0.610000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000001c: 0x0004 instead
hfs[ 0.53[ [ 0.620000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000020: 0x0006 instead
0.0000] jffs2: [ 0.630000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000028: 0x004f instead
F[ [ 0. 0.5[ 0.640000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000030: 0x0047 instead
40000] jff[ 0[ 0.650000] jffs2: Further such events for this erase block will not be printed
.s2: j[ 0.5200[ 0.00] s[ 0.quas[ 0.hfs[ 0.53[ [ 0. 0.0000] j[ 0.660000] jffs2: Empty flash at 0x00000038 ends at 0x00000040
ffs2: [ 0.F[ [ 0. 0.5[ 0.40000] jff[ 0[ 0..s2: j[ 0.5200[ 0.00] s[ 0.quas[ 0.hfs[ 0.53[ [ 0. 0.0000] j[ 0ffs2: [ 0.F[ [ 0. 0.5[ 0.40000] jff[ 0[ 0..s2: j[ 0.5200[ 0.00] s[ 0.quas[ 0.hfs[ 0.53[ [ 0. 0.0000] j[ 0ffs2: [ 0.F[ [ 0. 0.5[ 0.40000] jff[ 0[ 0..s2: j[ 0.5200[ 0.00] s[ 0.quas[ 0.hfs[ 0.53[ [ 0. 0.0000] j[ 0ffs2: [ 0.F[ [ 0. 0.5[ 0.40000] jff[ 0[ 0..s2: j[ 0.5200[ 0.00] s[ 0.quas[ 0.hfs[ 0.53[ [ 0. 0.0000] j[ 0ffs2: [ 0.F[ [ 0. 0.5[ 0.40000] jff[ 0[ 0..s2: j[ 0.5200[ 0.00] s[ 0.quas[ 0.hfs[ 0.53[ [ 0. 0.0000] j[ 0ffs2: [ 0.F[ [ 0. 0.5[ 0.40000] jff[ 0[ 0..s2: j[ 0.5200[ 0.00] s[ 0.quas[ 0.hfs[ 0.53[ [ 0. 0.0000] j[ 0ffs2: [ 0.F[ [ 0. 0.5[ 0.40000] jff[ 0[ 0..s2: j[ 0.5200[ 0.00] s[ 0.quas[ 0.hfs[ 0.53[ [ 0. 0.0000] j[ 0ffs2: [ 0.F[ [ 0. 0.5[ 0.40000] jff[ 0[ [ 0.760000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010000: 0x5d44 instead
0..s2: j[ 0.5[ 0.780000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1

rcpaul
 
Posts: 39
Joined: Sun Nov 09, 2014 4:20 am

Re: Vocore2 Recovery Through Boot Command Line

Fri Mar 16, 2018 4:08 am

some more lines:

[ 27.700000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00e80000: 0x8dd0 instead
[ 27.710000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00e80018: 0x68df instead
[ 27.720000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00e8001c: 0x0219 instead
[ 27.730000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00e80024: 0xf7fb instead
[ 27.740000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00e80030: 0x0041 instead
[ 27.750000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00e8003c: 0x8dcf instead
[ 27.760000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00e80040: 0x8dcf instead
[ 27.770000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00e80044: 0x8dd0 instead
[ 27.780000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00e8005c: 0xa3da instead
[ 27.790000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00e80060: 0x0219 instead
[ 27.800000] jffs2: Further such events for this erase block will not be printed
[ 27.860000] jffs2: Empty flash at 0x00e84214 ends at 0x00e882e8
[ 27.910000] jffs2: Cowardly refusing to erase blocks on filesystem with no valid JFFS2 nodes
[ 27.920000] jffs2: empty_blocks 109, bad_blocks 0, c->nr_blocks 233
[ 27.930000] VFS: Cannot open root device "(null)" or unknown-block(31,5): error -5
[ 27.940000] Please append a correct "root=" boot option; here are the available partitions:
[ 27.940000] 1f00 192 mtdblock0 (driver?)
[ 27.950000] 1f01 64 mtdblock1 (driver?)
[ 27.950000] 1f02 64 mtdblock2 (driver?)
[ 27.960000] 1f03 16064 mtdblock3 (driver?)
[ 27.960000] 1f04 1119 mtdblock4 (driver?)
[ 27.970000] 1f05 14944 mtdblock5 (driver?)
[ 27.970000] 1f06 7104 mtdblock6 (driver?)
[ 27.980000] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,5)
[ 27.980000] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,5)

Vonger
 
Posts: 608
Joined: Sun Oct 19, 2014 6:00 am

Re: Vocore2 Recovery Through Boot Command Line

Mon Mar 19, 2018 2:52 am

Please select 0 in uboot and upload the firmware again.

rcpaul
 
Posts: 39
Joined: Sun Nov 09, 2014 4:20 am

Re: Vocore2 Recovery Through Boot Command Line

Mon Mar 19, 2018 11:37 pm

It doesn't allow me to choose 0

Vonger
 
Posts: 608
Joined: Sun Oct 19, 2014 6:00 am

Re: Vocore2 Recovery Through Boot Command Line

Wed Mar 21, 2018 1:51 am

Try this way, connect VoCore2 RESET to GND, then connect VoCore2 to power, open console.Then disconnect RESET to GND, it will boot from uboot.

Return to VoCore2

Who is online

Users browsing this forum: No registered users and 3 guests