Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Jan 2016 18:59:18 +0100
From:      Willem Jan Withagen <wjw@digiware.nl>
To:        Stanislav Galabov <sgalabov@gmail.com>
Cc:        "freebsd-mips@freebsd.org" <freebsd-mips@freebsd.org>
Subject:   Re: Ralink/MediaTek support progress
Message-ID:  <569BD676.9040506@digiware.nl>
In-Reply-To: <569BCB17.7010807@digiware.nl>
References:  <BE3D0D94-4152-47CE-B010-E5D71ED595B3@gmail.com> <881F0883-BEAE-48A2-AB13-F689CE550DA3@gmail.com> <569BBE18.9030407@digiware.nl> <84A69225-ECF3-4B16-B1E8-CED754A67F16@gmail.com> <569BCB17.7010807@digiware.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
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<PerfCount,WatchRegs,MIPS16,EJTAG>
   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: <memory>
null: <full device, null device, zero device>
openfirm: <Open Firmware control device>
nexus0: <MIPS32 root nexus>
random: harvesting attach, 8 bytes (4 bits) from nexus0
ofwbus0: <Open Firmware Device Tree> on nexus0
simplebus0: <Flattened device tree simple bus> mem 0x1e000000-0x1e1fffff 
on ofwbus0
simplebus1: <Flattened device tree simple bus> 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: <MTK System Control driver> mem 0-0xff on simplebus1
sysc0: Chip ID: MT7621
sysc0: GPIOMODE: 0x0004042c
random: harvesting attach, 8 bytes (4 bits) from sysc0
mips_pic0: <MIPS32 Interrupt Controller> on ofwbus0
random: harvesting attach, 8 bytes (4 bits) from mips_pic0
intc0: <MTK GIC Controller> mem 0x1fbc0000-0x1fbcffff irq 0 on ofwbus0
random: harvesting attach, 8 bytes (4 bits) from intc0
gpio0: <MTK GPIO Controller> mem 0x600-0x6ff irq 2 on simplebus1
random: harvesting attach, 8 bytes (4 bits) from gpio0
gpio1: <MTK GPIO Controller> mem 0x600-0x6ff irq 2 on simplebus1
random: harvesting attach, 8 bytes (4 bits) from gpio1
gpiobus0: <OFW GPIO bus> on gpio0
random: harvesting attach, 8 bytes (4 bits) from gpiobus0
gpioc0: <GPIO controller> on gpio0
random: harvesting attach, 8 bytes (4 bits) from gpioc0
gpiobus1: <OFW GPIO bus> on gpio1
random: harvesting attach, 8 bytes (4 bits) from gpiobus1
gpioc1: <GPIO controller> on gpio1
random: harvesting attach, 8 bytes (4 bits) from gpioc1
uart0: <MTK UART (16550 compatible)> 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: <MTK SPI (new)> mem 0xb00-0xbff on simplebus1
spibus0: <OFW SPI bus> on spi0
mx25l0: <M25Pxx Flash Family> 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: <Ralink RT7621 onChip Ethernet driver> 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: <Generic MIPS32 ticker> 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:
   <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> 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.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?569BD676.9040506>