找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 3615|回复: 4

自己编译的fir300m,启动到preinit出错

[复制链接]
U-Boot 1.1.4 (Nov 24 2014 - 13:39:47)

Ralink APSoC (MT7620 E2 ver 2, eco 6)
DRAM:  32 MB
Flash: Macronix MX25L3235E (4 MB)
*** Warning - bad CRC, using default environment

Clocks: CPU:600MHz, Bus:120MHz
In:    serial
Out:   serial
Err:   serial
Net:   rt2880_eth_initialize...
VLAN: None
Fetching MAC Address from 0xbc040028
eth0: 34:bd:f9:7b:0d:74
eth0 up
eth0
Hit any key to stop autoboot:  0
## Booting image at 9c050000 ...
   Image Name:   MIPS OpenWrt Linux-3.10.49
   Created:      2014-12-25  18:16:03 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1029324 Bytes = 1005.2 kB
   Load Address: 80000000
   Entry Point:  80000000
   Verifying Checksum at 0x9c050040 ... OK
   Uncompressing Kernel Image ... OK

Starting kernel ...

[    0.000000] Linux version 3.10.49 (ga@ubuntu64) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r43737) ) #4 Fri Dec 26 02:15:26 CST 2014
[    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: Ralink MT7620N ver:2 eco:6
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU revision is: 00019650 (MIPS 24KEc)
[    0.000000] MIPS: machine is FIR300M
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 02000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x00000000-0x01ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000-0x01ffffff]
[    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: 8128
[    0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2
[    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=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 29228k/32768k available (2285k kernel code, 3540k reserved, 554k data, 164k init, 0k highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:256
[    0.000000] CPU Clock: 600MHz
[    0.000000] Calibrating delay loop... 398.13 BogoMIPS (lpj=1990656)
[    0.060000] pid_max: default: 32768 minimum: 301
[    0.070000] Mount-cache hash table entries: 512
[    0.080000] pinctrl core: initialized pinctrl subsystem
[    0.090000] NET: Registered protocol family 16
[    0.120000] bio: create slab <bio-0> at 0
[    0.130000] rt2880_gpio 10000600.gpio: registering 24 gpios
[    0.140000] rt2880_gpio 10000600.gpio: registering 24 irq handlers
[    0.150000] Switching to clocksource MIPS
[    0.160000] NET: Registered protocol family 2
[    0.170000] TCP established hash table entries: 512 (order: 0, 4096 bytes)
[    0.180000] TCP bind hash table entries: 512 (order: -1, 2048 bytes)
[    0.200000] TCP: Hash tables configured (established 512 bind 512)
[    0.210000] TCP: reno registered
[    0.210000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.230000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.240000] NET: Registered protocol family 1
[    0.250000] rt-timer 10000100.timer: maximum frequncy is 2441Hz
[    0.290000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.300000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.320000] msgmni has been set to 57
[    0.330000] io scheduler noop registered
[    0.330000] io scheduler deadline registered (default)
[    0.350000] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.360000] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 20) is a 16550A
[    0.380000] console [ttyS0] enabled, bootconsole disabled
[    0.380000] console [ttyS0] enabled, bootconsole disabled
[    0.400000] m25p80 spi32766.0: mx25l3205d (4096 Kbytes)
[    0.420000] 4 ofpart partitions found on MTD device spi32766.0
[    0.430000] Creating 4 MTD partitions on "spi32766.0":
[    0.440000] 0x000000000000-0x000000030000 : "u-boot"
[    0.450000] 0x000000030000-0x000000040000 : "u-boot-env"
[    0.460000] 0x000000040000-0x000000050000 : "factory"
[    0.480000] 0x000000050000-0x000000400000 : "firmware"
[    0.490000] 0x00000014b50c-0x000000400000 : "rootfs"
[    0.500000] mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[    0.530000] mtd: device 4 (rootfs) set to be root filesystem
[    0.540000] mtd: partition "rootfs_data" created automatically, ofs=0x370000, len=0x90000
[    0.550000] 0x000000370000-0x000000400000 : "rootfs_data"
[    0.570000] ralink_soc_eth 10100000.ethernet: loaded mt7620 driver
[    0.580000] ralink_soc_eth 10100000.ethernet eth0: ralink at 0xb0100000, irq 5
[    0.600000] rt3xxx-usbphy usbphy.3: loaded
[    0.610000] rt2880_wdt 10000120.watchdog: Initialized
[    0.620000] TCP: cubic registered
[    0.630000] NET: Registered protocol family 17
[    0.640000] 8021q: 802.1Q VLAN Support v1.8
[    0.660000] VFS: Mounted root (squashfs filesystem) readonly on device 31:4.
[    0.670000] Freeing unused kernel memory: 164K (802c7000 - 802f0000)

procd: Console is alive
procd: - watchdog -
procd: - preinit -
[    4.350000] 8021q: adding VLAN 0 to HW filter on device eth0
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level

/etc/preinit: line 1: mount_root: not found
procd: - early -
procd: - watchdog -
procd: - ubus -
procd: - init -
Please press Enter to activate this console.
[    8.800000] NET: Registered protocol family 10
[    8.820000] l2tp_core: L2TP core driver, V2.0
[    8.830000] l2tp_netlink: L2TP netlink interface
[    8.850000] l2tp_eth: L2TP ethernet pseudowire support (L2TPv3)
[    8.860000] l2tp_ip: L2TP IP encapsulation support (L2TPv3)
[    8.870000] gre: GRE over IPv4 demultiplexor driver
[    8.890000] ip_gre: GRE over IPv4 tunneling driver
[    8.910000] Loading modules backported from Linux version master-2014-05-22-0-gf2032ea
[    8.930000] Backport generated by backports.git backports-20140320-37-g5c33da0
[    8.990000] nf_conntrack version 0.5.0 (459 buckets, 1836 max)
[    9.090000] xt_time: kernel timezone is -0000
[    9.150000] cfg80211: Calling CRDA to update world regulatory domain
[    9.180000] ip_tables: (C) 2000-2006 Netfilter Core Team
[    9.190000] cfg80211: World regulatory domain updated:
[    9.200000] cfg80211:  DFS Master region: unset
[    9.210000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[    9.230000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[    9.250000] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[    9.260000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
[    9.280000] cfg80211:   (5170000 KHz - 5250000 KHz @ 160000 KHz), (N/A, 2000 mBm), (N/A)
[    9.300000] cfg80211:   (5250000 KHz - 5330000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[    9.310000] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[    9.330000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[    9.340000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
[    9.430000] PPP generic driver version 2.4.2
[    9.440000] PPP MPPE Compression module registered
[    9.450000] NET: Registered protocol family 24
[    9.460000] PPTP driver version 0.8.5
[    9.490000] l2tp_ppp: PPPoL2TP kernel driver, V2.0
[    9.520000] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 5390, rev 0500 detected
[    9.540000] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 7620 detected



BusyBox v1.22.1 (2014-12-23 20:36:22 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
|       |.-----.-----.-----.|  |  |  |.----.|  |_
|   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
|_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
-----------------------------------------------------
BARRIER BREAKER (Barrier Breaker, r43737)
-----------------------------------------------------
  * 1/2 oz Galliano         Pour all ingredients into
  * 4 oz cold Coffee        an irish coffee mug filled
  * 1 1/2 oz Dark Rum       with crushed ice. Stir.
  * 2 tsp. Creme de Cacao
-----------------------------------------------------
root@(none):/# procd: - init complete -

启动完了
root@OpenWrt:/# df
Filesystem           1K-blocks      Used Available Use% Mounted on
rootfs                    2304      2304         0 100% /
/dev/root                 2304      2304         0 100% /
tmpfs                    14696        48     14648   0% /tmp
tmpfs                      512         0       512   0% /dev

高手帮忙指点一下,谢谢



在我看来启动的还挺正常的,你既然觉得不正常,那就去检查嘛
/etc/preinit: line 1: mount_root: not found
从这句话来看,是mount_root这个命令没找到

另外啊,这么简单连我都能定位的毛病都不能自行解决,趁早就别编译了,这活儿不适合你
去用官方的SDK直接生成包吧
回复

使用道具 举报

 楼主| | 显示全部楼层
atshot 发表于 2015-1-6 13:27
在我看来启动的还挺正常的,你既然觉得不正常,那就去检查嘛
/etc/preinit: line 1: mount_root: not found ...

兄台,官方没有支持这款机器。而且这行错误当然我也看到了。问题是为什么会preinit时候mount_root出错。
回复

使用道具 举报

waterh 发表于 2015-1-6 13:32
兄台,官方没有支持这款机器。而且这行错误当然我也看到了。问题是为什么会preinit时候mount_root出错。

没支持可以自己写dts啊
出错的原因是命令没找到呀,为什么没找到因为你给的信息太少不知道
回复

使用道具 举报

 楼主| 来自手机 | 显示全部楼层
atshot 发表于 2015-1-6 16:23
没支持可以自己写dts啊
出错的原因是命令没找到呀,为什么没找到因为你给的信息太少不知道

你需要什么信息可以知道
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

欢迎大家光临恩山无线论坛上一条 /1 下一条

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-5-22 18:28

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表