From owner-freebsd-mips@freebsd.org Wed May 10 20:03:11 2017 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 832A0D5BB88 for ; Wed, 10 May 2017 20:03:11 +0000 (UTC) (envelope-from mike@wolman.co.uk) Received: from avasout08.plus.net (avasout08.plus.net [212.159.14.20]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client CN "Bizanga Labs SMTP Client Certificate", Issuer "Bizanga Labs CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 695047FC for ; Wed, 10 May 2017 20:03:09 +0000 (UTC) (envelope-from mike@wolman.co.uk) Received: from [192.168.3.50] ([80.229.66.11]) by avasout08 with smtp id Jk341v0050EahWw01k355X; Wed, 10 May 2017 21:03:07 +0100 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.2 cv=JPdLi4Cb c=1 sm=1 tr=0 a=sNOkzuqjfbpz3c/qSHODpA==:117 a=sNOkzuqjfbpz3c/qSHODpA==:17 a=r77TgQKjGQsHNAKrUKIA:9 a=UmSUZ3ptAAAA:8 a=4I05h4SrAAAA:8 a=6I5d2MoRAAAA:8 a=5r-fJclM7s6jTJkdePQA:9 a=CGTOzyqyhyGjmx5s:21 a=nbEMDriQx9n3ocIj:21 a=IUjGsyZMFZE9qtK1:21 a=QEXdDO2ut3YA:10 a=pGLkceISAAAA:8 a=IIX2BFdiAAAA:8 a=9rzdJWKAKmTXUWzcgdMA:9 a=twqpxKhnmWN7dTMh:21 a=lvbTkiJwVfgAld55:21 a=ESozbQz6mQooGmxv:21 a=_W_S_7VecoQA:10 a=FyGKTEvU35uc88vWBdgE:22 a=SXYKVUms7l59yVxtnTo9:22 a=IjZwj45LgO3ly-622nXo:22 a=6kGIvZw6iX1k4Y-7sg4_:22 a=rHg00LAlvzXsuODty-Nv:22 Subject: Re: onion omega2+ To: Aleksandr Rybalko References: <694efc3a-e183-35a1-a0bf-9a9c0d708826@wolman.co.uk> <2c5cd01a-a8d4-3ffa-4e9c-2aad170574c1@wolman.co.uk> <39222.11970.qm@web101719.mail.ssk.yahoo.co.jp> <6f1b2d35-5d17-765a-6138-0ab85455fc09@wolman.co.uk> <5866.49154.qm@web101718.mail.ssk.yahoo.co.jp> <102de390-63ca-a156-2208-bea3d5eea0f9@wolman.co.uk> <541011.41820.qm@web101719.mail.ssk.yahoo.co.jp> <672be258-8fed-6317-1325-f9fccf2646c3@wolman.co.uk> <369335.16286.qm@web101716.mail.ssk.yahoo.co.jp> <711a889d-9701-2441-5c9c-98e0ac607ffb@wolman.co.uk> <456721.9572.qm@web101705.mail.ssk.yahoo.co.jp> <8b21a15c-3af8-bdba-cc70-6bd0e3a65f39@wolman.co.uk> <05065E4E-1D0F-49DE-B14D-D45ECCEA251F@gmail.com> <2b8211f6-9f42-0f11-678f-a2ed830b2430@wolman.co.uk> Cc: Stanislav Galabov , "freebsd-mips@freebsd.org" From: Mike Wolman Message-ID: <89324470-016a-32d7-05af-d4da49b9c47d@wolman.co.uk> Date: Wed, 10 May 2017 21:03:02 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 May 2017 20:03:11 -0000 I recompiledthe kernel without all debugging stuff: # Debugging for use in -current options INVARIANTS options INVARIANT_SUPPORT options WITNESS options WITNESS_SKIPSPIN options DEBUG_REDZONE options DEBUG_MEMGUARD And we get to somewhere a lot more familiar for me - plus i see the new spi stuff which is very cool. Need to figure out the u-boot image stuff now and think userland should be available. Omega2 # fatload usb 0:1 0x80001100 kernel.MT7628_FDT.bin * * Reading file "kernel.MT7628_FDT.bin" * ** ****** ******************************************************************************************************************************************************************************************* **** * FAT: 4491448 Bytes read Omega2 # go 0x80001100 ## Starting application at 0x80001100 ... FDT DTB at: 0x804133c0 CPU clock: 580MHz Timer clock: 290MHz UART clock: 40MHz U-Boot args (from 0 args): None Environment: entry: mips_init() RAM size: 128MB (from FDT) Cache info: picache_stride = 4096 picache_loopcount = 16 pdcache_stride = 4096 pdcache_loopcount = 8 max line size = 32 cpu0: MIPS Technologies processor v85.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 Config2=0x80000000 Config3=0x2420 Config7=0x80010400 Physical memory chunk(s): 0x47b000 - 0x7ffffff, 129519616 bytes (31621 pages) Maxmem is 0x8000000 KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2017 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 12.0-CURRENT #0 r317887M: Wed May 10 20:49:10 UTC 2017 mike@f64-current.mw.office:/usr/home/mike/omega2/obj/mipsel_ap/mips.mipsel/usr/home/mike/omega2/src/sys/MT7628_FDT mips gcc version 4.2.1 20070831 patched [FreeBSD] Preloaded elf kernel "kernel" at 0x8046e160. real memory = 134217728 (131072K bytes) Physical memory chunk(s): 0x0050f000 - 0x07d9ffff, 126423040 bytes (30865 pages) avail memory = 125616128 (119MB) arc4random: no preloaded entropy cache 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 palmbus0: mem 0x10000000-0x101fffff on ofwbus0 simplebus0: mem 0x600-0x6ff irq 10 on palmbus0 random: harvesting attach, 8 bytes (4 bits) from simplebus0 random: harvesting attach, 8 bytes (4 bits) from palmbus0 random: harvesting attach, 8 bytes (4 bits) from ofwbus0 cpupic0: on ofwbus0 random: harvesting attach, 8 bytes (4 bits) from cpupic0 sysc0: mem 0-0xff on palmbus0 random: harvesting attach, 8 bytes (4 bits) from sysc0 pinctrl0: on ofwbus0 pinctrl0: GPIO mode start: 0x54054404 Processing 1 pin-config node(s) in pinctrl-0 for i2c@900 Processing 2 pin-config node(s) in pinctrl-0 for spi@b00 Processing 1 pin-config node(s) in pinctrl-0 for uartlite@c00 Processing 1 pin-config node(s) in pinctrl-0 for uart1@d00 Processing 1 pin-config node(s) in pinctrl-0 for uart2@e00 Processing 2 pin-config node(s) in pinctrl-0 for pwm@5000 Processing 1 pin-config node(s) in pinctrl-0 for pinctrl Processing 1 pin-config node(s) in pinctrl-0 for sdhci@10130000 pinctrl0: GPIO mode end : 0x50054044 random: harvesting attach, 8 bytes (4 bits) from pinctrl0 rstctrl0: on ofwbus0 random: harvesting attach, 8 bytes (4 bits) from rstctrl0 clkctrl0: on ofwbus0 random: harvesting attach, 8 bytes (4 bits) from clkctrl0 intc0: mem 0x200-0x2ff irq 8 on palmbus0 random: harvesting attach, 8 bytes (4 bits) from intc0 gpio0: mem 0-0xff irq 17 on simplebus0 gpiobus0: on gpio0 random: harvesting attach, 8 bytes (4 bits) from gpiobus0 random: harvesting attach, 8 bytes (4 bits) from gpio0 gpio1: mem 0-0xff irq 18 on simplebus0 gpiobus1: on gpio1 random: harvesting attach, 8 bytes (4 bits) from gpiobus1 random: harvesting attach, 8 bytes (4 bits) from gpio1 gpio2: mem 0-0xff irq 19 on simplebus0 gpiobus2: on gpio2 random: harvesting attach, 8 bytes (4 bits) from gpiobus2 random: harvesting attach, 8 bytes (4 bits) from gpio2 cpulist0: on ofwbus0 random: harvesting attach, 8 bytes (4 bits) from cpulist0 palmbus0: mem 0x120-0x12f irq 7 compat ralink,mt7628an-wdt (no driver attached) palmbus0: mem 0x300-0x3ff irq 9 compat ralink,mt7620a-memc (no driver attached) gpioc0: on gpio0 random: harvesting attach, 8 bytes (4 bits) from gpioc0 gpioc1: on gpio1 random: harvesting attach, 8 bytes (4 bits) from gpioc1 gpioc2: on gpio2 random: harvesting attach, 8 bytes (4 bits) from gpioc2 palmbus0: mem 0x900-0x9ff compat mediatek,mt7628-i2c (no driver attached) palmbus0: mem 0xa00-0xaff irq 11 disabled compat ralink,mt7620a-i2s (no driver attached) spi0: mem 0xb00-0xbff on palmbus0 spibus0: on spi0 mx25l0: at cs 0 mode 0 on spibus0 mx25l0: mx25ll256, sector 65536 bytes, 512 sectors random: harvesting attach, 8 bytes (4 bits) from mx25l0 spibus0: at cs 1 mode 0 random: harvesting attach, 8 bytes (4 bits) from spibus0 random: harvesting attach, 8 bytes (4 bits) from spi0 uart0: mem 0xc00-0xcff irq 12 on palmbus0 uart0: console (119047,n,8,1) uart0: fast interrupt uart0: PPS capture mode: DCD random: harvesting attach, 8 bytes (4 bits) from uart0 uart1: mem 0xd00-0xdff irq 13 on palmbus0 uart1: fast interrupt uart1: PPS capture mode: DCD random: harvesting attach, 8 bytes (4 bits) from uart1 uart2: mem 0xe00-0xeff irq 14 on palmbus0 uart2: fast interrupt uart2: PPS capture mode: DCD random: harvesting attach, 8 bytes (4 bits) from uart2 palmbus0: mem 0x5000-0x5fff compat mediatek,mt7628-pwm (no driver attached) palmbus0: mem 0x2000-0x27ff irq 15 disabled compat ralink,mt7620a-pcm (no driver attached) palmbus0: mem 0x2800-0x2fff irq 16 compat ralink,mt7620a-gdma (no driver attached) usbphy0: mem 0x10120000-0x10123fff on ofwbus0 random: harvesting attach, 8 bytes (4 bits) from usbphy0 ofwbus0: mem 0x10130000-0x10133fff irq 0 compat ralink,mt7620-sdhci (no driver attached) ehci0: mem 0x101c0000-0x101c0fff irq 1 on ofwbus0 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 ohci0: mem 0x101c1000-0x101c1fff irq 2 on ofwbus0 usbus1 on ohci0 ohci0: usbpf: Attached random: harvesting attach, 8 bytes (4 bits) from usbus1 random: harvesting attach, 8 bytes (4 bits) from ohci0 rt0: mem 0x10100000-0x1010ffff irq 3 on ofwbus0 rt0: RT5350 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 mtkswitch0: mem 0x10110000-0x10117fff irq 4 on ofwbus0 miibus0: on mtkswitch0 ukphy0: PHY 0 on miibus0 ukphy0: OUI 0x0017a5, model 0x0001, rev. 0 ukphy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto random: harvesting attach, 8 bytes (4 bits) from ukphy0 random: harvesting attach, 8 bytes (4 bits) from miibus0 miibus1: on mtkswitch0 ukphy1: PHY 1 on miibus1 ukphy1: OUI 0x0017a5, model 0x0001, rev. 0 ukphy1: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto random: harvesting attach, 8 bytes (4 bits) from ukphy1 random: harvesting attach, 8 bytes (4 bits) from miibus1 miibus2: on mtkswitch0 ukphy2: PHY 2 on miibus2 ukphy2: OUI 0x0017a5, model 0x0001, rev. 0 ukphy2: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto random: harvesting attach, 8 bytes (4 bits) from ukphy2 random: harvesting attach, 8 bytes (4 bits) from miibus2 miibus3: on mtkswitch0 ukphy3: PHY 3 on miibus3 ukphy3: OUI 0x0017a5, model 0x0001, rev. 0 ukphy3: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto random: harvesting attach, 8 bytes (4 bits) from ukphy3 random: harvesting attach, 8 bytes (4 bits) from miibus3 miibus4: on mtkswitch0 ukphy4: PHY 4 on miibus4 ukphy4: OUI 0x0017a5, model 0x0001, rev. 0 ukphy4: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto random: harvesting attach, 8 bytes (4 bits) from ukphy4 random: harvesting attach, 8 bytes (4 bits) from miibus4 etherswitch0: on mtkswitch0 random: harvesting attach, 8 bytes (4 bits) from etherswitch0 mdio0: on mtkswitch0 random: harvesting attach, 8 bytes (4 bits) from mdio0 random: harvesting attach, 8 bytes (4 bits) from mtkswitch0 ofwbus0: mem 0x10140000-0x1014ffff irq 5 disabled type pci compat mediatek,mt7628-pci (no driver attached) ofwbus0: mem 0x10300000-0x103fffff irq 6 compat mediatek,mt7628-wmac (no driver attached) gpioled0: on ofwbus0 random: harvesting attach, 8 bytes (4 bits) from gpioled0 ofwbus0: compat gpio-keys-polled (no driver attached) clock0: 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 Device configuration finished. Timecounters tick every 10.000 msec lo0: bpf attached tcp_init: net.inet.tcp.tcbhashsize auto tuned to 2048 mtkswitch0port0: link state changed to DOWN mtkswitch0port1: link state changed to DOWN mtkswitch0port2: link state changed to DOWN mtkswitch0port3: link state changed to DOWN mtkswitch0port4: link state changed to DOWN GEOM: new disk flash/spi0 usbus0: 480Mbps High Speed USB v2.0 usbus1: 12Mbps Full Speed USB v1.0 flash/spi0: slice 00000000-0002ffff: u-boot (191KB) flash/spi0: slice 00030000-0003ffff: u-boot-env (63KB) flash/spi0: slice 00040000-0004ffff: factory (63KB) flash/spi0: slice 00050000-01ffffff: firmware (32447KB) ugen1.1: at usbus1 uhub0: on usbus1 ugen0.1: at usbus0 uhub1: on usbus0 Trying to mount root from ufs:md0.uzip []... Root mount waiting for: usbus1 usbus0 uhub0: 1 port with 1 removable, self powered random: harvesting attach, 8 bytes (4 bits) from uhub0 uhub1: 1 port with 1 removable, self powered random: harvesting attach, 8 bytes (4 bits) from uhub1 ugen1.2: at usbus1 umass0 on uhub0 umass0: on usbus1 umass0:0:0: Attached to scbus0 random: harvesting attach, 8 bytes (4 bits) from umass0 mountroot: waiting for device md0.uzip... (probe0:umass-sim0:0:0:0): Down reving Protocol Version from 2 to 0? pass0 at umass-sim0 bus 0 scbus0 target 0 lun 0 pass0: Removable Direct Access SCSI device pass0: Serial Number 070B00012340350 pass0: 1.000MB/s transfers GEOM: new disk da0 da0 at umass-sim0 bus 0 scbus0 target 0 lun 0 da0: Removable Direct Access SCSI device da0: Serial Number 070B00012340350 da0: 1.000MB/s transfers da0: 495MB (1015805 512 byte sectors) da0: quirks=0x2 da0: Delete methods: (da0:umass-sim0:0:0:0): PREVENT ALLOW MEDIUM REMOVAL not supported. Mounting from ufs:md0.uzip 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> On 10/05/2017 11:32, Aleksandr Rybalko wrote: > Looks like you have wrongly assigned memsize somewhere. > > if you have, for example 64mb of mem, but you set 128mb, then you will > see same mem twice. At 0x80000000 and at 0x84000000. So kernel when > allocate memory will get block at 0x84000000 and find it as already > marked as given for anybody else. > So recheck memsize everywhere :) > > 2017-05-10 12:52 GMT+03:00 Mike Wolman >: > > > Yay - we have got somewhere - thanks so much for every ones input. > > I have given the binary kernel a go: > > [mike@f64-current ~/omega2/tftpboot]$ objcopy -O binary > kernel.MT7628_FDT kernel.MT7628_FDT.bin > [mike@f64-current ~/omega2/tftpboot]$ readelf -h kernel.MT7628_FDT.bin > readelf: Not an ELF file. > > > On the omega: > > Omega2 # fatload usb 0:1 0x80001100 kernel.MT7628_FDT.bin > * > * > Reading file "kernel.MT7628_FDT.bin" > * > ** > ****** > ************************************************************************************************************************* > ****** > ********************************************************************************************************************************************************************* > **** > * > FAT: 4491492 Bytes read > Omega2 # bootm 0x80001100 > ## Booting image at 80001100 ... > Bad Magic Number,00688040 > Omega2 # go 0x80001100 > ## Starting application at 0x80001100 ... > FDT DTB at: 0x804113c0 > CPU clock: 580MHz > Timer clock: 290MHz > UART clock: 40MHz > > U-Boot args (from 0 args): > None > Environment: > entry: mips_init() > RAM size: 128MB (from FDT) > Cache info: > picache_stride = 4096 > picache_loopcount = 16 > pdcache_stride = 4096 > pdcache_loopcount = 8 > max line size = 32 > cpu0: MIPS Technologies processor v85.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 > Config2=0x80000000 > Config3=0x2420 > Config7=0x80010400 > Physical memory chunk(s): > 0x4d4000 - 0x7ffffff, 129155072 bytes (31532 pages) > Maxmem is 0x8000000 > KDB: debugger backends: ddb > KDB: current backend: ddb > Copyright (c) 1992-2017 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 12.0-CURRENT #0 r317887M: Wed May 10 10:09:03 UTC 2017 > mike@f64-current.mw.office:/usr/home/mike/omega2/obj/mipsel_ap/mips.mipsel/usr/home/mike/omega2/src/sys/MT7628_FDT > mips > gcc version 4.2.1 20070831 patched [FreeBSD] > WARNING: WITNESS option enabled, expect reduced performance. > MEMGUARD DEBUGGING ALLOCATOR INITIALIZED: > MEMGUARD map base: 0xc0800000 > MEMGUARD map size: 104860 KBytes > panic: Memory modified after free 0x87fcf948(88) val=9a05 @ 0x87fcf980 > > time = 1 > KDB: enter: panic > [ thread pid 0 tid 0 ] > Stopped at 0x4 > db> > > > > Again not sure of my next step but things are looking very positive. > > > > On 10/05/2017 10:38, Stanislav Galabov wrote: > > Hi Mike, > > Alexandr is right, what I described should work for binary > kernels and not for ELF ones. I somehow was of the impression > that you were using binary. Please try the same with binary > kernel per Alexandr's suggestion in an earlier post... > > Best wishes > Stanislav > > On May 10, 2017, at 12:31, Mike Wolman > wrote: > > Hi Stanislav, > > Just rebuild kernel with the original dtsi and made a new > uImage with: > > > [mike@f64-current ~/omega2/tftpboot]$ mkimage -A mips -C > none -O linux -T kernel -a 0x80001100 -e 0x80001100 -n > "FreeBSD" -d kernel.MT7628_FDT kernel.MT7628_FDT.uImage > Image Name: FreeBSD > Created: Wed May 10 10:10:37 2017 > Image Type: MIPS Linux Kernel Image (uncompressed) > Data Size: 5654760 Bytes = 5522.23 kB = 5.39 MB > Load Address: 80001100 > Entry Point: 80001100 > > > On the Omega: > > > Omega2 # fatload usb 0:1 0x80800000 kernel.MT7628_FDT.uImage > * > * > Reading file "kernel.MT7628_FDT.uImage" > * > ** > ****** > ... > **** > * > FAT: 5654824 Bytes read > Omega2 # bootm 0x80800000 > ## Booting image at 80800000 ... > Image Name: FreeBSD > Image Type: MIPS Linux Kernel Image (uncompressed) > Data Size: 5654760 Bytes = 5.4 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, 128 > > Starting kernel ... > > > And again nothing more, I also tried one with a Load > Address 80000000 but that hasnt worked either. > > > In case this is of any use - when linux boots this is what > the console looks like: > > > Boot Linux from Flash NO RESET PRESSED. > ## Booting image at bc050000 ... > Image Name: MIPS LEDE Linux-4.4.32 > Image Type: MIPS Linux Kernel Image (lzma compressed) > Data Size: 1345538 Bytes = 1.3 MB > Load Address: 80000000 > Entry Point: 80000000 > Verifying Checksum ... OK > Uncompressing Kernel Image ... OK > No initrd > ## Transferring control to Linux (at address 80000000) ... > ## Giving linux memsize in MB, 128 > > Starting kernel ... > > [ 0.000000] Linux version 4.4.32 (root@2272a3272872) > (gcc version 5.4.0 (LEDE GCC 5.4.0 r2292+1) ) #0 Wed Nov > 23 00:21:47 2016 > [ 0.000000] Board has DDR2 > [ 0.000000] Analog PMU set to hw control > [ 0.000000] Digital PMU set to hw control > [ 0.000000] SoC Type: MediaTek MT7688 ver:1 eco:2 > [ 0.000000] bootconsole [early0] enabled > [ 0.000000] CPU0 revision is: 00019655 (MIPS 24KEc) > [ 0.000000] MIPS: machine is Onion Omega2+ > [ 0.000000] Determined physical RAM map: > [ 0.000000] memory: 08000000 @ 00000000 (usable) > [ 0.000000] Initrd not found or empty - disabling initrd > [ 0.000000] Zone ranges: > [ 0.000000] Normal [mem > 0x0000000000000000-0x0000000007ffffff] > [ 0.000000] Movable zone start for each node > [ 0.000000] Early memory node ranges > [ 0.000000] node 0: [mem > 0x0000000000000000-0x0000000007ffffff] > [ 0.000000] Initmem setup node 0 [mem > 0x0000000000000000-0x0000000007ffffff] > [ 0.000000] Primary instruction cache 64kB, VIPT, > 4-way, linesize 32 bytes. > [ 0.000000] Primary data cache 32kB, 4-way, PIPT, no > aliases, linesize 32 bytes > [ 0.000000] Built 1 zonelists in Zone order, mobility > grouping on. Total pages: 32512 > [ 0.000000] Kernel command line: console=ttyS0,115200 > rootfstype=squashfs,jffs2 > [ 0.000000] PID hash table entries: 512 (order: -1, > 2048 bytes) > [ 0.000000] Dentry cache hash table entries: 16384 > (order: 4, 65536 bytes) > [ 0.000000] Inode-cache hash table entries: 8192 > (order: 3, 32768 bytes) > [ 0.000000] Writing ErrCtl register=00022002 > [ 0.000000] Readback ErrCtl register=00022002 > [ 0.000000] Memory: 125488K/131072K available (3103K > kernel code, 141K rwdata, 752K rodata, 156K init, 196K > bss, 5584K reserved, 0K cma-reserved) > [ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, > CPUs=1, Nodes=1 > [ 0.000000] NR_IRQS:256 > [ 0.000000] intc: using register map from devicetree > [ 0.000000] CPU Clock: 580MHz > [ 0.000000] clocksource_probe: no matching clocksources > found > [ 0.000000] clocksource: MIPS: mask: 0xffffffff > max_cycles: 0xffffffff, max_idle_ns: 6590553264 ns > [ 0.000012] sched_clock: 32 bits at 290MHz, resolution > 3ns, wraps every 74051 15902ns > [ 0.007522] Calibrating delay loop... 385.84 BogoMIPS > (lpj=1929216) > [ 0.070037] pid_max: default: 32768 minimum: 301 > [ 0.074638] Mount-cache hash table entries: 1024 > (order: 0, 4096 bytes) > [ 0.080979] Mountpoint-cache hash table entries: 1024 > (order: 0, 4096 bytes) > [ 0.094407] clocksource: jiffies: mask: 0xffffffff > max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns > [ 0.104062] pinctrl core: initialized pinctrl subsystem > [ 0.109786] NET: Registered protocol family 16 > [ 0.135691] mt7621_gpio 10000600.gpio: registering 32 gpios > [ 0.141166] mt7621_gpio 10000600.gpio: registering 32 gpios > [ 0.146653] mt7621_gpio 10000600.gpio: registering 32 gpios > [ 0.153211] i2c-mt7621 10000900.i2c: clock 100KHz, > re-start not support > [ 0.161026] clocksource: Switched to clocksource MIPS > [ 0.167442] NET: Registered protocol family 2 > [ 0.172577] TCP established hash table entries: 1024 > (order: 0, 4096 bytes) > [ 0.179269] TCP bind hash table entries: 1024 (order: > 0, 4096 bytes) > [ 0.185449] TCP: Hash tables configured (established > 1024 bind 1024) > [ 0.191652] UDP hash table entries: 256 (order: 0, 4096 > bytes) > [ 0.197255] UDP-Lite hash table entries: 256 (order: 0, > 4096 bytes) > [ 0.203624] NET: Registered protocol family 1 > [ 0.214036] futex hash table entries: 256 (order: -1, > 3072 bytes) > [ 0.219960] Crashlog allocated RAM at address 0x3f00000 > [ 0.240245] squashfs: version 4.0 (2009/01/31) Phillip > Lougher > [ 0.245900] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) > (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc. > [ 0.258137] io scheduler noop registered > [ 0.261942] io scheduler deadline registered (default) > [ 0.268315] Serial: 8250/16550 driver, 4 ports, IRQ > sharing disabled > [ 0.276011] console [ttyS0] disabled > [ 0.279438] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 > (irq = 28, base_baud = 2500000) is a 16550A > [ 0.288217] console [ttyS0] enabled > [ 0.288217] console [ttyS0] enabled > [ 0.295211] bootconsole [early0] disabled > [ 0.295211] bootconsole [early0] disabled > [ 0.303969] 10000d00.uart1: ttyS1 at MMIO 0x10000d00 > (irq = 29, base_baud = 2500000) is a 16550A > [ 0.313561] 10000e00.uart2: ttyS2 at MMIO 0x10000e00 > (irq = 30, base_baud = 2500000) is a 16550A > [ 0.324283] spi-mt7621 10000b00.spi: sys_freq: 193333333 > [ 0.334382] m25p80 spi32766.0: using chunked io (size=31) > [ 0.339882] m25p80 spi32766.0: mx25l25635e (32768 Kbytes) > [ 0.345451] 4 ofpart partitions found on MTD device > spi32766.0 > [ 0.351378] Creating 4 MTD partitions on "spi32766.0": > [ 0.356594] 0x000000000000-0x000000030000 : "u-boot" > [ 0.363407] 0x000000030000-0x000000040000 : "u-boot-env" > [ 0.370634] 0x000000040000-0x000000050000 : "factory" > [ 0.377673] 0x000000050000-0x000002000000 : "firmware" > [ 0.425492] 2 uimage-fw partitions found on MTD device > firmware > [ 0.431550] 0x000000050000-0x000000198842 : "kernel" > [ 0.438242] 0x000000198842-0x000002000000 : "rootfs" > [ 0.445146] mtd: device 5 (rootfs) set to be root > filesystem > [ 0.450960] 1 squashfs-split partitions found on MTD > device rootfs > [ 0.457297] 0x0000006b0000-0x000002000000 : "rootfs_data" > [ 0.474397] rt3050-esw 10110000.esw: link changed 0x00 > [ 0.482079] mtk_soc_eth 10100000.ethernet eth0: > mediatek frame engine at 0xb0100000, irq 5 > [ 0.490683] i2c /dev entries driver > [ 0.494876] mt7621_wdt 10000120.watchdog: Initialized > [ 0.500240] MTK MSDC device init. > [ 0.541172] mtk-sd: MediaTek MT6575 MSDC Driver > [ 0.547206] NET: Registered protocol family 10 > [ 0.555832] NET: Registered protocol family 17 > [ 0.560430] bridge: automatic filtering via > arp/ip/ip6tables has been deprecated. Update your scripts > to load br_netfilter if you need this. > [ 0.573286] 8021q: 802.1Q VLAN Support v1.8 > [ 0.579808] mtk-linkit bootstrap: Version : > [ 0.584309] mtk-linkit bootstrap: Revision : > [ 0.593456] VFS: Mounted root (squashfs filesystem) > readonly on device 31:5. > [ 0.601535] Freeing unused kernel memory: 156K > (803e9000 - 80410000) > [ 1.630140] init: Console is alive > ... > more linux kernel messages. > > > On 10/05/2017 08:16, Stanislav Galabov wrote: > Hi Mike, > > Please try setting both the Load Address and the Entry > Point to the same value as you see as Entry point > address by using 'readelf -h’ and try booting again. > In your case this would seem to be 0x80001100. > > Please leave all dts/dtsi files unchanged (as they > originally were) for now. > > Best wishes, > Stanislav > > On May 10, 2017, at 04:33, Mike Wolman > > wrote: > > > I have just tried with clock-frequency change in > the 3 places it appears in mt7628an.dtsi > > But again some thing: > > Omega2 # bootm 0x80800000 > ## Booting image at 80800000 ... > Image Name: FreeBSD > Image Type: MIPS Linux Kernel Image > (uncompressed) > Data Size: 5654760 Bytes = 5.4 MB > Load Address: 80001000 > Entry Point: 80001100 > Verifying Checksum ... OK > OK > No initrd > ## Transferring control to Linux (at address > 80001100) ... > ## Giving linux memsize in MB, 128 > > Starting kernel ... > > > Note: When building kernel i see: > > -------------------------------------------------------------- > > stage 3.1: building everything > > -------------------------------------------------------------- > converting OMEGA2P.dts -> > /usr/home/mike/omega2/obj/mipsel_ap/mips.mipsel/usr/home/mike/omega2/src/sys/MT7628_FDT/OMEGA2P.dtb > /usr/home/mike/omega2/obj/mipsel_ap/mips.mipsel/usr/home/mike/omega2/src/sys/MT7628_FDT/OMEGA2P.dtb: > Warning (unit_address_vs_reg): Node /cpus/cpu@0 > has a unit name, but no reg property > /usr/home/mike/omega2/obj/mipsel_ap/mips.mipsel/usr/home/mike/omega2/src/sys/MT7628_FDT/OMEGA2P.dtb: > Warning (unit_address_vs_reg): Node /cpuintc@0 has > a unit name, but no reg property > /usr/home/mike/omega2/obj/mipsel_ap/mips.mipsel/usr/home/mike/omega2/src/sys/MT7628_FDT/OMEGA2P.dtb: > Warning (unit_address_vs_reg): Node > /pcie@10140000/pcie-bridge has a reg or ranges > property, but no unit name > > Are these just warnings which can be ignored or > could they be part of the problem? > > > > On 10/05/2017 01:50, Mori Hiroki wrote: > Hi mike > > I last idea is uartlite clock-frequency miss. > > clock-frequency = > <50000000>; > > But I don't know correct value. > > > > ----- Original Message ----- > > From: Mike Wolman > > To: Mori Hiroki >; Aleksandr > Rybalko > > Cc: "freebsd-mips@freebsd.org > " > > > Date: 2017/5/10, Wed 09:01 > Subject: Re: onion omega2+ > > > The new kernel with > > device uart_ns8250 > > didnt work > > On 10/05/2017 00:05, Mori Hiroki wrote: > Hi Mike. > > I seem load address is good. > > I check mt7628an.dtsi file. > > This file uart entry is > > uartlite: > uartlite@c00 { > compatible > = "ns16550a"; > In this case you must add > uart_ns8250 device to kernel > configuration. > > _______________________________________________ > freebsd-mips@freebsd.org > mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-mips > > To unsubscribe, send any mail to > "freebsd-mips-unsubscribe@freebsd.org > " > > > _______________________________________________ > freebsd-mips@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-mips > > To unsubscribe, send any mail to > "freebsd-mips-unsubscribe@freebsd.org > " > > > > > -- > WBW > ------- > Rybalko Aleksandr > >