[OpenWrt-Devel] Kernel 4.3, MT7688 does not boot
Baptiste Clenet
bapclenet at gmail.com
Wed Dec 30 11:37:20 EST 2015
Hi,
I'm using a custom board including a MT7688 chip, I made the image
with the latest openwrt build (I've just downloaded it), I got an
image of 2,9Mo.
I flashed it and here is the debug:
## Booting image at bc050000 ...
Image Name: MIPS OpenWrt Linux-4.3
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 1294087 Bytes = 1.2 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.3.0 (root at ubuntu) (gcc version 5.2.0
(OpenWrt GCC 5.2.0 r48016) ) #1 Wed Dec 30 17:23:51 CET 2015
[ 0.000000] Board has SDRAM
[ 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 MediaTek LinkIt Smart 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 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] 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=00069e8c
[ 0.000000] Readback ErrCtl register=00069e8c
[ 0.000000] Memory: 125876K/131072K available (2911K kernel code,
123K rwdata, 584K rodata, 148K init, 196K bss, 5196K 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] clocksource_of_init: no matching clocksources 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.015352] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[ 0.080523] pid_max: default: 32768 minimum: 301
[ 0.089784] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.102733] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.122840] clocksource: jiffies: mask: 0xffffffff max_cycles:
0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.142376] pinctrl core: initialized pinctrl subsystem
[ 0.153331] NET: Registered protocol family 16
[ 0.183464] mt7621_gpio 10000600.gpio: registering 32 gpios
[ 0.194573] mt7621_gpio 10000600.gpio: registering 32 gpios
[ 0.205588] mt7621_gpio 10000600.gpio: registering 32 gpios
[ 0.218222] clocksource: Switched to clocksource MIPS
[ 0.229708] NET: Registered protocol family 2
[ 0.239172] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.252872] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.265393] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.278040] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.289496] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.302142] NET: Registered protocol family 1
[ 0.312126] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.344807] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.356277] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME)
(CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.378614] io scheduler noop registered
[ 0.386235] io scheduler deadline registered (default)
[ 0.397333] rt2880-pinmux pinctrl: invalid group "pwm0" for function "pwm0"
[ 0.411019] rt2880-pinmux pinctrl: invalid group "pwm1" for function "pwm1"
[ 0.425214] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[ 0.439137] rt2880-pinmux pinctrl: function 'uart0' not supported
[ 0.451093] rt2880-pinmux pinctrl: invalid function uart0 in map table
[ 0.464224] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 28,
base_baud = 2500000) is a 16550A
[ 0.482375] rt2880-pinmux pinctrl: function 'uart1' not supported
[ 0.494318] rt2880-pinmux pinctrl: invalid function uart1 in map table
[ 0.507246] of_serial 10000d00.uart1: clk or clock-frequency not defined
[ 0.520457] of_serial: probe of 10000d00.uart1 failed with error -2
[ 0.532890] rt2880-pinmux pinctrl: function 'uart2' not supported
[ 0.544865] rt2880-pinmux pinctrl: invalid function uart2 in map table
[ 0.557807] of_serial 10000e00.uart2: clk or clock-frequency not defined
[ 0.571020] of_serial: probe of 10000e00.uart2 failed with error -2
[ 0.585078] spi-mt7621 10000b00.spi: sys_freq: 193333333
[ 0.599776] m25p80 spi32766.0: using chunked io (size=31)
[ 0.610377] m25p80 spi32766.0: w25q128 (16384 Kbytes)
[ 0.620329] 4 ofpart partitions found on MTD device spi32766.0
[ 0.631824] Creating 4 MTD partitions on "spi32766.0":
[ 0.641983] 0x000000000000-0x000000030000 : "u-boot"
[ 0.653644] 0x000000030000-0x000000040000 : "u-boot-env"
[ 0.665971] 0x000000040000-0x000000050000 : "factory"
[ 0.677790] 0x000000050000-0x000002000000 : "firmware"
[ 0.687874] mtd: partition "firmware" extends beyond the end of
device "spi32766.0" -- size truncated to 0xfb0000
[ 0.730135] 2 uimage-fw partitions found on MTD device firmware
[ 0.741745] 0x000000050000-0x00000018bf47 : "kernel"
[ 0.753239] 0x00000018bf47-0x000001000000 : "rootfs"
[ 0.764910] mtd: device 5 (rootfs) set to be root filesystem
[ 0.776084] 1 squashfs-split partitions found on MTD device rootfs
[ 0.788201] 0x000000300000-0x000001000000 : "rootfs_data"
[ 0.801123] spidev spi32766.1: buggy DT: spidev listed directly in DT
[ 0.813790] ------------[ cut here ]------------
[ 0.822867] WARNING: CPU: 0 PID: 1 at drivers/spi/spidev.c:719
spidev_probe+0x1b4/0x1e4()
[ 0.839015] Modules linked in:
[ 0.845033] CPU: 0 PID: 1 Comm: swapper Not tainted 4.3.0 #1
[ 0.856215] Stack : 8032e34c 00000000 00000001 80370000 87828278
80372d03 80310578 00000001
803b3420 00000000 80370000 80380000 803b0000 80049e14
8037f4a4 80370000
00000003 00000000 80313dbc 8782db04 803b0000 80047df4
80000000 00000000
00000001 00000001 00000000 00000000 00000000 00000000
00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
...
[ 0.926378] Call Trace:
[ 0.931233] [<800144f4>] show_stack+0x50/0x84
[ 0.939819] [<80024b64>] warn_slowpath_common+0xa0/0xd0
[ 0.950137] [<80024c18>] warn_slowpath_null+0x18/0x24
[ 0.960109] [<801cd8a4>] spidev_probe+0x1b4/0x1e4
[ 0.969408] [<801ae418>] driver_probe_device+0x120/0x284
[ 0.979894] [<801ac9d0>] bus_for_each_drv+0x9c/0xac
[ 0.989526] [<801ae280>] __device_attach+0x90/0xe8
[ 0.998987] [<801ad894>] bus_probe_device+0x3c/0xb0
[ 1.008617] [<801ab998>] device_add+0x2e0/0x538
[ 1.017560] [<801cb4bc>] spi_add_device+0x118/0x16c
[ 1.027193] [<801ccdd8>] spi_register_master+0x65c/0x700
[ 1.037691] [<801afd70>] platform_drv_probe+0x28/0x64
[ 1.047661] [<801ae418>] driver_probe_device+0x120/0x284
[ 1.058156] [<801ae5f8>] __driver_attach+0x7c/0xb4
[ 1.067612] [<801ac910>] bus_for_each_dev+0x94/0xa4
[ 1.077244] [<801adb14>] bus_add_driver+0xec/0x204
[ 1.086706] [<801aecf8>] driver_register+0xb0/0x104
[ 1.096339] [<8000d540>] do_one_initcall+0x1ec/0x214
[ 1.106155] [<8038bd60>] kernel_init_freeable+0x164/0x224
[ 1.116815] [<80008c24>] kernel_init+0x14/0x118
[ 1.125748] [<80004478>] ret_from_kernel_thread+0x14/0x1c
[ 1.136403]
[ 1.139367] ---[ end trace 13ba5270db1f992b ]---
[ 1.152105] mtk_soc_eth 10100000.ethernet eth0: mediatek frame
engine at 0xb0100000, irq 5
[ 1.168938] mt7621_wdt 10000120.watchdog: Initialized
[ 1.180336] NET: Registered protocol family 10
[ 1.192632] NET: Registered protocol family 17
[ 1.201438] bridge: automatic filtering via arp/ip/ip6tables has
been deprecated. Update your scripts to load br_netfilter if you need
this.
[ 1.226285] 8021q: 802.1Q VLAN Support v1.8
[ 1.235144] bootconsole [early0] disabled
--
Baptiste
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list