帖子由 x140_g » 周五 6月 30, 2017 7:51 pm
我把原厂的变成固件刷进去 一个新的flash里面 插上去用了好几次都没有问题。 然后把我最新配置的分区的uboot 刷进去 还是第一能启动 能用 第二次有不行了。。。我的分区配置是根据原系统的ttl信息配的 如下 请过目
0x000000000000-0x00000001d800 : "factory_boot"
0x00000001d800-0x00000001e000 : "factory_info"
0x00000001e000-0x000000020000 : "art"
0x000000020000-0x000000030000 : "config"
0x000000030000-0x000000040000 : "normal_boot"
0x000000040000-0x00000013fe54 : "kernel"
0x00000013fe54-0x000000680000 : "rootfs"
0x000000680000-0x000000800000 : "rootfs_data"
0x000000040000-0x000000800000 : "firmware"
bootargs="console=ttyS0,115200 mtdparts=spi0.0:112k(uboot),8k(SBI),8k(CAL),64k(config),64k(config2),7936k(firmware)"
下面是无法启动的ttl 好像也是说找不到文件。
[ 0.464000] console [ttyS0] enabled
[ 0.464000] console [ttyS0] enabled
[ 0.472000] bootconsole [early0] disabled
[ 0.472000] bootconsole [early0] disabled
[ 0.492000] m25p80 spi0.0: found s25fl064k, expected m25p80
[ 0.496000] m25p80 spi0.0: s25fl064k (8192 Kbytes)
[ 0.500000] 6 cmdlinepart partitions found on MTD device spi0.0
[ 0.508000] Creating 6 MTD partitions on "spi0.0":
[ 0.512000] 0x000000000000-0x00000001c000 : "uboot"
[ 0.520000] 0x00000001c000-0x00000001e000 : "SBI"
[ 0.524000] 0x00000001e000-0x000000020000 : "CAL"
[ 0.528000] 0x000000020000-0x000000030000 : "config"
[ 0.536000] 0x000000030000-0x000000040000 : "config2"
[ 0.540000] 0x000000040000-0x000000800000 : "firmware"
[ 0.548000] Split rootfs Part: off:0x17d2e8 len:0x682d18
[ 0.552000] 0x00000017d2e8-0x000000800000 : "rootfs"
[ 0.560000] 1 squashfs-split partitions found on MTD device rootfs
[ 0.564000] 0x000000388000-0x000000800000 : "rootfs_data"
[ 0.572000] mtd: device 6 (rootfs) set to be root filesystem
[ 0.588000] switch0: Atheros AR8337 rev. 2 switch registered on ag71xx-mdio.0
[ 0.668000] libphy: ag71xx_mdio: probed. phys=0x01ff001f
[ 1.244000] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:SGMII
[ 1.248000] PPP generic driver version 2.4.2
[ 1.256000] PPP MPPE Compression module registered
[ 1.260000] NET: Registered protocol family 24
[ 1.264000] PPTP driver version 0.8.5
[ 1.268000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.276000] ehci-pci: EHCI PCI platform driver
[ 1.280000] ehci-platform: EHCI generic platform driver
[ 1.284000] ehci-platform ehci-platform.0: EHCI Host Controller
[ 1.292000] ehci-platform ehci-platform.0: new USB bus registered, assigned bus number 1
[ 1.300000] ehci-platform ehci-platform.0: irq 48, io mem 0x1b000000
[ 1.320000] ehci-platform ehci-platform.0: USB 2.0 started, EHCI 1.00
[ 1.324000] hub 1-0:1.0: USB hub found
[ 1.328000] hub 1-0:1.0: 1 port detected
[ 1.332000] ehci-platform ehci-platform.1: EHCI Host Controller
[ 1.340000] ehci-platform ehci-platform.1: new USB bus registered, assigned bus number 2
[ 1.352000] ehci-platform ehci-platform.1: irq 49, io mem 0x1b400000
[ 1.368000] ehci-platform ehci-platform.1: USB 2.0 started, EHCI 1.00
[ 1.372000] hub 2-0:1.0: USB hub found
[ 1.376000] hub 2-0:1.0: 1 port detected
[ 1.384000] usbcore: registered new interface driver usblp
[ 1.388000] usbcore: registered new interface driver usb-storage
[ 1.396000] input: gpio-keys-polled as /devices/platform/gpio-keys-polled/input/input0
[ 1.404000] Netfilter messages via NETLINK v0.30.
[ 1.408000] nf_conntrack version 0.5.0 (944 buckets, 3776 max)
[ 1.416000] xt_time: kernel timezone is -0000
[ 1.420000] gre: GRE over IPv4 demultiplexor driver
[ 1.424000] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 1.432000] TCP: cubic registered
[ 1.436000] NET: Registered protocol family 10
[ 1.440000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 1.448000] NET: Registered protocol family 17
[ 1.452000] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[ 1.464000] Ebtables v2.0 registered
[ 1.468000] 8021q: 802.1Q VLAN Support v1.8
[ 1.480000] VFS: Mounted root (squashfs filesystem) readonly on device 31:6.
[ 1.488000] Freeing unused kernel memory: 208K (803fc000 - 80430000)
init started: BusyBox v1.22.1 (2017-06-21 14:37:16 CST)
starting pid 338, tty '': 'sh /etc/init.d/rcS S start'
mount: mounting usbfs on /proc/bus/usb failed: No such file or directory
mount: mounting nodev on /sys/kernel/debug failed: No such file or directory
Fri Jan 1 00:00:00 UTC 2010
[ 3.324000] BUG: Bad rss-counter state mm:83a744e0 idx:0 val:-1
[ 3.328000] BUG: Bad rss-counter state mm:83a744e0 idx:1 val:1
Segmentation fault
[ 3.340000] BUG: Bad rss-counter state mm:83a74b60 idx:0 val:1
[ 3.344000] BUG: Bad rss-counter state mm:83a74b60 idx:1 val:-1
nl80211 not found.
[ 3.708000] ------------[ cut here ]------------
[ 3.708000] WARNING: CPU: 0 PID: 376 at /home/yangbo/workspace/swrt/linux/kernels/linux-3.18.47/fs/buffer.c:634 0x8011fe3c()
[ 3.708000] Modules linked in:
[ 3.708000] CPU: 0 PID: 376 Comm: S32swrt Not tainted 3.18.47 #1
[ 3.708000] Stack : 00000006 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
...
[ 3.708000] Raw Call Trace:[<800731f8>] 0x800731f8
[ 3.708000] [<800731f8>] 0x800731f8
[ 3.708000] [<8008294c>] 0x8008294c
[ 3.708000] [<8011fe3c>] 0x8011fe3c
[ 3.708000] [<80082a04>] 0x80082a04
[ 3.708000] [<8006a880>] 0x8006a880
[ 3.708000] [<8011fe3c>] 0x8011fe3c
[ 3.708000] [<8006a8c8>] 0x8006a8c8
[ 3.708000] [<8011ff80>] 0x8011ff80
[ 3.708000] [<8006a8c8>] 0x8006a8c8
[ 3.708000] [<800e258c>] 0x800e258c
[ 3.708000] [<8006a8c8>] 0x8006a8c8
[ 3.708000] [<800e2f70>] 0x800e2f70
[ 3.708000] [<800d584c>] 0x800d584c
[ 3.708000] [<800e7ed8>] 0x800e7ed8
[ 3.708000] [<801a4db8>] 0x801a4db8
[ 3.708000] [<8006a880>] 0x8006a880
[ 3.708000] [<80080538>] 0x80080538
[ 3.708000] [<8006a8c8>] 0x8006a8c8
[ 3.708000] [<800836a4>] 0x800836a4
[ 3.708000] [<801e4594>] 0x801e4594
[ 3.708000] [<8008acfc>] 0x8008acfc
[ 3.708000] [<800848c8>] 0x800848c8
[ 3.708000] [<8008d40c>] 0x8008d40c
[ 3.708000] [<80071a3c>] 0x80071a3c
[ 3.708000] [<8009c618>] 0x8009c618
[ 3.708000] [<800a1ff4>] 0x800a1ff4
[ 3.708000] [<8006a8e8>] 0x8006a8e8
[ 3.708000] [<8008c3bc>] 0x8008c3bc
[ 3.708000] [<80084bd8>] 0x80084bd8
[ 3.708000] [<800751f8>] 0x800751f8
[ 3.708000] [<8007273c>] 0x8007273c
[ 3.708000] [<800609ac>] 0x800609ac
[ 3.708000]
[ 3.708000] Call Trace:
[ 3.708000] [<800731f8>] 0x800731f8
[ 3.708000]
[ 3.708000] ---[ end trace b62fc8881a9f81dd ]---
[ 3.908000] BUG: Bad page map in process S32swrt pte:00fe03df pmd:83b19000
[ 3.912000] page:8103f800 count:2 mapcount:-1 mapping:834043cc index:0x11c
[ 3.920000] flags: 0xa74(referenced|dirty|lru|active|arch_1|private)
[ 3.928000] page dumped because: bad pte
[ 3.932000] addr:00c2f000 vm_flags:00100077 anon_vma:83b130a8 mapping: (null) index:c2f
[ 3.940000] CPU: 0 PID: 376 Comm: S32swrt Tainted: G W 3.18.47 #1
[ 3.948000] Stack : 00000006 00000004 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
...
[ 3.984000] Raw Call Trace:[<800731f8>] 0x800731f8
[ 3.988000] [<800731f8>] 0x800731f8
[ 3.992000] [<800e1240>] 0x800e1240
[ 3.996000] [<800e25f4>] 0x800e25f4
[ 4.000000] [<8006a8c8>] 0x8006a8c8
[ 4.004000] [<800e2f70>] 0x800e2f70
[ 4.008000] [<800d584c>] 0x800d584c
[ 4.012000] [<800e7ed8>] 0x800e7ed8
[ 4.016000] [<801a4db8>] 0x801a4db8
[ 4.016000] [<8006a880>] 0x8006a880
[ 4.020000] [<80080538>] 0x80080538
[ 4.024000] [<8006a8c8>] 0x8006a8c8
[ 4.028000] [<800836a4>] 0x800836a4
[ 4.032000] [<801e4594>] 0x801e4594
[ 4.036000] [<8008acfc>] 0x8008acfc
[ 4.040000] [<800848c8>] 0x800848c8
[ 4.044000] [<8008d40c>] 0x8008d40c
[ 4.048000] [<80071a3c>] 0x80071a3c
[ 4.052000] [<8009c618>] 0x8009c618
[ 4.056000] [<800a1ff4>] 0x800a1ff4
[ 4.056000] [<8006a8e8>] 0x8006a8e8
[ 4.060000] [<8008c3bc>] 0x8008c3bc
[ 4.064000] [<80084bd8>] 0x80084bd8
[ 4.068000] [<800751f8>] 0x800751f8
[ 4.072000] [<8007273c>] 0x8007273c
[ 4.076000] [<800609ac>] 0x800609ac
[ 4.080000]
[ 4.080000] Call Trace:
[ 4.084000] [<800731f8>] 0x800731f8
[ 4.088000]
[ 4.088000] Disabling lock debugging due to kernel taint
[ 4.096000] BUG: Bad rss-counter state mm:83a749c0 idx:0 val:-1
[ 4.100000] BUG: Bad rss-counter state mm:83a749c0 idx:1 val:1
Bus error
cp: can't stat '/tmp/spool/cron/crontabs/root': No such file or directory
[ 4.164000] random: crond urandom read with 15 bits of entropy available
Jan 1 00:00:02 crond[425]: crond: crond (busybox 1.22.1) started, log level 8. random: 3273616979.
Please press Enter to activate this console. [ 33.044000] random: nonblocking pool is initialized