From owner-freebsd-mips@freebsd.org Sun Jan 17 17:59:40 2016 Return-Path: Delivered-To: freebsd-mips@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6A072A8631D for ; Sun, 17 Jan 2016 17:59:40 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from smtp.digiware.nl (unknown [IPv6:2001:4cb8:90:ffff::3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1BDD51A14 for ; Sun, 17 Jan 2016 17:59:40 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from rack1.digiware.nl (unknown [127.0.0.1]) by smtp.digiware.nl (Postfix) with ESMTP id 224721534E6; Sun, 17 Jan 2016 18:59:38 +0100 (CET) X-Virus-Scanned: amavisd-new at digiware.nl Received: from smtp.digiware.nl ([127.0.0.1]) by rack1.digiware.nl (rack1.digiware.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id y-en6DsqUb9n; Sun, 17 Jan 2016 18:59:17 +0100 (CET) Received: from [IPv6:2001:4cb8:3:1:2d24:8a18:97f3:86d0] (unknown [IPv6:2001:4cb8:3:1:2d24:8a18:97f3:86d0]) by smtp.digiware.nl (Postfix) with ESMTP id 5F7D1153431; Sun, 17 Jan 2016 18:59:17 +0100 (CET) Subject: Re: Ralink/MediaTek support progress To: Stanislav Galabov References: <881F0883-BEAE-48A2-AB13-F689CE550DA3@gmail.com> <569BBE18.9030407@digiware.nl> <84A69225-ECF3-4B16-B1E8-CED754A67F16@gmail.com> <569BCB17.7010807@digiware.nl> Cc: "freebsd-mips@freebsd.org" From: Willem Jan Withagen Organization: Digiware Management b.v. Message-ID: <569BD676.9040506@digiware.nl> Date: Sun, 17 Jan 2016 18:59:18 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: <569BCB17.7010807@digiware.nl> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Jan 2016 17:59:40 -0000 On 17-1-2016 18:10, Willem Jan Withagen wrote: > On 17-1-2016 17:54, Stanislav Galabov wrote: >> >> Hi Willem, >> >> The right branch is local/sgalabov_mtk. >> > > That helps... > > Thanx, > --WjW With the rest of the compile/build info on the MIPS Wiki: https://wiki.freebsd.org/FreeBSD/mips/RT3052F I get, the appended console at 56700 bit/s, so the kernel is booting. Now I just have to find out to either get an md in the right place. Config NFS Or get it to use the /dev/sd0s1a device, like it did before, which i guess would be hard since the bits and pieces are not yet in the config. --WjW Filename 'test.bin'. TIMEOUT_COUNT=10,Load address: 0x80a00000 Loading: Got ARP REPLY, set server/gtwy eth addr (1c:6f:65:82:ec:12) Got it ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ####################### done Bytes transferred = 3444372 (348e94 hex) NetBootFileXferSize= 00348e94 Erasing SPI Flash... . Writing to SPI Flash... . done Automatic boot of image at addr 0x80A00000 ... ## Booting image at 80a00000 ... Image Name: FreeBSD Kernel Image Image Type: MIPS Linux Kernel Image (uncompressed) Data Size: 3444308 Bytes = 3.3 MB Load Address: 80001100 Entry Point: 80001100 Verifying Checksum ... OK OK No initrd ## Transferring control to Linux (at address 80001100) ... ## Giving linux memsize in MB, 256 Starting kernel ... FDT DTB at: 0x8031ef10 CPU clock: 880MHz SYS clock: 220MHz UART clock: 50MHz U-Boot args (from 0 args): None Environment: memsize=256 initrd_start=0x00000000 initrd_size=0x0 flash_start=0x00000000 flash_size=0x1000000 entry: mips_init() Cache info: picache_stride = 4096 picache_loopcount = 8 pdcache_stride = 4096 pdcache_loopcount = 8 cpu0: MIPS Technologies processor v47.153 MMU: Standard TLB, 32 entries (4K 16K 64K 256K 1M 16M 64M 256M pg sizes) L1 i-cache: 4 ways of 256 sets, 32 bytes per line L1 d-cache: 4 ways of 256 sets, 32 bytes per line L2 cache: 8 ways of 1024 sets, 32 bytes per line, 256 KiB total size Config1=0xbea3519e Config2=0x80000447 Config3=0x2000242c Physical memory chunk(s): 0x3d3000 - 0xfffffff, 264425472 bytes (64557 pages) Maxmem is 0x10000000 KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2016 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 #0 041b950(local/sgalabov_mtk): Sun Jan 17 18:11:32 CET 2016 wjw@freetest.digiware.nl:/usr/obj/mips.mipsel/usr/srcs/Mips/MT6721/freebsd/sys/MT7621 mips gcc version 4.2.1 20070831 patched [FreeBSD] WARNING: WITNESS option enabled, expect reduced performance. Preloaded elf kernel "kernel" at 0x803ca650. real memory = 268435456 (262144K bytes) Physical memory chunk(s): 0x0045f000 - 0x0fb50fff, 258940928 bytes (63218 pages) avail memory = 254562304 (242MB) ULE: setup cpu 0 random: entropy device external interface mem: null: openfirm: nexus0: random: harvesting attach, 8 bytes (4 bits) from nexus0 ofwbus0: on nexus0 simplebus0: mem 0x1e000000-0x1e1fffff on ofwbus0 simplebus1: mem 0x1e000000-0x1e0fffff on simplebus0 random: harvesting attach, 8 bytes (4 bits) from simplebus1 random: harvesting attach, 8 bytes (4 bits) from simplebus0 random: harvesting attach, 8 bytes (4 bits) from ofwbus0 sysc0: mem 0-0xff on simplebus1 sysc0: Chip ID: MT7621 sysc0: GPIOMODE: 0x0004042c random: harvesting attach, 8 bytes (4 bits) from sysc0 mips_pic0: on ofwbus0 random: harvesting attach, 8 bytes (4 bits) from mips_pic0 intc0: mem 0x1fbc0000-0x1fbcffff irq 0 on ofwbus0 random: harvesting attach, 8 bytes (4 bits) from intc0 gpio0: mem 0x600-0x6ff irq 2 on simplebus1 random: harvesting attach, 8 bytes (4 bits) from gpio0 gpio1: mem 0x600-0x6ff irq 2 on simplebus1 random: harvesting attach, 8 bytes (4 bits) from gpio1 gpiobus0: on gpio0 random: harvesting attach, 8 bytes (4 bits) from gpiobus0 gpioc0: on gpio0 random: harvesting attach, 8 bytes (4 bits) from gpioc0 gpiobus1: on gpio1 random: harvesting attach, 8 bytes (4 bits) from gpiobus1 gpioc1: on gpio1 random: harvesting attach, 8 bytes (4 bits) from gpioc1 uart0: mem 0xc00-0xcff irq 3 on simplebus1 uart0: console (57870,n,8,1) uart0: fast interrupt uart0: PPS capture mode 2 (DCD) random: harvesting attach, 8 bytes (4 bits) from uart0 spi0: mem 0xb00-0xbff on simplebus1 spibus0: on spi0 mx25l0: at cs 0 on spibus0 Unknown SPI flash device. Vendor: c8, device id: 4018 device_attach: mx25l0 attach returned 6 random: harvesting attach, 8 bytes (4 bits) from spibus0 random: harvesting attach, 8 bytes (4 bits) from spi0 rt0: mem 0x1e100000-0x1e10ffff irq 1 on simplebus0 rt0: RT7621 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 clock0: on nexus0 Timecounter "MIPS32" frequency 440000000 Hz quality 800 Event timer "MIPS32" frequency 440000000 Hz quality 800 random: harvesting attach, 8 bytes (4 bits) from clock0 Device configuration finished. Timecounters tick every 10.000 msec tcp_init: net.inet.tcp.tcbhashsize auto tuned to 4096 lo0: bpf attached WARNING: WITNESS option enabled, expect reduced performance. Trying to mount root from ufs:md0.uncompress []... mountroot: waiting for device md0.uncompress... Mounting from ufs:md0.uncompress failed with error 19. Loader variables: Manual root filesystem specification: : [options] Mount using filesystem 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) Abort manual input mountroot> ufs:/dev/da0s1a Trying to mount root from ufs:/dev/da0s1a []... mountroot: waiting for device /dev/da0s1a... Mounting from ufs:/dev/da0s1a failed with error 19.