[FS#1095] Youku YK1 constantly reboots
LEDE Bugs
lede-bugs at lists.infradead.org
Sat Oct 28 08:02:43 PDT 2017
The following task has a new comment added:
FS#1095 - Youku YK1 constantly reboots
User who did this - Edmunt Pienkowsky (RoEdAl)
----------
After reading [[http://patchwork.kernel.org/patch/9118911/|this]] and [[http://patchwork.kernel.org/patch/9118901/|this]] I decided to try backport commits [[http://github.com/torvalds/linux/commit/32321e950d8a237d7e8f3a9b76220007dfa87544?diff=unified|32321e9]] and [[http://github.com/torvalds/linux/commit/edf891ef9ab773363f8e58022a26d7d31604aed6?diff=unified|edf891e]] from kernel 4.6 to kernel 4.4.
So I've created patch __target/linux/generic/patches-4.4/049-mtd-spi-nor-wait-until-lock_unlock-operations-are-ready.patch__ (attached to this post).
The image compiled with this patch is bootable:
[ 0.000000] Linux version 4.4.93 (architect at archlinux) (gcc version 5.4.0 (LEDE GCC 5.4.0 r3571+2-367b4563b4) ) #0 Sat Oct 28 08:00:47 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 MT7620A ver:2 eco:6
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 00019650 (MIPS 24KEc)
[ 0.000000] MIPS: machine is YOUKU YK1
[ 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 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] On node 0 totalpages: 32768
[ 0.000000] free_area_init_node: node 0, pgdat 8038c3b0, node_mem_map 81000000
[ 0.000000] Normal zone: 256 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 32768 pages, LIFO batch:7
[ 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] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512
[ 0.000000] Kernel command line: console=ttyS0,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=00077429
[ 0.000000] Readback ErrCtl register=00077429
[ 0.000000] Memory: 125740K/131072K available (2902K kernel code, 138K rwdata, 696K rodata, 160K init, 203K bss, 5332K 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] CPU Clock: 580MHz
[ 0.000000] clocksource: systick: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 583261500 ns
[ 0.000000] systick: enable autosleep mode
[ 0.000000] systick: running - mult: 214748, shift: 32
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6590553264 ns
[ 0.000011] sched_clock: 32 bits at 290MHz, resolution 3ns, wraps every 7405115902ns
[ 0.015451] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[ 0.080602] pid_max: default: 32768 minimum: 301
[ 0.089927] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.102937] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.123587] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.143085] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.155332] pinctrl core: initialized pinctrl subsystem
[ 0.166331] NET: Registered protocol family 16
[ 0.193747] rt2880_gpio 10000600.gpio: registering 24 gpios
[ 0.204774] rt2880_gpio 10000600.gpio: registering 24 irq handlers
[ 0.217199] rt2880_gpio 10000638.gpio: registering 16 gpios
[ 0.228181] rt2880_gpio 10000638.gpio: registering 16 irq handlers
[ 0.240610] rt2880_gpio 10000660.gpio: registering 32 gpios
[ 0.251592] rt2880_gpio 10000660.gpio: registering 32 irq handlers
[ 0.264017] rt2880_gpio 10000688.gpio: registering 1 gpios
[ 0.274822] rt2880_gpio 10000688.gpio: registering 1 irq handlers
[ 0.288534] clocksource: Switched to clocksource systick
[ 0.300503] NET: Registered protocol family 2
[ 0.309969] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.323750] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.336339] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.349063] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.360597] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.373322] NET: Registered protocol family 1
[ 0.381942] PCI: CLS 0 bytes, default 32
[ 0.385999] rt-timer 10000100.timer: maximum frequency is 1220Hz
[ 0.399023] Crashlog allocated RAM at address 0x3f00000
[ 0.424651] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.436177] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.458388] io scheduler noop registered
[ 0.466103] io scheduler deadline registered (default)
[ 0.476527] ralink-usb-phy usbphy: invalid resource
[ 0.486799] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 0.500550] console [ttyS0] disabled
[ 0.507542] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 20, base_baud = 2500000) is a Palmchip BK-3103
[ 0.527312] console [ttyS0] enabled
[ 0.541089] bootconsole [early0] disabled
[ 0.561756] spi spi0.0: force spi mode3
[ 0.570345] m25p80 spi0.0: mx25l25635e (32768 Kbytes)
[ 0.580507] 4 ofpart partitions found on MTD device spi0.0
[ 0.591442] Creating 4 MTD partitions on "spi0.0":
[ 0.601003] 0x000000000000-0x000000030000 : "u-boot"
[ 0.612580] 0x000000030000-0x000000040000 : "u-boot-env"
[ 0.625051] 0x000000040000-0x000000050000 : "factory"
[ 0.636997] 0x000000050000-0x000002000000 : "firmware"
[ 0.818615] 2 uimage-fw partitions found on MTD device firmware
[ 0.830450] 0x000000050000-0x0000001843fb : "kernel"
[ 0.842002] 0x0000001843fb-0x000002000000 : "rootfs"
[ 0.853772] mtd: device 5 (rootfs) set to be root filesystem
[ 0.865260] 1 squashfs-split partitions found on MTD device rootfs
[ 0.877598] 0x000000390000-0x000002000000 : "rootfs_data"
[ 0.893327] gsw: setting port4 to ephy mode
[ 0.901752] mtk_soc_eth 10100000.ethernet eth0 (uninitialized): port 0 link up (100Mbps/Full duplex)
[ 0.920164] mtk_soc_eth 10100000.ethernet: loaded mt7620 driver
[ 0.932767] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
[ 0.949832] rt2880_wdt 10000120.watchdog: Initialized
[ 0.961476] NET: Registered protocol family 10
[ 0.974399] NET: Registered protocol family 17
[ 0.983424] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[ 1.008591] 8021q: 802.1Q VLAN Support v1.8
[ 1.029514] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[ 1.044484] Freeing unused kernel memory: 160K
[ 3.083653] init: Console is alive
[ 3.090787] init: - watchdog -
[ 4.933725] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 5.036610] usbcore: registered new interface driver usbfs
[ 5.047718] usbcore: registered new interface driver hub
[ 5.058454] usbcore: registered new device driver usb
[ 5.074299] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 5.089050] ehci-platform: EHCI generic platform driver
[ 5.109832] phy phy-usbphy.0: remote usb device wakeup disabled
[ 5.121639] phy phy-usbphy.0: UTMI 16bit 30MHz
[ 5.130529] ehci-platform 101c0000.ehci: EHCI Host Controller
[ 5.142028] ehci-platform 101c0000.ehci: new USB bus registered, assigned bus number 1
[ 5.157940] ehci-platform 101c0000.ehci: irq 26, io mem 0x101c0000
[ 5.176701] ehci-platform 101c0000.ehci: USB 2.0 started, EHCI 1.00
[ 5.190332] hub 1-0:1.0: USB hub found
[ 5.198250] hub 1-0:1.0: 1 port detected
[ 5.209206] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 5.223095] ohci-platform: OHCI generic platform driver
[ 5.233871] ohci-platform 101c1000.ohci: Generic Platform OHCI controller
[ 5.247480] ohci-platform 101c1000.ohci: new USB bus registered, assigned bus number 2
[ 5.263380] ohci-platform 101c1000.ohci: irq 26, io mem 0x101c1000
[ 5.298260] hub 2-0:1.0: USB hub found
[ 5.306208] hub 2-0:1.0: 1 port detected
[ 5.326700] MTK MSDC device init.
[ 5.347902] mtk-sd: MediaTek MT6575 MSDC Driver
[ 5.362567] sdhci: Secure Digital Host Controller Interface driver
[ 5.374946] sdhci: Copyright(c) Pierre Ossman
[ 5.385195] sdhci-pltfm: SDHCI platform and OF driver helper
[ 5.403495] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 5.422054] init: - preinit -
[ 5.782873] mmc0: new high speed SDHC card at address 1234
[ 5.876907] mmcblk0: mmc0:1234 SA08G 7.21 GiB
[ 5.964374] mmcblk0: p1
[ 5.981767] random: procd: uninitialized urandom read (4 bytes read, 10 bits of entropy available)
[ 6.386033] 8021q: adding VLAN 0 to HW filter on device eth0
[ 7.683179] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
[ 7.701100] urandom-seed: Seed file not found (/etc/urandom.seed)
[ 7.831892] procd: - early -
[ 7.837895] procd: - watchdog -
[ 8.242232] procd: - watchdog -
[ 8.248764] procd: - ubus -
[ 8.276994] random: ubusd: uninitialized urandom read (4 bytes read, 18 bits of entropy available)
[ 8.295461] random: ubusd: uninitialized urandom read (4 bytes read, 18 bits of entropy available)
[ 8.313458] random: ubusd: uninitialized urandom read (4 bytes read, 18 bits of entropy available)
[ 8.331800] random: ubusd: uninitialized urandom read (4 bytes read, 18 bits of entropy available)
[ 8.349825] random: ubusd: uninitialized urandom read (4 bytes read, 18 bits of entropy available)
[ 8.367933] random: ubusd: uninitialized urandom read (4 bytes read, 18 bits of entropy available)
[ 8.386059] random: ubusd: uninitialized urandom read (4 bytes read, 18 bits of entropy available)
[ 8.404437] procd: - init -
[ 8.648997] kmodloader: loading kernel modules from /etc/modules.d/*
[ 8.668520] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 8.690614] Loading modules backported from Linux version wt-2017-01-31-0-ge882dff19e7f
[ 8.706642] Backport generated by backports.git backports-20160324-13-g24da7d3c
[ 8.785954] ip_tables: (C) 2000-2006 Netfilter Core Team
Is this an acceptable solution in stable branch?
----------
One or more files have been attached.
More information can be found at the following URL:
https://bugs.lede-project.org/index.php?do=details&task_id=1095#comment3712
More information about the lede-bugs
mailing list