|
本帖最后由 277303@qq.com 于 2017-6-4 02:13 编辑
本固件支持原版本K2P的UBOOT 和群里新发布的K2P的版本启动,因为分区定义不一样,所以只能在K2P上做测试之用。本固件没有任何 功能,只能证明可以启动而已
[ 2.210000] 0x000000000000-0x000000030000 : "Boot loader"
[ 2.220000] 0x000000030000-0x000000040000 : "Config"
[ 2.220000] 0x000000040000-0x000000050000 : "Factory"
[ 2.230000] 0x000000050000-0x0000000a0000 : "permanent_config"
[ 2.240000] 0x0000000a0000-0x000000ff0000 : "firmware"
[ 2.270000] 2 uimage-fw partitions found on MTD device firmware
[ 2.270000] 0x0000000a0000-0x000000211d88 : "kernel"
[ 2.280000] 0x000000211d88-0x000000ff0000 : "rootfs"
是按这个分区 方式搞的
因为不知道GPIO是多少 所以不能实现按reset重启
链接:http://pan.baidu.com/s/1nvJnbZz 密码:xq44
以下是LEDE的启动过程
root@LEDE:/# dmesg
[ 0.000000] Linux version 4.4.46 (lede@lede-virtual-machine) (gcc version 5.4.0 (LEDE GCC 5.4.0 r3293-f791fb4) ) #0 SMP Sat Feb 4 19:28:14 2017
[ 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 Phicomm K2P
[ 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] HighMem empty
[ 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 8045b000, 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] VPE topology {2} total 2
[ 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] PERCPU: Embedded 10 pages/cpu @8110c000 s8416 r8192 d24352 u40960
[ 0.000000] pcpu-alloc: s8416 r8192 d24352 u40960 alloc=10*4096
[ 0.000000] pcpu-alloc: [0] 0 [0] 1
[ 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=000050e0
[ 0.000000] Readback ErrCtl register=000050e0
[ 0.000000] Memory: 124720K/131072K available (3553K kernel code, 203K rwdata, 828K rodata, 204K init, 251K bss, 6352K reserved, 0K cma-reserved, 0K highmem)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[ 0.000000] NR_IRQS:256
[ 0.000000] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478abb4, max_idle_ns: 440795247997 ns
[ 0.000000] sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 21474836475000000ns
[ 0.010000] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
[ 0.070000] pid_max: default: 32768 minimum: 301
[ 0.070000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.080000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.090000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 0.090000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 0.090000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[ 0.090000] CPU1 revision is: 0001992f (MIPS 1004Kc)
[ 0.190000] Synchronize counters for CPU 1: done.
[ 0.190000] Brought up 2 CPUs
[ 0.200000] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.210000] pinctrl core: initialized pinctrl subsystem
[ 0.220000] NET: Registered protocol family 16
[ 0.230000] rt2880-pinmux pinctrl: invalid group "wdt rst" for function "gpio"
[ 0.240000] FPU Affinity set after 8840 emulations
[ 0.270000] pull PCIe RST: RALINK_RSTCTRL = 0
[ 0.570000] release PCIe RST: RALINK_RSTCTRL = 7000000
[ 0.580000] ***** Xtal 40MHz *****
[ 0.580000] release PCIe RST: RALINK_RSTCTRL = 7000000
[ 0.590000] Port 0 N_FTS = 1b102800
[ 0.590000] Port 1 N_FTS = 1b102800
[ 0.600000] Port 2 N_FTS = 1b102800
[ 1.750000] PCIE1 no card, disable it(RST&CLK)
[ 1.760000] PCIE2 no card, disable it(RST&CLK)
[ 1.760000] -> 21007f2
[ 1.770000] PCIE0 enabled
[ 1.770000] PCI host bridge /pcie@1e140000 ranges:
[ 1.780000] MEM 0x0000000060000000..0x000000006fffffff
[ 1.790000] IO 0x000000001e160000..0x000000001e16ffff
[ 1.800000] PCI coherence region base: 0x60000000, mask/settings: 0xf0000002
[ 1.840000] mt7621_gpio 1e000600.gpio: registering 32 gpios
[ 1.850000] mt7621_gpio 1e000600.gpio: registering 32 gpios
[ 1.860000] mt7621_gpio 1e000600.gpio: registering 32 gpios
[ 1.870000] i2c-mt7621 1e000900.i2c: clock 100KHz, re-start not support
[ 1.890000] PCI host bridge to bus 0000:00
[ 1.890000] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[ 1.910000] pci_bus 0000:00: root bus resource [io 0xffffffff]
[ 1.920000] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[ 1.930000] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 1.950000] pci 0000:00:00.0: [0e8d:0801] type 01 class 0x060400
[ 1.950000] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[ 1.950000] pci 0000:00:00.0: reg 0x14: [mem 0x00000000-0x0000ffff]
[ 1.950000] pci 0000:00:00.0: supports D1
[ 1.950000] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[ 1.950000] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[ 1.970000] pci 0000:01:00.0: [14c3:7615] type 00 class 0x000280
[ 1.970000] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit]
[ 1.970000] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[ 1.970000] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 01
[ 1.970000] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[ 1.980000] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[ 1.990000] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[ 2.010000] pci 0000:00:00.0: BAR 1: assigned [mem 0x60100000-0x6010ffff]
[ 2.020000] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff 64bit]
[ 2.040000] pci 0000:00:00.0: PCI bridge to [bus 01]
[ 2.050000] pci 0000:00:00.0: bridge window [mem 0x60000000-0x600fffff]
[ 2.060000] BAR0 at slot 0 = 0
[ 2.070000] bus=0x0, slot = 0x0
[ 2.070000] bus=0x1, slot = 0x0, irq=0x0
[ 2.080000] clocksource: Switched to clocksource GIC
[ 2.090000] NET: Registered protocol family 2
[ 2.100000] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 2.110000] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[ 2.120000] TCP: Hash tables configured (established 1024 bind 1024)
[ 2.140000] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 2.150000] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 2.160000] NET: Registered protocol family 1
[ 2.170000] PCI: CLS 80 bytes, default 32
[ 2.170000] futex hash table entries: 512 (order: 2, 16384 bytes)
[ 2.180000] Crashlog allocated RAM at address 0x3f00000
[ 2.200000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 2.220000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 2.240000] io scheduler noop registered
[ 2.250000] io scheduler deadline registered (default)
[ 2.260000] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[ 2.270000] console [ttyS0] disabled
[ 2.280000] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 33, base_baud = 3125000) is a 16550A
[ 2.300000] console [ttyS0] enabled
[ 2.310000] bootconsole [early0] disabled
[ 2.330000] MediaTek Nand driver init, version v2.1 Fix AHB virt2phys error
[ 2.340000] spi-mt7621 1e000b00.spi: sys_freq: 50000000
[ 2.350000] m25p80 spi32766.0: using chunked io (size=32)
[ 2.370000] m25p80 spi32766.0: mx25l12805d (16384 Kbytes)
[ 2.380000] 5 ofpart partitions found on MTD device spi32766.0
[ 2.390000] Creating 5 MTD partitions on "spi32766.0":
[ 2.400000] 0x000000000000-0x000000030000 : "Bootloader"
[ 2.410000] 0x000000030000-0x000000040000 : "Config"
[ 2.420000] 0x000000040000-0x000000050000 : "Factory"
[ 2.430000] 0x000000050000-0x0000000a0000 : "permanent_config"
[ 2.450000] 0x0000000a0000-0x000000ff0000 : "firmware"
[ 2.490000] 2 uimage-fw partitions found on MTD device firmware
[ 2.500000] 0x0000000a0000-0x000000211dbe : "kernel"
[ 2.520000] 0x000000211dbe-0x000000ff0000 : "rootfs"
[ 2.530000] mtd: device 6 (rootfs) set to be root filesystem
[ 2.540000] 1 squashfs-split partitions found on MTD device rootfs
[ 2.550000] 0x000000400000-0x000000ff0000 : "rootfs_data"
[ 2.560000] netif_napi_add() called with weight 128 on device eth%d
[ 2.590000] libphy: mdio: probed
[ 4.030000] mtk_soc_eth 1e100000.ethernet: loaded mt7530 driver
[ 4.040000] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 10
[ 4.060000] mt7621_wdt 1e000100.wdt: Initialized
[ 4.070000] NET: Registered protocol family 10
[ 4.080000] NET: Registered protocol family 17
[ 4.090000] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[ 4.110000] 8021q: 802.1Q VLAN Support v1.8
[ 4.130000] hctosys: unable to open rtc device (rtc0)
[ 4.140000] VFS: Mounted root (squashfs filesystem) readonly on device 31:6.
[ 4.160000] Freeing unused kernel memory: 204K (8047d000 - 804b0000)
[ 4.350000] random: nonblocking pool is initialized
[ 5.220000] init: Console is alive
[ 5.230000] init: - watchdog -
[ 5.800000] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 5.820000] mtk_soc_eth 1e100000.ethernet eth0: port 2 link up
[ 5.870000] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 5.890000] init: - preinit -
[ 8.370000] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
[ 8.400000] urandom-seed: Seed file not found (/etc/urandom.seed)
[ 8.530000] procd: - early -
[ 8.540000] procd: - watchdog -
[ 9.180000] procd: - ubus -
[ 9.240000] procd: - init -
[ 9.450000] kmodloader: loading kernel modules from /etc/modules.d/*
[ 9.470000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 9.480000] Loading modules backported from Linux version wt-2016-10-03-1-g6fcb1a6
[ 9.500000] Backport generated by backports.git backports-20160324-9-g0e38f5c
[ 9.550000] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 9.570000] nf_conntrack version 0.5.0 (1951 buckets, 7804 max)
[ 9.610000] xt_time: kernel timezone is -0000
[ 9.630000] PPP generic driver version 2.4.2
[ 9.640000] NET: Registered protocol family 24
[ 9.650000] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 13.520000] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
[ 13.550000] jffs2_build_filesystem(): unlocking the mtd device... done.
[ 13.560000] jffs2_build_filesystem(): erasing all blocks after the end marker...
[ 16.000000] device eth0.1 entered promiscuous mode
[ 16.010000] device eth0 entered promiscuous mode
[ 16.020000] br-lan: port 1(eth0.1) entered forwarding state
[ 16.040000] br-lan: port 1(eth0.1) entered forwarding state
[ 18.040000] br-lan: port 1(eth0.1) entered forwarding state
[ 71.020000] done.
[ 71.030000] jffs2: notice: (734) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
root@LEDE:/#
|
|