本帖最后由 sunsili 于 2023-7-19 11:28 编辑
运行openwrt(chaos_calmer r49396) MT7628 开发板出错误
编译环境:wsl: ubuntu20.04 openwrt版本: openwrt(chaos_calmer 15.05 r49396) linux内核:Linux version 3.18.29 开发板:基本于Mediatek MT7628AN evaluation board改板自制
system type : MediaTek MT7628AN ver:1 eco:2
machine : Mediatek MT7628AN evaluation board
processor : 0
cpu model : MIPS 24KEc V5.5
BogoMIPS : 380.92
wait instruction : yes
microsecond timers : yes
tlb_entries : 32
extra interrupt vector : yes
hardware watchpoint : yes, count: 4, address/irw mask: [0x0ffc, 0x0ffc, 0x0ffb, 0x0ffb]
isa : mips1 mips2 mips32r1 mips32r2
ASEs implemented : mips16 dsp
shadow register sets : 1
kscratch registers : 0
package : 0
core : 0
VCED exceptions : not available
VCEI exceptions : not available
现象:
启动时出错
Log: ## Transferring control to Linux (at address 80000000) ...
## Giving linux memsize in MB, 128
Starting kernel ...
[ 0.000000] Linux version 3.18.29 (fan@FAN-THINK-PC) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r49396) ) #1 Fri Jul 7 21:14:56 CST 2023
[ 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 MT7628AN ver:1 eco:2
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 00019655 (MIPS 24KEc)
[ 0.000000] MIPS: machine is Mediatek MT7628AN evaluation board
[ 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 0x00000000-0x07ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x00000000-0x07ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x00000000-0x07ffffff]
[ 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=ttyS0,115200 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=000198f0
[ 0.000000] Readback ErrCtl register=000198f0
[ 0.000000] Memory: 126336K/131072K available (2513K kernel code, 126K rwdata, 516K rodata, 164K init, 186K bss, 4736K 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: 575MHz
[ 0.000000] clocksource_of_init: no matching clocksources found
[ 0.000000] Calibrating delay loop... 380.92 BogoMIPS (lpj=1904640)
[ 0.060000] pid_max: default: 32768 minimum: 301
[ 0.060000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.070000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.080000] pinctrl core: initialized pinctrl subsystem
[ 0.080000] NET: Registered protocol family 16
[ 0.100000] mt7621_gpio 10000600.gpio: registering 32 gpios
[ 0.110000] mt7621_gpio 10000600.gpio: registering 32 gpios
[ 0.110000] mt7621_gpio 10000600.gpio: registering 32 gpios
[ 0.120000] Switched to clocksource MIPS
[ 0.120000] NET: Registered protocol family 2
[ 0.130000] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.130000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.140000] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.150000] TCP: reno registered
[ 0.150000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.160000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.160000] NET: Registered protocol family 1
[ 0.170000] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.180000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.190000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.200000] msgmni has been set to 246
[ 0.210000] io scheduler noop registered
[ 0.220000] io scheduler deadline registered (default)
[ 0.220000] drivers/phy/phy-ralink-usb.c:ralink_usb_phy_probe[336]
[ 0.230000] drivers/phy/phy-ralink-usb.c:ralink_usb_phy_probe[350]
[ 0.240000] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[ 0.240000] console [ttyS0] disabled
[ 0.250000] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 28, base_baud = 2500000) is a 16550A
[ 0.260000] console [ttyS0] enabled
[ 0.260000] console [ttyS0] enabled
[ 0.260000] bootconsole [early0] disabled
[ 0.260000] bootconsole [early0] disabled
[ 0.270000] 10000d00.uart1: ttyS1 at MMIO 0x10000d00 (irq = 29, base_baud = 2500000) is a 16550A
[ 0.280000] 10000e00.uart2: ttyS2 at MMIO 0x10000e00 (irq = 30, base_baud = 2500000) is a 16550A
[ 0.290000] spi-mt7621 10000b00.spi: sys_freq: 191666666
[ 0.300000] m25p80 spi32766.0: found en25qh128, expected en25q64
[ 0.310000] m25p80 spi32766.0: en25qh128 (16384 Kbytes)
[ 0.310000] m25p80 spi32766.0: using chunked io
[ 0.320000] 4 ofpart partitions found on MTD device spi32766.0
[ 0.320000] Creating 4 MTD partitions on "spi32766.0":
[ 0.330000] 0x000000000000-0x000000030000 : "u-boot"
[ 0.340000] 0x000000030000-0x000000040000 : "u-boot-env"
[ 0.340000] 0x000000040000-0x000000050000 : "factory"
[ 0.350000] 0x000000050000-0x000001000000 : "firmware"
[ 0.410000] 2 uimage-fw partitions found on MTD device firmware
[ 0.420000] 0x000000050000-0x00000016601d : "kernel"
[ 0.430000] 0x00000016601d-0x000001000000 : "rootfs"
[ 0.430000] mtd: device 5 (rootfs) set to be root filesystem
[ 0.440000] 1 squashfs-split partitions found on MTD device rootfs
[ 0.450000] 0x000000560000-0x000001000000 : "rootfs_data"
[ 0.460000] ralink_soc_eth 10100000.ethernet eth0: ralink at 0xb0100000, irq 5
[ 0.470000] mt7621_wdt 10000120.watchdog: Initialized
[ 0.480000] TCP: cubic registered
[ 0.480000] NET: Registered protocol family 17
[ 0.480000] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[ 0.500000] 8021q: 802.1Q VLAN Support v1.8
[ 0.510000] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[ 0.520000] Freeing unused kernel memory: 164K (80317000 - 80340000)
/etc/preinit: exec: line 5: /sbin/init: not found
[ 1.690000] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000200
[ 1.690000]
[ 1.690000] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000200
[ 1.690000]
[ 82.530000] random: nonblocking pool is initialized
........
按log初步分析判断是调用/etc/preinit找到不系统初始化文件 /sbin/init
具体原因还没分析出来。
|