LINUX.ORG.RU

Ubiquiti mFi mPort - Портирование OpenWRT

 ,


1

1

Ребят помогите портировать OpenWRT на Ubiquiti mFi mPort... инфо о железе:

MF.v2.1.11# cat /proc/cpuinfo
system type             : Atheros AR9330 (Hornet)
processor               : 0
cpu model               : MIPS 24Kc V7.4
BogoMIPS                : 257.53
wait instruction        : yes
microsecond timers      : yes
tlb_entries             : 16
extra interrupt vector  : yes
hardware watchpoint     : yes, count: 4, address/irw mask: [0x0000, 0x0810, 0x0120, 0x0ff8]
ASEs implemented        : mips16
shadow register sets    : 1
core                    : 0
VCED exceptions         : not available
VCEI exceptions         : not available
MF.v2.1.11# cat /proc/meminfo
MemTotal:          29564 kB

MF.v2.1.11# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00040000 00010000 "u-boot"
mtd1: 00010000 00010000 "u-boot-env"
mtd2: 00100000 00010000 "kernel"
mtd3: 00660000 00010000 "rootfs"
mtd4: 00040000 00010000 "cfg"
mtd5: 00010000 00010000 "EEPROM"

dmesg Boot log Родная прошивка основана на OpenWRT, но после портирования стандартного OpenWRT у меня выбивает ошибку:

[    0.298696] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[    0.304806] Please append a correct "root=" boot option; here are the available partitions:
[    0.313073] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    0.324470] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
Полный Boot log портированной OpenWRT


[ 0.000000] MIPS: no machine found for id 'UBNT-MF', supported machines:

Для начала смотри в http://git.openwrt.org/?p=openwrt.git;a=blob;f=target/linux/ar71xx/files/arch...

тебе надо для начала обьявить борду в ядре. Дальше уже танцуешь по ситуации

Dark_SavanT ★★★★★
()
Последнее исправление: Dark_SavanT (всего исправлений: 1)
Ответ на: комментарий от Dark_SavanT
[    0.000000] Linux version 4.1.2 (root@deb) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r46434) ) #2 Thu Aug 6 22:20:28 MSK 2015
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)
[    0.000000] SoC: Atheros AR9330 rev 1
[    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 0x0000000000000000-0x0000000001ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000001ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000001ffffff]
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line:  board=UBNT-MF mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,7552k(firmware),256k(cfg)ro,64k(EEPROM)ro console=ttyATH0,115200 rootfstype=squashfs,jffs2 noinitrd
[    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: 28392K/32768K available (2564K kernel code, 127K rwdata, 544K rodata, 212K init, 188K bss, 4376K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:83
[    0.000000] Clocks: CPU:387.500MHz, DDR:387.500MHz, AHB:193.750MHz, Ref:25.000MHz
[    0.000000] clocksource MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9864570049 ns
[    0.000014] sched_clock: 32 bits at 193MHz, resolution 5ns, wraps every 11083786237ns
[    0.007523] Calibrating delay loop... 258.04 BogoMIPS (lpj=1290240)
[    0.078761] pid_max: default: 32768 minimum: 301
[    0.083351] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.089514] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.100248] clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.109230] NET: Registered protocol family 16
[    0.114429] MIPS: machine is Ubiquiti mFi mPort
[    0.577179] Switched to clocksource MIPS
[    0.581389] NET: Registered protocol family 2
[    0.585650] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.591007] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.597026] TCP: Hash tables configured (established 1024 bind 1024)
[    0.603265] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.608723] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.615050] NET: Registered protocol family 1
[    0.620443] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.649887] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.654097] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.666380] io scheduler noop registered
[    0.668848] io scheduler deadline registered (default)
[    0.673965] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.680480] ar933x-uart: ttyATH0 at MMIO 0x18020000 (irq = 11, base_baud = 1562500) is a AR933X UART
[    0.688983] console [ttyATH0] enabled
[    0.688983] console [ttyATH0] enabled
[    0.695739] bootconsole [early0] disabled
[    0.695739] bootconsole [early0] disabled
[    0.707337] m25p80 spi0.0: found s25fl064k, expected m25p80
[    0.711474] m25p80 spi0.0: s25fl064k (8192 Kbytes)
[    0.716273] 5 cmdlinepart partitions found on MTD device spi0.0
[    0.722162] Creating 5 MTD partitions on "spi0.0":
[    0.726925] 0x000000000000-0x000000040000 : "u-boot"
[    0.733207] 0x000000040000-0x000000050000 : "u-boot-env"
[    0.738441] 0x000000050000-0x0000007b0000 : "firmware"
[    0.757090] 2 uimage-fw partitions found on MTD device firmware
[    0.761607] 0x000000050000-0x000000170000 : "kernel"
[    0.767836] 0x000000170000-0x0000007b0000 : "rootfs"
[    0.772560] mtd: device 4 (rootfs) set to be root filesystem
[    0.777149] 1 squashfs-split partitions found on MTD device rootfs
[    0.783333] 0x000000400000-0x0000007b0000 : "rootfs_data"
[    0.789874] 0x0000007b0000-0x0000007f0000 : "cfg"
[    0.794464] 0x0000007f0000-0x000000800000 : "EEPROM"
[    0.819538] libphy: ag71xx_mdio: probed
[    1.408683] ag71xx-mdio.1: Found an AR7240/AR9330 built-in switch
[    1.440773] eth0: Atheros AG71xx at 0xba000000, irq 5, mode:GMII

теперь непойму почему перезагружается...

a25k03
() автор топика
25 декабря 2016 г.
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.