Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS#2245 - Problem with downloading firmware to the device #8412

Closed
openwrt-bot opened this issue Apr 19, 2019 · 1 comment
Closed

FS#2245 - Problem with downloading firmware to the device #8412

openwrt-bot opened this issue Apr 19, 2019 · 1 comment
Labels

Comments

@openwrt-bot
Copy link

Milena:

/code>Supply the following if possible:

  • An error occurs when downloading the firmware
    -Work on Openwrt 18.06, MT7621 processor
    -No devices were connected
    Worried about the error with NAND and CPU0, unless of course, I correctly determined that they are the cause
@openwrt-bot
Copy link
Author

Milena:

did not attach the .log file

MT7621 stage1 code done
CPU=500000000 HZ BUS=125000000 HZ

U-Boot 1.1.3 (Aug 26 2017 - 19:01:38)

Board: MediaTek APSoC DRAM: 256 MB

Config XHCI 40M PLL
MediaTek SPI flash driver, SPI clock: 44MHz
spi device id: c8 40 18 c8
find flash: GD25Q128CSIG

MediaTek U-Boot Version: 5.0.1.0-6

ASIC MT7621A DualCore (MAC to MT7530 Mode)
DRAM_CONF_FROM: Auto-Detection
DRAM_TYPE: DDR3
DRAM bus: 16 bit
Xtal Mode=3 OCP Ratio=1/4
Flash component: SPI Flash
Date:Aug 26 2017 Time:19:01:38

icache: sets:256, ways:4, linesz:32, total:32768
dcache: sets:256, ways:4, linesz:32, total:32768

The CPU freq = 880 MHZ

estimate memory size = 256 Mbytes

Reset MT7530
set LAN/WAN LLLLW

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: Enter boot command line interface.
7: Load U-Boot code then write to Flash via Serial.
9: Load U-Boot code then write to Flash via TFTP.

You choosed 1

0

1: System Load Linux to SDRAM via TFTP.
Please Input new ones /or Ctrl-C to discard
Input device IP (192.168.1.1) ==:192.168.1.1
Input server IP (192.168.1.131) ==:192.168.1.131
Input Linux Kernel filename (openwrt-ramips-mt7621-mt7621-squashfs-sysupgrade.bin) ==:openwrt-ramips-mt7621-mt7621-squashfs-sysupgrade.bin

NetTxPacket = 0x8FFE6100

KSEG1ADDR(NetTxPacket) = 0xAFFE6100

NetLoop,call eth_halt !

NetLoop,call eth_init !
Trying eth2

ETH_STATE_ACTIVE!!
TFTP from server 192.168.1.131; our IP address is 192.168.1.1
Filename 'openwrt-ramips-mt7621-mt7621-squashfs-sysupgrade.bin'.

TIMEOUT_COUNT=10,Load address: 0x80a00000
Loading: T T Got ARP REPLY, set server/gtwy eth addr (00:a0:d2:1c:2b:ae)
Got it
T
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
###############
done
Bytes transferred = 3735730 (3900b2 hex)
LoadAddr=80a00000 NetBootFileXferSize=003900b2
Automatic boot of image at addr 0x80A00000 ...

Checking image at 80a00000 ...

Image Name: MIPS OpenWrt Linux-4.14.111
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 1874761 Bytes = 1.8 MB
Load Address: 80001000
Entry Point: 80001000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
No initrd

Transferring control to Linux (at address 80001000) ...

Giving linux memsize in MB, 256

Starting kernel ...

[ 0.000000] Linux version 4.14.111 (milena@milenaVB) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r7737-6ac061f319)) #0 SMP Thu Apr 11 20:54:45 2019
[ 0.000000] SoC Type: MediaTek MT7621 ver:1 eco:3
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 0001992f (MIPS 1004Kc)
[ 0.000000] MIPS: machine is Mediatek MT7621 evaluation board
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 02000000 @ 00000000 (usable)
[ 0.000000] VPE topology {2,2} total 4
[ 0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 0.000000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000000000000-0x0000000001ffffff]
[ 0.000000] HighMem empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x0000000001ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000001ffffff]
[ 0.000000] random: get_random_bytes called from start_kernel+0x90/0x46c with crng_init=0
[ 0.000000] percpu: Embedded 14 pages/cpu @8104e000 s26192 r8192 d22960 u57344
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 8128
[ 0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2 console=ttyS0,57600n8
[ 0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[ 0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Writing ErrCtl register=00050020
[ 0.000000] Readback ErrCtl register=00050020
[ 0.000000] Memory: 26024K/32768K available (4424K kernel code, 231K rwdata, 976K rodata, 244K init, 248K bss, 6744K reserved, 0K cma-reserved, 0K highmem)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] NR_IRQS: 256
[ 0.000000] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478abb4, max_idle_ns: 440795247997 ns
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4343773742 ns
[ 0.000010] sched_clock: 32 bits at 440MHz, resolution 2ns, wraps every 4880645118ns
[ 0.015496] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
[ 0.087821] pid_max: default: 32768 minimum: 301
[ 0.097135] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.110157] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.125935] Hierarchical SRCU implementation.
[ 0.135417] smp: Bringing up secondary CPUs ...
[ 0.145840] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 0.145850] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 0.145861] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[ 0.146001] CPU1 revision is: 0001992f (MIPS 1004Kc)
[ 0.204779] Synchronize counters for CPU 1: done.
[ 0.275930] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 0.275940] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 0.275948] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[ 0.276020] CPU2 revision is: 0001992f (MIPS 1004Kc)
[ 0.325675] Synchronize counters for CPU 2: done.
[ 0.386717] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 0.386727] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 0.386737] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[ 0.386821] CPU3 revision is: 0001992f (MIPS 1004Kc)
[ 0.445239] Synchronize counters for CPU 3: done.
[ 0.504842] smp: Brought up 1 node, 4 CPUs
[ 0.516053] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.535523] futex hash table entries: 1024 (order: 3, 32768 bytes)
[ 0.547957] pinctrl core: initialized pinctrl subsystem
[ 0.558759] NET: Registered protocol family 16
[ 0.584845] mt7621_gpio 1e000600.gpio: registering 32 gpios
[ 0.596096] mt7621_gpio 1e000600.gpio: registering 32 gpios
[ 0.607329] mt7621_gpio 1e000600.gpio: registering 32 gpios
[ 0.620868] clocksource: Switched to clocksource GIC
[ 0.631662] NET: Registered protocol family 2
[ 0.641029] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.654764] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.667383] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.680117] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 0.691622] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 0.704274] NET: Registered protocol family 1
[ 0.950813] 4 CPUs re-calibrate udelay(lpj = 2924544)
[ 0.961760] Crashlog allocated RAM at address 0x1f00000
[ 0.972451] workingset: timestamp_bits=30 max_order=13 bucket_order=0
[ 0.991421] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 1.002933] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 1.025704] io scheduler noop registered
[ 1.033386] io scheduler deadline registered (default)
[ 1.044316] random: fast init done
[ 1.044808] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[ 1.064887] console [ttyS0] disabled
[ 1.071940] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 18, base_baud = 3125000) is a 16550A
[ 1.089871] console [ttyS0] enabled
[ 1.089871] console [ttyS0] enabled
[ 1.103663] bootconsole [early0] disabled
[ 1.103663] bootconsole [early0] disabled
[ 1.120139] cacheinfo: Failed to find cpu0 device node
[ 1.130408] cacheinfo: Unable to detect cache hierarchy for CPU 0
[ 1.143228] MediaTek Nand driver init, version v2.1 Fix AHB virt2phys error
[ 1.157268] Enable NFI Clock
[ 1.172974] # MTK NAND # : Use HW ECC
[ 61.150827] INFO: rcu_sched self-detected stall on CPU
[ 61.161064] 1-...: (6000 ticks this GP) idle=42e/140000000000001/0 softirq=22/23 fqs=3000
[ 61.170825] INFO: rcu_sched detected stalls on CPUs/tasks:
[ 61.177666]
[ 61.188574] (t=6003 jiffies g=-290 c=-291 q=75)
[ 61.191698] 1-...: (6000 ticks this GP) idle=42e/140000000000001/0 softirq=22/23 fqs=3002
[ 61.217454]
[ 61.217460] NMI backtrace for cpu 1
[ 61.217473] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 4.14.111 #0
[ 61.220592] (detected by 3, t=6006 jiffies, g=-290, c=-291, q=75)
[ 61.227507] Stack : 00000000 80560000 00000000 8006ff28 80580000 80524ca4 00000000 00000000
[ 61.268341] 804f2520 8180bd44 8183037c 8055c8c7 804ed600 00000001 8180bce8 aed7224a
[ 61.284970] 00000000 00000000 805c0000 00000124 00000031 746b6361 65636172 726f6620
[ 61.301598] 8180bb2c 80560000 00035174 00000000 00000000 00000000 80580000 00000001
[ 61.318228] 80562360 8055a0ac 000000e0 80560000 00000002 80285b20 00000004 805c0004
[ 61.334857] ...
[ 61.339713] Call Trace:
[ 61.344599] [<800106a0>] show_stack+0x58/0x100
[ 61.353463] [<80434a9c>] dump_stack+0x9c/0xe0
[ 61.362136] [<8043b9a4>] nmi_cpu_backtrace+0xe4/0x108
[ 61.372180] [<8043ba90>] nmi_trigger_cpumask_backtrace+0xc8/0x168
[ 61.384308] [<80084978>] rcu_dump_cpu_stacks+0xc4/0x13c
[ 61.394697] [<80083dd0>] rcu_check_callbacks+0x3b4/0x8b8
[ 61.405269] [<80087348>] update_process_times+0x34/0x7c
[ 61.415680] [<80097f2c>] tick_handle_periodic+0x34/0xd0
[ 61.426073] [<80304e10>] gic_compare_interrupt+0x70/0x80
[ 61.436641] [<80077728>] handle_percpu_devid_irq+0xbc/0x1a8
[ 61.447742] [<800719f0>] generic_handle_irq+0x40/0x58
[ 61.457793] [<80242b3c>] gic_handle_local_int+0x9c/0xe8
[ 61.468182] [<80242cfc>] gic_irq_dispatch+0x10/0x20
[ 61.477881] [<800719f0>] generic_handle_irq+0x40/0x58
[ 61.487953] [<80451de4>] do_IRQ+0x1c/0x2c
[ 61.495923] [<80241ccc>] plat_irq_dispatch+0xfc/0x138
[ 61.505968] [<8000b5e8>] except_vec_vi_end+0xb8/0xc4
[ 61.515863] [<802c66d0>] mtk_nand_command_bp+0x34c/0x454
[ 61.526428] [<802c79ac>] mtk_nand_probe+0x2b4/0xa64
[ 61.536143] [<80295ec8>] platform_drv_probe+0x40/0x84
[ 61.546188] [<802943c8>] really_probe+0x140/0x2b8
[ 61.555541] [<802945e4>] __driver_attach+0xa4/0xdc
[ 61.565066] [<8029247c>] bus_for_each_dev+0x5c/0xbc
[ 61.574764] [<80293938>] bus_add_driver+0xf8/0x218
[ 61.584291] [<80294eb0>] driver_register+0xac/0xfc
[ 61.593816] [<80005650>] do_one_initcall+0xd0/0x1a0
[ 61.603518] [<80583d40>] kernel_init_freeable+0x168/0x228
[ 61.614254] [<8044be1c>] kernel_init+0x10/0x10c
[ 61.623262] [<8000b0d8>] ret_from_kernel_thread+0x14/0x1c
[ 61.634019] Sending NMI from CPU 3 to CPUs 1:
[ 134.713128] rcu_sched kthread starved for 7306 jiffies! g4294967006 c4294967005 f0x0 RCU_GP_DOING_FQS(4) ->state=0x0 ->cpu=2
[ 134.735443] rcu_sched R running task 0 8 2 0x00100000
[ 134.740001] NMI backtrace for cpu 1
[ 134.749482] Stack :
[ 134.756406] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 4.14.111 #0
[ 134.756409] 0000000e 00160153
[ 134.760574] task: 81830000 task.stack: 81824000
[ 134.772677] 81851e30
[ 134.778735] $ 0 :
[ 134.787729] 81851e30
[ 134.792232] 00000000
[ 134.796385] 8106e380
[ 134.800886] 00000001
[ 134.805386] 81851e30
[ 134.809885] 00000000
[ 134.814388] 80560000
[ 134.818889] be000000
[ 134.823389] 8106e380
[ 134.836886] $ 4 :
[ 134.836888] 00000003
[ 134.841047] be000000
[ 134.841054] 00000000
[ 134.846765] be000000
[ 134.851268] ffffbf73
[ 134.855769] ffffffff
[ 134.860266] 8106e380
[ 134.864769] ffffffff
[ 134.869268] 8106e380
[ 134.878269] 81851e30
[ 134.882768] $ 8 :
[ 134.882775] 80560000
[ 134.887274] 00000000
[ 134.891430] 8106e380
[ 134.895930] 00000062
[ 134.904928] 00000007
[ 134.909424]
[ 134.909432] 00000000
[ 134.913934] 00000003
[ 134.922587] 8055a1b8
[ 134.927086] $12 :
[ 134.927092] 80562470
[ 134.931595] 00000000
[ 134.935750] 8044dd04
[ 134.940249] 80560000
[ 134.944749] 00000001
[ 134.949251] 0002a3ae
[ 134.953752] 81851e30
[ 134.958252] 00000000
[ 134.962753] 80560000
[ 134.971755] ffffbf7f
[ 134.976252] $16 :
[ 134.980758] 000000ff
[ 134.984908]
[ 134.984918] ffffffff
[ 134.989416] 8106e380
[ 134.993575] ffffffff
[ 134.998075] 80450c2c
[ 135.002576] 805f0000
[ 135.007074] 00000001
[ 135.016077] 800829d0
[ 135.020574] $20 :
[ 135.020580] 81053d80
[ 135.025081] 00000002
[ 135.029233] 00000000
[ 135.033737] 80570000
[ 135.038236] 81851ebc
[ 135.042737] 8196a600
[ 135.047235] 00000001
[ 135.051738] 805f0000
[ 135.065231]
[ 135.065237] $24 : 00000000
[ 135.069392] 00000000
[ 135.069399] 80285b20
[ 135.075110] 8106e400
[ 135.079611]
[ 135.084112] ffffbf89
[ 135.088611]
[ 135.093114] 80086ecc
[ 135.102114] 81832bc0
[ 135.106612] $28 :
[ 135.106618] 03000002
[ 135.111123] 81824000
[ 135.115277] 00000001
[ 135.119776] 81825cd8
[ 135.124277] 80562360
[ 135.128779] be000000
[ 135.137781] 802c79ac
[ 135.142277]
[ 135.146784] ...
[ 135.150939] Hi : 00000124
[ 135.154584] Lo : 74e58000
[ 135.160292] Call Trace:
[ 135.166014] epc : 802c66d0 mtk_nand_command_bp+0x34c/0x454
[ 135.170868] [<8044dbe4>] __schedule+0x7ac/0x860
[ 135.182102] ra : 802c79ac mtk_nand_probe+0x2b4/0xa64
[ 135.191097] [<8044dd04>] schedule+0x6c/0x84
[ 135.201468] Status: 11007c03 KERNEL
[ 135.209779] [<80450c2c>] schedule_timeout+0x17c/0x1b8
[ 135.209791] [<80082fec>] rcu_gp_kthread+0x560/0x950
[ 135.216881] EXL
[ 135.226933] [<8004be28>] kthread+0x130/0x144
[ 135.236599] IE
[ 135.240243] [<8000b0d8>] ret_from_kernel_thread+0x14/0x1c
[ 135.262896] Cause : 50800400 (ExcCode 00)
[ 135.270862] PrId : 0001992f (MIPS 1004Kc)
[ 135.278999] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 4.14.111 #0
[ 135.291106] Stack : 00000000 80560000 00000001 8006ff28 80580000 80524ca4 00000000 00000000
[ 135.307735] 804f2520 8180bd84 8183037c 8055c8c7 804ed600 00000001 8180bd28 aed7224a
[ 135.324365] 00000000 00000000 805c0000 00003510 00000000 000000fb 00000007 00000000
[ 135.340994] 00000000 80560000 000441d7 00000000 00000000 00000000 80580000 00000001
[ 135.357622] 804f4af8 8054d420 804f2704 80560000 00000000 80285b20 00000004 805c0004
[ 135.374251] ...
[ 135.379107] Call Trace:
[ 135.383969] [<800106a0>] show_stack+0x58/0x100
[ 135.392811] [<80434a9c>] dump_stack+0x9c/0xe0
[ 135.401474] [<8043b984>] nmi_cpu_backtrace+0xc4/0x108
[ 135.411518] [<8000d2dc>] handle_backtrace+0x10/0x50
[ 135.421221] [<8009f414>] flush_smp_call_function_queue+0x18c/0x1d8
[ 135.433519] [<80015b90>] ipi_call_interrupt+0x10/0x20
[ 135.443572] [<800725ec>] __handle_irq_event_percpu+0x78/0x18c
[ 135.454999] [<80072720>] handle_irq_event_percpu+0x20/0x64
[ 135.465908] [<800727c4>] handle_irq_event+0x60/0xac
[ 135.475606] [<80076aa0>] handle_edge_irq+0x210/0x268
[ 135.485477] [<800719f0>] generic_handle_irq+0x40/0x58
[ 135.495523] [<80242c90>] gic_handle_shared_int+0x108/0x164
[ 135.506432] [<800719f0>] generic_handle_irq+0x40/0x58
[ 135.516482] [<80451de4>] do_IRQ+0x1c/0x2c
[ 135.524451] [<80241ccc>] plat_irq_dispatch+0xfc/0x138
[ 135.534495] [<8000b5e8>] except_vec_vi_end+0xb8/0xc4
[ 135.544375] [<802c66d0>] mtk_nand_command_bp+0x34c/0x454
[ 135.554940] [<802c79ac>] mtk_nand_probe+0x2b4/0xa64
[ 135.564644] [<80295ec8>] platform_drv_probe+0x40/0x84
[ 135.574689] [<802943c8>] really_probe+0x140/0x2b8
[ 135.584040] [<802945e4>] __driver_attach+0xa4/0xdc
[ 135.593565] [<8029247c>] bus_for_each_dev+0x5c/0xbc
[ 135.603264] [<80293938>] bus_add_driver+0xf8/0x218
[ 135.612789] [<80294eb0>] driver_register+0xac/0xfc
[ 135.622313] [<80005650>] do_one_initcall+0xd0/0x1a0
[ 135.632012] [<80583d40>] kernel_init_freeable+0x168/0x228
[ 135.642747] [<8044be1c>] kernel_init+0x10/0x10c
[ 135.651755] [<8000b0d8>] ret_from_kernel_thread+0x14/0x1c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant