Date: Tue, 22 Dec 2015 13:03:05 +0100 From: Willem Jan Withagen <wjw@digiware.nl> To: Stanislav Galabov <sgalabov@gmail.com> Cc: Adrian Chadd <adrian@freebsd.org>, "freebsd-mips@freebsd.org" <freebsd-mips@freebsd.org> Subject: Re: Booting a FreeBSD kernel on the WiTiboard. (Was: Re: Initial support for MT7620) Message-ID: <56793BF9.9010200@digiware.nl> In-Reply-To: <1F9B0CCD-1C67-45CF-9E1D-390F603A862F@gmail.com> References: <1479DFB0-6B63-4886-B9BA-8F95A44A8ED9@gmail.com> <CAJ-Vmo=ryMSC6AsQwayi1P-%2Bvw8S9ow8%2BSPi%2BsuLWgTX=v4wPw@mail.gmail.com> <17D0A04B-7164-48AE-9909-107EEBDF72E5@gmail.com> <56716BD0.1080801@digiware.nl> <567921DD.9060802@digiware.nl> <1F9B0CCD-1C67-45CF-9E1D-390F603A862F@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 22-12-2015 12:54, Stanislav Galabov wrote: > Hi Willem, > > Can you try with this kernel please: > https://www.dropbox.com/s/t1wevprzlsfegr0/kernel.uboot?dl=0 That really works. :) Boot output below. Guess I'm going to need to find a disk to hookup to one of the sataports... In the mean time also started a MIPS build for MT7620. But this afternoon is reserved for Xmas shopping, so I won't be back with results for a while. --WjW TIMEOUT_COUNT=10,Load address: 0x80a00000 Loading: Got ARP REPLY, set server/gtwy eth addr (00:30:48:de:97:cd) Got it ################################################################# ################################################################# ################################################ done Bytes transferred = 910255 (de3af hex) NetBootFileXferSize= 000de3af Automatic boot of image at addr 0x80A00000 ... ## Booting image at 80a00000 ... Image Name: FreeBSD Kernel Image Image Type: MIPS Linux Kernel Image (lzma compressed) Data Size: 910191 Bytes = 888.9 kB Load Address: 80100120 Entry Point: 80100120 Verifying Checksum ... OK Uncompressing Kernel Image ... OK No initrd ## Transferring control to Linux (at address 80100120) ... ## Giving linux memsize in MB, 256 Starting kernel ... U-Boot args (from 0 args): None Environment: memsize=256 initrd_start=0x00000000 initrd_size=0x0 flash_start=0x00000000 flash_size=0x1000000 GCRs found at 0x1fbf8000. No L2 sync (4 < 6) MIPS CPC found Local core : 0x00000013 Other core : 0x00000013 Reg0 base : 0x1c000000 Reg0 mask : 0xfc000002 Reg1 base : 0x60000000 Reg1 mask : 0xf0000002 Reg2 base : 0x1c000000 Reg2 mask : 0xfc000002 Reg3 base : 0x1c000000 Reg3 mask : 0xfc000002 GCR Base : 0x1fbf8000 GCR Control: 0x00010001 MVPControl : 0x00000001 VPEConf0 : 0x800f0003 Num IOCUs : 1 Config0 : 0x80200485 Config7 : 0x80090500 GIC Config : 0x08070003 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 L1 i-cache: 4 ways of 256 sets, 32 bytes per line L1 d-cache: 4 ways of 256 sets, 32 bytes per line Config1=0xbea3519e<PerfCount,WatchRegs,MIPS16,EJTAG> Config3=0x2000242c HW COHERENCY ENABLED! Physical memory chunk(s): 0x489000 - 0xfffffff, 263680000 bytes (64375 pages) Maxmem is 0x10000000 KDB: debugger backends: ddb KDB: current backend: ddb cm_gcr_base: 0x1fbf8000 gic_base: 0x1fbc0000 0x00000180 -> 0x00000000, 0 0x00000200 -> 0x00000000, 0 0x00000380 -> 0x00000000, 0 0x00000568 -> 0x80000000 0x00000400 -> 0x00000000 0x00000480 -> 0x00000000 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 #814 ce202b1(master)-dirty: Mon Dec 21 23:41:48 EET 2015 root@stassi-bsd9:/usr/obj/mips.mipsel/usr/current/sys/MT7621 mips gcc version 4.2.1 20070831 patched [FreeBSD] Preloaded elf kernel "kernel" at 0x80482990. real memory = 268435456 (262144K bytes) Physical memory chunk(s): 0x0051d000 - 0x0fb54fff, 258179072 bytes (63032 pages) avail memory = 257130496 (245MB) ULE: setup cpu 0 random: entropy device external interface mem: <memory> null: <full device, null device, zero device> nexus0: <MIPS32 root nexus> clock0: <MIPS GIC ticker> on nexus0 Timecounter "GIC Timer" frequency 880000000 Hz quality 800 Event timer "GIC Timer" frequency 880000000 Hz quality 800 random: harvesting attach, 8 bytes (4 bits) from clock0 obio0 at mem 0xbe000000-0xbeffffff on nexus0 rt305x_sysctl0: <RT305X System Control driver> at mem 0xbe000000-0xbe0000ff irq 0 on obio0 Chip ID: "MT7621 " SYSCTL_SYSCFG=0x2c22c2 GE0 mode 0 Bypass PLL Clock is 384MHz Boot from 0 Bootstrap test code 34 SRAM_CS mode 0 8mA SDRAM_CLK driving SYSCTL_CLKCFG0=0x40a00000 SDRAM_CLK_SKEW 1ns SYSCTL_CLKCFG1=0x77ffeff8 Pbus clock is 1/2 of System clock USB OTG clock is enabled I2S clock is enabled I2S clock is external I2S clock divider 47 PCM clock is enabled PCM clock is external PCM clock divider 56 SYSCTL_GPIOMODE=0x04042c random: harvesting attach, 8 bytes (4 bits) from rt305x_sysctl0 rt305x_ic0: <RT305X Interrupt Controller driver> at mem 0xbe000200-0xbe0002ff on obio0 random: harvesting attach, 8 bytes (4 bits) from rt305x_ic0 uart_ralink_probe(): 0x03 uart_ralink_probe(): 0x00 uart_ralink_probe(): 0x03 uart_ralink_probe(): 0xd0 uart0: <Non-standard ns8250 class UART with FIFOs> at mem 0xbe000c00-0xbe000cff irq 26 on obio0 uart0: console (57870,n,8,1) uart0: PPS capture mode 2 (DCD) random: harvesting attach, 8 bytes (4 bits) from uart0 pcib0 at mem 0xbe140000-0xbe17ffff on obio0 PCIe0 card detected PCIe1 card detected PCIe2 card detected Port 0 N_FTS = 0x1b105000 Port 1 N_FTS = 0x1b105000 Port 2 N_FTS = 0x1b105000 PCI 1:0:0: reg 10: smask=fff00004: addr=60000000 PCI 2:0:0: reg 10: smask=fff00004: addr=60100000 PCI 3:0:0: reg 10: smask=fffffff9: addr=1e160000 PCI 3:0:0: reg 14: smask=fffffffd: addr=1e160008 PCI 3:0:0: reg 18: smask=fffffff9: addr=1e160010 PCI 3:0:0: reg 1c: smask=fffffffd: addr=1e16000c PCI 3:0:0: reg 20: smask=ffffffe1: addr=1e160020 PCI 3:0:0: reg 24: smask=fffffe00: addr=60200000 pci0: <PCI bus> on pcib0 pci0: domain=0, physical bus=0 found-> vendor=0x0e8d, 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=0 powerspec 3 supports D0 D1 D3 current D0 MSI supports 1 message, 64 bit found-> vendor=0x0e8d, dev=0x0801, revid=0x01 domain=0, bus=0, slot=1, 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=0 powerspec 3 supports D0 D1 D3 current D0 MSI supports 1 message, 64 bit found-> vendor=0x0e8d, dev=0x0801, revid=0x01 domain=0, bus=0, slot=2, 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=0 powerspec 3 supports D0 D1 D3 current D0 MSI supports 1 message, 64 bit pcib1: <PCI-PCI bridge> irq 4 at device 0.0 on pci0 pcib1: domain 0 pcib1: secondary bus 1 pcib1: subordinate bus 1 pcib1: memory decode 0x60000000-0x67ffffff pci1: <PCI bus> on pcib1 pci1: domain=0, physical bus=1 found-> vendor=0x14c3, dev=0x7662, revid=0x00 domain=0, bus=1, slot=0, func=0 class=02-80-00, hdrtype=0x00, mfdev=0 cmdreg=0x0006, 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 64, base 0x60000000, size 20, enabled pcib1: requested memory range 0x60000000-0x600fffff: good mt762x_pci_alloc_resource(): mapped to 0xcb600000 pci1: <network> at device 0.0 (no driver attached) random: harvesting attach, 8 bytes (4 bits) from pci1 random: harvesting attach, 8 bytes (4 bits) from pcib1 pcib2: <PCI-PCI bridge> irq 24 at device 1.0 on pci0 pcib2: domain 0 pcib2: secondary bus 2 pcib2: subordinate bus 2 pcib2: memory decode 0x60000000-0x67ffffff pci2: <PCI bus> on pcib2 pci2: domain=0, physical bus=2 found-> vendor=0x14c3, dev=0x7662, revid=0x00 domain=0, bus=2, slot=0, func=0 class=02-80-00, hdrtype=0x00, mfdev=0 cmdreg=0x0006, 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 64, base 0x60100000, size 20, enabled pcib2: requested memory range 0x60100000-0x601fffff: good mt762x_pci_alloc_resource(): mapped to 0xcb700000 pci2: <network> at device 0.0 (no driver attached) random: harvesting attach, 8 bytes (4 bits) from pci2 random: harvesting attach, 8 bytes (4 bits) from pcib2 pcib3: <PCI-PCI bridge> irq 25 at device 2.0 on pci0 pcib3: domain 0 pcib3: secondary bus 3 pcib3: subordinate bus 3 pcib3: memory decode 0x60000000-0x67ffffff pci3: <PCI bus> on pcib3 pci3: domain=0, physical bus=3 found-> vendor=0x1b21, dev=0x0612, revid=0x01 domain=0, bus=3, slot=0, func=0 class=01-06-01, hdrtype=0x00, mfdev=0 cmdreg=0x0007, statreg=0x0010, cachelnsz=16 (dwords) lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) intpin=a, irq=0 powerspec 3 supports D0 D3 current D0 MSI supports 1 message map[10]: type I/O Port, range 32, base 0x1e160000, size 3, enabled pci3: pci0:3:0:0 bar 0x10 failed to allocate map[14]: type I/O Port, range 32, base 0x1e160008, size 2, port disabled pci3: pci0:3:0:0 bar 0x14 failed to allocate map[18]: type I/O Port, range 32, base 0x1e160010, size 3, port disabled pci3: pci0:3:0:0 bar 0x18 failed to allocate map[1c]: type I/O Port, range 32, base 0x1e16000c, size 2, port disabled pci3: pci0:3:0:0 bar 0x1c failed to allocate map[20]: type I/O Port, range 32, base 0x1e160020, size 5, port disabled pci3: pci0:3:0:0 bar 0x20 failed to allocate map[24]: type Memory, range 32, base 0x60200000, size 9, enabled pcib3: requested memory range 0x60200000-0x602001ff: good mt762x_pci_alloc_resource(): mapped to 0xc5aff000 pcib3: slot 0 INTA is routed to irq 25 ahci0: <ASMedia ASM1061 AHCI SATA controller> mem 0x60200000-0x602001ff irq 25 at device 0.0 on pci3 ahci0: attempting to allocate 1 MSI vectors (1 supported) ahci0: Failed to allocate MSI/MSI-x, falling back to INTx ahci0: AHCI v1.20 with 2 6Gbps ports, Port Multiplier supported ahci0: Caps: 64bit NCQ SNTF SS AL CLO 6Gbps PM PMD SSC PSC 32cmd CCC eSATA 2ports ahci0: Caps2: ahcich0: <AHCI channel> at channel 0 on ahci0 ahcich0: Caps: HPCP random: harvesting attach, 8 bytes (4 bits) from ahcich0 ahcich1: <AHCI channel> at channel 1 on ahci0 ahcich1: Caps: HPCP random: harvesting attach, 8 bytes (4 bits) from ahcich1 random: harvesting attach, 8 bytes (4 bits) from ahci0 random: harvesting attach, 8 bytes (4 bits) from pci3 random: harvesting attach, 8 bytes (4 bits) from pcib3 random: harvesting attach, 8 bytes (4 bits) from pci0 random: harvesting attach, 8 bytes (4 bits) from pcib0 random: harvesting attach, 8 bytes (4 bits) from obio0 random: harvesting attach, 8 bytes (4 bits) from nexus0 Device configuration finished. Timecounters tick every 10.000 msec tcp_init: net.inet.tcp.tcbhashsize auto tuned to 4096 ahcich0: AHCI reset... ahcich0: SATA connect timeout time=10000us status=00000000 ahcich0: AHCI reset: device not found ahcich1: AHCI reset... ahcich1: SATA connect timeout time=10000us status=00000000 ahcich1: AHCI reset: device not found Trying to mount root from ufs:/dev/ada0s1 []... mountroot: waiting for device /dev/ada0s1... Mounting from ufs:/dev/ada0s1 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?56793BF9.9010200>