Date: Wed, 23 Dec 2015 20:09:16 -0800 From: Adrian Chadd <adrian@freebsd.org> To: "freebsd-mips@freebsd.org" <freebsd-mips@freebsd.org>, Stanislav Galabov <sgalabov@gmail.com> Subject: mt7620 works! Message-ID: <CAJ-VmomKKRgBVPAHMQh4fJisznWi3FgEEDjkg0pMmF2sHJvd1w@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Hi, The basic mt7620 bits are up! This is netbooting a tplink archer-c2 router. Time to do some more code review and start getting it into the tree! Thanks Stanslav/Ray! -a U-Boot 1.1.3 (Jun 23 2014 - 15:15:14) Board: Ralink APSoC DRAM: 64 MB relocate_code Pointer at: 83fb0000 enable ephy clock...done. rf reg 29 = 5 SSC disabled. ------------------ Archer C2 v1.0.0 ------------------ spi_wait_nsec: 29 spi device id: ef 40 17 0 0 (40170000) find flash: W25Q64BV ============================================ Ralink UBoot Version: 4.1.2.0 -------------------------------------------- ASIC 7620_MP (Port5<->GigaSW) DRAM component: 512 Mbits DDR, width 16 DRAM bus: 16 bit Total memory: 64 MBytes Flash component: SPI Flash Date:Jun 23 2014 Time:15:15:14 ============================================ icache: sets:512, ways:4, linesz:32 ,total:65536 dcache: sets:256, ways:4, linesz:32 ,total:32768 ##### The CPU freq = 580 MHZ #### estimate memory size =64 Mbytes 0 TODO, Read MAC Address from Flash switch BootType: rt_rtl8367_init(1363):Begin RTL8367RB is ready now! rt_rtl8367_init(1404):Call Func rt_rtl8367_enableRgmii() rt_rtl8367_enableRgmii(931):Begin 4: System Enter Boot Command Line Interface. U-Boot 1.1.3 (Jun 23 2014 - 15:15:14) MT7620 # pltpl<INTERRUPT> MT7620 # tftpboot 0x80050000 kernel.MT7620 netboot_common, argc= 3 NetTxPacket = 0x83FE57C0 KSEG1ADDR(NetTxPacket) = 0xA3FE57C0 NetLoop,call eth_halt ! NetLoop,call eth_init ! Trying Eth0 (10/100-M) Waitting for RX_DMA_BUSY status Start... done ETH_STATE_ACTIVE!! TFTP from server 192.168.0.100; our IP address is 192.168.0.1 Filename 'kernel.MT7620'. TIMEOUT_COUNT=10,Load address: 0x80050000 Loading: Got ARP REPLY, set server/gtwy eth addr (00:21:cc:6a:7d:16) Got it ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ############# done Bytes transferred = 5722431 (57513f hex) NetBootFileXferSize= 0057513f MT7620 # go 0x80050120 ## Starting application at 0x80050120 ... U-Boot args (from 0 args): None Environment: (0x80000010) entry: mips_init() Cache info: picache_stride = 4096 picache_loopcount = 16 pdcache_stride = 4096 pdcache_loopcount = 8 cpu0: MIPS Technologies processor v80.150 MMU: Standard TLB, 32 entries (4K 16K 64K 256K 1M 16M 64M 256M pg sizes) L1 i-cache: 4 ways of 512 sets, 32 bytes per line L1 d-cache: 4 ways of 256 sets, 32 bytes per line L2 cache: disabled Config1=0xbee3519e<PerfCount,WatchRegs,MIPS16,EJTAG> Config2=0x80000000 Config3=0x2420 Physical memory chunk(s): 0x4f8000 - 0x1ffffff, 28344320 bytes (6920 pages) Maxmem is 0x2000000 KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2015 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 11.0-CURRENT #3 90c00a6(local/adrian_mt7620)-dirty: Wed Dec 23 20:04:04 PST 2015 adrian@victoria:/usr/home/adrian/git/github/erikarn/obj/mipsel_ap/mips.mipsel/usr/home/adrian/git/github/erikarn/freebsd/sys/MT7620 mips gcc version 4.2.1 20070831 patched [FreeBSD] Preloaded elf kernel "kernel" at 0x804f23a0. real memory = 33554432 (32768K bytes) Physical memory chunk(s): 0x0058c000 - 0x01f46fff, 26980352 bytes (6587 pages) avail memory = 26566656 (25MB) ULE: setup cpu 0 random: entropy device external interface nfslock: pseudo-device null: <full device, null device, zero device> mem: <memory> nexus0: <MIPS32 root nexus> clock0: <Generic MIPS32 ticker> on nexus0 Timecounter "MIPS32" frequency 290000000 Hz quality 800 Event timer "MIPS32" frequency 290000000 Hz quality 800 random: harvesting attach, 8 bytes (4 bits) from clock0 obio0 at mem 0x10000000-0x1fffffff on nexus0 rt305x_sysctl0: <RT305X System Control driver> at mem 0x10000000-0x100000ff irq 0 on obio0 Chip ID: "MT7620 " SYSCTL_SYSCFG=0x122122 GE0 mode 0 Big Endian Boot from 2 Bootstrap test code 33 SRAM_CS mode 0 8mA SDRAM_CLK driving SYSCTL_CLKCFG0=0x40200000 SDRAM_CLK_SKEW 1ns SYSCTL_CLKCFG1=0x75afffc0 Pbus clock is 1/2 of System clock USB OTG clock is enabled I2S clock is enabled I2S clock is external I2S clock divider 63 PCM clock is enabled PCM clock is external PCM clock divider 0 SYSCTL_GPIOMODE=0x1ab11d random: harvesting attach, 8 bytes (4 bits) from rt305x_sysctl0 rt305x_ic0: <RT305X Interrupt Controller driver> at mem 0x10000200-0x100002ff on obio0 random: harvesting attach, 8 bytes (4 bits) from rt305x_ic0 uart0: <rt305x_uart> at mem 0x10000500-0x100005ff irq 5 on obio0 uart0: fast interrupt uart0: PPS capture mode 2 (DCD) random: harvesting attach, 8 bytes (4 bits) from uart0 spi0: <RT305X SPI> at mem 0x10000b00-0x10000bff on obio0 spibus0: <spibus bus> on spi0 mx25l0: <M25Pxx Flash Family> at cs 0 on spibus0 mx25l0: w25q64, sector 65536 bytes, 128 sectors random: harvesting attach, 8 bytes (4 bits) from mx25l0 random: harvesting attach, 8 bytes (4 bits) from spibus0 random: harvesting attach, 8 bytes (4 bits) from spi0 uart1: <rt305x_uart> at mem 0x10000c00-0x10000cff irq 12 on obio0 uart1: console (115200,n,8,1) uart1: fast interrupt uart1: PPS capture mode 2 (DCD) random: harvesting attach, 8 bytes (4 bits) from uart1 ehci0: <Ralink integrated USB 2.0 controller> at mem 0x101c0000-0x101c0fff irq 18 on obio0 usbus0: EHCI version 1.0 usbus0 on ehci0 ehci0: usbpf: Attached random: harvesting attach, 8 bytes (4 bits) from usbus0 random: harvesting attach, 8 bytes (4 bits) from ehci0 random: harvesting attach, 8 bytes (4 bits) from obio0 pcib0 at mem 0x10140000-0x1016ffff on nexus0 PCI 1:0:0: reg 10: smask=fff00000: addr=20000000 PCI 1:0:1: reg 10: smask=fff00000: addr=20100000 pci0: <PCI bus> on pcib0 pci0: domain=0, physical bus=0 found-> vendor=0x1814, dev=0x0801, revid=0x01 domain=0, bus=0, slot=0, func=0 class=06-04-00, hdrtype=0x01, mfdev=0 cmdreg=0x0007, statreg=0x0010, cachelnsz=16 (dwords) lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) intpin=a, irq=255 powerspec 3 supports D0 D1 D3 current D0 MSI supports 1 message, 64 bit map[10]: type Memory, range 32, base 0, size 31, enabled pcib1: <PCI-PCI bridge> at device 0.0 on pci0 pcib1: domain 0 pcib1: secondary bus 1 pcib1: subordinate bus 1 pcib1: memory decode 0x20000000-0x2fffffff pci1: <PCI bus> on pcib1 pci1: domain=0, physical bus=1 found-> vendor=0x14c3, dev=0x7650, revid=0x00 domain=0, bus=1, slot=0, func=0 class=02-80-00, hdrtype=0x00, mfdev=1 cmdreg=0x0007, statreg=0x0010, cachelnsz=16 (dwords) lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) intpin=a, irq=255 powerspec 3 supports D0 D3 current D0 MSI supports 1 message, 64 bit map[10]: type Memory, range 32, base 0x20000000, size 20, enabled pcib1: requested memory range 0x20000000-0x200fffff: good found-> vendor=0x14c3, dev=0x8650, revid=0x00 domain=0, bus=1, slot=0, func=1 class=0d-11-00, hdrtype=0x00, mfdev=1 cmdreg=0x0007, statreg=0x0010, cachelnsz=16 (dwords) lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) intpin=a, irq=255 powerspec 3 supports D0 D1 D3 current D0 MSI supports 1 message, 64 bit map[10]: type Memory, range 32, base 0x20100000, size 20, enabled pcib1: requested memory range 0x20100000-0x201fffff: good found-> vendor=0x0000, dev=0x0000, revid=0x00 domain=0, bus=1, slot=0, func=2 class=00-00-00, hdrtype=0x00, mfdev=0 cmdreg=0x0000, statreg=0x0000, cachelnsz=0 (dwords) lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) found-> vendor=0x0000, dev=0x0000, revid=0x00 domain=0, bus=1, slot=0, func=3 class=00-00-00, hdrtype=0x00, mfdev=0 cmdreg=0x0000, statreg=0x0000, cachelnsz=0 (dwords) lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) found-> vendor=0x0000, dev=0x0000, revid=0x00 domain=0, bus=1, slot=0, func=4 class=00-00-00, hdrtype=0x00, mfdev=0 cmdreg=0x0000, statreg=0x0000, cachelnsz=0 (dwords) lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) found-> vendor=0x0000, dev=0x0000, revid=0x00 domain=0, bus=1, slot=0, func=5 class=00-00-00, hdrtype=0x00, mfdev=0 cmdreg=0x0000, statreg=0x0000, cachelnsz=0 (dwords) lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) found-> vendor=0x0000, dev=0x0000, revid=0x00 domain=0, bus=1, slot=0, func=6 class=00-00-00, hdrtype=0x00, mfdev=0 cmdreg=0x0000, statreg=0x0000, cachelnsz=0 (dwords) lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) found-> vendor=0x0000, dev=0x0000, revid=0x00 domain=0, bus=1, slot=0, func=7 class=00-00-00, hdrtype=0x00, mfdev=0 cmdreg=0x0000, statreg=0x0000, cachelnsz=0 (dwords) lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) pci1: <network> at device 0.0 (no driver attached) pci1: <wireless controller> at device 0.1 (no driver attached) pci1: <old, non-VGA display device> at device 0.2 (no driver attached) pci1: <old, non-VGA display device> at device 0.3 (no driver attached) pci1: <old, non-VGA display device> at device 0.4 (no driver attached) pci1: <old, non-VGA display device> at device 0.5 (no driver attached) pci1: <old, non-VGA display device> at device 0.6 (no driver attached) pci1: <old, non-VGA display device> at device 0.7 (no driver attached) random: harvesting attach, 8 bytes (4 bits) from pci1 random: harvesting attach, 8 bytes (4 bits) from pcib1 random: harvesting attach, 8 bytes (4 bits) from pci0 random: harvesting attach, 8 bytes (4 bits) from pcib0 rt0: <Ralink RT7620 onChip Ethernet driver> at mem 0x10100000-0x1010ffff irq 3 on nexus0 rt0: RT7620 Ethernet MAC (rev 0x00000000) rt0: use hardcoded 00:18:e7:d5:83:90 macaddr rt0: bpf attached rt0: Ethernet address: 00:18:e7:d5:83:90 random: harvesting attach, 8 bytes (4 bits) from rt0 random: harvesting attach, 8 bytes (4 bits) from nexus0 Device configuration finished. Timecounters tick every 10.000 msec vlan: initialized, using hash tables with chaining tcp_init: net.inet.tcp.tcbhashsize auto tuned to 512 lo0: bpf attached GEOM: new disk flash/spi0 usbus0: 480Mbps High Speed USB v2.0 Trying to mount root from ufs:da0s1 []... Root mount waiting for: usbus0 ugen0.1: <Ralink> at usbus0 uhub0: <Ralink EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus0 uhub0: 1 port with 1 removable, self powered random: harvesting attach, 8 bytes (4 bits) from uhub0 mountroot: waiting for device da0s1... Mounting from ufs:da0s1 failed with error 19. Loader variables: Manual root filesystem specification: <fstype>:<device> [options] Mount <device> using filesystem <fstype> and with the specified (optional) option list. eg. ufs:/dev/da0s1a zfs:tank cd9660:/dev/cd0 ro (which is equivalent to: mount -t cd9660 -o ro /dev/cd0 /) ? List valid disk boot devices . Yield 1 second (for background tasks) <empty line> Abort manual input mountroot>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-VmomKKRgBVPAHMQh4fJisznWi3FgEEDjkg0pMmF2sHJvd1w>