From owner-freebsd-mips@freebsd.org Sun May 7 15:23:20 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 11C6BD619CA for ; Sun, 7 May 2017 15:23:20 +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 6CA5E17A1 for ; Sun, 7 May 2017 15:23:18 +0000 (UTC) (envelope-from mike@wolman.co.uk) Received: from [192.168.3.50] ([80.229.66.11]) by avasout08 with smtp id HTL41v0020EahWw01TL65C; Sun, 07 May 2017 16:20:06 +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=IkcTkHD0fZMA:10 a=LJ5NkaWEAAAA:8 a=bt8Zh30PAAAA:8 a=aTbLt4ZUxDARx3YCjaEA:9 a=2hoiR3_V-27R7gUe:21 a=JHpl8ksQx2ht4uyJ:21 a=QEXdDO2ut3YA:10 a=eH83O4KjmLCfbRe1EArK:22 To: freebsd-mips@freebsd.org From: Mike Wolman Subject: onion omega2+ Message-ID: <694efc3a-e183-35a1-a0bf-9a9c0d708826@wolman.co.uk> Date: Sun, 7 May 2017 16:20:04 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 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: Sun, 07 May 2017 15:23:20 -0000 Hi, I am trying to get FreeBSD working on this board - I think I am almost there in getting it working but need some help please. I have followed instructions from the freebsd-wifi-build and *think* I have got everything correct - I am trying to do this on a CURRENT setup: FreeBSD f64-current.mw.office 12.0-CURRENT FreeBSD 12.0-CURRENT #0 r317887: Sun May 7 03:20:34 UTC 2017 mike@f64-current.mw.office:/usr/obj/usr/src/sys/GENERIC-NODEBUG amd64 $ cat ~/.freebsd-wifi-build-settings.cfg X_SKIP_MORE_STUFF=YES X_EXTRA_SRC_CONF=~/omega2/src.conf $ cat ~/omega2/src.conf WITHOUT_CLANG=YES WITHOUT_CLANG_FULL=YES get dts files from thread http://community.onion.io/topic/1099/openwrt-on-the-omega-2/8 cd ~/omega2/src/sys/gnu/dts/mips fetch https://raw.githubusercontent.com/WereCatf/source/image/target/linux/ramips/dts/OMEGA2.dtsi fetch https://raw.githubusercontent.com/WereCatf/source/image/target/linux/ramips/dts/OMEGA2.dts fetch https://raw.githubusercontent.com/WereCatf/source/image/target/linux/ramips/dts/OMEGA2P.dts X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT ../freebsd-wifi-build/build/bin/build ralink buildworld X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT ../freebsd-wifi-build/build/bin/build ralink buildkernel X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT ../freebsd-wifi-build/build/bin/build ralink installworld X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT ../freebsd-wifi-build/build/bin/build ralink installkernel X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT ../freebsd-wifi-build/build/bin/build ralink distribution X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT ../freebsd-wifi-build/build/bin/build ralink mfsroot X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT ../freebsd-wifi-build/build/bin/build ralink fsimage X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT ../freebsd-wifi-build/build/bin/build ralink uboot Create flash: X_FLASH=kernel.MT7628_FDT.lzma.flash dd if=/dev/zero bs=$(( 0x200000 )) count=1 of=${X_FLASH} dd if=kernel.MT7628_FDT.lzma.uImage of=${X_FLASH} conv=notrunc dd if= mfsroot-ralink.img.lzma >> ${X_FLASH} $ readelf -h kernel.MT7628_FDT | grep Entry Entry point address: 0x80001100 Now on the omega over serial - I didnt get the network expansion doc thing so am doing stuff with usb rather than tftp I am not 100% sure about the 0x80001100 and the fatload and have tried this Omega2 # fatload usb 0:1 0x80001100 /kernel.MT7628_FDT.lzma.flash * * Reading file "/kernel.MT7628_FDT.lzma.flash" * ** ** ** ****** ********************************************************************************************************************************************* ****** * FAT: 2108463 Bytes read Omega2 # bootm 0x80001100 ## Booting image at 80001100 ... Image Name: FreeBSD Image Type: MIPS Linux Kernel Image (lzma compressed) Data Size: 1365122 Bytes = 1.3 MB Load Address: fffffff2 Entry Point: fffffff2 Verifying Checksum ... OK Uncompressing Kernel Image ... At this point nothing happens and console hangs - note in OMEGA2.dtsithe console is set to ttyS0: bootargs = "console=ttyS0,115200"; I have also tried with just kernel.MT7628_FDT and kernel.MT7628_FDT.lzma but both fail: Omega2 # fatload usb 0:1 0x80001100 /kernel.MT7628_FDT.lzma.uImage * * Reading file "/kernel.MT7628_FDT.lzma.uImage" * ** ** ****** ****************************************************************************************************************************** ********** * FAT: 1365186 Bytes read Omega2 # bootm 0x80001100 ## Booting image at 80001100 ... Image Name: FreeBSD Image Type: MIPS Linux Kernel Image (lzma compressed) Data Size: 1365122 Bytes = 1.3 MB Load Address: fffffff2 Entry Point: fffffff2 Verifying Checksum ... OK Uncompressing Kernel Image ... A few comments on the hardware for anyone who wants to get one: Get the expansion dock with serial port access - the power dock does not provide serial access - i think it is possible to use an ftdi ttl serial chip/cable but have not tried. Stupidly I forgot this only has wifi access so you are not able to tftp boot this without getting the ethernet network expansion but loading stuff up from a usb memory stick is seem fine from u-boot. I do not think that it is possible to boot from the SD card on the Omega2+ - which is a shame. Thanks for reading, Mike. From owner-freebsd-mips@freebsd.org Mon May 8 18:41:32 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 C9191D63F91 for ; Mon, 8 May 2017 18:41:32 +0000 (UTC) (envelope-from ray@ddteam.net) Received: from mail-yw0-x22c.google.com (mail-yw0-x22c.google.com [IPv6:2607:f8b0:4002:c05::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 82F341EF2 for ; Mon, 8 May 2017 18:41:32 +0000 (UTC) (envelope-from ray@ddteam.net) Received: by mail-yw0-x22c.google.com with SMTP id l135so33792369ywb.2 for ; Mon, 08 May 2017 11:41:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ddteam-net.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=xWba4dgGt5OduIYEjdqgYhpk3LHmMUlio11K7qPD5Tc=; b=mlufBBqTK3seoGRjijY4Wac8normm4kjB1TYNn3VS8WS0JsCn1qwLiMYm0Aqptkz1E wSCxRcFe7h2LowoZMmaNUryT73tbmFuiQBepbGZCs4y6gLCx5wtf63HsJMWKwyj+8hSx 5m036GvIimRSPbM+9irW54bOQAlqeM4yoPaitdWEcHcsvQpjh4oCxiHCoG/mog7Cy1Ep 9yyJBoBwbBdyNfq9n37U/K9j0OStxHUVklBU99RwtemGFuWgcSf8D8AIaaJN6ett6lzN Z5h+Ye/ACorioGhQq5O+1h1NohCHlDz6LrqatJ13Vwq3qlfBsbrmzZxJdGkum5VxiNpD QuIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=xWba4dgGt5OduIYEjdqgYhpk3LHmMUlio11K7qPD5Tc=; b=Dm9iYBcTb4wuG6/pWBJUUrqBDUiNCrxYDlCPdpgaE3OWZc2LW1DWAIi6Euo/Yi6ca8 dZ7EdZu1R2oF58WliNVhcO5rPsQ6NBsLYsOKfVdq+sd65IRIrnmwoJEDK/MWper3iSE8 qG/Hs7j2pQ893hquIO/YaS0UybPUx5DDp0WEveoO4k6h+FRgKw5TI/cGDOSZ7itCawXp UyomUzuo3M1QMy17y74mvUj1H4sOIF+yFWjBYr/73RnUGjk0o+vJOTjUQWW7GdcpMPsj UX0UtZL/W8D6/T0T3eKCZ9Fg4gYJWP4ZxrfHHkA5TXDtyohP9cO+gElrZny4Aze0ZGD3 vnDA== X-Gm-Message-State: AN3rC/4hkmFXnrXLSGvWJYFgnVzChnd1ZKMyT3I/Ok1DJZ47BD/9sAjn FBMtutwCHgBr96WX0oyMGdU59L8z530I X-Received: by 10.13.248.195 with SMTP id i186mr27503441ywf.97.1494268891035; Mon, 08 May 2017 11:41:31 -0700 (PDT) MIME-Version: 1.0 Received: by 10.37.161.194 with HTTP; Mon, 8 May 2017 11:41:30 -0700 (PDT) In-Reply-To: <694efc3a-e183-35a1-a0bf-9a9c0d708826@wolman.co.uk> References: <694efc3a-e183-35a1-a0bf-9a9c0d708826@wolman.co.uk> From: Aleksandr Rybalko Date: Mon, 8 May 2017 21:41:30 +0300 Message-ID: Subject: Re: onion omega2+ To: Mike Wolman Cc: freebsd-mips@freebsd.org Content-Type: text/plain; charset=UTF-8 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: Mon, 08 May 2017 18:41:32 -0000 Hi Mike! I see you have no "OK" after "Uncompressing Kernel Image ...", so first point uboot decompressor fail. Why fail? Because you have wrong base address in image: Load Address: fffffff2 Entry Point: fffffff2 MIPS32 machines have RAM mapped to 0x80000000 address, so adding its size, you will get max address (if 16MB, it will be 0x81000000), but you uboot image was created with 0xfffffff2. Even more, unpacked kernel expects it will be called at 0x80001100. so if you have ELF kernel (file with ELF header, like every executable) that file have to be loaded at (0x80001100 - ELF_HEADER_SIZE). In most cases it will be 0x80001100 - 0x100 = 0x80001000. But sometime (I did not found why) it can be 0x20, you can find it by looking at .text section in readelf -S. So if you have kernel with entry point 0x80001100 and .text segment offset 0x100, you have to create uboot image with load address 0x80001000 and entry point 0x80001100. If that step successful you will get: *Uncompressing Kernel Image* ... OK Starting kernel ... Last line mean, uboot did jump into kernel code. Good luck. 2017-05-07 18:20 GMT+03:00 Mike Wolman : > Hi, > > I am trying to get FreeBSD working on this board - I think I am almost > there in getting it working but need some help please. > > I have followed instructions from the freebsd-wifi-build and *think* I > have got everything correct - I am trying to do this on a CURRENT setup: > > FreeBSD f64-current.mw.office 12.0-CURRENT FreeBSD 12.0-CURRENT #0 > r317887: Sun May 7 03:20:34 UTC 2017 mike@f64-current.mw.office:/us > r/obj/usr/src/sys/GENERIC-NODEBUG amd64 > > > $ cat ~/.freebsd-wifi-build-settings.cfg > X_SKIP_MORE_STUFF=YES > X_EXTRA_SRC_CONF=~/omega2/src.conf > > $ cat ~/omega2/src.conf > WITHOUT_CLANG=YES > WITHOUT_CLANG_FULL=YES > > get dts files from thread http://community.onion.io/topi > c/1099/openwrt-on-the-omega-2/8 > > > cd ~/omega2/src/sys/gnu/dts/mips > fetch https://raw.githubusercontent.com/WereCatf/source/image/targ > et/linux/ramips/dts/OMEGA2.dtsi > fetch https://raw.githubusercontent.com/WereCatf/source/image/targ > et/linux/ramips/dts/OMEGA2.dts > fetch https://raw.githubusercontent.com/WereCatf/source/image/targ > et/linux/ramips/dts/OMEGA2P.dts > > X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT ../freebsd-wifi-build/build/bin/build > ralink buildworld > X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT ../freebsd-wifi-build/build/bin/build > ralink buildkernel > X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT ../freebsd-wifi-build/build/bin/build > ralink installworld > X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT ../freebsd-wifi-build/build/bin/build > ralink installkernel > X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT ../freebsd-wifi-build/build/bin/build > ralink distribution > > > X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT ../freebsd-wifi-build/build/bin/build > ralink mfsroot > X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT ../freebsd-wifi-build/build/bin/build > ralink fsimage > X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT ../freebsd-wifi-build/build/bin/build > ralink uboot > > > Create flash: > > X_FLASH=kernel.MT7628_FDT.lzma.flash > dd if=/dev/zero bs=$(( 0x200000 )) count=1 of=${X_FLASH} > dd if=kernel.MT7628_FDT.lzma.uImage of=${X_FLASH} conv=notrunc > dd if= mfsroot-ralink.img.lzma >> ${X_FLASH} > > > $ readelf -h kernel.MT7628_FDT | grep Entry > Entry point address: 0x80001100 > > > > > Now on the omega over serial - I didnt get the network expansion doc thing > so am doing stuff with usb rather than tftp > > I am not 100% sure about the 0x80001100 and the fatload and have tried this > > Omega2 # fatload usb 0:1 0x80001100 /kernel.MT7628_FDT.lzma.flash > * > * > Reading file "/kernel.MT7628_FDT.lzma.flash" > * > ** > ** > ** > ****** > ************************************************************ > ************************************************************ > ********************* > ****** > * > FAT: 2108463 Bytes read > Omega2 # bootm 0x80001100 > ## Booting image at 80001100 ... > Image Name: FreeBSD > Image Type: MIPS Linux Kernel Image (lzma compressed) > Data Size: 1365122 Bytes = 1.3 MB > Load Address: fffffff2 > Entry Point: fffffff2 > Verifying Checksum ... OK > Uncompressing Kernel Image ... > > > At this point nothing happens and console hangs - note in OMEGA2.dtsithe > console is set to ttyS0: > > bootargs = "console=ttyS0,115200"; > > > > > I have also tried with just kernel.MT7628_FDT and kernel.MT7628_FDT.lzma > but both fail: > > Omega2 # fatload usb 0:1 0x80001100 /kernel.MT7628_FDT.lzma.uImage > * > * > Reading file "/kernel.MT7628_FDT.lzma.uImage" > * > ** > ** > ****** > ************************************************************ > ****************************************************************** > ********** > * > FAT: 1365186 Bytes read > Omega2 # bootm 0x80001100 > ## Booting image at 80001100 ... > Image Name: FreeBSD > Image Type: MIPS Linux Kernel Image (lzma compressed) > Data Size: 1365122 Bytes = 1.3 MB > Load Address: fffffff2 > Entry Point: fffffff2 > Verifying Checksum ... OK > Uncompressing Kernel Image ... > > > A few comments on the hardware for anyone who wants to get one: > > Get the expansion dock with serial port access - the power dock does not > provide serial access - i think it is possible to use an ftdi ttl serial > chip/cable but have not tried. > > Stupidly I forgot this only has wifi access so you are not able to tftp > boot this without getting the ethernet network expansion but loading stuff > up from a usb memory stick is seem fine from u-boot. > > I do not think that it is possible to boot from the SD card on the Omega2+ > - which is a shame. > > Thanks for reading, > > Mike. > > > > _______________________________________________ > 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 From owner-freebsd-mips@freebsd.org Mon May 8 19:02:40 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 015E6D6393F for ; Mon, 8 May 2017 19:02:40 +0000 (UTC) (envelope-from mike@wolman.co.uk) Received: from avasout07.plus.net (avasout07.plus.net [84.93.230.235]) (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 179B23EE for ; Mon, 8 May 2017 19:02:38 +0000 (UTC) (envelope-from mike@wolman.co.uk) Received: from [192.168.3.50] ([80.229.66.11]) by avasout07 with smtp id HuzM1v0010EahWw01uzNFE; Mon, 08 May 2017 19:59:26 +0100 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.2 cv=HP2zLslv c=1 sm=1 tr=0 a=sNOkzuqjfbpz3c/qSHODpA==:117 a=sNOkzuqjfbpz3c/qSHODpA==:17 a=r77TgQKjGQsHNAKrUKIA:9 a=UmSUZ3ptAAAA:8 a=LJ5NkaWEAAAA:8 a=bt8Zh30PAAAA:8 a=6I5d2MoRAAAA:8 a=4I05h4SrAAAA:8 a=pvs3fzftAEUwwI_7Cp8A:9 a=Fy9pXyE5MgGeB1Ed:21 a=5lYTWfkfivOG8u8l:21 a=QEXdDO2ut3YA:10 a=pGLkceISAAAA:8 a=IIX2BFdiAAAA:8 a=jVPQDCJlo6uDw0OIn8wA:9 a=EEYHxfXj0-LkOWlB:21 a=__3D66TJmanOQvIm:21 a=GKXuHf5PRGGrhex0:21 a=_W_S_7VecoQA:10 a=FyGKTEvU35uc88vWBdgE:22 a=eH83O4KjmLCfbRe1EArK:22 a=IjZwj45LgO3ly-622nXo:22 a=SXYKVUms7l59yVxtnTo9: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> Cc: freebsd-mips@freebsd.org From: Mike Wolman Message-ID: <6ec222fc-a707-7986-474a-d9a7150ad290@wolman.co.uk> Date: Mon, 8 May 2017 19:59:20 +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: 7bit 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: Mon, 08 May 2017 19:02:40 -0000 Thanks Aleksandr, I will have a go with trying to get the address correct - this was the main thing I was unsure if I had got right Will report back hopefully with a dmesg later, Mike. On 08/05/2017 19:41, Aleksandr Rybalko wrote: > Hi Mike! > > I see you have no "OK" after "Uncompressing Kernel Image ...", so > first point uboot decompressor fail. > Why fail? Because you have wrong base address in image: > Load Address: fffffff2 > Entry Point: fffffff2 > MIPS32 machines have RAM mapped to 0x80000000 address, so adding its > size, you will get max address (if 16MB, it will be 0x81000000), but > you uboot image was created with 0xfffffff2. > > Even more, unpacked kernel expects it will be called at 0x80001100. so > if you have ELF kernel (file with ELF header, like every executable) > that file have to be loaded at (0x80001100 - ELF_HEADER_SIZE). > In most cases it will be 0x80001100 - 0x100 = 0x80001000. But sometime > (I did not found why) it can be 0x20, you can find it by looking at > .text section in readelf -S. > > So if you have kernel with entry point 0x80001100 and .text segment > offset 0x100, you have to create uboot image with load address > 0x80001000 and entry point 0x80001100. > > If that step successful you will get: > /Uncompressing Kernel Image/ ... OK > Starting kernel ... > > Last line mean, uboot did jump into kernel code. > > Good luck. > > 2017-05-07 18:20 GMT+03:00 Mike Wolman >: > > Hi, > > I am trying to get FreeBSD working on this board - I think I am > almost there in getting it working but need some help please. > > I have followed instructions from the freebsd-wifi-build and > *think* I have got everything correct - I am trying to do this on > a CURRENT setup: > > FreeBSD f64-current.mw.office 12.0-CURRENT FreeBSD 12.0-CURRENT #0 > r317887: Sun May 7 03:20:34 UTC 2017 > mike@f64-current.mw.office:/usr/obj/usr/src/sys/GENERIC-NODEBUG amd64 > > > $ cat ~/.freebsd-wifi-build-settings.cfg > X_SKIP_MORE_STUFF=YES > X_EXTRA_SRC_CONF=~/omega2/src.conf > > $ cat ~/omega2/src.conf > WITHOUT_CLANG=YES > WITHOUT_CLANG_FULL=YES > > get dts files from thread > http://community.onion.io/topic/1099/openwrt-on-the-omega-2/8 > > > > cd ~/omega2/src/sys/gnu/dts/mips > fetch > https://raw.githubusercontent.com/WereCatf/source/image/target/linux/ramips/dts/OMEGA2.dtsi > > fetch > https://raw.githubusercontent.com/WereCatf/source/image/target/linux/ramips/dts/OMEGA2.dts > > fetch > https://raw.githubusercontent.com/WereCatf/source/image/target/linux/ramips/dts/OMEGA2P.dts > > > X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT > ../freebsd-wifi-build/build/bin/build ralink buildworld > X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT > ../freebsd-wifi-build/build/bin/build ralink buildkernel > X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT > ../freebsd-wifi-build/build/bin/build ralink installworld > X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT > ../freebsd-wifi-build/build/bin/build ralink installkernel > X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT > ../freebsd-wifi-build/build/bin/build ralink distribution > > > X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT > ../freebsd-wifi-build/build/bin/build ralink mfsroot > X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT > ../freebsd-wifi-build/build/bin/build ralink fsimage > X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT > ../freebsd-wifi-build/build/bin/build ralink uboot > > > Create flash: > > X_FLASH=kernel.MT7628_FDT.lzma.flash > dd if=/dev/zero bs=$(( 0x200000 )) count=1 of=${X_FLASH} > dd if=kernel.MT7628_FDT.lzma.uImage of=${X_FLASH} conv=notrunc > dd if= mfsroot-ralink.img.lzma >> ${X_FLASH} > > > $ readelf -h kernel.MT7628_FDT | grep Entry > Entry point address: 0x80001100 > > > > > Now on the omega over serial - I didnt get the network expansion > doc thing so am doing stuff with usb rather than tftp > > I am not 100% sure about the 0x80001100 and the fatload and have > tried this > > Omega2 # fatload usb 0:1 0x80001100 /kernel.MT7628_FDT.lzma.flash > * > * > Reading file "/kernel.MT7628_FDT.lzma.flash" > * > ** > ** > ** > ****** > ********************************************************************************************************************************************* > ****** > * > FAT: 2108463 Bytes read > Omega2 # bootm 0x80001100 > ## Booting image at 80001100 ... > Image Name: FreeBSD > Image Type: MIPS Linux Kernel Image (lzma compressed) > Data Size: 1365122 Bytes = 1.3 MB > Load Address: fffffff2 > Entry Point: fffffff2 > Verifying Checksum ... OK > Uncompressing Kernel Image ... > > > At this point nothing happens and console hangs - note in > OMEGA2.dtsithe console is set to ttyS0: > > bootargs = "console=ttyS0,115200"; > > > > > I have also tried with just kernel.MT7628_FDT and > kernel.MT7628_FDT.lzma but both fail: > > Omega2 # fatload usb 0:1 0x80001100 /kernel.MT7628_FDT.lzma.uImage > * > * > Reading file "/kernel.MT7628_FDT.lzma.uImage" > * > ** > ** > ****** > ****************************************************************************************************************************** > ********** > * > FAT: 1365186 Bytes read > Omega2 # bootm 0x80001100 > ## Booting image at 80001100 ... > Image Name: FreeBSD > Image Type: MIPS Linux Kernel Image (lzma compressed) > Data Size: 1365122 Bytes = 1.3 MB > Load Address: fffffff2 > Entry Point: fffffff2 > Verifying Checksum ... OK > Uncompressing Kernel Image ... > > > A few comments on the hardware for anyone who wants to get one: > > Get the expansion dock with serial port access - the power dock > does not provide serial access - i think it is possible to use an > ftdi ttl serial chip/cable but have not tried. > > Stupidly I forgot this only has wifi access so you are not able to > tftp boot this without getting the ethernet network expansion but > loading stuff up from a usb memory stick is seem fine from u-boot. > > I do not think that it is possible to boot from the SD card on the > Omega2+ - which is a shame. > > Thanks for reading, > > Mike. > > > > _______________________________________________ > 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 > > From owner-freebsd-mips@freebsd.org Mon May 8 20:58:30 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 CBB9BD63983 for ; Mon, 8 May 2017 20:58:30 +0000 (UTC) (envelope-from mike@wolman.co.uk) Received: from avasout07.plus.net (avasout07.plus.net [84.93.230.235]) (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 C4F3818B3 for ; Mon, 8 May 2017 20:58:29 +0000 (UTC) (envelope-from mike@wolman.co.uk) Received: from [192.168.3.50] ([80.229.66.11]) by avasout07 with smtp id HwyR1v0020EahWw01wyS0a; Mon, 08 May 2017 21:58:27 +0100 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.2 cv=HP2zLslv c=1 sm=1 tr=0 a=sNOkzuqjfbpz3c/qSHODpA==:117 a=sNOkzuqjfbpz3c/qSHODpA==:17 a=r77TgQKjGQsHNAKrUKIA:9 a=NEAV23lmAAAA:8 a=UmSUZ3ptAAAA:8 a=LJ5NkaWEAAAA:8 a=bt8Zh30PAAAA:8 a=6I5d2MoRAAAA:8 a=4I05h4SrAAAA:8 a=klAsAio_4CA3yxnA4AQA:9 a=0CQ5w2QKoE1WhhpJ:21 a=epKDpS5JOKAoTOLY:21 a=QEXdDO2ut3YA:10 a=pGLkceISAAAA:8 a=IIX2BFdiAAAA:8 a=MqoBobkXTVbsG3paFloA:9 a=eDj5ZxUS2h2q_RZE:21 a=1mWGpIYhyrgC8EYv:21 a=GfAsPRsx5mfiOBFd:21 a=_W_S_7VecoQA:10 a=FyGKTEvU35uc88vWBdgE:22 a=eH83O4KjmLCfbRe1EArK:22 a=IjZwj45LgO3ly-622nXo:22 a=SXYKVUms7l59yVxtnTo9: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> Cc: freebsd-mips@freebsd.org From: Mike Wolman Message-ID: Date: Mon, 8 May 2017 21:58:24 +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: 7bit 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: Mon, 08 May 2017 20:58:31 -0000 I am getting further - i think the build script for ralink doesnt extract the infomation properly for the loader and starting address: https://github.com/freebsd/freebsd-wifi-build/blob/e3303a6e5ee13e096bdd3769e2e7e523fefb6f51/build/bin/build_ralink I have now rebuilt the image files with: UBOOT_KERN_LOADADDR="0x80001000" UBOOT_KERN_STARTADDR="0x80001100" X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT ../freebsd-wifi-build/build/bin/build ralink mfsroot UBOOT_KERN_LOADADDR="0x80001000" UBOOT_KERN_STARTADDR="0x80001100" X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT ../freebsd-wifi-build/build/bin/build ralink fsimage UBOOT_KERN_LOADADDR="0x80001000" UBOOT_KERN_STARTADDR="0x80001100" X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT ../freebsd-wifi-build/build/bin/build ralink uboot The U-Boot build image looks good: [mike@f64-current ~/omega2/src]$ UBOOT_KERN_LOADADDR="0x80001000" UBOOT_KERN_STARTADDR="0x80001100" X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT ../freebsd-wifi-build/build/bin/build ralink uboot Checking - uboot-mkimage-2010.12 .. OK. Checking - lzma .. OK. Checking - perl5 .. OK. Checking - rsync .. OK. Checking - mips-xtoolchain-gcc .. OK. *** Configuration file : ralink *** Base configuration : mipsel_ap *** Platform : mipsel_ap Build list: uboot *** Target : uboot LZMA 9.22 beta : Igor Pavlov : Public domain : 2011-04-18 Image Name: FreeBSD Created: Mon May 8 21:35:02 2017 Image Type: MIPS Linux Kernel Image (lzma compressed) Data Size: 1365619 Bytes = 1333.61 kB = 1.30 MB Load Address: 80001000 Entry Point: 80001100 *** Target Done. *** Build Completed. On the omega: ____ _ ____ / __ \___ (_)__ ___ / __ \__ _ ___ ___ ____ _ / /_/ / _ \/ / _ \/ _ \ / /_/ / ' \/ -_) _ `/ _ `/ \____/_//_/_/\___/_//_/ \____/_/_/_/\__/\_, /\_,_/ W H A T W I L L Y O U I N V E N T ? /___/" Board: Onion Omega2 APSoC DRAM: 128 MB relocate_code Pointer at: 87f60000 flash manufacture id: c2, device id 20 19 find flash: MX25L25635E *** Warning - bad CRC, using default environment ============================================ Onion Omega2 UBoot Version: 4.3.0.3 -------------------------------------------- ASIC 7628_MP (Port5<->None) DRAM component: 1024 Mbits DDR, width 16 DRAM bus: 16 bit Total memory: 128 MBytes Flash component: SPI Flash Date:Oct 18 2016 Time:17:29:05 ============================================ icache: sets:512, ways:4, linesz:32 ,total:65536 dcache: sets:256, ways:4, linesz:32 ,total:32768 CPU freq = 575 MHZ Estimated memory size = 128 Mbytes Resetting MT7628 PHY. Initializing MT7688 GPIO system. ************************************** * Hold Reset button for more options * ************************************** You have 40 seconds left to select a menu option... Please select option: [ Enter ]: Boot Omega2. [ 0 ]: Start Web recovery mode. [ 1 ]: Start command line mode. [ 2 ]: Flash firmware from USB storage. Option [1] selected. 1: System Enter Boot Command Line Interface. U-Boot 1.1.3 (Oct 18 2016 - 17:29:05) Omega2 # usb reset (Re)start USB... LOW LEVEL INIT USB0: Scanning bus 0 for devices... New Device 0 ... value 0x302 index 0x409 length 0xFF usb_control_msg: status = success? Manufacturer Product USB Flash Drive SerialNumber 070B00012340350 Device is a hub? 2 USB Device(s) found scan end Scanning bus for storage devices... ================================================= 1: Hub, USB Revision 1.10 - OHCI Root Hub - Class: Hub - PacketSize: 8 Configurations: 1 - Vendor: 0x0000 Product 0x0000 Version 0.0 ================================================= 2: Mass Storage, USB Revision 2.0 - USB Flash Drive 070B00012340350 - Class: (from Interface) Mass Storage - PacketSize: 64 Configurations: 1 - Vendor: 0x1005 Product 0xb113 Version 1.0 Testing BULK mode...Identifying a storage device...* USB_STORAGE: 1 Storage Device(s) found Omega2 # fatload usb 0:1 0x80001000 /kernel.MT7628_FDT.lzma.uImage * * Reading file "/kernel.MT7628_FDT.lzma.uImage" * ** ** ** ** ** ** ** ** ****** ******************************************************************************** ********************************************** *********** * FAT: 1365683 Bytes read Omega2 # bootm 0x80001000 ## Booting image at 80001000 ... Image Name: FreeBSD Image Type: MIPS Linux Kernel Image (lzma compressed) Data Size: 1365619 Bytes = 1.3 MB Load Address: 80001000 Entry Point: 80001100 Verifying Checksum ... OK Uncompressing Kernel Image ... LZMA ERROR 1 - must RESET board to recover At this point the board resets/reboots. I have tried using the kernel.MT7628_FDT.lzma.flash instead but have the same LZMA Error. I rebuilt before this post just in case there was an actual error with the files/usb mem key but still get the same problem. Is there a different lzma format I should be using? (I have just let the build scripts create these). Bit of info from file in case of use: [mike@f64-current ~/omega2/tftpboot]$ file kernel.MT7628_FDT.lzma.uImage kernel.MT7628_FDT.lzma.uImage: u-boot legacy uImage, FreeBSD, Linux/MIPS, OS Kernel Image (lzma), 1365619 bytes, Mon May 8 21:35:02 2017, Load Address: 0x80001000, Entry Point: 0x80001100, Header CRC: 0x47AD12EF, Data CRC: 0x64FCF0B6 On 08/05/2017 19:41, Aleksandr Rybalko wrote: > Hi Mike! > > I see you have no "OK" after "Uncompressing Kernel Image ...", so > first point uboot decompressor fail. > Why fail? Because you have wrong base address in image: > Load Address: fffffff2 > Entry Point: fffffff2 > MIPS32 machines have RAM mapped to 0x80000000 address, so adding its > size, you will get max address (if 16MB, it will be 0x81000000), but > you uboot image was created with 0xfffffff2. > > Even more, unpacked kernel expects it will be called at 0x80001100. so > if you have ELF kernel (file with ELF header, like every executable) > that file have to be loaded at (0x80001100 - ELF_HEADER_SIZE). > In most cases it will be 0x80001100 - 0x100 = 0x80001000. But sometime > (I did not found why) it can be 0x20, you can find it by looking at > .text section in readelf -S. > > So if you have kernel with entry point 0x80001100 and .text segment > offset 0x100, you have to create uboot image with load address > 0x80001000 and entry point 0x80001100. > > If that step successful you will get: > /Uncompressing Kernel Image/ ... OK > Starting kernel ... > > Last line mean, uboot did jump into kernel code. > > Good luck. > > 2017-05-07 18:20 GMT+03:00 Mike Wolman >: > > Hi, > > I am trying to get FreeBSD working on this board - I think I am > almost there in getting it working but need some help please. > > I have followed instructions from the freebsd-wifi-build and > *think* I have got everything correct - I am trying to do this on > a CURRENT setup: > > FreeBSD f64-current.mw.office 12.0-CURRENT FreeBSD 12.0-CURRENT #0 > r317887: Sun May 7 03:20:34 UTC 2017 > mike@f64-current.mw.office:/usr/obj/usr/src/sys/GENERIC-NODEBUG amd64 > > > $ cat ~/.freebsd-wifi-build-settings.cfg > X_SKIP_MORE_STUFF=YES > X_EXTRA_SRC_CONF=~/omega2/src.conf > > $ cat ~/omega2/src.conf > WITHOUT_CLANG=YES > WITHOUT_CLANG_FULL=YES > > get dts files from thread > http://community.onion.io/topic/1099/openwrt-on-the-omega-2/8 > > > > cd ~/omega2/src/sys/gnu/dts/mips > fetch > https://raw.githubusercontent.com/WereCatf/source/image/target/linux/ramips/dts/OMEGA2.dtsi > > fetch > https://raw.githubusercontent.com/WereCatf/source/image/target/linux/ramips/dts/OMEGA2.dts > > fetch > https://raw.githubusercontent.com/WereCatf/source/image/target/linux/ramips/dts/OMEGA2P.dts > > > X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT > ../freebsd-wifi-build/build/bin/build ralink buildworld > X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT > ../freebsd-wifi-build/build/bin/build ralink buildkernel > X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT > ../freebsd-wifi-build/build/bin/build ralink installworld > X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT > ../freebsd-wifi-build/build/bin/build ralink installkernel > X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT > ../freebsd-wifi-build/build/bin/build ralink distribution > > > X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT > ../freebsd-wifi-build/build/bin/build ralink mfsroot > X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT > ../freebsd-wifi-build/build/bin/build ralink fsimage > X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT > ../freebsd-wifi-build/build/bin/build ralink uboot > > > Create flash: > > X_FLASH=kernel.MT7628_FDT.lzma.flash > dd if=/dev/zero bs=$(( 0x200000 )) count=1 of=${X_FLASH} > dd if=kernel.MT7628_FDT.lzma.uImage of=${X_FLASH} conv=notrunc > dd if= mfsroot-ralink.img.lzma >> ${X_FLASH} > > > $ readelf -h kernel.MT7628_FDT | grep Entry > Entry point address: 0x80001100 > > > > > Now on the omega over serial - I didnt get the network expansion > doc thing so am doing stuff with usb rather than tftp > > I am not 100% sure about the 0x80001100 and the fatload and have > tried this > > Omega2 # fatload usb 0:1 0x80001100 /kernel.MT7628_FDT.lzma.flash > * > * > Reading file "/kernel.MT7628_FDT.lzma.flash" > * > ** > ** > ** > ****** > ********************************************************************************************************************************************* > ****** > * > FAT: 2108463 Bytes read > Omega2 # bootm 0x80001100 > ## Booting image at 80001100 ... > Image Name: FreeBSD > Image Type: MIPS Linux Kernel Image (lzma compressed) > Data Size: 1365122 Bytes = 1.3 MB > Load Address: fffffff2 > Entry Point: fffffff2 > Verifying Checksum ... OK > Uncompressing Kernel Image ... > > > At this point nothing happens and console hangs - note in > OMEGA2.dtsithe console is set to ttyS0: > > bootargs = "console=ttyS0,115200"; > > > > > I have also tried with just kernel.MT7628_FDT and > kernel.MT7628_FDT.lzma but both fail: > > Omega2 # fatload usb 0:1 0x80001100 /kernel.MT7628_FDT.lzma.uImage > * > * > Reading file "/kernel.MT7628_FDT.lzma.uImage" > * > ** > ** > ****** > ****************************************************************************************************************************** > ********** > * > FAT: 1365186 Bytes read > Omega2 # bootm 0x80001100 > ## Booting image at 80001100 ... > Image Name: FreeBSD > Image Type: MIPS Linux Kernel Image (lzma compressed) > Data Size: 1365122 Bytes = 1.3 MB > Load Address: fffffff2 > Entry Point: fffffff2 > Verifying Checksum ... OK > Uncompressing Kernel Image ... > > > A few comments on the hardware for anyone who wants to get one: > > Get the expansion dock with serial port access - the power dock > does not provide serial access - i think it is possible to use an > ftdi ttl serial chip/cable but have not tried. > > Stupidly I forgot this only has wifi access so you are not able to > tftp boot this without getting the ethernet network expansion but > loading stuff up from a usb memory stick is seem fine from u-boot. > > I do not think that it is possible to boot from the SD card on the > Omega2+ - which is a shame. > > Thanks for reading, > > Mike. > > > > _______________________________________________ > 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 > > From owner-freebsd-mips@freebsd.org Mon May 8 22:48:42 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 49028D63801 for ; Mon, 8 May 2017 22:48:42 +0000 (UTC) (envelope-from mike@wolman.co.uk) Received: from avasout07.plus.net (avasout07.plus.net [84.93.230.235]) (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 6B0DCC0B for ; Mon, 8 May 2017 22:48:40 +0000 (UTC) (envelope-from mike@wolman.co.uk) Received: from [192.168.3.50] ([80.229.66.11]) by avasout07 with smtp id Hyod1v0040EahWw01yoeTh; Mon, 08 May 2017 23:48:38 +0100 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.2 cv=HP2zLslv c=1 sm=1 tr=0 a=sNOkzuqjfbpz3c/qSHODpA==:117 a=sNOkzuqjfbpz3c/qSHODpA==:17 a=r77TgQKjGQsHNAKrUKIA:9 a=jdP34snFAAAA:8 a=UmSUZ3ptAAAA:8 a=LJ5NkaWEAAAA:8 a=bt8Zh30PAAAA:8 a=6I5d2MoRAAAA:8 a=4I05h4SrAAAA:8 a=wTo6f-YwqaNFsHBk16YA:9 a=fcP3pWA5dMFIvHfX:21 a=6LHz0lEwGjbsYHm2:21 a=QEXdDO2ut3YA:10 a=A3VBoO50a3AA:10 a=pGLkceISAAAA:8 a=IIX2BFdiAAAA:8 a=NzaaHTVrWpQkoAVHW9AA:9 a=Cn0qkoJbwpY_EikI:21 a=0kFzuWWxYPwBwSAv:21 a=l5uy2G6aoEpcAj2U:21 a=_W_S_7VecoQA:10 a=jlphF6vWLdwq7oh3TaWq:22 a=FyGKTEvU35uc88vWBdgE:22 a=eH83O4KjmLCfbRe1EArK:22 a=IjZwj45LgO3ly-622nXo:22 a=SXYKVUms7l59yVxtnTo9:22 a=6kGIvZw6iX1k4Y-7sg4_:22 a=rHg00LAlvzXsuODty-Nv:22 Subject: Re: onion omega2+ To: freebsd-mips@freebsd.org References: <694efc3a-e183-35a1-a0bf-9a9c0d708826@wolman.co.uk> From: Mike Wolman Message-ID: Date: Mon, 8 May 2017 23:48:35 +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: 7bit 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: Mon, 08 May 2017 22:48:42 -0000 More info in case anyone can point me in the right direction. I have found: https://forum.openwrt.org/viewtopic.php?id=53865 I have tried changing how lzma compresses the kernel by adding -d20 to the build scripts eg: /usr/local/bin/lzma e /home/mike/omega2/src/../root/mipsel_ap/boot/kernel.MT7628_FDT/kernel \ /home/mike/omega2/src/../tftpboot/kernel.MT7628_FDT.lzma -d20 This did not work. Looking at the onion omega conf I see that it uses mkuzip and not lzma with the following settings: X_FSIMAGE_CMD="mkuzip" X_FSIMAGE_ARGS="-L -d -s 65536 -v" X_FSIMAGE_SUFFIX=".ulzma" So tried the following: mkuzip -L -d -s 65536 -v -o kernel.MT7628_FDT.ulzma kernel.MT7628_FDT mkimage -A mips -O linux -T kernel -C lzma \ -a 0x80001000 -e 0x80001100 \ -n "FreeBSD" -d kernel.MT7628_FDT.lzma kernel.MT7628_FDT.ulzma.uImage But this did not work either. On 08/05/2017 19:41, Aleksandr Rybalko wrote: > Hi Mike! > > I see you have no "OK" after "Uncompressing Kernel Image ...", so > first point uboot decompressor fail. > Why fail? Because you have wrong base address in image: > Load Address: fffffff2 > Entry Point: fffffff2 > MIPS32 machines have RAM mapped to 0x80000000 address, so adding its > size, you will get max address (if 16MB, it will be 0x81000000), but > you uboot image was created with 0xfffffff2. > > Even more, unpacked kernel expects it will be called at 0x80001100. so > if you have ELF kernel (file with ELF header, like every executable) > that file have to be loaded at (0x80001100 - ELF_HEADER_SIZE). > In most cases it will be 0x80001100 - 0x100 = 0x80001000. But sometime > (I did not found why) it can be 0x20, you can find it by looking at > .text section in readelf -S. > > So if you have kernel with entry point 0x80001100 and .text segment > offset 0x100, you have to create uboot image with load address > 0x80001000 and entry point 0x80001100. > > If that step successful you will get: > /Uncompressing Kernel Image/ ... OK > Starting kernel ... > > Last line mean, uboot did jump into kernel code. > > Good luck. > > 2017-05-07 18:20 GMT+03:00 Mike Wolman >: > > Hi, > > I am trying to get FreeBSD working on this board - I think I am > almost there in getting it working but need some help please. > > I have followed instructions from the freebsd-wifi-build and > *think* I have got everything correct - I am trying to do this on > a CURRENT setup: > > FreeBSD f64-current.mw.office 12.0-CURRENT FreeBSD 12.0-CURRENT #0 > r317887: Sun May 7 03:20:34 UTC 2017 > mike@f64-current.mw.office:/usr/obj/usr/src/sys/GENERIC-NODEBUG amd64 > > > $ cat ~/.freebsd-wifi-build-settings.cfg > X_SKIP_MORE_STUFF=YES > X_EXTRA_SRC_CONF=~/omega2/src.conf > > $ cat ~/omega2/src.conf > WITHOUT_CLANG=YES > WITHOUT_CLANG_FULL=YES > > get dts files from thread > http://community.onion.io/topic/1099/openwrt-on-the-omega-2/8 > > > > cd ~/omega2/src/sys/gnu/dts/mips > fetch > https://raw.githubusercontent.com/WereCatf/source/image/target/linux/ramips/dts/OMEGA2.dtsi > > fetch > https://raw.githubusercontent.com/WereCatf/source/image/target/linux/ramips/dts/OMEGA2.dts > > fetch > https://raw.githubusercontent.com/WereCatf/source/image/target/linux/ramips/dts/OMEGA2P.dts > > > X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT > ../freebsd-wifi-build/build/bin/build ralink buildworld > X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT > ../freebsd-wifi-build/build/bin/build ralink buildkernel > X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT > ../freebsd-wifi-build/build/bin/build ralink installworld > X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT > ../freebsd-wifi-build/build/bin/build ralink installkernel > X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT > ../freebsd-wifi-build/build/bin/build ralink distribution > > > X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT > ../freebsd-wifi-build/build/bin/build ralink mfsroot > X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT > ../freebsd-wifi-build/build/bin/build ralink fsimage > X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT > ../freebsd-wifi-build/build/bin/build ralink uboot > > > Create flash: > > X_FLASH=kernel.MT7628_FDT.lzma.flash > dd if=/dev/zero bs=$(( 0x200000 )) count=1 of=${X_FLASH} > dd if=kernel.MT7628_FDT.lzma.uImage of=${X_FLASH} conv=notrunc > dd if= mfsroot-ralink.img.lzma >> ${X_FLASH} > > > $ readelf -h kernel.MT7628_FDT | grep Entry > Entry point address: 0x80001100 > > > > > Now on the omega over serial - I didnt get the network expansion > doc thing so am doing stuff with usb rather than tftp > > I am not 100% sure about the 0x80001100 and the fatload and have > tried this > > Omega2 # fatload usb 0:1 0x80001100 /kernel.MT7628_FDT.lzma.flash > * > * > Reading file "/kernel.MT7628_FDT.lzma.flash" > * > ** > ** > ** > ****** > ********************************************************************************************************************************************* > ****** > * > FAT: 2108463 Bytes read > Omega2 # bootm 0x80001100 > ## Booting image at 80001100 ... > Image Name: FreeBSD > Image Type: MIPS Linux Kernel Image (lzma compressed) > Data Size: 1365122 Bytes = 1.3 MB > Load Address: fffffff2 > Entry Point: fffffff2 > Verifying Checksum ... OK > Uncompressing Kernel Image ... > > > At this point nothing happens and console hangs - note in > OMEGA2.dtsithe console is set to ttyS0: > > bootargs = "console=ttyS0,115200"; > > > > > I have also tried with just kernel.MT7628_FDT and > kernel.MT7628_FDT.lzma but both fail: > > Omega2 # fatload usb 0:1 0x80001100 /kernel.MT7628_FDT.lzma.uImage > * > * > Reading file "/kernel.MT7628_FDT.lzma.uImage" > * > ** > ** > ****** > ****************************************************************************************************************************** > ********** > * > FAT: 1365186 Bytes read > Omega2 # bootm 0x80001100 > ## Booting image at 80001100 ... > Image Name: FreeBSD > Image Type: MIPS Linux Kernel Image (lzma compressed) > Data Size: 1365122 Bytes = 1.3 MB > Load Address: fffffff2 > Entry Point: fffffff2 > Verifying Checksum ... OK > Uncompressing Kernel Image ... > > > A few comments on the hardware for anyone who wants to get one: > > Get the expansion dock with serial port access - the power dock > does not provide serial access - i think it is possible to use an > ftdi ttl serial chip/cable but have not tried. > > Stupidly I forgot this only has wifi access so you are not able to > tftp boot this without getting the ethernet network expansion but > loading stuff up from a usb memory stick is seem fine from u-boot. > > I do not think that it is possible to boot from the SD card on the > Omega2+ - which is a shame. > > Thanks for reading, > > Mike. > > > > _______________________________________________ > 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 > > From owner-freebsd-mips@freebsd.org Tue May 9 00:18:08 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 54A04D64E52 for ; Tue, 9 May 2017 00:18:08 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from nh501-vm6.bullet.mail.kks.yahoo.co.jp (nh501-vm6.bullet.mail.kks.yahoo.co.jp [183.79.56.136]) by mx1.freebsd.org (Postfix) with SMTP id B1B7E121B for ; Tue, 9 May 2017 00:18:07 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from [183.79.100.138] by nh501.bullet.mail.kks.yahoo.co.jp with NNFMP; 09 May 2017 00:18:00 -0000 Received: from [183.79.100.134] by t501.bullet.mail.kks.yahoo.co.jp with NNFMP; 09 May 2017 00:17:59 -0000 Received: from [127.0.0.1] by omp503.mail.kks.yahoo.co.jp with NNFMP; 09 May 2017 00:17:59 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 929967.93581.bm@omp503.mail.kks.yahoo.co.jp Received: (qmail 69814 invoked by uid 60001); 9 May 2017 00:17:59 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.jp; s=yj20110701; t=1494289079; bh=Z6KGzNHYo4/wLLl2I0PTyAaOkGBf7PtMLIzf7golsHs=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:X-YMail-JAS:References:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=twZzEiTrej1ty2DYtKqsv91fLgm3diUXvIJIOmOQT1HQUhsk2yvF6gCD6uzZZfqtJSGdl0Mry+LIj17kxV8S/I4DVKxY9XHhSw6Mb33x7lydRk7J2AUWL6tf1p5Ml72yQ0OeLEng6tESaPjwNg1ZSGiTQK+f9qU9/m1Kvb7N8nc= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=yj20110701; d=yahoo.co.jp; h=Message-ID:X-YMail-OSG:Received:X-Mailer:X-YMail-JAS:References:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=aW3OFfYVIlnGaVtYuSOpZcxe6hUYF3D5Hmhg42yBI4TU9nB3TCY/EQMeWsQNI/NTCbOptX92eK5qCRQdM5zY+Vem2/Bi5mPcnWaAhF3RlIqzhWVlQF43Ot/PxsSufL+Wv4fvtmoK7o28B1EYfwDQwMlN4FzeCvY8LrzLHyspR+k=; Message-ID: <410144.69078.qm@web101716.mail.ssk.yahoo.co.jp> X-YMail-OSG: BsNxO28VM1lXfRqNE66LYWqJExrAj.icfCEOSWXU0_NWuehlTCHy4fPLw7FR2spLlDlj_._L5NhuK5tnZzN8b8IL_clhdFsw6a3vsoHuuq0Us3n_KzVlLILyluLH_YhI12zP30ECVrO8_bCdV2DnwU4o0T8uDL80We_289pmndPlEgJ8EOy4IbicrFXJHgSfGOe6WNULFCsxE.k2HUNAlUSBQFpGF16JwzeAPLpZLltr70Vo1OTYgdmaIst1iR4nY_PWfE.GnD1m4f2uI4akJV6rcVYyiEhdrFgDu.7SAxPp7EMK0dvzaKWdQyDRJgKeEdtB_IVwjkh0nnTQIMaGwVnqyUYn8ICpJRpYV9ifRM8XLeiE8sWfuq8XXdK6utg1JNfa4EZGQNcB.dQQvd2licxQH8iWFzxKRLKZVsBw7gm6BL4b2zVZK_t3zRWIgbaEngffIJXSOSdPal3fACBwMPC6_w7qo64hI1oqmCdrjqi9UxWnqwYw25548Cb2QSgvpKBrN6JS.iJOyvBRsWFp.6p92Pbn6wZTzwAcp89hl3naHanjlDVe7taBIIc7.d.c8kl2wiHq9Ou9kGAajuCVqFej5sRAEiG48PqsfkNJ7L9dPEmdhKTOwH.FtznHiK2T0pvuOfCUIodT9vqasAf3acRAeAU5 Received: from [210.20.198.8] by web101716.mail.ssk.yahoo.co.jp via HTTP; Tue, 09 May 2017 09:17:58 JST X-Mailer: YahooMailWebService/0.8.111_71 X-YMail-JAS: wnoWJGYVM1nhjR5e.OwAxp1wiEQkVweK8xShITb_JO4TnDSQ_q1ZU8q1Qi.L8QG2tf_U31ePYToOP00Vhlv2yHPvqwU.784n72JhTyNgBb.3tN0HzA6rsClvEZucr.UtqIqY References: <694efc3a-e183-35a1-a0bf-9a9c0d708826@wolman.co.uk> Date: Tue, 9 May 2017 09:17:58 +0900 (JST) From: Mori Hiroki Reply-To: Mori Hiroki Subject: Re: onion omega2+ To: Mike Wolman , "freebsd-mips@freebsd.org" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable 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: Tue, 09 May 2017 00:18:08 -0000 Hi.=0A=0AI think if U-Boot work memory make broken then=A0=0AUncompressing = Kernel Image is NG.=0A=0ASome ARM U-Boot is use top address in work memory.= =0AIf this case your kernel start address=A0to move to=0Aafter work memory.= =A0But I never see in MIPS.=A0=0A=0AAnd What is set=A0FDT_DTS_FILE =A0in=A0= your kernel configuration ?=0A=0A----- Original Message -----=0A=0A> From: = Mike Wolman =0A> To: freebsd-mips@freebsd.org=0A> Cc: = =0A> Date: 2017/5/9, Tue 07:48=0A> Subject: Re: onion omega2+=0A> =0A> =0A>= More info in case anyone can point me in the right direction.=0A> =0A> I h= ave found:=0A> =0A> https://forum.openwrt.org/viewtopic.php?id=3D53865=0A> = =0A> I have tried changing how lzma compresses the kernel by adding -d20 to= =0A> the build scripts eg:=0A> =0A> /usr/local/bin/lzma e =0A> /home/mike/= omega2/src/../root/mipsel_ap/boot/kernel.MT7628_FDT/kernel \=0A> /home/mike= /omega2/src/../tftpboot/kernel.MT7628_FDT.lzma -d20=0A> =0A> This did not w= ork.=0A> =0A> =0A> Looking at the onion omega conf I see that it uses mkuzi= p and not lzma =0A> with the following settings:=0A> =0A> X_FSIMAGE_CMD=3D"= mkuzip"=0A> X_FSIMAGE_ARGS=3D"-L -d -s 65536 -v"=0A> X_FSIMAGE_SUFFIX=3D".u= lzma"=0A> =0A> So tried the following:=0A> =0A> mkuzip -L -d -s 65536 -v -o= kernel.MT7628_FDT.ulzma kernel.MT7628_FDT=0A> =0A> mkimage -A mips -O linu= x -T kernel -C lzma \=0A> =A0 -a 0x80001000 -e 0x80001100 \=0A> =A0 -n "F= reeBSD" -d kernel.MT7628_FDT.lzma =0A> kernel.MT7628_FDT.ulzma.uImage=0A> = =0A> =0A> But this did not work either.=0A> =0A> =0A> =0A> On 08/05/2017 19= :41, Aleksandr Rybalko wrote:=0A>> Hi Mike!=0A>> =0A>> I see you have no = "OK" after "Uncompressing Kernel Image =0A> ...", so =0A>> first point ubo= ot decompressor fail.=0A>> Why fail? Because you have wrong base address i= n image:=0A>> =A0 Load Address: fffffff2=0A>> =A0 Entry Point:=A0 fffffff= 2=0A>> MIPS32 machines have RAM mapped to 0x80000000 address, so adding it= s =0A>> size, you will get max address (if 16MB, it will be 0x81000000), b= ut =0A>> you uboot image was created with 0xfffffff2.=0A>> =0A>> Even mor= e, unpacked kernel expects it will be called at 0x80001100. so =0A>> if yo= u have ELF kernel (file with ELF header, like every executable) =0A>> that= file have to be loaded at (0x80001100 - ELF_HEADER_SIZE).=0A>> In most ca= ses it will be 0x80001100 - 0x100 =3D 0x80001000. But sometime =0A>> (I di= d not found why) it can be 0x20, you can find it by looking at =0A>> .text= section in readelf -S.=0A>> =0A>> So if you have kernel with entry point = 0x80001100 and .text segment =0A>> offset 0x100, you have to create uboot = image with load address =0A>> 0x80001000 and entry point 0x80001100.=0A>> = =0A>> If that step successful you will get:=0A>> /Uncompressing Kernel Im= age/ ... OK=0A>> Starting kernel ...=0A>> =0A>> Last line mean, uboot did= jump into kernel code.=0A>> =0A>> Good luck.=0A>> =0A>> 2017-05-07 18:20= GMT+03:00 Mike Wolman > = >:=0A>> =0A>> =A0 =A0 Hi,=0A>> =0A>> =A0 =A0 I am trying to get FreeBSD w= orking on this board - I think I am=0A>> =A0 =A0 almost there in getting i= t working but need some help please.=0A>> =0A>> =A0 =A0 I have followed in= structions from the freebsd-wifi-build and=0A>> =A0 =A0 *think* I have got= everything correct - I am trying to do this on=0A>> =A0 =A0 a CURRENT set= up:=0A>> =0A>> =A0 =A0 FreeBSD f64-current.mw.office 12.0-CURRENT FreeBSD = 12.0-CURRENT #0=0A>> =A0 =A0 r317887: Sun May=A0 7 03:20:34 UTC 2017=0A>> = =A0 =A0 mike@f64-current.mw.office:/usr/obj/usr/src/sys/GENERIC-NODEBUG amd= 64=0A>> =0A>> =0A>> =A0 =A0 $ cat ~/.freebsd-wifi-build-settings.cfg=0A>> = =A0 =A0 X_SKIP_MORE_STUFF=3DYES=0A>> =A0 =A0 X_EXTRA_SRC_CONF=3D~/omega2/= src.conf=0A>> =0A>> =A0 =A0 $ cat ~/omega2/src.conf=0A>> =A0 =A0 WITHOUT_= CLANG=3DYES=0A>> =A0 =A0 WITHOUT_CLANG_FULL=3DYES=0A>> =0A>> =A0 =A0 get = dts files from thread=0A>> =A0 =A0 http://community.onion.io/topic/1099/ope= nwrt-on-the-omega-2/8=0A>> =A0 =A0 =0A>> =0A>> =0A>> =A0 =A0 cd ~/omega2/src/sys/gnu/= dts/mips=0A>> =A0 =A0 fetch=0A>> =A0 =A0 =0A> https://raw.githubuserconten= t.com/WereCatf/source/image/target/linux/ramips/dts/OMEGA2.dtsi=0A>> =A0 = =A0 =0A> =0A>> =A0 =A0 fetch=0A>> =A0 =A0 =0A> https://r= aw.githubusercontent.com/WereCatf/source/image/target/linux/ramips/dts/OMEG= A2.dts=0A>> =A0 =A0 =0A> =0A>> =A0 =A0 fetch=0A>> =A0 =A0= =0A> https://raw.githubusercontent.com/WereCatf/source/image/target/linux/= ramips/dts/OMEGA2P.dts=0A>> =A0 =A0 =0A> =0A>> =0A>> =A0 = =A0 X_DTS_FILE=3DOMEGA2P.dts KERNCONF=3DMT7628_FDT=0A>> =A0 =A0 ../freebs= d-wifi-build/build/bin/build ralink buildworld=0A>> =A0 =A0 X_DTS_FILE=3DO= MEGA2P.dts KERNCONF=3DMT7628_FDT=0A>> =A0 =A0 ../freebsd-wifi-build/build/= bin/build ralink buildkernel=0A>> =A0 =A0 X_DTS_FILE=3DOMEGA2P.dts KERNCON= F=3DMT7628_FDT=0A>> =A0 =A0 ../freebsd-wifi-build/build/bin/build ralink i= nstallworld=0A>> =A0 =A0 X_DTS_FILE=3DOMEGA2P.dts KERNCONF=3DMT7628_FDT=0A= >> =A0 =A0 ../freebsd-wifi-build/build/bin/build ralink installkernel=0A>>= =A0 =A0 X_DTS_FILE=3DOMEGA2P.dts KERNCONF=3DMT7628_FDT=0A>> =A0 =A0 ../f= reebsd-wifi-build/build/bin/build ralink distribution=0A>> =0A>> =0A>> =A0 = =A0 X_DTS_FILE=3DOMEGA2P.dts KERNCONF=3DMT7628_FDT=0A>> =A0 =A0 ../freebs= d-wifi-build/build/bin/build ralink mfsroot=0A>> =A0 =A0 X_DTS_FILE=3DOMEG= A2P.dts KERNCONF=3DMT7628_FDT=0A>> =A0 =A0 ../freebsd-wifi-build/build/bin= /build ralink fsimage=0A>> =A0 =A0 X_DTS_FILE=3DOMEGA2P.dts KERNCONF=3DMT7= 628_FDT=0A>> =A0 =A0 ../freebsd-wifi-build/build/bin/build ralink uboot=0A= >> =0A>> =0A>> =A0 =A0 Create flash:=0A>> =0A>> =A0 =A0 X_FLASH=3Dkernel.= MT7628_FDT.lzma.flash=0A>> =A0 =A0 dd if=3D/dev/zero bs=3D$(( 0x200000 )) = count=3D1 of=3D${X_FLASH}=0A>> =A0 =A0 dd if=3Dkernel.MT7628_FDT.lzma.uIma= ge of=3D${X_FLASH} conv=3Dnotrunc=0A>> =A0 =A0 dd if=3D mfsroot-ralink.img= .lzma >> ${X_FLASH}=0A>> =0A>> =0A>> =A0 =A0 $ readelf -h kernel.MT7628_FD= T | grep Entry=0A>> =A0 =A0 =A0 Entry point address:=A0 =A0 =A0 =A0 =A0 = =A0 =A0 0x80001100=0A>> =0A>> =0A>> =0A>> =0A>> =A0 =A0 Now on the omega = over serial - I didnt get the network expansion=0A>> =A0 =A0 doc thing so = am doing stuff with usb rather than tftp=0A>> =0A>> =A0 =A0 I am not 100% = sure about the 0x80001100 and the fatload and have=0A>> =A0 =A0 tried this= =0A>> =0A>> =A0 =A0 Omega2 # fatload usb 0:1 0x80001100 /kernel.MT7628_FDT= .lzma.flash=0A>> =A0 =A0 *=0A>> =A0 =A0 *=0A>> =A0 =A0 Reading file "/ke= rnel.MT7628_FDT.lzma.flash"=0A>> =A0 =A0 *=0A>> =A0 =A0 **=0A>> =A0 =A0 = **=0A>> =A0 =A0 **=0A>> =A0 =A0 ******=0A>> =A0 =A0 =0A> ****************= ***************************************************************************= **************************************************=0A>> =A0 =A0 ******=0A>= > =A0 =A0 *=0A>> =A0 =A0 FAT: 2108463 Bytes read=0A>> =A0 =A0 Omega2 # b= ootm 0x80001100=0A>> =A0 =A0 ## Booting image at 80001100 ...=0A>> =A0 =A0= =A0 =A0 Image Name:=A0 FreeBSD=0A>> =A0 =A0 =A0 =A0 Image Type:=A0 MIPS = Linux Kernel Image (lzma compressed)=0A>> =A0 =A0 =A0 =A0 Data Size:=A0 =A0= 1365122 Bytes =3D=A0 1.3 MB=0A>> =A0 =A0 =A0 =A0 Load Address: fffffff2=0A= >> =A0 =A0 =A0 =A0 Entry Point:=A0 fffffff2=0A>> =A0 =A0 =A0 =A0 Verifying = Checksum ... OK=0A>> =A0 =A0 =A0 =A0 Uncompressing Kernel Image ...=0A>> = =0A>> =0A>> =A0 =A0 At this point nothing happens and console hangs - note= in=0A>> =A0 =A0 OMEGA2.dtsithe console is set to ttyS0:=0A>> =0A>> =A0 = =A0 bootargs =3D "console=3DttyS0,115200";=0A>> =0A>> =0A>> =0A>> =0A>> = =A0 =A0 I have also tried with just kernel.MT7628_FDT and=0A>> =A0 =A0 ke= rnel.MT7628_FDT.lzma but both fail:=0A>> =0A>> =A0 =A0 Omega2 # fatload us= b 0:1 0x80001100 /kernel.MT7628_FDT.lzma.uImage=0A>> =A0 =A0 *=0A>> =A0 = =A0 *=0A>> =A0 =A0 Reading file "/kernel.MT7628_FDT.lzma.uImage"=0A>> =A0= =A0 *=0A>> =A0 =A0 **=0A>> =A0 =A0 **=0A>> =A0 =A0 ******=0A>> =A0 =A0= =0A> *********************************************************************= *********************************************************=0A>> =A0 =A0 ***= *******=0A>> =A0 =A0 *=0A>> =A0 =A0 FAT: 1365186 Bytes read=0A>> =A0 =A0 = Omega2 # bootm 0x80001100=0A>> =A0 =A0 ## Booting image at 80001100 ...= =0A>> =A0 =A0 =A0 =A0 Image Name:=A0 FreeBSD=0A>> =A0 =A0 =A0 =A0 Image Ty= pe:=A0 MIPS Linux Kernel Image (lzma compressed)=0A>> =A0 =A0 =A0 =A0 Data= Size:=A0 =A0 1365122 Bytes =3D=A0 1.3 MB=0A>> =A0 =A0 =A0 =A0 Load Address= : fffffff2=0A>> =A0 =A0 =A0 =A0 Entry Point:=A0 fffffff2=0A>> =A0 =A0 =A0 = =A0 Verifying Checksum ... OK=0A>> =A0 =A0 =A0 =A0 Uncompressing Kernel Ima= ge ...=0A>> =0A>> =0A>> =A0 =A0 A few comments on the hardware for anyone = who wants to get one:=0A>> =0A>> =A0 =A0 Get the expansion dock with seria= l port access - the power dock=0A>> =A0 =A0 does not provide serial access= - i think it is possible to use an=0A>> =A0 =A0 ftdi ttl serial chip/cabl= e but have not tried.=0A>> =0A>> =A0 =A0 Stupidly I forgot this only has w= ifi access so you are not able to=0A>> =A0 =A0 tftp boot this without gett= ing the ethernet network expansion but=0A>> =A0 =A0 loading stuff up from = a usb memory stick is seem fine from u-boot.=0A>> =0A>> =A0 =A0 I do not t= hink that it is possible to boot from the SD card on the=0A>> =A0 =A0 Omeg= a2+ - which is a shame.=0A>> =0A>> =A0 =A0 Thanks for reading,=0A>> =0A>> = =A0 =A0 Mike.=0A>> =0A>> =0A>> =0A>> =A0 =A0 ____________________________= ___________________=0A>> =A0 =A0 freebsd-mips@freebsd.org mailing =0A> list=0A>> =A0 =A0 https://lists.freebsd.org/ma= ilman/listinfo/freebsd-mips=0A>> =A0 =A0 =0A>> =A0 =A0 To unsubscribe, send any mail to=0A>= > =A0 =A0 "freebsd-mips-unsubscribe@freebsd.org=0A>> =A0 =A0 "=0A>> =0A>> =0A>> =0A>> =0A>> -- =0A>> = WBW=0A>> -------=0A>> Rybalko Aleksandr >=0A>> =0A> =0A> _______________________________________________=0A> = freebsd-mips@freebsd.org mailing list=0A> https://lists.freebsd.org/mailman= /listinfo/freebsd-mips=0A> To unsubscribe, send any mail to =0A> "freebsd-m= ips-unsubscribe@freebsd.org"=0A> From owner-freebsd-mips@freebsd.org Tue May 9 00:25:13 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 59366D64FBD for ; Tue, 9 May 2017 00:25:13 +0000 (UTC) (envelope-from mike@wolman.co.uk) Received: from avasout07.plus.net (avasout07.plus.net [84.93.230.235]) (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 8D311144D for ; Tue, 9 May 2017 00:25:12 +0000 (UTC) (envelope-from mike@wolman.co.uk) Received: from [192.168.3.50] ([80.229.66.11]) by avasout07 with smtp id J0R71v0020EahWw010R8JC; Tue, 09 May 2017 01:25:09 +0100 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.2 cv=HP2zLslv c=1 sm=1 tr=0 a=sNOkzuqjfbpz3c/qSHODpA==:117 a=sNOkzuqjfbpz3c/qSHODpA==:17 a=N659UExz7-8A:10 a=NEAV23lmAAAA:8 a=UmSUZ3ptAAAA:8 a=6I5d2MoRAAAA:8 a=jdP34snFAAAA:8 a=LJ5NkaWEAAAA:8 a=bt8Zh30PAAAA:8 a=4I05h4SrAAAA:8 a=yz_1I84SQcFCawQ1gy0A:9 a=vRxI-nH3_CiSmbi9:21 a=8aPtH9nVwle45G8m:21 a=pILNOxqGKmIA:10 a=A3VBoO50a3AA:10 a=FyGKTEvU35uc88vWBdgE:22 a=IjZwj45LgO3ly-622nXo:22 a=jlphF6vWLdwq7oh3TaWq:22 a=eH83O4KjmLCfbRe1EArK:22 a=SXYKVUms7l59yVxtnTo9:22 Subject: Re: onion omega2+ To: Mori Hiroki , "freebsd-mips@freebsd.org" References: <694efc3a-e183-35a1-a0bf-9a9c0d708826@wolman.co.uk> <410144.69078.qm@web101716.mail.ssk.yahoo.co.jp> From: Mike Wolman Message-ID: Date: Tue, 9 May 2017 01:25:06 +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: <410144.69078.qm@web101716.mail.ssk.yahoo.co.jp> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit 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: Tue, 09 May 2017 00:25:13 -0000 Hi Mori, I grabbed the dts files from: https://github.com/WereCatf/source/tree/image/target/linux/ramips/dts https://github.com/WereCatf/source/blob/image/target/linux/ramips/dts/OMEGA2P.dts https://github.com/WereCatf/source/blob/image/target/linux/ramips/dts/OMEGA2.dtsi If this is of any use from the default linux install on the flash: root@Omega-12BF:/proc# cat /proc/mtd dev: size erasesize name mtd0: 00030000 00010000 "u-boot" mtd1: 00010000 00010000 "u-boot-env" mtd2: 00010000 00010000 "factory" mtd3: 01fb0000 00010000 "firmware" mtd4: 00148842 00010000 "kernel" mtd5: 01e677be 00010000 "rootfs" mtd6: 01950000 00010000 "rootfs_data" btw after posting i spotted and error in what i did with: mkimage -A mips -O linux -T kernel -C lzma \ -a 0x80001000 -e 0x80001100 \ -n "FreeBSD" -d kernel.MT7628_FDT.lzma kernel.MT7628_FDT.ulzma.uImage I have redone this using the correct compressed kernel ie: mkimage -A mips -O linux -T kernel -C lzma \ -a 0x80001000 -e 0x80001100 \ -n "FreeBSD" -d kernel.MT7628_FDT.ulzma kernel.MT7628_FDT.ulzma.uImage But this didnt work. On 09/05/2017 01:17, Mori Hiroki wrote: > Hi. > > I think if U-Boot work memory make broken then > Uncompressing Kernel Image is NG. > > Some ARM U-Boot is use top address in work memory. > If this case your kernel start address to move to > after work memory. But I never see in MIPS. > > And What is set FDT_DTS_FILE in your kernel configuration ? > > ----- Original Message ----- > >> From: Mike Wolman >> To: freebsd-mips@freebsd.org >> Cc: >> Date: 2017/5/9, Tue 07:48 >> Subject: Re: onion omega2+ >> >> >> More info in case anyone can point me in the right direction. >> >> I have found: >> >> https://forum.openwrt.org/viewtopic.php?id=53865 >> >> I have tried changing how lzma compresses the kernel by adding -d20 to >> the build scripts eg: >> >> /usr/local/bin/lzma e >> /home/mike/omega2/src/../root/mipsel_ap/boot/kernel.MT7628_FDT/kernel \ >> /home/mike/omega2/src/../tftpboot/kernel.MT7628_FDT.lzma -d20 >> >> This did not work. >> >> >> Looking at the onion omega conf I see that it uses mkuzip and not lzma >> with the following settings: >> >> X_FSIMAGE_CMD="mkuzip" >> X_FSIMAGE_ARGS="-L -d -s 65536 -v" >> X_FSIMAGE_SUFFIX=".ulzma" >> >> So tried the following: >> >> mkuzip -L -d -s 65536 -v -o kernel.MT7628_FDT.ulzma kernel.MT7628_FDT >> >> mkimage -A mips -O linux -T kernel -C lzma \ >> -a 0x80001000 -e 0x80001100 \ >> -n "FreeBSD" -d kernel.MT7628_FDT.lzma >> kernel.MT7628_FDT.ulzma.uImage >> >> >> But this did not work either. >> >> >> >> On 08/05/2017 19:41, Aleksandr Rybalko wrote: >>> Hi Mike! >>> >>> I see you have no "OK" after "Uncompressing Kernel Image >> ...", so >>> first point uboot decompressor fail. >>> Why fail? Because you have wrong base address in image: >>> Load Address: fffffff2 >>> Entry Point: fffffff2 >>> MIPS32 machines have RAM mapped to 0x80000000 address, so adding its >>> size, you will get max address (if 16MB, it will be 0x81000000), but >>> you uboot image was created with 0xfffffff2. >>> >>> Even more, unpacked kernel expects it will be called at 0x80001100. so >>> if you have ELF kernel (file with ELF header, like every executable) >>> that file have to be loaded at (0x80001100 - ELF_HEADER_SIZE). >>> In most cases it will be 0x80001100 - 0x100 = 0x80001000. But sometime >>> (I did not found why) it can be 0x20, you can find it by looking at >>> .text section in readelf -S. >>> >>> So if you have kernel with entry point 0x80001100 and .text segment >>> offset 0x100, you have to create uboot image with load address >>> 0x80001000 and entry point 0x80001100. >>> >>> If that step successful you will get: >>> /Uncompressing Kernel Image/ ... OK >>> Starting kernel ... >>> >>> Last line mean, uboot did jump into kernel code. >>> >>> Good luck. >>> >>> 2017-05-07 18:20 GMT+03:00 Mike Wolman >> >: >>> >>> Hi, >>> >>> I am trying to get FreeBSD working on this board - I think I am >>> almost there in getting it working but need some help please. >>> >>> I have followed instructions from the freebsd-wifi-build and >>> *think* I have got everything correct - I am trying to do this on >>> a CURRENT setup: >>> >>> FreeBSD f64-current.mw.office 12.0-CURRENT FreeBSD 12.0-CURRENT #0 >>> r317887: Sun May 7 03:20:34 UTC 2017 >>> mike@f64-current.mw.office:/usr/obj/usr/src/sys/GENERIC-NODEBUG amd64 >>> >>> >>> $ cat ~/.freebsd-wifi-build-settings.cfg >>> X_SKIP_MORE_STUFF=YES >>> X_EXTRA_SRC_CONF=~/omega2/src.conf >>> >>> $ cat ~/omega2/src.conf >>> WITHOUT_CLANG=YES >>> WITHOUT_CLANG_FULL=YES >>> >>> get dts files from thread >>> http://community.onion.io/topic/1099/openwrt-on-the-omega-2/8 >>> >>> >>> >>> cd ~/omega2/src/sys/gnu/dts/mips >>> fetch >>> >> https://raw.githubusercontent.com/WereCatf/source/image/target/linux/ramips/dts/OMEGA2.dtsi >>> >> >>> fetch >>> >> https://raw.githubusercontent.com/WereCatf/source/image/target/linux/ramips/dts/OMEGA2.dts >>> >> >>> fetch >>> >> https://raw.githubusercontent.com/WereCatf/source/image/target/linux/ramips/dts/OMEGA2P.dts >>> >> >>> X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT >>> ../freebsd-wifi-build/build/bin/build ralink buildworld >>> X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT >>> ../freebsd-wifi-build/build/bin/build ralink buildkernel >>> X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT >>> ../freebsd-wifi-build/build/bin/build ralink installworld >>> X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT >>> ../freebsd-wifi-build/build/bin/build ralink installkernel >>> X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT >>> ../freebsd-wifi-build/build/bin/build ralink distribution >>> >>> >>> X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT >>> ../freebsd-wifi-build/build/bin/build ralink mfsroot >>> X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT >>> ../freebsd-wifi-build/build/bin/build ralink fsimage >>> X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT >>> ../freebsd-wifi-build/build/bin/build ralink uboot >>> >>> >>> Create flash: >>> >>> X_FLASH=kernel.MT7628_FDT.lzma.flash >>> dd if=/dev/zero bs=$(( 0x200000 )) count=1 of=${X_FLASH} >>> dd if=kernel.MT7628_FDT.lzma.uImage of=${X_FLASH} conv=notrunc >>> dd if= mfsroot-ralink.img.lzma >> ${X_FLASH} >>> >>> >>> $ readelf -h kernel.MT7628_FDT | grep Entry >>> Entry point address: 0x80001100 >>> >>> >>> >>> >>> Now on the omega over serial - I didnt get the network expansion >>> doc thing so am doing stuff with usb rather than tftp >>> >>> I am not 100% sure about the 0x80001100 and the fatload and have >>> tried this >>> >>> Omega2 # fatload usb 0:1 0x80001100 /kernel.MT7628_FDT.lzma.flash >>> * >>> * >>> Reading file "/kernel.MT7628_FDT.lzma.flash" >>> * >>> ** >>> ** >>> ** >>> ****** >>> >> ********************************************************************************************************************************************* >>> ****** >>> * >>> FAT: 2108463 Bytes read >>> Omega2 # bootm 0x80001100 >>> ## Booting image at 80001100 ... >>> Image Name: FreeBSD >>> Image Type: MIPS Linux Kernel Image (lzma compressed) >>> Data Size: 1365122 Bytes = 1.3 MB >>> Load Address: fffffff2 >>> Entry Point: fffffff2 >>> Verifying Checksum ... OK >>> Uncompressing Kernel Image ... >>> >>> >>> At this point nothing happens and console hangs - note in >>> OMEGA2.dtsithe console is set to ttyS0: >>> >>> bootargs = "console=ttyS0,115200"; >>> >>> >>> >>> >>> I have also tried with just kernel.MT7628_FDT and >>> kernel.MT7628_FDT.lzma but both fail: >>> >>> Omega2 # fatload usb 0:1 0x80001100 /kernel.MT7628_FDT.lzma.uImage >>> * >>> * >>> Reading file "/kernel.MT7628_FDT.lzma.uImage" >>> * >>> ** >>> ** >>> ****** >>> >> ****************************************************************************************************************************** >>> ********** >>> * >>> FAT: 1365186 Bytes read >>> Omega2 # bootm 0x80001100 >>> ## Booting image at 80001100 ... >>> Image Name: FreeBSD >>> Image Type: MIPS Linux Kernel Image (lzma compressed) >>> Data Size: 1365122 Bytes = 1.3 MB >>> Load Address: fffffff2 >>> Entry Point: fffffff2 >>> Verifying Checksum ... OK >>> Uncompressing Kernel Image ... >>> >>> >>> A few comments on the hardware for anyone who wants to get one: >>> >>> Get the expansion dock with serial port access - the power dock >>> does not provide serial access - i think it is possible to use an >>> ftdi ttl serial chip/cable but have not tried. >>> >>> Stupidly I forgot this only has wifi access so you are not able to >>> tftp boot this without getting the ethernet network expansion but >>> loading stuff up from a usb memory stick is seem fine from u-boot. >>> >>> I do not think that it is possible to boot from the SD card on the >>> Omega2+ - which is a shame. >>> >>> Thanks for reading, >>> >>> Mike. >>> >>> >>> >>> _______________________________________________ >>> 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 > >>> >> _______________________________________________ >> 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" >> From owner-freebsd-mips@freebsd.org Tue May 9 01:22:48 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 DF474D622D2 for ; Tue, 9 May 2017 01:22:48 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from nh605-vm13.bullet.mail.ssk.yahoo.co.jp (nh605-vm13.bullet.mail.ssk.yahoo.co.jp [182.22.90.86]) by mx1.freebsd.org (Postfix) with SMTP id 51A77152C for ; Tue, 9 May 2017 01:22:47 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from [182.22.66.105] by nh605.bullet.mail.ssk.yahoo.co.jp with NNFMP; 09 May 2017 01:20:41 -0000 Received: from [182.22.91.131] by t603.bullet.mail.ssk.yahoo.co.jp with NNFMP; 09 May 2017 01:20:41 -0000 Received: from [127.0.0.1] by omp604.mail.ssk.yahoo.co.jp with NNFMP; 09 May 2017 01:20:41 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 347673.16538.bm@omp604.mail.ssk.yahoo.co.jp Received: (qmail 34367 invoked by uid 60001); 9 May 2017 01:20:41 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.jp; s=yj20110701; t=1494292841; bh=02pbyI1qVLqVTkdsWqBLKPHfEfp9glGWeYStKZwmgSo=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:X-YMail-JAS:References:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=MKllH8FvgSayeWCmjx04CAhXHfUN4+mQOo4lC5VCtqDCjWc7A0OMyThV6rOusaYBCSdu4th0b3j1ZHClUlIIVrvaupLYd5gG51lAzoIWiId7OCUmQd6QybPrBqP1XZNKvAM2XSRb9rfoVGT94wW7ymZ6rBalJmYx6+Sh+vzO3fw= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=yj20110701; d=yahoo.co.jp; h=Message-ID:X-YMail-OSG:Received:X-Mailer:X-YMail-JAS:References:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=RxnPg0CZr+AHifRerw0iJUfJUCfHZ8oZxW0C9N51OfqyaxdfTDrLWEqcjIJinHssk1X4YU98s+W23QCso8GrX2bI1vigvfOHfTe7PLFFCOnS/cJJHmlZJfRfY+WHfE6MHaqTxrII6MkaczZ0nx9n2yMq4fE4/pbfVP9RLNJsbVY=; Message-ID: <128807.28836.qm@web101715.mail.ssk.yahoo.co.jp> X-YMail-OSG: x6OcvU4VM1nHpKMNSnfyh_gT3U7aMhZALTGHSqcK9FlUmA2K_Kd86djZGTma6j_RLpIVhrPUWBmQsQcZ8uFTUsz5aFhaSz.lQZIs60umDnkadyuQTCe5pWfA0wCYrt5.KzZ.bYbm_kuqfd2eHM_7CRnk2uw2yvsj_ZCjk8M2PkQSXa2n0bn3InyQhg5jGGHBoV9FBfO67N8hAgP7k1ukhbVQUo2O6iq6wZ9RKIxiYUDttjEiN4GKyZipGBW6Q0HYAPr9FU5brM55Z7Usk.iM8X12iXbu_9iCnKOEgBr6cxIQvmu1xQOIdkJnCPFQUyxllWo2oeu6p1Gv2HLblM9vZEcz6euWjyxv2uiJv00Ou1IkINa7zMq1J7FBKFuEHwjlRBgCUwFZKahmf7jnKEcvdFYDLJisQhCADRVqfqd.qCCzdxObPOSHSV9Zw3sNBpZDivgBolwardea5O0yWjds4HZWoqax4RmfKT2oR8HjwrhLUtvmIPvdKyl876Nf3qS2jAB2EKtYSaU3ljL7gAs59Kd22.MyN3YzRgWoBlT02.WnuJXe48d4gFNVuWem9DlJ564taWk.7vFfRHTeGEkzO3FThLIDuV9QJ_8HwZMAn1oAsxw- Received: from [210.20.198.8] by web101715.mail.ssk.yahoo.co.jp via HTTP; Tue, 09 May 2017 10:20:40 JST X-Mailer: YahooMailWebService/0.8.111_71 X-YMail-JAS: BK1A7pkVM1nz2rQo99fiJFPnXc8mzKdiZ.VJnrG4M1T4WsyELEY_ewO0CFeBnKy2i.skxjf4phP9njBuy23TDP.KWWorbpRAiu5dN7OcnDErRGQdKIfkS5.7PkDED3MrkvxR References: <694efc3a-e183-35a1-a0bf-9a9c0d708826@wolman.co.uk> <410144.69078.qm@web101716.mail.ssk.yahoo.co.jp> Date: Tue, 9 May 2017 10:20:40 +0900 (JST) From: Mori Hiroki Reply-To: Mori Hiroki Subject: Re: onion omega2+ To: Mike Wolman , "freebsd-mips@freebsd.org" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable 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: Tue, 09 May 2017 01:22:49 -0000 Hi Mike=0A=0AIn FreeBSD is use serial0 dts item to console.=0A=0AI think go= od to use this at start.=0A=0Afreebsd/sys/gnu/dts/mips/MT7628.dts=0A=0A----= - Original Message -----=0A> From: Mike Wolman =0A> To: = Mori Hiroki ; "freebsd-mips@freebsd.org" =0A> Cc: =0A> Date: 2017/5/9, Tue 09:25=0A> Subject: Re: oni= on omega2+=0A> =0A> Hi Mori,=0A> =0A> I grabbed the dts files from:=0A> =0A= > https://github.com/WereCatf/source/tree/image/target/linux/ramips/dts=0A>= https://github.com/WereCatf/source/blob/image/target/linux/ramips/dts/OMEG= A2P.dts=0A> https://github.com/WereCatf/source/blob/image/target/linux/rami= ps/dts/OMEGA2.dtsi=0A> =0A> If this is of any use from the default linux in= stall on the flash:=0A> =0A> root@Omega-12BF:/proc# cat /proc/mtd=0A> dev:= =A0 =A0 size=A0 erasesize=A0 name=0A> mtd0: 00030000 00010000 "u-boot"=0A>= mtd1: 00010000 00010000 "u-boot-env"=0A> mtd2: 00010000 00010000 "factory"= =0A> mtd3: 01fb0000 00010000 "firmware"=0A> mtd4: 00148842 00010000 "kernel= "=0A> mtd5: 01e677be 00010000 "rootfs"=0A> mtd6: 01950000 00010000 "rootfs_= data"=0A> =0A> =0A> btw after posting i spotted and error in what i did wit= h:=0A> =0A> mkimage -A mips -O linux -T kernel -C lzma \=0A> =A0 =A0 -a 0x8= 0001000 -e 0x80001100 \=0A> =A0 =A0 -n "FreeBSD" -d kernel.MT7628_FDT.lzma= =0A> kernel.MT7628_FDT.ulzma.uImage=0A> =0A> I have redone this using the c= orrect compressed kernel ie:=0A> =0A> mkimage -A mips -O linux -T kernel -C= lzma \=0A> =A0 =A0 -a 0x80001000 -e 0x80001100 \=0A> =A0 =A0 -n "FreeBSD" = -d kernel.MT7628_FDT.ulzma=0A> kernel.MT7628_FDT.ulzma.uImage=0A> =0A> =0A>= But this didnt work.=0A> =0A> =0A> =0A> On 09/05/2017 01:17, Mori Hiroki w= rote:=0A>> Hi.=0A>> =0A>> I think if U-Boot work memory make broken then= =0A>> Uncompressing Kernel Image is NG.=0A>> =0A>> Some ARM U-Boot is use= top address in work memory.=0A>> If this case your kernel start address t= o move to=0A>> after work memory. But I never see in MIPS.=0A>> =0A>> And= What is set FDT_DTS_FILE=A0 in your kernel configuration ?=0A>> =0A>> ---= -- Original Message -----=0A>> =0A>>> From: Mike Wolman =0A>>> To: freebsd-mips@freebsd.org=0A>>> Cc:=0A>>> Date: 2017/5/9, Tue= 07:48=0A>>> Subject: Re: onion omega2+=0A>>> =0A>>> =0A>>> More info in = case anyone can point me in the right direction.=0A>>> =0A>>> I have found= :=0A>>> =0A>>> https://forum.openwrt.org/viewtopic.php?id=3D53865=0A>>> = =0A>>> I have tried changing how lzma compresses the kernel by adding -d20= to=0A>>> the build scripts eg:=0A>>> =0A>>> /usr/local/bin/lzma e=0A>>> = /home/mike/omega2/src/../root/mipsel_ap/boot/kernel.MT7628_FDT/kernel =0A>= \=0A>>> /home/mike/omega2/src/../tftpboot/kernel.MT7628_FDT.lzma -d20=0A>= >> =0A>>> This did not work.=0A>>> =0A>>> =0A>>> Looking at the onion ome= ga conf I see that it uses mkuzip and not lzma=0A>>> with the following se= ttings:=0A>>> =0A>>> X_FSIMAGE_CMD=3D"mkuzip"=0A>>> X_FSIMAGE_ARGS=3D"-L = -d -s 65536 -v"=0A>>> X_FSIMAGE_SUFFIX=3D".ulzma"=0A>>> =0A>>> So tried t= he following:=0A>>> =0A>>> mkuzip -L -d -s 65536 -v -o kernel.MT7628_FDT.u= lzma kernel.MT7628_FDT=0A>>> =0A>>> mkimage -A mips -O linux -T kernel -C = lzma \=0A>>> =A0 =A0 -a 0x80001000 -e 0x80001100 \=0A>>> =A0 =A0 -n "Free= BSD" -d kernel.MT7628_FDT.lzma=0A>>> kernel.MT7628_FDT.ulzma.uImage=0A>>> = =0A>>> =0A>>> But this did not work either.=0A>>> =0A>>> =0A>>> =0A>>> On= 08/05/2017 19:41, Aleksandr Rybalko wrote:=0A>>>> =A0 Hi Mike!=0A>>>> =0A= >>>> =A0 I see you have no "OK" after "Uncompressing Kernel =0A> Image=0A>= >> ...", so=0A>>>> =A0 first point uboot decompressor fail.=0A>>>> =A0 W= hy fail? Because you have wrong base address in image:=0A>>>> =A0 =A0 Load= Address: fffffff2=0A>>>> =A0 =A0 Entry Point:=A0 fffffff2=0A>>>> =A0 MIP= S32 machines have RAM mapped to 0x80000000 address, so adding =0A> its=0A>>= >> =A0 size, you will get max address (if 16MB, it will be 0x81000000), = =0A> but=0A>>>> =A0 you uboot image was created with 0xfffffff2.=0A>>>> = =0A>>>> =A0 Even more, unpacked kernel expects it will be called at =0A> 0= x80001100. so=0A>>>> =A0 if you have ELF kernel (file with ELF header, lik= e every =0A> executable)=0A>>>> =A0 that file have to be loaded at (0x8000= 1100 - ELF_HEADER_SIZE).=0A>>>> =A0 In most cases it will be 0x80001100 - = 0x100 =3D 0x80001000. But =0A> sometime=0A>>>> =A0 (I did not found why) i= t can be 0x20, you can find it by looking =0A> at=0A>>>> =A0 .text section= in readelf -S.=0A>>>> =0A>>>> =A0 So if you have kernel with entry point = 0x80001100 and .text =0A> segment=0A>>>> =A0 offset 0x100, you have to cre= ate uboot image with load address=0A>>>> =A0 0x80001000 and entry point 0x= 80001100.=0A>>>> =0A>>>> =A0 If that step successful you will get:=0A>>>> = =A0 /Uncompressing Kernel Image/ ... OK=0A>>>> =A0 Starting kernel ...=0A= >>>> =0A>>>> =A0 Last line mean, uboot did jump into kernel code.=0A>>>> = =0A>>>> =A0 Good luck.=0A>>>> =0A>>>> =A0 2017-05-07 18:20 GMT+03:00 Mike= Wolman >>> =A0 >:=0A>>>> = =0A>>>> =A0 =A0 =A0 Hi,=0A>>>> =0A>>>> =A0 =A0 =A0 I am trying to get Fre= eBSD working on this board - I think I =0A> am=0A>>>> =A0 =A0 =A0 almost t= here in getting it working but need some help please.=0A>>>> =0A>>>> =A0 = =A0 =A0 I have followed instructions from the freebsd-wifi-build and=0A>>>= > =A0 =A0 =A0 *think* I have got everything correct - I am trying to do = =0A> this on=0A>>>> =A0 =A0 =A0 a CURRENT setup:=0A>>>> =0A>>>> =A0 =A0 = =A0 FreeBSD f64-current.mw.office 12.0-CURRENT FreeBSD =0A> 12.0-CURRENT #= 0=0A>>>> =A0 =A0 =A0 r317887: Sun May=A0 7 03:20:34 UTC 2017=0A>>>> =A0 = =A0 =A0 =0A> mike@f64-current.mw.office:/usr/obj/usr/src/sys/GENERIC-NODEBU= G amd64=0A>>>> =0A>>>> =0A>>>> =A0 =A0 =A0 $ cat ~/.freebsd-wifi-build-set= tings.cfg=0A>>>> =A0 =A0 =A0 X_SKIP_MORE_STUFF=3DYES=0A>>>> =A0 =A0 =A0 X= _EXTRA_SRC_CONF=3D~/omega2/src.conf=0A>>>> =0A>>>> =A0 =A0 =A0 $ cat ~/ome= ga2/src.conf=0A>>>> =A0 =A0 =A0 WITHOUT_CLANG=3DYES=0A>>>> =A0 =A0 =A0 WI= THOUT_CLANG_FULL=3DYES=0A>>>> =0A>>>> =A0 =A0 =A0 get dts files from threa= d=0A>>>> =A0 =A0 =A0 http://community.onion.io/topic/1099/openwrt-on-the-om= ega-2/8=0A>>>> =A0 =A0 =A0 =0A> =0A>>>> =0A>>>> =0A>>>> =A0 =A0 =A0 cd ~/omega2/src/sy= s/gnu/dts/mips=0A>>>> =A0 =A0 =A0 fetch=0A>>>> =A0 =A0 =A0 =0A>>> =0A> htt= ps://raw.githubusercontent.com/WereCatf/source/image/target/linux/ramips/dt= s/OMEGA2.dtsi=0A>>>> =A0 =A0 =A0 =0A>>> =0A> =0A>>>> =A0 = =A0 =A0 fetch=0A>>>> =A0 =A0 =A0 =0A>>> =0A> https://raw.githubusercontent= .com/WereCatf/source/image/target/linux/ramips/dts/OMEGA2.dts=0A>>>> =A0 = =A0 =A0 =0A>>> =0A> =0A>>>> =A0 =A0 =A0 fetch=0A>>>> =A0 = =A0 =A0 =0A>>> =0A> https://raw.githubusercontent.com/WereCatf/source/image= /target/linux/ramips/dts/OMEGA2P.dts=0A>>>> =A0 =A0 =A0 =0A>>> =0A> =0A>>>> =A0 =A0 =A0 X_DTS_FILE=3DOMEGA2P.dts KERNCONF=3DMT7628_= FDT=0A>>>> =A0 =A0 =A0 ../freebsd-wifi-build/build/bin/build ralink buildw= orld=0A>>>> =A0 =A0 =A0 X_DTS_FILE=3DOMEGA2P.dts KERNCONF=3DMT7628_FDT=0A>= >>> =A0 =A0 =A0 ../freebsd-wifi-build/build/bin/build ralink buildkernel= =0A>>>> =A0 =A0 =A0 X_DTS_FILE=3DOMEGA2P.dts KERNCONF=3DMT7628_FDT=0A>>>> = =A0 =A0 =A0 ../freebsd-wifi-build/build/bin/build ralink installworld=0A>>= >> =A0 =A0 =A0 X_DTS_FILE=3DOMEGA2P.dts KERNCONF=3DMT7628_FDT=0A>>>> =A0 = =A0 =A0 ../freebsd-wifi-build/build/bin/build ralink installkernel=0A>>>> = =A0 =A0 =A0 X_DTS_FILE=3DOMEGA2P.dts KERNCONF=3DMT7628_FDT=0A>>>> =A0 =A0 = =A0 ../freebsd-wifi-build/build/bin/build ralink distribution=0A>>>> =0A>>= >> =0A>>>> =A0 =A0 =A0 X_DTS_FILE=3DOMEGA2P.dts KERNCONF=3DMT7628_FDT=0A>>= >> =A0 =A0 =A0 ../freebsd-wifi-build/build/bin/build ralink mfsroot=0A>>>>= =A0 =A0 =A0 X_DTS_FILE=3DOMEGA2P.dts KERNCONF=3DMT7628_FDT=0A>>>> =A0 =A0= =A0 ../freebsd-wifi-build/build/bin/build ralink fsimage=0A>>>> =A0 =A0 = =A0 X_DTS_FILE=3DOMEGA2P.dts KERNCONF=3DMT7628_FDT=0A>>>> =A0 =A0 =A0 ../= freebsd-wifi-build/build/bin/build ralink uboot=0A>>>> =0A>>>> =0A>>>> =A0 = =A0 =A0 Create flash:=0A>>>> =0A>>>> =A0 =A0 =A0 X_FLASH=3Dkernel.MT7628_= FDT.lzma.flash=0A>>>> =A0 =A0 =A0 dd if=3D/dev/zero bs=3D$(( 0x200000 )) c= ount=3D1 of=3D${X_FLASH}=0A>>>> =A0 =A0 =A0 dd if=3Dkernel.MT7628_FDT.lzma= .uImage of=3D${X_FLASH} =0A> conv=3Dnotrunc=0A>>>> =A0 =A0 =A0 dd if=3D mf= sroot-ralink.img.lzma >> ${X_FLASH}=0A>>>> =0A>>>> =0A>>>> =A0 =A0 =A0 $ r= eadelf -h kernel.MT7628_FDT | grep Entry=0A>>>> =A0 =A0 =A0 =A0 Entry poin= t address:=A0 =A0 =A0 =A0 =A0 =A0 =A0 0x80001100=0A>>>> =0A>>>> =0A>>>> = =0A>>>> =0A>>>> =A0 =A0 =A0 Now on the omega over serial - I didnt get the= network =0A> expansion=0A>>>> =A0 =A0 =A0 doc thing so am doing stuff wit= h usb rather than tftp=0A>>>> =0A>>>> =A0 =A0 =A0 I am not 100% sure about= the 0x80001100 and the fatload and =0A> have=0A>>>> =A0 =A0 =A0 tried thi= s=0A>>>> =0A>>>> =A0 =A0 =A0 Omega2 # fatload usb 0:1 0x80001100 =0A> /ker= nel.MT7628_FDT.lzma.flash=0A>>>> =A0 =A0 =A0 *=0A>>>> =A0 =A0 =A0 *=0A>>>= > =A0 =A0 =A0 Reading file "/kernel.MT7628_FDT.lzma.flash"=0A>>>> =A0 =A0 = =A0 *=0A>>>> =A0 =A0 =A0 **=0A>>>> =A0 =A0 =A0 **=0A>>>> =A0 =A0 =A0 **= =0A>>>> =A0 =A0 =A0 ******=0A>>>> =A0 =A0 =A0 =0A>>> =0A> ****************= ***************************************************************************= **************************************************=0A>>>> =A0 =A0 =A0 ****= **=0A>>>> =A0 =A0 =A0 *=0A>>>> =A0 =A0 =A0 FAT: 2108463 Bytes read=0A>>>>= =A0 =A0 =A0 Omega2 # bootm 0x80001100=0A>>>> =A0 =A0 =A0 ## Booting imag= e at 80001100 ...=0A>>>> =A0 =A0 =A0 =A0 =A0 Image Name:=A0 FreeBSD=0A>>>>= =A0 =A0 =A0 =A0 =A0 Image Type:=A0 MIPS Linux Kernel Image (lzma compress= ed)=0A>>>> =A0 =A0 =A0 =A0 =A0 Data Size:=A0 =A0 1365122 Bytes =3D=A0 1.3 M= B=0A>>>> =A0 =A0 =A0 =A0 =A0 Load Address: fffffff2=0A>>>> =A0 =A0 =A0 =A0 = =A0 Entry Point:=A0 fffffff2=0A>>>> =A0 =A0 =A0 =A0 =A0 Verifying Checksum = ... OK=0A>>>> =A0 =A0 =A0 =A0 =A0 Uncompressing Kernel Image ...=0A>>>> =0A= >>>> =0A>>>> =A0 =A0 =A0 At this point nothing happens and console hangs -= note in=0A>>>> =A0 =A0 =A0 OMEGA2.dtsithe console is set to ttyS0:=0A>>>>= =0A>>>> =A0 =A0 =A0 bootargs =3D "console=3DttyS0,115200";=0A>>>> =0A>>>>= =0A>>>> =0A>>>> =0A>>>> =A0 =A0 =A0 I have also tried with just kernel.MT= 7628_FDT and=0A>>>> =A0 =A0 =A0 kernel.MT7628_FDT.lzma but both fail:=0A>>= >> =0A>>>> =A0 =A0 =A0 Omega2 # fatload usb 0:1 0x80001100 =0A> /kernel.MT= 7628_FDT.lzma.uImage=0A>>>> =A0 =A0 =A0 *=0A>>>> =A0 =A0 =A0 *=0A>>>> =A0= =A0 =A0 Reading file "/kernel.MT7628_FDT.lzma.uImage"=0A>>>> =A0 =A0 =A0 = *=0A>>>> =A0 =A0 =A0 **=0A>>>> =A0 =A0 =A0 **=0A>>>> =A0 =A0 =A0 ******= =0A>>>> =A0 =A0 =A0 =0A>>> =0A> *******************************************= ***************************************************************************= ********=0A>>>> =A0 =A0 =A0 **********=0A>>>> =A0 =A0 =A0 *=0A>>>> =A0 = =A0 =A0 FAT: 1365186 Bytes read=0A>>>> =A0 =A0 =A0 Omega2 # bootm 0x80001= 100=0A>>>> =A0 =A0 =A0 ## Booting image at 80001100 ...=0A>>>> =A0 =A0 =A0= =A0 =A0 Image Name:=A0 FreeBSD=0A>>>> =A0 =A0 =A0 =A0 =A0 Image Type:=A0 = MIPS Linux Kernel Image (lzma compressed)=0A>>>> =A0 =A0 =A0 =A0 =A0 Data = Size:=A0 =A0 1365122 Bytes =3D=A0 1.3 MB=0A>>>> =A0 =A0 =A0 =A0 =A0 Load Ad= dress: fffffff2=0A>>>> =A0 =A0 =A0 =A0 =A0 Entry Point:=A0 fffffff2=0A>>>> = =A0 =A0 =A0 =A0 =A0 Verifying Checksum ... OK=0A>>>> =A0 =A0 =A0 =A0 =A0 Un= compressing Kernel Image ...=0A>>>> =0A>>>> =0A>>>> =A0 =A0 =A0 A few comm= ents on the hardware for anyone who wants to get =0A> one:=0A>>>> =0A>>>> = =A0 =A0 =A0 Get the expansion dock with serial port access - the power =0A= > dock=0A>>>> =A0 =A0 =A0 does not provide serial access - i think it is p= ossible to =0A> use an=0A>>>> =A0 =A0 =A0 ftdi ttl serial chip/cable but h= ave not tried.=0A>>>> =0A>>>> =A0 =A0 =A0 Stupidly I forgot this only has = wifi access so you are not =0A> able to=0A>>>> =A0 =A0 =A0 tftp boot this = without getting the ethernet network expansion =0A> but=0A>>>> =A0 =A0 =A0 = loading stuff up from a usb memory stick is seem fine from =0A> u-boot.=0A= >>>> =0A>>>> =A0 =A0 =A0 I do not think that it is possible to boot from t= he SD card =0A> on the=0A>>>> =A0 =A0 =A0 Omega2+ - which is a shame.=0A>>= >> =0A>>>> =A0 =A0 =A0 Thanks for reading,=0A>>>> =0A>>>> =A0 =A0 =A0 Mik= e.=0A>>>> =0A>>>> =0A>>>> =0A>>>> =A0 =A0 =A0 ____________________________= ___________________=0A>>>> =A0 =A0 =A0 freebsd-mips@freebsd.org =0A> mailing=0A>>> list=0A>>>> =A0 =A0 =A0 https://l= ists.freebsd.org/mailman/listinfo/freebsd-mips=0A>>>> =A0 =A0 =A0 =0A> =0A>>>> =A0 =A0 =A0 T= o unsubscribe, send any mail to=0A>>>> =A0 =A0 =A0 "freebsd-mips-unsubscri= be@freebsd.org=0A>>>> =A0 =A0 =A0 "=0A>>>> =0A>>>> =0A>>>> =0A>>>> =0A>>>> =A0 --=0A>>>> =A0 WBW=0A>>>= > =A0 -------=0A>>>> =A0 Rybalko Aleksandr >=0A>>>> =0A>>> ____________________________________________= ___=0A>>> freebsd-mips@freebsd.org mailing list=0A>>> https://lists.freeb= sd.org/mailman/listinfo/freebsd-mips=0A>>> To unsubscribe, send any mail t= o=0A>>> "freebsd-mips-unsubscribe@freebsd.org"=0A>>> =0A> From owner-freebsd-mips@freebsd.org Tue May 9 01:30:27 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 1CA93D62A4C for ; Tue, 9 May 2017 01:30:27 +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 6AA401F9B for ; Tue, 9 May 2017 01:30:25 +0000 (UTC) (envelope-from mike@wolman.co.uk) Received: from [192.168.3.50] ([80.229.66.11]) by avasout08 with smtp id J1WE1v0040EahWw011WFL0; Tue, 09 May 2017 02:30:16 +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=N659UExz7-8A:10 a=NEAV23lmAAAA:8 a=UmSUZ3ptAAAA:8 a=6I5d2MoRAAAA:8 a=jdP34snFAAAA:8 a=LJ5NkaWEAAAA:8 a=bt8Zh30PAAAA:8 a=4I05h4SrAAAA:8 a=q9mUSZeZBtK82Zk_VS8A:9 a=jOCCcEcFYSSN3muS:21 a=TeCYtS5SmKFw6T2J:21 a=pILNOxqGKmIA:10 a=A3VBoO50a3AA:10 a=FyGKTEvU35uc88vWBdgE:22 a=IjZwj45LgO3ly-622nXo:22 a=jlphF6vWLdwq7oh3TaWq:22 a=eH83O4KjmLCfbRe1EArK:22 a=SXYKVUms7l59yVxtnTo9:22 Subject: Re: onion omega2+ To: Mori Hiroki , "freebsd-mips@freebsd.org" References: <694efc3a-e183-35a1-a0bf-9a9c0d708826@wolman.co.uk> <410144.69078.qm@web101716.mail.ssk.yahoo.co.jp> <128807.28836.qm@web101715.mail.ssk.yahoo.co.jp> From: Mike Wolman Message-ID: <2d555385-8258-fd75-e4a3-a1e59bf86314@wolman.co.uk> Date: Tue, 9 May 2017 02:30:13 +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: <128807.28836.qm@web101715.mail.ssk.yahoo.co.jp> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit 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: Tue, 09 May 2017 01:30:27 -0000 Hi Mori, When I compiled the world/kernel etc I used: X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT ../freebsd-wifi-build/build/bin/build ralink buildkernel I checked the serial stuff was the same as the other configs in: https://github.com/freebsd/freebsd-wifi-build/ and they looked the same. The OMEGA2.dtsi file has: chosen { bootargs = "console=ttyS0,115200"; }; And mt7628an.dtsi has: serial0 = &uartlite; I dont think im getting as far as worrying about the serial console at the moment and need to get the kernel to uncompress first. Mike. On 09/05/2017 02:20, Mori Hiroki wrote: > Hi Mike > > In FreeBSD is use serial0 dts item to console. > > I think good to use this at start. > > freebsd/sys/gnu/dts/mips/MT7628.dts > > ----- Original Message ----- >> From: Mike Wolman >> To: Mori Hiroki ; "freebsd-mips@freebsd.org" >> Cc: >> Date: 2017/5/9, Tue 09:25 >> Subject: Re: onion omega2+ >> >> Hi Mori, >> >> I grabbed the dts files from: >> >> https://github.com/WereCatf/source/tree/image/target/linux/ramips/dts >> https://github.com/WereCatf/source/blob/image/target/linux/ramips/dts/OMEGA2P.dts >> https://github.com/WereCatf/source/blob/image/target/linux/ramips/dts/OMEGA2.dtsi >> >> If this is of any use from the default linux install on the flash: >> >> root@Omega-12BF:/proc# cat /proc/mtd >> dev: size erasesize name >> mtd0: 00030000 00010000 "u-boot" >> mtd1: 00010000 00010000 "u-boot-env" >> mtd2: 00010000 00010000 "factory" >> mtd3: 01fb0000 00010000 "firmware" >> mtd4: 00148842 00010000 "kernel" >> mtd5: 01e677be 00010000 "rootfs" >> mtd6: 01950000 00010000 "rootfs_data" >> >> >> btw after posting i spotted and error in what i did with: >> >> mkimage -A mips -O linux -T kernel -C lzma \ >> -a 0x80001000 -e 0x80001100 \ >> -n "FreeBSD" -d kernel.MT7628_FDT.lzma >> kernel.MT7628_FDT.ulzma.uImage >> >> I have redone this using the correct compressed kernel ie: >> >> mkimage -A mips -O linux -T kernel -C lzma \ >> -a 0x80001000 -e 0x80001100 \ >> -n "FreeBSD" -d kernel.MT7628_FDT.ulzma >> kernel.MT7628_FDT.ulzma.uImage >> >> >> But this didnt work. >> >> >> >> On 09/05/2017 01:17, Mori Hiroki wrote: >>> Hi. >>> >>> I think if U-Boot work memory make broken then >>> Uncompressing Kernel Image is NG. >>> >>> Some ARM U-Boot is use top address in work memory. >>> If this case your kernel start address to move to >>> after work memory. But I never see in MIPS. >>> >>> And What is set FDT_DTS_FILE in your kernel configuration ? >>> >>> ----- Original Message ----- >>> >>>> From: Mike Wolman >>>> To: freebsd-mips@freebsd.org >>>> Cc: >>>> Date: 2017/5/9, Tue 07:48 >>>> Subject: Re: onion omega2+ >>>> >>>> >>>> More info in case anyone can point me in the right direction. >>>> >>>> I have found: >>>> >>>> https://forum.openwrt.org/viewtopic.php?id=53865 >>>> >>>> I have tried changing how lzma compresses the kernel by adding -d20 to >>>> the build scripts eg: >>>> >>>> /usr/local/bin/lzma e >>>> /home/mike/omega2/src/../root/mipsel_ap/boot/kernel.MT7628_FDT/kernel >> \ >>>> /home/mike/omega2/src/../tftpboot/kernel.MT7628_FDT.lzma -d20 >>>> >>>> This did not work. >>>> >>>> >>>> Looking at the onion omega conf I see that it uses mkuzip and not lzma >>>> with the following settings: >>>> >>>> X_FSIMAGE_CMD="mkuzip" >>>> X_FSIMAGE_ARGS="-L -d -s 65536 -v" >>>> X_FSIMAGE_SUFFIX=".ulzma" >>>> >>>> So tried the following: >>>> >>>> mkuzip -L -d -s 65536 -v -o kernel.MT7628_FDT.ulzma kernel.MT7628_FDT >>>> >>>> mkimage -A mips -O linux -T kernel -C lzma \ >>>> -a 0x80001000 -e 0x80001100 \ >>>> -n "FreeBSD" -d kernel.MT7628_FDT.lzma >>>> kernel.MT7628_FDT.ulzma.uImage >>>> >>>> >>>> But this did not work either. >>>> >>>> >>>> >>>> On 08/05/2017 19:41, Aleksandr Rybalko wrote: >>>>> Hi Mike! >>>>> >>>>> I see you have no "OK" after "Uncompressing Kernel >> Image >>>> ...", so >>>>> first point uboot decompressor fail. >>>>> Why fail? Because you have wrong base address in image: >>>>> Load Address: fffffff2 >>>>> Entry Point: fffffff2 >>>>> MIPS32 machines have RAM mapped to 0x80000000 address, so adding >> its >>>>> size, you will get max address (if 16MB, it will be 0x81000000), >> but >>>>> you uboot image was created with 0xfffffff2. >>>>> >>>>> Even more, unpacked kernel expects it will be called at >> 0x80001100. so >>>>> if you have ELF kernel (file with ELF header, like every >> executable) >>>>> that file have to be loaded at (0x80001100 - ELF_HEADER_SIZE). >>>>> In most cases it will be 0x80001100 - 0x100 = 0x80001000. But >> sometime >>>>> (I did not found why) it can be 0x20, you can find it by looking >> at >>>>> .text section in readelf -S. >>>>> >>>>> So if you have kernel with entry point 0x80001100 and .text >> segment >>>>> offset 0x100, you have to create uboot image with load address >>>>> 0x80001000 and entry point 0x80001100. >>>>> >>>>> If that step successful you will get: >>>>> /Uncompressing Kernel Image/ ... OK >>>>> Starting kernel ... >>>>> >>>>> Last line mean, uboot did jump into kernel code. >>>>> >>>>> Good luck. >>>>> >>>>> 2017-05-07 18:20 GMT+03:00 Mike Wolman >>>> >: >>>>> >>>>> Hi, >>>>> >>>>> I am trying to get FreeBSD working on this board - I think I >> am >>>>> almost there in getting it working but need some help please. >>>>> >>>>> I have followed instructions from the freebsd-wifi-build and >>>>> *think* I have got everything correct - I am trying to do >> this on >>>>> a CURRENT setup: >>>>> >>>>> FreeBSD f64-current.mw.office 12.0-CURRENT FreeBSD >> 12.0-CURRENT #0 >>>>> r317887: Sun May 7 03:20:34 UTC 2017 >>>>> >> mike@f64-current.mw.office:/usr/obj/usr/src/sys/GENERIC-NODEBUG amd64 >>>>> >>>>> $ cat ~/.freebsd-wifi-build-settings.cfg >>>>> X_SKIP_MORE_STUFF=YES >>>>> X_EXTRA_SRC_CONF=~/omega2/src.conf >>>>> >>>>> $ cat ~/omega2/src.conf >>>>> WITHOUT_CLANG=YES >>>>> WITHOUT_CLANG_FULL=YES >>>>> >>>>> get dts files from thread >>>>> http://community.onion.io/topic/1099/openwrt-on-the-omega-2/8 >>>>> >> >>>>> >>>>> cd ~/omega2/src/sys/gnu/dts/mips >>>>> fetch >>>>> >> https://raw.githubusercontent.com/WereCatf/source/image/target/linux/ramips/dts/OMEGA2.dtsi >>>>> >> >>>>> fetch >>>>> >> https://raw.githubusercontent.com/WereCatf/source/image/target/linux/ramips/dts/OMEGA2.dts >>>>> >> >>>>> fetch >>>>> >> https://raw.githubusercontent.com/WereCatf/source/image/target/linux/ramips/dts/OMEGA2P.dts >>>>> >> >>>>> X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT >>>>> ../freebsd-wifi-build/build/bin/build ralink buildworld >>>>> X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT >>>>> ../freebsd-wifi-build/build/bin/build ralink buildkernel >>>>> X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT >>>>> ../freebsd-wifi-build/build/bin/build ralink installworld >>>>> X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT >>>>> ../freebsd-wifi-build/build/bin/build ralink installkernel >>>>> X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT >>>>> ../freebsd-wifi-build/build/bin/build ralink distribution >>>>> >>>>> >>>>> X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT >>>>> ../freebsd-wifi-build/build/bin/build ralink mfsroot >>>>> X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT >>>>> ../freebsd-wifi-build/build/bin/build ralink fsimage >>>>> X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT >>>>> ../freebsd-wifi-build/build/bin/build ralink uboot >>>>> >>>>> >>>>> Create flash: >>>>> >>>>> X_FLASH=kernel.MT7628_FDT.lzma.flash >>>>> dd if=/dev/zero bs=$(( 0x200000 )) count=1 of=${X_FLASH} >>>>> dd if=kernel.MT7628_FDT.lzma.uImage of=${X_FLASH} >> conv=notrunc >>>>> dd if= mfsroot-ralink.img.lzma >> ${X_FLASH} >>>>> >>>>> >>>>> $ readelf -h kernel.MT7628_FDT | grep Entry >>>>> Entry point address: 0x80001100 >>>>> >>>>> >>>>> >>>>> >>>>> Now on the omega over serial - I didnt get the network >> expansion >>>>> doc thing so am doing stuff with usb rather than tftp >>>>> >>>>> I am not 100% sure about the 0x80001100 and the fatload and >> have >>>>> tried this >>>>> >>>>> Omega2 # fatload usb 0:1 0x80001100 >> /kernel.MT7628_FDT.lzma.flash >>>>> * >>>>> * >>>>> Reading file "/kernel.MT7628_FDT.lzma.flash" >>>>> * >>>>> ** >>>>> ** >>>>> ** >>>>> ****** >>>>> >> ********************************************************************************************************************************************* >>>>> ****** >>>>> * >>>>> FAT: 2108463 Bytes read >>>>> Omega2 # bootm 0x80001100 >>>>> ## Booting image at 80001100 ... >>>>> Image Name: FreeBSD >>>>> Image Type: MIPS Linux Kernel Image (lzma compressed) >>>>> Data Size: 1365122 Bytes = 1.3 MB >>>>> Load Address: fffffff2 >>>>> Entry Point: fffffff2 >>>>> Verifying Checksum ... OK >>>>> Uncompressing Kernel Image ... >>>>> >>>>> >>>>> At this point nothing happens and console hangs - note in >>>>> OMEGA2.dtsithe console is set to ttyS0: >>>>> >>>>> bootargs = "console=ttyS0,115200"; >>>>> >>>>> >>>>> >>>>> >>>>> I have also tried with just kernel.MT7628_FDT and >>>>> kernel.MT7628_FDT.lzma but both fail: >>>>> >>>>> Omega2 # fatload usb 0:1 0x80001100 >> /kernel.MT7628_FDT.lzma.uImage >>>>> * >>>>> * >>>>> Reading file "/kernel.MT7628_FDT.lzma.uImage" >>>>> * >>>>> ** >>>>> ** >>>>> ****** >>>>> >> ****************************************************************************************************************************** >>>>> ********** >>>>> * >>>>> FAT: 1365186 Bytes read >>>>> Omega2 # bootm 0x80001100 >>>>> ## Booting image at 80001100 ... >>>>> Image Name: FreeBSD >>>>> Image Type: MIPS Linux Kernel Image (lzma compressed) >>>>> Data Size: 1365122 Bytes = 1.3 MB >>>>> Load Address: fffffff2 >>>>> Entry Point: fffffff2 >>>>> Verifying Checksum ... OK >>>>> Uncompressing Kernel Image ... >>>>> >>>>> >>>>> A few comments on the hardware for anyone who wants to get >> one: >>>>> Get the expansion dock with serial port access - the power >> dock >>>>> does not provide serial access - i think it is possible to >> use an >>>>> ftdi ttl serial chip/cable but have not tried. >>>>> >>>>> Stupidly I forgot this only has wifi access so you are not >> able to >>>>> tftp boot this without getting the ethernet network expansion >> but >>>>> loading stuff up from a usb memory stick is seem fine from >> u-boot. >>>>> I do not think that it is possible to boot from the SD card >> on the >>>>> Omega2+ - which is a shame. >>>>> >>>>> Thanks for reading, >>>>> >>>>> Mike. >>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> 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 > > >>>> _______________________________________________ >>>> 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" >>>> From owner-freebsd-mips@freebsd.org Tue May 9 04:05:53 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 6DBD3D658CA for ; Tue, 9 May 2017 04:05:53 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from nh501-vm3.bullet.mail.kks.yahoo.co.jp (nh501-vm3.bullet.mail.kks.yahoo.co.jp [183.79.56.133]) by mx1.freebsd.org (Postfix) with SMTP id AC62214C1 for ; Tue, 9 May 2017 04:05:52 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from [183.79.100.141] by nh501.bullet.mail.kks.yahoo.co.jp with NNFMP; 09 May 2017 04:03:56 -0000 Received: from [183.79.100.136] by t504.bullet.mail.kks.yahoo.co.jp with NNFMP; 09 May 2017 04:03:56 -0000 Received: from [127.0.0.1] by omp505.mail.kks.yahoo.co.jp with NNFMP; 09 May 2017 04:03:56 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 954900.77202.bm@omp505.mail.kks.yahoo.co.jp Received: (qmail 80418 invoked by uid 60001); 9 May 2017 04:03:56 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.jp; s=yj20110701; t=1494302636; bh=GY93ft+nRJTByTGe9YDnhBykZYWw1QyEsRwHhS3Rbfc=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:X-YMail-JAS:References:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=UdupNuZa4u7AJCY8gZz1ETrNMNDO4iKlXx/Q7HHqHsD83ilPTj68qW0+pdnaiIrfBkUiPXTwmj5j82owQLne+pRJbYqcuGh5tGS60q1sqFp62MxuiDoc0ZjgTVcvRJeUxHN8UI4UO4us5o/2/n5CHhzxGHn5tCbjzOrC+pngkfQ= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=yj20110701; d=yahoo.co.jp; h=Message-ID:X-YMail-OSG:Received:X-Mailer:X-YMail-JAS:References:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=atzOXE7CvUrPWJ2EIFvMAWvtdd5Mly1rHUq6ABsU4SJFQvZlxqWX8bChik4MdsNKgAn/6+t/zziH+VxztsOa4nUrVViBcQIiKiLMJPXgpCTV2CrTttCHC9XANeTjmShBY5gpmkRCZpDs54TSzHhLNp1wLgUnOrNLkaFFQ7/IY80=; Message-ID: <651873.78746.qm@web101702.mail.ssk.yahoo.co.jp> X-YMail-OSG: _DXNguUVM1l4YcDixLsmgIf.IFDx6ecxR_50gdbtN3.jhCIQj_cPPMuxU87TXsPq25zOgId0FPrLnH_nIVH.qmVIsl84NBn.dXKQsEAOeYNzS6hJEFxUrRSpS61GzoJmz8qm5MAs16r5WwUmaeCcxMjA86yaWVaV.oM0eq_jMUQQ_TUedmf3k.fD2QPf3JUDcl93AjmpgPZS2KHBNsZbR4zxxwbYdZgnJUtudJeEBxJiam9X41iaBEBf23_8YfeG4gAMbkLFtyizhy.1hKwQL4r9GXywyWOIfiFcDp_D5FLDFA0C544zKD6R6nwZNgDPQuUkEaMcitipEgfGe95cydHZaJq0dlb_OFAfxdgYRiAfbcflrqNpXf7slZHUTwaUkLx0pK5eE9ek_oBmrjKRMFWFETols2X8k9ADChC9foS1Aql9C318Ob8P4WhZDhh9dzk0BKkfR7qTwPiUI9fGSXtgGct7B68GA7vf.1qzDcCw9fVWWTOrf0Dmg1V5VYYjl05iY2e718xG4xFEMeCGf8W35aVQ17NzIh3DwJkZAqSvEKG427wNVm5IklOFVPF.XrG.FXo0gQTR.HMfyxyyCgaw_lNKkpEOmB8sPmrtL4.fEZ.cBDPL Received: from [210.20.198.8] by web101702.mail.ssk.yahoo.co.jp via HTTP; Tue, 09 May 2017 13:03:55 JST X-Mailer: YahooMailWebService/0.8.111_71 X-YMail-JAS: TzZB2xwVM1lyFSD_YS7JZTvAJlfIVwgWZcb8RhovAUYefvw95_l_0eNsR9I0ieVjQESDbHMNmyOvf.FBgMcTe4H84Bj6x3UpCsoZd7paAMB2UE8DDVIWydXYvFrg6cC_RS9Q References: <694efc3a-e183-35a1-a0bf-9a9c0d708826@wolman.co.uk> <410144.69078.qm@web101716.mail.ssk.yahoo.co.jp> <128807.28836.qm@web101715.mail.ssk.yahoo.co.jp> <2d555385-8258-fd75-e4a3-a1e59bf86314@wolman.co.uk> Date: Tue, 9 May 2017 13:03:55 +0900 (JST) From: Mori Hiroki Reply-To: Mori Hiroki Subject: Re: onion omega2+ To: Mike Wolman , "freebsd-mips@freebsd.org" In-Reply-To: <2d555385-8258-fd75-e4a3-a1e59bf86314@wolman.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable 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: Tue, 09 May 2017 04:05:53 -0000 Hi Mike=0A=0ACould you show u-boot printenv command result.=0A=0AThanks=0A= =0A=0A----- Original Message -----=0A> From: Mike Wolman =0A> To: Mori Hiroki ; "freebsd-mips@freebsd.org" <= freebsd-mips@freebsd.org>=0A> Cc: =0A> Date: 2017/5/9, Tue 10:30=0A> Subjec= t: Re: onion omega2+=0A> =0A> Hi Mori,=0A> =0A> When I compiled the world/k= ernel etc I used:=0A> =0A> X_DTS_FILE=3DOMEGA2P.dts KERNCONF=3DMT7628_FDT = =0A> ../freebsd-wifi-build/build/bin/build ralink buildkernel=0A> =0A> I ch= ecked the serial stuff was the same as the other configs in: =0A> https://g= ithub.com/freebsd/freebsd-wifi-build/=0A> and they looked the same.=0A> =0A= > The OMEGA2.dtsi file has:=0A> =0A> =A0 =A0 =A0 =A0 chosen {=0A> =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 bootargs =3D "console=3DttyS0,115200";=0A> =A0 =A0= =A0 =A0 };=0A> =0A> =0A> And mt7628an.dtsi has:=A0 serial0 =3D &uartlite= ;=0A> =0A> I dont think im getting as far as worrying about the serial cons= ole at =0A> the moment and need to get the kernel to uncompress first.=0A> = =0A> Mike.=0A> =0A> =0A> On 09/05/2017 02:20, Mori Hiroki wrote:=0A>> Hi M= ike=0A>> =0A>> In FreeBSD is use serial0 dts item to console.=0A>> =0A>> = I think good to use this at start.=0A>> =0A>> freebsd/sys/gnu/dts/mips/MT7= 628.dts=0A>> =0A>> ----- Original Message -----=0A>>> From: Mike Wolman <= mike@wolman.co.uk>=0A>>> To: Mori Hiroki ; =0A> "fr= eebsd-mips@freebsd.org" =0A>>> Cc:=0A>>> Date: = 2017/5/9, Tue 09:25=0A>>> Subject: Re: onion omega2+=0A>>> =0A>>> Hi Mori= ,=0A>>> =0A>>> I grabbed the dts files from:=0A>>> =0A>>> https://github.= com/WereCatf/source/tree/image/target/linux/ramips/dts=0A>>> =0A> https://g= ithub.com/WereCatf/source/blob/image/target/linux/ramips/dts/OMEGA2P.dts=0A= >>> =0A> https://github.com/WereCatf/source/blob/image/target/linux/ramips/= dts/OMEGA2.dtsi=0A>>> =0A>>> If this is of any use from the default linux = install on the flash:=0A>>> =0A>>> root@Omega-12BF:/proc# cat /proc/mtd=0A= >>> dev:=A0 =A0 size=A0 erasesize=A0 name=0A>>> mtd0: 00030000 00010000 = "u-boot"=0A>>> mtd1: 00010000 00010000 "u-boot-env"=0A>>> mtd2: 00010000 = 00010000 "factory"=0A>>> mtd3: 01fb0000 00010000 "firmware"=0A>>> mtd4: 0= 0148842 00010000 "kernel"=0A>>> mtd5: 01e677be 00010000 "rootfs"=0A>>> mt= d6: 01950000 00010000 "rootfs_data"=0A>>> =0A>>> =0A>>> btw after posting = i spotted and error in what i did with:=0A>>> =0A>>> mkimage -A mips -O li= nux -T kernel -C lzma \=0A>>> =A0 =A0 =A0 -a 0x80001000 -e 0x80001100 \=0A>= >> =A0 =A0 =A0 -n "FreeBSD" -d kernel.MT7628_FDT.lzma=0A>>> kernel.MT7628_= FDT.ulzma.uImage=0A>>> =0A>>> I have redone this using the correct compres= sed kernel ie:=0A>>> =0A>>> mkimage -A mips -O linux -T kernel -C lzma \= =0A>>> =A0 =A0 =A0 -a 0x80001000 -e 0x80001100 \=0A>>> =A0 =A0 =A0 -n "Free= BSD" -d kernel.MT7628_FDT.ulzma=0A>>> kernel.MT7628_FDT.ulzma.uImage=0A>>>= =0A>>> =0A>>> But this didnt work.=0A>>> =0A>>> =0A>>> =0A>>> On 09/05/2= 017 01:17, Mori Hiroki wrote:=0A>>>> =A0 Hi.=0A>>>> =0A>>>> =A0 I think i= f U-Boot work memory make broken then=0A>>>> =A0 Uncompressing Kernel Imag= e is NG.=0A>>>> =0A>>>> =A0 Some ARM U-Boot is use top address in work mem= ory.=0A>>>> =A0 If this case your kernel start address to move to=0A>>>> = =A0 after work memory. But I never see in MIPS.=0A>>>> =0A>>>> =A0 And Wh= at is set FDT_DTS_FILE=A0 in your kernel configuration ?=0A>>>> =0A>>>> =A0= ----- Original Message -----=0A>>>> =0A>>>>> =A0 From: Mike Wolman =0A>>>>> =A0 To: freebsd-mips@freebsd.org=0A>>>>> =A0 Cc:= =0A>>>>> =A0 Date: 2017/5/9, Tue 07:48=0A>>>>> =A0 Subject: Re: onion ome= ga2+=0A>>>>> =0A>>>>> =0A>>>>> =A0 More info in case anyone can point me i= n the right direction.=0A>>>>> =0A>>>>> =A0 I have found:=0A>>>>> =0A>>>>>= =A0 https://forum.openwrt.org/viewtopic.php?id=3D53865=0A>>>>> =0A>>>>> = =A0 I have tried changing how lzma compresses the kernel by =0A> adding -d= 20 to=0A>>>>> =A0 the build scripts eg:=0A>>>>> =0A>>>>> =A0 /usr/local/b= in/lzma e=0A>>>>> =A0 =0A> /home/mike/omega2/src/../root/mipsel_ap/boot/ker= nel.MT7628_FDT/kernel=0A>>> \=0A>>>>> =A0 /home/mike/omega2/src/../tftpbo= ot/kernel.MT7628_FDT.lzma -d20=0A>>>>> =0A>>>>> =A0 This did not work.=0A>= >>>> =0A>>>>> =0A>>>>> =A0 Looking at the onion omega conf I see that it u= ses mkuzip and =0A> not lzma=0A>>>>> =A0 with the following settings:=0A>>= >>> =0A>>>>> =A0 X_FSIMAGE_CMD=3D"mkuzip"=0A>>>>> =A0 X_FSIMAGE_ARGS=3D"-= L -d -s 65536 -v"=0A>>>>> =A0 X_FSIMAGE_SUFFIX=3D".ulzma"=0A>>>>> =0A>>>>>= =A0 So tried the following:=0A>>>>> =0A>>>>> =A0 mkuzip -L -d -s 65536 -= v -o kernel.MT7628_FDT.ulzma =0A> kernel.MT7628_FDT=0A>>>>> =0A>>>>> =A0 m= kimage -A mips -O linux -T kernel -C lzma \=0A>>>>> =A0 =A0 =A0 -a 0x80001= 000 -e 0x80001100 \=0A>>>>> =A0 =A0 =A0 -n "FreeBSD" -d kernel.MT7628_FDT.= lzma=0A>>>>> =A0 kernel.MT7628_FDT.ulzma.uImage=0A>>>>> =0A>>>>> =0A>>>>> = =A0 But this did not work either.=0A>>>>> =0A>>>>> =0A>>>>> =0A>>>>> =A0 = On 08/05/2017 19:41, Aleksandr Rybalko wrote:=0A>>>>>> =A0 =A0 Hi Mike!=0A= >>>>>> =0A>>>>>> =A0 =A0 I see you have no "OK" after =0A> "Uncompressing = Kernel=0A>>> Image=0A>>>>> =A0 ...", so=0A>>>>>> =A0 =A0 first point ubo= ot decompressor fail.=0A>>>>>> =A0 =A0 Why fail? Because you have wrong ba= se address in image:=0A>>>>>> =A0 =A0 =A0 Load Address: fffffff2=0A>>>>>> = =A0 =A0 =A0 Entry Point:=A0 fffffff2=0A>>>>>> =A0 =A0 MIPS32 machines hav= e RAM mapped to 0x80000000 address, =0A> so adding=0A>>> its=0A>>>>>> =A0 = =A0 size, you will get max address (if 16MB, it will be =0A> 0x81000000),= =0A>>> but=0A>>>>>> =A0 =A0 you uboot image was created with 0xfffffff2.= =0A>>>>>> =0A>>>>>> =A0 =A0 Even more, unpacked kernel expects it will be = called at=0A>>> 0x80001100. so=0A>>>>>> =A0 =A0 if you have ELF kernel (f= ile with ELF header, like =0A> every=0A>>> executable)=0A>>>>>> =A0 =A0 t= hat file have to be loaded at (0x80001100 - =0A> ELF_HEADER_SIZE).=0A>>>>>>= =A0 =A0 In most cases it will be 0x80001100 - 0x100 =3D =0A> 0x80001000. = But=0A>>> sometime=0A>>>>>> =A0 =A0 (I did not found why) it can be 0x20,= you can find it =0A> by looking=0A>>> at=0A>>>>>> =A0 =A0 .text section = in readelf -S.=0A>>>>>> =0A>>>>>> =A0 =A0 So if you have kernel with entry= point 0x80001100 and =0A> .text=0A>>> segment=0A>>>>>> =A0 =A0 offset 0x= 100, you have to create uboot image with load =0A> address=0A>>>>>> =A0 =A0= 0x80001000 and entry point 0x80001100.=0A>>>>>> =0A>>>>>> =A0 =A0 If tha= t step successful you will get:=0A>>>>>> =A0 =A0 /Uncompressing Kernel Ima= ge/ ... OK=0A>>>>>> =A0 =A0 Starting kernel ...=0A>>>>>> =0A>>>>>> =A0 =A0= Last line mean, uboot did jump into kernel code.=0A>>>>>> =0A>>>>>> =A0 = =A0 Good luck.=0A>>>>>> =0A>>>>>> =A0 =A0 2017-05-07 18:20 GMT+03:00 Mike= Wolman =0A> >>>>> =A0 =A0 >:=0A>>>>>> =0A>>>>>> =A0 =A0 =A0 =A0 Hi,=0A>>>>>> =0A>>>>>> =A0 =A0 =A0 = =A0 I am trying to get FreeBSD working on this board - =0A> I think I=0A>>= > am=0A>>>>>> =A0 =A0 =A0 =A0 almost there in getting it working but need= some =0A> help please.=0A>>>>>> =0A>>>>>> =A0 =A0 =A0 =A0 I have followed= instructions from the =0A> freebsd-wifi-build and=0A>>>>>> =A0 =A0 =A0 =A0= *think* I have got everything correct - I am trying =0A> to do=0A>>> thi= s on=0A>>>>>> =A0 =A0 =A0 =A0 a CURRENT setup:=0A>>>>>> =0A>>>>>> =A0 =A0 = =A0 =A0 FreeBSD f64-current.mw.office 12.0-CURRENT FreeBSD=0A>>> 12.0-CUR= RENT #0=0A>>>>>> =A0 =A0 =A0 =A0 r317887: Sun May=A0 7 03:20:34 UTC 2017= =0A>>>>>> =A0 =A0 =A0 =A0 =0A>>> mike@f64-current.mw.office:/usr/obj/usr/s= rc/sys/GENERIC-NODEBUG amd64=0A>>>>>> =0A>>>>>> =A0 =A0 =A0 =A0 $ cat ~/.f= reebsd-wifi-build-settings.cfg=0A>>>>>> =A0 =A0 =A0 =A0 X_SKIP_MORE_STUFF= =3DYES=0A>>>>>> =A0 =A0 =A0 =A0 X_EXTRA_SRC_CONF=3D~/omega2/src.conf=0A>>>= >>> =0A>>>>>> =A0 =A0 =A0 =A0 $ cat ~/omega2/src.conf=0A>>>>>> =A0 =A0 =A0= =A0 WITHOUT_CLANG=3DYES=0A>>>>>> =A0 =A0 =A0 =A0 WITHOUT_CLANG_FULL=3DYE= S=0A>>>>>> =0A>>>>>> =A0 =A0 =A0 =A0 get dts files from thread=0A>>>>>> = =A0 =A0 =A0 =A0 =0A> http://community.onion.io/topic/1099/openwrt-on-the-om= ega-2/8=0A>>>>>> =A0 =A0 =A0 =A0 =0A>>> =0A>>>>>> =0A>>>>>> =A0 =A0 =A0 =A0 cd ~/omeg= a2/src/sys/gnu/dts/mips=0A>>>>>> =A0 =A0 =A0 =A0 fetch=0A>>>>>> =A0 =A0 = =A0 =A0 =0A>>> =0A> https://raw.githubusercontent.com/WereCatf/source/image= /target/linux/ramips/dts/OMEGA2.dtsi=0A>>>>>> =A0 =A0 =A0 =A0 =0A>>> =0A> <= https://raw.githubusercontent.com/WereCatf/source/image/target/linux/ramips= /dts/OMEGA2.dtsi>=0A>>>>>> =A0 =A0 =A0 =A0 fetch=0A>>>>>> =A0 =A0 =A0 =A0 = =0A>>> =0A> https://raw.githubusercontent.com/WereCatf/source/image/target/= linux/ramips/dts/OMEGA2.dts=0A>>>>>> =A0 =A0 =A0 =A0 =0A>>> =0A> =0A>>>>>> =A0 =A0 =A0 =A0 fetch=0A>>>>>> =A0 =A0 =A0 =A0 =0A>>> =0A= > https://raw.githubusercontent.com/WereCatf/source/image/target/linux/rami= ps/dts/OMEGA2P.dts=0A>>>>>> =A0 =A0 =A0 =A0 =0A>>> =0A> = =0A>>>>>> =A0 =A0 =A0 =A0 X_DTS_FILE=3DOMEGA2P.dts KERNCONF=3DMT7628_FDT= =0A>>>>>> =A0 =A0 =A0 =A0 ../freebsd-wifi-build/build/bin/build ralink =0A= > buildworld=0A>>>>>> =A0 =A0 =A0 =A0 X_DTS_FILE=3DOMEGA2P.dts KERNCONF=3D= MT7628_FDT=0A>>>>>> =A0 =A0 =A0 =A0 ../freebsd-wifi-build/build/bin/build = ralink =0A> buildkernel=0A>>>>>> =A0 =A0 =A0 =A0 X_DTS_FILE=3DOMEGA2P.dts = KERNCONF=3DMT7628_FDT=0A>>>>>> =A0 =A0 =A0 =A0 ../freebsd-wifi-build/build= /bin/build ralink =0A> installworld=0A>>>>>> =A0 =A0 =A0 =A0 X_DTS_FILE=3D= OMEGA2P.dts KERNCONF=3DMT7628_FDT=0A>>>>>> =A0 =A0 =A0 =A0 ../freebsd-wifi= -build/build/bin/build ralink =0A> installkernel=0A>>>>>> =A0 =A0 =A0 =A0 = X_DTS_FILE=3DOMEGA2P.dts KERNCONF=3DMT7628_FDT=0A>>>>>> =A0 =A0 =A0 =A0 ..= /freebsd-wifi-build/build/bin/build ralink =0A> distribution=0A>>>>>> =0A>>= >>>> =0A>>>>>> =A0 =A0 =A0 =A0 X_DTS_FILE=3DOMEGA2P.dts KERNCONF=3DMT7628_= FDT=0A>>>>>> =A0 =A0 =A0 =A0 ../freebsd-wifi-build/build/bin/build ralink = =0A> mfsroot=0A>>>>>> =A0 =A0 =A0 =A0 X_DTS_FILE=3DOMEGA2P.dts KERNCONF=3D= MT7628_FDT=0A>>>>>> =A0 =A0 =A0 =A0 ../freebsd-wifi-build/build/bin/build = ralink =0A> fsimage=0A>>>>>> =A0 =A0 =A0 =A0 X_DTS_FILE=3DOMEGA2P.dts KERN= CONF=3DMT7628_FDT=0A>>>>>> =A0 =A0 =A0 =A0 ../freebsd-wifi-build/build/bin= /build ralink uboot=0A>>>>>> =0A>>>>>> =0A>>>>>> =A0 =A0 =A0 =A0 Create fl= ash:=0A>>>>>> =0A>>>>>> =A0 =A0 =A0 =A0 X_FLASH=3Dkernel.MT7628_FDT.lzma.f= lash=0A>>>>>> =A0 =A0 =A0 =A0 dd if=3D/dev/zero bs=3D$(( 0x200000 )) count= =3D1 =0A> of=3D${X_FLASH}=0A>>>>>> =A0 =A0 =A0 =A0 dd if=3Dkernel.MT7628_F= DT.lzma.uImage of=3D${X_FLASH}=0A>>> conv=3Dnotrunc=0A>>>>>> =A0 =A0 =A0 = =A0 dd if=3D mfsroot-ralink.img.lzma >> ${X_FLASH}=0A>>>>>> =0A>>>>>> =0A>= >>>>> =A0 =A0 =A0 =A0 $ readelf -h kernel.MT7628_FDT | grep Entry=0A>>>>>>= =A0 =A0 =A0 =A0 =A0 Entry point address:=A0 =A0 =A0 =A0 =A0 =A0 =A0 0x80= 001100=0A>>>>>> =0A>>>>>> =0A>>>>>> =0A>>>>>> =0A>>>>>> =A0 =A0 =A0 =A0 No= w on the omega over serial - I didnt get the =0A> network=0A>>> expansion= =0A>>>>>> =A0 =A0 =A0 =A0 doc thing so am doing stuff with usb rather than= =0A> tftp=0A>>>>>> =0A>>>>>> =A0 =A0 =A0 =A0 I am not 100% sure about the= 0x80001100 and the =0A> fatload and=0A>>> have=0A>>>>>> =A0 =A0 =A0 =A0 = tried this=0A>>>>>> =0A>>>>>> =A0 =A0 =A0 =A0 Omega2 # fatload usb 0:1 0x8= 0001100=0A>>> /kernel.MT7628_FDT.lzma.flash=0A>>>>>> =A0 =A0 =A0 =A0 *=0A= >>>>>> =A0 =A0 =A0 =A0 *=0A>>>>>> =A0 =A0 =A0 =A0 Reading file =0A> "/ker= nel.MT7628_FDT.lzma.flash"=0A>>>>>> =A0 =A0 =A0 =A0 *=0A>>>>>> =A0 =A0 =A0= =A0 **=0A>>>>>> =A0 =A0 =A0 =A0 **=0A>>>>>> =A0 =A0 =A0 =A0 **=0A>>>>>>= =A0 =A0 =A0 =A0 ******=0A>>>>>> =A0 =A0 =A0 =A0 =0A>>> =0A> *************= ***************************************************************************= *****************************************************=0A>>>>>> =A0 =A0 =A0 = =A0 ******=0A>>>>>> =A0 =A0 =A0 =A0 *=0A>>>>>> =A0 =A0 =A0 =A0 FAT: 2108= 463 Bytes read=0A>>>>>> =A0 =A0 =A0 =A0 Omega2 # bootm 0x80001100=0A>>>>>>= =A0 =A0 =A0 =A0 ## Booting image at 80001100 ...=0A>>>>>> =A0 =A0 =A0 =A0= =A0 =A0 Image Name:=A0 FreeBSD=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 Image Typ= e:=A0 MIPS Linux Kernel Image (lzma =0A> compressed)=0A>>>>>> =A0 =A0 =A0 = =A0 =A0 =A0 Data Size:=A0 =A0 1365122 Bytes =3D=A0 1.3 MB=0A>>>>>> =A0 =A0 = =A0 =A0 =A0 =A0 Load Address: fffffff2=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 Ent= ry Point:=A0 fffffff2=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 Verifying Checksum .= .. OK=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 Uncompressing Kernel Image ...=0A>>>= >>> =0A>>>>>> =0A>>>>>> =A0 =A0 =A0 =A0 At this point nothing happens and = console hangs - =0A> note in=0A>>>>>> =A0 =A0 =A0 =A0 OMEGA2.dtsithe conso= le is set to ttyS0:=0A>>>>>> =0A>>>>>> =A0 =A0 =A0 =A0 bootargs =3D "conso= le=3DttyS0,115200";=0A>>>>>> =0A>>>>>> =0A>>>>>> =0A>>>>>> =0A>>>>>> =A0 = =A0 =A0 =A0 I have also tried with just kernel.MT7628_FDT and=0A>>>>>> =A0= =A0 =A0 =A0 kernel.MT7628_FDT.lzma but both fail:=0A>>>>>> =0A>>>>>> =A0 = =A0 =A0 =A0 Omega2 # fatload usb 0:1 0x80001100=0A>>> /kernel.MT7628_FDT.= lzma.uImage=0A>>>>>> =A0 =A0 =A0 =A0 *=0A>>>>>> =A0 =A0 =A0 =A0 *=0A>>>>>= > =A0 =A0 =A0 =A0 Reading file =0A> "/kernel.MT7628_FDT.lzma.uImage"=0A>>>= >>> =A0 =A0 =A0 =A0 *=0A>>>>>> =A0 =A0 =A0 =A0 **=0A>>>>>> =A0 =A0 =A0 = =A0 **=0A>>>>>> =A0 =A0 =A0 =A0 ******=0A>>>>>> =A0 =A0 =A0 =A0 =0A>>> = =0A> **********************************************************************= ********************************************************=0A>>>>>> =A0 =A0 = =A0 =A0 **********=0A>>>>>> =A0 =A0 =A0 =A0 *=0A>>>>>> =A0 =A0 =A0 =A0 F= AT: 1365186 Bytes read=0A>>>>>> =A0 =A0 =A0 =A0 Omega2 # bootm 0x80001100= =0A>>>>>> =A0 =A0 =A0 =A0 ## Booting image at 80001100 ...=0A>>>>>> =A0 = =A0 =A0 =A0 =A0 =A0 Image Name:=A0 FreeBSD=0A>>>>>> =A0 =A0 =A0 =A0 =A0 = =A0 Image Type:=A0 MIPS Linux Kernel Image (lzma =0A> compressed)=0A>>>>>>= =A0 =A0 =A0 =A0 =A0 =A0 Data Size:=A0 =A0 1365122 Bytes =3D=A0 1.3 MB=0A>>= >>>> =A0 =A0 =A0 =A0 =A0 =A0 Load Address: fffffff2=0A>>>>>> =A0 =A0 =A0 = =A0 =A0 =A0 Entry Point:=A0 fffffff2=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 Verif= ying Checksum ... OK=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 Uncompressing Kernel = Image ...=0A>>>>>> =0A>>>>>> =0A>>>>>> =A0 =A0 =A0 =A0 A few comments on t= he hardware for anyone who wants =0A> to get=0A>>> one:=0A>>>>>> =A0 =A0 = =A0 =A0 Get the expansion dock with serial port access - =0A> the power=0A= >>> dock=0A>>>>>> =A0 =A0 =A0 =A0 does not provide serial access - i thin= k it is =0A> possible to=0A>>> use an=0A>>>>>> =A0 =A0 =A0 =A0 ftdi ttl s= erial chip/cable but have not tried.=0A>>>>>> =0A>>>>>> =A0 =A0 =A0 =A0 St= upidly I forgot this only has wifi access so you =0A> are not=0A>>> able t= o=0A>>>>>> =A0 =A0 =A0 =A0 tftp boot this without getting the ethernet net= work =0A> expansion=0A>>> but=0A>>>>>> =A0 =A0 =A0 =A0 loading stuff up f= rom a usb memory stick is seem =0A> fine from=0A>>> u-boot.=0A>>>>>> =A0 = =A0 =A0 =A0 I do not think that it is possible to boot from the =0A> SD ca= rd=0A>>> on the=0A>>>>>> =A0 =A0 =A0 =A0 Omega2+ - which is a shame.=0A>>= >>>> =0A>>>>>> =A0 =A0 =A0 =A0 Thanks for reading,=0A>>>>>> =0A>>>>>> =A0 = =A0 =A0 =A0 Mike.=0A>>>>>> =0A>>>>>> =0A>>>>>> =0A>>>>>> =A0 =A0 =A0 =A0 = _______________________________________________=0A>>>>>> =A0 =A0 =A0 =A0 fr= eebsd-mips@freebsd.org=0A>>> mailing=0A>>= >>> =A0 list=0A>>>>>> =A0 =A0 =A0 =A0 =0A> https://lists.freebsd.org/mailm= an/listinfo/freebsd-mips=0A>>>>>> =A0 =A0 =A0 =A0 =0A>>> =0A>>>>>> =A0 =A0 =A0 =A0 To unsub= scribe, send any mail to=0A>>>>>> =A0 =A0 =A0 =A0 "freebsd-mips-unsubscrib= e@freebsd.org=0A>>>>>> =A0 =A0 =A0 =A0 =0A> "=0A>>>>>> =0A>>>>>> =0A>>>>>> =0A>>>>>> =0A>>>>>> =A0 =A0 -= -=0A>>>>>> =A0 =A0 WBW=0A>>>>>> =A0 =A0 -------=0A>>>>>> =A0 =A0 Rybalko= Aleksandr >> >=0A>>>>> =A0 ___= ____________________________________________=0A>>>>> =A0 freebsd-mips@freeb= sd.org mailing list=0A>>>>> =A0 https://lists.freebsd.org/mailman/listinfo/= freebsd-mips=0A>>>>> =A0 To unsubscribe, send any mail to=0A>>>>> =A0 "fr= eebsd-mips-unsubscribe@freebsd.org"=0A>>>>> =0A> From owner-freebsd-mips@freebsd.org Tue May 9 09:13:02 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 7B7DBD653E1 for ; Tue, 9 May 2017 09:13:02 +0000 (UTC) (envelope-from ray@ddteam.net) Received: from mail-yb0-x22f.google.com (mail-yb0-x22f.google.com [IPv6:2607:f8b0:4002:c09::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4D0BFDE6 for ; Tue, 9 May 2017 09:13:01 +0000 (UTC) (envelope-from ray@ddteam.net) Received: by mail-yb0-x22f.google.com with SMTP id p143so17773041yba.2 for ; Tue, 09 May 2017 02:13:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ddteam-net.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=0R7FvKiuAa51zPovI5lecsATcV8g8j92k+pnpyp1iYU=; b=dOeXQrwBtQBvpcnA0BaDnny0KduLN+p4g2ebdTOG3Q0DIStIMWkkGysYOx4GW3OCSD eM3WH0WMA9IbKUXpk5yCBdjx0IeioIty/C6I4OtBfWHdbxQ2ZZpnG58328HpVnXk8Wx2 aFMjOoUPLBttH47SvMU5Qifh1ENSTlr2ov2KZxuGuu/TdieSwVKHl7l6TPgz7fbJ3duu HDv7u4tDSx8jEy9vpl8g8VoW868haw0o+/1pCIgWi4R6QT5zyZwuw3EvHvNw2Pc4xzT/ 4/aZQg4B2r2+REyCuEttQRsqcHubV3Fofw/AZZtJFboJQXYlInXfTbYMK6RZwaDE5a7n BWWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=0R7FvKiuAa51zPovI5lecsATcV8g8j92k+pnpyp1iYU=; b=UVz0Vlz6qbPmrYOJYRrxJodpoLJp8i3ut69Op3i2B31+OS4tZj4tQ49bjOrRU4AF5i UnGUDU9LDXeS2+bxb4TiNIF5Y1o+OcKsAmoCm9eJcoY/6tNz6zjKCCd82gZ/D88RA2Ba 72ZflNSstM3DKIDN5TinMQXuiQ1ueCkM2A08Qmz4DCSDAY5eZZro3mFVKfaMFbILpSeJ HbDF/O/jpqabCK/rbf4Ey6DJdjzUY/uxrVNgiJXDkKbCyeaZ9aBceTCyEI3tIP/iMPTJ 5VEJOgrDRJNSOnZ/ONkXyg4De+e+t/dcgSa/1qIh/fUsky56IaaOxxROo3vjEaul4fE1 eNMQ== X-Gm-Message-State: AODbwcDz7Qq3cF3yAgZ3Bty0qg+FOyzz4w0UcCfHDuPEdK/whoTjo5AT nAAu1jHebMCrCuOfvi2omJE/K8Kgng== X-Received: by 10.37.160.65 with SMTP id x59mr14064101ybh.115.1494321180179; Tue, 09 May 2017 02:13:00 -0700 (PDT) MIME-Version: 1.0 Received: by 10.37.161.194 with HTTP; Tue, 9 May 2017 02:12:59 -0700 (PDT) In-Reply-To: <651873.78746.qm@web101702.mail.ssk.yahoo.co.jp> References: <694efc3a-e183-35a1-a0bf-9a9c0d708826@wolman.co.uk> <410144.69078.qm@web101716.mail.ssk.yahoo.co.jp> <128807.28836.qm@web101715.mail.ssk.yahoo.co.jp> <2d555385-8258-fd75-e4a3-a1e59bf86314@wolman.co.uk> <651873.78746.qm@web101702.mail.ssk.yahoo.co.jp> From: Aleksandr Rybalko Date: Tue, 9 May 2017 12:12:59 +0300 Message-ID: Subject: Re: onion omega2+ To: Mori Hiroki Cc: Mike Wolman , "freebsd-mips@freebsd.org" Content-Type: text/plain; charset=UTF-8 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: Tue, 09 May 2017 09:13:02 -0000 Fix things in order :) Currently you have problem with LZMA, serial port later. So, find version of lzma used to build linux firmware, MIPS routers world use about 5 incompatible versions. One of them, you can find here: http://project.zrouter.org/hg/zrouter/file/9ac53695a44d/tools/oldlzma 2017-05-09 7:03 GMT+03:00 Mori Hiroki : > Hi Mike > > Could you show u-boot printenv command result. > > Thanks > > > ----- Original Message ----- > > From: Mike Wolman > > To: Mori Hiroki ; "freebsd-mips@freebsd.org" < > freebsd-mips@freebsd.org> > > Cc: > > Date: 2017/5/9, Tue 10:30 > > Subject: Re: onion omega2+ > > > > Hi Mori, > > > > When I compiled the world/kernel etc I used: > > > > X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT > > ../freebsd-wifi-build/build/bin/build ralink buildkernel > > > > I checked the serial stuff was the same as the other configs in: > > https://github.com/freebsd/freebsd-wifi-build/ > > and they looked the same. > > > > The OMEGA2.dtsi file has: > > > > chosen { > > bootargs = "console=ttyS0,115200"; > > }; > > > > > > And mt7628an.dtsi has: serial0 = &uartlite; > > > > I dont think im getting as far as worrying about the serial console at > > the moment and need to get the kernel to uncompress first. > > > > Mike. > > > > > > On 09/05/2017 02:20, Mori Hiroki wrote: > >> Hi Mike > >> > >> In FreeBSD is use serial0 dts item to console. > >> > >> I think good to use this at start. > >> > >> freebsd/sys/gnu/dts/mips/MT7628.dts > >> > >> ----- Original Message ----- > >>> From: Mike Wolman > >>> To: Mori Hiroki ; > > "freebsd-mips@freebsd.org" > >>> Cc: > >>> Date: 2017/5/9, Tue 09:25 > >>> Subject: Re: onion omega2+ > >>> > >>> Hi Mori, > >>> > >>> I grabbed the dts files from: > >>> > >>> https://github.com/WereCatf/source/tree/image/target/linux/ramips/dts > >>> > > https://github.com/WereCatf/source/blob/image/target/ > linux/ramips/dts/OMEGA2P.dts > >>> > > https://github.com/WereCatf/source/blob/image/target/ > linux/ramips/dts/OMEGA2.dtsi > >>> > >>> If this is of any use from the default linux install on the flash: > >>> > >>> root@Omega-12BF:/proc# cat /proc/mtd > >>> dev: size erasesize name > >>> mtd0: 00030000 00010000 "u-boot" > >>> mtd1: 00010000 00010000 "u-boot-env" > >>> mtd2: 00010000 00010000 "factory" > >>> mtd3: 01fb0000 00010000 "firmware" > >>> mtd4: 00148842 00010000 "kernel" > >>> mtd5: 01e677be 00010000 "rootfs" > >>> mtd6: 01950000 00010000 "rootfs_data" > >>> > >>> > >>> btw after posting i spotted and error in what i did with: > >>> > >>> mkimage -A mips -O linux -T kernel -C lzma \ > >>> -a 0x80001000 -e 0x80001100 \ > >>> -n "FreeBSD" -d kernel.MT7628_FDT.lzma > >>> kernel.MT7628_FDT.ulzma.uImage > >>> > >>> I have redone this using the correct compressed kernel ie: > >>> > >>> mkimage -A mips -O linux -T kernel -C lzma \ > >>> -a 0x80001000 -e 0x80001100 \ > >>> -n "FreeBSD" -d kernel.MT7628_FDT.ulzma > >>> kernel.MT7628_FDT.ulzma.uImage > >>> > >>> > >>> But this didnt work. > >>> > >>> > >>> > >>> On 09/05/2017 01:17, Mori Hiroki wrote: > >>>> Hi. > >>>> > >>>> I think if U-Boot work memory make broken then > >>>> Uncompressing Kernel Image is NG. > >>>> > >>>> Some ARM U-Boot is use top address in work memory. > >>>> If this case your kernel start address to move to > >>>> after work memory. But I never see in MIPS. > >>>> > >>>> And What is set FDT_DTS_FILE in your kernel configuration ? > >>>> > >>>> ----- Original Message ----- > >>>> > >>>>> From: Mike Wolman > >>>>> To: freebsd-mips@freebsd.org > >>>>> Cc: > >>>>> Date: 2017/5/9, Tue 07:48 > >>>>> Subject: Re: onion omega2+ > >>>>> > >>>>> > >>>>> More info in case anyone can point me in the right direction. > >>>>> > >>>>> I have found: > >>>>> > >>>>> https://forum.openwrt.org/viewtopic.php?id=53865 > >>>>> > >>>>> I have tried changing how lzma compresses the kernel by > > adding -d20 to > >>>>> the build scripts eg: > >>>>> > >>>>> /usr/local/bin/lzma e > >>>>> > > /home/mike/omega2/src/../root/mipsel_ap/boot/kernel.MT7628_FDT/kernel > >>> \ > >>>>> /home/mike/omega2/src/../tftpboot/kernel.MT7628_FDT.lzma -d20 > >>>>> > >>>>> This did not work. > >>>>> > >>>>> > >>>>> Looking at the onion omega conf I see that it uses mkuzip and > > not lzma > >>>>> with the following settings: > >>>>> > >>>>> X_FSIMAGE_CMD="mkuzip" > >>>>> X_FSIMAGE_ARGS="-L -d -s 65536 -v" > >>>>> X_FSIMAGE_SUFFIX=".ulzma" > >>>>> > >>>>> So tried the following: > >>>>> > >>>>> mkuzip -L -d -s 65536 -v -o kernel.MT7628_FDT.ulzma > > kernel.MT7628_FDT > >>>>> > >>>>> mkimage -A mips -O linux -T kernel -C lzma \ > >>>>> -a 0x80001000 -e 0x80001100 \ > >>>>> -n "FreeBSD" -d kernel.MT7628_FDT.lzma > >>>>> kernel.MT7628_FDT.ulzma.uImage > >>>>> > >>>>> > >>>>> But this did not work either. > >>>>> > >>>>> > >>>>> > >>>>> On 08/05/2017 19:41, Aleksandr Rybalko wrote: > >>>>>> Hi Mike! > >>>>>> > >>>>>> I see you have no "OK" after > > "Uncompressing Kernel > >>> Image > >>>>> ...", so > >>>>>> first point uboot decompressor fail. > >>>>>> Why fail? Because you have wrong base address in image: > >>>>>> Load Address: fffffff2 > >>>>>> Entry Point: fffffff2 > >>>>>> MIPS32 machines have RAM mapped to 0x80000000 address, > > so adding > >>> its > >>>>>> size, you will get max address (if 16MB, it will be > > 0x81000000), > >>> but > >>>>>> you uboot image was created with 0xfffffff2. > >>>>>> > >>>>>> Even more, unpacked kernel expects it will be called at > >>> 0x80001100. so > >>>>>> if you have ELF kernel (file with ELF header, like > > every > >>> executable) > >>>>>> that file have to be loaded at (0x80001100 - > > ELF_HEADER_SIZE). > >>>>>> In most cases it will be 0x80001100 - 0x100 = > > 0x80001000. But > >>> sometime > >>>>>> (I did not found why) it can be 0x20, you can find it > > by looking > >>> at > >>>>>> .text section in readelf -S. > >>>>>> > >>>>>> So if you have kernel with entry point 0x80001100 and > > .text > >>> segment > >>>>>> offset 0x100, you have to create uboot image with load > > address > >>>>>> 0x80001000 and entry point 0x80001100. > >>>>>> > >>>>>> If that step successful you will get: > >>>>>> /Uncompressing Kernel Image/ ... OK > >>>>>> Starting kernel ... > >>>>>> > >>>>>> Last line mean, uboot did jump into kernel code. > >>>>>> > >>>>>> Good luck. > >>>>>> > >>>>>> 2017-05-07 18:20 GMT+03:00 Mike Wolman > > >>>>>> >: > >>>>>> > >>>>>> Hi, > >>>>>> > >>>>>> I am trying to get FreeBSD working on this board - > > I think I > >>> am > >>>>>> almost there in getting it working but need some > > help please. > >>>>>> > >>>>>> I have followed instructions from the > > freebsd-wifi-build and > >>>>>> *think* I have got everything correct - I am trying > > to do > >>> this on > >>>>>> a CURRENT setup: > >>>>>> > >>>>>> FreeBSD f64-current.mw.office 12.0-CURRENT FreeBSD > >>> 12.0-CURRENT #0 > >>>>>> r317887: Sun May 7 03:20:34 UTC 2017 > >>>>>> > >>> mike@f64-current.mw.office:/usr/obj/usr/src/sys/GENERIC-NODEBUG amd64 > >>>>>> > >>>>>> $ cat ~/.freebsd-wifi-build-settings.cfg > >>>>>> X_SKIP_MORE_STUFF=YES > >>>>>> X_EXTRA_SRC_CONF=~/omega2/src.conf > >>>>>> > >>>>>> $ cat ~/omega2/src.conf > >>>>>> WITHOUT_CLANG=YES > >>>>>> WITHOUT_CLANG_FULL=YES > >>>>>> > >>>>>> get dts files from thread > >>>>>> > > http://community.onion.io/topic/1099/openwrt-on-the-omega-2/8 > >>>>>> > >>> > >>>>>> > >>>>>> cd ~/omega2/src/sys/gnu/dts/mips > >>>>>> fetch > >>>>>> > >>> > > https://raw.githubusercontent.com/WereCatf/source/image/ > target/linux/ramips/dts/OMEGA2.dtsi > >>>>>> > >>> > > linux/ramips/dts/OMEGA2.dtsi> > >>>>>> fetch > >>>>>> > >>> > > https://raw.githubusercontent.com/WereCatf/source/image/ > target/linux/ramips/dts/OMEGA2.dts > >>>>>> > >>> > > linux/ramips/dts/OMEGA2.dts> > >>>>>> fetch > >>>>>> > >>> > > https://raw.githubusercontent.com/WereCatf/source/image/ > target/linux/ramips/dts/OMEGA2P.dts > >>>>>> > >>> > > linux/ramips/dts/OMEGA2P.dts> > >>>>>> X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT > >>>>>> ../freebsd-wifi-build/build/bin/build ralink > > buildworld > >>>>>> X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT > >>>>>> ../freebsd-wifi-build/build/bin/build ralink > > buildkernel > >>>>>> X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT > >>>>>> ../freebsd-wifi-build/build/bin/build ralink > > installworld > >>>>>> X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT > >>>>>> ../freebsd-wifi-build/build/bin/build ralink > > installkernel > >>>>>> X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT > >>>>>> ../freebsd-wifi-build/build/bin/build ralink > > distribution > >>>>>> > >>>>>> > >>>>>> X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT > >>>>>> ../freebsd-wifi-build/build/bin/build ralink > > mfsroot > >>>>>> X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT > >>>>>> ../freebsd-wifi-build/build/bin/build ralink > > fsimage > >>>>>> X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT > >>>>>> ../freebsd-wifi-build/build/bin/build ralink uboot > >>>>>> > >>>>>> > >>>>>> Create flash: > >>>>>> > >>>>>> X_FLASH=kernel.MT7628_FDT.lzma.flash > >>>>>> dd if=/dev/zero bs=$(( 0x200000 )) count=1 > > of=${X_FLASH} > >>>>>> dd if=kernel.MT7628_FDT.lzma.uImage of=${X_FLASH} > >>> conv=notrunc > >>>>>> dd if= mfsroot-ralink.img.lzma >> ${X_FLASH} > >>>>>> > >>>>>> > >>>>>> $ readelf -h kernel.MT7628_FDT | grep Entry > >>>>>> Entry point address: 0x80001100 > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> Now on the omega over serial - I didnt get the > > network > >>> expansion > >>>>>> doc thing so am doing stuff with usb rather than > > tftp > >>>>>> > >>>>>> I am not 100% sure about the 0x80001100 and the > > fatload and > >>> have > >>>>>> tried this > >>>>>> > >>>>>> Omega2 # fatload usb 0:1 0x80001100 > >>> /kernel.MT7628_FDT.lzma.flash > >>>>>> * > >>>>>> * > >>>>>> Reading file > > "/kernel.MT7628_FDT.lzma.flash" > >>>>>> * > >>>>>> ** > >>>>>> ** > >>>>>> ** > >>>>>> ****** > >>>>>> > >>> > > ************************************************************ > ************************************************************ > ********************* > >>>>>> ****** > >>>>>> * > >>>>>> FAT: 2108463 Bytes read > >>>>>> Omega2 # bootm 0x80001100 > >>>>>> ## Booting image at 80001100 ... > >>>>>> Image Name: FreeBSD > >>>>>> Image Type: MIPS Linux Kernel Image (lzma > > compressed) > >>>>>> Data Size: 1365122 Bytes = 1.3 MB > >>>>>> Load Address: fffffff2 > >>>>>> Entry Point: fffffff2 > >>>>>> Verifying Checksum ... OK > >>>>>> Uncompressing Kernel Image ... > >>>>>> > >>>>>> > >>>>>> At this point nothing happens and console hangs - > > note in > >>>>>> OMEGA2.dtsithe console is set to ttyS0: > >>>>>> > >>>>>> bootargs = "console=ttyS0,115200"; > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> I have also tried with just kernel.MT7628_FDT and > >>>>>> kernel.MT7628_FDT.lzma but both fail: > >>>>>> > >>>>>> Omega2 # fatload usb 0:1 0x80001100 > >>> /kernel.MT7628_FDT.lzma.uImage > >>>>>> * > >>>>>> * > >>>>>> Reading file > > "/kernel.MT7628_FDT.lzma.uImage" > >>>>>> * > >>>>>> ** > >>>>>> ** > >>>>>> ****** > >>>>>> > >>> > > ************************************************************ > ****************************************************************** > >>>>>> ********** > >>>>>> * > >>>>>> FAT: 1365186 Bytes read > >>>>>> Omega2 # bootm 0x80001100 > >>>>>> ## Booting image at 80001100 ... > >>>>>> Image Name: FreeBSD > >>>>>> Image Type: MIPS Linux Kernel Image (lzma > > compressed) > >>>>>> Data Size: 1365122 Bytes = 1.3 MB > >>>>>> Load Address: fffffff2 > >>>>>> Entry Point: fffffff2 > >>>>>> Verifying Checksum ... OK > >>>>>> Uncompressing Kernel Image ... > >>>>>> > >>>>>> > >>>>>> A few comments on the hardware for anyone who wants > > to get > >>> one: > >>>>>> Get the expansion dock with serial port access - > > the power > >>> dock > >>>>>> does not provide serial access - i think it is > > possible to > >>> use an > >>>>>> ftdi ttl serial chip/cable but have not tried. > >>>>>> > >>>>>> Stupidly I forgot this only has wifi access so you > > are not > >>> able to > >>>>>> tftp boot this without getting the ethernet network > > expansion > >>> but > >>>>>> loading stuff up from a usb memory stick is seem > > fine from > >>> u-boot. > >>>>>> I do not think that it is possible to boot from the > > SD card > >>> on the > >>>>>> Omega2+ - which is a shame. > >>>>>> > >>>>>> Thanks for reading, > >>>>>> > >>>>>> Mike. > >>>>>> > >>>>>> > >>>>>> > >>>>>> _______________________________________________ > >>>>>> 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 >>> > > >>>>> _______________________________________________ > >>>>> 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 From owner-freebsd-mips@freebsd.org Tue May 9 10:52:35 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 33A7DD6510C for ; Tue, 9 May 2017 10:52:35 +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 489261E24 for ; Tue, 9 May 2017 10:52:33 +0000 (UTC) (envelope-from mike@wolman.co.uk) Received: from [192.168.3.50] ([80.229.66.11]) by avasout08 with smtp id JAsV1v0080EahWw01AsWgv; Tue, 09 May 2017 11:52:31 +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=N659UExz7-8A:10 a=UmSUZ3ptAAAA:8 a=6I5d2MoRAAAA:8 a=NEAV23lmAAAA:8 a=jdP34snFAAAA:8 a=LJ5NkaWEAAAA:8 a=bt8Zh30PAAAA:8 a=4I05h4SrAAAA:8 a=R26JpOTyYEpTV6d13xQA:9 a=Z5H5lymeGJ04ywkq:21 a=y-ayJh0IL_67MqiM:21 a=pILNOxqGKmIA:10 a=A3VBoO50a3AA:10 a=FyGKTEvU35uc88vWBdgE:22 a=IjZwj45LgO3ly-622nXo:22 a=jlphF6vWLdwq7oh3TaWq:22 a=eH83O4KjmLCfbRe1EArK:22 a=SXYKVUms7l59yVxtnTo9:22 Subject: Re: onion omega2+ To: Mori Hiroki , "freebsd-mips@freebsd.org" References: <694efc3a-e183-35a1-a0bf-9a9c0d708826@wolman.co.uk> <410144.69078.qm@web101716.mail.ssk.yahoo.co.jp> <128807.28836.qm@web101715.mail.ssk.yahoo.co.jp> <2d555385-8258-fd75-e4a3-a1e59bf86314@wolman.co.uk> <651873.78746.qm@web101702.mail.ssk.yahoo.co.jp> From: Mike Wolman Message-ID: Date: Tue, 9 May 2017 11:52:27 +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: <651873.78746.qm@web101702.mail.ssk.yahoo.co.jp> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit 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: Tue, 09 May 2017 10:52:35 -0000 Sure: Omega2 # printenv bootcmd=tftp bootdelay=5 baudrate=115200 ethaddr="00:AA:BB:CC:DD:10" ipaddr=192.168.8.8 serverip=192.168.8.1 stdin=serial stdout=serial stderr=serial Environment size: 150/4092 bytes I dont think there is a problem with the serial stuff Mike. On 09/05/2017 05:03, Mori Hiroki wrote: > Hi Mike > > Could you show u-boot printenv command result. > > Thanks > > > ----- Original Message ----- >> From: Mike Wolman >> To: Mori Hiroki ; "freebsd-mips@freebsd.org" >> Cc: >> Date: 2017/5/9, Tue 10:30 >> Subject: Re: onion omega2+ >> >> Hi Mori, >> >> When I compiled the world/kernel etc I used: >> >> X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT >> ../freebsd-wifi-build/build/bin/build ralink buildkernel >> >> I checked the serial stuff was the same as the other configs in: >> https://github.com/freebsd/freebsd-wifi-build/ >> and they looked the same. >> >> The OMEGA2.dtsi file has: >> >> chosen { >> bootargs = "console=ttyS0,115200"; >> }; >> >> >> And mt7628an.dtsi has: serial0 = &uartlite; >> >> I dont think im getting as far as worrying about the serial console at >> the moment and need to get the kernel to uncompress first. >> >> Mike. >> >> >> On 09/05/2017 02:20, Mori Hiroki wrote: >>> Hi Mike >>> >>> In FreeBSD is use serial0 dts item to console. >>> >>> I think good to use this at start. >>> >>> freebsd/sys/gnu/dts/mips/MT7628.dts >>> >>> ----- Original Message ----- >>>> From: Mike Wolman >>>> To: Mori Hiroki ; >> "freebsd-mips@freebsd.org" >>>> Cc: >>>> Date: 2017/5/9, Tue 09:25 >>>> Subject: Re: onion omega2+ >>>> >>>> Hi Mori, >>>> >>>> I grabbed the dts files from: >>>> >>>> https://github.com/WereCatf/source/tree/image/target/linux/ramips/dts >>>> >> https://github.com/WereCatf/source/blob/image/target/linux/ramips/dts/OMEGA2P.dts >> https://github.com/WereCatf/source/blob/image/target/linux/ramips/dts/OMEGA2.dtsi >>>> If this is of any use from the default linux install on the flash: >>>> >>>> root@Omega-12BF:/proc# cat /proc/mtd >>>> dev: size erasesize name >>>> mtd0: 00030000 00010000 "u-boot" >>>> mtd1: 00010000 00010000 "u-boot-env" >>>> mtd2: 00010000 00010000 "factory" >>>> mtd3: 01fb0000 00010000 "firmware" >>>> mtd4: 00148842 00010000 "kernel" >>>> mtd5: 01e677be 00010000 "rootfs" >>>> mtd6: 01950000 00010000 "rootfs_data" >>>> >>>> >>>> btw after posting i spotted and error in what i did with: >>>> >>>> mkimage -A mips -O linux -T kernel -C lzma \ >>>> -a 0x80001000 -e 0x80001100 \ >>>> -n "FreeBSD" -d kernel.MT7628_FDT.lzma >>>> kernel.MT7628_FDT.ulzma.uImage >>>> >>>> I have redone this using the correct compressed kernel ie: >>>> >>>> mkimage -A mips -O linux -T kernel -C lzma \ >>>> -a 0x80001000 -e 0x80001100 \ >>>> -n "FreeBSD" -d kernel.MT7628_FDT.ulzma >>>> kernel.MT7628_FDT.ulzma.uImage >>>> >>>> >>>> But this didnt work. >>>> >>>> >>>> >>>> On 09/05/2017 01:17, Mori Hiroki wrote: >>>>> Hi. >>>>> >>>>> I think if U-Boot work memory make broken then >>>>> Uncompressing Kernel Image is NG. >>>>> >>>>> Some ARM U-Boot is use top address in work memory. >>>>> If this case your kernel start address to move to >>>>> after work memory. But I never see in MIPS. >>>>> >>>>> And What is set FDT_DTS_FILE in your kernel configuration ? >>>>> >>>>> ----- Original Message ----- >>>>> >>>>>> From: Mike Wolman >>>>>> To: freebsd-mips@freebsd.org >>>>>> Cc: >>>>>> Date: 2017/5/9, Tue 07:48 >>>>>> Subject: Re: onion omega2+ >>>>>> >>>>>> >>>>>> More info in case anyone can point me in the right direction. >>>>>> >>>>>> I have found: >>>>>> >>>>>> https://forum.openwrt.org/viewtopic.php?id=53865 >>>>>> >>>>>> I have tried changing how lzma compresses the kernel by >> adding -d20 to >>>>>> the build scripts eg: >>>>>> >>>>>> /usr/local/bin/lzma e >>>>>> >> /home/mike/omega2/src/../root/mipsel_ap/boot/kernel.MT7628_FDT/kernel >>>> \ >>>>>> /home/mike/omega2/src/../tftpboot/kernel.MT7628_FDT.lzma -d20 >>>>>> >>>>>> This did not work. >>>>>> >>>>>> >>>>>> Looking at the onion omega conf I see that it uses mkuzip and >> not lzma >>>>>> with the following settings: >>>>>> >>>>>> X_FSIMAGE_CMD="mkuzip" >>>>>> X_FSIMAGE_ARGS="-L -d -s 65536 -v" >>>>>> X_FSIMAGE_SUFFIX=".ulzma" >>>>>> >>>>>> So tried the following: >>>>>> >>>>>> mkuzip -L -d -s 65536 -v -o kernel.MT7628_FDT.ulzma >> kernel.MT7628_FDT >>>>>> mkimage -A mips -O linux -T kernel -C lzma \ >>>>>> -a 0x80001000 -e 0x80001100 \ >>>>>> -n "FreeBSD" -d kernel.MT7628_FDT.lzma >>>>>> kernel.MT7628_FDT.ulzma.uImage >>>>>> >>>>>> >>>>>> But this did not work either. >>>>>> >>>>>> >>>>>> >>>>>> On 08/05/2017 19:41, Aleksandr Rybalko wrote: >>>>>>> Hi Mike! >>>>>>> >>>>>>> I see you have no "OK" after >> "Uncompressing Kernel >>>> Image >>>>>> ...", so >>>>>>> first point uboot decompressor fail. >>>>>>> Why fail? Because you have wrong base address in image: >>>>>>> Load Address: fffffff2 >>>>>>> Entry Point: fffffff2 >>>>>>> MIPS32 machines have RAM mapped to 0x80000000 address, >> so adding >>>> its >>>>>>> size, you will get max address (if 16MB, it will be >> 0x81000000), >>>> but >>>>>>> you uboot image was created with 0xfffffff2. >>>>>>> >>>>>>> Even more, unpacked kernel expects it will be called at >>>> 0x80001100. so >>>>>>> if you have ELF kernel (file with ELF header, like >> every >>>> executable) >>>>>>> that file have to be loaded at (0x80001100 - >> ELF_HEADER_SIZE). >>>>>>> In most cases it will be 0x80001100 - 0x100 = >> 0x80001000. But >>>> sometime >>>>>>> (I did not found why) it can be 0x20, you can find it >> by looking >>>> at >>>>>>> .text section in readelf -S. >>>>>>> >>>>>>> So if you have kernel with entry point 0x80001100 and >> .text >>>> segment >>>>>>> offset 0x100, you have to create uboot image with load >> address >>>>>>> 0x80001000 and entry point 0x80001100. >>>>>>> >>>>>>> If that step successful you will get: >>>>>>> /Uncompressing Kernel Image/ ... OK >>>>>>> Starting kernel ... >>>>>>> >>>>>>> Last line mean, uboot did jump into kernel code. >>>>>>> >>>>>>> Good luck. >>>>>>> >>>>>>> 2017-05-07 18:20 GMT+03:00 Mike Wolman >> >>>>>> >: >>>>>>> >>>>>>> Hi, >>>>>>> >>>>>>> I am trying to get FreeBSD working on this board - >> I think I >>>> am >>>>>>> almost there in getting it working but need some >> help please. >>>>>>> I have followed instructions from the >> freebsd-wifi-build and >>>>>>> *think* I have got everything correct - I am trying >> to do >>>> this on >>>>>>> a CURRENT setup: >>>>>>> >>>>>>> FreeBSD f64-current.mw.office 12.0-CURRENT FreeBSD >>>> 12.0-CURRENT #0 >>>>>>> r317887: Sun May 7 03:20:34 UTC 2017 >>>>>>> >>>> mike@f64-current.mw.office:/usr/obj/usr/src/sys/GENERIC-NODEBUG amd64 >>>>>>> $ cat ~/.freebsd-wifi-build-settings.cfg >>>>>>> X_SKIP_MORE_STUFF=YES >>>>>>> X_EXTRA_SRC_CONF=~/omega2/src.conf >>>>>>> >>>>>>> $ cat ~/omega2/src.conf >>>>>>> WITHOUT_CLANG=YES >>>>>>> WITHOUT_CLANG_FULL=YES >>>>>>> >>>>>>> get dts files from thread >>>>>>> >> http://community.onion.io/topic/1099/openwrt-on-the-omega-2/8 >>>>>>> >>>> >>>>>>> cd ~/omega2/src/sys/gnu/dts/mips >>>>>>> fetch >>>>>>> >> https://raw.githubusercontent.com/WereCatf/source/image/target/linux/ramips/dts/OMEGA2.dtsi >>>>>>> >> >>>>>>> fetch >>>>>>> >> https://raw.githubusercontent.com/WereCatf/source/image/target/linux/ramips/dts/OMEGA2.dts >>>>>>> >> >>>>>>> fetch >>>>>>> >> https://raw.githubusercontent.com/WereCatf/source/image/target/linux/ramips/dts/OMEGA2P.dts >>>>>>> >> >>>>>>> X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT >>>>>>> ../freebsd-wifi-build/build/bin/build ralink >> buildworld >>>>>>> X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT >>>>>>> ../freebsd-wifi-build/build/bin/build ralink >> buildkernel >>>>>>> X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT >>>>>>> ../freebsd-wifi-build/build/bin/build ralink >> installworld >>>>>>> X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT >>>>>>> ../freebsd-wifi-build/build/bin/build ralink >> installkernel >>>>>>> X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT >>>>>>> ../freebsd-wifi-build/build/bin/build ralink >> distribution >>>>>>> >>>>>>> X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT >>>>>>> ../freebsd-wifi-build/build/bin/build ralink >> mfsroot >>>>>>> X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT >>>>>>> ../freebsd-wifi-build/build/bin/build ralink >> fsimage >>>>>>> X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT >>>>>>> ../freebsd-wifi-build/build/bin/build ralink uboot >>>>>>> >>>>>>> >>>>>>> Create flash: >>>>>>> >>>>>>> X_FLASH=kernel.MT7628_FDT.lzma.flash >>>>>>> dd if=/dev/zero bs=$(( 0x200000 )) count=1 >> of=${X_FLASH} >>>>>>> dd if=kernel.MT7628_FDT.lzma.uImage of=${X_FLASH} >>>> conv=notrunc >>>>>>> dd if= mfsroot-ralink.img.lzma >> ${X_FLASH} >>>>>>> >>>>>>> >>>>>>> $ readelf -h kernel.MT7628_FDT | grep Entry >>>>>>> Entry point address: 0x80001100 >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> Now on the omega over serial - I didnt get the >> network >>>> expansion >>>>>>> doc thing so am doing stuff with usb rather than >> tftp >>>>>>> I am not 100% sure about the 0x80001100 and the >> fatload and >>>> have >>>>>>> tried this >>>>>>> >>>>>>> Omega2 # fatload usb 0:1 0x80001100 >>>> /kernel.MT7628_FDT.lzma.flash >>>>>>> * >>>>>>> * >>>>>>> Reading file >> "/kernel.MT7628_FDT.lzma.flash" >>>>>>> * >>>>>>> ** >>>>>>> ** >>>>>>> ** >>>>>>> ****** >>>>>>> >> ********************************************************************************************************************************************* >>>>>>> ****** >>>>>>> * >>>>>>> FAT: 2108463 Bytes read >>>>>>> Omega2 # bootm 0x80001100 >>>>>>> ## Booting image at 80001100 ... >>>>>>> Image Name: FreeBSD >>>>>>> Image Type: MIPS Linux Kernel Image (lzma >> compressed) >>>>>>> Data Size: 1365122 Bytes = 1.3 MB >>>>>>> Load Address: fffffff2 >>>>>>> Entry Point: fffffff2 >>>>>>> Verifying Checksum ... OK >>>>>>> Uncompressing Kernel Image ... >>>>>>> >>>>>>> >>>>>>> At this point nothing happens and console hangs - >> note in >>>>>>> OMEGA2.dtsithe console is set to ttyS0: >>>>>>> >>>>>>> bootargs = "console=ttyS0,115200"; >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> I have also tried with just kernel.MT7628_FDT and >>>>>>> kernel.MT7628_FDT.lzma but both fail: >>>>>>> >>>>>>> Omega2 # fatload usb 0:1 0x80001100 >>>> /kernel.MT7628_FDT.lzma.uImage >>>>>>> * >>>>>>> * >>>>>>> Reading file >> "/kernel.MT7628_FDT.lzma.uImage" >>>>>>> * >>>>>>> ** >>>>>>> ** >>>>>>> ****** >>>>>>> >> ****************************************************************************************************************************** >>>>>>> ********** >>>>>>> * >>>>>>> FAT: 1365186 Bytes read >>>>>>> Omega2 # bootm 0x80001100 >>>>>>> ## Booting image at 80001100 ... >>>>>>> Image Name: FreeBSD >>>>>>> Image Type: MIPS Linux Kernel Image (lzma >> compressed) >>>>>>> Data Size: 1365122 Bytes = 1.3 MB >>>>>>> Load Address: fffffff2 >>>>>>> Entry Point: fffffff2 >>>>>>> Verifying Checksum ... OK >>>>>>> Uncompressing Kernel Image ... >>>>>>> >>>>>>> >>>>>>> A few comments on the hardware for anyone who wants >> to get >>>> one: >>>>>>> Get the expansion dock with serial port access - >> the power >>>> dock >>>>>>> does not provide serial access - i think it is >> possible to >>>> use an >>>>>>> ftdi ttl serial chip/cable but have not tried. >>>>>>> >>>>>>> Stupidly I forgot this only has wifi access so you >> are not >>>> able to >>>>>>> tftp boot this without getting the ethernet network >> expansion >>>> but >>>>>>> loading stuff up from a usb memory stick is seem >> fine from >>>> u-boot. >>>>>>> I do not think that it is possible to boot from the >> SD card >>>> on the >>>>>>> Omega2+ - which is a shame. >>>>>>> >>>>>>> Thanks for reading, >>>>>>> >>>>>>> Mike. >>>>>>> >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> 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 >>> > >>>>>> _______________________________________________ >>>>>> 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" >>>>>> From owner-freebsd-mips@freebsd.org Tue May 9 10:57:55 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 4B511D65235 for ; Tue, 9 May 2017 10:57:55 +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 670831181 for ; Tue, 9 May 2017 10:57:53 +0000 (UTC) (envelope-from mike@wolman.co.uk) Received: from [192.168.3.50] ([80.229.66.11]) by avasout08 with smtp id JAxp1v0070EahWw01AxqAa; Tue, 09 May 2017 11:57:52 +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=NEAV23lmAAAA:8 a=arpVtLJQAAAA:8 a=UmSUZ3ptAAAA:8 a=6I5d2MoRAAAA:8 a=jdP34snFAAAA:8 a=LJ5NkaWEAAAA:8 a=bt8Zh30PAAAA:8 a=4I05h4SrAAAA:8 a=pyT0NVMW5bfPyY36aosA:9 a=uj3W1jw_FH1kCVFA:21 a=AxBItGE7RXZqXnsf:21 a=QEXdDO2ut3YA:10 a=A3VBoO50a3AA:10 a=pGLkceISAAAA:8 a=jNOjF8V6xXu3X4qHEkYA:9 a=BZ5kJqFEQdqIYwCz:21 a=VIL6Hn7g6slihSLF:21 a=Op1S9-5OLsdxqRVb:21 a=_W_S_7VecoQA:10 a=86BuEF5rAmEUDcZwuOX_:22 a=FyGKTEvU35uc88vWBdgE:22 a=IjZwj45LgO3ly-622nXo:22 a=jlphF6vWLdwq7oh3TaWq:22 a=eH83O4KjmLCfbRe1EArK:22 a=SXYKVUms7l59yVxtnTo9:22 a=6kGIvZw6iX1k4Y-7sg4_:22 Subject: Re: onion omega2+ To: Aleksandr Rybalko , Mori Hiroki References: <694efc3a-e183-35a1-a0bf-9a9c0d708826@wolman.co.uk> <410144.69078.qm@web101716.mail.ssk.yahoo.co.jp> <128807.28836.qm@web101715.mail.ssk.yahoo.co.jp> <2d555385-8258-fd75-e4a3-a1e59bf86314@wolman.co.uk> <651873.78746.qm@web101702.mail.ssk.yahoo.co.jp> Cc: "freebsd-mips@freebsd.org" From: Mike Wolman Message-ID: Date: Tue, 9 May 2017 11:57:48 +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: 7bit 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: Tue, 09 May 2017 10:57:55 -0000 I think the standard version of linux on the omega2 is LEDE The lzma loader src is: https://github.com/lede-project/source/tree/master/target/linux/generic/image/lzma-loader/src https://github.com/lede-project/source/blob/master/target/linux/generic/image/lzma-loader/src/LzmaDecode.c Which is using LZMA SDK 4.22 On 09/05/2017 10:12, Aleksandr Rybalko wrote: > Fix things in order :) > Currently you have problem with LZMA, serial port later. > > So, find version of lzma used to build linux firmware, MIPS routers > world use about 5 incompatible versions. One of them, you can find here: > http://project.zrouter.org/hg/zrouter/file/9ac53695a44d/tools/oldlzma > > > 2017-05-09 7:03 GMT+03:00 Mori Hiroki >: > > Hi Mike > > Could you show u-boot printenv command result. > > Thanks > > > ----- Original Message ----- > > From: Mike Wolman > > > To: Mori Hiroki >; "freebsd-mips@freebsd.org > " > > > Cc: > > Date: 2017/5/9, Tue 10:30 > > Subject: Re: onion omega2+ > > > > Hi Mori, > > > > When I compiled the world/kernel etc I used: > > > > X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT > > ../freebsd-wifi-build/build/bin/build ralink buildkernel > > > > I checked the serial stuff was the same as the other configs in: > > https://github.com/freebsd/freebsd-wifi-build/ > > > and they looked the same. > > > > The OMEGA2.dtsi file has: > > > > chosen { > > bootargs = "console=ttyS0,115200"; > > }; > > > > > > And mt7628an.dtsi has: serial0 = &uartlite; > > > > I dont think im getting as far as worrying about the serial > console at > > the moment and need to get the kernel to uncompress first. > > > > Mike. > > > > > > On 09/05/2017 02:20, Mori Hiroki wrote: > >> Hi Mike > >> > >> In FreeBSD is use serial0 dts item to console. > >> > >> I think good to use this at start. > >> > >> freebsd/sys/gnu/dts/mips/MT7628.dts > >> > >> ----- Original Message ----- > >>> From: Mike Wolman > > >>> To: Mori Hiroki >; > > "freebsd-mips@freebsd.org " > > > >>> Cc: > >>> Date: 2017/5/9, Tue 09:25 > >>> Subject: Re: onion omega2+ > >>> > >>> Hi Mori, > >>> > >>> I grabbed the dts files from: > >>> > >>> > https://github.com/WereCatf/source/tree/image/target/linux/ramips/dts > > >>> > > > https://github.com/WereCatf/source/blob/image/target/linux/ramips/dts/OMEGA2P.dts > > >>> > > > https://github.com/WereCatf/source/blob/image/target/linux/ramips/dts/OMEGA2.dtsi > > >>> > >>> If this is of any use from the default linux install on the > flash: > >>> > >>> root@Omega-12BF:/proc# cat /proc/mtd > >>> dev: size erasesize name > >>> mtd0: 00030000 00010000 "u-boot" > >>> mtd1: 00010000 00010000 "u-boot-env" > >>> mtd2: 00010000 00010000 "factory" > >>> mtd3: 01fb0000 00010000 "firmware" > >>> mtd4: 00148842 00010000 "kernel" > >>> mtd5: 01e677be 00010000 "rootfs" > >>> mtd6: 01950000 00010000 "rootfs_data" > >>> > >>> > >>> btw after posting i spotted and error in what i did with: > >>> > >>> mkimage -A mips -O linux -T kernel -C lzma \ > >>> -a 0x80001000 -e 0x80001100 \ > >>> -n "FreeBSD" -d kernel.MT7628_FDT.lzma > >>> kernel.MT7628_FDT.ulzma.uImage > >>> > >>> I have redone this using the correct compressed kernel ie: > >>> > >>> mkimage -A mips -O linux -T kernel -C lzma \ > >>> -a 0x80001000 -e 0x80001100 \ > >>> -n "FreeBSD" -d kernel.MT7628_FDT.ulzma > >>> kernel.MT7628_FDT.ulzma.uImage > >>> > >>> > >>> But this didnt work. > >>> > >>> > >>> > >>> On 09/05/2017 01:17, Mori Hiroki wrote: > >>>> Hi. > >>>> > >>>> I think if U-Boot work memory make broken then > >>>> Uncompressing Kernel Image is NG. > >>>> > >>>> Some ARM U-Boot is use top address in work memory. > >>>> If this case your kernel start address to move to > >>>> after work memory. But I never see in MIPS. > >>>> > >>>> And What is set FDT_DTS_FILE in your kernel configuration ? > >>>> > >>>> ----- Original Message ----- > >>>> > >>>>> From: Mike Wolman > > >>>>> To: freebsd-mips@freebsd.org > > >>>>> Cc: > >>>>> Date: 2017/5/9, Tue 07:48 > >>>>> Subject: Re: onion omega2+ > >>>>> > >>>>> > >>>>> More info in case anyone can point me in the right direction. > >>>>> > >>>>> I have found: > >>>>> > >>>>> https://forum.openwrt.org/viewtopic.php?id=53865 > > >>>>> > >>>>> I have tried changing how lzma compresses the kernel by > > adding -d20 to > >>>>> the build scripts eg: > >>>>> > >>>>> /usr/local/bin/lzma e > >>>>> > > > /home/mike/omega2/src/../root/mipsel_ap/boot/kernel.MT7628_FDT/kernel > >>> \ > >>>>> /home/mike/omega2/src/../tftpboot/kernel.MT7628_FDT.lzma -d20 > >>>>> > >>>>> This did not work. > >>>>> > >>>>> > >>>>> Looking at the onion omega conf I see that it uses mkuzip and > > not lzma > >>>>> with the following settings: > >>>>> > >>>>> X_FSIMAGE_CMD="mkuzip" > >>>>> X_FSIMAGE_ARGS="-L -d -s 65536 -v" > >>>>> X_FSIMAGE_SUFFIX=".ulzma" > >>>>> > >>>>> So tried the following: > >>>>> > >>>>> mkuzip -L -d -s 65536 -v -o kernel.MT7628_FDT.ulzma > > kernel.MT7628_FDT > >>>>> > >>>>> mkimage -A mips -O linux -T kernel -C lzma \ > >>>>> -a 0x80001000 -e 0x80001100 \ > >>>>> -n "FreeBSD" -d kernel.MT7628_FDT.lzma > >>>>> kernel.MT7628_FDT.ulzma.uImage > >>>>> > >>>>> > >>>>> But this did not work either. > >>>>> > >>>>> > >>>>> > >>>>> On 08/05/2017 19:41, Aleksandr Rybalko wrote: > >>>>>> Hi Mike! > >>>>>> > >>>>>> I see you have no "OK" after > > "Uncompressing Kernel > >>> Image > >>>>> ...", so > >>>>>> first point uboot decompressor fail. > >>>>>> Why fail? Because you have wrong base address in image: > >>>>>> Load Address: fffffff2 > >>>>>> Entry Point: fffffff2 > >>>>>> MIPS32 machines have RAM mapped to 0x80000000 address, > > so adding > >>> its > >>>>>> size, you will get max address (if 16MB, it will be > > 0x81000000), > >>> but > >>>>>> you uboot image was created with 0xfffffff2. > >>>>>> > >>>>>> Even more, unpacked kernel expects it will be called at > >>> 0x80001100. so > >>>>>> if you have ELF kernel (file with ELF header, like > > every > >>> executable) > >>>>>> that file have to be loaded at (0x80001100 - > > ELF_HEADER_SIZE). > >>>>>> In most cases it will be 0x80001100 - 0x100 = > > 0x80001000. But > >>> sometime > >>>>>> (I did not found why) it can be 0x20, you can find it > > by looking > >>> at > >>>>>> .text section in readelf -S. > >>>>>> > >>>>>> So if you have kernel with entry point 0x80001100 and > > .text > >>> segment > >>>>>> offset 0x100, you have to create uboot image with load > > address > >>>>>> 0x80001000 and entry point 0x80001100. > >>>>>> > >>>>>> If that step successful you will get: > >>>>>> /Uncompressing Kernel Image/ ... OK > >>>>>> Starting kernel ... > >>>>>> > >>>>>> Last line mean, uboot did jump into kernel code. > >>>>>> > >>>>>> Good luck. > >>>>>> > >>>>>> 2017-05-07 18:20 GMT+03:00 Mike Wolman > > > >>>>>> >>: > >>>>>> > >>>>>> Hi, > >>>>>> > >>>>>> I am trying to get FreeBSD working on this board - > > I think I > >>> am > >>>>>> almost there in getting it working but need some > > help please. > >>>>>> > >>>>>> I have followed instructions from the > > freebsd-wifi-build and > >>>>>> *think* I have got everything correct - I am trying > > to do > >>> this on > >>>>>> a CURRENT setup: > >>>>>> > >>>>>> FreeBSD f64-current.mw.office 12.0-CURRENT FreeBSD > >>> 12.0-CURRENT #0 > >>>>>> r317887: Sun May 7 03:20:34 UTC 2017 > >>>>>> > >>> > mike@f64-current.mw.office:/usr/obj/usr/src/sys/GENERIC-NODEBUG amd64 > >>>>>> > >>>>>> $ cat ~/.freebsd-wifi-build-settings.cfg > >>>>>> X_SKIP_MORE_STUFF=YES > >>>>>> X_EXTRA_SRC_CONF=~/omega2/src.conf > >>>>>> > >>>>>> $ cat ~/omega2/src.conf > >>>>>> WITHOUT_CLANG=YES > >>>>>> WITHOUT_CLANG_FULL=YES > >>>>>> > >>>>>> get dts files from thread > >>>>>> > > http://community.onion.io/topic/1099/openwrt-on-the-omega-2/8 > > >>>>>> > >>> > > > >>>>>> > >>>>>> cd ~/omega2/src/sys/gnu/dts/mips > >>>>>> fetch > >>>>>> > >>> > > > https://raw.githubusercontent.com/WereCatf/source/image/target/linux/ramips/dts/OMEGA2.dtsi > > >>>>>> > >>> > > > > > >>>>>> fetch > >>>>>> > >>> > > > https://raw.githubusercontent.com/WereCatf/source/image/target/linux/ramips/dts/OMEGA2.dts > > >>>>>> > >>> > > > > > >>>>>> fetch > >>>>>> > >>> > > > https://raw.githubusercontent.com/WereCatf/source/image/target/linux/ramips/dts/OMEGA2P.dts > > >>>>>> > >>> > > > > > >>>>>> X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT > >>>>>> ../freebsd-wifi-build/build/bin/build ralink > > buildworld > >>>>>> X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT > >>>>>> ../freebsd-wifi-build/build/bin/build ralink > > buildkernel > >>>>>> X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT > >>>>>> ../freebsd-wifi-build/build/bin/build ralink > > installworld > >>>>>> X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT > >>>>>> ../freebsd-wifi-build/build/bin/build ralink > > installkernel > >>>>>> X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT > >>>>>> ../freebsd-wifi-build/build/bin/build ralink > > distribution > >>>>>> > >>>>>> > >>>>>> X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT > >>>>>> ../freebsd-wifi-build/build/bin/build ralink > > mfsroot > >>>>>> X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT > >>>>>> ../freebsd-wifi-build/build/bin/build ralink > > fsimage > >>>>>> X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT > >>>>>> ../freebsd-wifi-build/build/bin/build ralink uboot > >>>>>> > >>>>>> > >>>>>> Create flash: > >>>>>> > >>>>>> X_FLASH=kernel.MT7628_FDT.lzma.flash > >>>>>> dd if=/dev/zero bs=$(( 0x200000 )) count=1 > > of=${X_FLASH} > >>>>>> dd if=kernel.MT7628_FDT.lzma.uImage of=${X_FLASH} > >>> conv=notrunc > >>>>>> dd if= mfsroot-ralink.img.lzma >> ${X_FLASH} > >>>>>> > >>>>>> > >>>>>> $ readelf -h kernel.MT7628_FDT | grep Entry > >>>>>> Entry point address: 0x80001100 > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> Now on the omega over serial - I didnt get the > > network > >>> expansion > >>>>>> doc thing so am doing stuff with usb rather than > > tftp > >>>>>> > >>>>>> I am not 100% sure about the 0x80001100 and the > > fatload and > >>> have > >>>>>> tried this > >>>>>> > >>>>>> Omega2 # fatload usb 0:1 0x80001100 > >>> /kernel.MT7628_FDT.lzma.flash > >>>>>> * > >>>>>> * > >>>>>> Reading file > > "/kernel.MT7628_FDT.lzma.flash" > >>>>>> * > >>>>>> ** > >>>>>> ** > >>>>>> ** > >>>>>> ****** > >>>>>> > >>> > > > ********************************************************************************************************************************************* > >>>>>> ****** > >>>>>> * > >>>>>> FAT: 2108463 Bytes read > >>>>>> Omega2 # bootm 0x80001100 > >>>>>> ## Booting image at 80001100 ... > >>>>>> Image Name: FreeBSD > >>>>>> Image Type: MIPS Linux Kernel Image (lzma > > compressed) > >>>>>> Data Size: 1365122 Bytes = 1.3 MB > >>>>>> Load Address: fffffff2 > >>>>>> Entry Point: fffffff2 > >>>>>> Verifying Checksum ... OK > >>>>>> Uncompressing Kernel Image ... > >>>>>> > >>>>>> > >>>>>> At this point nothing happens and console hangs - > > note in > >>>>>> OMEGA2.dtsithe console is set to ttyS0: > >>>>>> > >>>>>> bootargs = "console=ttyS0,115200"; > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> I have also tried with just kernel.MT7628_FDT and > >>>>>> kernel.MT7628_FDT.lzma but both fail: > >>>>>> > >>>>>> Omega2 # fatload usb 0:1 0x80001100 > >>> /kernel.MT7628_FDT.lzma.uImage > >>>>>> * > >>>>>> * > >>>>>> Reading file > > "/kernel.MT7628_FDT.lzma.uImage" > >>>>>> * > >>>>>> ** > >>>>>> ** > >>>>>> ****** > >>>>>> > >>> > > > ****************************************************************************************************************************** > >>>>>> ********** > >>>>>> * > >>>>>> FAT: 1365186 Bytes read > >>>>>> Omega2 # bootm 0x80001100 > >>>>>> ## Booting image at 80001100 ... > >>>>>> Image Name: FreeBSD > >>>>>> Image Type: MIPS Linux Kernel Image (lzma > > compressed) > >>>>>> Data Size: 1365122 Bytes = 1.3 MB > >>>>>> Load Address: fffffff2 > >>>>>> Entry Point: fffffff2 > >>>>>> Verifying Checksum ... OK > >>>>>> Uncompressing Kernel Image ... > >>>>>> > >>>>>> > >>>>>> A few comments on the hardware for anyone who wants > > to get > >>> one: > >>>>>> Get the expansion dock with serial port access - > > the power > >>> dock > >>>>>> does not provide serial access - i think it is > > possible to > >>> use an > >>>>>> ftdi ttl serial chip/cable but have not tried. > >>>>>> > >>>>>> Stupidly I forgot this only has wifi access so you > > are not > >>> able to > >>>>>> tftp boot this without getting the ethernet network > > expansion > >>> but > >>>>>> loading stuff up from a usb memory stick is seem > > fine from > >>> u-boot. > >>>>>> I do not think that it is possible to boot from the > > SD card > >>> on the > >>>>>> Omega2+ - which is a shame. > >>>>>> > >>>>>> Thanks for reading, > >>>>>> > >>>>>> Mike. > >>>>>> > >>>>>> > >>>>>> > >>>>>> _______________________________________________ > >>>>>> 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 > >>> >> > >>>>> _______________________________________________ > >>>>> 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 > > From owner-freebsd-mips@freebsd.org Tue May 9 11:47:46 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 7DD0CD65EDF for ; Tue, 9 May 2017 11:47:46 +0000 (UTC) (envelope-from ray@ddteam.net) Received: from mail-yb0-x233.google.com (mail-yb0-x233.google.com [IPv6:2607:f8b0:4002:c09::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E44F61172 for ; Tue, 9 May 2017 11:47:45 +0000 (UTC) (envelope-from ray@ddteam.net) Received: by mail-yb0-x233.google.com with SMTP id j17so18623982ybj.0 for ; Tue, 09 May 2017 04:47:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ddteam-net.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=IPLp43ExcWOgeh+h22d6gPyqNxpW6n1G6Agjpu7mEZQ=; b=Kpw7ASgHNlx2mgqQJeAhuTT6yf+NjSsgqMmTdF55ExICwqpOUcUBkCCNjLizLEllsU te7yM95LADtuawewX6l1JkMuynQ8dk/4IR29v3VVXstSfivifs+iORwoEj0+3Fi1ZTvi vJ4Z8byVM+bO/KbBpLBju2xjCKCJ5E/z0fll4wfcns0DIvHvc/efgmnWLstEvtMDJnAY e1rOzGlWm0PPxMQ+Upjk+Oo0q4Gmz5ApPxM7K46m5bRYu1wbp24HIxLQlr1jB3Zxd+9M HQ5j3ePRZleZHVIXFZBPQOmCSeCtTGOgFWpg66BAVj0ZLM0WvSLlkRQUIxEnhvfvHIco DNoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=IPLp43ExcWOgeh+h22d6gPyqNxpW6n1G6Agjpu7mEZQ=; b=ldYMjWeiqJaspWXa1YOC1qG/NZmpbGRiS6oR5Xk008qgjTEptQol5zK7Bao24VWr3g W0ds6KdRoj/sxGAavVmjCrhen2snNU0aL+qDir0Y7opswXyVeteeD1VtaFncGU1twrAY X2xl+7lRAE9R3oK+zx5dOBXKKd08vgMVeAV7Q1Lls3nVwv0sgLhzPyW4g8O/oi73UHR0 xcC+Irg8Qw6P9VgDGqXrvvJWsXqxANIFwe17PjOQLEcpxt8t/uxrM7mkbKG9CdVsF6kw lxWDbMc92JnVh9HSE2EbIQoxY5ges80AYvi6hPbPaqfltLwGeFQuBAC5No6UFKaXAii6 5jOw== X-Gm-Message-State: AODbwcAMFLCfYA/LJ7yuwV2w8YSLXjvOFnoMxAx3iImci4nJEqsOgE3P 2AtqCiFqpHowVAYEcWlEmIEvafFpoQ== X-Received: by 10.37.83.65 with SMTP id h62mr13840888ybb.92.1494330464915; Tue, 09 May 2017 04:47:44 -0700 (PDT) MIME-Version: 1.0 Received: by 10.37.161.194 with HTTP; Tue, 9 May 2017 04:47:44 -0700 (PDT) In-Reply-To: References: <694efc3a-e183-35a1-a0bf-9a9c0d708826@wolman.co.uk> <410144.69078.qm@web101716.mail.ssk.yahoo.co.jp> <128807.28836.qm@web101715.mail.ssk.yahoo.co.jp> <2d555385-8258-fd75-e4a3-a1e59bf86314@wolman.co.uk> <651873.78746.qm@web101702.mail.ssk.yahoo.co.jp> From: Aleksandr Rybalko Date: Tue, 9 May 2017 14:47:44 +0300 Message-ID: Subject: Re: onion omega2+ To: Mike Wolman Cc: Mori Hiroki , "freebsd-mips@freebsd.org" Content-Type: text/plain; charset=UTF-8 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: Tue, 09 May 2017 11:47:46 -0000 In that case uboot extract image, not linux. Find which tool used to pack linux kernel before pass it to uboot mkimage. 2017-05-09 13:57 GMT+03:00 Mike Wolman : > > I think the standard version of linux on the omega2 is LEDE > > The lzma loader src is: > > https://github.com/lede-project/source/tree/master/ > target/linux/generic/image/lzma-loader/src > https://github.com/lede-project/source/blob/master/ > target/linux/generic/image/lzma-loader/src/LzmaDecode.c > > Which is using LZMA SDK 4.22 > > > > On 09/05/2017 10:12, Aleksandr Rybalko wrote: > > Fix things in order :) > Currently you have problem with LZMA, serial port later. > > So, find version of lzma used to build linux firmware, MIPS routers world > use about 5 incompatible versions. One of them, you can find here: > http://project.zrouter.org/hg/zrouter/file/9ac53695a44d/tools/oldlzma > > > 2017-05-09 7:03 GMT+03:00 Mori Hiroki : > >> Hi Mike >> >> Could you show u-boot printenv command result. >> >> Thanks >> >> >> ----- Original Message ----- >> > From: Mike Wolman >> > To: Mori Hiroki ; "freebsd-mips@freebsd.org" < >> freebsd-mips@freebsd.org> >> > Cc: >> > Date: 2017/5/9, Tue 10:30 >> > Subject: Re: onion omega2+ >> > >> > Hi Mori, >> > >> > When I compiled the world/kernel etc I used: >> > >> > X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT >> > ../freebsd-wifi-build/build/bin/build ralink buildkernel >> > >> > I checked the serial stuff was the same as the other configs in: >> > https://github.com/freebsd/freebsd-wifi-build/ >> > and they looked the same. >> > >> > The OMEGA2.dtsi file has: >> > >> > chosen { >> > bootargs = "console=ttyS0,115200"; >> > }; >> > >> > >> > And mt7628an.dtsi has: serial0 = &uartlite; >> > >> > I dont think im getting as far as worrying about the serial console at >> > the moment and need to get the kernel to uncompress first. >> > >> > Mike. >> > >> > >> > On 09/05/2017 02:20, Mori Hiroki wrote: >> >> Hi Mike >> >> >> >> In FreeBSD is use serial0 dts item to console. >> >> >> >> I think good to use this at start. >> >> >> >> freebsd/sys/gnu/dts/mips/MT7628.dts >> >> >> >> ----- Original Message ----- >> >>> From: Mike Wolman >> >>> To: Mori Hiroki ; >> > "freebsd-mips@freebsd.org" >> >>> Cc: >> >>> Date: 2017/5/9, Tue 09:25 >> >>> Subject: Re: onion omega2+ >> >>> >> >>> Hi Mori, >> >>> >> >>> I grabbed the dts files from: >> >>> >> >>> https://github.com/WereCatf/source/tree/image/target/linux/ >> ramips/dts >> >>> >> > https://github.com/WereCatf/source/blob/image/target/linux/ >> ramips/dts/OMEGA2P.dts >> >>> >> > https://github.com/WereCatf/source/blob/image/target/linux/ >> ramips/dts/OMEGA2.dtsi >> >>> >> >>> If this is of any use from the default linux install on the flash: >> >>> >> >>> root@Omega-12BF:/proc# cat /proc/mtd >> >>> dev: size erasesize name >> >>> mtd0: 00030000 00010000 "u-boot" >> >>> mtd1: 00010000 00010000 "u-boot-env" >> >>> mtd2: 00010000 00010000 "factory" >> >>> mtd3: 01fb0000 00010000 "firmware" >> >>> mtd4: 00148842 00010000 "kernel" >> >>> mtd5: 01e677be 00010000 "rootfs" >> >>> mtd6: 01950000 00010000 "rootfs_data" >> >>> >> >>> >> >>> btw after posting i spotted and error in what i did with: >> >>> >> >>> mkimage -A mips -O linux -T kernel -C lzma \ >> >>> -a 0x80001000 -e 0x80001100 \ >> >>> -n "FreeBSD" -d kernel.MT7628_FDT.lzma >> >>> kernel.MT7628_FDT.ulzma.uImage >> >>> >> >>> I have redone this using the correct compressed kernel ie: >> >>> >> >>> mkimage -A mips -O linux -T kernel -C lzma \ >> >>> -a 0x80001000 -e 0x80001100 \ >> >>> -n "FreeBSD" -d kernel.MT7628_FDT.ulzma >> >>> kernel.MT7628_FDT.ulzma.uImage >> >>> >> >>> >> >>> But this didnt work. >> >>> >> >>> >> >>> >> >>> On 09/05/2017 01:17, Mori Hiroki wrote: >> >>>> Hi. >> >>>> >> >>>> I think if U-Boot work memory make broken then >> >>>> Uncompressing Kernel Image is NG. >> >>>> >> >>>> Some ARM U-Boot is use top address in work memory. >> >>>> If this case your kernel start address to move to >> >>>> after work memory. But I never see in MIPS. >> >>>> >> >>>> And What is set FDT_DTS_FILE in your kernel configuration ? >> >>>> >> >>>> ----- Original Message ----- >> >>>> >> >>>>> From: Mike Wolman >> >>>>> To: freebsd-mips@freebsd.org >> >>>>> Cc: >> >>>>> Date: 2017/5/9, Tue 07:48 >> >>>>> Subject: Re: onion omega2+ >> >>>>> >> >>>>> >> >>>>> More info in case anyone can point me in the right direction. >> >>>>> >> >>>>> I have found: >> >>>>> >> >>>>> https://forum.openwrt.org/viewtopic.php?id=53865 >> >>>>> >> >>>>> I have tried changing how lzma compresses the kernel by >> > adding -d20 to >> >>>>> the build scripts eg: >> >>>>> >> >>>>> /usr/local/bin/lzma e >> >>>>> >> > /home/mike/omega2/src/../root/mipsel_ap/boot/kernel.MT7628_FDT/kernel >> >>> \ >> >>>>> /home/mike/omega2/src/../tftpboot/kernel.MT7628_FDT.lzma -d20 >> >>>>> >> >>>>> This did not work. >> >>>>> >> >>>>> >> >>>>> Looking at the onion omega conf I see that it uses mkuzip and >> > not lzma >> >>>>> with the following settings: >> >>>>> >> >>>>> X_FSIMAGE_CMD="mkuzip" >> >>>>> X_FSIMAGE_ARGS="-L -d -s 65536 -v" >> >>>>> X_FSIMAGE_SUFFIX=".ulzma" >> >>>>> >> >>>>> So tried the following: >> >>>>> >> >>>>> mkuzip -L -d -s 65536 -v -o kernel.MT7628_FDT.ulzma >> > kernel.MT7628_FDT >> >>>>> >> >>>>> mkimage -A mips -O linux -T kernel -C lzma \ >> >>>>> -a 0x80001000 -e 0x80001100 \ >> >>>>> -n "FreeBSD" -d kernel.MT7628_FDT.lzma >> >>>>> kernel.MT7628_FDT.ulzma.uImage >> >>>>> >> >>>>> >> >>>>> But this did not work either. >> >>>>> >> >>>>> >> >>>>> >> >>>>> On 08/05/2017 19:41, Aleksandr Rybalko wrote: >> >>>>>> Hi Mike! >> >>>>>> >> >>>>>> I see you have no "OK" after >> > "Uncompressing Kernel >> >>> Image >> >>>>> ...", so >> >>>>>> first point uboot decompressor fail. >> >>>>>> Why fail? Because you have wrong base address in image: >> >>>>>> Load Address: fffffff2 >> >>>>>> Entry Point: fffffff2 >> >>>>>> MIPS32 machines have RAM mapped to 0x80000000 address, >> > so adding >> >>> its >> >>>>>> size, you will get max address (if 16MB, it will be >> > 0x81000000), >> >>> but >> >>>>>> you uboot image was created with 0xfffffff2. >> >>>>>> >> >>>>>> Even more, unpacked kernel expects it will be called at >> >>> 0x80001100. so >> >>>>>> if you have ELF kernel (file with ELF header, like >> > every >> >>> executable) >> >>>>>> that file have to be loaded at (0x80001100 - >> > ELF_HEADER_SIZE). >> >>>>>> In most cases it will be 0x80001100 - 0x100 = >> > 0x80001000. But >> >>> sometime >> >>>>>> (I did not found why) it can be 0x20, you can find it >> > by looking >> >>> at >> >>>>>> .text section in readelf -S. >> >>>>>> >> >>>>>> So if you have kernel with entry point 0x80001100 and >> > .text >> >>> segment >> >>>>>> offset 0x100, you have to create uboot image with load >> > address >> >>>>>> 0x80001000 and entry point 0x80001100. >> >>>>>> >> >>>>>> If that step successful you will get: >> >>>>>> /Uncompressing Kernel Image/ ... OK >> >>>>>> Starting kernel ... >> >>>>>> >> >>>>>> Last line mean, uboot did jump into kernel code. >> >>>>>> >> >>>>>> Good luck. >> >>>>>> >> >>>>>> 2017-05-07 18:20 GMT+03:00 Mike Wolman >> > > >>>>>> >: >> >>>>>> >> >>>>>> Hi, >> >>>>>> >> >>>>>> I am trying to get FreeBSD working on this board - >> > I think I >> >>> am >> >>>>>> almost there in getting it working but need some >> > help please. >> >>>>>> >> >>>>>> I have followed instructions from the >> > freebsd-wifi-build and >> >>>>>> *think* I have got everything correct - I am trying >> > to do >> >>> this on >> >>>>>> a CURRENT setup: >> >>>>>> >> >>>>>> FreeBSD f64-current.mw.office 12.0-CURRENT FreeBSD >> >>> 12.0-CURRENT #0 >> >>>>>> r317887: Sun May 7 03:20:34 UTC 2017 >> >>>>>> >> >>> mike@f64-current.mw.office:/usr/obj/usr/src/sys/GENERIC-NODEBUG >> amd64 >> >>>>>> >> >>>>>> $ cat ~/.freebsd-wifi-build-settings.cfg >> >>>>>> X_SKIP_MORE_STUFF=YES >> >>>>>> X_EXTRA_SRC_CONF=~/omega2/src.conf >> >>>>>> >> >>>>>> $ cat ~/omega2/src.conf >> >>>>>> WITHOUT_CLANG=YES >> >>>>>> WITHOUT_CLANG_FULL=YES >> >>>>>> >> >>>>>> get dts files from thread >> >>>>>> >> > http://community.onion.io/topic/1099/openwrt-on-the-omega-2/8 >> >>>>>> >> >>> >> >>>>>> >> >>>>>> cd ~/omega2/src/sys/gnu/dts/mips >> >>>>>> fetch >> >>>>>> >> >>> >> > https://raw.githubusercontent.com/WereCatf/source/image/targ >> et/linux/ramips/dts/OMEGA2.dtsi >> >>>>>> >> >>> >> > > target/linux/ramips/dts/OMEGA2.dtsi> >> >>>>>> fetch >> >>>>>> >> >>> >> > https://raw.githubusercontent.com/WereCatf/source/image/targ >> et/linux/ramips/dts/OMEGA2.dts >> >>>>>> >> >>> >> > > target/linux/ramips/dts/OMEGA2.dts> >> >>>>>> fetch >> >>>>>> >> >>> >> > https://raw.githubusercontent.com/WereCatf/source/image/targ >> et/linux/ramips/dts/OMEGA2P.dts >> >>>>>> >> >>> >> > > target/linux/ramips/dts/OMEGA2P.dts> >> >>>>>> X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT >> >>>>>> ../freebsd-wifi-build/build/bin/build ralink >> > buildworld >> >>>>>> X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT >> >>>>>> ../freebsd-wifi-build/build/bin/build ralink >> > buildkernel >> >>>>>> X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT >> >>>>>> ../freebsd-wifi-build/build/bin/build ralink >> > installworld >> >>>>>> X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT >> >>>>>> ../freebsd-wifi-build/build/bin/build ralink >> > installkernel >> >>>>>> X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT >> >>>>>> ../freebsd-wifi-build/build/bin/build ralink >> > distribution >> >>>>>> >> >>>>>> >> >>>>>> X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT >> >>>>>> ../freebsd-wifi-build/build/bin/build ralink >> > mfsroot >> >>>>>> X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT >> >>>>>> ../freebsd-wifi-build/build/bin/build ralink >> > fsimage >> >>>>>> X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT >> >>>>>> ../freebsd-wifi-build/build/bin/build ralink uboot >> >>>>>> >> >>>>>> >> >>>>>> Create flash: >> >>>>>> >> >>>>>> X_FLASH=kernel.MT7628_FDT.lzma.flash >> >>>>>> dd if=/dev/zero bs=$(( 0x200000 )) count=1 >> > of=${X_FLASH} >> >>>>>> dd if=kernel.MT7628_FDT.lzma.uImage of=${X_FLASH} >> >>> conv=notrunc >> >>>>>> dd if= mfsroot-ralink.img.lzma >> ${X_FLASH} >> >>>>>> >> >>>>>> >> >>>>>> $ readelf -h kernel.MT7628_FDT | grep Entry >> >>>>>> Entry point address: 0x80001100 >> >>>>>> >> >>>>>> >> >>>>>> >> >>>>>> >> >>>>>> Now on the omega over serial - I didnt get the >> > network >> >>> expansion >> >>>>>> doc thing so am doing stuff with usb rather than >> > tftp >> >>>>>> >> >>>>>> I am not 100% sure about the 0x80001100 and the >> > fatload and >> >>> have >> >>>>>> tried this >> >>>>>> >> >>>>>> Omega2 # fatload usb 0:1 0x80001100 >> >>> /kernel.MT7628_FDT.lzma.flash >> >>>>>> * >> >>>>>> * >> >>>>>> Reading file >> > "/kernel.MT7628_FDT.lzma.flash" >> >>>>>> * >> >>>>>> ** >> >>>>>> ** >> >>>>>> ** >> >>>>>> ****** >> >>>>>> >> >>> >> > ************************************************************ >> ************************************************************ >> ********************* >> >>>>>> ****** >> >>>>>> * >> >>>>>> FAT: 2108463 Bytes read >> >>>>>> Omega2 # bootm 0x80001100 >> >>>>>> ## Booting image at 80001100 ... >> >>>>>> Image Name: FreeBSD >> >>>>>> Image Type: MIPS Linux Kernel Image (lzma >> > compressed) >> >>>>>> Data Size: 1365122 Bytes = 1.3 MB >> >>>>>> Load Address: fffffff2 >> >>>>>> Entry Point: fffffff2 >> >>>>>> Verifying Checksum ... OK >> >>>>>> Uncompressing Kernel Image ... >> >>>>>> >> >>>>>> >> >>>>>> At this point nothing happens and console hangs - >> > note in >> >>>>>> OMEGA2.dtsithe console is set to ttyS0: >> >>>>>> >> >>>>>> bootargs = "console=ttyS0,115200"; >> >>>>>> >> >>>>>> >> >>>>>> >> >>>>>> >> >>>>>> I have also tried with just kernel.MT7628_FDT and >> >>>>>> kernel.MT7628_FDT.lzma but both fail: >> >>>>>> >> >>>>>> Omega2 # fatload usb 0:1 0x80001100 >> >>> /kernel.MT7628_FDT.lzma.uImage >> >>>>>> * >> >>>>>> * >> >>>>>> Reading file >> > "/kernel.MT7628_FDT.lzma.uImage" >> >>>>>> * >> >>>>>> ** >> >>>>>> ** >> >>>>>> ****** >> >>>>>> >> >>> >> > ************************************************************ >> ****************************************************************** >> >>>>>> ********** >> >>>>>> * >> >>>>>> FAT: 1365186 Bytes read >> >>>>>> Omega2 # bootm 0x80001100 >> >>>>>> ## Booting image at 80001100 ... >> >>>>>> Image Name: FreeBSD >> >>>>>> Image Type: MIPS Linux Kernel Image (lzma >> > compressed) >> >>>>>> Data Size: 1365122 Bytes = 1.3 MB >> >>>>>> Load Address: fffffff2 >> >>>>>> Entry Point: fffffff2 >> >>>>>> Verifying Checksum ... OK >> >>>>>> Uncompressing Kernel Image ... >> >>>>>> >> >>>>>> >> >>>>>> A few comments on the hardware for anyone who wants >> > to get >> >>> one: >> >>>>>> Get the expansion dock with serial port access - >> > the power >> >>> dock >> >>>>>> does not provide serial access - i think it is >> > possible to >> >>> use an >> >>>>>> ftdi ttl serial chip/cable but have not tried. >> >>>>>> >> >>>>>> Stupidly I forgot this only has wifi access so you >> > are not >> >>> able to >> >>>>>> tftp boot this without getting the ethernet network >> > expansion >> >>> but >> >>>>>> loading stuff up from a usb memory stick is seem >> > fine from >> >>> u-boot. >> >>>>>> I do not think that it is possible to boot from the >> > SD card >> >>> on the >> >>>>>> Omega2+ - which is a shame. >> >>>>>> >> >>>>>> Thanks for reading, >> >>>>>> >> >>>>>> Mike. >> >>>>>> >> >>>>>> >> >>>>>> >> >>>>>> _______________________________________________ >> >>>>>> 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 > >>> > >> >>>>> _______________________________________________ >> >>>>> 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 > > > -- WBW ------- Rybalko Aleksandr From owner-freebsd-mips@freebsd.org Tue May 9 11:48:10 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 0C7A0D65F01 for ; Tue, 9 May 2017 11:48:10 +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 1F9401348 for ; Tue, 9 May 2017 11:48:08 +0000 (UTC) (envelope-from mike@wolman.co.uk) Received: from [192.168.3.50] ([80.229.66.11]) by avasout08 with smtp id JBo41v0040EahWw01Bo56v; Tue, 09 May 2017 12:48:06 +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=arpVtLJQAAAA:8 a=UmSUZ3ptAAAA:8 a=6I5d2MoRAAAA:8 a=NEAV23lmAAAA:8 a=jdP34snFAAAA:8 a=LJ5NkaWEAAAA:8 a=bt8Zh30PAAAA:8 a=4I05h4SrAAAA:8 a=GUCkxX2KGy5fkDWIOmQA:9 a=J5MRRpfnKmfR7cnL:21 a=45ugW528zBTwIsBq:21 a=QEXdDO2ut3YA:10 a=A3VBoO50a3AA:10 a=pGLkceISAAAA:8 a=5kzJ5nw4u2P-vArzNLcA:9 a=LU-INy8ckYQBTus9:21 a=kGhH8r5vpk-Shum3:21 a=jtR_xkQeu9U5GAXO:21 a=_W_S_7VecoQA:10 a=86BuEF5rAmEUDcZwuOX_:22 a=FyGKTEvU35uc88vWBdgE:22 a=IjZwj45LgO3ly-622nXo:22 a=jlphF6vWLdwq7oh3TaWq:22 a=eH83O4KjmLCfbRe1EArK:22 a=SXYKVUms7l59yVxtnTo9:22 a=6kGIvZw6iX1k4Y-7sg4_:22 Subject: Re: onion omega2+ To: Aleksandr Rybalko , Mori Hiroki References: <694efc3a-e183-35a1-a0bf-9a9c0d708826@wolman.co.uk> <410144.69078.qm@web101716.mail.ssk.yahoo.co.jp> <128807.28836.qm@web101715.mail.ssk.yahoo.co.jp> <2d555385-8258-fd75-e4a3-a1e59bf86314@wolman.co.uk> <651873.78746.qm@web101702.mail.ssk.yahoo.co.jp> Cc: "freebsd-mips@freebsd.org" From: Mike Wolman Message-ID: <2c5cd01a-a8d4-3ffa-4e9c-2aad170574c1@wolman.co.uk> Date: Tue, 9 May 2017 12:48: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: 7bit 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: Tue, 09 May 2017 11:48:10 -0000 Is it possible to exclude the compression of the kernel/image for now eg: mkimage -A mips -C none -O linux -T kernel -a 0x80001000 -e 0x80001100 -n "FreeBSD" -d kernel.MT7628_FDT kernel.MT7628_FDT.uImage I have just tried the above but when booting I get a Bad Magic Number. Omega2 # fatload usb 0:1 0x80001000 kernel.MT7628_FDT.uImage * * Reading file "kernel.MT7628_FDT.uImage" * ** ** ** ** ** ** ** ** ** ** ****** ****** ****************************************************************************************************************************************************************************************************************** **** * FAT: 5654824 Bytes read Omega2 # bootm 0x80001100 ## Booting image at 80001100 ... Bad Magic Number,1C994480 Omega2 # I have seen other examples starting a program directly with going to the address but this didnt work either: Omega2 # go 0x80001100 ## Starting application at 0x80001100 ... omega freezes here. On 09/05/2017 10:12, Aleksandr Rybalko wrote: > Fix things in order :) > Currently you have problem with LZMA, serial port later. > > So, find version of lzma used to build linux firmware, MIPS routers > world use about 5 incompatible versions. One of them, you can find here: > http://project.zrouter.org/hg/zrouter/file/9ac53695a44d/tools/oldlzma > > > 2017-05-09 7:03 GMT+03:00 Mori Hiroki >: > > Hi Mike > > Could you show u-boot printenv command result. > > Thanks > > > ----- Original Message ----- > > From: Mike Wolman > > > To: Mori Hiroki >; "freebsd-mips@freebsd.org > " > > > Cc: > > Date: 2017/5/9, Tue 10:30 > > Subject: Re: onion omega2+ > > > > Hi Mori, > > > > When I compiled the world/kernel etc I used: > > > > X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT > > ../freebsd-wifi-build/build/bin/build ralink buildkernel > > > > I checked the serial stuff was the same as the other configs in: > > https://github.com/freebsd/freebsd-wifi-build/ > > > and they looked the same. > > > > The OMEGA2.dtsi file has: > > > > chosen { > > bootargs = "console=ttyS0,115200"; > > }; > > > > > > And mt7628an.dtsi has: serial0 = &uartlite; > > > > I dont think im getting as far as worrying about the serial > console at > > the moment and need to get the kernel to uncompress first. > > > > Mike. > > > > > > On 09/05/2017 02:20, Mori Hiroki wrote: > >> Hi Mike > >> > >> In FreeBSD is use serial0 dts item to console. > >> > >> I think good to use this at start. > >> > >> freebsd/sys/gnu/dts/mips/MT7628.dts > >> > >> ----- Original Message ----- > >>> From: Mike Wolman > > >>> To: Mori Hiroki >; > > "freebsd-mips@freebsd.org " > > > >>> Cc: > >>> Date: 2017/5/9, Tue 09:25 > >>> Subject: Re: onion omega2+ > >>> > >>> Hi Mori, > >>> > >>> I grabbed the dts files from: > >>> > >>> > https://github.com/WereCatf/source/tree/image/target/linux/ramips/dts > > >>> > > > https://github.com/WereCatf/source/blob/image/target/linux/ramips/dts/OMEGA2P.dts > > >>> > > > https://github.com/WereCatf/source/blob/image/target/linux/ramips/dts/OMEGA2.dtsi > > >>> > >>> If this is of any use from the default linux install on the > flash: > >>> > >>> root@Omega-12BF:/proc# cat /proc/mtd > >>> dev: size erasesize name > >>> mtd0: 00030000 00010000 "u-boot" > >>> mtd1: 00010000 00010000 "u-boot-env" > >>> mtd2: 00010000 00010000 "factory" > >>> mtd3: 01fb0000 00010000 "firmware" > >>> mtd4: 00148842 00010000 "kernel" > >>> mtd5: 01e677be 00010000 "rootfs" > >>> mtd6: 01950000 00010000 "rootfs_data" > >>> > >>> > >>> btw after posting i spotted and error in what i did with: > >>> > >>> mkimage -A mips -O linux -T kernel -C lzma \ > >>> -a 0x80001000 -e 0x80001100 \ > >>> -n "FreeBSD" -d kernel.MT7628_FDT.lzma > >>> kernel.MT7628_FDT.ulzma.uImage > >>> > >>> I have redone this using the correct compressed kernel ie: > >>> > >>> mkimage -A mips -O linux -T kernel -C lzma \ > >>> -a 0x80001000 -e 0x80001100 \ > >>> -n "FreeBSD" -d kernel.MT7628_FDT.ulzma > >>> kernel.MT7628_FDT.ulzma.uImage > >>> > >>> > >>> But this didnt work. > >>> > >>> > >>> > >>> On 09/05/2017 01:17, Mori Hiroki wrote: > >>>> Hi. > >>>> > >>>> I think if U-Boot work memory make broken then > >>>> Uncompressing Kernel Image is NG. > >>>> > >>>> Some ARM U-Boot is use top address in work memory. > >>>> If this case your kernel start address to move to > >>>> after work memory. But I never see in MIPS. > >>>> > >>>> And What is set FDT_DTS_FILE in your kernel configuration ? > >>>> > >>>> ----- Original Message ----- > >>>> > >>>>> From: Mike Wolman > > >>>>> To: freebsd-mips@freebsd.org > > >>>>> Cc: > >>>>> Date: 2017/5/9, Tue 07:48 > >>>>> Subject: Re: onion omega2+ > >>>>> > >>>>> > >>>>> More info in case anyone can point me in the right direction. > >>>>> > >>>>> I have found: > >>>>> > >>>>> https://forum.openwrt.org/viewtopic.php?id=53865 > > >>>>> > >>>>> I have tried changing how lzma compresses the kernel by > > adding -d20 to > >>>>> the build scripts eg: > >>>>> > >>>>> /usr/local/bin/lzma e > >>>>> > > > /home/mike/omega2/src/../root/mipsel_ap/boot/kernel.MT7628_FDT/kernel > >>> \ > >>>>> /home/mike/omega2/src/../tftpboot/kernel.MT7628_FDT.lzma -d20 > >>>>> > >>>>> This did not work. > >>>>> > >>>>> > >>>>> Looking at the onion omega conf I see that it uses mkuzip and > > not lzma > >>>>> with the following settings: > >>>>> > >>>>> X_FSIMAGE_CMD="mkuzip" > >>>>> X_FSIMAGE_ARGS="-L -d -s 65536 -v" > >>>>> X_FSIMAGE_SUFFIX=".ulzma" > >>>>> > >>>>> So tried the following: > >>>>> > >>>>> mkuzip -L -d -s 65536 -v -o kernel.MT7628_FDT.ulzma > > kernel.MT7628_FDT > >>>>> > >>>>> mkimage -A mips -O linux -T kernel -C lzma \ > >>>>> -a 0x80001000 -e 0x80001100 \ > >>>>> -n "FreeBSD" -d kernel.MT7628_FDT.lzma > >>>>> kernel.MT7628_FDT.ulzma.uImage > >>>>> > >>>>> > >>>>> But this did not work either. > >>>>> > >>>>> > >>>>> > >>>>> On 08/05/2017 19:41, Aleksandr Rybalko wrote: > >>>>>> Hi Mike! > >>>>>> > >>>>>> I see you have no "OK" after > > "Uncompressing Kernel > >>> Image > >>>>> ...", so > >>>>>> first point uboot decompressor fail. > >>>>>> Why fail? Because you have wrong base address in image: > >>>>>> Load Address: fffffff2 > >>>>>> Entry Point: fffffff2 > >>>>>> MIPS32 machines have RAM mapped to 0x80000000 address, > > so adding > >>> its > >>>>>> size, you will get max address (if 16MB, it will be > > 0x81000000), > >>> but > >>>>>> you uboot image was created with 0xfffffff2. > >>>>>> > >>>>>> Even more, unpacked kernel expects it will be called at > >>> 0x80001100. so > >>>>>> if you have ELF kernel (file with ELF header, like > > every > >>> executable) > >>>>>> that file have to be loaded at (0x80001100 - > > ELF_HEADER_SIZE). > >>>>>> In most cases it will be 0x80001100 - 0x100 = > > 0x80001000. But > >>> sometime > >>>>>> (I did not found why) it can be 0x20, you can find it > > by looking > >>> at > >>>>>> .text section in readelf -S. > >>>>>> > >>>>>> So if you have kernel with entry point 0x80001100 and > > .text > >>> segment > >>>>>> offset 0x100, you have to create uboot image with load > > address > >>>>>> 0x80001000 and entry point 0x80001100. > >>>>>> > >>>>>> If that step successful you will get: > >>>>>> /Uncompressing Kernel Image/ ... OK > >>>>>> Starting kernel ... > >>>>>> > >>>>>> Last line mean, uboot did jump into kernel code. > >>>>>> > >>>>>> Good luck. > >>>>>> > >>>>>> 2017-05-07 18:20 GMT+03:00 Mike Wolman > > > >>>>>> >>: > >>>>>> > >>>>>> Hi, > >>>>>> > >>>>>> I am trying to get FreeBSD working on this board - > > I think I > >>> am > >>>>>> almost there in getting it working but need some > > help please. > >>>>>> > >>>>>> I have followed instructions from the > > freebsd-wifi-build and > >>>>>> *think* I have got everything correct - I am trying > > to do > >>> this on > >>>>>> a CURRENT setup: > >>>>>> > >>>>>> FreeBSD f64-current.mw.office 12.0-CURRENT FreeBSD > >>> 12.0-CURRENT #0 > >>>>>> r317887: Sun May 7 03:20:34 UTC 2017 > >>>>>> > >>> > mike@f64-current.mw.office:/usr/obj/usr/src/sys/GENERIC-NODEBUG amd64 > >>>>>> > >>>>>> $ cat ~/.freebsd-wifi-build-settings.cfg > >>>>>> X_SKIP_MORE_STUFF=YES > >>>>>> X_EXTRA_SRC_CONF=~/omega2/src.conf > >>>>>> > >>>>>> $ cat ~/omega2/src.conf > >>>>>> WITHOUT_CLANG=YES > >>>>>> WITHOUT_CLANG_FULL=YES > >>>>>> > >>>>>> get dts files from thread > >>>>>> > > http://community.onion.io/topic/1099/openwrt-on-the-omega-2/8 > > >>>>>> > >>> > > > >>>>>> > >>>>>> cd ~/omega2/src/sys/gnu/dts/mips > >>>>>> fetch > >>>>>> > >>> > > > https://raw.githubusercontent.com/WereCatf/source/image/target/linux/ramips/dts/OMEGA2.dtsi > > >>>>>> > >>> > > > > > >>>>>> fetch > >>>>>> > >>> > > > https://raw.githubusercontent.com/WereCatf/source/image/target/linux/ramips/dts/OMEGA2.dts > > >>>>>> > >>> > > > > > >>>>>> fetch > >>>>>> > >>> > > > https://raw.githubusercontent.com/WereCatf/source/image/target/linux/ramips/dts/OMEGA2P.dts > > >>>>>> > >>> > > > > > >>>>>> X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT > >>>>>> ../freebsd-wifi-build/build/bin/build ralink > > buildworld > >>>>>> X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT > >>>>>> ../freebsd-wifi-build/build/bin/build ralink > > buildkernel > >>>>>> X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT > >>>>>> ../freebsd-wifi-build/build/bin/build ralink > > installworld > >>>>>> X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT > >>>>>> ../freebsd-wifi-build/build/bin/build ralink > > installkernel > >>>>>> X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT > >>>>>> ../freebsd-wifi-build/build/bin/build ralink > > distribution > >>>>>> > >>>>>> > >>>>>> X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT > >>>>>> ../freebsd-wifi-build/build/bin/build ralink > > mfsroot > >>>>>> X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT > >>>>>> ../freebsd-wifi-build/build/bin/build ralink > > fsimage > >>>>>> X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT > >>>>>> ../freebsd-wifi-build/build/bin/build ralink uboot > >>>>>> > >>>>>> > >>>>>> Create flash: > >>>>>> > >>>>>> X_FLASH=kernel.MT7628_FDT.lzma.flash > >>>>>> dd if=/dev/zero bs=$(( 0x200000 )) count=1 > > of=${X_FLASH} > >>>>>> dd if=kernel.MT7628_FDT.lzma.uImage of=${X_FLASH} > >>> conv=notrunc > >>>>>> dd if= mfsroot-ralink.img.lzma >> ${X_FLASH} > >>>>>> > >>>>>> > >>>>>> $ readelf -h kernel.MT7628_FDT | grep Entry > >>>>>> Entry point address: 0x80001100 > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> Now on the omega over serial - I didnt get the > > network > >>> expansion > >>>>>> doc thing so am doing stuff with usb rather than > > tftp > >>>>>> > >>>>>> I am not 100% sure about the 0x80001100 and the > > fatload and > >>> have > >>>>>> tried this > >>>>>> > >>>>>> Omega2 # fatload usb 0:1 0x80001100 > >>> /kernel.MT7628_FDT.lzma.flash > >>>>>> * > >>>>>> * > >>>>>> Reading file > > "/kernel.MT7628_FDT.lzma.flash" > >>>>>> * > >>>>>> ** > >>>>>> ** > >>>>>> ** > >>>>>> ****** > >>>>>> > >>> > > > ********************************************************************************************************************************************* > >>>>>> ****** > >>>>>> * > >>>>>> FAT: 2108463 Bytes read > >>>>>> Omega2 # bootm 0x80001100 > >>>>>> ## Booting image at 80001100 ... > >>>>>> Image Name: FreeBSD > >>>>>> Image Type: MIPS Linux Kernel Image (lzma > > compressed) > >>>>>> Data Size: 1365122 Bytes = 1.3 MB > >>>>>> Load Address: fffffff2 > >>>>>> Entry Point: fffffff2 > >>>>>> Verifying Checksum ... OK > >>>>>> Uncompressing Kernel Image ... > >>>>>> > >>>>>> > >>>>>> At this point nothing happens and console hangs - > > note in > >>>>>> OMEGA2.dtsithe console is set to ttyS0: > >>>>>> > >>>>>> bootargs = "console=ttyS0,115200"; > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> I have also tried with just kernel.MT7628_FDT and > >>>>>> kernel.MT7628_FDT.lzma but both fail: > >>>>>> > >>>>>> Omega2 # fatload usb 0:1 0x80001100 > >>> /kernel.MT7628_FDT.lzma.uImage > >>>>>> * > >>>>>> * > >>>>>> Reading file > > "/kernel.MT7628_FDT.lzma.uImage" > >>>>>> * > >>>>>> ** > >>>>>> ** > >>>>>> ****** > >>>>>> > >>> > > > ****************************************************************************************************************************** > >>>>>> ********** > >>>>>> * > >>>>>> FAT: 1365186 Bytes read > >>>>>> Omega2 # bootm 0x80001100 > >>>>>> ## Booting image at 80001100 ... > >>>>>> Image Name: FreeBSD > >>>>>> Image Type: MIPS Linux Kernel Image (lzma > > compressed) > >>>>>> Data Size: 1365122 Bytes = 1.3 MB > >>>>>> Load Address: fffffff2 > >>>>>> Entry Point: fffffff2 > >>>>>> Verifying Checksum ... OK > >>>>>> Uncompressing Kernel Image ... > >>>>>> > >>>>>> > >>>>>> A few comments on the hardware for anyone who wants > > to get > >>> one: > >>>>>> Get the expansion dock with serial port access - > > the power > >>> dock > >>>>>> does not provide serial access - i think it is > > possible to > >>> use an > >>>>>> ftdi ttl serial chip/cable but have not tried. > >>>>>> > >>>>>> Stupidly I forgot this only has wifi access so you > > are not > >>> able to > >>>>>> tftp boot this without getting the ethernet network > > expansion > >>> but > >>>>>> loading stuff up from a usb memory stick is seem > > fine from > >>> u-boot. > >>>>>> I do not think that it is possible to boot from the > > SD card > >>> on the > >>>>>> Omega2+ - which is a shame. > >>>>>> > >>>>>> Thanks for reading, > >>>>>> > >>>>>> Mike. > >>>>>> > >>>>>> > >>>>>> > >>>>>> _______________________________________________ > >>>>>> 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 > >>> >> > >>>>> _______________________________________________ > >>>>> 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 > > From owner-freebsd-mips@freebsd.org Tue May 9 12:55:56 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 B4498D650CE for ; Tue, 9 May 2017 12:55:56 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from nh503-vm12.bullet.mail.kks.yahoo.co.jp (nh503-vm12.bullet.mail.kks.yahoo.co.jp [183.79.56.198]) by mx1.freebsd.org (Postfix) with SMTP id 04A093AF for ; Tue, 9 May 2017 12:55:55 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from [183.79.100.139] by nh503.bullet.mail.kks.yahoo.co.jp with NNFMP; 09 May 2017 12:52:28 -0000 Received: from [183.79.100.134] by t502.bullet.mail.kks.yahoo.co.jp with NNFMP; 09 May 2017 12:52:28 -0000 Received: from [127.0.0.1] by omp503.mail.kks.yahoo.co.jp with NNFMP; 09 May 2017 12:52:28 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 387718.24513.bm@omp503.mail.kks.yahoo.co.jp Received: (qmail 13895 invoked by uid 60001); 9 May 2017 12:52:28 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.jp; s=yj20110701; t=1494334348; bh=W+GIyUmspE03j/GSqoem+J+Qw90ENCMdC9wEqmBICC0=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:X-YMail-JAS:References:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=pY9S2eiI8rZThlzfwPtj+WyxypdY2Mk7rGc29JYN4PwWGppPNUzkzLcYc3cGTcL4+HoE7lJmQWoCe33fGWIF1axpV2XMg2x6OJWGnSxOB59YsFFQaTm4x4i3otTAdNBIAVFbVCZWR4xH0uoax78cjg9tjPOhDt0QdUkMz3OfwRA= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=yj20110701; d=yahoo.co.jp; h=Message-ID:X-YMail-OSG:Received:X-Mailer:X-YMail-JAS:References:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=Oy0KsDoeS4++oMwAk2Scl8LhGVw5ZwPJ/OCWmqXCnPbfeH7W23XdevQn9kq8Uji8Axyf9lnYbExRYkmQqAvTzcw4vDGYV8gBd2Agyd8ad7G7CVLXATygpDAHXJeT6aP5QAw4N2qUxVSZZyGtn+blCpjlIyzwsjoFxMrUhXk4qm8=; Message-ID: <39222.11970.qm@web101719.mail.ssk.yahoo.co.jp> X-YMail-OSG: YdJNpaQVM1mXX5JKLKnb4MMZsAaVeJxJSW.5YstZ1ssgW3uyePHj1GBrzIYqK_WnttNJtPNxql0kMO0dMJRIQj8qMKElse.p9.ZQy9vgC_Hx1EeIsTf_Txbt_E2LioEfAw9nQgeQ1b7rD3Sg7BZ.2qVQNEoF9KBrRIeoXBo85Jg_7rRSndqHW2JFsHh1rwoqQFtk_c4sz9Qtrw.GVd.okbgRRBYPgFM1yHL9faLROz.abYhMw90tGdTW880dXW0J_yiAW.P6IqdFqpv.SvpfITxfMc4fhkZqq2ObOzfHcS3OWkcl8PSj6nzypzDhsMiq2EuelWP4GbBQSopD54I95JlhTCZ_WEButE76HRwRdc8Yugv6z4Hw8tCnvNramlDZPsA9gBwPolKnKdNV1aRqPMcm2ywEn0UedwgXxGGGY_wNiGefooCI5cO7HyFLkt.AEF3RcetFOpgnmq3nNbifYV9cfIQREPorzYCaZnGQiXd0NEtmkXC85ff6667Qz7Wulj138hwoe08H6babcKwXlIhA1FZGo_HNhnSC.TwYV9HEZq8bX61oKU4xYvNIuS3XI6NE.Wy6SiC4RAQiBSlXwEFdgB0.RzTbTFu7Zs7UBgUOjW6J4iQrluHdSg-- Received: from [210.20.198.8] by web101719.mail.ssk.yahoo.co.jp via HTTP; Tue, 09 May 2017 21:52:27 JST X-Mailer: YahooMailWebService/0.8.111_71 X-YMail-JAS: y3TGgs4VM1n1zFX_otFVKv2OvgT.p6pt7_YiTV0SWdkVKH3w5lUi4pj8lHyTjEYJpYfJuyRBx7tFPVbOuNR7ukyvHbH5KfPzhP4Yz9e.eyT6yuJs7r4NhrV8uQnGX3SQhDg9 References: <694efc3a-e183-35a1-a0bf-9a9c0d708826@wolman.co.uk> <410144.69078.qm@web101716.mail.ssk.yahoo.co.jp> <128807.28836.qm@web101715.mail.ssk.yahoo.co.jp> <2d555385-8258-fd75-e4a3-a1e59bf86314@wolman.co.uk> <651873.78746.qm@web101702.mail.ssk.yahoo.co.jp> <2c5cd01a-a8d4-3ffa-4e9c-2aad170574c1@wolman.co.uk> Date: Tue, 9 May 2017 21:52:27 +0900 (JST) From: Mori Hiroki Reply-To: Mori Hiroki Subject: Re: onion omega2+ To: Mike Wolman , Aleksandr Rybalko Cc: "freebsd-mips@freebsd.org" In-Reply-To: <2c5cd01a-a8d4-3ffa-4e9c-2aad170574c1@wolman.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable 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: Tue, 09 May 2017 12:55:56 -0000 Hi.=0A=0AThis is my sample operation get image from network and boot.=0A=0A= RT3052 # tftpboot 0x80800000 Planex_MZK-WNH_kernel.kbin.oldlzma.uboot=0ART3= 052 # bootm =0A=0A=0AI don't use USB support U-Boot. But I think=A0fatload = command argument is=0Atemporary=A0memory address not kernel address.=0A=0AH= ow about this.=0A=0AOmega2 # fatload usb 0:1=A00x80800000=A0kernel.MT7628_F= DT.uImage=0AOmega2 # bootm=0A=0A----- Original Message -----=0A>From: Mike = Wolman =0A>To: Aleksandr Rybalko ; Mori = Hiroki =0A>Cc: "freebsd-mips@freebsd.org" =0A>Date: 2017/5/9, Tue 20:48=0A>Subject: Re: onion omega2= +=0A> =0A>=0A>=0A>=0A>Is it possible to exclude the compression of the kern= el/image for=0A=A0=A0=A0=A0now eg:=0A>=0A>mkimage -A mips -C none -O linux = -T kernel -a 0x80001000 -e=0A=A0=A0=A0=A00x80001100 -n "FreeBSD" -d kernel.= MT7628_FDT=0A=A0=A0=A0=A0kernel.MT7628_FDT.uImage=0A>=0A>=0A>I have just tr= ied the above but when booting I get a Bad Magic=0A=A0=A0=A0=A0Number.=0A>= =0A>=0A>Omega2 # fatload usb 0:1 0x80001000 kernel.MT7628_FDT.uImage=0A>*= =0A>*=0A>Reading file "kernel.MT7628_FDT.uImage"=0A>*=0A>**=0A>**=0A>**=0A>= **=0A>**=0A>**=0A>**=0A>**=0A>**=0A>**=0A>******=0A>******=0A>*************= ***************************************************************************= ***************************************************************************= ***********************************************=0A>****=0A>*=0A>FAT: 565482= 4 Bytes read=0A>Omega2 # bootm 0x80001100=0A>## Booting image at 80001100 .= ..=0A>Bad Magic Number,1C994480=0A>Omega2 #=0A>=0A>=0A>I have seen other ex= amples starting a program directly with going to=0A=A0=A0=A0=A0the address = but this didnt work either:=0A>=0A>Omega2 # go 0x80001100=0A>## Starting ap= plication at 0x80001100 ...=0A>=0A>omega freezes here.=0A>=0A>=0A>=0A>=0A>O= n 09/05/2017 10:12, Aleksandr Rybalko wrote:=0A>=0A>Fix things in order :)= =0A>>=0ACurrently you have problem with LZMA, serial port later.=0A>>=0A>>= =0ASo, find version of lzma used to build linux firmware, MIPS routers worl= d use about 5 incompatible versions. One of them, you can find here:=0A>>ht= tp://project.zrouter.org/hg/zrouter/file/9ac53695a44d/tools/oldlzma=0A>>=0A= >>=0A>>=0A>>=0A>>2017-05-09 7:03 GMT+03:00 Mori Hiroki :=0A>>=0A>>Hi Mike=0A>>>=0A>>>Could you show u-boot printenv command res= ult.=0A>>>=0A>>>Thanks=0A>>>=0A>>>=0A>>>----- Original Message -----=0A>>>>= From: Mike Wolman =0A>>>> To: Mori Hiroki ; "freebsd-mips@freebsd.org" =0A>>>> Cc= :=0A>>> =0A>>>> Date: 2017/5/9, Tue 10:30=0A>>>> Subject: Re: onion omega2+= =0A>>>>=0A>>>> Hi Mori,=0A>>>>=0A>>>> When I compiled the world/kernel etc = I used:=0A>>>>=0A>>>> X_DTS_FILE=3DOMEGA2P.dts KERNCONF=3DMT7628_FDT=0A>>>>= ../freebsd-wifi-build/build/ bin/build ralink=0A=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0buildkernel=0A>>>>=0A>>>> I checked the serial stuf= f was the same as the=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0oth= er configs in:=0A>>>> https://github.com/freebsd/ freebsd-wifi-build/=0A>>>= > and they looked the same.=0A>>>>=0A>>>> The OMEGA2.dtsi file has:=0A>>>>= =0A>>>> =A0 =A0 =A0 =A0=A0 chosen {=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 bootargs =3D "console=3DttyS0,115200";=0A>>>> =A0 =A0 =A0 =A0=A0 };=0A>= >>>=0A>>>>=0A>>>> And mt7628an.dtsi has:=A0=A0 serial0 =3D &uartlite;=0A>>>= >=0A>>>> I dont think im getting as far as worrying about=0A=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0the serial console at=0A>>>> the moment an= d need to get the kernel to uncompress=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0first.=0A>>>>=0A>>>> Mike.=0A>>>>=0A>>>>=0A>>>> On 09/05/201= 7 02:20, Mori Hiroki wrote:=0A>>>>>=A0 Hi Mike=0A>>>>>=0A>>>>>=A0 In FreeBS= D is use serial0 dts item to console.=0A>>>>>=0A>>>>>=A0 I think good to us= e this at start.=0A>>>>>=0A>>>>>=A0 freebsd/sys/gnu/dts/mips/ MT7628.dts=0A= >>>>>=0A>>>>>=A0 ----- Original Message -----=0A>>>>>>=A0 From: Mike Wolman= =0A>>>>>>=A0 To: Mori Hiroki ;= =0A>>>> "freebsd-mips@freebsd.org" =0A>>>>>>=A0 C= c:=0A>>>>>>=A0 Date: 2017/5/9, Tue 09:25=0A>>>>>>=A0 Subject: Re: onion ome= ga2+=0A>>>>>>=0A>>>>>>=A0 Hi Mori,=0A>>>>>>=0A>>>>>>=A0 I grabbed the dts f= iles from:=0A>>>>>>=0A>>>>>>=A0 https://github.com/WereCatf/ source/tree/im= age/target/ linux/ramips/dts=0A>>>>>>=0A>>>> https://github.com/WereCatf/ s= ource/blob/image/target/ linux/ramips/dts/OMEGA2P.dts=0A>>>>>>=0A>>>> https= ://github.com/WereCatf/ source/blob/image/target/ linux/ramips/dts/OMEGA2.d= tsi=0A>>>>>>=0A>>>>>>=A0 If this is of any use from the default=0A=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0linux install on the flash:=0A>>>>>>= =0A>>>>>>=A0 root@Omega-12BF:/proc# cat /proc/mtd=0A>>>>>>=A0 dev:=A0 =A0 s= ize=A0=A0 erasesize=A0 name=0A>>>>>>=A0 mtd0: 00030000 00010000 "u-boot"=0A= >>>>>>=A0 mtd1: 00010000 00010000 "u-boot-env"=0A>>>>>>=A0 mtd2: 00010000 0= 0010000 "factory"=0A>>>>>>=A0 mtd3: 01fb0000 00010000 "firmware"=0A>>>>>>= =A0 mtd4: 00148842 00010000 "kernel"=0A>>>>>>=A0 mtd5: 01e677be 00010000 "r= ootfs"=0A>>>>>>=A0 mtd6: 01950000 00010000 "rootfs_data"=0A>>>>>>=0A>>>>>>= =0A>>>>>>=A0 btw after posting i spotted and error in=0A=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0what i did with:=0A>>>>>>=0A>>>>>>=A0 mkimage= -A mips -O linux -T kernel -C lzma=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0\=0A>>>>>> =A0 =A0 =A0 -a 0x80001000 -e 0x80001100 \=0A>>>>>> = =A0 =A0 =A0 -n "FreeBSD" -d=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0kernel.MT7628_FDT.lzma=0A>>>>>>=A0 kernel.MT7628_FDT.ulzma.uImage=0A>>>>= >>=0A>>>>>>=A0 I have redone this using the correct=0A=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0compressed kernel ie:=0A>>>>>>=0A>>>>>>=A0 mkima= ge -A mips -O linux -T kernel -C lzma=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0\=0A>>>>>> =A0 =A0 =A0 -a 0x80001000 -e 0x80001100 \=0A>>>>>= > =A0 =A0 =A0 -n "FreeBSD" -d=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0kernel.MT7628_FDT.ulzma=0A>>>>>>=A0 kernel.MT7628_FDT.ulzma.uImage=0A= >>>>>>=0A>>>>>>=0A>>>>>>=A0 But this didnt work.=0A>>>>>>=0A>>>>>>=0A>>>>>>= =0A>>>>>>=A0 On 09/05/2017 01:17, Mori Hiroki wrote:=0A>>>>>>> =A0=A0 Hi.= =0A>>>>>>>=0A>>>>>>> =A0=A0 I think if U-Boot work memory make=0A=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0broken then=0A>>>>>>> =A0=A0 Uncompr= essing Kernel Image is NG.=0A>>>>>>>=0A>>>>>>> =A0=A0 Some ARM U-Boot is us= e top address=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0in work mem= ory.=0A>>>>>>> =A0=A0 If this case your kernel start=0A=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0address to move to=0A>>>>>>> =A0=A0 after wor= k memory. But I never see=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0in MIPS.=0A>>>>>>>=0A>>>>>>> =A0=A0 And What is set FDT_DTS_FILE=A0 in= =0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0your kernel configuratio= n ?=0A>>>>>>>=0A>>>>>>> =A0=A0 ----- Original Message -----=0A>>>>>>>=0A>>>= >>>>> =A0=A0 From: Mike Wolman =0A>>>>>>>> =A0=A0 To: fr= eebsd-mips@freebsd.org=0A>>>>>>>> =A0=A0 Cc:=0A>>>>>>>> =A0=A0 Date: 2017/5= /9, Tue 07:48=0A>>>>>>>> =A0=A0 Subject: Re: onion omega2+=0A>>>>>>>>=0A>>>= >>>>>=0A>>>>>>>> =A0=A0 More info in case anyone can=0A=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0point me in the right direction.=0A>>>>>>>>= =0A>>>>>>>> =A0=A0 I have found:=0A>>>>>>>>=0A>>>>>>>> =A0 https://forum.op= enwrt.org/ viewtopic.php?id=3D53865=0A>>>>>>>>=0A>>>>>>>> =A0=A0 I have tri= ed changing how lzma=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0comp= resses the kernel by=0A>>>> adding -d20 to=0A>>>>>>>> =A0=A0 the build scri= pts eg:=0A>>>>>>>>=0A>>>>>>>> =A0=A0 /usr/local/bin/lzma e=0A>>>>>>>> =A0= =0A>>>> /home/mike/omega2/src/../root/ mipsel_ap/boot/kernel.MT7628_ FDT/ke= rnel=0A>>>>>>=A0 \=0A>>>>>>>> =A0=A0 /home/mike/omega2/src/../ tftpboot/ker= nel.MT7628_FDT. lzma=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0-d20= =0A>>>>>>>>=0A>>>>>>>> =A0=A0 This did not work.=0A>>>>>>>>=0A>>>>>>>>=0A>>= >>>>>> =A0=A0 Looking at the onion omega conf=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0I see that it uses mkuzip and=0A>>>> not lzma=0A>>>>>>= >> =A0=A0 with the following settings:=0A>>>>>>>>=0A>>>>>>>> =A0=A0 X_FSIMA= GE_CMD=3D"mkuzip"=0A>>>>>>>> =A0=A0 X_FSIMAGE_ARGS=3D"-L -d -s 65536=0A=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0-v"=0A>>>>>>>> =A0=A0 X_FSIMAG= E_SUFFIX=3D".ulzma"=0A>>>>>>>>=0A>>>>>>>> =A0=A0 So tried the following:=0A= >>>>>>>>=0A>>>>>>>> =A0=A0 mkuzip -L -d -s 65536 -v -o=0A=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0kernel.MT7628_FDT.ulzma=0A>>>> kernel.MT7628_= FDT=0A>>>>>>>>=0A>>>>>>>> =A0=A0 mkimage -A mips -O linux -T=0A=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0kernel -C lzma \=0A>>>>>>>> =A0 =A0 =A0= =A0 -a 0x80001000 -e 0x80001100=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0\=0A>>>>>>>> =A0 =A0 =A0=A0 -n "FreeBSD" -d=0A=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0kernel.MT7628_FDT.lzma=0A>>>>>>>> =A0=A0 kern= el.MT7628_FDT.ulzma.uImage=0A>>>>>>>>=0A>>>>>>>>=0A>>>>>>>> =A0=A0 But this= did not work either.=0A>>>>>>>>=0A>>>>>>>>=0A>>>>>>>>=0A>>>>>>>> =A0=A0 On= 08/05/2017 19:41, Aleksandr=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0Rybalko wrote:=0A>>>>>>>>> =A0 =A0=A0 Hi Mike!=0A>>>>>>>>>=0A>>>>>>>>= > =A0 =A0=A0 I see you have no "OK"=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0after=0A>>>> "Uncompressing Kernel=0A>>>>>>=A0 Image=0A>>>>>>>>= =A0=A0 ...", so=0A>>>>>>>>> =A0 =A0=A0 first point uboot=0A=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0decompressor fail.=0A>>>>>>>>> =A0 =A0=A0 = Why fail? Because you have=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0wrong base address in image:=0A>>>>>>>>> =A0 =A0 =A0=A0 Load Address: ff= fffff2=0A>>>>>>>>> =A0 =A0 =A0=A0 Entry Point:=A0 fffffff2=0A>>>>>>>>> =A0 = =A0=A0 MIPS32 machines have RAM=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0mapped to 0x80000000 address,=0A>>>> so adding=0A>>>>>>=A0 its=0A>= >>>>>>>> =A0 =A0=A0 size, you will get max=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0address (if 16MB, it will be=0A>>>> 0x81000000),=0A>>>>>>= =A0 but=0A>>>>>>>>> =A0 =A0=A0 you uboot image was=0A=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0created with 0xfffffff2.=0A>>>>>>>>>=0A>>>>>>>>>= =A0 =A0=A0 Even more, unpacked kernel=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0expects it will be called at=0A>>>>>>=A0 0x80001100. so=0A>>= >>>>>>> =A0 =A0=A0 if you have ELF kernel=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0(file with ELF header, like=0A>>>> every=0A>>>>>>=A0 exec= utable)=0A>>>>>>>>> =A0 =A0=A0 that file have to be=0A=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0loaded at (0x80001100 -=0A>>>> ELF_HEADER_SIZE).= =0A>>>>>>>>> =A0 =A0=A0 In most cases it will be=0A=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A00x80001100 - 0x100 =3D=0A>>>> 0x80001000. But=0A>>>= >>>=A0 sometime=0A>>>>>>>>> =A0 =A0=A0 (I did not found why) it=0A=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0can be 0x20, you can find it=0A>>>> = by looking=0A>>>>>>=A0 at=0A>>>>>>>>> =A0 =A0=A0 .text section in readelf= =0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0-S.=0A>>>>>>>>>=0A>>>>>>= >>> =A0 =A0=A0 So if you have kernel with=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0entry point 0x80001100 and=0A>>>> .text=0A>>>>>>=A0 segme= nt=0A>>>>>>>>> =A0 =A0=A0 offset 0x100, you have to=0A=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0create uboot image with load=0A>>>> address=0A>>= >>>>>>> =A0 =A0=A0 0x80001000 and entry point=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A00x80001100.=0A>>>>>>>>>=0A>>>>>>>>> =A0 =A0=A0 If that= step successful=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0you will= get:=0A>>>>>>>>> =A0 =A0=A0 /Uncompressing Kernel=0A=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0Image/ ... OK=0A>>>>>>>>> =A0 =A0=A0 Starting ke= rnel ...=0A>>>>>>>>>=0A>>>>>>>>> =A0 =A0=A0 Last line mean, uboot did=0A=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0jump into kernel code.=0A>>>>>= >>>>=0A>>>>>>>>> =A0 =A0=A0 Good luck.=0A>>>>>>>>>=0A>>>>>>>>> =A0 =A0=A0 2= 017-05-07 18:20 GMT+03:00=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0Mike Wolman=0A>>>> >>>>>>>> =A0 =A0=A0 >:=0A>>>>>>>>>=0A>>>>>>>>> =A0 =A0 =A0 =A0=A0 Hi,=0A>>>>>>>>= >=0A>>>>>>>>> =A0 =A0 =A0 =A0=A0 I am trying to get=0A=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0FreeBSD working on this board -=0A>>>> I think I= =0A>>>>>>=A0 am=0A>>>>>>>>> =A0 =A0 =A0 =A0=A0 almost there in=0A=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0getting it working but need some=0A>= >>> help please.=0A>>>>>>>>>=0A>>>>>>>>> =A0 =A0 =A0 =A0=A0 I have followed= =0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0instructions from the=0A= >>>> freebsd-wifi-build and=0A>>>>>>>>> =A0 =A0 =A0 =A0=A0 *think* I have g= ot=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0everything correct - I= am trying=0A>>>> to do=0A>>>>>>=A0 this on=0A>>>>>>>>> =A0 =A0 =A0 =A0=A0 = a CURRENT setup:=0A>>>>>>>>>=0A>>>>>>>>> =A0 =A0 =A0 =A0=A0 FreeBSD=0A=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0f64-current.mw.office 12.0-CUR= RENT FreeBSD=0A>>>>>>=A0 12.0-CURRENT #0=0A>>>>>>>>> =A0 =A0 =A0 =A0=A0 r31= 7887: Sun May=A0 7=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A003:20:= 34 UTC 2017=0A>>>>>>>>> =A0 =A0 =A0 =A0=0A>>>>>>=A0 mike@f64-current.mw.off= ice:/ usr/obj/usr/src/sys/GENERIC- NODEBUG amd64=0A>>>>>>>>>=0A>>>>>>>>> = =A0 =A0 =A0 =A0=A0 $ cat=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= ~/.freebsd-wifi-build- settings.cfg=0A>>>>>>>>> =A0 =A0 =A0 =A0=A0 X_SKIP_M= ORE_STUFF=3DYES=0A>>>>>>>>> =A0 =A0 =A0 =A0=A0=0A=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0X_EXTRA_SRC_CONF=3D~/omega2/src. conf=0A>>>>>>>>>= =0A>>>>>>>>> =A0 =A0 =A0 =A0=A0 $ cat=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0~/omega2/src.conf=0A>>>>>>>>> =A0 =A0 =A0 =A0=A0 WITHOUT_CLA= NG=3DYES=0A>>>>>>>>> =A0 =A0 =A0 =A0=A0 WITHOUT_CLANG_FULL=3DYES=0A>>>>>>>>= >=0A>>>>>>>>> =A0 =A0 =A0 =A0=A0 get dts files from=0A=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0thread=0A>>>>>>>>> =A0 =A0 =A0 =A0=0A>>>> http:/= /community.onion.io/ topic/1099/openwrt-on-the- omega-2/8=0A>>>>>>>>> =A0 = =A0 =A0 =A0=0A>>>>>>=A0 =0A>>>>>>>>>=0A>>>>>>>>> =A0 =A0 =A0 =A0=A0 cd=0A=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0~/omega2/src/sys/gnu/dts/mips=0A>>>>>>>= >> =A0 =A0 =A0 =A0=A0 fetch=0A>>>>>>>>> =A0 =A0 =A0 =A0=0A>>>>>>=0A>>>> htt= ps://raw.githubusercontent. com/WereCatf/source/image/ target/linux/ramips/= dts/ OMEGA2.dtsi=0A>>>>>>>>> =A0 =A0 =A0 =A0=0A>>>>>>=0A>>>> =0A>>>>>>>>> =A0 =A0 =A0 =A0=A0 fetch=0A>>>>>>>>> =A0 =A0 =A0 =A0=0A= >>>>>>=0A>>>> https://raw.githubusercontent. com/WereCatf/source/image/ tar= get/linux/ramips/dts/ OMEGA2.dts=0A>>>>>>>>> =A0 =A0 =A0 =A0=0A>>>>>>=0A>>>= > =0A>>>>>>>>> =A0 =A0 =A0 =A0=A0 fetch=0A>>>>>>>>> =A0= =A0 =A0 =A0=0A>>>>>>=0A>>>> https://raw.githubusercontent. com/WereCatf/so= urce/image/ target/linux/ramips/dts/ OMEGA2P.dts=0A>>>>>>>>> =A0 =A0 =A0 = =A0=0A>>>>>>=0A>>>> =0A>>>>>>>>> =A0 =A0 =A0 =A0=A0 X_= DTS_FILE=3DOMEGA2P.dts=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0KE= RNCONF=3DMT7628_FDT=0A>>>>>>>>> =A0 =A0 =A0 =A0=A0=0A=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0../freebsd-wifi-build/build/ bin/build ralink=0A= >>>> buildworld=0A>>>>>>>>> =A0 =A0 =A0 =A0=A0 X_DTS_FILE=3DOMEGA2P.dts=0A= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0KERNCONF=3DMT7628_FDT=0A>>>= >>>>>> =A0 =A0 =A0 =A0=A0=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0../freebsd-wifi-build/build/ bin/build ralink=0A>>>> buildkernel=0A>>>>>= >>>> =A0 =A0 =A0 =A0=A0 X_DTS_FILE=3DOMEGA2P.dts=0A=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0KERNCONF=3DMT7628_FDT=0A>>>>>>>>> =A0 =A0 =A0 =A0= =A0=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0../freebsd-wifi-build= /build/ bin/build ralink=0A>>>> installworld=0A>>>>>>>>> =A0 =A0 =A0 =A0=A0= X_DTS_FILE=3DOMEGA2P.dts=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0KERNCONF=3DMT7628_FDT=0A>>>>>>>>> =A0 =A0 =A0 =A0=A0=0A=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0../freebsd-wifi-build/build/ bin/build ral= ink=0A>>>> installkernel=0A>>>>>>>>> =A0 =A0 =A0 =A0=A0 X_DTS_FILE=3DOMEGA2= P.dts=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0KERNCONF=3DMT7628_F= DT=0A>>>>>>>>> =A0 =A0 =A0 =A0=A0=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0../freebsd-wifi-build/build/ bin/build ralink=0A>>>> distribution= =0A>>>>>>>>>=0A>>>>>>>>>=0A>>>>>>>>> =A0 =A0 =A0 =A0=A0 X_DTS_FILE=3DOMEGA2= P.dts=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0KERNCONF=3DMT7628_F= DT=0A>>>>>>>>> =A0 =A0 =A0 =A0=A0=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0../freebsd-wifi-build/build/ bin/build ralink=0A>>>> mfsroot=0A>>>= >>>>>> =A0 =A0 =A0 =A0=A0 X_DTS_FILE=3DOMEGA2P.dts=0A=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0KERNCONF=3DMT7628_FDT=0A>>>>>>>>> =A0 =A0 =A0 = =A0=A0=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0../freebsd-wifi-bu= ild/build/ bin/build ralink=0A>>>> fsimage=0A>>>>>>>>> =A0 =A0 =A0 =A0=A0 X= _DTS_FILE=3DOMEGA2P.dts=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0K= ERNCONF=3DMT7628_FDT=0A>>>>>>>>> =A0 =A0 =A0 =A0=A0=0A=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0../freebsd-wifi-build/build/ bin/build ralink ub= oot=0A>>>>>>>>>=0A>>>>>>>>>=0A>>>>>>>>> =A0 =A0 =A0 =A0=A0 Create flash:=0A= >>>>>>>>>=0A>>>>>>>>> =A0 =A0 =A0 =A0=A0=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0X_FLASH=3Dkernel.MT7628_FDT. lzma.flash=0A>>>>>>>>> =A0 = =A0 =A0 =A0=A0 dd if=3D/dev/zero bs=3D$((=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A00x200000 )) count=3D1=0A>>>> of=3D${X_FLASH}=0A>>>>>>>>> = =A0 =A0 =A0 =A0=A0 dd=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0if= =3Dkernel.MT7628_FDT.lzma. uImage of=3D${X_FLASH}=0A>>>>>>=A0 conv=3Dnotrun= c=0A>>>>>>>>> =A0 =A0 =A0 =A0=A0 dd if=3D=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0mfsroot-ralink.img.lzma >> ${X_FLASH}=0A>>>>>>>>>=0A>>>>>= >>>>=0A>>>>>>>>> =A0 =A0 =A0 =A0=A0 $ readelf -h=0A=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0kernel.MT7628_FDT | grep Entry=0A>>>>>>>>> =A0 =A0 = =A0 =A0 =A0=A0 Entry point=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0address:=A0 =A0 =A0 =A0 =A0 =A0 =A0=A0 0x80001100=0A>>>>>>>>>=0A>>>>>>>>= >=0A>>>>>>>>>=0A>>>>>>>>>=0A>>>>>>>>> =A0 =A0 =A0 =A0=A0 Now on the omega o= ver=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0serial - I didnt get = the=0A>>>> network=0A>>>>>>=A0 expansion=0A>>>>>>>>> =A0 =A0 =A0 =A0=A0 doc= thing so am doing=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0stuff = with usb rather than=0A>>>> tftp=0A>>>>>>>>>=0A>>>>>>>>> =A0 =A0 =A0 =A0=A0= I am not 100% sure=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0about= the 0x80001100 and the=0A>>>> fatload and=0A>>>>>>=A0 have=0A>>>>>>>>> =A0= =A0 =A0 =A0=A0 tried this=0A>>>>>>>>>=0A>>>>>>>>> =A0 =A0 =A0 =A0=A0 Omega= 2 # fatload usb=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A00:1 0x800= 01100=0A>>>>>>=A0 /kernel.MT7628_FDT.lzma.flash=0A>>>>>>>>> =A0 =A0 =A0 =A0= =A0 *=0A>>>>>>>>> =A0 =A0 =A0 =A0=A0 *=0A>>>>>>>>> =A0 =A0 =A0 =A0=A0 Readi= ng file=0A>>>> "/kernel.MT7628_FDT.lzma. flash"=0A>>>>>>>>> =A0 =A0 =A0 =A0= =A0 *=0A>>>>>>>>> =A0 =A0 =A0 =A0=A0 **=0A>>>>>>>>> =A0 =A0 =A0 =A0=A0 **= =0A>>>>>>>>> =A0 =A0 =A0 =A0=A0 **=0A>>>>>>>>> =A0 =A0 =A0 =A0=A0 ******=0A= >>>>>>>>> =A0 =A0 =A0 =A0=0A>>>>>>=0A>>>> ****************************** **= **************************** ****************************** ***************= *************** *********************=0A>>>>>>>>> =A0 =A0 =A0 =A0=A0 ******= =0A>>>>>>>>> =A0 =A0 =A0 =A0=A0 *=0A>>>>>>>>> =A0 =A0 =A0 =A0=A0 FAT: 21084= 63 Bytes=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0read=0A>>>>>>>>>= =A0 =A0 =A0 =A0=A0 Omega2 # bootm=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A00x80001100=0A>>>>>>>>> =A0 =A0 =A0 =A0=A0 ## Booting image at= =0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A080001100 ...=0A>>>>>>>>>= =A0 =A0 =A0 =A0 =A0 =A0 Image Name:=A0=A0=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0FreeBSD=0A>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 Image Type:= =A0=A0 MIPS=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0Linux Kernel = Image (lzma=0A>>>> compressed)=0A>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 Data Siz= e:=A0 =A0=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A01365122 Bytes = =3D=A0 1.3 MB=0A>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 Load Address:=0A=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0fffffff2=0A>>>>>>>>> =A0 =A0 =A0 =A0= =A0 =A0 Entry Point:=A0=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= fffffff2=0A>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 Verifying Checksum=0A=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0... OK=0A>>>>>>>>> =A0 =A0 =A0 =A0 = =A0 =A0 Uncompressing=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0Ker= nel Image ...=0A>>>>>>>>>=0A>>>>>>>>>=0A>>>>>>>>> =A0 =A0 =A0 =A0=A0 At thi= s point nothing=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0happens a= nd console hangs -=0A>>>> note in=0A>>>>>>>>> =A0 =A0 =A0 =A0=A0 OMEGA2.dts= ithe console=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0is set to tt= yS0:=0A>>>>>>>>>=0A>>>>>>>>> =A0 =A0 =A0 =A0=A0 bootargs =3D=0A=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0"console=3DttyS0,115200";=0A>>>>>>>>>= =0A>>>>>>>>>=0A>>>>>>>>>=0A>>>>>>>>>=0A>>>>>>>>> =A0 =A0 =A0 =A0=A0 I have = also tried with=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0just kern= el.MT7628_FDT and=0A>>>>>>>>> =A0 =A0 =A0 =A0=A0 kernel.MT7628_FDT.lzma=0A= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0but both fail:=0A>>>>>>>>>= =0A>>>>>>>>> =A0 =A0 =A0 =A0=A0 Omega2 # fatload usb=0A=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A00:1 0x80001100=0A>>>>>>=A0 /kernel.MT7628_FDT= .lzma.uImage=0A>>>>>>>>> =A0 =A0 =A0 =A0=A0 *=0A>>>>>>>>> =A0 =A0 =A0 =A0= =A0 *=0A>>>>>>>>> =A0 =A0 =A0 =A0=A0 Reading file=0A>>>> "/kernel.MT7628_FD= T.lzma. uImage"=0A>>>>>>>>> =A0 =A0 =A0 =A0=A0 *=0A>>>>>>>>> =A0 =A0 =A0 = =A0=A0 **=0A>>>>>>>>> =A0 =A0 =A0 =A0=A0 **=0A>>>>>>>>> =A0 =A0 =A0 =A0=A0 = ******=0A>>>>>>>>> =A0 =A0 =A0 =A0=0A>>>>>>=0A>>>> ************************= ****** ****************************** ****************************** ******= ************************ ******=0A>>>>>>>>> =A0 =A0 =A0 =A0=A0 **********= =0A>>>>>>>>> =A0 =A0 =A0 =A0=A0 *=0A>>>>>>>>> =A0 =A0 =A0 =A0=A0 FAT: 13651= 86 Bytes=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0read=0A>>>>>>>>>= =A0 =A0 =A0 =A0=A0 Omega2 # bootm=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A00x80001100=0A>>>>>>>>> =A0 =A0 =A0 =A0=A0 ## Booting image at= =0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A080001100 ...=0A>>>>>>>>>= =A0 =A0 =A0 =A0 =A0 =A0 Image Name:=A0=A0=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0FreeBSD=0A>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 Image Type:= =A0=A0 MIPS=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0Linux Kernel = Image (lzma=0A>>>> compressed)=0A>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 Data Siz= e:=A0 =A0=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A01365122 Bytes = =3D=A0 1.3 MB=0A>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 Load Address:=0A=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0fffffff2=0A>>>>>>>>> =A0 =A0 =A0 =A0= =A0 =A0 Entry Point:=A0=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= fffffff2=0A>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 Verifying Checksum=0A=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0... OK=0A>>>>>>>>> =A0 =A0 =A0 =A0 = =A0 =A0 Uncompressing=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0Ker= nel Image ...=0A>>>>>>>>>=0A>>>>>>>>>=0A>>>>>>>>> =A0 =A0 =A0 =A0=A0 A few = comments on the=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0hardware = for anyone who wants=0A>>>> to get=0A>>>>>>=A0 one:=0A>>>>>>>>> =A0 =A0 =A0= =A0=A0 Get the expansion dock=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0with serial port access -=0A>>>> the power=0A>>>>>>=A0 dock=0A>>>>>>>= >> =A0 =A0 =A0 =A0=A0 does not provide=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0serial access - i think it is=0A>>>> possible to=0A>>>>>>=A0= use an=0A>>>>>>>>> =A0 =A0 =A0 =A0=A0 ftdi ttl serial=0A=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0chip/cable but have not tried.=0A>>>>>>>>>=0A= >>>>>>>>> =A0 =A0 =A0 =A0=A0 Stupidly I forgot this=0A=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0only has wifi access so you=0A>>>> are not=0A>>>= >>>=A0 able to=0A>>>>>>>>> =A0 =A0 =A0 =A0=A0 tftp boot this without=0A=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0getting the ethernet network= =0A>>>> expansion=0A>>>>>>=A0 but=0A>>>>>>>>> =A0 =A0 =A0 =A0=A0 loading st= uff up from=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0a usb memory = stick is seem=0A>>>> fine from=0A>>>>>>=A0 u-boot.=0A>>>>>>>>> =A0 =A0 =A0 = =A0=A0 I do not think that it=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0is possible to boot from the=0A>>>> SD card=0A>>>>>>=A0 on the=0A>>>>= >>>>> =A0 =A0 =A0 =A0=A0 Omega2+ - which is a=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0shame.=0A>>>>>>>>>=0A>>>>>>>>> =A0 =A0 =A0 =A0=A0 Than= ks for reading,=0A>>>>>>>>>=0A>>>>>>>>> =A0 =A0 =A0 =A0=A0 Mike.=0A>>>>>>>>= >=0A>>>>>>>>>=0A>>>>>>>>>=0A>>>>>>>>> =A0 =A0 =A0 =A0=A0=0A=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0______________________________ ___________= ______=0A>>>>>>>>> =A0 =A0 =A0 =A0 freebsd-mips@freebsd.org=0A>>>>>>=A0 mailing=0A>>>>>>>> =A0=A0 list=0A>>>>>>>>> = =A0 =A0 =A0 =A0=0A>>>> https://lists.freebsd.org/ mailman/listinfo/freebsd-= mips=0A>>>>>>>>> =A0 =A0 =A0 =A0=0A>>>>>>=A0 =0A>>>>>>>>> =A0 =A0 =A0 =A0=A0 To unsubscribe,= send=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0any mail to=0A>>>>>= >>>> =A0 =A0 =A0 =A0=A0 "freebsd-mips-unsubscribe@ freebsd.org=0A>>>>>>>>> = =A0 =A0 =A0 =A0=0A>>>> "=0A>>= >>>>>>>=0A>>>>>>>>>=0A>>>>>>>>>=0A>>>>>>>>>=0A>>>>>>>>> =A0 =A0=A0 --=0A>>>= >>>>>> =A0 =A0=A0 WBW=0A>>>>>>>>> =A0 =A0=A0 -------=0A>>>>>>>>> =A0 =A0=A0= Rybalko Aleksandr >>>>>=A0 >=0A>= >>>>>>> =A0=A0 ______________________________ _________________=0A>>>>>>>> = =A0 freebsd-mips@freebsd.org mailing list=0A>>>>>>>> =A0 https://lists.free= bsd.org/ mailman/listinfo/freebsd-mips=0A>>>>>>>> =A0=A0 To unsubscribe, se= nd any mail to=0A>>>>>>>> =A0=A0 "freebsd-mips-unsubscribe@ freebsd.org"=0A= >>>>>>>>=0A>>>>=0A>>>______________________________ _________________=0A>>>= freebsd-mips@freebsd.org mailing list=0A>>>https://lists.freebsd.org/ mailm= an/listinfo/freebsd-mips=0A>>>To unsubscribe, send any mail to "freebsd-mip= s-unsubscribe@ freebsd.org"=0A>>>=0A>>=0A>>=0A>>-- =0A>>=0A>>WBW=0A>>------= -=0A>>Rybalko Aleksandr =0A>>=0A>>=0A>=0A>=0A> From owner-freebsd-mips@freebsd.org Tue May 9 13:01:30 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 CE74FD653B3 for ; Tue, 9 May 2017 13:01:30 +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 1B42BAE for ; Tue, 9 May 2017 13:01:29 +0000 (UTC) (envelope-from mike@wolman.co.uk) Received: from [192.168.3.50] ([80.229.66.11]) by avasout08 with smtp id JD1R1v0040EahWw01D1SUX; Tue, 09 May 2017 14:01:27 +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=N659UExz7-8A:10 a=UmSUZ3ptAAAA:8 a=4I05h4SrAAAA:8 a=6I5d2MoRAAAA:8 a=arpVtLJQAAAA:8 a=NEAV23lmAAAA:8 a=jdP34snFAAAA:8 a=LJ5NkaWEAAAA:8 a=bt8Zh30PAAAA:8 a=qcTZ6PTDqG4RYthyzp8A:9 a=s-LTP1wQik1Vx6HT:21 a=shboWQP2xTOPKMDR:21 a=pILNOxqGKmIA:10 a=FyGKTEvU35uc88vWBdgE:22 a=SXYKVUms7l59yVxtnTo9:22 a=IjZwj45LgO3ly-622nXo:22 a=86BuEF5rAmEUDcZwuOX_:22 a=jlphF6vWLdwq7oh3TaWq:22 a=eH83O4KjmLCfbRe1EArK:22 Subject: Re: onion omega2+ To: Mori Hiroki , Aleksandr Rybalko References: <694efc3a-e183-35a1-a0bf-9a9c0d708826@wolman.co.uk> <410144.69078.qm@web101716.mail.ssk.yahoo.co.jp> <128807.28836.qm@web101715.mail.ssk.yahoo.co.jp> <2d555385-8258-fd75-e4a3-a1e59bf86314@wolman.co.uk> <651873.78746.qm@web101702.mail.ssk.yahoo.co.jp> <2c5cd01a-a8d4-3ffa-4e9c-2aad170574c1@wolman.co.uk> <39222.11970.qm@web101719.mail.ssk.yahoo.co.jp> Cc: "freebsd-mips@freebsd.org" From: Mike Wolman Message-ID: <6f1b2d35-5d17-765a-6138-0ab85455fc09@wolman.co.uk> Date: Tue, 9 May 2017 14:01:23 +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: <39222.11970.qm@web101719.mail.ssk.yahoo.co.jp> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit 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: Tue, 09 May 2017 13:01:31 -0000 No joy Omega2 # fatload usb 0:1 0x80800000 kernel.MT7628_FDT.uImage * * Reading file "kernel.MT7628_FDT.uImage" * ** ** ** ** ** ** ** ** ** ** ****** ****** ****************************************************************************************************************************************************************************************************************** **** * FAT: 5654824 Bytes read Omega2 # bootm ## Booting image at 80100000 ... Bad Magic Number,CE6AE7C4 I am going to get a different usb memory stick and rebuild the kernel later on as i got an error when last writing to the usb memory key and its quite old now so just want to eliminate it from testing. On 09/05/2017 13:52, Mori Hiroki wrote: > Hi. > > This is my sample operation get image from network and boot. > > RT3052 # tftpboot 0x80800000 Planex_MZK-WNH_kernel.kbin.oldlzma.uboot > RT3052 # bootm > > > I don't use USB support U-Boot. But I think fatload command argument is > temporary memory address not kernel address. > > How about this. > > Omega2 # fatload usb 0:1 0x80800000 kernel.MT7628_FDT.uImage > Omega2 # bootm > > ----- Original Message ----- >> From: Mike Wolman >> To: Aleksandr Rybalko ; Mori Hiroki >> Cc: "freebsd-mips@freebsd.org" >> Date: 2017/5/9, Tue 20:48 >> Subject: Re: onion omega2+ >> >> >> >> >> Is it possible to exclude the compression of the kernel/image for > now eg: >> mkimage -A mips -C none -O linux -T kernel -a 0x80001000 -e > 0x80001100 -n "FreeBSD" -d kernel.MT7628_FDT > kernel.MT7628_FDT.uImage >> >> I have just tried the above but when booting I get a Bad Magic > Number. >> >> Omega2 # fatload usb 0:1 0x80001000 kernel.MT7628_FDT.uImage >> * >> * >> Reading file "kernel.MT7628_FDT.uImage" >> * >> ** >> ** >> ** >> ** >> ** >> ** >> ** >> ** >> ** >> ** >> ****** >> ****** >> ****************************************************************************************************************************************************************************************************************** >> **** >> * >> FAT: 5654824 Bytes read >> Omega2 # bootm 0x80001100 >> ## Booting image at 80001100 ... >> Bad Magic Number,1C994480 >> Omega2 # >> >> >> I have seen other examples starting a program directly with going to > the address but this didnt work either: >> Omega2 # go 0x80001100 >> ## Starting application at 0x80001100 ... >> >> omega freezes here. >> >> >> >> >> On 09/05/2017 10:12, Aleksandr Rybalko wrote: >> >> Fix things in order :) > Currently you have problem with LZMA, serial port later. >>> > So, find version of lzma used to build linux firmware, MIPS routers world use about 5 incompatible versions. One of them, you can find here: >>> http://project.zrouter.org/hg/zrouter/file/9ac53695a44d/tools/oldlzma >>> >>> >>> >>> >>> 2017-05-09 7:03 GMT+03:00 Mori Hiroki : >>> >>> Hi Mike >>>> Could you show u-boot printenv command result. >>>> >>>> Thanks >>>> >>>> >>>> ----- Original Message ----- >>>>> From: Mike Wolman >>>>> To: Mori Hiroki ; "freebsd-mips@freebsd.org" >>>>> Cc: >>>>> Date: 2017/5/9, Tue 10:30 >>>>> Subject: Re: onion omega2+ >>>>> >>>>> Hi Mori, >>>>> >>>>> When I compiled the world/kernel etc I used: >>>>> >>>>> X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT >>>>> ../freebsd-wifi-build/build/ bin/build ralink > buildkernel >>>>> I checked the serial stuff was the same as the > other configs in: >>>>> https://github.com/freebsd/ freebsd-wifi-build/ >>>>> and they looked the same. >>>>> >>>>> The OMEGA2.dtsi file has: >>>>> >>>>> chosen { >>>>> bootargs = "console=ttyS0,115200"; >>>>> }; >>>>> >>>>> >>>>> And mt7628an.dtsi has: serial0 = &uartlite; >>>>> >>>>> I dont think im getting as far as worrying about > the serial console at >>>>> the moment and need to get the kernel to uncompress > first. >>>>> Mike. >>>>> >>>>> >>>>> On 09/05/2017 02:20, Mori Hiroki wrote: >>>>>> Hi Mike >>>>>> >>>>>> In FreeBSD is use serial0 dts item to console. >>>>>> >>>>>> I think good to use this at start. >>>>>> >>>>>> freebsd/sys/gnu/dts/mips/ MT7628.dts >>>>>> >>>>>> ----- Original Message ----- >>>>>>> From: Mike Wolman >>>>>>> To: Mori Hiroki ; >>>>> "freebsd-mips@freebsd.org" >>>>>>> Cc: >>>>>>> Date: 2017/5/9, Tue 09:25 >>>>>>> Subject: Re: onion omega2+ >>>>>>> >>>>>>> Hi Mori, >>>>>>> >>>>>>> I grabbed the dts files from: >>>>>>> >>>>>>> https://github.com/WereCatf/ source/tree/image/target/ linux/ramips/dts >>>>>>> >>>>> https://github.com/WereCatf/ source/blob/image/target/ linux/ramips/dts/OMEGA2P.dts >>>>> https://github.com/WereCatf/ source/blob/image/target/ linux/ramips/dts/OMEGA2.dtsi >>>>>>> If this is of any use from the default > linux install on the flash: >>>>>>> root@Omega-12BF:/proc# cat /proc/mtd >>>>>>> dev: size erasesize name >>>>>>> mtd0: 00030000 00010000 "u-boot" >>>>>>> mtd1: 00010000 00010000 "u-boot-env" >>>>>>> mtd2: 00010000 00010000 "factory" >>>>>>> mtd3: 01fb0000 00010000 "firmware" >>>>>>> mtd4: 00148842 00010000 "kernel" >>>>>>> mtd5: 01e677be 00010000 "rootfs" >>>>>>> mtd6: 01950000 00010000 "rootfs_data" >>>>>>> >>>>>>> >>>>>>> btw after posting i spotted and error in > what i did with: >>>>>>> mkimage -A mips -O linux -T kernel -C lzma > \ >>>>>>> -a 0x80001000 -e 0x80001100 \ >>>>>>> -n "FreeBSD" -d > kernel.MT7628_FDT.lzma >>>>>>> kernel.MT7628_FDT.ulzma.uImage >>>>>>> >>>>>>> I have redone this using the correct > compressed kernel ie: >>>>>>> mkimage -A mips -O linux -T kernel -C lzma > \ >>>>>>> -a 0x80001000 -e 0x80001100 \ >>>>>>> -n "FreeBSD" -d > kernel.MT7628_FDT.ulzma >>>>>>> kernel.MT7628_FDT.ulzma.uImage >>>>>>> >>>>>>> >>>>>>> But this didnt work. >>>>>>> >>>>>>> >>>>>>> >>>>>>> On 09/05/2017 01:17, Mori Hiroki wrote: >>>>>>>> Hi. >>>>>>>> >>>>>>>> I think if U-Boot work memory make > broken then >>>>>>>> Uncompressing Kernel Image is NG. >>>>>>>> >>>>>>>> Some ARM U-Boot is use top address > in work memory. >>>>>>>> If this case your kernel start > address to move to >>>>>>>> after work memory. But I never see > in MIPS. >>>>>>>> And What is set FDT_DTS_FILE in > your kernel configuration ? >>>>>>>> ----- Original Message ----- >>>>>>>> >>>>>>>>> From: Mike Wolman >>>>>>>>> To: freebsd-mips@freebsd.org >>>>>>>>> Cc: >>>>>>>>> Date: 2017/5/9, Tue 07:48 >>>>>>>>> Subject: Re: onion omega2+ >>>>>>>>> >>>>>>>>> >>>>>>>>> More info in case anyone can > point me in the right direction. >>>>>>>>> I have found: >>>>>>>>> >>>>>>>>> https://forum.openwrt.org/ viewtopic.php?id=53865 >>>>>>>>> >>>>>>>>> I have tried changing how lzma > compresses the kernel by >>>>> adding -d20 to >>>>>>>>> the build scripts eg: >>>>>>>>> >>>>>>>>> /usr/local/bin/lzma e >>>>>>>>> >>>>> /home/mike/omega2/src/../root/ mipsel_ap/boot/kernel.MT7628_ FDT/kernel >>>>>>> \ >>>>>>>>> /home/mike/omega2/src/../ tftpboot/kernel.MT7628_FDT. lzma > -d20 >>>>>>>>> This did not work. >>>>>>>>> >>>>>>>>> >>>>>>>>> Looking at the onion omega conf > I see that it uses mkuzip and >>>>> not lzma >>>>>>>>> with the following settings: >>>>>>>>> >>>>>>>>> X_FSIMAGE_CMD="mkuzip" >>>>>>>>> X_FSIMAGE_ARGS="-L -d -s 65536 > -v" >>>>>>>>> X_FSIMAGE_SUFFIX=".ulzma" >>>>>>>>> >>>>>>>>> So tried the following: >>>>>>>>> >>>>>>>>> mkuzip -L -d -s 65536 -v -o > kernel.MT7628_FDT.ulzma >>>>> kernel.MT7628_FDT >>>>>>>>> mkimage -A mips -O linux -T > kernel -C lzma \ >>>>>>>>> -a 0x80001000 -e 0x80001100 > \ >>>>>>>>> -n "FreeBSD" -d > kernel.MT7628_FDT.lzma >>>>>>>>> kernel.MT7628_FDT.ulzma.uImage >>>>>>>>> >>>>>>>>> >>>>>>>>> But this did not work either. >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> On 08/05/2017 19:41, Aleksandr > Rybalko wrote: >>>>>>>>>> Hi Mike! >>>>>>>>>> >>>>>>>>>> I see you have no "OK" > after >>>>> "Uncompressing Kernel >>>>>>> Image >>>>>>>>> ...", so >>>>>>>>>> first point uboot > decompressor fail. >>>>>>>>>> Why fail? Because you have > wrong base address in image: >>>>>>>>>> Load Address: fffffff2 >>>>>>>>>> Entry Point: fffffff2 >>>>>>>>>> MIPS32 machines have RAM > mapped to 0x80000000 address, >>>>> so adding >>>>>>> its >>>>>>>>>> size, you will get max > address (if 16MB, it will be >>>>> 0x81000000), >>>>>>> but >>>>>>>>>> you uboot image was > created with 0xfffffff2. >>>>>>>>>> Even more, unpacked kernel > expects it will be called at >>>>>>> 0x80001100. so >>>>>>>>>> if you have ELF kernel > (file with ELF header, like >>>>> every >>>>>>> executable) >>>>>>>>>> that file have to be > loaded at (0x80001100 - >>>>> ELF_HEADER_SIZE). >>>>>>>>>> In most cases it will be > 0x80001100 - 0x100 = >>>>> 0x80001000. But >>>>>>> sometime >>>>>>>>>> (I did not found why) it > can be 0x20, you can find it >>>>> by looking >>>>>>> at >>>>>>>>>> .text section in readelf > -S. >>>>>>>>>> So if you have kernel with > entry point 0x80001100 and >>>>> .text >>>>>>> segment >>>>>>>>>> offset 0x100, you have to > create uboot image with load >>>>> address >>>>>>>>>> 0x80001000 and entry point > 0x80001100. >>>>>>>>>> If that step successful > you will get: >>>>>>>>>> /Uncompressing Kernel > Image/ ... OK >>>>>>>>>> Starting kernel ... >>>>>>>>>> >>>>>>>>>> Last line mean, uboot did > jump into kernel code. >>>>>>>>>> Good luck. >>>>>>>>>> >>>>>>>>>> 2017-05-07 18:20 GMT+03:00 > Mike Wolman >>>>> >>>>>>>>> >: >>>>>>>>>> >>>>>>>>>> Hi, >>>>>>>>>> >>>>>>>>>> I am trying to get > FreeBSD working on this board - >>>>> I think I >>>>>>> am >>>>>>>>>> almost there in > getting it working but need some >>>>> help please. >>>>>>>>>> I have followed > instructions from the >>>>> freebsd-wifi-build and >>>>>>>>>> *think* I have got > everything correct - I am trying >>>>> to do >>>>>>> this on >>>>>>>>>> a CURRENT setup: >>>>>>>>>> >>>>>>>>>> FreeBSD > f64-current.mw.office 12.0-CURRENT FreeBSD >>>>>>> 12.0-CURRENT #0 >>>>>>>>>> r317887: Sun May 7 > 03:20:34 UTC 2017 >>>>>>>>>> >>>>>>> mike@f64-current.mw.office:/ usr/obj/usr/src/sys/GENERIC- NODEBUG amd64 >>>>>>>>>> $ cat > ~/.freebsd-wifi-build- settings.cfg >>>>>>>>>> X_SKIP_MORE_STUFF=YES >>>>>>>>>> > X_EXTRA_SRC_CONF=~/omega2/src. conf >>>>>>>>>> $ cat > ~/omega2/src.conf >>>>>>>>>> WITHOUT_CLANG=YES >>>>>>>>>> WITHOUT_CLANG_FULL=YES >>>>>>>>>> >>>>>>>>>> get dts files from > thread >>>>>>>>>> >>>>> http://community.onion.io/ topic/1099/openwrt-on-the- omega-2/8 >>>>>>>>>> >>>>>>> >>>>>>>>>> cd > ~/omega2/src/sys/gnu/dts/mips >>>>>>>>>> fetch >>>>>>>>>> >>>>> https://raw.githubusercontent. com/WereCatf/source/image/ target/linux/ramips/dts/ OMEGA2.dtsi >>>>>>>>>> >>>>> >>>>>>>>>> fetch >>>>>>>>>> >>>>> https://raw.githubusercontent. com/WereCatf/source/image/ target/linux/ramips/dts/ OMEGA2.dts >>>>>>>>>> >>>>> >>>>>>>>>> fetch >>>>>>>>>> >>>>> https://raw.githubusercontent. com/WereCatf/source/image/ target/linux/ramips/dts/ OMEGA2P.dts >>>>>>>>>> >>>>> >>>>>>>>>> X_DTS_FILE=OMEGA2P.dts > KERNCONF=MT7628_FDT >>>>>>>>>> > ../freebsd-wifi-build/build/ bin/build ralink >>>>> buildworld >>>>>>>>>> X_DTS_FILE=OMEGA2P.dts > KERNCONF=MT7628_FDT >>>>>>>>>> > ../freebsd-wifi-build/build/ bin/build ralink >>>>> buildkernel >>>>>>>>>> X_DTS_FILE=OMEGA2P.dts > KERNCONF=MT7628_FDT >>>>>>>>>> > ../freebsd-wifi-build/build/ bin/build ralink >>>>> installworld >>>>>>>>>> X_DTS_FILE=OMEGA2P.dts > KERNCONF=MT7628_FDT >>>>>>>>>> > ../freebsd-wifi-build/build/ bin/build ralink >>>>> installkernel >>>>>>>>>> X_DTS_FILE=OMEGA2P.dts > KERNCONF=MT7628_FDT >>>>>>>>>> > ../freebsd-wifi-build/build/ bin/build ralink >>>>> distribution >>>>>>>>>> >>>>>>>>>> X_DTS_FILE=OMEGA2P.dts > KERNCONF=MT7628_FDT >>>>>>>>>> > ../freebsd-wifi-build/build/ bin/build ralink >>>>> mfsroot >>>>>>>>>> X_DTS_FILE=OMEGA2P.dts > KERNCONF=MT7628_FDT >>>>>>>>>> > ../freebsd-wifi-build/build/ bin/build ralink >>>>> fsimage >>>>>>>>>> X_DTS_FILE=OMEGA2P.dts > KERNCONF=MT7628_FDT >>>>>>>>>> > ../freebsd-wifi-build/build/ bin/build ralink uboot >>>>>>>>>> >>>>>>>>>> Create flash: >>>>>>>>>> >>>>>>>>>> > X_FLASH=kernel.MT7628_FDT. lzma.flash >>>>>>>>>> dd if=/dev/zero bs=$(( > 0x200000 )) count=1 >>>>> of=${X_FLASH} >>>>>>>>>> dd > if=kernel.MT7628_FDT.lzma. uImage of=${X_FLASH} >>>>>>> conv=notrunc >>>>>>>>>> dd if= > mfsroot-ralink.img.lzma >> ${X_FLASH} >>>>>>>>>> >>>>>>>>>> $ readelf -h > kernel.MT7628_FDT | grep Entry >>>>>>>>>> Entry point > address: 0x80001100 >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> Now on the omega over > serial - I didnt get the >>>>> network >>>>>>> expansion >>>>>>>>>> doc thing so am doing > stuff with usb rather than >>>>> tftp >>>>>>>>>> I am not 100% sure > about the 0x80001100 and the >>>>> fatload and >>>>>>> have >>>>>>>>>> tried this >>>>>>>>>> >>>>>>>>>> Omega2 # fatload usb > 0:1 0x80001100 >>>>>>> /kernel.MT7628_FDT.lzma.flash >>>>>>>>>> * >>>>>>>>>> * >>>>>>>>>> Reading file >>>>> "/kernel.MT7628_FDT.lzma. flash" >>>>>>>>>> * >>>>>>>>>> ** >>>>>>>>>> ** >>>>>>>>>> ** >>>>>>>>>> ****** >>>>>>>>>> >>>>> ****************************** ****************************** ****************************** ****************************** ********************* >>>>>>>>>> ****** >>>>>>>>>> * >>>>>>>>>> FAT: 2108463 Bytes > read >>>>>>>>>> Omega2 # bootm > 0x80001100 >>>>>>>>>> ## Booting image at > 80001100 ... >>>>>>>>>> Image Name: > FreeBSD >>>>>>>>>> Image Type: MIPS > Linux Kernel Image (lzma >>>>> compressed) >>>>>>>>>> Data Size: > 1365122 Bytes = 1.3 MB >>>>>>>>>> Load Address: > fffffff2 >>>>>>>>>> Entry Point: > fffffff2 >>>>>>>>>> Verifying Checksum > ... OK >>>>>>>>>> Uncompressing > Kernel Image ... >>>>>>>>>> >>>>>>>>>> At this point nothing > happens and console hangs - >>>>> note in >>>>>>>>>> OMEGA2.dtsithe console > is set to ttyS0: >>>>>>>>>> bootargs = > "console=ttyS0,115200"; >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> I have also tried with > just kernel.MT7628_FDT and >>>>>>>>>> kernel.MT7628_FDT.lzma > but both fail: >>>>>>>>>> Omega2 # fatload usb > 0:1 0x80001100 >>>>>>> /kernel.MT7628_FDT.lzma.uImage >>>>>>>>>> * >>>>>>>>>> * >>>>>>>>>> Reading file >>>>> "/kernel.MT7628_FDT.lzma. uImage" >>>>>>>>>> * >>>>>>>>>> ** >>>>>>>>>> ** >>>>>>>>>> ****** >>>>>>>>>> >>>>> ****************************** ****************************** ****************************** ****************************** ****** >>>>>>>>>> ********** >>>>>>>>>> * >>>>>>>>>> FAT: 1365186 Bytes > read >>>>>>>>>> Omega2 # bootm > 0x80001100 >>>>>>>>>> ## Booting image at > 80001100 ... >>>>>>>>>> Image Name: > FreeBSD >>>>>>>>>> Image Type: MIPS > Linux Kernel Image (lzma >>>>> compressed) >>>>>>>>>> Data Size: > 1365122 Bytes = 1.3 MB >>>>>>>>>> Load Address: > fffffff2 >>>>>>>>>> Entry Point: > fffffff2 >>>>>>>>>> Verifying Checksum > ... OK >>>>>>>>>> Uncompressing > Kernel Image ... >>>>>>>>>> >>>>>>>>>> A few comments on the > hardware for anyone who wants >>>>> to get >>>>>>> one: >>>>>>>>>> Get the expansion dock > with serial port access - >>>>> the power >>>>>>> dock >>>>>>>>>> does not provide > serial access - i think it is >>>>> possible to >>>>>>> use an >>>>>>>>>> ftdi ttl serial > chip/cable but have not tried. >>>>>>>>>> Stupidly I forgot this > only has wifi access so you >>>>> are not >>>>>>> able to >>>>>>>>>> tftp boot this without > getting the ethernet network >>>>> expansion >>>>>>> but >>>>>>>>>> loading stuff up from > a usb memory stick is seem >>>>> fine from >>>>>>> u-boot. >>>>>>>>>> I do not think that it > is possible to boot from the >>>>> SD card >>>>>>> on the >>>>>>>>>> Omega2+ - which is a > shame. >>>>>>>>>> Thanks for reading, >>>>>>>>>> >>>>>>>>>> Mike. >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> > ______________________________ _________________ >>>>>>>>>> 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 >>>>>> > >>>>>>>>> ______________________________ _________________ >>>>>>>>> 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 >>> >>> >> >> From owner-freebsd-mips@freebsd.org Tue May 9 13:05:00 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 D2B65D65543 for ; Tue, 9 May 2017 13:05:00 +0000 (UTC) (envelope-from ray@ddteam.net) Received: from mail-yb0-x230.google.com (mail-yb0-x230.google.com [IPv6:2607:f8b0:4002:c09::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 32CCADDF for ; Tue, 9 May 2017 13:05:00 +0000 (UTC) (envelope-from ray@ddteam.net) Received: by mail-yb0-x230.google.com with SMTP id s22so19071715ybe.3 for ; Tue, 09 May 2017 06:05:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ddteam-net.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=ErQGdb9nHCNUj5d1h2KGIqWmjPmDAguy8FuWMwjrEZk=; b=audoEh2emWv50A+RZsFdkpUuK3ASpYop96HFZxY2c9su7zOz064rQZcAxijJDG/rQa LlXXhnZevbE2zhYQGEOKQUpVgV7qz62jVpKtIrgLckEKwT7wSS5U1KkBICNpaR+BDZRU YlVkxyPSXUiW5wu08yRqkFXkg9qQfU+x+1ZuAfpkTpDjrI2oyx9Rf/PDjTVRE0iKx/AU H72SJgBz+NowHMBuaYnf62aQe1AT/KikgRC7O92b/4taDQfs0hVzOuP3MG9AMHThNf0y vZhRuvl9v4gKPxMPylfeuuMMhm24stsiUQzu6s6CwOwB8o5UEWjawbJWg/92UI/tyOg2 hN6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=ErQGdb9nHCNUj5d1h2KGIqWmjPmDAguy8FuWMwjrEZk=; b=lovCDu+y0mOGODtz501g9xykJMYjtiVDpNc4hIT9EPfgT3SU3uyofpBo5YzO1qe/KI ii/OlS0Sa15xYEjgng2SdnFF9Ju7/Dua7qKXN8n6A4U3zfsd4w8jpeILncj8kHMvt6Ux D7hyJeAXqMdu0doDXwYj6WhVYRxJ+hvzT8ZC0JLwS4WvhtIKMcVshSy2NDGWJqwQwUhe WAQws+A82iCOy6Q+BVk+KrAnPk+m+uVntMA/bnNrg3y5dgPZ1HDNRrD4GEm5uJvqG54Y hoNEG3viriJ+0d59OP65OZWcd7loiKRWzWY3vjSoXWLkIiUchmYCYobasMXYZAyH9iDQ 37OQ== X-Gm-Message-State: AODbwcDdzIp/12JEfx+CuD9/YP2jNUeaC3IuvjNgA0vL9kQEWgPWwLS6 DA4hg5swlGuy8WMrp7HjsQI1eSmvUQ== X-Received: by 10.37.172.219 with SMTP id x27mr14771665ybd.122.1494335098978; Tue, 09 May 2017 06:04:58 -0700 (PDT) MIME-Version: 1.0 Received: by 10.37.161.194 with HTTP; Tue, 9 May 2017 06:04:58 -0700 (PDT) In-Reply-To: <6f1b2d35-5d17-765a-6138-0ab85455fc09@wolman.co.uk> References: <694efc3a-e183-35a1-a0bf-9a9c0d708826@wolman.co.uk> <410144.69078.qm@web101716.mail.ssk.yahoo.co.jp> <128807.28836.qm@web101715.mail.ssk.yahoo.co.jp> <2d555385-8258-fd75-e4a3-a1e59bf86314@wolman.co.uk> <651873.78746.qm@web101702.mail.ssk.yahoo.co.jp> <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> From: Aleksandr Rybalko Date: Tue, 9 May 2017 16:04:58 +0300 Message-ID: Subject: Re: onion omega2+ To: Mike Wolman Cc: Mori Hiroki , "freebsd-mips@freebsd.org" Content-Type: text/plain; charset=UTF-8 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: Tue, 09 May 2017 13:05:01 -0000 bootm expect uboot image, not ELF kernel to try kenel use "go" (if it compiled in uboot) 2017-05-09 16:01 GMT+03:00 Mike Wolman : > > No joy > > Omega2 # fatload usb 0:1 0x80800000 kernel.MT7628_FDT.uImage > * > * > Reading file "kernel.MT7628_FDT.uImage" > * > ** > ** > ** > ** > ** > ** > ** > ** > ** > ** > ****** > ****** > ************************************************************ > ************************************************************ > ************************************************************ > ****************************** > **** > * > FAT: 5654824 Bytes read > Omega2 # bootm > ## Booting image at 80100000 ... > Bad Magic Number,CE6AE7C4 > > I am going to get a different usb memory stick and rebuild the kernel > later on as i got an error when last writing to the usb memory key and its > quite old now so just want to eliminate it from testing. > > > On 09/05/2017 13:52, Mori Hiroki wrote: > >> Hi. >> >> This is my sample operation get image from network and boot. >> >> RT3052 # tftpboot 0x80800000 Planex_MZK-WNH_kernel.kbin.oldlzma.uboot >> RT3052 # bootm >> >> >> I don't use USB support U-Boot. But I think fatload command argument is >> temporary memory address not kernel address. >> >> How about this. >> >> Omega2 # fatload usb 0:1 0x80800000 kernel.MT7628_FDT.uImage >> Omega2 # bootm >> >> ----- Original Message ----- >> >>> From: Mike Wolman >>> To: Aleksandr Rybalko ; Mori Hiroki < >>> yamori813@yahoo.co.jp> >>> Cc: "freebsd-mips@freebsd.org" >>> Date: 2017/5/9, Tue 20:48 >>> Subject: Re: onion omega2+ >>> >>> >>> >>> >>> Is it possible to exclude the compression of the kernel/image for >>> >> now eg: >> >>> mkimage -A mips -C none -O linux -T kernel -a 0x80001000 -e >>> >> 0x80001100 -n "FreeBSD" -d kernel.MT7628_FDT >> kernel.MT7628_FDT.uImage >> >>> >>> I have just tried the above but when booting I get a Bad Magic >>> >> Number. >> >>> >>> Omega2 # fatload usb 0:1 0x80001000 kernel.MT7628_FDT.uImage >>> * >>> * >>> Reading file "kernel.MT7628_FDT.uImage" >>> * >>> ** >>> ** >>> ** >>> ** >>> ** >>> ** >>> ** >>> ** >>> ** >>> ** >>> ****** >>> ****** >>> ************************************************************ >>> ************************************************************ >>> ************************************************************ >>> ****************************** >>> **** >>> * >>> FAT: 5654824 Bytes read >>> Omega2 # bootm 0x80001100 >>> ## Booting image at 80001100 ... >>> Bad Magic Number,1C994480 >>> Omega2 # >>> >>> >>> I have seen other examples starting a program directly with going to >>> >> the address but this didnt work either: >> >>> Omega2 # go 0x80001100 >>> ## Starting application at 0x80001100 ... >>> >>> omega freezes here. >>> >>> >>> >>> >>> On 09/05/2017 10:12, Aleksandr Rybalko wrote: >>> >>> Fix things in order :) >>> >> Currently you have problem with LZMA, serial port later. >> >>> >>>> So, find version of lzma used to build linux firmware, MIPS routers >> world use about 5 incompatible versions. One of them, you can find here: >> >>> http://project.zrouter.org/hg/zrouter/file/9ac53695a44d/tools/oldlzma >>>> >>>> >>>> >>>> >>>> 2017-05-09 7:03 GMT+03:00 Mori Hiroki : >>>> >>>> Hi Mike >>>> >>>>> Could you show u-boot printenv command result. >>>>> >>>>> Thanks >>>>> >>>>> >>>>> ----- Original Message ----- >>>>> >>>>>> From: Mike Wolman >>>>>> To: Mori Hiroki ; "freebsd-mips@freebsd.org" < >>>>>> freebsd-mips@freebsd.org> >>>>>> Cc: >>>>>> Date: 2017/5/9, Tue 10:30 >>>>>> Subject: Re: onion omega2+ >>>>>> >>>>>> Hi Mori, >>>>>> >>>>>> When I compiled the world/kernel etc I used: >>>>>> >>>>>> X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT >>>>>> ../freebsd-wifi-build/build/ bin/build ralink >>>>>> >>>>> buildkernel >> >>> I checked the serial stuff was the same as the >>>>>> >>>>> other configs in: >> >>> https://github.com/freebsd/ freebsd-wifi-build/ >>>>>> and they looked the same. >>>>>> >>>>>> The OMEGA2.dtsi file has: >>>>>> >>>>>> chosen { >>>>>> bootargs = "console=ttyS0,115200"; >>>>>> }; >>>>>> >>>>>> >>>>>> And mt7628an.dtsi has: serial0 = &uartlite; >>>>>> >>>>>> I dont think im getting as far as worrying about >>>>>> >>>>> the serial console at >> >>> the moment and need to get the kernel to uncompress >>>>>> >>>>> first. >> >>> Mike. >>>>>> >>>>>> >>>>>> On 09/05/2017 02:20, Mori Hiroki wrote: >>>>>> >>>>>>> Hi Mike >>>>>>> >>>>>>> In FreeBSD is use serial0 dts item to console. >>>>>>> >>>>>>> I think good to use this at start. >>>>>>> >>>>>>> freebsd/sys/gnu/dts/mips/ MT7628.dts >>>>>>> >>>>>>> ----- Original Message ----- >>>>>>> >>>>>>>> From: Mike Wolman >>>>>>>> To: Mori Hiroki ; >>>>>>>> >>>>>>> "freebsd-mips@freebsd.org" >>>>>> >>>>>>> Cc: >>>>>>>> Date: 2017/5/9, Tue 09:25 >>>>>>>> Subject: Re: onion omega2+ >>>>>>>> >>>>>>>> Hi Mori, >>>>>>>> >>>>>>>> I grabbed the dts files from: >>>>>>>> >>>>>>>> https://github.com/WereCatf/ source/tree/image/target/ >>>>>>>> linux/ramips/dts >>>>>>>> >>>>>>>> https://github.com/WereCatf/ source/blob/image/target/ >>>>>> linux/ramips/dts/OMEGA2P.dts >>>>>> https://github.com/WereCatf/ source/blob/image/target/ >>>>>> linux/ramips/dts/OMEGA2.dtsi >>>>>> >>>>>>> If this is of any use from the default >>>>>>>> >>>>>>> linux install on the flash: >> >>> root@Omega-12BF:/proc# cat /proc/mtd >>>>>>>> dev: size erasesize name >>>>>>>> mtd0: 00030000 00010000 "u-boot" >>>>>>>> mtd1: 00010000 00010000 "u-boot-env" >>>>>>>> mtd2: 00010000 00010000 "factory" >>>>>>>> mtd3: 01fb0000 00010000 "firmware" >>>>>>>> mtd4: 00148842 00010000 "kernel" >>>>>>>> mtd5: 01e677be 00010000 "rootfs" >>>>>>>> mtd6: 01950000 00010000 "rootfs_data" >>>>>>>> >>>>>>>> >>>>>>>> btw after posting i spotted and error in >>>>>>>> >>>>>>> what i did with: >> >>> mkimage -A mips -O linux -T kernel -C lzma >>>>>>>> >>>>>>> \ >> >>> -a 0x80001000 -e 0x80001100 \ >>>>>>>> -n "FreeBSD" -d >>>>>>>> >>>>>>> kernel.MT7628_FDT.lzma >> >>> kernel.MT7628_FDT.ulzma.uImage >>>>>>>> >>>>>>>> I have redone this using the correct >>>>>>>> >>>>>>> compressed kernel ie: >> >>> mkimage -A mips -O linux -T kernel -C lzma >>>>>>>> >>>>>>> \ >> >>> -a 0x80001000 -e 0x80001100 \ >>>>>>>> -n "FreeBSD" -d >>>>>>>> >>>>>>> kernel.MT7628_FDT.ulzma >> >>> kernel.MT7628_FDT.ulzma.uImage >>>>>>>> >>>>>>>> >>>>>>>> But this didnt work. >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> On 09/05/2017 01:17, Mori Hiroki wrote: >>>>>>>> >>>>>>>>> Hi. >>>>>>>>> >>>>>>>>> I think if U-Boot work memory make >>>>>>>>> >>>>>>>> broken then >> >>> Uncompressing Kernel Image is NG. >>>>>>>>> >>>>>>>>> Some ARM U-Boot is use top address >>>>>>>>> >>>>>>>> in work memory. >> >>> If this case your kernel start >>>>>>>>> >>>>>>>> address to move to >> >>> after work memory. But I never see >>>>>>>>> >>>>>>>> in MIPS. >> >>> And What is set FDT_DTS_FILE in >>>>>>>>> >>>>>>>> your kernel configuration ? >> >>> ----- Original Message ----- >>>>>>>>> >>>>>>>>> From: Mike Wolman >>>>>>>>>> To: freebsd-mips@freebsd.org >>>>>>>>>> Cc: >>>>>>>>>> Date: 2017/5/9, Tue 07:48 >>>>>>>>>> Subject: Re: onion omega2+ >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> More info in case anyone can >>>>>>>>>> >>>>>>>>> point me in the right direction. >> >>> I have found: >>>>>>>>>> >>>>>>>>>> https://forum.openwrt.org/ viewtopic.php?id=53865 >>>>>>>>>> >>>>>>>>>> I have tried changing how lzma >>>>>>>>>> >>>>>>>>> compresses the kernel by >> >>> adding -d20 to >>>>>> >>>>>>> the build scripts eg: >>>>>>>>>> >>>>>>>>>> /usr/local/bin/lzma e >>>>>>>>>> >>>>>>>>>> >>>>>>>>> /home/mike/omega2/src/../root/ mipsel_ap/boot/kernel.MT7628_ >>>>>> FDT/kernel >>>>>> >>>>>>> \ >>>>>>>> >>>>>>>>> /home/mike/omega2/src/../ tftpboot/kernel.MT7628_FDT. lzma >>>>>>>>>> >>>>>>>>> -d20 >> >>> This did not work. >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> Looking at the onion omega conf >>>>>>>>>> >>>>>>>>> I see that it uses mkuzip and >> >>> not lzma >>>>>> >>>>>>> with the following settings: >>>>>>>>>> >>>>>>>>>> X_FSIMAGE_CMD="mkuzip" >>>>>>>>>> X_FSIMAGE_ARGS="-L -d -s 65536 >>>>>>>>>> >>>>>>>>> -v" >> >>> X_FSIMAGE_SUFFIX=".ulzma" >>>>>>>>>> >>>>>>>>>> So tried the following: >>>>>>>>>> >>>>>>>>>> mkuzip -L -d -s 65536 -v -o >>>>>>>>>> >>>>>>>>> kernel.MT7628_FDT.ulzma >> >>> kernel.MT7628_FDT >>>>>> >>>>>>> mkimage -A mips -O linux -T >>>>>>>>>> >>>>>>>>> kernel -C lzma \ >> >>> -a 0x80001000 -e 0x80001100 >>>>>>>>>> >>>>>>>>> \ >> >>> -n "FreeBSD" -d >>>>>>>>>> >>>>>>>>> kernel.MT7628_FDT.lzma >> >>> kernel.MT7628_FDT.ulzma.uImage >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> But this did not work either. >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> On 08/05/2017 19:41, Aleksandr >>>>>>>>>> >>>>>>>>> Rybalko wrote: >> >>> Hi Mike! >>>>>>>>>>> >>>>>>>>>>> I see you have no "OK" >>>>>>>>>>> >>>>>>>>>> after >> >>> "Uncompressing Kernel >>>>>> >>>>>>> Image >>>>>>>> >>>>>>>>> ...", so >>>>>>>>>> >>>>>>>>>>> first point uboot >>>>>>>>>>> >>>>>>>>>> decompressor fail. >> >>> Why fail? Because you have >>>>>>>>>>> >>>>>>>>>> wrong base address in image: >> >>> Load Address: fffffff2 >>>>>>>>>>> Entry Point: fffffff2 >>>>>>>>>>> MIPS32 machines have RAM >>>>>>>>>>> >>>>>>>>>> mapped to 0x80000000 address, >> >>> so adding >>>>>> >>>>>>> its >>>>>>>> >>>>>>>>> size, you will get max >>>>>>>>>>> >>>>>>>>>> address (if 16MB, it will be >> >>> 0x81000000), >>>>>> >>>>>>> but >>>>>>>> >>>>>>>>> you uboot image was >>>>>>>>>>> >>>>>>>>>> created with 0xfffffff2. >> >>> Even more, unpacked kernel >>>>>>>>>>> >>>>>>>>>> expects it will be called at >> >>> 0x80001100. so >>>>>>>> >>>>>>>>> if you have ELF kernel >>>>>>>>>>> >>>>>>>>>> (file with ELF header, like >> >>> every >>>>>> >>>>>>> executable) >>>>>>>> >>>>>>>>> that file have to be >>>>>>>>>>> >>>>>>>>>> loaded at (0x80001100 - >> >>> ELF_HEADER_SIZE). >>>>>> >>>>>>> In most cases it will be >>>>>>>>>>> >>>>>>>>>> 0x80001100 - 0x100 = >> >>> 0x80001000. But >>>>>> >>>>>>> sometime >>>>>>>> >>>>>>>>> (I did not found why) it >>>>>>>>>>> >>>>>>>>>> can be 0x20, you can find it >> >>> by looking >>>>>> >>>>>>> at >>>>>>>> >>>>>>>>> .text section in readelf >>>>>>>>>>> >>>>>>>>>> -S. >> >>> So if you have kernel with >>>>>>>>>>> >>>>>>>>>> entry point 0x80001100 and >> >>> .text >>>>>> >>>>>>> segment >>>>>>>> >>>>>>>>> offset 0x100, you have to >>>>>>>>>>> >>>>>>>>>> create uboot image with load >> >>> address >>>>>> >>>>>>> 0x80001000 and entry point >>>>>>>>>>> >>>>>>>>>> 0x80001100. >> >>> If that step successful >>>>>>>>>>> >>>>>>>>>> you will get: >> >>> /Uncompressing Kernel >>>>>>>>>>> >>>>>>>>>> Image/ ... OK >> >>> Starting kernel ... >>>>>>>>>>> >>>>>>>>>>> Last line mean, uboot did >>>>>>>>>>> >>>>>>>>>> jump into kernel code. >> >>> Good luck. >>>>>>>>>>> >>>>>>>>>>> 2017-05-07 18:20 GMT+03:00 >>>>>>>>>>> >>>>>>>>>> Mike Wolman >> >>> >>>>> >>>>>>> >: >>>>>>>>>>> >>>>>>>>>>> Hi, >>>>>>>>>>> >>>>>>>>>>> I am trying to get >>>>>>>>>>> >>>>>>>>>> FreeBSD working on this board - >> >>> I think I >>>>>> >>>>>>> am >>>>>>>> >>>>>>>>> almost there in >>>>>>>>>>> >>>>>>>>>> getting it working but need some >> >>> help please. >>>>>> >>>>>>> I have followed >>>>>>>>>>> >>>>>>>>>> instructions from the >> >>> freebsd-wifi-build and >>>>>> >>>>>>> *think* I have got >>>>>>>>>>> >>>>>>>>>> everything correct - I am trying >> >>> to do >>>>>> >>>>>>> this on >>>>>>>> >>>>>>>>> a CURRENT setup: >>>>>>>>>>> >>>>>>>>>>> FreeBSD >>>>>>>>>>> >>>>>>>>>> f64-current.mw.office 12.0-CURRENT FreeBSD >> >>> 12.0-CURRENT #0 >>>>>>>> >>>>>>>>> r317887: Sun May 7 >>>>>>>>>>> >>>>>>>>>> 03:20:34 UTC 2017 >> >>> >>>>>>>>>>> >>>>>>>>>> mike@f64-current.mw.office:/ usr/obj/usr/src/sys/GENERIC- >>>>>>>> NODEBUG amd64 >>>>>>>> >>>>>>>>> $ cat >>>>>>>>>>> >>>>>>>>>> ~/.freebsd-wifi-build- settings.cfg >> >>> X_SKIP_MORE_STUFF=YES >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>> X_EXTRA_SRC_CONF=~/omega2/src. conf >> >>> $ cat >>>>>>>>>>> >>>>>>>>>> ~/omega2/src.conf >> >>> WITHOUT_CLANG=YES >>>>>>>>>>> WITHOUT_CLANG_FULL=YES >>>>>>>>>>> >>>>>>>>>>> get dts files from >>>>>>>>>>> >>>>>>>>>> thread >> >>> >>>>>>>>>>> >>>>>>>>>> http://community.onion.io/ topic/1099/openwrt-on-the- omega-2/8 >>>>>> >>>>>>> >>>>>>>>>>> >>>>>>>>>> >>>>>>> omega-2/8> >>>>>>>> >>>>>>>>> cd >>>>>>>>>>> >>>>>>>>>> ~/omega2/src/sys/gnu/dts/mips >> >>> fetch >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>> https://raw.githubusercontent. com/WereCatf/source/image/ >>>>>> target/linux/ramips/dts/ OMEGA2.dtsi >>>>>> >>>>>>> >>>>>>>>>>> >>>>>>>>>> >>>>> WereCatf/source/image/target/ linux/ramips/dts/OMEGA2.dtsi> >>>>>> >>>>>>> fetch >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>> https://raw.githubusercontent. com/WereCatf/source/image/ >>>>>> target/linux/ramips/dts/ OMEGA2.dts >>>>>> >>>>>>> >>>>>>>>>>> >>>>>>>>>> >>>>> WereCatf/source/image/target/ linux/ramips/dts/OMEGA2.dts> >>>>>> >>>>>>> fetch >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>> https://raw.githubusercontent. com/WereCatf/source/image/ >>>>>> target/linux/ramips/dts/ OMEGA2P.dts >>>>>> >>>>>>> >>>>>>>>>>> >>>>>>>>>> >>>>> WereCatf/source/image/target/ linux/ramips/dts/OMEGA2P.dts> >>>>>> >>>>>>> X_DTS_FILE=OMEGA2P.dts >>>>>>>>>>> >>>>>>>>>> KERNCONF=MT7628_FDT >> >>> >>>>>>>>>>> >>>>>>>>>> ../freebsd-wifi-build/build/ bin/build ralink >> >>> buildworld >>>>>> >>>>>>> X_DTS_FILE=OMEGA2P.dts >>>>>>>>>>> >>>>>>>>>> KERNCONF=MT7628_FDT >> >>> >>>>>>>>>>> >>>>>>>>>> ../freebsd-wifi-build/build/ bin/build ralink >> >>> buildkernel >>>>>> >>>>>>> X_DTS_FILE=OMEGA2P.dts >>>>>>>>>>> >>>>>>>>>> KERNCONF=MT7628_FDT >> >>> >>>>>>>>>>> >>>>>>>>>> ../freebsd-wifi-build/build/ bin/build ralink >> >>> installworld >>>>>> >>>>>>> X_DTS_FILE=OMEGA2P.dts >>>>>>>>>>> >>>>>>>>>> KERNCONF=MT7628_FDT >> >>> >>>>>>>>>>> >>>>>>>>>> ../freebsd-wifi-build/build/ bin/build ralink >> >>> installkernel >>>>>> >>>>>>> X_DTS_FILE=OMEGA2P.dts >>>>>>>>>>> >>>>>>>>>> KERNCONF=MT7628_FDT >> >>> >>>>>>>>>>> >>>>>>>>>> ../freebsd-wifi-build/build/ bin/build ralink >> >>> distribution >>>>>> >>>>>>> >>>>>>>>>>> X_DTS_FILE=OMEGA2P.dts >>>>>>>>>>> >>>>>>>>>> KERNCONF=MT7628_FDT >> >>> >>>>>>>>>>> >>>>>>>>>> ../freebsd-wifi-build/build/ bin/build ralink >> >>> mfsroot >>>>>> >>>>>>> X_DTS_FILE=OMEGA2P.dts >>>>>>>>>>> >>>>>>>>>> KERNCONF=MT7628_FDT >> >>> >>>>>>>>>>> >>>>>>>>>> ../freebsd-wifi-build/build/ bin/build ralink >> >>> fsimage >>>>>> >>>>>>> X_DTS_FILE=OMEGA2P.dts >>>>>>>>>>> >>>>>>>>>> KERNCONF=MT7628_FDT >> >>> >>>>>>>>>>> >>>>>>>>>> ../freebsd-wifi-build/build/ bin/build ralink >> uboot >> >>> >>>>>>>>>>> Create flash: >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>> X_FLASH=kernel.MT7628_FDT. lzma.flash >> >>> dd if=/dev/zero bs=$(( >>>>>>>>>>> >>>>>>>>>> 0x200000 )) count=1 >> >>> of=${X_FLASH} >>>>>> >>>>>>> dd >>>>>>>>>>> >>>>>>>>>> if=kernel.MT7628_FDT.lzma. uImage of=${X_FLASH} > > -- WBW ------- Rybalko Aleksandr From owner-freebsd-mips@freebsd.org Tue May 9 13:21:08 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 39F1AD6582F for ; Tue, 9 May 2017 13:21:08 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from nh503-vm7.bullet.mail.kks.yahoo.co.jp (nh503-vm7.bullet.mail.kks.yahoo.co.jp [183.79.56.193]) by mx1.freebsd.org (Postfix) with SMTP id 839251970 for ; Tue, 9 May 2017 13:21:06 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from [183.79.100.138] by nh503.bullet.mail.kks.yahoo.co.jp with NNFMP; 09 May 2017 13:20:59 -0000 Received: from [183.79.101.121] by t501.bullet.mail.kks.yahoo.co.jp with NNFMP; 09 May 2017 13:20:59 -0000 Received: from [127.0.0.1] by omp508.mail.kks.yahoo.co.jp with NNFMP; 09 May 2017 13:20:59 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 770676.41173.bm@omp508.mail.kks.yahoo.co.jp Received: (qmail 50948 invoked by uid 60001); 9 May 2017 13:20:59 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.jp; s=yj20110701; t=1494336059; bh=tOVjkoNkePvJx91VftYJEx+vMSaswfQfGw76b7EDOWI=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:X-YMail-JAS:References:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=iBTEi6JIByTdZEawh7CqZMh/UlJcVzPYHpPV+zJm132nAqwu1A+f9oBXXIh10yqLLRzKOy9GQ7IDEfRbhhFY7ouTgLjHZoL+fhDng47vDptOTl9PFi+k/HyhLbX1H+jwt31R5w7rMzdH59p8nzj0QnfSzh8PgJ0B4ieuaNtKu00= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=yj20110701; d=yahoo.co.jp; h=Message-ID:X-YMail-OSG:Received:X-Mailer:X-YMail-JAS:References:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=eTEhGkqjxFtXlFBUbbPO8RaHet27H081DRftAY/b8qN0sgLKhEwupNWFZ4v3fSPJLX3s9Q+gl5EG8YM1mY/qtH796plD44JFmEGev6a7srS9wx4gytp4yCUjZVHrzswLSWeT1fpq4cGSkw5kdS+aL4ZG9fTtCFbD5xCGnk10SkU=; Message-ID: <5866.49154.qm@web101718.mail.ssk.yahoo.co.jp> X-YMail-OSG: mtYB5jYVM1nnHtFd2ZxfTNTHPy6KcySXHpvEhBT8frwprAj7GFFf5rAyNvf1FRvfSKxR2hvGC3HzTuIYkT04IOaVULf1AUqPM0EBTJXzGmQwjFdLof9mNo8a_J.FlIZFWXYCPyJ9n2XHNILa8S6ENuXFplzc6KX__Sa6z_FxWGYcgYRgEo2f3joJQZRASBuXcLkMdpmkbK7aHF.rHMa2oxJWm2gi_ZBUt.JTYPXTS94vN7qoDHumIDabeOtRtuQgFQOBF2N6LfyuQrTwBuPeE9kDzG2g0tkdXx_SLq7GE4FI49ZGL11wYEdXA5v5vwSl05NQh_KxLNajlBUeJNyhHopKgMKatljo2wO82.AM161w2sn4oEnpduHG97oWIEJpTl.OwppxWkCIqVY1F4K2aJfy5Edm16dFsvHPWiWuXeBoM7Vn_RfSkySUKa7B2t.DLGxW.GMc3aJpSz0cMr.FPZyUlN2lkQJQvK9A_5aAJKwJTMJvOJmxEhcv2LIuG9K9NkvpBfFyCSIDNtwsIqqh.OxdAzgSbOxc1T2mgdzQ6WE4oaZ9HzJY0d.6rSXNMd8TuthwdkL.OKHohq_e8nFPZrDBVObXwrNq9HDP2biqwavrKhPI7q3tE0v3rnyM4Tk- Received: from [210.20.198.8] by web101718.mail.ssk.yahoo.co.jp via HTTP; Tue, 09 May 2017 22:20:58 JST X-Mailer: YahooMailWebService/0.8.111_71 X-YMail-JAS: ZIQ10wYVM1nLNdnCFo9mTr7jzHxGpaW7XD9RqfCn0iFvyEJKXRo3a5dTGlGIFJTs56tRuhyQj5mOJjUtdWWEpCeBL9d7QX4VlYbFsB5hyJrT9poY_0ColtTTsw7aa.llTMF9 References: <694efc3a-e183-35a1-a0bf-9a9c0d708826@wolman.co.uk> <410144.69078.qm@web101716.mail.ssk.yahoo.co.jp> <128807.28836.qm@web101715.mail.ssk.yahoo.co.jp> <2d555385-8258-fd75-e4a3-a1e59bf86314@wolman.co.uk> <651873.78746.qm@web101702.mail.ssk.yahoo.co.jp> <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> Date: Tue, 9 May 2017 22:20:58 +0900 (JST) From: Mori Hiroki Reply-To: Mori Hiroki Subject: Re: onion omega2+ To: Mike Wolman , Aleksandr Rybalko Cc: "freebsd-mips@freebsd.org" In-Reply-To: <6f1b2d35-5d17-765a-6138-0ab85455fc09@wolman.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable 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: Tue, 09 May 2017 13:21:08 -0000 Hi.=0A=0AOne more.=0A=0AOmega2 # fatload usb 0:1 0x80800000 kernel.MT7628_F= DT.uImage=0A=0AOmega2 # bootm 0x80800000=0A=0A----- Original Message -----= =0A> From: Mike Wolman =0A> To: Mori Hiroki ; Aleksandr Rybalko =0A> Cc: "freebsd-mips@freeb= sd.org" =0A> Date: 2017/5/9, Tue 22:01=0A> Subjec= t: Re: onion omega2+=0A> =0A> =0A> No joy=0A> =0A> Omega2 # fatload usb 0:1= 0x80800000 kernel.MT7628_FDT.uImage=0A> *=0A> *=0A> Reading file "kernel.M= T7628_FDT.uImage"=0A> *=0A> **=0A> **=0A> **=0A> **=0A> **=0A> **=0A> **=0A= > **=0A> **=0A> **=0A> ******=0A> ******=0A> ******************************= ***************************************************************************= ***************************************************************************= ******************************=0A> ****=0A> *=0A> FAT: 5654824 Bytes read= =0A> Omega2 # bootm=0A> ## Booting image at 80100000 ...=0A> Bad Magic Numb= er,CE6AE7C4=0A> =0A> I am going to get a different usb memory stick and reb= uild the kernel =0A> later on as i got an error when last writing to the us= b memory key and =0A> its quite old now so just want to eliminate it from t= esting.=0A> =0A> =0A> On 09/05/2017 13:52, Mori Hiroki wrote:=0A>> Hi.=0A>= > =0A>> This is my sample operation get image from network and boot.=0A>> = =0A>> RT3052 # tftpboot 0x80800000 Planex_MZK-WNH_kernel.kbin.oldlzma.uboo= t=0A>> RT3052 # bootm=0A>> =0A>> =0A>> I don't use USB support U-Boot. Bu= t I think fatload command argument is=0A>> temporary memory address not ke= rnel address.=0A>> =0A>> How about this.=0A>> =0A>> Omega2 # fatload usb = 0:1 0x80800000 kernel.MT7628_FDT.uImage=0A>> Omega2 # bootm=0A>> =0A>> --= --- Original Message -----=0A>>> From: Mike Wolman =0A>= >> To: Aleksandr Rybalko ; Mori Hiroki =0A> =0A>>> Cc: "freebsd-mips@freebsd.org" =0A> =0A>>> Date: 2017/5/9, Tue 20:48=0A>>> Subject: Re: onion omega2+=0A>= >> =0A>>> =0A>>> =0A>>> =0A>>> Is it possible to exclude the compression o= f the kernel/image for=0A>> =A0 =A0 =A0 now eg:=0A>>> mkimage -A mips -C n= one -O linux -T kernel -a 0x80001000 -e=0A>> =A0 =A0 =A0 0x80001100 -n "Fre= eBSD" -d kernel.MT7628_FDT=0A>> =A0 =A0 =A0 kernel.MT7628_FDT.uImage=0A>>> = =0A>>> I have just tried the above but when booting I get a Bad Magic=0A>>= =A0 =A0 =A0 Number.=0A>>> =0A>>> Omega2 # fatload usb 0:1 0x80001000 kern= el.MT7628_FDT.uImage=0A>>> *=0A>>> *=0A>>> Reading file "kernel.MT7628_F= DT.uImage"=0A>>> *=0A>>> **=0A>>> **=0A>>> **=0A>>> **=0A>>> **=0A>>>= **=0A>>> **=0A>>> **=0A>>> **=0A>>> **=0A>>> ******=0A>>> ******=0A= >>> =0A> ******************************************************************= ***************************************************************************= *********************************************************************=0A>>>= ****=0A>>> *=0A>>> FAT: 5654824 Bytes read=0A>>> Omega2 # bootm 0x8000= 1100=0A>>> ## Booting image at 80001100 ...=0A>>> Bad Magic Number,1C9944= 80=0A>>> Omega2 #=0A>>> =0A>>> =0A>>> I have seen other examples starting= a program directly with going to=0A>> =A0 =A0 =A0 the address but this did= nt work either:=0A>>> Omega2 # go 0x80001100=0A>>> ## Starting applicatio= n at 0x80001100 ...=0A>>> =0A>>> omega freezes here.=0A>>> =0A>>> =0A>>> = =0A>>> =0A>>> On 09/05/2017 10:12, Aleksandr Rybalko wrote:=0A>>> =0A>>> = Fix things in order :)=0A>> Currently you have problem with LZMA, serial p= ort later.=0A>>>> =0A>> So, find version of lzma used to build linux firmw= are, MIPS routers world =0A> use about 5 incompatible versions. One of them= , you can find here:=0A>>>> =0A> http://project.zrouter.org/hg/zrouter/file= /9ac53695a44d/tools/oldlzma=0A>>>> =0A>>>> =0A>>>> =0A>>>> =0A>>>> 2017-05= -09 7:03 GMT+03:00 Mori Hiroki =0A> :=0A>>>> =0A>>>>= Hi Mike=0A>>>>> Could you show u-boot printenv command result.=0A>>>>> = =0A>>>>> Thanks=0A>>>>> =0A>>>>> =0A>>>>> ----- Original Message -----=0A= >>>>>> From: Mike Wolman =0A>>>>>> To: Mori Hiroki ; =0A> "freebsd-mips@freebsd.org" =0A>>>>>> Cc:=0A>>>>>> Date: 2017/5/9, Tue 10:30=0A>>>>>> Subject: = Re: onion omega2+=0A>>>>>> =0A>>>>>> Hi Mori,=0A>>>>>> =0A>>>>>> When I c= ompiled the world/kernel etc I used:=0A>>>>>> =0A>>>>>> X_DTS_FILE=3DOMEGA= 2P.dts KERNCONF=3DMT7628_FDT=0A>>>>>> ../freebsd-wifi-build/build/ bin/bui= ld ralink=0A>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 buildkernel=0A>>>>>> I = checked the serial stuff was the same as the=0A>> =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 other configs in:=0A>>>>>> https://github.com/freebsd/ freebsd= -wifi-build/=0A>>>>>> and they looked the same.=0A>>>>>> =0A>>>>>> The OM= EGA2.dtsi file has:=0A>>>>>> =0A>>>>>> =A0 =A0 =A0 =A0 =A0 chosen {=0A>>>>= >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 bootargs =3D =0A> "console=3DttyS0,= 115200";=0A>>>>>> =A0 =A0 =A0 =A0 =A0 };=0A>>>>>> =0A>>>>>> =0A>>>>>> And= mt7628an.dtsi has:=A0 serial0 =3D &uartlite;=0A>>>>>> =0A>>>>>> I dont t= hink im getting as far as worrying about=0A>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 the serial console at=0A>>>>>> the moment and need to get the kern= el to uncompress=0A>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 first.=0A>>>>>> = Mike.=0A>>>>>> =0A>>>>>> =0A>>>>>> On 09/05/2017 02:20, Mori Hiroki wrote:= =0A>>>>>>> =A0 =A0 Hi Mike=0A>>>>>>> =0A>>>>>>> =A0 =A0 In FreeBSD is use s= erial0 dts item to console.=0A>>>>>>> =0A>>>>>>> =A0 =A0 I think good to us= e this at start.=0A>>>>>>> =0A>>>>>>> =A0 =A0 freebsd/sys/gnu/dts/mips/ MT7= 628.dts=0A>>>>>>> =0A>>>>>>> =A0 =A0 ----- Original Message -----=0A>>>>>>>= > =A0 =A0 From: Mike Wolman =0A>>>>>>>> =A0 =A0 To: Mori= Hiroki ;=0A>>>>>> "freebsd-mips@freebsd.org" =0A> = =0A>>>>>>>> =A0 =A0 Cc:=0A>>>>>>>> =A0 =A0 Date: = 2017/5/9, Tue 09:25=0A>>>>>>>> =A0 =A0 Subject: Re: onion omega2+=0A>>>>>>>= > =0A>>>>>>>> =A0 =A0 Hi Mori,=0A>>>>>>>> =0A>>>>>>>> =A0 =A0 I grabbed the= dts files from:=0A>>>>>>>> =0A>>>>>>>> =A0 =A0 https://github.com/WereCatf= / =0A> source/tree/image/target/ linux/ramips/dts=0A>>>>>>>> =0A>>>>>> htt= ps://github.com/WereCatf/ source/blob/image/target/ =0A> linux/ramips/dts/O= MEGA2P.dts=0A>>>>>> https://github.com/WereCatf/ source/blob/image/target/= =0A> linux/ramips/dts/OMEGA2.dtsi=0A>>>>>>>> =A0 =A0 If this is of any use= from the default=0A>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 linux install on= the flash:=0A>>>>>>>> =A0 =A0 root@Omega-12BF:/proc# cat /proc/mtd=0A>>>>>= >>> =A0 =A0 dev:=A0 =A0 size=A0 erasesize=A0 name=0A>>>>>>>> =A0 =A0 mtd0:= 00030000 00010000 "u-boot"=0A>>>>>>>> =A0 =A0 mtd1: 00010000 00010000 "u-b= oot-env"=0A>>>>>>>> =A0 =A0 mtd2: 00010000 00010000 "factory"=0A>>>>>>>> = =A0 =A0 mtd3: 01fb0000 00010000 "firmware"=0A>>>>>>>> =A0 =A0 mtd4: 0014884= 2 00010000 "kernel"=0A>>>>>>>> =A0 =A0 mtd5: 01e677be 00010000 "rootfs"=0A>= >>>>>>> =A0 =A0 mtd6: 01950000 00010000 "rootfs_data"=0A>>>>>>>> =0A>>>>>>>= > =0A>>>>>>>> =A0 =A0 btw after posting i spotted and error in=0A>> =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 what i did with:=0A>>>>>>>> =A0 =A0 mkimage -A= mips -O linux -T kernel -C lzma=0A>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 \= =0A>>>>>>>> =A0 =A0 =A0 =A0 -a 0x80001000 -e 0x80001100 \=0A>>>>>>>> =A0 = =A0 =A0 =A0 -n "FreeBSD" -d=0A>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 kernel= .MT7628_FDT.lzma=0A>>>>>>>> =A0 =A0 kernel.MT7628_FDT.ulzma.uImage=0A>>>>>>= >> =0A>>>>>>>> =A0 =A0 I have redone this using the correct=0A>> =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 compressed kernel ie:=0A>>>>>>>> =A0 =A0 mkimag= e -A mips -O linux -T kernel -C lzma=0A>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 \=0A>>>>>>>> =A0 =A0 =A0 =A0 -a 0x80001000 -e 0x80001100 \=0A>>>>>>>> = =A0 =A0 =A0 =A0 -n "FreeBSD" -d=0A>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ke= rnel.MT7628_FDT.ulzma=0A>>>>>>>> =A0 =A0 kernel.MT7628_FDT.ulzma.uImage=0A>= >>>>>>> =0A>>>>>>>> =0A>>>>>>>> =A0 =A0 But this didnt work.=0A>>>>>>>> =0A= >>>>>>>> =0A>>>>>>>> =0A>>>>>>>> =A0 =A0 On 09/05/2017 01:17, Mori Hiroki w= rote:=0A>>>>>>>>> =A0 =A0 Hi.=0A>>>>>>>>> =0A>>>>>>>>> =A0 =A0 I think if= U-Boot work memory make=0A>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 broken th= en=0A>>>>>>>>> =A0 =A0 Uncompressing Kernel Image is NG.=0A>>>>>>>>> =0A>>= >>>>>>> =A0 =A0 Some ARM U-Boot is use top address=0A>> =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 in work memory.=0A>>>>>>>>> =A0 =A0 If this case your = kernel start=0A>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 address to move to=0A= >>>>>>>>> =A0 =A0 after work memory. But I never see=0A>> =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 in MIPS.=0A>>>>>>>>> =A0 =A0 And What is set FDT_DTS_F= ILE=A0 in=0A>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 your kernel configuratio= n ?=0A>>>>>>>>> =A0 =A0 ----- Original Message -----=0A>>>>>>>>> =0A>>>>>>= >>>> =A0 =A0 From: Mike Wolman =0A> =0A>>>>>>>>>> =A0 = =A0 To: freebsd-mips@freebsd.org=0A>>>>>>>>>> =A0 =A0 Cc:=0A>>>>>>>>>> = =A0 =A0 Date: 2017/5/9, Tue 07:48=0A>>>>>>>>>> =A0 =A0 Subject: Re: onion= omega2+=0A>>>>>>>>>> =0A>>>>>>>>>> =0A>>>>>>>>>> =A0 =A0 More info in cas= e anyone can=0A>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 point me in the right= direction.=0A>>>>>>>>>> =A0 =A0 I have found:=0A>>>>>>>>>> =0A>>>>>>>>>> = =A0 =A0 https://forum.openwrt.org/ =0A> viewtopic.php?id=3D53865=0A>>>>>>>>= >> =0A>>>>>>>>>> =A0 =A0 I have tried changing how lzma=0A>> =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 compresses the kernel by=0A>>>>>> adding -d20 to= =0A>>>>>>>>>> =A0 =A0 the build scripts eg:=0A>>>>>>>>>> =0A>>>>>>>>>> =A0= =A0 /usr/local/bin/lzma e=0A>>>>>>>>>> =A0 =0A>>>>>> /home/mike/omega2/s= rc/../root/ =0A> mipsel_ap/boot/kernel.MT7628_ FDT/kernel=0A>>>>>>>> =A0 = =A0 \=0A>>>>>>>>>> =A0 =A0 /home/mike/omega2/src/../ =0A> tftpboot/kernel.= MT7628_FDT. lzma=0A>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 -d20=0A>>>>>>>>>>= =A0 =A0 This did not work.=0A>>>>>>>>>> =0A>>>>>>>>>> =0A>>>>>>>>>> =A0 = =A0 Looking at the onion omega conf=0A>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 I see that it uses mkuzip and=0A>>>>>> not lzma=0A>>>>>>>>>> =A0 =A0 = with the following settings:=0A>>>>>>>>>> =0A>>>>>>>>>> =A0 =A0 X_FSIMAGE_= CMD=3D"mkuzip"=0A>>>>>>>>>> =A0 =A0 X_FSIMAGE_ARGS=3D"-L -d -s 65536=0A>> = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 -v"=0A>>>>>>>>>> =A0 =A0 X_FSIMAGE_SUF= FIX=3D".ulzma"=0A>>>>>>>>>> =0A>>>>>>>>>> =A0 =A0 So tried the following:= =0A>>>>>>>>>> =0A>>>>>>>>>> =A0 =A0 mkuzip -L -d -s 65536 -v -o=0A>> =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 kernel.MT7628_FDT.ulzma=0A>>>>>> kernel.MT= 7628_FDT=0A>>>>>>>>>> =A0 =A0 mkimage -A mips -O linux -T=0A>> =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 kernel -C lzma \=0A>>>>>>>>>> =A0 =A0 =A0 =A0 -a = 0x80001000 -e 0x80001100=0A>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 \=0A>>>>>= >>>>> =A0 =A0 =A0 =A0 -n "FreeBSD" -d=0A>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 kernel.MT7628_FDT.lzma=0A>>>>>>>>>> =A0 =A0 kernel.MT7628_FDT.ulzma.u= Image=0A>>>>>>>>>> =0A>>>>>>>>>> =0A>>>>>>>>>> =A0 =A0 But this did not wo= rk either.=0A>>>>>>>>>> =0A>>>>>>>>>> =0A>>>>>>>>>> =0A>>>>>>>>>> =A0 =A0 = On 08/05/2017 19:41, Aleksandr=0A>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Ryb= alko wrote:=0A>>>>>>>>>>> =A0 =A0 =A0 Hi Mike!=0A>>>>>>>>>>> =0A>>>>>>>>>>= > =A0 =A0 =A0 I see you have no "OK"=0A>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 after=0A>>>>>> "Uncompressing Kernel=0A>>>>>>>> =A0 =A0 Image=0A>>>>>>= >>>> =A0 =A0 ...", so=0A>>>>>>>>>>> =A0 =A0 =A0 first point uboot=0A>> = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 decompressor fail.=0A>>>>>>>>>>> =A0 = =A0 =A0 Why fail? Because you have=0A>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 wrong base address in image:=0A>>>>>>>>>>> =A0 =A0 =A0 =A0 Load Addres= s: fffffff2=0A>>>>>>>>>>> =A0 =A0 =A0 =A0 Entry Point:=A0 fffffff2=0A>>>>>= >>>>>> =A0 =A0 =A0 MIPS32 machines have RAM=0A>> =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 mapped to 0x80000000 address,=0A>>>>>> so adding=0A>>>>>>>> = =A0 =A0 its=0A>>>>>>>>>>> =A0 =A0 =A0 size, you will get max=0A>> =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 address (if 16MB, it will be=0A>>>>>> 0x810000= 00),=0A>>>>>>>> =A0 =A0 but=0A>>>>>>>>>>> =A0 =A0 =A0 you uboot image was= =0A>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 created with 0xfffffff2.=0A>>>>>>= >>>>> =A0 =A0 =A0 Even more, unpacked kernel=0A>> =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 expects it will be called at=0A>>>>>>>> =A0 =A0 0x80001100. so= =0A>>>>>>>>>>> =A0 =A0 =A0 if you have ELF kernel=0A>> =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 (file with ELF header, like=0A>>>>>> every=0A>>>>>>>> =A0= =A0 executable)=0A>>>>>>>>>>> =A0 =A0 =A0 that file have to be=0A>> =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 loaded at (0x80001100 -=0A>>>>>> ELF_HEADE= R_SIZE).=0A>>>>>>>>>>> =A0 =A0 =A0 In most cases it will be=0A>> =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 0x80001100 - 0x100 =3D=0A>>>>>> 0x80001000. Bu= t=0A>>>>>>>> =A0 =A0 sometime=0A>>>>>>>>>>> =A0 =A0 =A0 (I did not found w= hy) it=0A>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 can be 0x20, you can find i= t=0A>>>>>> by looking=0A>>>>>>>> =A0 =A0 at=0A>>>>>>>>>>> =A0 =A0 =A0 .te= xt section in readelf=0A>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 -S.=0A>>>>>>= >>>>> =A0 =A0 =A0 So if you have kernel with=0A>> =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 entry point 0x80001100 and=0A>>>>>> .text=0A>>>>>>>> =A0 =A0 s= egment=0A>>>>>>>>>>> =A0 =A0 =A0 offset 0x100, you have to=0A>> =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 create uboot image with load=0A>>>>>> address= =0A>>>>>>>>>>> =A0 =A0 =A0 0x80001000 and entry point=0A>> =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 0x80001100.=0A>>>>>>>>>>> =A0 =A0 =A0 If that step su= ccessful=0A>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 you will get:=0A>>>>>>>>>= >> =A0 =A0 =A0 /Uncompressing Kernel=0A>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 Image/ ... OK=0A>>>>>>>>>>> =A0 =A0 =A0 Starting kernel ...=0A>>>>>>>>= >>> =0A>>>>>>>>>>> =A0 =A0 =A0 Last line mean, uboot did=0A>> =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 jump into kernel code.=0A>>>>>>>>>>> =A0 =A0 =A0 G= ood luck.=0A>>>>>>>>>>> =0A>>>>>>>>>>> =A0 =A0 =A0 2017-05-07 18:20 GMT+03= :00=0A>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Mike Wolman=0A>>>>>> >>>>>>>>>> =A0 =A0 =A0 =0A> >:=0A>>= >>>>>>>>> =0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 Hi,=0A>>>>>>>>>>> =0A>>>>>>>>= >>> =A0 =A0 =A0 =A0 =A0 I am trying to get=0A>> =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 FreeBSD working on this board -=0A>>>>>> I think I=0A>>>>>>>> = =A0 =A0 am=0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 almost there in=0A>> =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 getting it working but need some=0A>>>>>> help= please.=0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 I have followed=0A>> =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 instructions from the=0A>>>>>> freebsd-wifi-bu= ild and=0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 *think* I have got=0A>> =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 everything correct - I am trying=0A>>>>>> to d= o=0A>>>>>>>> =A0 =A0 this on=0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 a CURRENT s= etup:=0A>>>>>>>>>>> =0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 FreeBSD=0A>> =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 f64-current.mw.office 12.0-CURRENT FreeBSD= =0A>>>>>>>> =A0 =A0 12.0-CURRENT #0=0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 r317= 887: Sun May=A0 7=0A>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 03:20:34 UTC 201= 7=0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =0A>>>>>>>> =A0 =A0 mike@f64-current.mw.off= ice:/ =0A> usr/obj/usr/src/sys/GENERIC- NODEBUG amd64=0A>>>>>>>>>>> =A0 =A0= =A0 =A0 =A0 $ cat=0A>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ~/.freebsd-wif= i-build- settings.cfg=0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 X_SKIP_MORE_STUFF= =3DYES=0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =0A>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 X_EXTRA_SRC_CONF=3D~/omega2/src. conf=0A>>>>>>>>>>> =A0 =A0 =A0 =A0= =A0 $ cat=0A>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ~/omega2/src.conf=0A>>= >>>>>>>>> =A0 =A0 =A0 =A0 =A0 WITHOUT_CLANG=3DYES=0A>>>>>>>>>>> =A0 =A0 = =A0 =A0 =A0 WITHOUT_CLANG_FULL=3DYES=0A>>>>>>>>>>> =0A>>>>>>>>>>> =A0 =A0 = =A0 =A0 =A0 get dts files from=0A>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 th= read=0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =0A>>>>>> http://community.onion.io/ to= pic/1099/openwrt-on-the- =0A> omega-2/8=0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =0A>>= >>>>>> =A0 =A0 topic/1099/openwrt-on-the- = omega-2/8>=0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 cd=0A>> =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 ~/omega2/src/sys/gnu/dts/mips=0A>>>>>>>>>>> =A0 =A0 =A0 =A0= =A0 fetch=0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =0A>>>>>> https://raw.githubuser= content. com/WereCatf/source/image/ =0A> target/linux/ramips/dts/ OMEGA2.dt= si=0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =0A>>>>>> WereCatf/source/image/target/ linux/ramips/dts/OMEGA2.dtsi>=0A>>= >>>>>>>>> =A0 =A0 =A0 =A0 =A0 fetch=0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =0A>>>>>= > https://raw.githubusercontent. com/WereCatf/source/image/ =0A> target/li= nux/ramips/dts/ OMEGA2.dts=0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =0A>>>>>> WereCatf/source/image/target/ linux/rami= ps/dts/OMEGA2.dts>=0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 fetch=0A>>>>>>>>>>> = =A0 =A0 =A0 =A0 =0A>>>>>> https://raw.githubusercontent. com/WereCatf/sour= ce/image/ =0A> target/linux/ramips/dts/ OMEGA2P.dts=0A>>>>>>>>>>> =A0 =A0 = =A0 =A0 =0A>>>>>> WereCatf/sourc= e/image/target/ linux/ramips/dts/OMEGA2P.dts>=0A>>>>>>>>>>> =A0 =A0 =A0 =A0= =A0 X_DTS_FILE=3DOMEGA2P.dts=0A>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 KER= NCONF=3DMT7628_FDT=0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =0A>> =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 ../freebsd-wifi-build/build/ bin/build ralink=0A>>>>>> = buildworld=0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 X_DTS_FILE=3DOMEGA2P.dts=0A>= > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 KERNCONF=3DMT7628_FDT=0A>>>>>>>>>>> = =A0 =A0 =A0 =A0 =A0 =0A>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ../freebsd-wi= fi-build/build/ bin/build ralink=0A>>>>>> buildkernel=0A>>>>>>>>>>> =A0 = =A0 =A0 =A0 =A0 X_DTS_FILE=3DOMEGA2P.dts=0A>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 KERNCONF=3DMT7628_FDT=0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =0A>> =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ../freebsd-wifi-build/build/ bin/build rali= nk=0A>>>>>> installworld=0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 X_DTS_FILE=3DO= MEGA2P.dts=0A>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 KERNCONF=3DMT7628_FDT= =0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =0A>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 ../freebsd-wifi-build/build/ bin/build ralink=0A>>>>>> installkernel= =0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 X_DTS_FILE=3DOMEGA2P.dts=0A>> =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 KERNCONF=3DMT7628_FDT=0A>>>>>>>>>>> =A0 =A0 =A0= =A0 =A0 =0A>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ../freebsd-wifi-build/bu= ild/ bin/build ralink=0A>>>>>> distribution=0A>>>>>>>>>>> =0A>>>>>>>>>>> = =A0 =A0 =A0 =A0 =A0 X_DTS_FILE=3DOMEGA2P.dts=0A>> =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 KERNCONF=3DMT7628_FDT=0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =0A>> = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ../freebsd-wifi-build/build/ bin/build = ralink=0A>>>>>> mfsroot=0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 X_DTS_FILE=3DOM= EGA2P.dts=0A>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 KERNCONF=3DMT7628_FDT=0A= >>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =0A>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 .= ./freebsd-wifi-build/build/ bin/build ralink=0A>>>>>> fsimage=0A>>>>>>>>>>= > =A0 =A0 =A0 =A0 =A0 X_DTS_FILE=3DOMEGA2P.dts=0A>> =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 KERNCONF=3DMT7628_FDT=0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =0A= >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ../freebsd-wifi-build/build/ bin/bui= ld ralink uboot=0A>>>>>>>>>>> =0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 Create fl= ash:=0A>>>>>>>>>>> =0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =0A>> =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 X_FLASH=3Dkernel.MT7628_FDT. lzma.flash=0A>>>>>>>>>>> = =A0 =A0 =A0 =A0 =A0 dd if=3D/dev/zero bs=3D$((=0A>> =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 0x200000 )) count=3D1=0A>>>>>> of=3D${X_FLASH}=0A>>>>>>>>>= >> =A0 =A0 =A0 =A0 =A0 dd=0A>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 if=3Dke= rnel.MT7628_FDT.lzma. uImage of=3D${X_FLASH}=0A>>>>>>>> =A0 =A0 conv=3Dnotr= unc=0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 dd if=3D=0A>> =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 mfsroot-ralink.img.lzma >> ${X_FLASH}=0A>>>>>>>>>>> =0A>>>>= >>>>>>> =A0 =A0 =A0 =A0 =A0 $ readelf -h=0A>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 kernel.MT7628_FDT | grep Entry=0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 = =A0 Entry point=0A>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 address:=A0 =A0 = =A0 =A0 =A0 =A0 =A0 0x80001100=0A>>>>>>>>>>> =0A>>>>>>>>>>> =0A>>>>>>>>>>>= =0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 Now on the omega over=0A>> =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 serial - I didnt get the=0A>>>>>> network=0A>>>>>= >>> =A0 =A0 expansion=0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 doc thing so am do= ing=0A>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 stuff with usb rather than=0A>= >>>>> tftp=0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 I am not 100% sure=0A>> =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 about the 0x80001100 and the=0A>>>>>> fatl= oad and=0A>>>>>>>> =A0 =A0 have=0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 tried th= is=0A>>>>>>>>>>> =0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 Omega2 # fatload usb= =0A>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 0:1 0x80001100=0A>>>>>>>> =A0 =A0= /kernel.MT7628_FDT.lzma.flash=0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 *=0A>>>>>= >>>>>> =A0 =A0 =A0 =A0 =A0 *=0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 Reading fi= le=0A>>>>>> "/kernel.MT7628_FDT.lzma. flash"=0A>>>>>>>>>>> =A0 =A0 =A0 =A0= =A0 *=0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 **=0A>>>>>>>>>>> =A0 =A0 =A0 =A0= =A0 **=0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 **=0A>>>>>>>>>>> =A0 =A0 =A0 = =A0 =A0 ******=0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =0A>>>>>> ******************= ************ =0A> ****************************** **************************= **** =0A> ****************************** *********************=0A>>>>>>>>>>= > =A0 =A0 =A0 =A0 =A0 ******=0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 *=0A>>>>>>= >>>>> =A0 =A0 =A0 =A0 =A0 FAT: 2108463 Bytes=0A>> =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 read=0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 Omega2 # bootm=0A>> =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 0x80001100=0A>>>>>>>>>>> =A0 =A0 =A0 =A0 = =A0 ## Booting image at=0A>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 80001100 = ...=0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 Image Name:=0A>> =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 FreeBSD=0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 I= mage Type:=A0 MIPS=0A>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Linux Kernel I= mage (lzma=0A>>>>>> compressed)=0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 = Data Size:=0A>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 1365122 Bytes =3D=A0 1.= 3 MB=0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 Load Address:=0A>> =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 fffffff2=0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 = =A0 Entry Point:=0A>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 fffffff2=0A>>>>>>= >>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 Verifying Checksum=0A>> =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 ... OK=0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 Uncomp= ressing=0A>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Kernel Image ...=0A>>>>>>>= >>>> =0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 At this point nothing=0A>> =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 happens and console hangs -=0A>>>>>> note in= =0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 OMEGA2.dtsithe console=0A>> =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 is set to ttyS0:=0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0= bootargs =3D=0A>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 "console=3DttyS0,11= 5200";=0A>>>>>>>>>>> =0A>>>>>>>>>>> =0A>>>>>>>>>>> =0A>>>>>>>>>>> =A0 =A0 = =A0 =A0 =A0 I have also tried with=0A>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 just kernel.MT7628_FDT and=0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 kernel.MT= 7628_FDT.lzma=0A>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 but both fail:=0A>>>= >>>>>>>> =A0 =A0 =A0 =A0 =A0 Omega2 # fatload usb=0A>> =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 0:1 0x80001100=0A>>>>>>>> =A0 =A0 /kernel.MT7628_FDT.lzma.= uImage=0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 *=0A>>>>>>>>>>> =A0 =A0 =A0 =A0 = =A0 *=0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 Reading file=0A>>>>>> "/kernel.M= T7628_FDT.lzma. uImage"=0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 *=0A>>>>>>>>>>> = =A0 =A0 =A0 =A0 =A0 **=0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 **=0A>>>>>>>>>>>= =A0 =A0 =A0 =A0 =A0 ******=0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =0A>>>>>> *****= ************************* =0A> ****************************** *************= ***************** =0A> ****************************** ******=0A>>>>>>>>>>> = =A0 =A0 =A0 =A0 =A0 **********=0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 *=0A>>>>= >>>>>>> =A0 =A0 =A0 =A0 =A0 FAT: 1365186 Bytes=0A>> =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 read=0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 Omega2 # bootm=0A>>= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 0x80001100=0A>>>>>>>>>>> =A0 =A0 =A0 = =A0 =A0 ## Booting image at=0A>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 80001= 100 ...=0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 Image Name:=0A>> =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 FreeBSD=0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 = =A0 Image Type:=A0 MIPS=0A>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Linux Ker= nel Image (lzma=0A>>>>>> compressed)=0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0= =A0 Data Size:=0A>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 1365122 Bytes =3D= =A0 1.3 MB=0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 Load Address:=0A>> =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 fffffff2=0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0= =A0 =A0 Entry Point:=0A>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 fffffff2=0A>= >>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 Verifying Checksum=0A>> =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 ... OK=0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 Un= compressing=0A>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Kernel Image ...=0A>>>= >>>>>>>> =0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 A few comments on the=0A>> =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 hardware for anyone who wants=0A>>>>>> to= get=0A>>>>>>>> =A0 =A0 one:=0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 Get the exp= ansion dock=0A>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 with serial port acces= s -=0A>>>>>> the power=0A>>>>>>>> =A0 =A0 dock=0A>>>>>>>>>>> =A0 =A0 =A0 = =A0 =A0 does not provide=0A>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 serial a= ccess - i think it is=0A>>>>>> possible to=0A>>>>>>>> =A0 =A0 use an=0A>>>= >>>>>>>> =A0 =A0 =A0 =A0 =A0 ftdi ttl serial=0A>> =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 chip/cable but have not tried.=0A>>>>>>>>>>> =A0 =A0 =A0 =A0 = =A0 Stupidly I forgot this=0A>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 only h= as wifi access so you=0A>>>>>> are not=0A>>>>>>>> =A0 =A0 able to=0A>>>>>>= >>>>> =A0 =A0 =A0 =A0 =A0 tftp boot this without=0A>> =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 getting the ethernet network=0A>>>>>> expansion=0A>>>>>>>>= =A0 =A0 but=0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 loading stuff up from=0A>> = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 a usb memory stick is seem=0A>>>>>> fi= ne from=0A>>>>>>>> =A0 =A0 u-boot.=0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 I do = not think that it=0A>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 is possible to b= oot from the=0A>>>>>> SD card=0A>>>>>>>> =A0 =A0 on the=0A>>>>>>>>>>> =A0 = =A0 =A0 =A0 =A0 Omega2+ - which is a=0A>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 shame.=0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 Thanks for reading,=0A>>>>>>>= >>>> =0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 Mike.=0A>>>>>>>>>>> =0A>>>>>>>>>>>= =0A>>>>>>>>>>> =0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =0A>> =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 ______________________________ _________________=0A>>>>= >>>>>>> =A0 =A0 =A0 =A0 =A0 freebsd-mips@freebsd.org=0A>>>>>>>> =A0 =A0 mailing=0A>>>>>>>>>> =A0 =A0 list=0A>>>>>>>= >>>> =A0 =A0 =A0 =A0 =0A>>>>>> https://lists.freebsd.org/ mailman/listinfo= /freebsd-mips=0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =0A>>>>>>>> =A0 =A0 mailman/listinfo/freebsd-mips>=0A>>>>>>>>>>> =A0 =A0 = =A0 =A0 =A0 To unsubscribe, send=0A>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = any mail to=0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =0A> "freebsd-mips-unsubscrib= e@ freebsd.org=0A>>>>>>>>>>> =A0 =A0 =A0 =A0 =0A>>>>>> "=0A>>>>>>>>>>> =0A>>>>>>>>>>> =0A>>>>>>>>>>> = =0A>>>>>>>>>>> =A0 =A0 =A0 --=0A>>>>>>>>>>> =A0 =A0 =A0 WBW=0A>>>>>>>>>>>= =A0 =A0 =A0 -------=0A>>>>>>>>>>> =A0 =A0 =A0 Rybalko Aleksandr =0A> >>>>>>> =A0 =A0 >=0A>>>>>>>>>> =A0 = =A0 ______________________________ =0A> _________________=0A>>>>>>>>>> =A0= =A0 freebsd-mips@freebsd.org mailing list=0A>>>>>>>>>> =A0 =A0 https://lis= ts.freebsd.org/ =0A> mailman/listinfo/freebsd-mips=0A>>>>>>>>>> =A0 =A0 To= unsubscribe, send any mail to=0A>>>>>>>>>> =A0 =A0 "freebsd-mips-unsubscr= ibe@ =0A> freebsd.org"=0A>>>>>>>>>> =0A>>>>> _____________________________= _ _________________=0A>>>>> freebsd-mips@freebsd.org mailing list=0A>>>>> = https://lists.freebsd.org/ mailman/listinfo/freebsd-mips=0A>>>>> To unsub= scribe, send any mail to =0A> "freebsd-mips-unsubscribe@ freebsd.org"=0A>>>= >> =0A>>>> =0A>>>> -- =0A>>>> =0A>>>> WBW=0A>>>> -------=0A>>>> Rybalko= Aleksandr =0A>>>> =0A>>>> =0A>>> =0A>>> =0A> From owner-freebsd-mips@freebsd.org Tue May 9 13:42:34 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 AFD51D65D8C for ; Tue, 9 May 2017 13:42:34 +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 061DF19CC for ; Tue, 9 May 2017 13:42:33 +0000 (UTC) (envelope-from mike@wolman.co.uk) Received: from [192.168.3.50] ([80.229.66.11]) by avasout08 with smtp id JDiV1v0080EahWw01DiWZh; Tue, 09 May 2017 14:42:31 +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=N659UExz7-8A:10 a=UmSUZ3ptAAAA:8 a=4I05h4SrAAAA:8 a=6I5d2MoRAAAA:8 a=arpVtLJQAAAA:8 a=NEAV23lmAAAA:8 a=jdP34snFAAAA:8 a=LJ5NkaWEAAAA:8 a=bt8Zh30PAAAA:8 a=io7M0gOnJNsSyQ5BoQQA:9 a=Wz7LM76iJEUwrd1u:21 a=NXDKa6hQaSg-lyzV:21 a=pILNOxqGKmIA:10 a=FyGKTEvU35uc88vWBdgE:22 a=SXYKVUms7l59yVxtnTo9:22 a=IjZwj45LgO3ly-622nXo:22 a=86BuEF5rAmEUDcZwuOX_:22 a=jlphF6vWLdwq7oh3TaWq:22 a=eH83O4KjmLCfbRe1EArK:22 Subject: Re: onion omega2+ To: Mori Hiroki , Aleksandr Rybalko References: <694efc3a-e183-35a1-a0bf-9a9c0d708826@wolman.co.uk> <410144.69078.qm@web101716.mail.ssk.yahoo.co.jp> <128807.28836.qm@web101715.mail.ssk.yahoo.co.jp> <2d555385-8258-fd75-e4a3-a1e59bf86314@wolman.co.uk> <651873.78746.qm@web101702.mail.ssk.yahoo.co.jp> <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> Cc: "freebsd-mips@freebsd.org" From: Mike Wolman Message-ID: <102de390-63ca-a156-2208-bea3d5eea0f9@wolman.co.uk> Date: Tue, 9 May 2017 14:42:28 +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: <5866.49154.qm@web101718.mail.ssk.yahoo.co.jp> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit 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: Tue, 09 May 2017 13:42:34 -0000 Ok got somewhere with this USB_STORAGE: 1 Storage Device(s) found Omega2 # fatload usb 0:1 0x80800000 kernel.MT7628_FDT.uImage * * Reading file "kernel.MT7628_FDT.uImage" * ** ** ** ** ** ** ** ** ** ** ****** ****** ****************************************************************************************************************************************************************************************************************** **** * FAT: 5654824 Bytes read Omega2 # go Usage: go - start application at address 'addr' Omega2 # go 0x80001000 ## Starting application at 0x80001000 ... I have tried with: Omega2 # go 0x80001100 ## Starting application at 0x80001100 ... I have tried using the 0x80001000 for fatload as well: USB_STORAGE: 1 Storage Device(s) found Omega2 # help fatload fatload [bytes] - load binary file 'filename' from 'dev' on 'interface' to address 'addr' from dos filesystem Reading file "kernel.MT7628_FDT.uImage" * ** ** ** ** ** ** ** ** ** ** ****** ****** ****************************************************************************************************************************************************************************************************************** **** * FAT: 5654824 Bytes read Omega2 # go 0x80001100 ## Starting application at 0x80001100 ... However: 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: 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 ... But it doesnt go any further On 09/05/2017 14:20, Mori Hiroki wrote: > Hi. > > One more. > > Omega2 # fatload usb 0:1 0x80800000 kernel.MT7628_FDT.uImage > > Omega2 # bootm 0x80800000 > > ----- Original Message ----- >> From: Mike Wolman >> To: Mori Hiroki ; Aleksandr Rybalko >> Cc: "freebsd-mips@freebsd.org" >> Date: 2017/5/9, Tue 22:01 >> Subject: Re: onion omega2+ >> >> >> No joy >> >> Omega2 # fatload usb 0:1 0x80800000 kernel.MT7628_FDT.uImage >> * >> * >> Reading file "kernel.MT7628_FDT.uImage" >> * >> ** >> ** >> ** >> ** >> ** >> ** >> ** >> ** >> ** >> ** >> ****** >> ****** >> ****************************************************************************************************************************************************************************************************************** >> **** >> * >> FAT: 5654824 Bytes read >> Omega2 # bootm >> ## Booting image at 80100000 ... >> Bad Magic Number,CE6AE7C4 >> >> I am going to get a different usb memory stick and rebuild the kernel >> later on as i got an error when last writing to the usb memory key and >> its quite old now so just want to eliminate it from testing. >> >> >> On 09/05/2017 13:52, Mori Hiroki wrote: >>> Hi. >>> >>> This is my sample operation get image from network and boot. >>> >>> RT3052 # tftpboot 0x80800000 Planex_MZK-WNH_kernel.kbin.oldlzma.uboot >>> RT3052 # bootm >>> >>> >>> I don't use USB support U-Boot. But I think fatload command argument is >>> temporary memory address not kernel address. >>> >>> How about this. >>> >>> Omega2 # fatload usb 0:1 0x80800000 kernel.MT7628_FDT.uImage >>> Omega2 # bootm >>> >>> ----- Original Message ----- >>>> From: Mike Wolman >>>> To: Aleksandr Rybalko ; Mori Hiroki >> >>>> Cc: "freebsd-mips@freebsd.org" >> >>>> Date: 2017/5/9, Tue 20:48 >>>> Subject: Re: onion omega2+ >>>> >>>> >>>> >>>> >>>> Is it possible to exclude the compression of the kernel/image for >>> now eg: >>>> mkimage -A mips -C none -O linux -T kernel -a 0x80001000 -e >>> 0x80001100 -n "FreeBSD" -d kernel.MT7628_FDT >>> kernel.MT7628_FDT.uImage >>>> I have just tried the above but when booting I get a Bad Magic >>> Number. >>>> Omega2 # fatload usb 0:1 0x80001000 kernel.MT7628_FDT.uImage >>>> * >>>> * >>>> Reading file "kernel.MT7628_FDT.uImage" >>>> * >>>> ** >>>> ** >>>> ** >>>> ** >>>> ** >>>> ** >>>> ** >>>> ** >>>> ** >>>> ** >>>> ****** >>>> ****** >>>> >> ****************************************************************************************************************************************************************************************************************** >>>> **** >>>> * >>>> FAT: 5654824 Bytes read >>>> Omega2 # bootm 0x80001100 >>>> ## Booting image at 80001100 ... >>>> Bad Magic Number,1C994480 >>>> Omega2 # >>>> >>>> >>>> I have seen other examples starting a program directly with going to >>> the address but this didnt work either: >>>> Omega2 # go 0x80001100 >>>> ## Starting application at 0x80001100 ... >>>> >>>> omega freezes here. >>>> >>>> >>>> >>>> >>>> On 09/05/2017 10:12, Aleksandr Rybalko wrote: >>>> >>>> Fix things in order :) >>> Currently you have problem with LZMA, serial port later. >>> So, find version of lzma used to build linux firmware, MIPS routers world >> use about 5 incompatible versions. One of them, you can find here: >> http://project.zrouter.org/hg/zrouter/file/9ac53695a44d/tools/oldlzma >>>>> >>>>> >>>>> >>>>> 2017-05-09 7:03 GMT+03:00 Mori Hiroki >> : >>>>> Hi Mike >>>>>> Could you show u-boot printenv command result. >>>>>> >>>>>> Thanks >>>>>> >>>>>> >>>>>> ----- Original Message ----- >>>>>>> From: Mike Wolman >>>>>>> To: Mori Hiroki ; >> "freebsd-mips@freebsd.org" >>>>>>> Cc: >>>>>>> Date: 2017/5/9, Tue 10:30 >>>>>>> Subject: Re: onion omega2+ >>>>>>> >>>>>>> Hi Mori, >>>>>>> >>>>>>> When I compiled the world/kernel etc I used: >>>>>>> >>>>>>> X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT >>>>>>> ../freebsd-wifi-build/build/ bin/build ralink >>> buildkernel >>>>>>> I checked the serial stuff was the same as the >>> other configs in: >>>>>>> https://github.com/freebsd/ freebsd-wifi-build/ >>>>>>> and they looked the same. >>>>>>> >>>>>>> The OMEGA2.dtsi file has: >>>>>>> >>>>>>> chosen { >>>>>>> bootargs = >> "console=ttyS0,115200"; >>>>>>> }; >>>>>>> >>>>>>> >>>>>>> And mt7628an.dtsi has: serial0 = &uartlite; >>>>>>> >>>>>>> I dont think im getting as far as worrying about >>> the serial console at >>>>>>> the moment and need to get the kernel to uncompress >>> first. >>>>>>> Mike. >>>>>>> >>>>>>> >>>>>>> On 09/05/2017 02:20, Mori Hiroki wrote: >>>>>>>> Hi Mike >>>>>>>> >>>>>>>> In FreeBSD is use serial0 dts item to console. >>>>>>>> >>>>>>>> I think good to use this at start. >>>>>>>> >>>>>>>> freebsd/sys/gnu/dts/mips/ MT7628.dts >>>>>>>> >>>>>>>> ----- Original Message ----- >>>>>>>>> From: Mike Wolman >>>>>>>>> To: Mori Hiroki ; >>>>>>> "freebsd-mips@freebsd.org" >> >>>>>>>>> Cc: >>>>>>>>> Date: 2017/5/9, Tue 09:25 >>>>>>>>> Subject: Re: onion omega2+ >>>>>>>>> >>>>>>>>> Hi Mori, >>>>>>>>> >>>>>>>>> I grabbed the dts files from: >>>>>>>>> >>>>>>>>> https://github.com/WereCatf/ >> source/tree/image/target/ linux/ramips/dts >>>>>>> https://github.com/WereCatf/ source/blob/image/target/ >> linux/ramips/dts/OMEGA2P.dts >>>>>>> https://github.com/WereCatf/ source/blob/image/target/ >> linux/ramips/dts/OMEGA2.dtsi >>>>>>>>> If this is of any use from the default >>> linux install on the flash: >>>>>>>>> root@Omega-12BF:/proc# cat /proc/mtd >>>>>>>>> dev: size erasesize name >>>>>>>>> mtd0: 00030000 00010000 "u-boot" >>>>>>>>> mtd1: 00010000 00010000 "u-boot-env" >>>>>>>>> mtd2: 00010000 00010000 "factory" >>>>>>>>> mtd3: 01fb0000 00010000 "firmware" >>>>>>>>> mtd4: 00148842 00010000 "kernel" >>>>>>>>> mtd5: 01e677be 00010000 "rootfs" >>>>>>>>> mtd6: 01950000 00010000 "rootfs_data" >>>>>>>>> >>>>>>>>> >>>>>>>>> btw after posting i spotted and error in >>> what i did with: >>>>>>>>> mkimage -A mips -O linux -T kernel -C lzma >>> \ >>>>>>>>> -a 0x80001000 -e 0x80001100 \ >>>>>>>>> -n "FreeBSD" -d >>> kernel.MT7628_FDT.lzma >>>>>>>>> kernel.MT7628_FDT.ulzma.uImage >>>>>>>>> >>>>>>>>> I have redone this using the correct >>> compressed kernel ie: >>>>>>>>> mkimage -A mips -O linux -T kernel -C lzma >>> \ >>>>>>>>> -a 0x80001000 -e 0x80001100 \ >>>>>>>>> -n "FreeBSD" -d >>> kernel.MT7628_FDT.ulzma >>>>>>>>> kernel.MT7628_FDT.ulzma.uImage >>>>>>>>> >>>>>>>>> >>>>>>>>> But this didnt work. >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> On 09/05/2017 01:17, Mori Hiroki wrote: >>>>>>>>>> Hi. >>>>>>>>>> >>>>>>>>>> I think if U-Boot work memory make >>> broken then >>>>>>>>>> Uncompressing Kernel Image is NG. >>>>>>>>>> >>>>>>>>>> Some ARM U-Boot is use top address >>> in work memory. >>>>>>>>>> If this case your kernel start >>> address to move to >>>>>>>>>> after work memory. But I never see >>> in MIPS. >>>>>>>>>> And What is set FDT_DTS_FILE in >>> your kernel configuration ? >>>>>>>>>> ----- Original Message ----- >>>>>>>>>> >>>>>>>>>>> From: Mike Wolman >> >>>>>>>>>>> To: freebsd-mips@freebsd.org >>>>>>>>>>> Cc: >>>>>>>>>>> Date: 2017/5/9, Tue 07:48 >>>>>>>>>>> Subject: Re: onion omega2+ >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> More info in case anyone can >>> point me in the right direction. >>>>>>>>>>> I have found: >>>>>>>>>>> >>>>>>>>>>> https://forum.openwrt.org/ >> viewtopic.php?id=53865 >>>>>>>>>>> I have tried changing how lzma >>> compresses the kernel by >>>>>>> adding -d20 to >>>>>>>>>>> the build scripts eg: >>>>>>>>>>> >>>>>>>>>>> /usr/local/bin/lzma e >>>>>>>>>>> >>>>>>> /home/mike/omega2/src/../root/ >> mipsel_ap/boot/kernel.MT7628_ FDT/kernel >>>>>>>>> \ >>>>>>>>>>> /home/mike/omega2/src/../ >> tftpboot/kernel.MT7628_FDT. lzma >>> -d20 >>>>>>>>>>> This did not work. >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> Looking at the onion omega conf >>> I see that it uses mkuzip and >>>>>>> not lzma >>>>>>>>>>> with the following settings: >>>>>>>>>>> >>>>>>>>>>> X_FSIMAGE_CMD="mkuzip" >>>>>>>>>>> X_FSIMAGE_ARGS="-L -d -s 65536 >>> -v" >>>>>>>>>>> X_FSIMAGE_SUFFIX=".ulzma" >>>>>>>>>>> >>>>>>>>>>> So tried the following: >>>>>>>>>>> >>>>>>>>>>> mkuzip -L -d -s 65536 -v -o >>> kernel.MT7628_FDT.ulzma >>>>>>> kernel.MT7628_FDT >>>>>>>>>>> mkimage -A mips -O linux -T >>> kernel -C lzma \ >>>>>>>>>>> -a 0x80001000 -e 0x80001100 >>> \ >>>>>>>>>>> -n "FreeBSD" -d >>> kernel.MT7628_FDT.lzma >>>>>>>>>>> kernel.MT7628_FDT.ulzma.uImage >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> But this did not work either. >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> On 08/05/2017 19:41, Aleksandr >>> Rybalko wrote: >>>>>>>>>>>> Hi Mike! >>>>>>>>>>>> >>>>>>>>>>>> I see you have no "OK" >>> after >>>>>>> "Uncompressing Kernel >>>>>>>>> Image >>>>>>>>>>> ...", so >>>>>>>>>>>> first point uboot >>> decompressor fail. >>>>>>>>>>>> Why fail? Because you have >>> wrong base address in image: >>>>>>>>>>>> Load Address: fffffff2 >>>>>>>>>>>> Entry Point: fffffff2 >>>>>>>>>>>> MIPS32 machines have RAM >>> mapped to 0x80000000 address, >>>>>>> so adding >>>>>>>>> its >>>>>>>>>>>> size, you will get max >>> address (if 16MB, it will be >>>>>>> 0x81000000), >>>>>>>>> but >>>>>>>>>>>> you uboot image was >>> created with 0xfffffff2. >>>>>>>>>>>> Even more, unpacked kernel >>> expects it will be called at >>>>>>>>> 0x80001100. so >>>>>>>>>>>> if you have ELF kernel >>> (file with ELF header, like >>>>>>> every >>>>>>>>> executable) >>>>>>>>>>>> that file have to be >>> loaded at (0x80001100 - >>>>>>> ELF_HEADER_SIZE). >>>>>>>>>>>> In most cases it will be >>> 0x80001100 - 0x100 = >>>>>>> 0x80001000. But >>>>>>>>> sometime >>>>>>>>>>>> (I did not found why) it >>> can be 0x20, you can find it >>>>>>> by looking >>>>>>>>> at >>>>>>>>>>>> .text section in readelf >>> -S. >>>>>>>>>>>> So if you have kernel with >>> entry point 0x80001100 and >>>>>>> .text >>>>>>>>> segment >>>>>>>>>>>> offset 0x100, you have to >>> create uboot image with load >>>>>>> address >>>>>>>>>>>> 0x80001000 and entry point >>> 0x80001100. >>>>>>>>>>>> If that step successful >>> you will get: >>>>>>>>>>>> /Uncompressing Kernel >>> Image/ ... OK >>>>>>>>>>>> Starting kernel ... >>>>>>>>>>>> >>>>>>>>>>>> Last line mean, uboot did >>> jump into kernel code. >>>>>>>>>>>> Good luck. >>>>>>>>>>>> >>>>>>>>>>>> 2017-05-07 18:20 GMT+03:00 >>> Mike Wolman >>>>>>> >>>>>>>>>>> >> >: >>>>>>>>>>>> Hi, >>>>>>>>>>>> >>>>>>>>>>>> I am trying to get >>> FreeBSD working on this board - >>>>>>> I think I >>>>>>>>> am >>>>>>>>>>>> almost there in >>> getting it working but need some >>>>>>> help please. >>>>>>>>>>>> I have followed >>> instructions from the >>>>>>> freebsd-wifi-build and >>>>>>>>>>>> *think* I have got >>> everything correct - I am trying >>>>>>> to do >>>>>>>>> this on >>>>>>>>>>>> a CURRENT setup: >>>>>>>>>>>> >>>>>>>>>>>> FreeBSD >>> f64-current.mw.office 12.0-CURRENT FreeBSD >>>>>>>>> 12.0-CURRENT #0 >>>>>>>>>>>> r317887: Sun May 7 >>> 03:20:34 UTC 2017 >>>>>>>>>>>> >>>>>>>>> mike@f64-current.mw.office:/ >> usr/obj/usr/src/sys/GENERIC- NODEBUG amd64 >>>>>>>>>>>> $ cat >>> ~/.freebsd-wifi-build- settings.cfg >>>>>>>>>>>> X_SKIP_MORE_STUFF=YES >>>>>>>>>>>> >>> X_EXTRA_SRC_CONF=~/omega2/src. conf >>>>>>>>>>>> $ cat >>> ~/omega2/src.conf >>>>>>>>>>>> WITHOUT_CLANG=YES >>>>>>>>>>>> WITHOUT_CLANG_FULL=YES >>>>>>>>>>>> >>>>>>>>>>>> get dts files from >>> thread >>>>>>>>>>>> >>>>>>> http://community.onion.io/ topic/1099/openwrt-on-the- >> omega-2/8 >>>>>>>>>>>> >>>>>>>>> > topic/1099/openwrt-on-the- omega-2/8> >>>>>>>>>>>> cd >>> ~/omega2/src/sys/gnu/dts/mips >>>>>>>>>>>> fetch >>>>>>>>>>>> >>>>>>> https://raw.githubusercontent. com/WereCatf/source/image/ >> target/linux/ramips/dts/ OMEGA2.dtsi >>>>>>>>>>>> >>>>>>> > WereCatf/source/image/target/ linux/ramips/dts/OMEGA2.dtsi> >>>>>>>>>>>> fetch >>>>>>>>>>>> >>>>>>> https://raw.githubusercontent. com/WereCatf/source/image/ >> target/linux/ramips/dts/ OMEGA2.dts >>>>>>>>>>>> >>>>>>> > WereCatf/source/image/target/ linux/ramips/dts/OMEGA2.dts> >>>>>>>>>>>> fetch >>>>>>>>>>>> >>>>>>> https://raw.githubusercontent. com/WereCatf/source/image/ >> target/linux/ramips/dts/ OMEGA2P.dts >>>>>>>>>>>> >>>>>>> > WereCatf/source/image/target/ linux/ramips/dts/OMEGA2P.dts> >>>>>>>>>>>> X_DTS_FILE=OMEGA2P.dts >>> KERNCONF=MT7628_FDT >>>>>>>>>>>> >>> ../freebsd-wifi-build/build/ bin/build ralink >>>>>>> buildworld >>>>>>>>>>>> X_DTS_FILE=OMEGA2P.dts >>> KERNCONF=MT7628_FDT >>>>>>>>>>>> >>> ../freebsd-wifi-build/build/ bin/build ralink >>>>>>> buildkernel >>>>>>>>>>>> X_DTS_FILE=OMEGA2P.dts >>> KERNCONF=MT7628_FDT >>>>>>>>>>>> >>> ../freebsd-wifi-build/build/ bin/build ralink >>>>>>> installworld >>>>>>>>>>>> X_DTS_FILE=OMEGA2P.dts >>> KERNCONF=MT7628_FDT >>>>>>>>>>>> >>> ../freebsd-wifi-build/build/ bin/build ralink >>>>>>> installkernel >>>>>>>>>>>> X_DTS_FILE=OMEGA2P.dts >>> KERNCONF=MT7628_FDT >>>>>>>>>>>> >>> ../freebsd-wifi-build/build/ bin/build ralink >>>>>>> distribution >>>>>>>>>>>> X_DTS_FILE=OMEGA2P.dts >>> KERNCONF=MT7628_FDT >>>>>>>>>>>> >>> ../freebsd-wifi-build/build/ bin/build ralink >>>>>>> mfsroot >>>>>>>>>>>> X_DTS_FILE=OMEGA2P.dts >>> KERNCONF=MT7628_FDT >>>>>>>>>>>> >>> ../freebsd-wifi-build/build/ bin/build ralink >>>>>>> fsimage >>>>>>>>>>>> X_DTS_FILE=OMEGA2P.dts >>> KERNCONF=MT7628_FDT >>>>>>>>>>>> >>> ../freebsd-wifi-build/build/ bin/build ralink uboot >>>>>>>>>>>> Create flash: >>>>>>>>>>>> >>>>>>>>>>>> >>> X_FLASH=kernel.MT7628_FDT. lzma.flash >>>>>>>>>>>> dd if=/dev/zero bs=$(( >>> 0x200000 )) count=1 >>>>>>> of=${X_FLASH} >>>>>>>>>>>> dd >>> if=kernel.MT7628_FDT.lzma. uImage of=${X_FLASH} >>>>>>>>> conv=notrunc >>>>>>>>>>>> dd if= >>> mfsroot-ralink.img.lzma >> ${X_FLASH} >>>>>>>>>>>> $ readelf -h >>> kernel.MT7628_FDT | grep Entry >>>>>>>>>>>> Entry point >>> address: 0x80001100 >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> Now on the omega over >>> serial - I didnt get the >>>>>>> network >>>>>>>>> expansion >>>>>>>>>>>> doc thing so am doing >>> stuff with usb rather than >>>>>>> tftp >>>>>>>>>>>> I am not 100% sure >>> about the 0x80001100 and the >>>>>>> fatload and >>>>>>>>> have >>>>>>>>>>>> tried this >>>>>>>>>>>> >>>>>>>>>>>> Omega2 # fatload usb >>> 0:1 0x80001100 >>>>>>>>> /kernel.MT7628_FDT.lzma.flash >>>>>>>>>>>> * >>>>>>>>>>>> * >>>>>>>>>>>> Reading file >>>>>>> "/kernel.MT7628_FDT.lzma. flash" >>>>>>>>>>>> * >>>>>>>>>>>> ** >>>>>>>>>>>> ** >>>>>>>>>>>> ** >>>>>>>>>>>> ****** >>>>>>>>>>>> >>>>>>> ****************************** >> ****************************** ****************************** >> ****************************** ********************* >>>>>>>>>>>> ****** >>>>>>>>>>>> * >>>>>>>>>>>> FAT: 2108463 Bytes >>> read >>>>>>>>>>>> Omega2 # bootm >>> 0x80001100 >>>>>>>>>>>> ## Booting image at >>> 80001100 ... >>>>>>>>>>>> Image Name: >>> FreeBSD >>>>>>>>>>>> Image Type: MIPS >>> Linux Kernel Image (lzma >>>>>>> compressed) >>>>>>>>>>>> Data Size: >>> 1365122 Bytes = 1.3 MB >>>>>>>>>>>> Load Address: >>> fffffff2 >>>>>>>>>>>> Entry Point: >>> fffffff2 >>>>>>>>>>>> Verifying Checksum >>> ... OK >>>>>>>>>>>> Uncompressing >>> Kernel Image ... >>>>>>>>>>>> At this point nothing >>> happens and console hangs - >>>>>>> note in >>>>>>>>>>>> OMEGA2.dtsithe console >>> is set to ttyS0: >>>>>>>>>>>> bootargs = >>> "console=ttyS0,115200"; >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> I have also tried with >>> just kernel.MT7628_FDT and >>>>>>>>>>>> kernel.MT7628_FDT.lzma >>> but both fail: >>>>>>>>>>>> Omega2 # fatload usb >>> 0:1 0x80001100 >>>>>>>>> /kernel.MT7628_FDT.lzma.uImage >>>>>>>>>>>> * >>>>>>>>>>>> * >>>>>>>>>>>> Reading file >>>>>>> "/kernel.MT7628_FDT.lzma. uImage" >>>>>>>>>>>> * >>>>>>>>>>>> ** >>>>>>>>>>>> ** >>>>>>>>>>>> ****** >>>>>>>>>>>> >>>>>>> ****************************** >> ****************************** ****************************** >> ****************************** ****** >>>>>>>>>>>> ********** >>>>>>>>>>>> * >>>>>>>>>>>> FAT: 1365186 Bytes >>> read >>>>>>>>>>>> Omega2 # bootm >>> 0x80001100 >>>>>>>>>>>> ## Booting image at >>> 80001100 ... >>>>>>>>>>>> Image Name: >>> FreeBSD >>>>>>>>>>>> Image Type: MIPS >>> Linux Kernel Image (lzma >>>>>>> compressed) >>>>>>>>>>>> Data Size: >>> 1365122 Bytes = 1.3 MB >>>>>>>>>>>> Load Address: >>> fffffff2 >>>>>>>>>>>> Entry Point: >>> fffffff2 >>>>>>>>>>>> Verifying Checksum >>> ... OK >>>>>>>>>>>> Uncompressing >>> Kernel Image ... >>>>>>>>>>>> A few comments on the >>> hardware for anyone who wants >>>>>>> to get >>>>>>>>> one: >>>>>>>>>>>> Get the expansion dock >>> with serial port access - >>>>>>> the power >>>>>>>>> dock >>>>>>>>>>>> does not provide >>> serial access - i think it is >>>>>>> possible to >>>>>>>>> use an >>>>>>>>>>>> ftdi ttl serial >>> chip/cable but have not tried. >>>>>>>>>>>> Stupidly I forgot this >>> only has wifi access so you >>>>>>> are not >>>>>>>>> able to >>>>>>>>>>>> tftp boot this without >>> getting the ethernet network >>>>>>> expansion >>>>>>>>> but >>>>>>>>>>>> loading stuff up from >>> a usb memory stick is seem >>>>>>> fine from >>>>>>>>> u-boot. >>>>>>>>>>>> I do not think that it >>> is possible to boot from the >>>>>>> SD card >>>>>>>>> on the >>>>>>>>>>>> Omega2+ - which is a >>> shame. >>>>>>>>>>>> Thanks for reading, >>>>>>>>>>>> >>>>>>>>>>>> Mike. >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>> ______________________________ _________________ >>>>>>>>>>>> freebsd-mips@freebsd.org >>>>>>>>> mailing >>>>>>>>>>> list >>>>>>>>>>>> >>>>>>> https://lists.freebsd.org/ mailman/listinfo/freebsd-mips >>>>>>>>>>>> >>>>>>>>> > mailman/listinfo/freebsd-mips> >>>>>>>>>>>> To unsubscribe, send >>> any mail to >>>>>>>>>>>> >> "freebsd-mips-unsubscribe@ freebsd.org >>>>>>>>>>>> >>>>>>> " >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> -- >>>>>>>>>>>> WBW >>>>>>>>>>>> ------- >>>>>>>>>>>> Rybalko Aleksandr >> >>>>>>>> > >>>>>>>>>>> ______________________________ >> _________________ >>>>>>>>>>> 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 >>>>> >>>>> >>>> From owner-freebsd-mips@freebsd.org Tue May 9 13:56:30 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 293BDD65414 for ; Tue, 9 May 2017 13:56:30 +0000 (UTC) (envelope-from outbackdingo@gmail.com) Received: from mail-qt0-x231.google.com (mail-qt0-x231.google.com [IPv6:2607:f8b0:400d:c0d::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DC89D1FF for ; Tue, 9 May 2017 13:56:29 +0000 (UTC) (envelope-from outbackdingo@gmail.com) Received: by mail-qt0-x231.google.com with SMTP id t26so1277524qtg.0 for ; Tue, 09 May 2017 06:56:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=sQ9j9xaEJctPcl0N4Akx3Cd9pWTg85fxFvcGfRqYjGU=; b=vZzmB2CkQ2f/y36Bghr6iNDGkZEFGcP+kqCCAK1qPZRf2zzNpRNhUravIk9E5MKjOY 7Ly2+7vW1IOPQ7PnhiHY5+nP0YUGDNGG6XsmQaVOizxF//p0msBpI0oxrHNhinUH+EpJ Za0Yc8Dd9BCrxAsfkiqMLrAfbhGaKBZkC7ikkPsv3CaOePbuhdn+4QXumoXXQ5nprrtq 3dGrK3QT1xNs2lqyAF3jnNDc+MjSGeYYQIuqWKVIvNXmxdd94wn9h6IJjhlXONBze6Jd +LRCeHz6Rvtfc4QNrYIGN7nj53akQY6wO1o8rqPj6ylCJndy8GLiCJ82wyokE+ytElNy TLSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=sQ9j9xaEJctPcl0N4Akx3Cd9pWTg85fxFvcGfRqYjGU=; b=chTKIUyE7tBDDoCLJMci3tSkR0fffibp4NbQGnoBSzBqJ8gO8K6RR2Wmxyhy5RKsyO VDqX84lObS/8otzuqOATaaPpZGgbKdQ7wzzD1Y/S27AWzYGtU513euIJc2Q5uqxqxJW+ WSXjoEnTqbT+q226B/FntEXQi1UH6hqekb6jKoMYp6TlZCzZ/NRUVTPOhnkLfkpIhr+M yr5xzse3Sbd2UmANMpzhC38V+kNaZZzpilvHx2W4AbP71LIKhZrIZUcz+3YKAyeGSQki VqjL+asti+Sk7yFALKJ9fXfPtGHqr4t1CBls2+iq+7zJJzUb6ylmtBjBWs+V/DQP6o6l NtcA== X-Gm-Message-State: AODbwcBZbzodj9G6nijYUKAvIPAB1hDPGOlhnhHspcnG30yYK9uUqgd/ ffXOApCXVYzldhbo0Fw1al3fGX5UKQ== X-Received: by 10.200.4.162 with SMTP id s34mr200599qtg.35.1494338188958; Tue, 09 May 2017 06:56:28 -0700 (PDT) MIME-Version: 1.0 Received: by 10.237.62.111 with HTTP; Tue, 9 May 2017 06:55:48 -0700 (PDT) In-Reply-To: <102de390-63ca-a156-2208-bea3d5eea0f9@wolman.co.uk> References: <694efc3a-e183-35a1-a0bf-9a9c0d708826@wolman.co.uk> <410144.69078.qm@web101716.mail.ssk.yahoo.co.jp> <128807.28836.qm@web101715.mail.ssk.yahoo.co.jp> <2d555385-8258-fd75-e4a3-a1e59bf86314@wolman.co.uk> <651873.78746.qm@web101702.mail.ssk.yahoo.co.jp> <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> From: Outback Dingo Date: Tue, 9 May 2017 15:55:48 +0200 Message-ID: Subject: Re: onion omega2+ To: Mike Wolman Cc: Mori Hiroki , Aleksandr Rybalko , "freebsd-mips@freebsd.org" Content-Type: text/plain; charset=UTF-8 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: Tue, 09 May 2017 13:56:30 -0000 On Tue, May 9, 2017 at 3:42 PM, Mike Wolman wrote: > > Ok got somewhere with this > > > USB_STORAGE: 1 Storage Device(s) found > Omega2 # fatload usb 0:1 0x80800000 kernel.MT7628_FDT.uImage > * > * > Reading file "kernel.MT7628_FDT.uImage" > * > ** > ** > ** > ** > ** > ** > ** > ** > ** > ** > ****** > ****** > ****************************************************************************************************************************************************************************************************************** > **** > * > FAT: 5654824 Bytes read > Omega2 # go > Usage: > go - start application at address 'addr' > > Omega2 # go 0x80001000 > ## Starting application at 0x80001000 ... > > > > I have tried with: > > Omega2 # go 0x80001100 > ## Starting application at 0x80001100 ... > > > > I have tried using the 0x80001000 for fatload as well: > > > USB_STORAGE: 1 Storage Device(s) found > Omega2 # help fatload > fatload [bytes] > - load binary file 'filename' from 'dev' on 'interface' > to address 'addr' from dos filesystem > > Reading file "kernel.MT7628_FDT.uImage" > * > ** > ** > ** > ** > ** > ** > ** > ** > ** > ** > ****** > ****** > ****************************************************************************************************************************************************************************************************************** > **** > * > FAT: 5654824 Bytes read > Omega2 # go 0x80001100 > ## Starting application at 0x80001100 ... > > > > However: > > 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: 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 ... > > > But it doesnt go any further > I had a similar situation on a device, it wasnt printing output to the screen but was actually booted i think you might need a patch for u-boot ... i could be off base here but sounds quite similiar From owner-freebsd-mips@freebsd.org Tue May 9 13:59:30 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 E6BFED65569 for ; Tue, 9 May 2017 13:59:30 +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 862CD2EE for ; Tue, 9 May 2017 13:59:29 +0000 (UTC) (envelope-from mike@wolman.co.uk) Received: from [192.168.3.50] ([80.229.66.11]) by avasout08 with smtp id JDzS1v0070EahWw01DzTaq; Tue, 09 May 2017 14:59:28 +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=IkcTkHD0fZMA:10 a=UmSUZ3ptAAAA:8 a=sCImhYakFsd--PwlTwoA:9 a=Ej22SG5vZe84VEVn:21 a=AQugpU1XAQOBFSzT:21 a=QEXdDO2ut3YA:10 a=FyGKTEvU35uc88vWBdgE:22 Subject: Re: onion omega2+ To: Outback Dingo References: <694efc3a-e183-35a1-a0bf-9a9c0d708826@wolman.co.uk> <410144.69078.qm@web101716.mail.ssk.yahoo.co.jp> <128807.28836.qm@web101715.mail.ssk.yahoo.co.jp> <2d555385-8258-fd75-e4a3-a1e59bf86314@wolman.co.uk> <651873.78746.qm@web101702.mail.ssk.yahoo.co.jp> <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> Cc: Mori Hiroki , Aleksandr Rybalko , "freebsd-mips@freebsd.org" From: Mike Wolman Message-ID: <7346c25f-1ce0-ad28-da77-3e7e9f429311@wolman.co.uk> Date: Tue, 9 May 2017 14:59:25 +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: 7bit 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: Tue, 09 May 2017 13:59:31 -0000 On 09/05/2017 14:55, Outback Dingo wrote: > On Tue, May 9, 2017 at 3:42 PM, Mike Wolman wrote: >> Ok got somewhere with this >> >> >> USB_STORAGE: 1 Storage Device(s) found >> Omega2 # fatload usb 0:1 0x80800000 kernel.MT7628_FDT.uImage >> * >> * >> Reading file "kernel.MT7628_FDT.uImage" >> * >> ** >> ** >> ** >> ** >> ** >> ** >> ** >> ** >> ** >> ** >> ****** >> ****** >> ****************************************************************************************************************************************************************************************************************** >> **** >> * >> FAT: 5654824 Bytes read >> Omega2 # go >> Usage: >> go - start application at address 'addr' >> >> Omega2 # go 0x80001000 >> ## Starting application at 0x80001000 ... >> >> >> >> I have tried with: >> >> Omega2 # go 0x80001100 >> ## Starting application at 0x80001100 ... >> >> >> >> I have tried using the 0x80001000 for fatload as well: >> >> >> USB_STORAGE: 1 Storage Device(s) found >> Omega2 # help fatload >> fatload [bytes] >> - load binary file 'filename' from 'dev' on 'interface' >> to address 'addr' from dos filesystem >> >> Reading file "kernel.MT7628_FDT.uImage" >> * >> ** >> ** >> ** >> ** >> ** >> ** >> ** >> ** >> ** >> ** >> ****** >> ****** >> ****************************************************************************************************************************************************************************************************************** >> **** >> * >> FAT: 5654824 Bytes read >> Omega2 # go 0x80001100 >> ## Starting application at 0x80001100 ... >> >> >> >> However: >> >> 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: 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 ... >> >> >> But it doesnt go any further >> > > > I had a similar situation on a device, it wasnt printing output to the > screen but was actually booted > i think you might need a patch for u-boot ... i could be off base here > but sounds quite similiar There is a red led on the expansion board - when it boots and hands over to linux kernel this light goes off From owner-freebsd-mips@freebsd.org Tue May 9 14:07:18 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 38759D6581E for ; Tue, 9 May 2017 14:07:18 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from nh503-vm13.bullet.mail.kks.yahoo.co.jp (nh503-vm13.bullet.mail.kks.yahoo.co.jp [183.79.56.199]) by mx1.freebsd.org (Postfix) with SMTP id 76559A8C for ; Tue, 9 May 2017 14:07:17 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from [183.79.100.141] by nh503.bullet.mail.kks.yahoo.co.jp with NNFMP; 09 May 2017 14:07:14 -0000 Received: from [183.79.101.63] by t504.bullet.mail.kks.yahoo.co.jp with NNFMP; 09 May 2017 14:07:14 -0000 Received: from [127.0.0.1] by omp507.mail.kks.yahoo.co.jp with NNFMP; 09 May 2017 14:07:14 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 917712.78686.bm@omp507.mail.kks.yahoo.co.jp Received: (qmail 45409 invoked by uid 60001); 9 May 2017 14:07:14 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.jp; s=yj20110701; t=1494338834; bh=Zq0GyWYPucLn2SnrJv7H5CiVIhBPDMFv1DYiL3bn6O0=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:X-YMail-JAS:References:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=eOKOYcDxtUSHRrT28inxG169vXNfjFlk4+q8aWWDL3SHEz7gFaa3Ocuv7DjZpUnpygOcGUK0BV5727jqENLLd7ImFvtV5NyNwvYdFJTuqjH4jWjUMjTbUMnwsozZNYEtt4LIHy/9hsLhewoL0w8ZN4k9Y6xbTtL2qrBpRB/lq9I= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=yj20110701; d=yahoo.co.jp; h=Message-ID:X-YMail-OSG:Received:X-Mailer:X-YMail-JAS:References:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=Uc9yBBUt8BqWCHXePmNK+c6URyU3m0D9laHYpury0D7EqSBkUrncKQfRe+TNhA0/5tTLoiqsoxNdfeG6l12cYf69yH04KmfP3rXoDhSZxvquyr+sX7lxcTzgDLE/47I13IlTlvhJihDZ1REQmG3cHz//qycDJMGbs3BB77JLZhw=; Message-ID: <541011.41820.qm@web101719.mail.ssk.yahoo.co.jp> X-YMail-OSG: W9F72S4VM1k.aGTumPFh1DoZQ9YnuC8XlgXGYQg_Efvj5qzg4fLY.ii6qZhuH2Nu5pVw9pCObv1ojJioLvnIhrWIF_YaeKdmos.BOCv9Ms0QzBhbdctyeq5kzyMXn415lP02CnhLegmrWwQDQnvs3PFUqKa.EojTw.C6vq5jvZ1SCkKYI6F3UCRvUlyDKsHpuJ5xU7sEckjWyPEvQ.u8_9q2bhjOxXf.AjBWPTy96L0G_6hN7WuLJIroFHR3oVZ3s9z6NXSIPJW_5ytWaiMZ2EGPvUp5sPq7cMsOVyloD43YOIIV8OVziIC3iU7V5mUx2ayduhKUWCXHZ.RO3K38CadkFj4S.McIGKqPFHR1kWlbMiWPiBNT6CMhKq.Tlg6HkwAultTROeZrQLLSbAeuu_juibq5bWNr8VNee25fNW6asA5r9dLojQcavbinfZQPK.spyHLsbhAzfEnWfdDGVcrDjK8EUapyXE_l31JbaD_aP0xfG2yIRc7x6QnqN5QYELv8KAwC2ewgTFjdQvXaG6MVo0NTUVUCls24BSrBLokQBVyt6S3bzpevuqA7ihcqaAjINr6i2YQwdnM.LnVTCaYKY7iSnvp85_OE.0Lr67VIFO4gEzPH_gSCasCLvE5ZJ8se6qc3FJJcNuxv0u8kl3.ZuxuifLKzRiQ2oIJ_wBlQ.BlUQyo- Received: from [210.20.198.8] by web101719.mail.ssk.yahoo.co.jp via HTTP; Tue, 09 May 2017 23:07:13 JST X-Mailer: YahooMailWebService/0.8.111_71 X-YMail-JAS: KhjsVbkVM1lEpTVYuZLFPoh00h3A0lCfKS6mYuHN_xpkDXFSGhGu1xTI30JAxvdWIb1wSHLmeScYXYZvB6ncq1yU2RNqlL16AeJUvMc55Rfm99jstWYA8i7.yUCayUyhm2r8 References: <694efc3a-e183-35a1-a0bf-9a9c0d708826@wolman.co.uk> <410144.69078.qm@web101716.mail.ssk.yahoo.co.jp> <128807.28836.qm@web101715.mail.ssk.yahoo.co.jp> <2d555385-8258-fd75-e4a3-a1e59bf86314@wolman.co.uk> <651873.78746.qm@web101702.mail.ssk.yahoo.co.jp> <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> Date: Tue, 9 May 2017 23:07:13 +0900 (JST) From: Mori Hiroki Reply-To: Mori Hiroki Subject: Re: onion omega2+ To: Mike Wolman , Aleksandr Rybalko Cc: "freebsd-mips@freebsd.org" In-Reply-To: <102de390-63ca-a156-2208-bea3d5eea0f9@wolman.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable 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: Tue, 09 May 2017 14:07:18 -0000 Hi. Mike=0A=0A> Starting kernel ...=0A=0A=0AI think success to boot.=0A=0AN= ext is Entry point miss or uart console issue.=0A=0A=0AEntry point can chec= k on ELF kernel file by=A0readelf command.=0A=0AUart console issue is in dt= s file.=0A=0A----- Original Message -----=0A=0A> From: Mike Wolman =0A> To: Mori Hiroki ; Aleksandr Rybalko = =0A> Cc: "freebsd-mips@freebsd.org" =0A> Date: 2017/5/9, Tue 22:42=0A> Subject: Re: onion omega2+=0A> =0A> = =0A> Ok got somewhere with this=0A> =0A> =0A> USB_STORAGE: 1 Storage Device= (s) found=0A> Omega2 # fatload usb 0:1 0x80800000 kernel.MT7628_FDT.uImage= =0A> *=0A> *=0A> Reading file "kernel.MT7628_FDT.uImage"=0A> *=0A> **=0A> *= *=0A> **=0A> **=0A> **=0A> **=0A> **=0A> **=0A> **=0A> **=0A> ******=0A> **= ****=0A> ******************************************************************= ***************************************************************************= *********************************************************************=0A> *= ***=0A> *=0A> FAT: 5654824 Bytes read=0A> Omega2 # go=0A> Usage:=0A> go=A0 = =A0 =A0 - start application at address 'addr'=0A> =0A> Omega2 # go 0x800010= 00=0A> ## Starting application at 0x80001000 ...=0A> =0A> =0A> =0A> I have = tried with:=0A> =0A> Omega2 # go 0x80001100=0A> ## Starting application at = 0x80001100 ...=0A> =0A> =0A> =0A> I have tried using the 0x80001000 for fat= load as well:=0A> =0A> =0A> USB_STORAGE: 1 Storage Device(s) found=0A> Omeg= a2 # help fatload=0A> fatload =A0 = =0A> [bytes]=0A> =A0 =A0 - load binary file 'filename' from 'dev' on =0A>= 'interface'=0A> =A0 =A0 =A0 to address 'addr' from dos filesystem=0A> =0A= > Reading file "kernel.MT7628_FDT.uImage"=0A> *=0A> **=0A> **=0A> **=0A> **= =0A> **=0A> **=0A> **=0A> **=0A> **=0A> **=0A> ******=0A> ******=0A> ******= ***************************************************************************= ***************************************************************************= ******************************************************=0A> ****=0A> *=0A> F= AT: 5654824 Bytes read=0A> Omega2 # go 0x80001100=0A> ## Starting applicati= on at 0x80001100 ...=0A> =0A> =0A> =0A> However:=0A> =0A> Omega2 # fatload = usb 0:1 0x80800000 kernel.MT7628_FDT.uImage=0A> *=0A> *=0A> Reading file "k= ernel.MT7628_FDT.uImage"=0A> *=0A> **=0A> **=0A> **=0A> **=0A> **=0A> **=0A= > **=0A> **=0A> **=0A> **=0A> ******=0A> ******=0A> ***********************= ***************************************************************************= ***************************************************************************= *************************************=0A> ****=0A> *=0A> FAT: 5654824 Bytes= read=0A> Omega2 # bootm 0x80800000=0A> ## Booting image at 80800000 ...=0A= > =A0 =A0 Image Name:=A0 FreeBSD=0A> =A0 =A0 Image Type:=A0 MIPS Linux Ke= rnel Image (uncompressed)=0A> =A0 =A0 Data Size:=A0 =A0 5654760 Bytes =3D= =A0 5.4 MB=0A> =A0 =A0 Load Address: 80001000=0A> =A0 =A0 Entry Point:=A0 8= 0001100=0A> =A0 =A0 Verifying Checksum ... OK=0A> OK=0A> No initrd=0A> ## T= ransferring control to Linux (at address 80001100) ...=0A> ## Giving linux = memsize in MB, 128=0A> =0A> Starting kernel ...=0A> =0A> =0A> But it doesnt= go any further=0A> =0A> =0A> =0A> =0A> =0A> =0A> On 09/05/2017 14:20, Mori= Hiroki wrote:=0A>> Hi.=0A>> =0A>> One more.=0A>> =0A>> Omega2 # fatload= usb 0:1 0x80800000 kernel.MT7628_FDT.uImage=0A>> =0A>> Omega2 # bootm 0x8= 0800000=0A>> =0A>> ----- Original Message -----=0A>>> From: Mike Wolman <= mike@wolman.co.uk>=0A>>> To: Mori Hiroki ; Aleksand= r Rybalko =0A> =0A>>> Cc: "freebsd-mips@freebsd.org" =0A> = =0A>>> Date: 2017/5/9, Tue 22:01=0A>>> Subject:= Re: onion omega2+=0A>>> =0A>>> =0A>>> No joy=0A>>> =0A>>> Omega2 # fatlo= ad usb 0:1 0x80800000 kernel.MT7628_FDT.uImage=0A>>> *=0A>>> *=0A>>> Rea= ding file "kernel.MT7628_FDT.uImage"=0A>>> *=0A>>> **=0A>>> **=0A>>> **= =0A>>> **=0A>>> **=0A>>> **=0A>>> **=0A>>> **=0A>>> **=0A>>> **=0A>>= > ******=0A>>> ******=0A>>> =0A> ****************************************= ***************************************************************************= ***************************************************************************= ********************=0A>>> ****=0A>>> *=0A>>> FAT: 5654824 Bytes read=0A= >>> Omega2 # bootm=0A>>> ## Booting image at 80100000 ...=0A>>> Bad Magi= c Number,CE6AE7C4=0A>>> =0A>>> I am going to get a different usb memory st= ick and rebuild the kernel=0A>>> later on as i got an error when last writ= ing to the usb memory key and=0A>>> its quite old now so just want to elim= inate it from testing.=0A>>> =0A>>> =0A>>> On 09/05/2017 13:52, Mori Hirok= i wrote:=0A>>>> =A0 Hi.=0A>>>> =0A>>>> =A0 This is my sample operation ge= t image from network and boot.=0A>>>> =0A>>>> =A0 RT3052 # tftpboot 0x8080= 0000 =0A> Planex_MZK-WNH_kernel.kbin.oldlzma.uboot=0A>>>> =A0 RT3052 # boo= tm=0A>>>> =0A>>>> =0A>>>> =A0 I don't use USB support U-Boot. But I think = fatload command =0A> argument is=0A>>>> =A0 temporary memory address not k= ernel address.=0A>>>> =0A>>>> =A0 How about this.=0A>>>> =0A>>>> =A0 Omeg= a2 # fatload usb 0:1 0x80800000 kernel.MT7628_FDT.uImage=0A>>>> =A0 Omega2= # bootm=0A>>>> =0A>>>> =A0 ----- Original Message -----=0A>>>>> =A0 From= : Mike Wolman =0A>>>>> =A0 To: Aleksandr Rybalko ; Mori Hiroki=0A>>> =0A>>>>> =A0 Cc: "fr= eebsd-mips@freebsd.org"=0A>>> =0A>>>>> =A0 Date= : 2017/5/9, Tue 20:48=0A>>>>> =A0 Subject: Re: onion omega2+=0A>>>>> =0A>>= >>> =0A>>>>> =0A>>>>> =0A>>>>> =A0 Is it possible to exclude the compressi= on of the kernel/image =0A> for=0A>>>> =A0 =A0 =A0 =A0 now eg:=0A>>>>> =A0 = mkimage -A mips -C none -O linux -T kernel -a 0x80001000 -e=0A>>>> =A0 =A0= =A0 =A0 0x80001100 -n "FreeBSD" -d kernel.MT7628_FDT=0A>>>> =A0 =A0 =A0 = =A0 kernel.MT7628_FDT.uImage=0A>>>>> =A0 I have just tried the above but w= hen booting I get a Bad =0A> Magic=0A>>>> =A0 =A0 =A0 =A0 Number.=0A>>>>> = =A0 Omega2 # fatload usb 0:1 0x80001000 kernel.MT7628_FDT.uImage=0A>>>>> = =A0 *=0A>>>>> =A0 *=0A>>>>> =A0 Reading file "kernel.MT7628_FDT.uImage"= =0A>>>>> =A0 *=0A>>>>> =A0 **=0A>>>>> =A0 **=0A>>>>> =A0 **=0A>>>>> =A0= **=0A>>>>> =A0 **=0A>>>>> =A0 **=0A>>>>> =A0 **=0A>>>>> =A0 **=0A>>>>= > =A0 **=0A>>>>> =A0 **=0A>>>>> =A0 ******=0A>>>>> =A0 ******=0A>>>>> = =0A>>> =0A> ***************************************************************= ***************************************************************************= ************************************************************************=0A= >>>>> =A0 ****=0A>>>>> =A0 *=0A>>>>> =A0 FAT: 5654824 Bytes read=0A>>>>>= =A0 Omega2 # bootm 0x80001100=0A>>>>> =A0 ## Booting image at 80001100 .= ..=0A>>>>> =A0 Bad Magic Number,1C994480=0A>>>>> =A0 Omega2 #=0A>>>>> =0A= >>>>> =0A>>>>> =A0 I have seen other examples starting a program directly = with =0A> going to=0A>>>> =A0 =A0 =A0 =A0 the address but this didnt work e= ither:=0A>>>>> =A0 Omega2 # go 0x80001100=0A>>>>> =A0 ## Starting applica= tion at 0x80001100 ...=0A>>>>> =0A>>>>> =A0 omega freezes here.=0A>>>>> = =0A>>>>> =0A>>>>> =0A>>>>> =0A>>>>> =A0 On 09/05/2017 10:12, Aleksandr Ryb= alko wrote:=0A>>>>> =0A>>>>> =A0 Fix things in order :)=0A>>>> =A0 Curren= tly you have problem with LZMA, serial port later.=0A>>>> =A0 So, find ver= sion of lzma used to build linux firmware, MIPS =0A> routers world=0A>>> u= se about 5 incompatible versions. One of them, you can find here:=0A>>> ht= tp://project.zrouter.org/hg/zrouter/file/9ac53695a44d/tools/oldlzma=0A>>>>>= > =0A>>>>>> =0A>>>>>> =0A>>>>>> =A0 2017-05-09 7:03 GMT+03:00 Mori Hiroki= =0A>>> :=0A>>>>>> =A0 Hi Mike=0A>>>>>>> =A0 Could= you show u-boot printenv command result.=0A>>>>>>> =0A>>>>>>> =A0 Thanks= =0A>>>>>>> =0A>>>>>>> =0A>>>>>>> =A0 ----- Original Message -----=0A>>>>>>= >> =A0 From: Mike Wolman =0A>>>>>>>> =A0 To: Mori Hiro= ki ;=0A>>> "freebsd-mips@freebsd.org" =0A>>>>>>>> =A0 Cc:=0A>>>>>>>> =A0 Date: 2017/5/9, Tue 10:30= =0A>>>>>>>> =A0 Subject: Re: onion omega2+=0A>>>>>>>> =0A>>>>>>>> =A0 Hi = Mori,=0A>>>>>>>> =0A>>>>>>>> =A0 When I compiled the world/kernel etc I us= ed:=0A>>>>>>>> =0A>>>>>>>> =A0 X_DTS_FILE=3DOMEGA2P.dts KERNCONF=3DMT7628_= FDT=0A>>>>>>>> =A0 ../freebsd-wifi-build/build/ bin/build ralink=0A>>>> = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 buildkernel=0A>>>>>>>> =A0 I check= ed the serial stuff was the same as the=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 other configs in:=0A>>>>>>>> =A0 https://github.com/freebsd/ fr= eebsd-wifi-build/=0A>>>>>>>> =A0 and they looked the same.=0A>>>>>>>> =0A>= >>>>>>> =A0 The OMEGA2.dtsi file has:=0A>>>>>>>> =0A>>>>>>>> =A0 =A0 =A0 = =A0 =A0 =A0 chosen {=0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 b= ootargs =3D=0A>>> "console=3DttyS0,115200";=0A>>>>>>>> =A0 =A0 =A0 =A0 =A0= =A0 };=0A>>>>>>>> =0A>>>>>>>> =0A>>>>>>>> =A0 And mt7628an.dtsi has:=A0 = serial0 =3D &uartlite;=0A>>>>>>>> =0A>>>>>>>> =A0 I dont think im getting= as far as worrying about=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 th= e serial console at=0A>>>>>>>> =A0 the moment and need to get the kernel t= o =0A> uncompress=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 first.=0A>= >>>>>>> =A0 Mike.=0A>>>>>>>> =0A>>>>>>>> =0A>>>>>>>> =A0 On 09/05/2017 02= :20, Mori Hiroki wrote:=0A>>>>>>>>> =A0 =A0 =A0 Hi Mike=0A>>>>>>>>> =0A>>>>= >>>>> =A0 =A0 =A0 In FreeBSD is use serial0 dts item to =0A> console.=0A>>>= >>>>>> =0A>>>>>>>>> =A0 =A0 =A0 I think good to use this at start.=0A>>>>>>= >>> =0A>>>>>>>>> =A0 =A0 =A0 freebsd/sys/gnu/dts/mips/ MT7628.dts=0A>>>>>>>= >> =0A>>>>>>>>> =A0 =A0 =A0 ----- Original Message -----=0A>>>>>>>>>> =A0 = =A0 =A0 From: Mike Wolman =0A> =0A>>>>>>>>>> =A0 =A0 =A0= To: Mori Hiroki =0A> ;=0A>>>>>>>> =A0 "freebsd-mip= s@freebsd.org"=0A>>> =0A>>>>>>>>>> =A0 =A0 =A0 C= c:=0A>>>>>>>>>> =A0 =A0 =A0 Date: 2017/5/9, Tue 09:25=0A>>>>>>>>>> =A0 =A0 = =A0 Subject: Re: onion omega2+=0A>>>>>>>>>> =0A>>>>>>>>>> =A0 =A0 =A0 Hi Mo= ri,=0A>>>>>>>>>> =0A>>>>>>>>>> =A0 =A0 =A0 I grabbed the dts files from:=0A= >>>>>>>>>> =0A>>>>>>>>>> =A0 =A0 =A0 https://github.com/WereCatf/=0A>>> so= urce/tree/image/target/ linux/ramips/dts=0A>>>>>>>> =A0 https://github.com/= WereCatf/ =0A> source/blob/image/target/=0A>>> linux/ramips/dts/OMEGA2P.dt= s=0A>>>>>>>> =A0 https://github.com/WereCatf/ =0A> source/blob/image/target= /=0A>>> linux/ramips/dts/OMEGA2.dtsi=0A>>>>>>>>>> =A0 =A0 =A0 If this is o= f any use from the default=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 l= inux install on the flash:=0A>>>>>>>>>> =A0 =A0 =A0 root@Omega-12BF:/proc# = cat /proc/mtd=0A>>>>>>>>>> =A0 =A0 =A0 dev:=A0 =A0 size=A0 erasesize=A0 na= me=0A>>>>>>>>>> =A0 =A0 =A0 mtd0: 00030000 00010000 =0A> "u-boot"=0A>>>>>>>= >>> =A0 =A0 =A0 mtd1: 00010000 00010000 =0A> "u-boot-env"=0A>>>>>>>>>> =A0 = =A0 =A0 mtd2: 00010000 00010000 =0A> "factory"=0A>>>>>>>>>> =A0 =A0 =A0 mtd= 3: 01fb0000 00010000 =0A> "firmware"=0A>>>>>>>>>> =A0 =A0 =A0 mtd4: 0014884= 2 00010000 =0A> "kernel"=0A>>>>>>>>>> =A0 =A0 =A0 mtd5: 01e677be 00010000 = =0A> "rootfs"=0A>>>>>>>>>> =A0 =A0 =A0 mtd6: 01950000 00010000 =0A> "rootfs= _data"=0A>>>>>>>>>> =0A>>>>>>>>>> =0A>>>>>>>>>> =A0 =A0 =A0 btw after posti= ng i spotted and error =0A> in=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 what i did with:=0A>>>>>>>>>> =A0 =A0 =A0 mkimage -A mips -O linux -T k= ernel -C =0A> lzma=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 \=0A>>>>>= >>>>> =A0 =A0 =A0 =A0 =A0 -a 0x80001000 -e 0x80001100 \=0A>>>>>>>>>> =A0 = =A0 =A0 =A0 =A0 -n "FreeBSD" -d=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 kernel.MT7628_FDT.lzma=0A>>>>>>>>>> =A0 =A0 =A0 kernel.MT7628_FDT.ulzma= .uImage=0A>>>>>>>>>> =0A>>>>>>>>>> =A0 =A0 =A0 I have redone this using the= correct=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 compressed kernel i= e:=0A>>>>>>>>>> =A0 =A0 =A0 mkimage -A mips -O linux -T kernel -C =0A> lzma= =0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 \=0A>>>>>>>>>> =A0 =A0 =A0 = =A0 =A0 -a 0x80001000 -e 0x80001100 \=0A>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 -n "= FreeBSD" -d=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 kernel.MT7628_FD= T.ulzma=0A>>>>>>>>>> =A0 =A0 =A0 kernel.MT7628_FDT.ulzma.uImage=0A>>>>>>>>>= > =0A>>>>>>>>>> =0A>>>>>>>>>> =A0 =A0 =A0 But this didnt work.=0A>>>>>>>>>>= =0A>>>>>>>>>> =0A>>>>>>>>>> =0A>>>>>>>>>> =A0 =A0 =A0 On 09/05/2017 01:17,= Mori Hiroki =0A> wrote:=0A>>>>>>>>>>> =A0 =A0 =A0 Hi.=0A>>>>>>>>>>> =0A>>= >>>>>>>>> =A0 =A0 =A0 I think if U-Boot work memory =0A> make=0A>>>> =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 broken then=0A>>>>>>>>>>> =A0 =A0 =A0 = Uncompressing Kernel Image is NG.=0A>>>>>>>>>>> =0A>>>>>>>>>>> =A0 =A0 =A0 = Some ARM U-Boot is use top =0A> address=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 in work memory.=0A>>>>>>>>>>> =A0 =A0 =A0 If this case your k= ernel start=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 address to move = to=0A>>>>>>>>>>> =A0 =A0 =A0 after work memory. But I never =0A> see=0A>>>= > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 in MIPS.=0A>>>>>>>>>>> =A0 =A0 = =A0 And What is set FDT_DTS_FILE=A0 in=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 your kernel configuration ?=0A>>>>>>>>>>> =A0 =A0 =A0 ----- Or= iginal Message -----=0A>>>>>>>>>>> =0A>>>>>>>>>>>> =A0 =A0 =A0 From: Mike = Wolman=0A>>> =0A>>>>>>>>>>>> =A0 =A0 =A0 To: freebsd-m= ips@freebsd.org=0A>>>>>>>>>>>> =A0 =A0 =A0 Cc:=0A>>>>>>>>>>>> =A0 =A0 =A0 = Date: 2017/5/9, Tue 07:48=0A>>>>>>>>>>>> =A0 =A0 =A0 Subject: Re: onion o= mega2+=0A>>>>>>>>>>>> =0A>>>>>>>>>>>> =0A>>>>>>>>>>>> =A0 =A0 =A0 More inf= o in case anyone can=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 point m= e in the right direction.=0A>>>>>>>>>>>> =A0 =A0 =A0 I have found:=0A>>>>>= >>>>>>> =0A>>>>>>>>>>>> =A0 =A0 =A0 https://forum.openwrt.org/=0A>>> viewt= opic.php?id=3D53865=0A>>>>>>>>>>>> =A0 =A0 =A0 I have tried changing how = =0A> lzma=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 compresses the ker= nel by=0A>>>>>>>> =A0 adding -d20 to=0A>>>>>>>>>>>> =A0 =A0 =A0 the build= scripts eg:=0A>>>>>>>>>>>> =0A>>>>>>>>>>>> =A0 =A0 =A0 /usr/local/bin/lzm= a e=0A>>>>>>>>>>>> =A0 =A0 =0A>>>>>>>> =A0 /home/mike/omega2/src/../root/= =0A>>> mipsel_ap/boot/kernel.MT7628_ FDT/kernel=0A>>>>>>>>>> =A0 =A0 =A0 \= =0A>>>>>>>>>>>> =A0 =A0 =A0 /home/mike/omega2/src/../=0A>>> tftpboot/kern= el.MT7628_FDT. lzma=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 -d20=0A>= >>>>>>>>>>> =A0 =A0 =A0 This did not work.=0A>>>>>>>>>>>> =0A>>>>>>>>>>>> = =0A>>>>>>>>>>>> =A0 =A0 =A0 Looking at the onion omega =0A> conf=0A>>>> = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 I see that it uses mkuzip and=0A>>>= >>>>> =A0 not lzma=0A>>>>>>>>>>>> =A0 =A0 =A0 with the following settings= :=0A>>>>>>>>>>>> =0A>>>>>>>>>>>> =A0 =A0 =A0 =0A> X_FSIMAGE_CMD=3D"mkuzip"= =0A>>>>>>>>>>>> =A0 =A0 =A0 X_FSIMAGE_ARGS=3D"-L -d -s =0A> 65536=0A>>>> = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 -v"=0A>>>>>>>>>>>> =A0 =A0 =A0 =0A>= X_FSIMAGE_SUFFIX=3D".ulzma"=0A>>>>>>>>>>>> =0A>>>>>>>>>>>> =A0 =A0 =A0 So= tried the following:=0A>>>>>>>>>>>> =0A>>>>>>>>>>>> =A0 =A0 =A0 mkuzip -L= -d -s 65536 -v -o=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 kernel.MT= 7628_FDT.ulzma=0A>>>>>>>> =A0 kernel.MT7628_FDT=0A>>>>>>>>>>>> =A0 =A0 =A0= mkimage -A mips -O linux -T=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 kernel -C lzma \=0A>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 -a 0x80001000 -e = =0A> 0x80001100=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 \=0A>>>>>>>>= >>>> =A0 =A0 =A0 =A0 =A0 -n "FreeBSD" -d=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 kernel.MT7628_FDT.lzma=0A>>>>>>>>>>>> =A0 =A0 =A0 =0A> kern= el.MT7628_FDT.ulzma.uImage=0A>>>>>>>>>>>> =0A>>>>>>>>>>>> =0A>>>>>>>>>>>> = =A0 =A0 =A0 But this did not work either.=0A>>>>>>>>>>>> =0A>>>>>>>>>>>> = =0A>>>>>>>>>>>> =0A>>>>>>>>>>>> =A0 =A0 =A0 On 08/05/2017 19:41, =0A> Alek= sandr=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Rybalko wrote:=0A>>>>>= >>>>>>>> =A0 =A0 =A0 =A0 Hi Mike!=0A>>>>>>>>>>>>> =0A>>>>>>>>>>>>> =A0 =A0= =A0 =A0 I see you have no =0A> "OK"=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 after=0A>>>>>>>> =A0 "Uncompressing Kernel=0A>>>>>>>>>> =A0 = =A0 =A0 Image=0A>>>>>>>>>>>> =A0 =A0 =A0 ...", so=0A>>>>>>>>>>>>> =A0 =A0 = =A0 =A0 first point uboot=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 d= ecompressor fail.=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 Why fail? Because you = =0A> have=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 wrong base address= in image:=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 Load Address: =0A> fffffff2= =0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 Entry Point:=A0 =0A> fffffff2=0A>>>>>= >>>>>>>> =A0 =A0 =A0 =A0 MIPS32 machines have =0A> RAM=0A>>>> =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 mapped to 0x80000000 address,=0A>>>>>>>> =A0 s= o adding=0A>>>>>>>>>> =A0 =A0 =A0 its=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 size= , you will get max=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 address (= if 16MB, it will be=0A>>>>>>>> =A0 0x81000000),=0A>>>>>>>>>> =A0 =A0 =A0 b= ut=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 you uboot image was=0A>>>> =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 created with 0xfffffff2.=0A>>>>>>>>>>>>> =A0 = =A0 =A0 =A0 Even more, unpacked =0A> kernel=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 expects it will be called at=0A>>>>>>>>>> =A0 =A0 =A0 0x80= 001100. so=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 if you have ELF kernel=0A>>>> = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (file with ELF header, like=0A>>>>>= >>> =A0 every=0A>>>>>>>>>> =A0 =A0 =A0 executable)=0A>>>>>>>>>>>>> =A0 =A0= =A0 =A0 that file have to be=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 loaded at (0x80001100 -=0A>>>>>>>> =A0 ELF_HEADER_SIZE).=0A>>>>>>>>>>>= >> =A0 =A0 =A0 =A0 In most cases it will =0A> be=0A>>>> =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 0x80001100 - 0x100 =3D=0A>>>>>>>> =A0 0x80001000. = But=0A>>>>>>>>>> =A0 =A0 =A0 sometime=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 (I d= id not found why) =0A> it=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ca= n be 0x20, you can find it=0A>>>>>>>> =A0 by looking=0A>>>>>>>>>> =A0 =A0 = =A0 at=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 .text section in =0A> readelf=0A>>>= > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 -S.=0A>>>>>>>>>>>>> =A0 =A0 =A0 = =A0 So if you have kernel =0A> with=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 entry point 0x80001100 and=0A>>>>>>>> =A0 .text=0A>>>>>>>>>> =A0 = =A0 =A0 segment=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 offset 0x100, you have =0A= > to=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 create uboot image with= load=0A>>>>>>>> =A0 address=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 0x80001000 a= nd entry =0A> point=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 0x800011= 00.=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 If that step successful=0A>>>> =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 you will get:=0A>>>>>>>>>>>>> =A0 =A0 =A0 = =A0 /Uncompressing Kernel=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 I= mage/ ... OK=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 Starting kernel ...=0A>>>>>>>= >>>>>> =0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 Last line mean, uboot =0A> did=0A>= >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 jump into kernel code.=0A>>>>>>= >>>>>>> =A0 =A0 =A0 =A0 Good luck.=0A>>>>>>>>>>>>> =0A>>>>>>>>>>>>> =A0 = =A0 =A0 =A0 2017-05-07 18:20 =0A> GMT+03:00=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 Mike Wolman=0A>>>>>>>> =A0 >>>>>>>>= >>>> =A0 =A0 =A0 =A0 =0A>>> >:=0A>>>>>>>>>>>>> = =A0 =A0 =A0 =A0 =A0 =A0 Hi,=0A>>>>>>>>>>>>> =0A>>>>>>>>>>>>> =A0 =A0 =A0 = =A0 =A0 =A0 I am trying to get=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 FreeBSD working on this board -=0A>>>>>>>> =A0 I think I=0A>>>>>>>>>> = =A0 =A0 =A0 am=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 almost there in=0A>= >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 getting it working but need som= e=0A>>>>>>>> =A0 help please.=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 I h= ave followed=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 instructions fr= om the=0A>>>>>>>> =A0 freebsd-wifi-build and=0A>>>>>>>>>>>>> =A0 =A0 =A0 = =A0 =A0 =A0 *think* I have got=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 everything correct - I am trying=0A>>>>>>>> =A0 to do=0A>>>>>>>>>> =A0= =A0 =A0 this on=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 a CURRENT setup:= =0A>>>>>>>>>>>>> =0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 FreeBSD=0A>>>> = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 f64-current.mw.office 12.0-CURRENT = FreeBSD=0A>>>>>>>>>> =A0 =A0 =A0 12.0-CURRENT #0=0A>>>>>>>>>>>>> =A0 =A0 = =A0 =A0 =A0 =A0 r317887: Sun May=A0 7=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 03:20:34 UTC 2017=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =0A>>>>>>= >>>> =A0 =A0 =A0 mike@f64-current.mw.office:/=0A>>> usr/obj/usr/src/sys/GE= NERIC- NODEBUG amd64=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 $ cat=0A>>>> = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ~/.freebsd-wifi-build- settings.cfg= =0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =0A> X_SKIP_MORE_STUFF=3DYES=0A>>>= >>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 X_EXTRA_SRC_CONF=3D~/omega2/src. conf=0A>>>>>>>>>>>>> =A0 =A0 =A0 = =A0 =A0 =A0 $ cat=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ~/omega2/= src.conf=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 WITHOUT_CLANG=3DYES=0A>>>= >>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =0A> WITHOUT_CLANG_FULL=3DYES=0A>>>>>>>>= >>>>> =0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 get dts files from=0A>>>> = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 thread=0A>>>>>>>>>>>>> =A0 =A0 =A0 = =A0 =A0 =0A>>>>>>>> =A0 http://community.onion.io/ =0A> topic/1099/openwrt-= on-the-=0A>>> omega-2/8=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =0A>>>>>>>>>> = =A0 =A0 =A0 >> topic/1099/openwrt-on-the- o= mega-2/8>=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 cd=0A>>>> =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 ~/omega2/src/sys/gnu/dts/mips=0A>>>>>>>>>>>>> = =A0 =A0 =A0 =A0 =A0 =A0 fetch=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =0A>>>>>= >>> =A0 https://raw.githubusercontent. =0A> com/WereCatf/source/image/=0A>>= > target/linux/ramips/dts/ OMEGA2.dtsi=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0= =0A>>>>>>>> =A0 >> WereCatf/sour= ce/image/target/ linux/ramips/dts/OMEGA2.dtsi>=0A>>>>>>>>>>>>> =A0 =A0 =A0 = =A0 =A0 =A0 fetch=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =0A>>>>>>>> =A0 http= s://raw.githubusercontent. =0A> com/WereCatf/source/image/=0A>>> target/li= nux/ramips/dts/ OMEGA2.dts=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =0A>>>>>>>> = =A0 >> WereCatf/source/image/targ= et/ linux/ramips/dts/OMEGA2.dts>=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 f= etch=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =0A>>>>>>>> =A0 https://raw.github= usercontent. =0A> com/WereCatf/source/image/=0A>>> target/linux/ramips/dts= / OMEGA2P.dts=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =0A>>>>>>>> =A0 >> WereCatf/source/image/target/ linux/ram= ips/dts/OMEGA2P.dts>=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =0A> X_DTS_FIL= E=3DOMEGA2P.dts=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 KERNCONF=3DM= T7628_FDT=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =0A>>>> =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 ../freebsd-wifi-build/build/ bin/build ralink=0A>>>= >>>>> =A0 buildworld=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =0A> X_DTS_FI= LE=3DOMEGA2P.dts=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 KERNCONF=3D= MT7628_FDT=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =0A>>>> =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 ../freebsd-wifi-build/build/ bin/build ralink=0A>>>= >>>>> =A0 buildkernel=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =0A> X_DTS_F= ILE=3DOMEGA2P.dts=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 KERNCONF= =3DMT7628_FDT=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =0A>>>> =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 ../freebsd-wifi-build/build/ bin/build ralink= =0A>>>>>>>> =A0 installworld=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =0A> = X_DTS_FILE=3DOMEGA2P.dts=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 KER= NCONF=3DMT7628_FDT=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =0A>>>> =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ../freebsd-wifi-build/build/ bin/build rali= nk=0A>>>>>>>> =A0 installkernel=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 = =0A> X_DTS_FILE=3DOMEGA2P.dts=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 KERNCONF=3DMT7628_FDT=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =0A>>>> = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ../freebsd-wifi-build/build/ bin/bu= ild ralink=0A>>>>>>>> =A0 distribution=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0= =A0 =0A> X_DTS_FILE=3DOMEGA2P.dts=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 KERNCONF=3DMT7628_FDT=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =0A>>= >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ../freebsd-wifi-build/build/ bin= /build ralink=0A>>>>>>>> =A0 mfsroot=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 = =A0 =0A> X_DTS_FILE=3DOMEGA2P.dts=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 KERNCONF=3DMT7628_FDT=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =0A>>= >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ../freebsd-wifi-build/build/ bin= /build ralink=0A>>>>>>>> =A0 fsimage=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 = =A0 =0A> X_DTS_FILE=3DOMEGA2P.dts=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 KERNCONF=3DMT7628_FDT=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =0A>>= >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ../freebsd-wifi-build/build/ bin= /build ralink =0A> uboot=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 Create fl= ash:=0A>>>>>>>>>>>>> =0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =0A>>>> =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 X_FLASH=3Dkernel.MT7628_FDT. lzma.flash= =0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 dd if=3D/dev/zero =0A> bs=3D$((= =0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 0x200000 )) count=3D1=0A>>>= >>>>> =A0 of=3D${X_FLASH}=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 dd=0A>>= >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 if=3Dkernel.MT7628_FDT.lzma. uIm= age of=3D${X_FLASH}=0A>>>>>>>>>> =A0 =A0 =A0 conv=3Dnotrunc=0A>>>>>>>>>>>>>= =A0 =A0 =A0 =A0 =A0 =A0 dd if=3D=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 mfsroot-ralink.img.lzma >> ${X_FLASH}=0A>>>>>>>>>>>>> =A0 =A0 =A0 = =A0 =A0 =A0 $ readelf -h=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ke= rnel.MT7628_FDT | grep Entry=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 E= ntry point=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 address:=A0 =A0 = =A0 =A0 =A0 =A0 =A0 0x80001100=0A>>>>>>>>>>>>> =0A>>>>>>>>>>>>> =0A>>>>>>>= >>>>>> =A0 =A0 =A0 =A0 =A0 =A0 Now on the omega =0A> over=0A>>>> =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 serial - I didnt get the=0A>>>>>>>> =A0 ne= twork=0A>>>>>>>>>> =A0 =A0 =A0 expansion=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 = =A0 =A0 doc thing so am =0A> doing=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 stuff with usb rather than=0A>>>>>>>> =A0 tftp=0A>>>>>>>>>>>>> =A0= =A0 =A0 =A0 =A0 =A0 I am not 100% sure=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 about the 0x80001100 and the=0A>>>>>>>> =A0 fatload and=0A>>>= >>>>>>> =A0 =A0 =A0 have=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 tried thi= s=0A>>>>>>>>>>>>> =0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 Omega2 # fatloa= d =0A> usb=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 0:1 0x80001100=0A= >>>>>>>>>> =A0 =A0 =A0 /kernel.MT7628_FDT.lzma.flash=0A>>>>>>>>>>>>> =A0 = =A0 =A0 =A0 =A0 =A0 *=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 *=0A>>>>>>>= >>>>>> =A0 =A0 =A0 =A0 =A0 =A0 Reading file=0A>>>>>>>> =A0 "/kernel.MT762= 8_FDT.lzma. flash"=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 *=0A>>>>>>>>>>>= >> =A0 =A0 =A0 =A0 =A0 =A0 **=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 **= =0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 **=0A>>>>>>>>>>>>> =A0 =A0 =A0 = =A0 =A0 =A0 ******=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =0A>>>>>>>> =A0 **= ****************************=0A>>> ****************************** ********= **********************=0A>>> ****************************** **************= *******=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 ******=0A>>>>>>>>>>>>> =A0= =A0 =A0 =A0 =A0 =A0 *=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 FAT: 21084= 63 Bytes=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 read=0A>>>>>>>>>>>>= > =A0 =A0 =A0 =A0 =A0 =A0 Omega2 # bootm=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 0x80001100=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 ## Boot= ing image at=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 80001100 ...=0A= >>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Image Name:=0A>>>> =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 FreeBSD=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 Image Type:=A0 =0A> MIPS=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 Linux Kernel Image (lzma=0A>>>>>>>> =A0 compressed)=0A>>>>>>>>= >>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Data Size:=0A>>>> =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 1365122 Bytes =3D=A0 1.3 MB=0A>>>>>>>>>>>>> =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 Load Address:=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 fffffff2=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Entry = Point:=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 fffffff2=0A>>>>>>>>>>= >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Verifying =0A> Checksum=0A>>>> =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ... OK=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 Uncompressing=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Ke= rnel Image ...=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 At this point =0A> = nothing=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 happens and console = hangs -=0A>>>>>>>> =A0 note in=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 OM= EGA2.dtsithe =0A> console=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 is= set to ttyS0:=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 bootargs =3D=0A>>>>= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 "console=3DttyS0,115200";=0A>>>>>>= >>>>>>> =0A>>>>>>>>>>>>> =0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 I have a= lso tried =0A> with=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 just ker= nel.MT7628_FDT and=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =0A> kernel.MT76= 28_FDT.lzma=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 but both fail:= =0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 Omega2 # fatload =0A> usb=0A>>>> = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 0:1 0x80001100=0A>>>>>>>>>> =A0 =A0= =A0 /kernel.MT7628_FDT.lzma.uImage=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0= *=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 *=0A>>>>>>>>>>>>> =A0 =A0 =A0 = =A0 =A0 =A0 Reading file=0A>>>>>>>> =A0 "/kernel.MT7628_FDT.lzma. uImage"= =0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 *=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0= =A0 =A0 **=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 **=0A>>>>>>>>>>>>> = =A0 =A0 =A0 =A0 =A0 =A0 ******=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =0A>>>>= >>>> =A0 ******************************=0A>>> ***************************= *** ******************************=0A>>> ****************************** **= ****=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 **********=0A>>>>>>>>>>>>> = =A0 =A0 =A0 =A0 =A0 =A0 *=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 FAT: 13= 65186 Bytes=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 read=0A>>>>>>>>>= >>>> =A0 =A0 =A0 =A0 =A0 =A0 Omega2 # bootm=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 0x80001100=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 ## Boo= ting image at=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 80001100 ...= =0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Image Name:=0A>>>> =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 FreeBSD=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 Image Type:=A0 =0A> MIPS=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 Linux Kernel Image (lzma=0A>>>>>>>> =A0 compressed)=0A>>>>>>>= >>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Data Size:=0A>>>> =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 1365122 Bytes =3D=A0 1.3 MB=0A>>>>>>>>>>>>> =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 Load Address:=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 fffffff2=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Entry = Point:=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 fffffff2=0A>>>>>>>>>>= >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Verifying =0A> Checksum=0A>>>> =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ... OK=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 Uncompressing=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Ke= rnel Image ...=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 A few comments on = =0A> the=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 hardware for anyone= who wants=0A>>>>>>>> =A0 to get=0A>>>>>>>>>> =A0 =A0 =A0 one:=0A>>>>>>>>>= >>>> =A0 =A0 =A0 =A0 =A0 =A0 Get the expansion =0A> dock=0A>>>> =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 with serial port access -=0A>>>>>>>> =A0 t= he power=0A>>>>>>>>>> =A0 =A0 =A0 dock=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 = =A0 does not provide=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 serial= access - i think it is=0A>>>>>>>> =A0 possible to=0A>>>>>>>>>> =A0 =A0 = =A0 use an=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 ftdi ttl serial=0A>>>> = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 chip/cable but have not tried.=0A>>= >>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 Stupidly I forgot =0A> this=0A>>>> =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 only has wifi access so you=0A>>>>>>>>= =A0 are not=0A>>>>>>>>>> =A0 =A0 =A0 able to=0A>>>>>>>>>>>>> =A0 =A0 =A0 = =A0 =A0 =A0 tftp boot this =0A> without=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 getting the ethernet network=0A>>>>>>>> =A0 expansion=0A>>>>>= >>>>> =A0 =A0 =A0 but=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 loading stuf= f up =0A> from=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 a usb memory = stick is seem=0A>>>>>>>> =A0 fine from=0A>>>>>>>>>> =A0 =A0 =A0 u-boot.=0A= >>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 I do not think that =0A> it=0A>>>> = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 is possible to boot from the=0A>>>>= >>>> =A0 SD card=0A>>>>>>>>>> =A0 =A0 =A0 on the=0A>>>>>>>>>>>>> =A0 =A0 = =A0 =A0 =A0 =A0 Omega2+ - which is =0A> a=0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 shame.=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 Thanks for = reading,=0A>>>>>>>>>>>>> =0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 Mike.=0A= >>>>>>>>>>>>> =0A>>>>>>>>>>>>> =0A>>>>>>>>>>>>> =0A>>>>>>>>>>>>> =A0 =A0 = =A0 =A0 =A0 =A0 =0A>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ___________= ___________________ _________________=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 = =A0 =0A> freebsd-mips@freebsd.org=0A>>>>>>>>>> =A0 =A0 =A0 org>mailing=0A>>>>>>>>>>>> =A0 =A0 =A0 list=0A>>>>>>>>>= >>>> =A0 =A0 =A0 =A0 =A0 =0A>>>>>>>> =A0 https://lists.freebsd.org/ =0A> ma= ilman/listinfo/freebsd-mips=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =0A>>>>>>>>= >> =A0 =A0 =A0 >> mailman/listinfo/freebsd-= mips>=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 To unsubscribe, =0A> send=0A= >>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 any mail to=0A>>>>>>>>>>>>> = =A0 =A0 =A0 =A0 =A0 =A0 =0A>>> "freebsd-mips-unsubscribe@ freebsd.org=0A>>= >>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =0A>>>>>>>> =A0 = unsubscribe@freebsd.org>"=0A>>>>>>>>>>>>> =0A>>>>>>>>>>>>> =0A>>>>>>>>>>>>= > =A0 =A0 =A0 =A0 --=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 WBW=0A>>>>>>>>>>>>> = =A0 =A0 =A0 =A0 -------=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 Rybalko Aleksandr= =0A>>> >>>>>>>>> =A0 =A0 =A0 >= =0A>>>>>>>>>>>> =A0 =A0 =A0 =0A> ______________________________=0A>>> ____= _____________=0A>>>>>>>>>>>> =A0 =A0 =A0 freebsd-mips@freebsd.org =0A> mail= ing list=0A>>>>>>>>>>>> =A0 =A0 =A0 https://lists.freebsd.org/=0A>>> mailm= an/listinfo/freebsd-mips=0A>>>>>>>>>>>> =A0 =A0 =A0 To unsubscribe, send a= ny mail =0A> to=0A>>>>>>>>>>>> =A0 =A0 =A0 =0A> "freebsd-mips-unsubscribe@= =0A>>> freebsd.org"=0A>>>>>>> =A0 ______________________________ ________= _________=0A>>>>>>> =A0 freebsd-mips@freebsd.org mailing list=0A>>>>>>> =A0= https://lists.freebsd.org/ =0A> mailman/listinfo/freebsd-mips=0A>>>>>>> = =A0 To unsubscribe, send any mail to=0A>>> "freebsd-mips-unsubscribe@ fre= ebsd.org"=0A>>>>>> =A0 --=0A>>>>>> =0A>>>>>> =A0 WBW=0A>>>>>> =A0 ------= -=0A>>>>>> =A0 Rybalko Aleksandr =0A>>>>>> =0A>>>>>> =0A>>= >>> =0A> From owner-freebsd-mips@freebsd.org Tue May 9 14:15:13 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 68CCCD65A37 for ; Tue, 9 May 2017 14:15:13 +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 C4E5FEA3 for ; Tue, 9 May 2017 14:15:11 +0000 (UTC) (envelope-from mike@wolman.co.uk) Received: from [192.168.3.50] ([80.229.66.11]) by avasout08 with smtp id JEF71v0040EahWw01EF8TB; Tue, 09 May 2017 15:15:09 +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=N659UExz7-8A:10 a=UmSUZ3ptAAAA:8 a=4I05h4SrAAAA:8 a=6I5d2MoRAAAA:8 a=arpVtLJQAAAA:8 a=NEAV23lmAAAA:8 a=jdP34snFAAAA:8 a=LJ5NkaWEAAAA:8 a=bt8Zh30PAAAA:8 a=Rc76ftk09w0PYnjMHn8A:9 a=NaEjsed2O19XNl2q:21 a=gpzSoFLrt5BPDjzt:21 a=pILNOxqGKmIA:10 a=FyGKTEvU35uc88vWBdgE:22 a=SXYKVUms7l59yVxtnTo9:22 a=IjZwj45LgO3ly-622nXo:22 a=86BuEF5rAmEUDcZwuOX_:22 a=jlphF6vWLdwq7oh3TaWq:22 a=eH83O4KjmLCfbRe1EArK:22 Subject: Re: onion omega2+ To: Mori Hiroki , Aleksandr Rybalko References: <694efc3a-e183-35a1-a0bf-9a9c0d708826@wolman.co.uk> <410144.69078.qm@web101716.mail.ssk.yahoo.co.jp> <128807.28836.qm@web101715.mail.ssk.yahoo.co.jp> <2d555385-8258-fd75-e4a3-a1e59bf86314@wolman.co.uk> <651873.78746.qm@web101702.mail.ssk.yahoo.co.jp> <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> Cc: "freebsd-mips@freebsd.org" From: Mike Wolman Message-ID: <703ef85f-9f07-9ab1-9e2f-fb06026044e0@wolman.co.uk> Date: Tue, 9 May 2017 15:15:05 +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: <541011.41820.qm@web101719.mail.ssk.yahoo.co.jp> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit 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: Tue, 09 May 2017 14:15:13 -0000 Cool - I will recheck the serial stuff but from looking at the dtsi file and comparing it to the others in the freebsd-wifi-build it looks the same On 09/05/2017 15:07, Mori Hiroki wrote: > Hi. Mike > >> Starting kernel ... > > I think success to boot. > > Next is Entry point miss or uart console issue. > > > Entry point can check on ELF kernel file by readelf command. > > Uart console issue is in dts file. > > ----- Original Message ----- > >> From: Mike Wolman >> To: Mori Hiroki ; Aleksandr Rybalko >> Cc: "freebsd-mips@freebsd.org" >> Date: 2017/5/9, Tue 22:42 >> Subject: Re: onion omega2+ >> >> >> Ok got somewhere with this >> >> >> USB_STORAGE: 1 Storage Device(s) found >> Omega2 # fatload usb 0:1 0x80800000 kernel.MT7628_FDT.uImage >> * >> * >> Reading file "kernel.MT7628_FDT.uImage" >> * >> ** >> ** >> ** >> ** >> ** >> ** >> ** >> ** >> ** >> ** >> ****** >> ****** >> ****************************************************************************************************************************************************************************************************************** >> **** >> * >> FAT: 5654824 Bytes read >> Omega2 # go >> Usage: >> go - start application at address 'addr' >> >> Omega2 # go 0x80001000 >> ## Starting application at 0x80001000 ... >> >> >> >> I have tried with: >> >> Omega2 # go 0x80001100 >> ## Starting application at 0x80001100 ... >> >> >> >> I have tried using the 0x80001000 for fatload as well: >> >> >> USB_STORAGE: 1 Storage Device(s) found >> Omega2 # help fatload >> fatload >> [bytes] >> - load binary file 'filename' from 'dev' on >> 'interface' >> to address 'addr' from dos filesystem >> >> Reading file "kernel.MT7628_FDT.uImage" >> * >> ** >> ** >> ** >> ** >> ** >> ** >> ** >> ** >> ** >> ** >> ****** >> ****** >> ****************************************************************************************************************************************************************************************************************** >> **** >> * >> FAT: 5654824 Bytes read >> Omega2 # go 0x80001100 >> ## Starting application at 0x80001100 ... >> >> >> >> However: >> >> 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: 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 ... >> >> >> But it doesnt go any further >> >> >> >> >> >> >> On 09/05/2017 14:20, Mori Hiroki wrote: >>> Hi. >>> >>> One more. >>> >>> Omega2 # fatload usb 0:1 0x80800000 kernel.MT7628_FDT.uImage >>> >>> Omega2 # bootm 0x80800000 >>> >>> ----- Original Message ----- >>>> From: Mike Wolman >>>> To: Mori Hiroki ; Aleksandr Rybalko >> >>>> Cc: "freebsd-mips@freebsd.org" >> >>>> Date: 2017/5/9, Tue 22:01 >>>> Subject: Re: onion omega2+ >>>> >>>> >>>> No joy >>>> >>>> Omega2 # fatload usb 0:1 0x80800000 kernel.MT7628_FDT.uImage >>>> * >>>> * >>>> Reading file "kernel.MT7628_FDT.uImage" >>>> * >>>> ** >>>> ** >>>> ** >>>> ** >>>> ** >>>> ** >>>> ** >>>> ** >>>> ** >>>> ** >>>> ****** >>>> ****** >>>> >> ****************************************************************************************************************************************************************************************************************** >>>> **** >>>> * >>>> FAT: 5654824 Bytes read >>>> Omega2 # bootm >>>> ## Booting image at 80100000 ... >>>> Bad Magic Number,CE6AE7C4 >>>> >>>> I am going to get a different usb memory stick and rebuild the kernel >>>> later on as i got an error when last writing to the usb memory key and >>>> its quite old now so just want to eliminate it from testing. >>>> >>>> >>>> On 09/05/2017 13:52, Mori Hiroki wrote: >>>>> Hi. >>>>> >>>>> This is my sample operation get image from network and boot. >>>>> >>>>> RT3052 # tftpboot 0x80800000 >> Planex_MZK-WNH_kernel.kbin.oldlzma.uboot >>>>> RT3052 # bootm >>>>> >>>>> >>>>> I don't use USB support U-Boot. But I think fatload command >> argument is >>>>> temporary memory address not kernel address. >>>>> >>>>> How about this. >>>>> >>>>> Omega2 # fatload usb 0:1 0x80800000 kernel.MT7628_FDT.uImage >>>>> Omega2 # bootm >>>>> >>>>> ----- Original Message ----- >>>>>> From: Mike Wolman >>>>>> To: Aleksandr Rybalko ; Mori Hiroki >>>> >>>>>> Cc: "freebsd-mips@freebsd.org" >>>> >>>>>> Date: 2017/5/9, Tue 20:48 >>>>>> Subject: Re: onion omega2+ >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> Is it possible to exclude the compression of the kernel/image >> for >>>>> now eg: >>>>>> mkimage -A mips -C none -O linux -T kernel -a 0x80001000 -e >>>>> 0x80001100 -n "FreeBSD" -d kernel.MT7628_FDT >>>>> kernel.MT7628_FDT.uImage >>>>>> I have just tried the above but when booting I get a Bad >> Magic >>>>> Number. >>>>>> Omega2 # fatload usb 0:1 0x80001000 kernel.MT7628_FDT.uImage >>>>>> * >>>>>> * >>>>>> Reading file "kernel.MT7628_FDT.uImage" >>>>>> * >>>>>> ** >>>>>> ** >>>>>> ** >>>>>> ** >>>>>> ** >>>>>> ** >>>>>> ** >>>>>> ** >>>>>> ** >>>>>> ** >>>>>> ****** >>>>>> ****** >>>>>> >> ****************************************************************************************************************************************************************************************************************** >>>>>> **** >>>>>> * >>>>>> FAT: 5654824 Bytes read >>>>>> Omega2 # bootm 0x80001100 >>>>>> ## Booting image at 80001100 ... >>>>>> Bad Magic Number,1C994480 >>>>>> Omega2 # >>>>>> >>>>>> >>>>>> I have seen other examples starting a program directly with >> going to >>>>> the address but this didnt work either: >>>>>> Omega2 # go 0x80001100 >>>>>> ## Starting application at 0x80001100 ... >>>>>> >>>>>> omega freezes here. >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> On 09/05/2017 10:12, Aleksandr Rybalko wrote: >>>>>> >>>>>> Fix things in order :) >>>>> Currently you have problem with LZMA, serial port later. >>>>> So, find version of lzma used to build linux firmware, MIPS >> routers world >>>> use about 5 incompatible versions. One of them, you can find here: >>>> http://project.zrouter.org/hg/zrouter/file/9ac53695a44d/tools/oldlzma >>>>>>> >>>>>>> >>>>>>> 2017-05-09 7:03 GMT+03:00 Mori Hiroki >>>> : >>>>>>> Hi Mike >>>>>>>> Could you show u-boot printenv command result. >>>>>>>> >>>>>>>> Thanks >>>>>>>> >>>>>>>> >>>>>>>> ----- Original Message ----- >>>>>>>>> From: Mike Wolman >>>>>>>>> To: Mori Hiroki ; >>>> "freebsd-mips@freebsd.org" >>>>>>>>> Cc: >>>>>>>>> Date: 2017/5/9, Tue 10:30 >>>>>>>>> Subject: Re: onion omega2+ >>>>>>>>> >>>>>>>>> Hi Mori, >>>>>>>>> >>>>>>>>> When I compiled the world/kernel etc I used: >>>>>>>>> >>>>>>>>> X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT >>>>>>>>> ../freebsd-wifi-build/build/ bin/build ralink >>>>> buildkernel >>>>>>>>> I checked the serial stuff was the same as the >>>>> other configs in: >>>>>>>>> https://github.com/freebsd/ freebsd-wifi-build/ >>>>>>>>> and they looked the same. >>>>>>>>> >>>>>>>>> The OMEGA2.dtsi file has: >>>>>>>>> >>>>>>>>> chosen { >>>>>>>>> bootargs = >>>> "console=ttyS0,115200"; >>>>>>>>> }; >>>>>>>>> >>>>>>>>> >>>>>>>>> And mt7628an.dtsi has: serial0 = &uartlite; >>>>>>>>> >>>>>>>>> I dont think im getting as far as worrying about >>>>> the serial console at >>>>>>>>> the moment and need to get the kernel to >> uncompress >>>>> first. >>>>>>>>> Mike. >>>>>>>>> >>>>>>>>> >>>>>>>>> On 09/05/2017 02:20, Mori Hiroki wrote: >>>>>>>>>> Hi Mike >>>>>>>>>> >>>>>>>>>> In FreeBSD is use serial0 dts item to >> console. >>>>>>>>>> I think good to use this at start. >>>>>>>>>> >>>>>>>>>> freebsd/sys/gnu/dts/mips/ MT7628.dts >>>>>>>>>> >>>>>>>>>> ----- Original Message ----- >>>>>>>>>>> From: Mike Wolman >> >>>>>>>>>>> To: Mori Hiroki >> ; >>>>>>>>> "freebsd-mips@freebsd.org" >>>> >>>>>>>>>>> Cc: >>>>>>>>>>> Date: 2017/5/9, Tue 09:25 >>>>>>>>>>> Subject: Re: onion omega2+ >>>>>>>>>>> >>>>>>>>>>> Hi Mori, >>>>>>>>>>> >>>>>>>>>>> I grabbed the dts files from: >>>>>>>>>>> >>>>>>>>>>> https://github.com/WereCatf/ >>>> source/tree/image/target/ linux/ramips/dts >>>>>>>>> https://github.com/WereCatf/ >> source/blob/image/target/ >>>> linux/ramips/dts/OMEGA2P.dts >>>>>>>>> https://github.com/WereCatf/ >> source/blob/image/target/ >>>> linux/ramips/dts/OMEGA2.dtsi >>>>>>>>>>> If this is of any use from the default >>>>> linux install on the flash: >>>>>>>>>>> root@Omega-12BF:/proc# cat /proc/mtd >>>>>>>>>>> dev: size erasesize name >>>>>>>>>>> mtd0: 00030000 00010000 >> "u-boot" >>>>>>>>>>> mtd1: 00010000 00010000 >> "u-boot-env" >>>>>>>>>>> mtd2: 00010000 00010000 >> "factory" >>>>>>>>>>> mtd3: 01fb0000 00010000 >> "firmware" >>>>>>>>>>> mtd4: 00148842 00010000 >> "kernel" >>>>>>>>>>> mtd5: 01e677be 00010000 >> "rootfs" >>>>>>>>>>> mtd6: 01950000 00010000 >> "rootfs_data" >>>>>>>>>>> >>>>>>>>>>> btw after posting i spotted and error >> in >>>>> what i did with: >>>>>>>>>>> mkimage -A mips -O linux -T kernel -C >> lzma >>>>> \ >>>>>>>>>>> -a 0x80001000 -e 0x80001100 \ >>>>>>>>>>> -n "FreeBSD" -d >>>>> kernel.MT7628_FDT.lzma >>>>>>>>>>> kernel.MT7628_FDT.ulzma.uImage >>>>>>>>>>> >>>>>>>>>>> I have redone this using the correct >>>>> compressed kernel ie: >>>>>>>>>>> mkimage -A mips -O linux -T kernel -C >> lzma >>>>> \ >>>>>>>>>>> -a 0x80001000 -e 0x80001100 \ >>>>>>>>>>> -n "FreeBSD" -d >>>>> kernel.MT7628_FDT.ulzma >>>>>>>>>>> kernel.MT7628_FDT.ulzma.uImage >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> But this didnt work. >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> On 09/05/2017 01:17, Mori Hiroki >> wrote: >>>>>>>>>>>> Hi. >>>>>>>>>>>> >>>>>>>>>>>> I think if U-Boot work memory >> make >>>>> broken then >>>>>>>>>>>> Uncompressing Kernel Image is NG. >>>>>>>>>>>> >>>>>>>>>>>> Some ARM U-Boot is use top >> address >>>>> in work memory. >>>>>>>>>>>> If this case your kernel start >>>>> address to move to >>>>>>>>>>>> after work memory. But I never >> see >>>>> in MIPS. >>>>>>>>>>>> And What is set FDT_DTS_FILE in >>>>> your kernel configuration ? >>>>>>>>>>>> ----- Original Message ----- >>>>>>>>>>>> >>>>>>>>>>>>> From: Mike Wolman >>>> >>>>>>>>>>>>> To: freebsd-mips@freebsd.org >>>>>>>>>>>>> Cc: >>>>>>>>>>>>> Date: 2017/5/9, Tue 07:48 >>>>>>>>>>>>> Subject: Re: onion omega2+ >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> More info in case anyone can >>>>> point me in the right direction. >>>>>>>>>>>>> I have found: >>>>>>>>>>>>> >>>>>>>>>>>>> https://forum.openwrt.org/ >>>> viewtopic.php?id=53865 >>>>>>>>>>>>> I have tried changing how >> lzma >>>>> compresses the kernel by >>>>>>>>> adding -d20 to >>>>>>>>>>>>> the build scripts eg: >>>>>>>>>>>>> >>>>>>>>>>>>> /usr/local/bin/lzma e >>>>>>>>>>>>> >>>>>>>>> /home/mike/omega2/src/../root/ >>>> mipsel_ap/boot/kernel.MT7628_ FDT/kernel >>>>>>>>>>> \ >>>>>>>>>>>>> /home/mike/omega2/src/../ >>>> tftpboot/kernel.MT7628_FDT. lzma >>>>> -d20 >>>>>>>>>>>>> This did not work. >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> Looking at the onion omega >> conf >>>>> I see that it uses mkuzip and >>>>>>>>> not lzma >>>>>>>>>>>>> with the following settings: >>>>>>>>>>>>> >>>>>>>>>>>>> >> X_FSIMAGE_CMD="mkuzip" >>>>>>>>>>>>> X_FSIMAGE_ARGS="-L -d -s >> 65536 >>>>> -v" >>>>>>>>>>>>> >> X_FSIMAGE_SUFFIX=".ulzma" >>>>>>>>>>>>> So tried the following: >>>>>>>>>>>>> >>>>>>>>>>>>> mkuzip -L -d -s 65536 -v -o >>>>> kernel.MT7628_FDT.ulzma >>>>>>>>> kernel.MT7628_FDT >>>>>>>>>>>>> mkimage -A mips -O linux -T >>>>> kernel -C lzma \ >>>>>>>>>>>>> -a 0x80001000 -e >> 0x80001100 >>>>> \ >>>>>>>>>>>>> -n "FreeBSD" -d >>>>> kernel.MT7628_FDT.lzma >>>>>>>>>>>>> >> kernel.MT7628_FDT.ulzma.uImage >>>>>>>>>>>>> >>>>>>>>>>>>> But this did not work either. >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> On 08/05/2017 19:41, >> Aleksandr >>>>> Rybalko wrote: >>>>>>>>>>>>>> Hi Mike! >>>>>>>>>>>>>> >>>>>>>>>>>>>> I see you have no >> "OK" >>>>> after >>>>>>>>> "Uncompressing Kernel >>>>>>>>>>> Image >>>>>>>>>>>>> ...", so >>>>>>>>>>>>>> first point uboot >>>>> decompressor fail. >>>>>>>>>>>>>> Why fail? Because you >> have >>>>> wrong base address in image: >>>>>>>>>>>>>> Load Address: >> fffffff2 >>>>>>>>>>>>>> Entry Point: >> fffffff2 >>>>>>>>>>>>>> MIPS32 machines have >> RAM >>>>> mapped to 0x80000000 address, >>>>>>>>> so adding >>>>>>>>>>> its >>>>>>>>>>>>>> size, you will get max >>>>> address (if 16MB, it will be >>>>>>>>> 0x81000000), >>>>>>>>>>> but >>>>>>>>>>>>>> you uboot image was >>>>> created with 0xfffffff2. >>>>>>>>>>>>>> Even more, unpacked >> kernel >>>>> expects it will be called at >>>>>>>>>>> 0x80001100. so >>>>>>>>>>>>>> if you have ELF kernel >>>>> (file with ELF header, like >>>>>>>>> every >>>>>>>>>>> executable) >>>>>>>>>>>>>> that file have to be >>>>> loaded at (0x80001100 - >>>>>>>>> ELF_HEADER_SIZE). >>>>>>>>>>>>>> In most cases it will >> be >>>>> 0x80001100 - 0x100 = >>>>>>>>> 0x80001000. But >>>>>>>>>>> sometime >>>>>>>>>>>>>> (I did not found why) >> it >>>>> can be 0x20, you can find it >>>>>>>>> by looking >>>>>>>>>>> at >>>>>>>>>>>>>> .text section in >> readelf >>>>> -S. >>>>>>>>>>>>>> So if you have kernel >> with >>>>> entry point 0x80001100 and >>>>>>>>> .text >>>>>>>>>>> segment >>>>>>>>>>>>>> offset 0x100, you have >> to >>>>> create uboot image with load >>>>>>>>> address >>>>>>>>>>>>>> 0x80001000 and entry >> point >>>>> 0x80001100. >>>>>>>>>>>>>> If that step successful >>>>> you will get: >>>>>>>>>>>>>> /Uncompressing Kernel >>>>> Image/ ... OK >>>>>>>>>>>>>> Starting kernel ... >>>>>>>>>>>>>> >>>>>>>>>>>>>> Last line mean, uboot >> did >>>>> jump into kernel code. >>>>>>>>>>>>>> Good luck. >>>>>>>>>>>>>> >>>>>>>>>>>>>> 2017-05-07 18:20 >> GMT+03:00 >>>>> Mike Wolman >>>>>>>>> >>>>>>>>>>>>> >>>> >: >>>>>>>>>>>>>> Hi, >>>>>>>>>>>>>> >>>>>>>>>>>>>> I am trying to get >>>>> FreeBSD working on this board - >>>>>>>>> I think I >>>>>>>>>>> am >>>>>>>>>>>>>> almost there in >>>>> getting it working but need some >>>>>>>>> help please. >>>>>>>>>>>>>> I have followed >>>>> instructions from the >>>>>>>>> freebsd-wifi-build and >>>>>>>>>>>>>> *think* I have got >>>>> everything correct - I am trying >>>>>>>>> to do >>>>>>>>>>> this on >>>>>>>>>>>>>> a CURRENT setup: >>>>>>>>>>>>>> >>>>>>>>>>>>>> FreeBSD >>>>> f64-current.mw.office 12.0-CURRENT FreeBSD >>>>>>>>>>> 12.0-CURRENT #0 >>>>>>>>>>>>>> r317887: Sun May 7 >>>>> 03:20:34 UTC 2017 >>>>>>>>>>>>>> >>>>>>>>>>> mike@f64-current.mw.office:/ >>>> usr/obj/usr/src/sys/GENERIC- NODEBUG amd64 >>>>>>>>>>>>>> $ cat >>>>> ~/.freebsd-wifi-build- settings.cfg >>>>>>>>>>>>>> >> X_SKIP_MORE_STUFF=YES >>>>>>>>>>>>>> >>>>> X_EXTRA_SRC_CONF=~/omega2/src. conf >>>>>>>>>>>>>> $ cat >>>>> ~/omega2/src.conf >>>>>>>>>>>>>> WITHOUT_CLANG=YES >>>>>>>>>>>>>> >> WITHOUT_CLANG_FULL=YES >>>>>>>>>>>>>> get dts files from >>>>> thread >>>>>>>>>>>>>> >>>>>>>>> http://community.onion.io/ >> topic/1099/openwrt-on-the- >>>> omega-2/8 >>>>>>>>>>>>>> >>>>>>>>>>> >>> topic/1099/openwrt-on-the- omega-2/8> >>>>>>>>>>>>>> cd >>>>> ~/omega2/src/sys/gnu/dts/mips >>>>>>>>>>>>>> fetch >>>>>>>>>>>>>> >>>>>>>>> https://raw.githubusercontent. >> com/WereCatf/source/image/ >>>> target/linux/ramips/dts/ OMEGA2.dtsi >>>>>>>>>>>>>> >>>>>>>>> >>> WereCatf/source/image/target/ linux/ramips/dts/OMEGA2.dtsi> >>>>>>>>>>>>>> fetch >>>>>>>>>>>>>> >>>>>>>>> https://raw.githubusercontent. >> com/WereCatf/source/image/ >>>> target/linux/ramips/dts/ OMEGA2.dts >>>>>>>>>>>>>> >>>>>>>>> >>> WereCatf/source/image/target/ linux/ramips/dts/OMEGA2.dts> >>>>>>>>>>>>>> fetch >>>>>>>>>>>>>> >>>>>>>>> https://raw.githubusercontent. >> com/WereCatf/source/image/ >>>> target/linux/ramips/dts/ OMEGA2P.dts >>>>>>>>>>>>>> >>>>>>>>> >>> WereCatf/source/image/target/ linux/ramips/dts/OMEGA2P.dts> >>>>>>>>>>>>>> >> X_DTS_FILE=OMEGA2P.dts >>>>> KERNCONF=MT7628_FDT >>>>>>>>>>>>>> >>>>> ../freebsd-wifi-build/build/ bin/build ralink >>>>>>>>> buildworld >>>>>>>>>>>>>> >> X_DTS_FILE=OMEGA2P.dts >>>>> KERNCONF=MT7628_FDT >>>>>>>>>>>>>> >>>>> ../freebsd-wifi-build/build/ bin/build ralink >>>>>>>>> buildkernel >>>>>>>>>>>>>> >> X_DTS_FILE=OMEGA2P.dts >>>>> KERNCONF=MT7628_FDT >>>>>>>>>>>>>> >>>>> ../freebsd-wifi-build/build/ bin/build ralink >>>>>>>>> installworld >>>>>>>>>>>>>> >> X_DTS_FILE=OMEGA2P.dts >>>>> KERNCONF=MT7628_FDT >>>>>>>>>>>>>> >>>>> ../freebsd-wifi-build/build/ bin/build ralink >>>>>>>>> installkernel >>>>>>>>>>>>>> >> X_DTS_FILE=OMEGA2P.dts >>>>> KERNCONF=MT7628_FDT >>>>>>>>>>>>>> >>>>> ../freebsd-wifi-build/build/ bin/build ralink >>>>>>>>> distribution >>>>>>>>>>>>>> >> X_DTS_FILE=OMEGA2P.dts >>>>> KERNCONF=MT7628_FDT >>>>>>>>>>>>>> >>>>> ../freebsd-wifi-build/build/ bin/build ralink >>>>>>>>> mfsroot >>>>>>>>>>>>>> >> X_DTS_FILE=OMEGA2P.dts >>>>> KERNCONF=MT7628_FDT >>>>>>>>>>>>>> >>>>> ../freebsd-wifi-build/build/ bin/build ralink >>>>>>>>> fsimage >>>>>>>>>>>>>> >> X_DTS_FILE=OMEGA2P.dts >>>>> KERNCONF=MT7628_FDT >>>>>>>>>>>>>> >>>>> ../freebsd-wifi-build/build/ bin/build ralink >> uboot >>>>>>>>>>>>>> Create flash: >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>> X_FLASH=kernel.MT7628_FDT. lzma.flash >>>>>>>>>>>>>> dd if=/dev/zero >> bs=$(( >>>>> 0x200000 )) count=1 >>>>>>>>> of=${X_FLASH} >>>>>>>>>>>>>> dd >>>>> if=kernel.MT7628_FDT.lzma. uImage of=${X_FLASH} >>>>>>>>>>> conv=notrunc >>>>>>>>>>>>>> dd if= >>>>> mfsroot-ralink.img.lzma >> ${X_FLASH} >>>>>>>>>>>>>> $ readelf -h >>>>> kernel.MT7628_FDT | grep Entry >>>>>>>>>>>>>> Entry point >>>>> address: 0x80001100 >>>>>>>>>>>>>> >>>>>>>>>>>>>> Now on the omega >> over >>>>> serial - I didnt get the >>>>>>>>> network >>>>>>>>>>> expansion >>>>>>>>>>>>>> doc thing so am >> doing >>>>> stuff with usb rather than >>>>>>>>> tftp >>>>>>>>>>>>>> I am not 100% sure >>>>> about the 0x80001100 and the >>>>>>>>> fatload and >>>>>>>>>>> have >>>>>>>>>>>>>> tried this >>>>>>>>>>>>>> >>>>>>>>>>>>>> Omega2 # fatload >> usb >>>>> 0:1 0x80001100 >>>>>>>>>>> /kernel.MT7628_FDT.lzma.flash >>>>>>>>>>>>>> * >>>>>>>>>>>>>> * >>>>>>>>>>>>>> Reading file >>>>>>>>> "/kernel.MT7628_FDT.lzma. flash" >>>>>>>>>>>>>> * >>>>>>>>>>>>>> ** >>>>>>>>>>>>>> ** >>>>>>>>>>>>>> ** >>>>>>>>>>>>>> ****** >>>>>>>>>>>>>> >>>>>>>>> ****************************** >>>> ****************************** ****************************** >>>> ****************************** ********************* >>>>>>>>>>>>>> ****** >>>>>>>>>>>>>> * >>>>>>>>>>>>>> FAT: 2108463 Bytes >>>>> read >>>>>>>>>>>>>> Omega2 # bootm >>>>> 0x80001100 >>>>>>>>>>>>>> ## Booting image at >>>>> 80001100 ... >>>>>>>>>>>>>> Image Name: >>>>> FreeBSD >>>>>>>>>>>>>> Image Type: >> MIPS >>>>> Linux Kernel Image (lzma >>>>>>>>> compressed) >>>>>>>>>>>>>> Data Size: >>>>> 1365122 Bytes = 1.3 MB >>>>>>>>>>>>>> Load Address: >>>>> fffffff2 >>>>>>>>>>>>>> Entry Point: >>>>> fffffff2 >>>>>>>>>>>>>> Verifying >> Checksum >>>>> ... OK >>>>>>>>>>>>>> Uncompressing >>>>> Kernel Image ... >>>>>>>>>>>>>> At this point >> nothing >>>>> happens and console hangs - >>>>>>>>> note in >>>>>>>>>>>>>> OMEGA2.dtsithe >> console >>>>> is set to ttyS0: >>>>>>>>>>>>>> bootargs = >>>>> "console=ttyS0,115200"; >>>>>>>>>>>>>> >>>>>>>>>>>>>> I have also tried >> with >>>>> just kernel.MT7628_FDT and >>>>>>>>>>>>>> >> kernel.MT7628_FDT.lzma >>>>> but both fail: >>>>>>>>>>>>>> Omega2 # fatload >> usb >>>>> 0:1 0x80001100 >>>>>>>>>>> /kernel.MT7628_FDT.lzma.uImage >>>>>>>>>>>>>> * >>>>>>>>>>>>>> * >>>>>>>>>>>>>> Reading file >>>>>>>>> "/kernel.MT7628_FDT.lzma. uImage" >>>>>>>>>>>>>> * >>>>>>>>>>>>>> ** >>>>>>>>>>>>>> ** >>>>>>>>>>>>>> ****** >>>>>>>>>>>>>> >>>>>>>>> ****************************** >>>> ****************************** ****************************** >>>> ****************************** ****** >>>>>>>>>>>>>> ********** >>>>>>>>>>>>>> * >>>>>>>>>>>>>> FAT: 1365186 Bytes >>>>> read >>>>>>>>>>>>>> Omega2 # bootm >>>>> 0x80001100 >>>>>>>>>>>>>> ## Booting image at >>>>> 80001100 ... >>>>>>>>>>>>>> Image Name: >>>>> FreeBSD >>>>>>>>>>>>>> Image Type: >> MIPS >>>>> Linux Kernel Image (lzma >>>>>>>>> compressed) >>>>>>>>>>>>>> Data Size: >>>>> 1365122 Bytes = 1.3 MB >>>>>>>>>>>>>> Load Address: >>>>> fffffff2 >>>>>>>>>>>>>> Entry Point: >>>>> fffffff2 >>>>>>>>>>>>>> Verifying >> Checksum >>>>> ... OK >>>>>>>>>>>>>> Uncompressing >>>>> Kernel Image ... >>>>>>>>>>>>>> A few comments on >> the >>>>> hardware for anyone who wants >>>>>>>>> to get >>>>>>>>>>> one: >>>>>>>>>>>>>> Get the expansion >> dock >>>>> with serial port access - >>>>>>>>> the power >>>>>>>>>>> dock >>>>>>>>>>>>>> does not provide >>>>> serial access - i think it is >>>>>>>>> possible to >>>>>>>>>>> use an >>>>>>>>>>>>>> ftdi ttl serial >>>>> chip/cable but have not tried. >>>>>>>>>>>>>> Stupidly I forgot >> this >>>>> only has wifi access so you >>>>>>>>> are not >>>>>>>>>>> able to >>>>>>>>>>>>>> tftp boot this >> without >>>>> getting the ethernet network >>>>>>>>> expansion >>>>>>>>>>> but >>>>>>>>>>>>>> loading stuff up >> from >>>>> a usb memory stick is seem >>>>>>>>> fine from >>>>>>>>>>> u-boot. >>>>>>>>>>>>>> I do not think that >> it >>>>> is possible to boot from the >>>>>>>>> SD card >>>>>>>>>>> on the >>>>>>>>>>>>>> Omega2+ - which is >> a >>>>> shame. >>>>>>>>>>>>>> Thanks for reading, >>>>>>>>>>>>>> >>>>>>>>>>>>>> Mike. >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>> ______________________________ _________________ >>>>>>>>>>>>>> >> freebsd-mips@freebsd.org >>>>>>>>>>> > org>mailing >>>>>>>>>>>>> list >>>>>>>>>>>>>> >>>>>>>>> https://lists.freebsd.org/ >> mailman/listinfo/freebsd-mips >>>>>>>>>>>>>> >>>>>>>>>>> >>> mailman/listinfo/freebsd-mips> >>>>>>>>>>>>>> To unsubscribe, >> send >>>>> any mail to >>>>>>>>>>>>>> >>>> "freebsd-mips-unsubscribe@ freebsd.org >>>>>>>>>>>>>> >>>>>>>>> > unsubscribe@freebsd.org>" >>>>>>>>>>>>>> >>>>>>>>>>>>>> -- >>>>>>>>>>>>>> WBW >>>>>>>>>>>>>> ------- >>>>>>>>>>>>>> Rybalko Aleksandr >>>> >>>>>>>>>> > >>>>>>>>>>>>> >> ______________________________ >>>> _________________ >>>>>>>>>>>>> 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 >>>>>>> >>>>>>> From owner-freebsd-mips@freebsd.org Tue May 9 15:51:50 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 7BE1FD6505B for ; Tue, 9 May 2017 15:51:50 +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 B50F61F67 for ; Tue, 9 May 2017 15:51:49 +0000 (UTC) (envelope-from mike@wolman.co.uk) Received: from [192.168.3.50] ([80.229.66.11]) by avasout08 with smtp id JFrk1v0090EahWw01FrlJu; Tue, 09 May 2017 16:51:46 +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=N659UExz7-8A:10 a=UmSUZ3ptAAAA:8 a=4I05h4SrAAAA:8 a=6I5d2MoRAAAA:8 a=arpVtLJQAAAA:8 a=NEAV23lmAAAA:8 a=jdP34snFAAAA:8 a=LJ5NkaWEAAAA:8 a=bt8Zh30PAAAA:8 a=fkMMMrkkknrGvhzTCmkA:9 a=Doavq_CF_6984uKx:21 a=8gXCqPIf5elPA4Sq:21 a=pILNOxqGKmIA:10 a=FyGKTEvU35uc88vWBdgE:22 a=SXYKVUms7l59yVxtnTo9:22 a=IjZwj45LgO3ly-622nXo:22 a=86BuEF5rAmEUDcZwuOX_:22 a=jlphF6vWLdwq7oh3TaWq:22 a=eH83O4KjmLCfbRe1EArK:22 Subject: Re: onion omega2+ To: Mori Hiroki , Aleksandr Rybalko References: <694efc3a-e183-35a1-a0bf-9a9c0d708826@wolman.co.uk> <410144.69078.qm@web101716.mail.ssk.yahoo.co.jp> <128807.28836.qm@web101715.mail.ssk.yahoo.co.jp> <2d555385-8258-fd75-e4a3-a1e59bf86314@wolman.co.uk> <651873.78746.qm@web101702.mail.ssk.yahoo.co.jp> <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> Cc: "freebsd-mips@freebsd.org" From: Mike Wolman Message-ID: <672be258-8fed-6317-1325-f9fccf2646c3@wolman.co.uk> Date: Tue, 9 May 2017 16:51:43 +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: <541011.41820.qm@web101719.mail.ssk.yahoo.co.jp> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit 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: Tue, 09 May 2017 15:51:50 -0000 Ok I not sure what my next step or what Im looking for but here is some info about the serial stuff and readelf ouput [mike@f64-current ~/omega2/tftpboot]$ readelf -h kernel.MT7628_FDT ELF Header: Magic: 7f 45 4c 46 01 01 01 09 00 00 00 00 00 00 00 00 Class: ELF32 Data: 2's complement, little endian Version: 1 (current) OS/ABI: FreeBSD ABI Version: 0 Type: EXEC (Executable file) Machine: MIPS R3000 Big-Endian only Version: 0x1 Entry point address: 0x80001100 Start of program headers: 52 (bytes into file) Start of section headers: 5653480 (bytes into file) Flags: 0x50001001, mips32, o32, noreorder Size of this header: 52 (bytes) Size of program headers: 32 (bytes) Number of program headers: 6 Size of section headers: 40 (bytes) Number of section headers: 32 Section header string table index: 29 When booting into linux from flash: root@Omega-12BF:/dev# dmesg |grep tty [ 0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2 [ 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.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 [mike@f64-current ~/omega2/src/sys/gnu/dts/mips]$ grep serial * LINKIT7688.dts: serial0 = &uart2; LINKIT7688.dts-orig: serial0 = &uart2; mt7620a.dtsi: serial0 = &uartlite; mt7620n.dtsi: serial0 = &uartlite; mt7621.dtsi: serial0 = &uartlite; mt7628an.dtsi: serial0 = &uartlite; <------ the included dtsi by OMEGA2.dtsi rt2880.dtsi: serial0 = &uartlite; rt3050.dtsi: serial0 = &uartlite; rt3352.dtsi: serial0 = &uartlite; rt3883.dtsi: serial0 = &uartlite; rt5350.dtsi: serial0 = &uartlite; [mike@f64-current ~/omega2/src/sys/gnu/dts/mips]$ grep tty * ArcherC20i.dts: bootargs = "console=ttyS0,115200"; CARAMBOLA.dts: bootargs = "console=ttyS0,115200"; CF-WR800N.dts: bootargs = "console=ttyS0,115200"; MicroWRT.dts: bootargs = "console=ttyS0,115200"; NA930.dts: bootargs = "console=ttyS1,57600"; OMEGA2.dtsi: bootargs = "console=ttyS0,115200"; <----- looks like all the others OY-0001.dts: bootargs = "console=ttyS0,115200"; PBR-M1.dts: bootargs = "console=ttyS0,115200"; SK-WB8.dts: bootargs = "console=ttyS0,57600"; ZBT-WG2626.dts: bootargs = "console=ttyS0,115200"; ZBT-WG3526.dts: bootargs = "console=ttyS0,115200"; mt7620a.dtsi: bootargs = "console=ttyS0,57600"; mt7620n.dtsi: bootargs = "console=ttyS0,57600"; mt7628an.dtsi: bootargs = "console=ttyS0,57600"; rt2880.dtsi: bootargs = "console=ttyS0,57600"; rt3050.dtsi: bootargs = "console=ttyS0,57600"; rt3352.dtsi: bootargs = "console=ttyS0,57600"; rt3883.dtsi: bootargs = "console=ttyS0,57600"; rt5350.dtsi: bootargs = "console=ttyS0,57600"; (i have removed some of the results from here as most files match) On 09/05/2017 15:07, Mori Hiroki wrote: > Hi. Mike > >> Starting kernel ... > > I think success to boot. > > Next is Entry point miss or uart console issue. > > > Entry point can check on ELF kernel file by readelf command. > > Uart console issue is in dts file. > > ----- Original Message ----- > >> From: Mike Wolman >> To: Mori Hiroki ; Aleksandr Rybalko >> Cc: "freebsd-mips@freebsd.org" >> Date: 2017/5/9, Tue 22:42 >> Subject: Re: onion omega2+ >> >> >> Ok got somewhere with this >> >> >> USB_STORAGE: 1 Storage Device(s) found >> Omega2 # fatload usb 0:1 0x80800000 kernel.MT7628_FDT.uImage >> * >> * >> Reading file "kernel.MT7628_FDT.uImage" >> * >> ** >> ** >> ** >> ** >> ** >> ** >> ** >> ** >> ** >> ** >> ****** >> ****** >> ****************************************************************************************************************************************************************************************************************** >> **** >> * >> FAT: 5654824 Bytes read >> Omega2 # go >> Usage: >> go - start application at address 'addr' >> >> Omega2 # go 0x80001000 >> ## Starting application at 0x80001000 ... >> >> >> >> I have tried with: >> >> Omega2 # go 0x80001100 >> ## Starting application at 0x80001100 ... >> >> >> >> I have tried using the 0x80001000 for fatload as well: >> >> >> USB_STORAGE: 1 Storage Device(s) found >> Omega2 # help fatload >> fatload >> [bytes] >> - load binary file 'filename' from 'dev' on >> 'interface' >> to address 'addr' from dos filesystem >> >> Reading file "kernel.MT7628_FDT.uImage" >> * >> ** >> ** >> ** >> ** >> ** >> ** >> ** >> ** >> ** >> ** >> ****** >> ****** >> ****************************************************************************************************************************************************************************************************************** >> **** >> * >> FAT: 5654824 Bytes read >> Omega2 # go 0x80001100 >> ## Starting application at 0x80001100 ... >> >> >> >> However: >> >> 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: 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 ... >> >> >> But it doesnt go any further >> >> >> >> >> >> >> On 09/05/2017 14:20, Mori Hiroki wrote: >>> Hi. >>> >>> One more. >>> >>> Omega2 # fatload usb 0:1 0x80800000 kernel.MT7628_FDT.uImage >>> >>> Omega2 # bootm 0x80800000 >>> >>> ----- Original Message ----- >>>> From: Mike Wolman >>>> To: Mori Hiroki ; Aleksandr Rybalko >> >>>> Cc: "freebsd-mips@freebsd.org" >> >>>> Date: 2017/5/9, Tue 22:01 >>>> Subject: Re: onion omega2+ >>>> >>>> >>>> No joy >>>> >>>> Omega2 # fatload usb 0:1 0x80800000 kernel.MT7628_FDT.uImage >>>> * >>>> * >>>> Reading file "kernel.MT7628_FDT.uImage" >>>> * >>>> ** >>>> ** >>>> ** >>>> ** >>>> ** >>>> ** >>>> ** >>>> ** >>>> ** >>>> ** >>>> ****** >>>> ****** >>>> >> ****************************************************************************************************************************************************************************************************************** >>>> **** >>>> * >>>> FAT: 5654824 Bytes read >>>> Omega2 # bootm >>>> ## Booting image at 80100000 ... >>>> Bad Magic Number,CE6AE7C4 >>>> >>>> I am going to get a different usb memory stick and rebuild the kernel >>>> later on as i got an error when last writing to the usb memory key and >>>> its quite old now so just want to eliminate it from testing. >>>> >>>> >>>> On 09/05/2017 13:52, Mori Hiroki wrote: >>>>> Hi. >>>>> >>>>> This is my sample operation get image from network and boot. >>>>> >>>>> RT3052 # tftpboot 0x80800000 >> Planex_MZK-WNH_kernel.kbin.oldlzma.uboot >>>>> RT3052 # bootm >>>>> >>>>> >>>>> I don't use USB support U-Boot. But I think fatload command >> argument is >>>>> temporary memory address not kernel address. >>>>> >>>>> How about this. >>>>> >>>>> Omega2 # fatload usb 0:1 0x80800000 kernel.MT7628_FDT.uImage >>>>> Omega2 # bootm >>>>> >>>>> ----- Original Message ----- >>>>>> From: Mike Wolman >>>>>> To: Aleksandr Rybalko ; Mori Hiroki >>>> >>>>>> Cc: "freebsd-mips@freebsd.org" >>>> >>>>>> Date: 2017/5/9, Tue 20:48 >>>>>> Subject: Re: onion omega2+ >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> Is it possible to exclude the compression of the kernel/image >> for >>>>> now eg: >>>>>> mkimage -A mips -C none -O linux -T kernel -a 0x80001000 -e >>>>> 0x80001100 -n "FreeBSD" -d kernel.MT7628_FDT >>>>> kernel.MT7628_FDT.uImage >>>>>> I have just tried the above but when booting I get a Bad >> Magic >>>>> Number. >>>>>> Omega2 # fatload usb 0:1 0x80001000 kernel.MT7628_FDT.uImage >>>>>> * >>>>>> * >>>>>> Reading file "kernel.MT7628_FDT.uImage" >>>>>> * >>>>>> ** >>>>>> ** >>>>>> ** >>>>>> ** >>>>>> ** >>>>>> ** >>>>>> ** >>>>>> ** >>>>>> ** >>>>>> ** >>>>>> ****** >>>>>> ****** >>>>>> >> ****************************************************************************************************************************************************************************************************************** >>>>>> **** >>>>>> * >>>>>> FAT: 5654824 Bytes read >>>>>> Omega2 # bootm 0x80001100 >>>>>> ## Booting image at 80001100 ... >>>>>> Bad Magic Number,1C994480 >>>>>> Omega2 # >>>>>> >>>>>> >>>>>> I have seen other examples starting a program directly with >> going to >>>>> the address but this didnt work either: >>>>>> Omega2 # go 0x80001100 >>>>>> ## Starting application at 0x80001100 ... >>>>>> >>>>>> omega freezes here. >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> On 09/05/2017 10:12, Aleksandr Rybalko wrote: >>>>>> >>>>>> Fix things in order :) >>>>> Currently you have problem with LZMA, serial port later. >>>>> So, find version of lzma used to build linux firmware, MIPS >> routers world >>>> use about 5 incompatible versions. One of them, you can find here: >>>> http://project.zrouter.org/hg/zrouter/file/9ac53695a44d/tools/oldlzma >>>>>>> >>>>>>> >>>>>>> 2017-05-09 7:03 GMT+03:00 Mori Hiroki >>>> : >>>>>>> Hi Mike >>>>>>>> Could you show u-boot printenv command result. >>>>>>>> >>>>>>>> Thanks >>>>>>>> >>>>>>>> >>>>>>>> ----- Original Message ----- >>>>>>>>> From: Mike Wolman >>>>>>>>> To: Mori Hiroki ; >>>> "freebsd-mips@freebsd.org" >>>>>>>>> Cc: >>>>>>>>> Date: 2017/5/9, Tue 10:30 >>>>>>>>> Subject: Re: onion omega2+ >>>>>>>>> >>>>>>>>> Hi Mori, >>>>>>>>> >>>>>>>>> When I compiled the world/kernel etc I used: >>>>>>>>> >>>>>>>>> X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT >>>>>>>>> ../freebsd-wifi-build/build/ bin/build ralink >>>>> buildkernel >>>>>>>>> I checked the serial stuff was the same as the >>>>> other configs in: >>>>>>>>> https://github.com/freebsd/ freebsd-wifi-build/ >>>>>>>>> and they looked the same. >>>>>>>>> >>>>>>>>> The OMEGA2.dtsi file has: >>>>>>>>> >>>>>>>>> chosen { >>>>>>>>> bootargs = >>>> "console=ttyS0,115200"; >>>>>>>>> }; >>>>>>>>> >>>>>>>>> >>>>>>>>> And mt7628an.dtsi has: serial0 = &uartlite; >>>>>>>>> >>>>>>>>> I dont think im getting as far as worrying about >>>>> the serial console at >>>>>>>>> the moment and need to get the kernel to >> uncompress >>>>> first. >>>>>>>>> Mike. >>>>>>>>> >>>>>>>>> >>>>>>>>> On 09/05/2017 02:20, Mori Hiroki wrote: >>>>>>>>>> Hi Mike >>>>>>>>>> >>>>>>>>>> In FreeBSD is use serial0 dts item to >> console. >>>>>>>>>> I think good to use this at start. >>>>>>>>>> >>>>>>>>>> freebsd/sys/gnu/dts/mips/ MT7628.dts >>>>>>>>>> >>>>>>>>>> ----- Original Message ----- >>>>>>>>>>> From: Mike Wolman >> >>>>>>>>>>> To: Mori Hiroki >> ; >>>>>>>>> "freebsd-mips@freebsd.org" >>>> >>>>>>>>>>> Cc: >>>>>>>>>>> Date: 2017/5/9, Tue 09:25 >>>>>>>>>>> Subject: Re: onion omega2+ >>>>>>>>>>> >>>>>>>>>>> Hi Mori, >>>>>>>>>>> >>>>>>>>>>> I grabbed the dts files from: >>>>>>>>>>> >>>>>>>>>>> https://github.com/WereCatf/ >>>> source/tree/image/target/ linux/ramips/dts >>>>>>>>> https://github.com/WereCatf/ >> source/blob/image/target/ >>>> linux/ramips/dts/OMEGA2P.dts >>>>>>>>> https://github.com/WereCatf/ >> source/blob/image/target/ >>>> linux/ramips/dts/OMEGA2.dtsi >>>>>>>>>>> If this is of any use from the default >>>>> linux install on the flash: >>>>>>>>>>> root@Omega-12BF:/proc# cat /proc/mtd >>>>>>>>>>> dev: size erasesize name >>>>>>>>>>> mtd0: 00030000 00010000 >> "u-boot" >>>>>>>>>>> mtd1: 00010000 00010000 >> "u-boot-env" >>>>>>>>>>> mtd2: 00010000 00010000 >> "factory" >>>>>>>>>>> mtd3: 01fb0000 00010000 >> "firmware" >>>>>>>>>>> mtd4: 00148842 00010000 >> "kernel" >>>>>>>>>>> mtd5: 01e677be 00010000 >> "rootfs" >>>>>>>>>>> mtd6: 01950000 00010000 >> "rootfs_data" >>>>>>>>>>> >>>>>>>>>>> btw after posting i spotted and error >> in >>>>> what i did with: >>>>>>>>>>> mkimage -A mips -O linux -T kernel -C >> lzma >>>>> \ >>>>>>>>>>> -a 0x80001000 -e 0x80001100 \ >>>>>>>>>>> -n "FreeBSD" -d >>>>> kernel.MT7628_FDT.lzma >>>>>>>>>>> kernel.MT7628_FDT.ulzma.uImage >>>>>>>>>>> >>>>>>>>>>> I have redone this using the correct >>>>> compressed kernel ie: >>>>>>>>>>> mkimage -A mips -O linux -T kernel -C >> lzma >>>>> \ >>>>>>>>>>> -a 0x80001000 -e 0x80001100 \ >>>>>>>>>>> -n "FreeBSD" -d >>>>> kernel.MT7628_FDT.ulzma >>>>>>>>>>> kernel.MT7628_FDT.ulzma.uImage >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> But this didnt work. >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> On 09/05/2017 01:17, Mori Hiroki >> wrote: >>>>>>>>>>>> Hi. >>>>>>>>>>>> >>>>>>>>>>>> I think if U-Boot work memory >> make >>>>> broken then >>>>>>>>>>>> Uncompressing Kernel Image is NG. >>>>>>>>>>>> >>>>>>>>>>>> Some ARM U-Boot is use top >> address >>>>> in work memory. >>>>>>>>>>>> If this case your kernel start >>>>> address to move to >>>>>>>>>>>> after work memory. But I never >> see >>>>> in MIPS. >>>>>>>>>>>> And What is set FDT_DTS_FILE in >>>>> your kernel configuration ? >>>>>>>>>>>> ----- Original Message ----- >>>>>>>>>>>> >>>>>>>>>>>>> From: Mike Wolman >>>> >>>>>>>>>>>>> To: freebsd-mips@freebsd.org >>>>>>>>>>>>> Cc: >>>>>>>>>>>>> Date: 2017/5/9, Tue 07:48 >>>>>>>>>>>>> Subject: Re: onion omega2+ >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> More info in case anyone can >>>>> point me in the right direction. >>>>>>>>>>>>> I have found: >>>>>>>>>>>>> >>>>>>>>>>>>> https://forum.openwrt.org/ >>>> viewtopic.php?id=53865 >>>>>>>>>>>>> I have tried changing how >> lzma >>>>> compresses the kernel by >>>>>>>>> adding -d20 to >>>>>>>>>>>>> the build scripts eg: >>>>>>>>>>>>> >>>>>>>>>>>>> /usr/local/bin/lzma e >>>>>>>>>>>>> >>>>>>>>> /home/mike/omega2/src/../root/ >>>> mipsel_ap/boot/kernel.MT7628_ FDT/kernel >>>>>>>>>>> \ >>>>>>>>>>>>> /home/mike/omega2/src/../ >>>> tftpboot/kernel.MT7628_FDT. lzma >>>>> -d20 >>>>>>>>>>>>> This did not work. >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> Looking at the onion omega >> conf >>>>> I see that it uses mkuzip and >>>>>>>>> not lzma >>>>>>>>>>>>> with the following settings: >>>>>>>>>>>>> >>>>>>>>>>>>> >> X_FSIMAGE_CMD="mkuzip" >>>>>>>>>>>>> X_FSIMAGE_ARGS="-L -d -s >> 65536 >>>>> -v" >>>>>>>>>>>>> >> X_FSIMAGE_SUFFIX=".ulzma" >>>>>>>>>>>>> So tried the following: >>>>>>>>>>>>> >>>>>>>>>>>>> mkuzip -L -d -s 65536 -v -o >>>>> kernel.MT7628_FDT.ulzma >>>>>>>>> kernel.MT7628_FDT >>>>>>>>>>>>> mkimage -A mips -O linux -T >>>>> kernel -C lzma \ >>>>>>>>>>>>> -a 0x80001000 -e >> 0x80001100 >>>>> \ >>>>>>>>>>>>> -n "FreeBSD" -d >>>>> kernel.MT7628_FDT.lzma >>>>>>>>>>>>> >> kernel.MT7628_FDT.ulzma.uImage >>>>>>>>>>>>> >>>>>>>>>>>>> But this did not work either. >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> On 08/05/2017 19:41, >> Aleksandr >>>>> Rybalko wrote: >>>>>>>>>>>>>> Hi Mike! >>>>>>>>>>>>>> >>>>>>>>>>>>>> I see you have no >> "OK" >>>>> after >>>>>>>>> "Uncompressing Kernel >>>>>>>>>>> Image >>>>>>>>>>>>> ...", so >>>>>>>>>>>>>> first point uboot >>>>> decompressor fail. >>>>>>>>>>>>>> Why fail? Because you >> have >>>>> wrong base address in image: >>>>>>>>>>>>>> Load Address: >> fffffff2 >>>>>>>>>>>>>> Entry Point: >> fffffff2 >>>>>>>>>>>>>> MIPS32 machines have >> RAM >>>>> mapped to 0x80000000 address, >>>>>>>>> so adding >>>>>>>>>>> its >>>>>>>>>>>>>> size, you will get max >>>>> address (if 16MB, it will be >>>>>>>>> 0x81000000), >>>>>>>>>>> but >>>>>>>>>>>>>> you uboot image was >>>>> created with 0xfffffff2. >>>>>>>>>>>>>> Even more, unpacked >> kernel >>>>> expects it will be called at >>>>>>>>>>> 0x80001100. so >>>>>>>>>>>>>> if you have ELF kernel >>>>> (file with ELF header, like >>>>>>>>> every >>>>>>>>>>> executable) >>>>>>>>>>>>>> that file have to be >>>>> loaded at (0x80001100 - >>>>>>>>> ELF_HEADER_SIZE). >>>>>>>>>>>>>> In most cases it will >> be >>>>> 0x80001100 - 0x100 = >>>>>>>>> 0x80001000. But >>>>>>>>>>> sometime >>>>>>>>>>>>>> (I did not found why) >> it >>>>> can be 0x20, you can find it >>>>>>>>> by looking >>>>>>>>>>> at >>>>>>>>>>>>>> .text section in >> readelf >>>>> -S. >>>>>>>>>>>>>> So if you have kernel >> with >>>>> entry point 0x80001100 and >>>>>>>>> .text >>>>>>>>>>> segment >>>>>>>>>>>>>> offset 0x100, you have >> to >>>>> create uboot image with load >>>>>>>>> address >>>>>>>>>>>>>> 0x80001000 and entry >> point >>>>> 0x80001100. >>>>>>>>>>>>>> If that step successful >>>>> you will get: >>>>>>>>>>>>>> /Uncompressing Kernel >>>>> Image/ ... OK >>>>>>>>>>>>>> Starting kernel ... >>>>>>>>>>>>>> >>>>>>>>>>>>>> Last line mean, uboot >> did >>>>> jump into kernel code. >>>>>>>>>>>>>> Good luck. >>>>>>>>>>>>>> >>>>>>>>>>>>>> 2017-05-07 18:20 >> GMT+03:00 >>>>> Mike Wolman >>>>>>>>> >>>>>>>>>>>>> >>>> >: >>>>>>>>>>>>>> Hi, >>>>>>>>>>>>>> >>>>>>>>>>>>>> I am trying to get >>>>> FreeBSD working on this board - >>>>>>>>> I think I >>>>>>>>>>> am >>>>>>>>>>>>>> almost there in >>>>> getting it working but need some >>>>>>>>> help please. >>>>>>>>>>>>>> I have followed >>>>> instructions from the >>>>>>>>> freebsd-wifi-build and >>>>>>>>>>>>>> *think* I have got >>>>> everything correct - I am trying >>>>>>>>> to do >>>>>>>>>>> this on >>>>>>>>>>>>>> a CURRENT setup: >>>>>>>>>>>>>> >>>>>>>>>>>>>> FreeBSD >>>>> f64-current.mw.office 12.0-CURRENT FreeBSD >>>>>>>>>>> 12.0-CURRENT #0 >>>>>>>>>>>>>> r317887: Sun May 7 >>>>> 03:20:34 UTC 2017 >>>>>>>>>>>>>> >>>>>>>>>>> mike@f64-current.mw.office:/ >>>> usr/obj/usr/src/sys/GENERIC- NODEBUG amd64 >>>>>>>>>>>>>> $ cat >>>>> ~/.freebsd-wifi-build- settings.cfg >>>>>>>>>>>>>> >> X_SKIP_MORE_STUFF=YES >>>>>>>>>>>>>> >>>>> X_EXTRA_SRC_CONF=~/omega2/src. conf >>>>>>>>>>>>>> $ cat >>>>> ~/omega2/src.conf >>>>>>>>>>>>>> WITHOUT_CLANG=YES >>>>>>>>>>>>>> >> WITHOUT_CLANG_FULL=YES >>>>>>>>>>>>>> get dts files from >>>>> thread >>>>>>>>>>>>>> >>>>>>>>> http://community.onion.io/ >> topic/1099/openwrt-on-the- >>>> omega-2/8 >>>>>>>>>>>>>> >>>>>>>>>>> >>> topic/1099/openwrt-on-the- omega-2/8> >>>>>>>>>>>>>> cd >>>>> ~/omega2/src/sys/gnu/dts/mips >>>>>>>>>>>>>> fetch >>>>>>>>>>>>>> >>>>>>>>> https://raw.githubusercontent. >> com/WereCatf/source/image/ >>>> target/linux/ramips/dts/ OMEGA2.dtsi >>>>>>>>>>>>>> >>>>>>>>> >>> WereCatf/source/image/target/ linux/ramips/dts/OMEGA2.dtsi> >>>>>>>>>>>>>> fetch >>>>>>>>>>>>>> >>>>>>>>> https://raw.githubusercontent. >> com/WereCatf/source/image/ >>>> target/linux/ramips/dts/ OMEGA2.dts >>>>>>>>>>>>>> >>>>>>>>> >>> WereCatf/source/image/target/ linux/ramips/dts/OMEGA2.dts> >>>>>>>>>>>>>> fetch >>>>>>>>>>>>>> >>>>>>>>> https://raw.githubusercontent. >> com/WereCatf/source/image/ >>>> target/linux/ramips/dts/ OMEGA2P.dts >>>>>>>>>>>>>> >>>>>>>>> >>> WereCatf/source/image/target/ linux/ramips/dts/OMEGA2P.dts> >>>>>>>>>>>>>> >> X_DTS_FILE=OMEGA2P.dts >>>>> KERNCONF=MT7628_FDT >>>>>>>>>>>>>> >>>>> ../freebsd-wifi-build/build/ bin/build ralink >>>>>>>>> buildworld >>>>>>>>>>>>>> >> X_DTS_FILE=OMEGA2P.dts >>>>> KERNCONF=MT7628_FDT >>>>>>>>>>>>>> >>>>> ../freebsd-wifi-build/build/ bin/build ralink >>>>>>>>> buildkernel >>>>>>>>>>>>>> >> X_DTS_FILE=OMEGA2P.dts >>>>> KERNCONF=MT7628_FDT >>>>>>>>>>>>>> >>>>> ../freebsd-wifi-build/build/ bin/build ralink >>>>>>>>> installworld >>>>>>>>>>>>>> >> X_DTS_FILE=OMEGA2P.dts >>>>> KERNCONF=MT7628_FDT >>>>>>>>>>>>>> >>>>> ../freebsd-wifi-build/build/ bin/build ralink >>>>>>>>> installkernel >>>>>>>>>>>>>> >> X_DTS_FILE=OMEGA2P.dts >>>>> KERNCONF=MT7628_FDT >>>>>>>>>>>>>> >>>>> ../freebsd-wifi-build/build/ bin/build ralink >>>>>>>>> distribution >>>>>>>>>>>>>> >> X_DTS_FILE=OMEGA2P.dts >>>>> KERNCONF=MT7628_FDT >>>>>>>>>>>>>> >>>>> ../freebsd-wifi-build/build/ bin/build ralink >>>>>>>>> mfsroot >>>>>>>>>>>>>> >> X_DTS_FILE=OMEGA2P.dts >>>>> KERNCONF=MT7628_FDT >>>>>>>>>>>>>> >>>>> ../freebsd-wifi-build/build/ bin/build ralink >>>>>>>>> fsimage >>>>>>>>>>>>>> >> X_DTS_FILE=OMEGA2P.dts >>>>> KERNCONF=MT7628_FDT >>>>>>>>>>>>>> >>>>> ../freebsd-wifi-build/build/ bin/build ralink >> uboot >>>>>>>>>>>>>> Create flash: >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>> X_FLASH=kernel.MT7628_FDT. lzma.flash >>>>>>>>>>>>>> dd if=/dev/zero >> bs=$(( >>>>> 0x200000 )) count=1 >>>>>>>>> of=${X_FLASH} >>>>>>>>>>>>>> dd >>>>> if=kernel.MT7628_FDT.lzma. uImage of=${X_FLASH} >>>>>>>>>>> conv=notrunc >>>>>>>>>>>>>> dd if= >>>>> mfsroot-ralink.img.lzma >> ${X_FLASH} >>>>>>>>>>>>>> $ readelf -h >>>>> kernel.MT7628_FDT | grep Entry >>>>>>>>>>>>>> Entry point >>>>> address: 0x80001100 >>>>>>>>>>>>>> >>>>>>>>>>>>>> Now on the omega >> over >>>>> serial - I didnt get the >>>>>>>>> network >>>>>>>>>>> expansion >>>>>>>>>>>>>> doc thing so am >> doing >>>>> stuff with usb rather than >>>>>>>>> tftp >>>>>>>>>>>>>> I am not 100% sure >>>>> about the 0x80001100 and the >>>>>>>>> fatload and >>>>>>>>>>> have >>>>>>>>>>>>>> tried this >>>>>>>>>>>>>> >>>>>>>>>>>>>> Omega2 # fatload >> usb >>>>> 0:1 0x80001100 >>>>>>>>>>> /kernel.MT7628_FDT.lzma.flash >>>>>>>>>>>>>> * >>>>>>>>>>>>>> * >>>>>>>>>>>>>> Reading file >>>>>>>>> "/kernel.MT7628_FDT.lzma. flash" >>>>>>>>>>>>>> * >>>>>>>>>>>>>> ** >>>>>>>>>>>>>> ** >>>>>>>>>>>>>> ** >>>>>>>>>>>>>> ****** >>>>>>>>>>>>>> >>>>>>>>> ****************************** >>>> ****************************** ****************************** >>>> ****************************** ********************* >>>>>>>>>>>>>> ****** >>>>>>>>>>>>>> * >>>>>>>>>>>>>> FAT: 2108463 Bytes >>>>> read >>>>>>>>>>>>>> Omega2 # bootm >>>>> 0x80001100 >>>>>>>>>>>>>> ## Booting image at >>>>> 80001100 ... >>>>>>>>>>>>>> Image Name: >>>>> FreeBSD >>>>>>>>>>>>>> Image Type: >> MIPS >>>>> Linux Kernel Image (lzma >>>>>>>>> compressed) >>>>>>>>>>>>>> Data Size: >>>>> 1365122 Bytes = 1.3 MB >>>>>>>>>>>>>> Load Address: >>>>> fffffff2 >>>>>>>>>>>>>> Entry Point: >>>>> fffffff2 >>>>>>>>>>>>>> Verifying >> Checksum >>>>> ... OK >>>>>>>>>>>>>> Uncompressing >>>>> Kernel Image ... >>>>>>>>>>>>>> At this point >> nothing >>>>> happens and console hangs - >>>>>>>>> note in >>>>>>>>>>>>>> OMEGA2.dtsithe >> console >>>>> is set to ttyS0: >>>>>>>>>>>>>> bootargs = >>>>> "console=ttyS0,115200"; >>>>>>>>>>>>>> >>>>>>>>>>>>>> I have also tried >> with >>>>> just kernel.MT7628_FDT and >>>>>>>>>>>>>> >> kernel.MT7628_FDT.lzma >>>>> but both fail: >>>>>>>>>>>>>> Omega2 # fatload >> usb >>>>> 0:1 0x80001100 >>>>>>>>>>> /kernel.MT7628_FDT.lzma.uImage >>>>>>>>>>>>>> * >>>>>>>>>>>>>> * >>>>>>>>>>>>>> Reading file >>>>>>>>> "/kernel.MT7628_FDT.lzma. uImage" >>>>>>>>>>>>>> * >>>>>>>>>>>>>> ** >>>>>>>>>>>>>> ** >>>>>>>>>>>>>> ****** >>>>>>>>>>>>>> >>>>>>>>> ****************************** >>>> ****************************** ****************************** >>>> ****************************** ****** >>>>>>>>>>>>>> ********** >>>>>>>>>>>>>> * >>>>>>>>>>>>>> FAT: 1365186 Bytes >>>>> read >>>>>>>>>>>>>> Omega2 # bootm >>>>> 0x80001100 >>>>>>>>>>>>>> ## Booting image at >>>>> 80001100 ... >>>>>>>>>>>>>> Image Name: >>>>> FreeBSD >>>>>>>>>>>>>> Image Type: >> MIPS >>>>> Linux Kernel Image (lzma >>>>>>>>> compressed) >>>>>>>>>>>>>> Data Size: >>>>> 1365122 Bytes = 1.3 MB >>>>>>>>>>>>>> Load Address: >>>>> fffffff2 >>>>>>>>>>>>>> Entry Point: >>>>> fffffff2 >>>>>>>>>>>>>> Verifying >> Checksum >>>>> ... OK >>>>>>>>>>>>>> Uncompressing >>>>> Kernel Image ... >>>>>>>>>>>>>> A few comments on >> the >>>>> hardware for anyone who wants >>>>>>>>> to get >>>>>>>>>>> one: >>>>>>>>>>>>>> Get the expansion >> dock >>>>> with serial port access - >>>>>>>>> the power >>>>>>>>>>> dock >>>>>>>>>>>>>> does not provide >>>>> serial access - i think it is >>>>>>>>> possible to >>>>>>>>>>> use an >>>>>>>>>>>>>> ftdi ttl serial >>>>> chip/cable but have not tried. >>>>>>>>>>>>>> Stupidly I forgot >> this >>>>> only has wifi access so you >>>>>>>>> are not >>>>>>>>>>> able to >>>>>>>>>>>>>> tftp boot this >> without >>>>> getting the ethernet network >>>>>>>>> expansion >>>>>>>>>>> but >>>>>>>>>>>>>> loading stuff up >> from >>>>> a usb memory stick is seem >>>>>>>>> fine from >>>>>>>>>>> u-boot. >>>>>>>>>>>>>> I do not think that >> it >>>>> is possible to boot from the >>>>>>>>> SD card >>>>>>>>>>> on the >>>>>>>>>>>>>> Omega2+ - which is >> a >>>>> shame. >>>>>>>>>>>>>> Thanks for reading, >>>>>>>>>>>>>> >>>>>>>>>>>>>> Mike. >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>> ______________________________ _________________ >>>>>>>>>>>>>> >> freebsd-mips@freebsd.org >>>>>>>>>>> > org>mailing >>>>>>>>>>>>> list >>>>>>>>>>>>>> >>>>>>>>> https://lists.freebsd.org/ >> mailman/listinfo/freebsd-mips >>>>>>>>>>>>>> >>>>>>>>>>> >>> mailman/listinfo/freebsd-mips> >>>>>>>>>>>>>> To unsubscribe, >> send >>>>> any mail to >>>>>>>>>>>>>> >>>> "freebsd-mips-unsubscribe@ freebsd.org >>>>>>>>>>>>>> >>>>>>>>> > unsubscribe@freebsd.org>" >>>>>>>>>>>>>> >>>>>>>>>>>>>> -- >>>>>>>>>>>>>> WBW >>>>>>>>>>>>>> ------- >>>>>>>>>>>>>> Rybalko Aleksandr >>>> >>>>>>>>>> > >>>>>>>>>>>>> >> ______________________________ >>>> _________________ >>>>>>>>>>>>> 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 >>>>>>> >>>>>>> From owner-freebsd-mips@freebsd.org Tue May 9 17:43:26 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 3301ED650D4 for ; Tue, 9 May 2017 17:43:26 +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 69F26316 for ; Tue, 9 May 2017 17:43:24 +0000 (UTC) (envelope-from mike@wolman.co.uk) Received: from [192.168.3.50] ([80.229.66.11]) by avasout08 with smtp id JHjL1v0030EahWw01HjMup; Tue, 09 May 2017 18:43:22 +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=N659UExz7-8A:10 a=UmSUZ3ptAAAA:8 a=4I05h4SrAAAA:8 a=6I5d2MoRAAAA:8 a=arpVtLJQAAAA:8 a=NEAV23lmAAAA:8 a=jdP34snFAAAA:8 a=LJ5NkaWEAAAA:8 a=bt8Zh30PAAAA:8 a=Nb6nLLWaGOrri_cCNZkA:9 a=uUJGNs5n-Rx3INQf:21 a=Rute39qgakh_wCIp:21 a=pILNOxqGKmIA:10 a=FyGKTEvU35uc88vWBdgE:22 a=SXYKVUms7l59yVxtnTo9:22 a=IjZwj45LgO3ly-622nXo:22 a=86BuEF5rAmEUDcZwuOX_:22 a=jlphF6vWLdwq7oh3TaWq:22 a=eH83O4KjmLCfbRe1EArK:22 Subject: Re: onion omega2+ To: Mori Hiroki , Aleksandr Rybalko References: <694efc3a-e183-35a1-a0bf-9a9c0d708826@wolman.co.uk> <410144.69078.qm@web101716.mail.ssk.yahoo.co.jp> <128807.28836.qm@web101715.mail.ssk.yahoo.co.jp> <2d555385-8258-fd75-e4a3-a1e59bf86314@wolman.co.uk> <651873.78746.qm@web101702.mail.ssk.yahoo.co.jp> <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> Cc: "freebsd-mips@freebsd.org" From: Mike Wolman Message-ID: <20312f7d-126a-4c5d-edf4-f0cd8556aa4f@wolman.co.uk> Date: Tue, 9 May 2017 18:43:18 +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: <541011.41820.qm@web101719.mail.ssk.yahoo.co.jp> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit 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: Tue, 09 May 2017 17:43:26 -0000 Can someone confirm that the load address for the u-boot is correct - i currently have: UBOOT_KERN_LOADADDR = 0x80001000 UBOOT_KERN_STARTADDR = 0x80001100 The UBOOT_KERN_STARTADDR was obtained from: [mike@f64-current /usr/home/mike/omega2/tftpboot]$ readelf -h kernel.MT7628_FDT ELF Header: Magic: 7f 45 4c 46 01 01 01 09 00 00 00 00 00 00 00 00 Class: ELF32 Data: 2's complement, little endian Version: 1 (current) OS/ABI: FreeBSD ABI Version: 0 Type: EXEC (Executable file) Machine: MIPS R3000 Big-Endian only Version: 0x1 Entry point address: 0x80001100 Start of program headers: 52 (bytes into file) Start of section headers: 5653480 (bytes into file) Flags: 0x50001001, mips32, o32, noreorder Size of this header: 52 (bytes) Size of program headers: 32 (bytes) Number of program headers: 6 Size of section headers: 40 (bytes) Number of section headers: 32 Section header string table index: 29 However the UBOOT_KERN_LOADADDR was from what was suggested earlier and not sure how to work out (by getting to as far as I have on the omega i have just assumed it is and all is ok with it but is one variable i am not sure is correct). The only place i can find values for .text is from readelf but do not know if these values are relevant and what to do with them to confirm if 0x80001000 is correct eg: [mike@f64-current /usr/home/mike/omega2/tftpboot]$ readelf -S kernel.MT7628_FDT|more There are 32 section headers, starting at offset 0x5643e8: Section Headers: [Nr] Name Type Addr Off Size ES Flg Lk Inf Al [ 0] NULL 00000000 000000 000000 00 0 0 0 [ 1] .text PROGBITS 80001100 001100 3520b0 00 AX 0 0 16 [ 2] .MIPS.stubs PROGBITS 803531b0 3531b0 000010 00 AX 0 0 4 [ 3] .rodata PROGBITS 803531c0 3531c0 06d354 00 A 0 0 16 [ 4] set_sysctl_set PROGBITS 803c0514 3c0514 0012b4 00 A 0 0 4 [ 5] set_sysuninit_set PROGBITS 803c17c8 3c17c8 0004e4 00 A 0 0 4 [ 6] set_sysinit_set PROGBITS 803c1cac 3c1cac 0009ac 00 A 0 0 4 [ 7] set_cam_xpt_xport PROGBITS 803c2658 3c2658 000028 00 A 0 0 4 [ 8] set_modmetadata_s PROGBITS 803c2680 3c2680 000518 00 A 0 0 4 [ 9] set_cam_xpt_proto PROGBITS 803c2b98 3c2b98 000010 00 A 0 0 4 [10] set_kdb_dbbe_set PROGBITS 803c2ba8 3c2ba8 000008 00 A 0 0 4 [11] set_ofw_set PROGBITS 803c2bb0 3c2bb0 000004 00 A 0 0 4 [12] set_uart_fdt_clas PROGBITS 803c2bb4 3c2bb4 000004 00 A 0 0 4 [13] set_cons_set PROGBITS 803c2bb8 3c2bb8 000008 00 A 0 0 4 [14] usb_host_id PROGBITS 803c2bc0 3c2bc0 000020 00 A 0 0 32 [15] .interp PROGBITS 803c2be0 3c2be0 00000d 00 A 0 0 1 [16] .hash HASH 803c2bf0 3c2bf0 00b2c8 04 A 17 0 4 [17] .dynsym DYNSYM 803cdeb8 3cdeb8 01cad0 10 A 18 1 4 [18] .dynstr STRTAB 803ea988 3ea988 01cae6 00 A 0 0 1 [19] .reginfo MIPS_REGINFO 80407470 407470 000018 18 A 0 0 4 [20] .data PROGBITS 8040a000 40a000 03d200 00 WA 0 0 8192 [21] .rld_map PROGBITS 80447200 447200 000004 00 WA 0 0 4 [22] set_pcpu PROGBITS 80447240 447240 000d04 00 WA 0 0 64 [23] .got PROGBITS 80447f50 447f50 0019cc 04 WA 0 0 16 [24] .dynamic DYNAMIC 8044991c 44991c 0000c8 08 A 18 0 4 [25] .bss NOBITS 80449a00 4499e4 08a110 00 WA 0 0 64 [26] .comment PROGBITS 00000000 4499e4 010753 00 0 0 1 [27] .pdr PROGBITS 00000000 45a138 04f840 00 0 0 4 [28] .gnu_debuglink PROGBITS 00000000 4a9978 000014 00 0 0 1 [29] .shstrtab STRTAB 00000000 4a998c 00016d 00 0 0 1 [30] .symtab SYMTAB 00000000 4a9afc 04eb40 10 31 12809 4 [31] .strtab STRTAB 00000000 4f863c 06bdac 00 0 0 1 Key to Flags: W (write), A (alloc), X (execute), M (merge), S (strings) I (info), L (link order), G (group), x (unknown) O (extra OS processing required) o (OS specific), p (processor specific) [mike@f64-current /usr/home/mike/omega2/tftpboot]$ On 09/05/2017 15:07, Mori Hiroki wrote: > Hi. Mike > >> Starting kernel ... > > I think success to boot. > > Next is Entry point miss or uart console issue. > > > Entry point can check on ELF kernel file by readelf command. > > Uart console issue is in dts file. > > ----- Original Message ----- > >> From: Mike Wolman >> To: Mori Hiroki ; Aleksandr Rybalko >> Cc: "freebsd-mips@freebsd.org" >> Date: 2017/5/9, Tue 22:42 >> Subject: Re: onion omega2+ >> >> >> Ok got somewhere with this >> >> >> USB_STORAGE: 1 Storage Device(s) found >> Omega2 # fatload usb 0:1 0x80800000 kernel.MT7628_FDT.uImage >> * >> * >> Reading file "kernel.MT7628_FDT.uImage" >> * >> ** >> ** >> ** >> ** >> ** >> ** >> ** >> ** >> ** >> ** >> ****** >> ****** >> ****************************************************************************************************************************************************************************************************************** >> **** >> * >> FAT: 5654824 Bytes read >> Omega2 # go >> Usage: >> go - start application at address 'addr' >> >> Omega2 # go 0x80001000 >> ## Starting application at 0x80001000 ... >> >> >> >> I have tried with: >> >> Omega2 # go 0x80001100 >> ## Starting application at 0x80001100 ... >> >> >> >> I have tried using the 0x80001000 for fatload as well: >> >> >> USB_STORAGE: 1 Storage Device(s) found >> Omega2 # help fatload >> fatload >> [bytes] >> - load binary file 'filename' from 'dev' on >> 'interface' >> to address 'addr' from dos filesystem >> >> Reading file "kernel.MT7628_FDT.uImage" >> * >> ** >> ** >> ** >> ** >> ** >> ** >> ** >> ** >> ** >> ** >> ****** >> ****** >> ****************************************************************************************************************************************************************************************************************** >> **** >> * >> FAT: 5654824 Bytes read >> Omega2 # go 0x80001100 >> ## Starting application at 0x80001100 ... >> >> >> >> However: >> >> 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: 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 ... >> >> >> But it doesnt go any further >> >> >> >> >> >> >> On 09/05/2017 14:20, Mori Hiroki wrote: >>> Hi. >>> >>> One more. >>> >>> Omega2 # fatload usb 0:1 0x80800000 kernel.MT7628_FDT.uImage >>> >>> Omega2 # bootm 0x80800000 >>> >>> ----- Original Message ----- >>>> From: Mike Wolman >>>> To: Mori Hiroki ; Aleksandr Rybalko >> >>>> Cc: "freebsd-mips@freebsd.org" >> >>>> Date: 2017/5/9, Tue 22:01 >>>> Subject: Re: onion omega2+ >>>> >>>> >>>> No joy >>>> >>>> Omega2 # fatload usb 0:1 0x80800000 kernel.MT7628_FDT.uImage >>>> * >>>> * >>>> Reading file "kernel.MT7628_FDT.uImage" >>>> * >>>> ** >>>> ** >>>> ** >>>> ** >>>> ** >>>> ** >>>> ** >>>> ** >>>> ** >>>> ** >>>> ****** >>>> ****** >>>> >> ****************************************************************************************************************************************************************************************************************** >>>> **** >>>> * >>>> FAT: 5654824 Bytes read >>>> Omega2 # bootm >>>> ## Booting image at 80100000 ... >>>> Bad Magic Number,CE6AE7C4 >>>> >>>> I am going to get a different usb memory stick and rebuild the kernel >>>> later on as i got an error when last writing to the usb memory key and >>>> its quite old now so just want to eliminate it from testing. >>>> >>>> >>>> On 09/05/2017 13:52, Mori Hiroki wrote: >>>>> Hi. >>>>> >>>>> This is my sample operation get image from network and boot. >>>>> >>>>> RT3052 # tftpboot 0x80800000 >> Planex_MZK-WNH_kernel.kbin.oldlzma.uboot >>>>> RT3052 # bootm >>>>> >>>>> >>>>> I don't use USB support U-Boot. But I think fatload command >> argument is >>>>> temporary memory address not kernel address. >>>>> >>>>> How about this. >>>>> >>>>> Omega2 # fatload usb 0:1 0x80800000 kernel.MT7628_FDT.uImage >>>>> Omega2 # bootm >>>>> >>>>> ----- Original Message ----- >>>>>> From: Mike Wolman >>>>>> To: Aleksandr Rybalko ; Mori Hiroki >>>> >>>>>> Cc: "freebsd-mips@freebsd.org" >>>> >>>>>> Date: 2017/5/9, Tue 20:48 >>>>>> Subject: Re: onion omega2+ >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> Is it possible to exclude the compression of the kernel/image >> for >>>>> now eg: >>>>>> mkimage -A mips -C none -O linux -T kernel -a 0x80001000 -e >>>>> 0x80001100 -n "FreeBSD" -d kernel.MT7628_FDT >>>>> kernel.MT7628_FDT.uImage >>>>>> I have just tried the above but when booting I get a Bad >> Magic >>>>> Number. >>>>>> Omega2 # fatload usb 0:1 0x80001000 kernel.MT7628_FDT.uImage >>>>>> * >>>>>> * >>>>>> Reading file "kernel.MT7628_FDT.uImage" >>>>>> * >>>>>> ** >>>>>> ** >>>>>> ** >>>>>> ** >>>>>> ** >>>>>> ** >>>>>> ** >>>>>> ** >>>>>> ** >>>>>> ** >>>>>> ****** >>>>>> ****** >>>>>> >> ****************************************************************************************************************************************************************************************************************** >>>>>> **** >>>>>> * >>>>>> FAT: 5654824 Bytes read >>>>>> Omega2 # bootm 0x80001100 >>>>>> ## Booting image at 80001100 ... >>>>>> Bad Magic Number,1C994480 >>>>>> Omega2 # >>>>>> >>>>>> >>>>>> I have seen other examples starting a program directly with >> going to >>>>> the address but this didnt work either: >>>>>> Omega2 # go 0x80001100 >>>>>> ## Starting application at 0x80001100 ... >>>>>> >>>>>> omega freezes here. >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> On 09/05/2017 10:12, Aleksandr Rybalko wrote: >>>>>> >>>>>> Fix things in order :) >>>>> Currently you have problem with LZMA, serial port later. >>>>> So, find version of lzma used to build linux firmware, MIPS >> routers world >>>> use about 5 incompatible versions. One of them, you can find here: >>>> http://project.zrouter.org/hg/zrouter/file/9ac53695a44d/tools/oldlzma >>>>>>> >>>>>>> >>>>>>> 2017-05-09 7:03 GMT+03:00 Mori Hiroki >>>> : >>>>>>> Hi Mike >>>>>>>> Could you show u-boot printenv command result. >>>>>>>> >>>>>>>> Thanks >>>>>>>> >>>>>>>> >>>>>>>> ----- Original Message ----- >>>>>>>>> From: Mike Wolman >>>>>>>>> To: Mori Hiroki ; >>>> "freebsd-mips@freebsd.org" >>>>>>>>> Cc: >>>>>>>>> Date: 2017/5/9, Tue 10:30 >>>>>>>>> Subject: Re: onion omega2+ >>>>>>>>> >>>>>>>>> Hi Mori, >>>>>>>>> >>>>>>>>> When I compiled the world/kernel etc I used: >>>>>>>>> >>>>>>>>> X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT >>>>>>>>> ../freebsd-wifi-build/build/ bin/build ralink >>>>> buildkernel >>>>>>>>> I checked the serial stuff was the same as the >>>>> other configs in: >>>>>>>>> https://github.com/freebsd/ freebsd-wifi-build/ >>>>>>>>> and they looked the same. >>>>>>>>> >>>>>>>>> The OMEGA2.dtsi file has: >>>>>>>>> >>>>>>>>> chosen { >>>>>>>>> bootargs = >>>> "console=ttyS0,115200"; >>>>>>>>> }; >>>>>>>>> >>>>>>>>> >>>>>>>>> And mt7628an.dtsi has: serial0 = &uartlite; >>>>>>>>> >>>>>>>>> I dont think im getting as far as worrying about >>>>> the serial console at >>>>>>>>> the moment and need to get the kernel to >> uncompress >>>>> first. >>>>>>>>> Mike. >>>>>>>>> >>>>>>>>> >>>>>>>>> On 09/05/2017 02:20, Mori Hiroki wrote: >>>>>>>>>> Hi Mike >>>>>>>>>> >>>>>>>>>> In FreeBSD is use serial0 dts item to >> console. >>>>>>>>>> I think good to use this at start. >>>>>>>>>> >>>>>>>>>> freebsd/sys/gnu/dts/mips/ MT7628.dts >>>>>>>>>> >>>>>>>>>> ----- Original Message ----- >>>>>>>>>>> From: Mike Wolman >> >>>>>>>>>>> To: Mori Hiroki >> ; >>>>>>>>> "freebsd-mips@freebsd.org" >>>> >>>>>>>>>>> Cc: >>>>>>>>>>> Date: 2017/5/9, Tue 09:25 >>>>>>>>>>> Subject: Re: onion omega2+ >>>>>>>>>>> >>>>>>>>>>> Hi Mori, >>>>>>>>>>> >>>>>>>>>>> I grabbed the dts files from: >>>>>>>>>>> >>>>>>>>>>> https://github.com/WereCatf/ >>>> source/tree/image/target/ linux/ramips/dts >>>>>>>>> https://github.com/WereCatf/ >> source/blob/image/target/ >>>> linux/ramips/dts/OMEGA2P.dts >>>>>>>>> https://github.com/WereCatf/ >> source/blob/image/target/ >>>> linux/ramips/dts/OMEGA2.dtsi >>>>>>>>>>> If this is of any use from the default >>>>> linux install on the flash: >>>>>>>>>>> root@Omega-12BF:/proc# cat /proc/mtd >>>>>>>>>>> dev: size erasesize name >>>>>>>>>>> mtd0: 00030000 00010000 >> "u-boot" >>>>>>>>>>> mtd1: 00010000 00010000 >> "u-boot-env" >>>>>>>>>>> mtd2: 00010000 00010000 >> "factory" >>>>>>>>>>> mtd3: 01fb0000 00010000 >> "firmware" >>>>>>>>>>> mtd4: 00148842 00010000 >> "kernel" >>>>>>>>>>> mtd5: 01e677be 00010000 >> "rootfs" >>>>>>>>>>> mtd6: 01950000 00010000 >> "rootfs_data" >>>>>>>>>>> >>>>>>>>>>> btw after posting i spotted and error >> in >>>>> what i did with: >>>>>>>>>>> mkimage -A mips -O linux -T kernel -C >> lzma >>>>> \ >>>>>>>>>>> -a 0x80001000 -e 0x80001100 \ >>>>>>>>>>> -n "FreeBSD" -d >>>>> kernel.MT7628_FDT.lzma >>>>>>>>>>> kernel.MT7628_FDT.ulzma.uImage >>>>>>>>>>> >>>>>>>>>>> I have redone this using the correct >>>>> compressed kernel ie: >>>>>>>>>>> mkimage -A mips -O linux -T kernel -C >> lzma >>>>> \ >>>>>>>>>>> -a 0x80001000 -e 0x80001100 \ >>>>>>>>>>> -n "FreeBSD" -d >>>>> kernel.MT7628_FDT.ulzma >>>>>>>>>>> kernel.MT7628_FDT.ulzma.uImage >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> But this didnt work. >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> On 09/05/2017 01:17, Mori Hiroki >> wrote: >>>>>>>>>>>> Hi. >>>>>>>>>>>> >>>>>>>>>>>> I think if U-Boot work memory >> make >>>>> broken then >>>>>>>>>>>> Uncompressing Kernel Image is NG. >>>>>>>>>>>> >>>>>>>>>>>> Some ARM U-Boot is use top >> address >>>>> in work memory. >>>>>>>>>>>> If this case your kernel start >>>>> address to move to >>>>>>>>>>>> after work memory. But I never >> see >>>>> in MIPS. >>>>>>>>>>>> And What is set FDT_DTS_FILE in >>>>> your kernel configuration ? >>>>>>>>>>>> ----- Original Message ----- >>>>>>>>>>>> >>>>>>>>>>>>> From: Mike Wolman >>>> >>>>>>>>>>>>> To: freebsd-mips@freebsd.org >>>>>>>>>>>>> Cc: >>>>>>>>>>>>> Date: 2017/5/9, Tue 07:48 >>>>>>>>>>>>> Subject: Re: onion omega2+ >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> More info in case anyone can >>>>> point me in the right direction. >>>>>>>>>>>>> I have found: >>>>>>>>>>>>> >>>>>>>>>>>>> https://forum.openwrt.org/ >>>> viewtopic.php?id=53865 >>>>>>>>>>>>> I have tried changing how >> lzma >>>>> compresses the kernel by >>>>>>>>> adding -d20 to >>>>>>>>>>>>> the build scripts eg: >>>>>>>>>>>>> >>>>>>>>>>>>> /usr/local/bin/lzma e >>>>>>>>>>>>> >>>>>>>>> /home/mike/omega2/src/../root/ >>>> mipsel_ap/boot/kernel.MT7628_ FDT/kernel >>>>>>>>>>> \ >>>>>>>>>>>>> /home/mike/omega2/src/../ >>>> tftpboot/kernel.MT7628_FDT. lzma >>>>> -d20 >>>>>>>>>>>>> This did not work. >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> Looking at the onion omega >> conf >>>>> I see that it uses mkuzip and >>>>>>>>> not lzma >>>>>>>>>>>>> with the following settings: >>>>>>>>>>>>> >>>>>>>>>>>>> >> X_FSIMAGE_CMD="mkuzip" >>>>>>>>>>>>> X_FSIMAGE_ARGS="-L -d -s >> 65536 >>>>> -v" >>>>>>>>>>>>> >> X_FSIMAGE_SUFFIX=".ulzma" >>>>>>>>>>>>> So tried the following: >>>>>>>>>>>>> >>>>>>>>>>>>> mkuzip -L -d -s 65536 -v -o >>>>> kernel.MT7628_FDT.ulzma >>>>>>>>> kernel.MT7628_FDT >>>>>>>>>>>>> mkimage -A mips -O linux -T >>>>> kernel -C lzma \ >>>>>>>>>>>>> -a 0x80001000 -e >> 0x80001100 >>>>> \ >>>>>>>>>>>>> -n "FreeBSD" -d >>>>> kernel.MT7628_FDT.lzma >>>>>>>>>>>>> >> kernel.MT7628_FDT.ulzma.uImage >>>>>>>>>>>>> >>>>>>>>>>>>> But this did not work either. >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> On 08/05/2017 19:41, >> Aleksandr >>>>> Rybalko wrote: >>>>>>>>>>>>>> Hi Mike! >>>>>>>>>>>>>> >>>>>>>>>>>>>> I see you have no >> "OK" >>>>> after >>>>>>>>> "Uncompressing Kernel >>>>>>>>>>> Image >>>>>>>>>>>>> ...", so >>>>>>>>>>>>>> first point uboot >>>>> decompressor fail. >>>>>>>>>>>>>> Why fail? Because you >> have >>>>> wrong base address in image: >>>>>>>>>>>>>> Load Address: >> fffffff2 >>>>>>>>>>>>>> Entry Point: >> fffffff2 >>>>>>>>>>>>>> MIPS32 machines have >> RAM >>>>> mapped to 0x80000000 address, >>>>>>>>> so adding >>>>>>>>>>> its >>>>>>>>>>>>>> size, you will get max >>>>> address (if 16MB, it will be >>>>>>>>> 0x81000000), >>>>>>>>>>> but >>>>>>>>>>>>>> you uboot image was >>>>> created with 0xfffffff2. >>>>>>>>>>>>>> Even more, unpacked >> kernel >>>>> expects it will be called at >>>>>>>>>>> 0x80001100. so >>>>>>>>>>>>>> if you have ELF kernel >>>>> (file with ELF header, like >>>>>>>>> every >>>>>>>>>>> executable) >>>>>>>>>>>>>> that file have to be >>>>> loaded at (0x80001100 - >>>>>>>>> ELF_HEADER_SIZE). >>>>>>>>>>>>>> In most cases it will >> be >>>>> 0x80001100 - 0x100 = >>>>>>>>> 0x80001000. But >>>>>>>>>>> sometime >>>>>>>>>>>>>> (I did not found why) >> it >>>>> can be 0x20, you can find it >>>>>>>>> by looking >>>>>>>>>>> at >>>>>>>>>>>>>> .text section in >> readelf >>>>> -S. >>>>>>>>>>>>>> So if you have kernel >> with >>>>> entry point 0x80001100 and >>>>>>>>> .text >>>>>>>>>>> segment >>>>>>>>>>>>>> offset 0x100, you have >> to >>>>> create uboot image with load >>>>>>>>> address >>>>>>>>>>>>>> 0x80001000 and entry >> point >>>>> 0x80001100. >>>>>>>>>>>>>> If that step successful >>>>> you will get: >>>>>>>>>>>>>> /Uncompressing Kernel >>>>> Image/ ... OK >>>>>>>>>>>>>> Starting kernel ... >>>>>>>>>>>>>> >>>>>>>>>>>>>> Last line mean, uboot >> did >>>>> jump into kernel code. >>>>>>>>>>>>>> Good luck. >>>>>>>>>>>>>> >>>>>>>>>>>>>> 2017-05-07 18:20 >> GMT+03:00 >>>>> Mike Wolman >>>>>>>>> >>>>>>>>>>>>> >>>> >: >>>>>>>>>>>>>> Hi, >>>>>>>>>>>>>> >>>>>>>>>>>>>> I am trying to get >>>>> FreeBSD working on this board - >>>>>>>>> I think I >>>>>>>>>>> am >>>>>>>>>>>>>> almost there in >>>>> getting it working but need some >>>>>>>>> help please. >>>>>>>>>>>>>> I have followed >>>>> instructions from the >>>>>>>>> freebsd-wifi-build and >>>>>>>>>>>>>> *think* I have got >>>>> everything correct - I am trying >>>>>>>>> to do >>>>>>>>>>> this on >>>>>>>>>>>>>> a CURRENT setup: >>>>>>>>>>>>>> >>>>>>>>>>>>>> FreeBSD >>>>> f64-current.mw.office 12.0-CURRENT FreeBSD >>>>>>>>>>> 12.0-CURRENT #0 >>>>>>>>>>>>>> r317887: Sun May 7 >>>>> 03:20:34 UTC 2017 >>>>>>>>>>>>>> >>>>>>>>>>> mike@f64-current.mw.office:/ >>>> usr/obj/usr/src/sys/GENERIC- NODEBUG amd64 >>>>>>>>>>>>>> $ cat >>>>> ~/.freebsd-wifi-build- settings.cfg >>>>>>>>>>>>>> >> X_SKIP_MORE_STUFF=YES >>>>>>>>>>>>>> >>>>> X_EXTRA_SRC_CONF=~/omega2/src. conf >>>>>>>>>>>>>> $ cat >>>>> ~/omega2/src.conf >>>>>>>>>>>>>> WITHOUT_CLANG=YES >>>>>>>>>>>>>> >> WITHOUT_CLANG_FULL=YES >>>>>>>>>>>>>> get dts files from >>>>> thread >>>>>>>>>>>>>> >>>>>>>>> http://community.onion.io/ >> topic/1099/openwrt-on-the- >>>> omega-2/8 >>>>>>>>>>>>>> >>>>>>>>>>> >>> topic/1099/openwrt-on-the- omega-2/8> >>>>>>>>>>>>>> cd >>>>> ~/omega2/src/sys/gnu/dts/mips >>>>>>>>>>>>>> fetch >>>>>>>>>>>>>> >>>>>>>>> https://raw.githubusercontent. >> com/WereCatf/source/image/ >>>> target/linux/ramips/dts/ OMEGA2.dtsi >>>>>>>>>>>>>> >>>>>>>>> >>> WereCatf/source/image/target/ linux/ramips/dts/OMEGA2.dtsi> >>>>>>>>>>>>>> fetch >>>>>>>>>>>>>> >>>>>>>>> https://raw.githubusercontent. >> com/WereCatf/source/image/ >>>> target/linux/ramips/dts/ OMEGA2.dts >>>>>>>>>>>>>> >>>>>>>>> >>> WereCatf/source/image/target/ linux/ramips/dts/OMEGA2.dts> >>>>>>>>>>>>>> fetch >>>>>>>>>>>>>> >>>>>>>>> https://raw.githubusercontent. >> com/WereCatf/source/image/ >>>> target/linux/ramips/dts/ OMEGA2P.dts >>>>>>>>>>>>>> >>>>>>>>> >>> WereCatf/source/image/target/ linux/ramips/dts/OMEGA2P.dts> >>>>>>>>>>>>>> >> X_DTS_FILE=OMEGA2P.dts >>>>> KERNCONF=MT7628_FDT >>>>>>>>>>>>>> >>>>> ../freebsd-wifi-build/build/ bin/build ralink >>>>>>>>> buildworld >>>>>>>>>>>>>> >> X_DTS_FILE=OMEGA2P.dts >>>>> KERNCONF=MT7628_FDT >>>>>>>>>>>>>> >>>>> ../freebsd-wifi-build/build/ bin/build ralink >>>>>>>>> buildkernel >>>>>>>>>>>>>> >> X_DTS_FILE=OMEGA2P.dts >>>>> KERNCONF=MT7628_FDT >>>>>>>>>>>>>> >>>>> ../freebsd-wifi-build/build/ bin/build ralink >>>>>>>>> installworld >>>>>>>>>>>>>> >> X_DTS_FILE=OMEGA2P.dts >>>>> KERNCONF=MT7628_FDT >>>>>>>>>>>>>> >>>>> ../freebsd-wifi-build/build/ bin/build ralink >>>>>>>>> installkernel >>>>>>>>>>>>>> >> X_DTS_FILE=OMEGA2P.dts >>>>> KERNCONF=MT7628_FDT >>>>>>>>>>>>>> >>>>> ../freebsd-wifi-build/build/ bin/build ralink >>>>>>>>> distribution >>>>>>>>>>>>>> >> X_DTS_FILE=OMEGA2P.dts >>>>> KERNCONF=MT7628_FDT >>>>>>>>>>>>>> >>>>> ../freebsd-wifi-build/build/ bin/build ralink >>>>>>>>> mfsroot >>>>>>>>>>>>>> >> X_DTS_FILE=OMEGA2P.dts >>>>> KERNCONF=MT7628_FDT >>>>>>>>>>>>>> >>>>> ../freebsd-wifi-build/build/ bin/build ralink >>>>>>>>> fsimage >>>>>>>>>>>>>> >> X_DTS_FILE=OMEGA2P.dts >>>>> KERNCONF=MT7628_FDT >>>>>>>>>>>>>> >>>>> ../freebsd-wifi-build/build/ bin/build ralink >> uboot >>>>>>>>>>>>>> Create flash: >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>> X_FLASH=kernel.MT7628_FDT. lzma.flash >>>>>>>>>>>>>> dd if=/dev/zero >> bs=$(( >>>>> 0x200000 )) count=1 >>>>>>>>> of=${X_FLASH} >>>>>>>>>>>>>> dd >>>>> if=kernel.MT7628_FDT.lzma. uImage of=${X_FLASH} >>>>>>>>>>> conv=notrunc >>>>>>>>>>>>>> dd if= >>>>> mfsroot-ralink.img.lzma >> ${X_FLASH} >>>>>>>>>>>>>> $ readelf -h >>>>> kernel.MT7628_FDT | grep Entry >>>>>>>>>>>>>> Entry point >>>>> address: 0x80001100 >>>>>>>>>>>>>> >>>>>>>>>>>>>> Now on the omega >> over >>>>> serial - I didnt get the >>>>>>>>> network >>>>>>>>>>> expansion >>>>>>>>>>>>>> doc thing so am >> doing >>>>> stuff with usb rather than >>>>>>>>> tftp >>>>>>>>>>>>>> I am not 100% sure >>>>> about the 0x80001100 and the >>>>>>>>> fatload and >>>>>>>>>>> have >>>>>>>>>>>>>> tried this >>>>>>>>>>>>>> >>>>>>>>>>>>>> Omega2 # fatload >> usb >>>>> 0:1 0x80001100 >>>>>>>>>>> /kernel.MT7628_FDT.lzma.flash >>>>>>>>>>>>>> * >>>>>>>>>>>>>> * >>>>>>>>>>>>>> Reading file >>>>>>>>> "/kernel.MT7628_FDT.lzma. flash" >>>>>>>>>>>>>> * >>>>>>>>>>>>>> ** >>>>>>>>>>>>>> ** >>>>>>>>>>>>>> ** >>>>>>>>>>>>>> ****** >>>>>>>>>>>>>> >>>>>>>>> ****************************** >>>> ****************************** ****************************** >>>> ****************************** ********************* >>>>>>>>>>>>>> ****** >>>>>>>>>>>>>> * >>>>>>>>>>>>>> FAT: 2108463 Bytes >>>>> read >>>>>>>>>>>>>> Omega2 # bootm >>>>> 0x80001100 >>>>>>>>>>>>>> ## Booting image at >>>>> 80001100 ... >>>>>>>>>>>>>> Image Name: >>>>> FreeBSD >>>>>>>>>>>>>> Image Type: >> MIPS >>>>> Linux Kernel Image (lzma >>>>>>>>> compressed) >>>>>>>>>>>>>> Data Size: >>>>> 1365122 Bytes = 1.3 MB >>>>>>>>>>>>>> Load Address: >>>>> fffffff2 >>>>>>>>>>>>>> Entry Point: >>>>> fffffff2 >>>>>>>>>>>>>> Verifying >> Checksum >>>>> ... OK >>>>>>>>>>>>>> Uncompressing >>>>> Kernel Image ... >>>>>>>>>>>>>> At this point >> nothing >>>>> happens and console hangs - >>>>>>>>> note in >>>>>>>>>>>>>> OMEGA2.dtsithe >> console >>>>> is set to ttyS0: >>>>>>>>>>>>>> bootargs = >>>>> "console=ttyS0,115200"; >>>>>>>>>>>>>> >>>>>>>>>>>>>> I have also tried >> with >>>>> just kernel.MT7628_FDT and >>>>>>>>>>>>>> >> kernel.MT7628_FDT.lzma >>>>> but both fail: >>>>>>>>>>>>>> Omega2 # fatload >> usb >>>>> 0:1 0x80001100 >>>>>>>>>>> /kernel.MT7628_FDT.lzma.uImage >>>>>>>>>>>>>> * >>>>>>>>>>>>>> * >>>>>>>>>>>>>> Reading file >>>>>>>>> "/kernel.MT7628_FDT.lzma. uImage" >>>>>>>>>>>>>> * >>>>>>>>>>>>>> ** >>>>>>>>>>>>>> ** >>>>>>>>>>>>>> ****** >>>>>>>>>>>>>> >>>>>>>>> ****************************** >>>> ****************************** ****************************** >>>> ****************************** ****** >>>>>>>>>>>>>> ********** >>>>>>>>>>>>>> * >>>>>>>>>>>>>> FAT: 1365186 Bytes >>>>> read >>>>>>>>>>>>>> Omega2 # bootm >>>>> 0x80001100 >>>>>>>>>>>>>> ## Booting image at >>>>> 80001100 ... >>>>>>>>>>>>>> Image Name: >>>>> FreeBSD >>>>>>>>>>>>>> Image Type: >> MIPS >>>>> Linux Kernel Image (lzma >>>>>>>>> compressed) >>>>>>>>>>>>>> Data Size: >>>>> 1365122 Bytes = 1.3 MB >>>>>>>>>>>>>> Load Address: >>>>> fffffff2 >>>>>>>>>>>>>> Entry Point: >>>>> fffffff2 >>>>>>>>>>>>>> Verifying >> Checksum >>>>> ... OK >>>>>>>>>>>>>> Uncompressing >>>>> Kernel Image ... >>>>>>>>>>>>>> A few comments on >> the >>>>> hardware for anyone who wants >>>>>>>>> to get >>>>>>>>>>> one: >>>>>>>>>>>>>> Get the expansion >> dock >>>>> with serial port access - >>>>>>>>> the power >>>>>>>>>>> dock >>>>>>>>>>>>>> does not provide >>>>> serial access - i think it is >>>>>>>>> possible to >>>>>>>>>>> use an >>>>>>>>>>>>>> ftdi ttl serial >>>>> chip/cable but have not tried. >>>>>>>>>>>>>> Stupidly I forgot >> this >>>>> only has wifi access so you >>>>>>>>> are not >>>>>>>>>>> able to >>>>>>>>>>>>>> tftp boot this >> without >>>>> getting the ethernet network >>>>>>>>> expansion >>>>>>>>>>> but >>>>>>>>>>>>>> loading stuff up >> from >>>>> a usb memory stick is seem >>>>>>>>> fine from >>>>>>>>>>> u-boot. >>>>>>>>>>>>>> I do not think that >> it >>>>> is possible to boot from the >>>>>>>>> SD card >>>>>>>>>>> on the >>>>>>>>>>>>>> Omega2+ - which is >> a >>>>> shame. >>>>>>>>>>>>>> Thanks for reading, >>>>>>>>>>>>>> >>>>>>>>>>>>>> Mike. >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>> ______________________________ _________________ >>>>>>>>>>>>>> >> freebsd-mips@freebsd.org >>>>>>>>>>> > org>mailing >>>>>>>>>>>>> list >>>>>>>>>>>>>> >>>>>>>>> https://lists.freebsd.org/ >> mailman/listinfo/freebsd-mips >>>>>>>>>>>>>> >>>>>>>>>>> >>> mailman/listinfo/freebsd-mips> >>>>>>>>>>>>>> To unsubscribe, >> send >>>>> any mail to >>>>>>>>>>>>>> >>>> "freebsd-mips-unsubscribe@ freebsd.org >>>>>>>>>>>>>> >>>>>>>>> > unsubscribe@freebsd.org>" >>>>>>>>>>>>>> >>>>>>>>>>>>>> -- >>>>>>>>>>>>>> WBW >>>>>>>>>>>>>> ------- >>>>>>>>>>>>>> Rybalko Aleksandr >>>> >>>>>>>>>> > >>>>>>>>>>>>> >> ______________________________ >>>> _________________ >>>>>>>>>>>>> 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 >>>>>>> >>>>>>> From owner-freebsd-mips@freebsd.org Tue May 9 23:08:06 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 8DBC0D65EC7 for ; Tue, 9 May 2017 23:08:06 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from nh501-vm7.bullet.mail.kks.yahoo.co.jp (nh501-vm7.bullet.mail.kks.yahoo.co.jp [183.79.56.137]) by mx1.freebsd.org (Postfix) with SMTP id D44341AC0 for ; Tue, 9 May 2017 23:08:05 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from [183.79.100.141] by nh501.bullet.mail.kks.yahoo.co.jp with NNFMP; 09 May 2017 23:05:19 -0000 Received: from [183.79.101.121] by t504.bullet.mail.kks.yahoo.co.jp with NNFMP; 09 May 2017 23:05:19 -0000 Received: from [127.0.0.1] by omp508.mail.kks.yahoo.co.jp with NNFMP; 09 May 2017 23:05:19 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 723982.63323.bm@omp508.mail.kks.yahoo.co.jp Received: (qmail 39098 invoked by uid 60001); 9 May 2017 23:05:19 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.jp; s=yj20110701; t=1494371119; bh=n5eHUKIAIobYOdJ6lxU1vvOL8ZAYdf3QVSBD2h27rqE=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:X-YMail-JAS:References:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=qqFLJOKv4HYdZN0BpYlE/qnNaunhOUUqTEd8iD3lGXTweq8ZOvU8SkOEqqiuJppinRO0ioqv4Qkx6mhSN2vSKIrZK6MIdhRoyPUcgL4FmEqqT9ogujLildOH1jkEUc/tNpQZXDMaUKMw4ARwNHHUdHJvGCrt90a5Ez46RABcvmA= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=yj20110701; d=yahoo.co.jp; h=Message-ID:X-YMail-OSG:Received:X-Mailer:X-YMail-JAS:References:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=k8TKvbiPqyWoLxxCCOQuZLqufLejvXCXMfruaFYoDL0nuE8k/zL14MqlrNLMpYEC0WzAVcHyZR0jtroy2rSV4K+w4zVsQ/8rn6tNIjgEPi3+B2TE5pTRt/eMQEg1h6jPjIR/9xCOx42i1V7VtyWQyRZWfP4YJ3eqt3XacCbLD4g=; Message-ID: <369335.16286.qm@web101716.mail.ssk.yahoo.co.jp> X-YMail-OSG: QTtt.cUVM1mhULr8E.Kv_Iwygk1PNaoXxzGkbR4Jn4Z2CtD4ly5EVJdiv_4K7TKiHpAxbB7DZDx6tc3RdvzXJMyE9b4biTZA.cXLiGiRCe.nH._rDm25P8l5YSniKdryh2eXGsPjwtnHahF477NT8VsVqU9Wbx3q07iwHhvr87Yvm3W.dta.Hf_c1WWMsPcG8NWF6u1bwu5gnkNPDVsJdiGKBgBRHBZXcbVP1gLzuY0nqNZefIOf4owNoQUxhqALokU9lP1u6nv8B3MhPDiITUG0cyWwHYLfkVIZUdc_eKWmC7QCpzO_2tAqSIvrTFTPoPOhozi3oj9f_xClfFARNCkO2iLk0KLXvYAcNIfjWqKsEjx8ryd2ubrVwNhSwhSdryhMlsTmO0f854FD.7SG7249ekOURMm.Trjfipu2aU.llT9TQz51XjLm.czX8sK9U2HdHq1qlLN3EFYJ4ErkakzbnydFgTd.mqxl2sw5m2deoyRwGsfBrDuerHVqF1F0.BmBh.ZAclxl5Kc2.Pycwc.LbEZn1BN1ZES5RXMoVFji199_oYqY8CfOffp3fANtte8rDWrO9tqI1576AD8M4THDaZ0Nkh1WLvcKZ6hUgARsxAc8AAU.2vLDvQ-- Received: from [210.20.198.8] by web101716.mail.ssk.yahoo.co.jp via HTTP; Wed, 10 May 2017 08:05:18 JST X-Mailer: YahooMailWebService/0.8.111_71 X-YMail-JAS: PPfhdGoVM1mYVu926fQ8YsOsVVovbLo6bI_uDKIxrT2ON6UHvBz9g8d5JNg8Cs.wjvuP5S6ErTh0ryNmk7IXuhowtds5aFae4oU1R7DvDBzlv3t_YBYj0G0Zrdpq6B2Ni0BN References: <694efc3a-e183-35a1-a0bf-9a9c0d708826@wolman.co.uk> <410144.69078.qm@web101716.mail.ssk.yahoo.co.jp> <128807.28836.qm@web101715.mail.ssk.yahoo.co.jp> <2d555385-8258-fd75-e4a3-a1e59bf86314@wolman.co.uk> <651873.78746.qm@web101702.mail.ssk.yahoo.co.jp> <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> Date: Wed, 10 May 2017 08:05:18 +0900 (JST) From: Mori Hiroki Reply-To: Mori Hiroki Subject: Re: onion omega2+ To: Mike Wolman , Aleksandr Rybalko Cc: "freebsd-mips@freebsd.org" In-Reply-To: <672be258-8fed-6317-1325-f9fccf2646c3@wolman.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable 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: Tue, 09 May 2017 23:08:06 -0000 Hi Mike.=0A=0AI seem load address is good.=0A=0AI check=A0mt7628an.dtsi fil= e.=A0=0A=0AThis file uart entry is=0A=0A=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=A0u= artlite: uartlite@c00 {=0A=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 c= ompatible =3D "ns16550a";=0AIn this case you must add uart_ns8250 device to= kernel configuration.=0A=0A----- Original Message -----=0A> From: Mike Wol= man =0A> To: Mori Hiroki ; Aleksa= ndr Rybalko =0A> Cc: "freebsd-mips@freebsd.org" =0A> Date: 2017/5/10, Wed 00:51=0A> Subject: Re: onion omega= 2+=0A> =0A> Ok I not sure what my next step or what Im looking for but here= is some =0A> info about the serial stuff and readelf ouput=0A> =0A> [mike@= f64-current ~/omega2/tftpboot]$ readelf -h kernel.MT7628_FDT=0A> ELF Header= :=0A> =A0 Magic:=A0 7f 45 4c 46 01 01 01 09 00 00 00 00 00 00 00 00=0A> = =A0 Class:=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ELF32= =0A> =A0 Data:=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = 2's complement, little endian=0A> =A0 Version:=A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 1 (current)=0A> =A0 OS/ABI:=A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 FreeBSD=0A> =A0 ABI Version:=A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 0=0A> =A0 Type:=A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 EXEC (Executable file)=0A> =A0 Mac= hine:=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 MIPS R3000 Big-En= dian only=0A> =A0 Version:=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 0x1=0A> =A0 Entry point address:=A0 =A0 =A0 =A0 =A0 =A0 =A0 0x800011= 00=0A> =A0 Start of program headers:=A0 =A0 =A0 =A0 =A0 52 (bytes into fil= e)=0A> =A0 Start of section headers:=A0 =A0 =A0 =A0 =A0 5653480 (bytes int= o file)=0A> =A0 Flags:=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 0x50001001, mips32, o32, noreorder=0A> =A0 Size of this header:=A0 = =A0 =A0 =A0 =A0 =A0 =A0 52 (bytes)=0A> =A0 Size of program headers:=A0 = =A0 =A0 =A0 =A0 32 (bytes)=0A> =A0 Number of program headers:=A0 =A0 =A0 = =A0 6=0A> =A0 Size of section headers:=A0 =A0 =A0 =A0 =A0 40 (bytes)=0A>= =A0 Number of section headers:=A0 =A0 =A0 =A0 32=0A> =A0 Section header= string table index: 29=0A> =0A> =0A> When booting into linux from flash:= =0A> =0A> root@Omega-12BF:/dev# dmesg |grep tty=0A> [=A0 =A0 0.000000] Kern= el command line: console=3DttyS0,115200 =0A> rootfstype=3Dsquashfs,jffs2=0A= > [=A0 =A0 0.276011] console [ttyS0] disabled=0A> [=A0 =A0 0.279438] 10000c= 00.uartlite: ttyS0 at MMIO 0x10000c00 (irq =3D 28, =0A> base_baud =3D 25000= 00) is a 16550A=0A> [=A0 =A0 0.288217] console [ttyS0] enabled=0A> [=A0 =A0= 0.303969] 10000d00.uart1: ttyS1 at MMIO 0x10000d00 (irq =3D 29, =0A> base_= baud =3D 2500000) is a 16550A=0A> [=A0 =A0 0.313561] 10000e00.uart2: ttyS2 = at MMIO 0x10000e00 (irq =3D 30, =0A> base_baud =3D 2500000) is a 16550A=0A>= =0A> =0A> =0A> [mike@f64-current ~/omega2/src/sys/gnu/dts/mips]$ grep seri= al *=0A> LINKIT7688.dts:=A0 =A0 =A0 =A0 serial0 =3D &uart2;=0A> LINKIT7688= .dts-orig:=A0 =A0 =A0 =A0 =A0 =A0 serial0 =3D &uart2;=0A> mt7620a.dtsi:=A0 = =A0 =A0 =A0 =A0 serial0 =3D &uartlite;=0A> mt7620n.dtsi:=A0 =A0 =A0 =A0 = =A0 serial0 =3D &uartlite;=0A> mt7621.dtsi:=A0 =A0 =A0 =A0 =A0 =A0 serial0= =3D &uartlite;=0A> mt7628an.dtsi:=A0 =A0 =A0 =A0 =A0 serial0 =3D &uartlite= ;=A0 <------ the included dtsi =0A> by OMEGA2.dtsi=0A> rt2880.dtsi:=A0 =A0= =A0 =A0 =A0 =A0 serial0 =3D &uartlite;=0A> rt3050.dtsi:=A0 =A0 =A0 =A0 =A0= =A0 serial0 =3D &uartlite;=0A> rt3352.dtsi:=A0 =A0 =A0 =A0 =A0 =A0 serial0= =3D &uartlite;=0A> rt3883.dtsi:=A0 =A0 =A0 =A0 =A0 =A0 serial0 =3D &uartli= te;=0A> rt5350.dtsi:=A0 =A0 =A0 =A0 =A0 =A0 serial0 =3D &uartlite;=0A> =0A>= =0A> [mike@f64-current ~/omega2/src/sys/gnu/dts/mips]$ grep tty *=0A> Arch= erC20i.dts:=A0 =A0 =A0 =A0 bootargs =3D "console=3DttyS0,115200";=0A> CARA= MBOLA.dts:=A0 =A0 =A0 =A0 =A0 bootargs =3D "console=3DttyS0,115200";=0A> CF= -WR800N.dts:=A0 =A0 =A0 =A0 =A0 bootargs =3D "console=3DttyS0,115200";=0A> = MicroWRT.dts:=A0 =A0 =A0 =A0 =A0 bootargs =3D "console=3DttyS0,115200";=0A= > NA930.dts:=A0 =A0 =A0 =A0 =A0 =A0 =A0 bootargs =3D "console=3DttyS1,57600= ";=0A> OMEGA2.dtsi:=A0 =A0 =A0 =A0 =A0 =A0 bootargs =3D "console=3DttyS0,11= 5200"; <----- =0A> looks =0A> like all the others=0A> OY-0001.dts:=A0 =A0 = =A0 =A0 =A0 =A0 bootargs =3D "console=3DttyS0,115200";=0A> PBR-M1.dts:=A0 = =A0 =A0 =A0 =A0 =A0 bootargs =3D "console=3DttyS0,115200";=0A> SK-WB8.dts:= =A0 =A0 =A0 =A0 =A0 =A0 bootargs =3D "console=3DttyS0,57600";=0A> ZBT-WG26= 26.dts:=A0 =A0 =A0 =A0 bootargs =3D "console=3DttyS0,115200";=0A> ZBT-WG35= 26.dts:=A0 =A0 =A0 =A0 bootargs =3D "console=3DttyS0,115200";=0A> mt7620a.= dtsi:=A0 =A0 =A0 =A0 =A0 bootargs =3D "console=3DttyS0,57600";=0A> mt7620n= .dtsi:=A0 =A0 =A0 =A0 =A0 bootargs =3D "console=3DttyS0,57600";=0A> mt7628= an.dtsi:=A0 =A0 =A0 =A0 =A0 bootargs =3D "console=3DttyS0,57600";=0A> rt288= 0.dtsi:=A0 =A0 =A0 =A0 =A0 =A0 bootargs =3D "console=3DttyS0,57600";=0A> rt= 3050.dtsi:=A0 =A0 =A0 =A0 =A0 =A0 bootargs =3D "console=3DttyS0,57600";=0A>= rt3352.dtsi:=A0 =A0 =A0 =A0 =A0 =A0 bootargs =3D "console=3DttyS0,57600";= =0A> rt3883.dtsi:=A0 =A0 =A0 =A0 =A0 =A0 bootargs =3D "console=3DttyS0,5760= 0";=0A> rt5350.dtsi:=A0 =A0 =A0 =A0 =A0 =A0 bootargs =3D "console=3DttyS0,5= 7600";=0A> (i have removed some of the results from here as most files matc= h)=0A> =0A> On 09/05/2017 15:07, Mori Hiroki wrote:=0A>> Hi. Mike=0A>> =0A= >>> Starting kernel ...=0A>> =0A>> I think success to boot.=0A>> =0A>> N= ext is Entry point miss or uart console issue.=0A>> =0A>> =0A>> Entry poin= t can check on ELF kernel file by readelf command.=0A>> =0A>> Uart console= issue is in dts file.=0A>> =0A>> ----- Original Message -----=0A>> =0A>>>= From: Mike Wolman =0A>>> To: Mori Hiroki ; Aleksandr Rybalko =0A> =0A>>> Cc: "freebsd-mi= ps@freebsd.org" =0A> =0A>>> Date: 2017/5/9, Tue = 22:42=0A>>> Subject: Re: onion omega2+=0A>>> =0A>>> =0A>>> Ok got somewhe= re with this=0A>>> =0A>>> =0A>>> USB_STORAGE: 1 Storage Device(s) found=0A= >>> Omega2 # fatload usb 0:1 0x80800000 kernel.MT7628_FDT.uImage=0A>>> *= =0A>>> *=0A>>> Reading file "kernel.MT7628_FDT.uImage"=0A>>> *=0A>>> **= =0A>>> **=0A>>> **=0A>>> **=0A>>> **=0A>>> **=0A>>> **=0A>>> **=0A>>= > **=0A>>> **=0A>>> ******=0A>>> ******=0A>>> =0A> ********************= ***************************************************************************= ***************************************************************************= ****************************************=0A>>> ****=0A>>> *=0A>>> FAT: 5= 654824 Bytes read=0A>>> Omega2 # go=0A>>> Usage:=0A>>> go=A0 =A0 =A0 - s= tart application at address 'addr'=0A>>> =0A>>> Omega2 # go 0x80001000=0A>= >> ## Starting application at 0x80001000 ...=0A>>> =0A>>> =0A>>> =0A>>> I= have tried with:=0A>>> =0A>>> Omega2 # go 0x80001100=0A>>> ## Starting a= pplication at 0x80001100 ...=0A>>> =0A>>> =0A>>> =0A>>> I have tried using= the 0x80001000 for fatload as well:=0A>>> =0A>>> =0A>>> USB_STORAGE: 1 St= orage Device(s) found=0A>>> Omega2 # help fatload=0A>>> fatload =A0 =0A> =0A>>> [bytes]=0A>>> =A0 =A0 =A0 = - load binary file 'filename' from 'dev' on=0A>>> 'interface'=0A>>> =A0 = =A0 =A0 =A0 to address 'addr' from dos filesystem=0A>>> =0A>>> Reading fi= le "kernel.MT7628_FDT.uImage"=0A>>> *=0A>>> **=0A>>> **=0A>>> **=0A>>> = **=0A>>> **=0A>>> **=0A>>> **=0A>>> **=0A>>> **=0A>>> **=0A>>> ****= **=0A>>> ******=0A>>> =0A> ***********************************************= ***************************************************************************= ***************************************************************************= *************=0A>>> ****=0A>>> *=0A>>> FAT: 5654824 Bytes read=0A>>> Om= ega2 # go 0x80001100=0A>>> ## Starting application at 0x80001100 ...=0A>>>= =0A>>> =0A>>> =0A>>> However:=0A>>> =0A>>> Omega2 # fatload usb 0:1 0x80= 800000 kernel.MT7628_FDT.uImage=0A>>> *=0A>>> *=0A>>> Reading file "kern= el.MT7628_FDT.uImage"=0A>>> *=0A>>> **=0A>>> **=0A>>> **=0A>>> **=0A>>= > **=0A>>> **=0A>>> **=0A>>> **=0A>>> **=0A>>> **=0A>>> ******=0A>>>= ******=0A>>> =0A> *******************************************************= ***************************************************************************= ***************************************************************************= *****=0A>>> ****=0A>>> *=0A>>> FAT: 5654824 Bytes read=0A>>> Omega2 # b= ootm 0x80800000=0A>>> ## Booting image at 80800000 ...=0A>>> =A0 =A0 =A0 I= mage Name:=A0 FreeBSD=0A>>> =A0 =A0 =A0 Image Type:=A0 MIPS Linux Kernel = Image (uncompressed)=0A>>> =A0 =A0 =A0 Data Size:=A0 =A0 5654760 Bytes =3D= =A0 5.4 MB=0A>>> =A0 =A0 =A0 Load Address: 80001000=0A>>> =A0 =A0 =A0 Entry= Point:=A0 80001100=0A>>> =A0 =A0 =A0 Verifying Checksum ... OK=0A>>> OK= =0A>>> No initrd=0A>>> ## Transferring control to Linux (at address 80001= 100) ...=0A>>> ## Giving linux memsize in MB, 128=0A>>> =0A>>> Starting k= ernel ...=0A>>> =0A>>> =0A>>> But it doesnt go any further=0A>>> =0A>>> = =0A>>> =0A>>> =0A>>> =0A>>> =0A>>> On 09/05/2017 14:20, Mori Hiroki wrote:= =0A>>>> =A0 Hi.=0A>>>> =0A>>>> =A0 One more.=0A>>>> =0A>>>> =A0 Omega2 #= fatload usb 0:1 0x80800000 kernel.MT7628_FDT.uImage=0A>>>> =0A>>>> =A0 Om= ega2 # bootm 0x80800000=0A>>>> =0A>>>> =A0 ----- Original Message -----=0A= >>>>> =A0 From: Mike Wolman =0A>>>>> =A0 To: Mori Hiro= ki ; Aleksandr =0A> Rybalko=0A>>> = =0A>>>>> =A0 Cc: "freebsd-mips@freebsd.org"=0A>>> =0A>>>>> =A0 Date: 2017/5/9, Tue 22:01=0A>>>>> =A0 Subject: Re: onion = omega2+=0A>>>>> =0A>>>>> =0A>>>>> =A0 No joy=0A>>>>> =0A>>>>> =A0 Omega2 = # fatload usb 0:1 0x80800000 kernel.MT7628_FDT.uImage=0A>>>>> =A0 *=0A>>>>= > =A0 *=0A>>>>> =A0 Reading file "kernel.MT7628_FDT.uImage"=0A>>>>> =A0 = *=0A>>>>> =A0 **=0A>>>>> =A0 **=0A>>>>> =A0 **=0A>>>>> =A0 **=0A>>>>> = =A0 **=0A>>>>> =A0 **=0A>>>>> =A0 **=0A>>>>> =A0 **=0A>>>>> =A0 **=0A>= >>>> =A0 **=0A>>>>> =A0 ******=0A>>>>> =A0 ******=0A>>>>> =0A>>> =0A> **= ***************************************************************************= ***************************************************************************= **********************************************************=0A>>>>> =A0 ***= *=0A>>>>> =A0 *=0A>>>>> =A0 FAT: 5654824 Bytes read=0A>>>>> =A0 Omega2 #= bootm=0A>>>>> =A0 ## Booting image at 80100000 ...=0A>>>>> =A0 Bad Magic= Number,CE6AE7C4=0A>>>>> =0A>>>>> =A0 I am going to get a different usb me= mory stick and rebuild =0A> the kernel=0A>>>>> =A0 later on as i got an er= ror when last writing to the usb =0A> memory key and=0A>>>>> =A0 its quite= old now so just want to eliminate it from testing.=0A>>>>> =0A>>>>> =0A>>>= >> =A0 On 09/05/2017 13:52, Mori Hiroki wrote:=0A>>>>>> =A0 =A0 Hi.=0A>>>= >>> =0A>>>>>> =A0 =A0 This is my sample operation get image from network a= nd =0A> boot.=0A>>>>>> =0A>>>>>> =A0 =A0 RT3052 # tftpboot 0x80800000=0A>>= > Planex_MZK-WNH_kernel.kbin.oldlzma.uboot=0A>>>>>> =A0 =A0 RT3052 # boot= m=0A>>>>>> =0A>>>>>> =0A>>>>>> =A0 =A0 I don't use USB support U-Boot. But= I think fatload =0A> command=0A>>> argument is=0A>>>>>> =A0 =A0 temporar= y memory address not kernel address.=0A>>>>>> =0A>>>>>> =A0 =A0 How about = this.=0A>>>>>> =0A>>>>>> =A0 =A0 Omega2 # fatload usb 0:1 0x80800000 =0A> = kernel.MT7628_FDT.uImage=0A>>>>>> =A0 =A0 Omega2 # bootm=0A>>>>>> =0A>>>>>= > =A0 =A0 ----- Original Message -----=0A>>>>>>> =A0 =A0 From: Mike Wolma= n =0A>>>>>>> =A0 =A0 To: Aleksandr Rybalko ; Mori =0A> Hiroki=0A>>>>> =A0 =0A>>>>>>> =A0 = =A0 Cc: "freebsd-mips@freebsd.org"=0A>>>>> =A0 = =0A>>>>>>> =A0 =A0 Date: 2017/5/9, Tue 20:48=0A>>>>>>> =A0 =A0 Subject: R= e: onion omega2+=0A>>>>>>> =0A>>>>>>> =0A>>>>>>> =0A>>>>>>> =0A>>>>>>> =A0 = =A0 Is it possible to exclude the compression of the =0A> kernel/image=0A>= >> for=0A>>>>>> =A0 =A0 =A0 =A0 =A0 now eg:=0A>>>>>>> =A0 =A0 mkimage -A = mips -C none -O linux -T kernel -a =0A> 0x80001000 -e=0A>>>>>> =A0 =A0 =A0 = =A0 =A0 0x80001100 -n "FreeBSD" -d =0A> kernel.MT7628_FDT=0A>>>>>> =A0 =A0 = =A0 =A0 =A0 kernel.MT7628_FDT.uImage=0A>>>>>>> =A0 =A0 I have just tried t= he above but when booting I get =0A> a Bad=0A>>> Magic=0A>>>>>> =A0 =A0 = =A0 =A0 =A0 Number.=0A>>>>>>> =A0 =A0 Omega2 # fatload usb 0:1 0x80001000 = =0A> kernel.MT7628_FDT.uImage=0A>>>>>>> =A0 =A0 *=0A>>>>>>> =A0 =A0 *=0A>= >>>>>> =A0 =A0 Reading file "kernel.MT7628_FDT.uImage"=0A>>>>>>> =A0 =A0 = *=0A>>>>>>> =A0 =A0 **=0A>>>>>>> =A0 =A0 **=0A>>>>>>> =A0 =A0 **=0A>>>>>= >> =A0 =A0 **=0A>>>>>>> =A0 =A0 **=0A>>>>>>> =A0 =A0 **=0A>>>>>>> =A0 = =A0 **=0A>>>>>>> =A0 =A0 **=0A>>>>>>> =A0 =A0 **=0A>>>>>>> =A0 =A0 **= =0A>>>>>>> =A0 =A0 ******=0A>>>>>>> =A0 =A0 ******=0A>>>>>>> =0A>>> =0A> = ***************************************************************************= ***************************************************************************= ************************************************************=0A>>>>>>> =A0 = =A0 ****=0A>>>>>>> =A0 =A0 *=0A>>>>>>> =A0 =A0 FAT: 5654824 Bytes read= =0A>>>>>>> =A0 =A0 Omega2 # bootm 0x80001100=0A>>>>>>> =A0 =A0 ## Booting= image at 80001100 ...=0A>>>>>>> =A0 =A0 Bad Magic Number,1C994480=0A>>>>>= >> =A0 =A0 Omega2 #=0A>>>>>>> =0A>>>>>>> =0A>>>>>>> =A0 =A0 I have seen o= ther examples starting a program =0A> directly with=0A>>> going to=0A>>>>>= > =A0 =A0 =A0 =A0 =A0 the address but this didnt work either:=0A>>>>>>> =A0= =A0 Omega2 # go 0x80001100=0A>>>>>>> =A0 =A0 ## Starting application at = 0x80001100 ...=0A>>>>>>> =0A>>>>>>> =A0 =A0 omega freezes here.=0A>>>>>>> = =0A>>>>>>> =0A>>>>>>> =0A>>>>>>> =0A>>>>>>> =A0 =A0 On 09/05/2017 10:12, A= leksandr Rybalko wrote:=0A>>>>>>> =0A>>>>>>> =A0 =A0 Fix things in order := )=0A>>>>>> =A0 =A0 Currently you have problem with LZMA, serial port =0A> = later.=0A>>>>>> =A0 =A0 So, find version of lzma used to build linux firmw= are, =0A> MIPS=0A>>> routers world=0A>>>>> =A0 use about 5 incompatible v= ersions. One of them, you can find =0A> here:=0A>>>>> =A0 =0A> http://proje= ct.zrouter.org/hg/zrouter/file/9ac53695a44d/tools/oldlzma=0A>>>>>>>> =0A>>>= >>>>> =0A>>>>>>>> =A0 =A0 2017-05-09 7:03 GMT+03:00 Mori Hiroki=0A>>>>> = =A0 :=0A>>>>>>>> =A0 =A0 Hi Mike=0A>>>>>>>>> =A0 = =A0 Could you show u-boot printenv command =0A> result.=0A>>>>>>>>> =0A>>>= >>>>>> =A0 =A0 Thanks=0A>>>>>>>>> =0A>>>>>>>>> =0A>>>>>>>>> =A0 =A0 -----= Original Message -----=0A>>>>>>>>>> =A0 =A0 From: Mike Wolman =0A> =0A>>>>>>>>>> =A0 =A0 To: Mori Hiroki =0A> ;=0A>>>>> =A0 "freebsd-mips@freebsd.org" =0A> =0A>>>>>>>>>> =A0 =A0 Cc:=0A>>>>>>>>>> =A0 =A0 Date: 2017/5/9, Tue 10:= 30=0A>>>>>>>>>> =A0 =A0 Subject: Re: onion omega2+=0A>>>>>>>>>> =0A>>>>>>>= >>> =A0 =A0 Hi Mori,=0A>>>>>>>>>> =0A>>>>>>>>>> =A0 =A0 When I compiled t= he world/kernel etc I =0A> used:=0A>>>>>>>>>> =0A>>>>>>>>>> =A0 =A0 X_DTS_= FILE=3DOMEGA2P.dts =0A> KERNCONF=3DMT7628_FDT=0A>>>>>>>>>> =A0 =A0 ../free= bsd-wifi-build/build/ bin/build =0A> ralink=0A>>>>>> =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 buildkernel=0A>>>>>>>>>> =A0 =A0 I checked the ser= ial stuff was the same =0A> as the=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 other configs in:=0A>>>>>>>>>> =A0 =A0 https://github.com/free= bsd/ =0A> freebsd-wifi-build/=0A>>>>>>>>>> =A0 =A0 and they looked the sam= e.=0A>>>>>>>>>> =0A>>>>>>>>>> =A0 =A0 The OMEGA2.dtsi file has:=0A>>>>>>>>= >> =0A>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 chosen {=0A>>>>>>>>>> =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 bootargs =3D=0A>>>>> =A0 "console=3D= ttyS0,115200";=0A>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 };=0A>>>>>>>>>> = =0A>>>>>>>>>> =0A>>>>>>>>>> =A0 =A0 And mt7628an.dtsi has:=A0 serial0 =3D= =0A> &uartlite;=0A>>>>>>>>>> =0A>>>>>>>>>> =A0 =A0 I dont think im gettin= g as far as =0A> worrying about=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 the serial console at=0A>>>>>>>>>> =A0 =A0 the moment and need= to get the kernel =0A> to=0A>>> uncompress=0A>>>>>> =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 first.=0A>>>>>>>>>> =A0 =A0 Mike.=0A>>>>>>>>>> =0A= >>>>>>>>>> =0A>>>>>>>>>> =A0 =A0 On 09/05/2017 02:20, Mori Hiroki wrote:= =0A>>>>>>>>>>> =A0 =A0 =A0 =A0 Hi Mike=0A>>>>>>>>>>> =0A>>>>>>>>>>> =A0 =A0= =A0 =A0 In FreeBSD is use serial0 dts =0A> item to=0A>>> console.=0A>>>>>= >>>>>> =A0 =A0 =A0 =A0 I think good to use this at =0A> start.=0A>>>>>>>>>>= > =0A>>>>>>>>>>> =A0 =A0 =A0 =A0 freebsd/sys/gnu/dts/mips/ =0A> MT7628.dts= =0A>>>>>>>>>>> =0A>>>>>>>>>>> =A0 =A0 =A0 =A0 ----- Original Message -----= =0A>>>>>>>>>>>> =A0 =A0 =A0 =A0 From: Mike Wolman=0A>>> =0A>>>>>>>>>>>> =A0 =A0 =A0 =A0 To: Mori Hiroki=0A>>> ;=0A>>>>>>>>>> =A0 =A0 "freebsd-mips@freebsd.org"=0A>>>>> =A0 =0A>>>>>>>>>>>> =A0 =A0 =A0 =A0 Cc:=0A>>>>>>>>>>>> =A0 = =A0 =A0 =A0 Date: 2017/5/9, Tue 09:25=0A>>>>>>>>>>>> =A0 =A0 =A0 =A0 Subjec= t: Re: onion omega2+=0A>>>>>>>>>>>> =0A>>>>>>>>>>>> =A0 =A0 =A0 =A0 Hi Mori= ,=0A>>>>>>>>>>>> =0A>>>>>>>>>>>> =A0 =A0 =A0 =A0 I grabbed the dts files = =0A> from:=0A>>>>>>>>>>>> =0A>>>>>>>>>>>> =A0 =A0 =A0 =A0 https://github.co= m/WereCatf/=0A>>>>> =A0 source/tree/image/target/ linux/ramips/dts=0A>>>>>= >>>>> =A0 =A0 https://github.com/WereCatf/=0A>>> source/blob/image/target/= =0A>>>>> =A0 linux/ramips/dts/OMEGA2P.dts=0A>>>>>>>>>> =A0 =A0 https://git= hub.com/WereCatf/=0A>>> source/blob/image/target/=0A>>>>> =A0 linux/ramip= s/dts/OMEGA2.dtsi=0A>>>>>>>>>>>> =A0 =A0 =A0 =A0 If this is of any use from= =0A> the default=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 linu= x install on the flash:=0A>>>>>>>>>>>> =A0 =A0 =A0 =A0 root@Omega-12BF:/pro= c# cat =0A> /proc/mtd=0A>>>>>>>>>>>> =A0 =A0 =A0 =A0 dev:=A0 =A0 size=A0 e= rasesize=A0 =0A> name=0A>>>>>>>>>>>> =A0 =A0 =A0 =A0 mtd0: 00030000 0001000= 0=0A>>> "u-boot"=0A>>>>>>>>>>>> =A0 =A0 =A0 =A0 mtd1: 00010000 00010000=0A= >>> "u-boot-env"=0A>>>>>>>>>>>> =A0 =A0 =A0 =A0 mtd2: 00010000 00010000=0A= >>> "factory"=0A>>>>>>>>>>>> =A0 =A0 =A0 =A0 mtd3: 01fb0000 00010000=0A>>>= "firmware"=0A>>>>>>>>>>>> =A0 =A0 =A0 =A0 mtd4: 00148842 00010000=0A>>> = "kernel"=0A>>>>>>>>>>>> =A0 =A0 =A0 =A0 mtd5: 01e677be 00010000=0A>>> "roo= tfs"=0A>>>>>>>>>>>> =A0 =A0 =A0 =A0 mtd6: 01950000 00010000=0A>>> "rootfs_= data"=0A>>>>>>>>>>>> =0A>>>>>>>>>>>> =A0 =A0 =A0 =A0 btw after posting i sp= otted =0A> and error=0A>>> in=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 what i did with:=0A>>>>>>>>>>>> =A0 =A0 =A0 =A0 mkimage -A mips -O= linux -T =0A> kernel -C=0A>>> lzma=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 \=0A>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 -a 0x80001000 -e = =0A> 0x80001100 \=0A>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 -n "FreeBSD" =0A> = -d=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 kernel.MT7628_FDT.l= zma=0A>>>>>>>>>>>> =A0 =A0 =A0 =A0 =0A> kernel.MT7628_FDT.ulzma.uImage=0A>>= >>>>>>>>>> =0A>>>>>>>>>>>> =A0 =A0 =A0 =A0 I have redone this using the =0A= > correct=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 compressed k= ernel ie:=0A>>>>>>>>>>>> =A0 =A0 =A0 =A0 mkimage -A mips -O linux -T =0A> k= ernel -C=0A>>> lzma=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 \= =0A>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 -a 0x80001000 -e =0A> 0x80001100 \= =0A>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 -n "FreeBSD" =0A> -d=0A>>>>>> =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 kernel.MT7628_FDT.ulzma=0A>>>>>>>>>= >>> =A0 =A0 =A0 =A0 =0A> kernel.MT7628_FDT.ulzma.uImage=0A>>>>>>>>>>>> =0A>= >>>>>>>>>>> =0A>>>>>>>>>>>> =A0 =A0 =A0 =A0 But this didnt work.=0A>>>>>>>>= >>>> =0A>>>>>>>>>>>> =0A>>>>>>>>>>>> =0A>>>>>>>>>>>> =A0 =A0 =A0 =A0 On 09/= 05/2017 01:17, Mori =0A> Hiroki=0A>>> wrote:=0A>>>>>>>>>>>>> =A0 =A0 =A0 = =A0 Hi.=0A>>>>>>>>>>>>> =0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 I think if U-Boo= t work =0A> memory=0A>>> make=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 broken then=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 Uncompressing Kernel = =0A> Image is NG.=0A>>>>>>>>>>>>> =0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 Some AR= M U-Boot is use =0A> top=0A>>> address=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 in work memory.=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 If thi= s case your =0A> kernel start=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 address to move to=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 after work memo= ry. But =0A> I never=0A>>> see=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 in MIPS.=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 And What is set =0A> = FDT_DTS_FILE=A0 in=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 you= r kernel configuration ?=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 ----- Original Me= ssage =0A> -----=0A>>>>>>>>>>>>> =0A>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 From: M= ike Wolman=0A>>>>> =A0 =0A>>>>>>>>>>>>>> =A0 =A0 =A0 = =A0 To: =0A> freebsd-mips@freebsd.org=0A>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 Cc= :=0A>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 Date: 2017/5/9, Tue =0A> 07:48=0A>>>>>>= >>>>>>>> =A0 =A0 =A0 =A0 Subject: Re: onion =0A> omega2+=0A>>>>>>>>>>>>>> = =0A>>>>>>>>>>>>>> =0A>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 More info in case =0A>= anyone can=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 point me i= n the right direction.=0A>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 I have found:=0A>>= >>>>>>>>>>>> =0A>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =0A> https://forum.openwrt.o= rg/=0A>>>>> =A0 viewtopic.php?id=3D53865=0A>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 = I have tried =0A> changing how=0A>>> lzma=0A>>>>>> =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 compresses the kernel by=0A>>>>>>>>>> =A0 =A0 addi= ng -d20 to=0A>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 the build scripts =0A> eg:=0A>= >>>>>>>>>>>>> =0A>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 /usr/local/bin/lzma =0A> e= =0A>>>>>>>>>>>>>> =A0 =A0 =A0 =0A>>>>>>>>>> =A0 =A0 /home/mike/omega2/src/= ../root/=0A>>>>> =A0 mipsel_ap/boot/kernel.MT7628_ FDT/kernel=0A>>>>>>>>>>= >> =A0 =A0 =A0 =A0 \=0A>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =0A> /home/mike/omega= 2/src/../=0A>>>>> =A0 tftpboot/kernel.MT7628_FDT. lzma=0A>>>>>> =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 -d20=0A>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 = This did not work.=0A>>>>>>>>>>>>>> =0A>>>>>>>>>>>>>> =0A>>>>>>>>>>>>>> =A0= =A0 =A0 =A0 Looking at the =0A> onion omega=0A>>> conf=0A>>>>>> =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 I see that it uses mkuzip and=0A>>>>>>>= >>> =A0 =A0 not lzma=0A>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 with the following = =0A> settings:=0A>>>>>>>>>>>>>> =0A>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =0A>>> X= _FSIMAGE_CMD=3D"mkuzip"=0A>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =0A> X_FSIMAGE_ARG= S=3D"-L -d -s=0A>>> 65536=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 -v"=0A>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =0A>>> X_FSIMAGE_SUFFIX=3D".ulzm= a"=0A>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 So tried the =0A> following:=0A>>>>>>>= >>>>>>> =0A>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 mkuzip -L -d -s =0A> 65536 -v -o= =0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 kernel.MT7628_FDT.ulz= ma=0A>>>>>>>>>> =A0 =A0 kernel.MT7628_FDT=0A>>>>>>>>>>>>>> =A0 =A0 =A0 =A0= mkimage -A mips -O =0A> linux -T=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 kernel -C lzma \=0A>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 -a = 0x80001000 =0A> -e=0A>>> 0x80001100=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 \=0A>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 -n =0A> "FreeBS= D" -d=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 kernel.MT7628_FD= T.lzma=0A>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =0A>>> kernel.MT7628_FDT.ulzma.uIm= age=0A>>>>>>>>>>>>>> =0A>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 But this did not = =0A> work either.=0A>>>>>>>>>>>>>> =0A>>>>>>>>>>>>>> =0A>>>>>>>>>>>>>> =0A>= >>>>>>>>>>>>> =A0 =A0 =A0 =A0 On 08/05/2017 =0A> 19:41,=0A>>> Aleksandr= =0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Rybalko wrote:=0A>>>>= >>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 Hi Mike!=0A>>>>>>>>>>>>>>> =0A>>>>>>>>>>>>= >>> =A0 =A0 =A0 =A0 =A0 I see you =0A> have no=0A>>> "OK"=0A>>>>>> =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 after=0A>>>>>>>>>> =A0 =A0 "Uncomp= ressing Kernel=0A>>>>>>>>>>>> =A0 =A0 =A0 =A0 Image=0A>>>>>>>>>>>>>> =A0 = =A0 =A0 =A0 ...", so=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 first point = =0A> uboot=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 decompresso= r fail.=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 Why fail? =0A> Because you= =0A>>> have=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 wrong bas= e address in image:=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 Load =0A> Ad= dress:=0A>>> fffffff2=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 Entry =0A= > Point:=0A>>> fffffff2=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 MIPS32 =0A>= machines have=0A>>> RAM=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 mapped to 0x80000000 address,=0A>>>>>>>>>> =A0 =A0 so adding=0A>>>>>>>= >>>>> =A0 =A0 =A0 =A0 its=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 size, you = =0A> will get max=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 addr= ess (if 16MB, it will be=0A>>>>>>>>>> =A0 =A0 0x81000000),=0A>>>>>>>>>>>> = =A0 =A0 =A0 =A0 but=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 you uboot =0A> i= mage was=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 created with = 0xfffffff2.=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 Even more, =0A> unpacked= =0A>>> kernel=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 expects= it will be called at=0A>>>>>>>>>>>> =A0 =A0 =A0 =A0 0x80001100. so=0A>>>>>= >>>>>>>>>> =A0 =A0 =A0 =A0 =A0 if you have =0A> ELF kernel=0A>>>>>> =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (file with ELF header, like=0A>>>>>= >>>>> =A0 =A0 every=0A>>>>>>>>>>>> =A0 =A0 =A0 =A0 executable)=0A>>>>>>>>>= >>>>>> =A0 =A0 =A0 =A0 =A0 that file =0A> have to be=0A>>>>>> =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 loaded at (0x80001100 -=0A>>>>>>>>>> =A0 = =A0 ELF_HEADER_SIZE).=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 In most cases= =0A> it will=0A>>> be=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 0x80001100 - 0x100 =3D=0A>>>>>>>>>> =A0 =A0 0x80001000. But=0A>>>>>>>>= >>>> =A0 =A0 =A0 =A0 sometime=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 (I did= not =0A> found why)=0A>>> it=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 can be 0x20, you can find it=0A>>>>>>>>>> =A0 =A0 by looking=0A>>= >>>>>>>>>> =A0 =A0 =A0 =A0 at=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 .text = section =0A> in=0A>>> readelf=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 -S.=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 So if you =0A> have ker= nel=0A>>> with=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 entry = point 0x80001100 and=0A>>>>>>>>>> =A0 =A0 .text=0A>>>>>>>>>>>> =A0 =A0 =A0= =A0 segment=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 offset 0x100, =0A> you = have=0A>>> to=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 create = uboot image with load=0A>>>>>>>>>> =A0 =A0 address=0A>>>>>>>>>>>>>>> =A0 = =A0 =A0 =A0 =A0 0x80001000 =0A> and entry=0A>>> point=0A>>>>>> =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 0x80001100.=0A>>>>>>>>>>>>>>> =A0 =A0 = =A0 =A0 =A0 If that step =0A> successful=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 you will get:=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =0A= > /Uncompressing Kernel=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 Image/ ... OK=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 Starting =0A> kern= el ...=0A>>>>>>>>>>>>>>> =0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 Last line = =0A> mean, uboot=0A>>> did=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 jump into kernel code.=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 Good = luck.=0A>>>>>>>>>>>>>>> =0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 2017-05-07 = =0A> 18:20=0A>>> GMT+03:00=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 Mike Wolman=0A>>>>>>>>>> =A0 =A0 >>>>>>>>>>>= >>> =A0 =A0 =A0 =A0 =A0 =0A>>>>> =A0 >:=0A>>>>>>= >>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 Hi,=0A>>>>>>>>>>>>>>> =0A>>>>>>>>>>>= >>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 I am =0A> trying to get=0A>>>>>> =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 FreeBSD working on this board -=0A>>>>>= >>>>> =A0 =A0 I think I=0A>>>>>>>>>>>> =A0 =A0 =A0 =A0 am=0A>>>>>>>>>>>>>>= > =A0 =A0 =A0 =A0 =A0 =A0 =A0 almost =0A> there in=0A>>>>>> =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 getting it working but need some=0A>>>>>>>>= >> =A0 =A0 help please.=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 I h= ave =0A> followed=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 inst= ructions from the=0A>>>>>>>>>> =A0 =A0 freebsd-wifi-build and=0A>>>>>>>>>>= >>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 *think* I =0A> have got=0A>>>>>> =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 everything correct - I am trying=0A>>>= >>>>>>> =A0 =A0 to do=0A>>>>>>>>>>>> =A0 =A0 =A0 =A0 this on=0A>>>>>>>>>>>= >>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 a CURRENT =0A> setup:=0A>>>>>>>>>>>>>>> = =0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 FreeBSD=0A>>>>>> =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 f64-current.mw.office 12.0-CURRENT =0A>= FreeBSD=0A>>>>>>>>>>>> =A0 =A0 =A0 =A0 12.0-CURRENT #0=0A>>>>>>>>>>>>>>> = =A0 =A0 =A0 =A0 =A0 =A0 =A0 r317887: =0A> Sun May=A0 7=0A>>>>>> =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 03:20:34 UTC 2017=0A>>>>>>>>>>>>>>> =A0= =A0 =A0 =A0 =A0 =A0 =0A>>>>>>>>>>>> =A0 =A0 =A0 =A0 mike@f64-current.mw.of= fice:/=0A>>>>> =A0 usr/obj/usr/src/sys/GENERIC- NODEBUG amd64=0A>>>>>>>>>>= >>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 $ cat=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 ~/.freebsd-wifi-build- settings.cfg=0A>>>>>>>>>>>>>>> = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A>>> X_SKIP_MORE_STUFF=3DYES=0A>>>>>>>>>>>>>= >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 X_EXTRA_SRC_CONF=3D~/omega2/src. conf=0A>>>>>>>>>>>>>>> =A0 =A0= =A0 =A0 =A0 =A0 =A0 $ cat=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 ~/omega2/src.conf=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A= > WITHOUT_CLANG=3DYES=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A>>> = WITHOUT_CLANG_FULL=3DYES=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 ge= t dts =0A> files from=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = thread=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =0A>>>>>>>>>> =A0 =A0 http= ://community.onion.io/=0A>>> topic/1099/openwrt-on-the-=0A>>>>> =A0 omega= -2/8=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =0A>>>>>>>>>>>> =A0 =A0 =A0 = =A0 =0A> >>>> =A0 topic/1099/openwrt-on-the= - omega-2/8>=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 cd=0A>>>>>> =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ~/omega2/src/sys/gnu/dts/mips=0A>>= >>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 fetch=0A>>>>>>>>>>>>>>> =A0 =A0 = =A0 =A0 =A0 =A0 =0A>>>>>>>>>> =A0 =A0 https://raw.githubusercontent.=0A>>> = com/WereCatf/source/image/=0A>>>>> =A0 target/linux/ramips/dts/ OMEGA2.dt= si=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =0A>>>>>>>>>> =A0 =A0 >>>> =A0 WereCatf/source/image/target/ = =0A> linux/ramips/dts/OMEGA2.dtsi>=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 = =A0 =A0 fetch=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =0A>>>>>>>>>> =A0 = =A0 https://raw.githubusercontent.=0A>>> com/WereCatf/source/image/=0A>>>>= > =A0 target/linux/ramips/dts/ OMEGA2.dts=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 = =A0 =A0 =A0 =0A>>>>>>>>>> =A0 =A0 = >>>> =A0 WereCatf/source/image/target/ linux/ramips/dts/OMEGA2.dts>=0A>>>>= >>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 fetch=0A>>>>>>>>>>>>>>> =A0 =A0 = =A0 =A0 =A0 =A0 =0A>>>>>>>>>> =A0 =A0 https://raw.githubusercontent.=0A>>> = com/WereCatf/source/image/=0A>>>>> =A0 target/linux/ramips/dts/ OMEGA2P.d= ts=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =0A>>>>>>>>>> =A0 =A0 >>>> =A0 WereCatf/source/image/target/ = =0A> linux/ramips/dts/OMEGA2P.dts>=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =0A>>> X_DTS_FILE=3DOMEGA2P.dts=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 KERNCONF=3DMT7628_FDT=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0= =A0 =A0 =A0 =0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ../freeb= sd-wifi-build/build/ bin/build =0A> ralink=0A>>>>>>>>>> =A0 =A0 buildworld= =0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A>>> X_DTS_FILE=3DOMEGA2P= .dts=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 KERNCONF=3DMT7628= _FDT=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A>>>>>> =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ../freebsd-wifi-build/build/ bin/build =0A>= ralink=0A>>>>>>>>>> =A0 =A0 buildkernel=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0= =A0 =A0 =A0 =0A>>> X_DTS_FILE=3DOMEGA2P.dts=0A>>>>>> =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 KERNCONF=3DMT7628_FDT=0A>>>>>>>>>>>>>>> =A0 =A0 =A0= =A0 =A0 =A0 =A0 =0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ../f= reebsd-wifi-build/build/ bin/build =0A> ralink=0A>>>>>>>>>> =A0 =A0 instal= lworld=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A>>> X_DTS_FILE=3DO= MEGA2P.dts=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 KERNCONF=3D= MT7628_FDT=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A>>>>>> =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ../freebsd-wifi-build/build/ bin/build = =0A> ralink=0A>>>>>>>>>> =A0 =A0 installkernel=0A>>>>>>>>>>>>>>> =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =0A>>> X_DTS_FILE=3DOMEGA2P.dts=0A>>>>>> =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 KERNCONF=3DMT7628_FDT=0A>>>>>>>>>>>>>>> =A0= =A0 =A0 =A0 =A0 =A0 =A0 =0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 ../freebsd-wifi-build/build/ bin/build =0A> ralink=0A>>>>>>>>>> =A0 =A0= distribution=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A>>> X_DTS_= FILE=3DOMEGA2P.dts=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 KER= NCONF=3DMT7628_FDT=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A>>>>>> = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ../freebsd-wifi-build/build/ bi= n/build =0A> ralink=0A>>>>>>>>>> =A0 =A0 mfsroot=0A>>>>>>>>>>>>>>> =A0 =A0= =A0 =A0 =A0 =A0 =A0 =0A>>> X_DTS_FILE=3DOMEGA2P.dts=0A>>>>>> =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 KERNCONF=3DMT7628_FDT=0A>>>>>>>>>>>>>>> =A0= =A0 =A0 =A0 =A0 =A0 =A0 =0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 ../freebsd-wifi-build/build/ bin/build =0A> ralink=0A>>>>>>>>>> =A0 =A0= fsimage=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A>>> X_DTS_FILE= =3DOMEGA2P.dts=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 KERNCON= F=3DMT7628_FDT=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A>>>>>> =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ../freebsd-wifi-build/build/ bin/bu= ild =0A> ralink=0A>>> uboot=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 = Create =0A> flash:=0A>>>>>>>>>>>>>>> =0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 X_FLASH= =3Dkernel.MT7628_FDT. lzma.flash=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 = =A0 dd =0A> if=3D/dev/zero=0A>>> bs=3D$((=0A>>>>>> =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 0x200000 )) count=3D1=0A>>>>>>>>>> =A0 =A0 of=3D${= X_FLASH}=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 dd=0A>>>>>> =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 if=3Dkernel.MT7628_FDT.lzma. uImage = =0A> of=3D${X_FLASH}=0A>>>>>>>>>>>> =A0 =A0 =A0 =A0 conv=3Dnotrunc=0A>>>>>>= >>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 dd if=3D=0A>>>>>> =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 mfsroot-ralink.img.lzma >> =0A> ${X_FLASH}=0A>>= >>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 $ readelf =0A> -h=0A>>>>>> =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 kernel.MT7628_FDT | grep Entry=0A>>= >>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Entry =0A> point=0A>>>>>> = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 address:=A0 =A0 =A0 =A0 =A0 =A0= =A0 0x80001100=0A>>>>>>>>>>>>>>> =0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 = =A0 =A0 Now on =0A> the omega=0A>>> over=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 serial - I didnt get the=0A>>>>>>>>>> =A0 =A0 network= =0A>>>>>>>>>>>> =A0 =A0 =A0 =A0 expansion=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0= =A0 =A0 =A0 doc thing =0A> so am=0A>>> doing=0A>>>>>> =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 stuff with usb rather than=0A>>>>>>>>>> =A0 =A0= tftp=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 I am not =0A> 100% su= re=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 about the 0x8000110= 0 and the=0A>>>>>>>>>> =A0 =A0 fatload and=0A>>>>>>>>>>>> =A0 =A0 =A0 =A0 = have=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 tried =0A> this=0A>>>>>= >>>>>>>>>> =0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 Omega2 # =0A> fa= tload=0A>>> usb=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 0:1 0= x80001100=0A>>>>>>>>>>>> =A0 =A0 =A0 =A0 =0A> /kernel.MT7628_FDT.lzma.flash= =0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 *=0A>>>>>>>>>>>>>>> =A0 =A0= =A0 =A0 =A0 =A0 =A0 *=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 Read= ing =0A> file=0A>>>>>>>>>> =A0 =A0 "/kernel.MT7628_FDT.lzma. =0A> flash"= =0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 *=0A>>>>>>>>>>>>>>> =A0 =A0= =A0 =A0 =A0 =A0 =A0 **=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 **= =0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 **=0A>>>>>>>>>>>>>>> =A0 = =A0 =A0 =A0 =A0 =A0 =A0 ******=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 = =0A>>>>>>>>>> =A0 =A0 ******************************=0A>>>>> =A0 ********= ********************** ******************************=0A>>>>> =A0 ********= ********************** *********************=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 = =A0 =A0 =A0 =A0 ******=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 *=0A= >>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 FAT: =0A> 2108463 Bytes=0A>>>>= >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 read=0A>>>>>>>>>>>>>>> =A0 = =A0 =A0 =A0 =A0 =A0 =A0 Omega2 # =0A> bootm=0A>>>>>> =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 0x80001100=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 = =A0 =A0 ## =0A> Booting image at=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 80001100 ...=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 Image =0A> Name:=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 F= reeBSD=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Image =0A> Typ= e:=0A>>> MIPS=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Linux K= ernel Image (lzma=0A>>>>>>>>>> =A0 =A0 compressed)=0A>>>>>>>>>>>>>>> =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Data =0A> Size:=0A>>>>>> =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 1365122 Bytes =3D=A0 1.3 MB=0A>>>>>>>>>>>>>>> = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Load =0A> Address:=0A>>>>>> =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 fffffff2=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 Entry =0A> Point:=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 fffffff2=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =0A> Verifying=0A>>> Checksum=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 ... OK=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =0A> Uncompressing=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= Kernel Image ...=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 At this = =0A> point=0A>>> nothing=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 happens and console hangs -=0A>>>>>>>>>> =A0 =A0 note in=0A>>>>>>>>>>>= >>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A> OMEGA2.dtsithe=0A>>> console=0A>>>>>= > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 is set to ttyS0:=0A>>>>>>>>>>= >>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 bootargs =0A> =3D=0A>>>>>> =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 "console=3DttyS0,115200";=0A>>>>>>>>>>>>>>>= =0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 I have =0A> also tried=0A>= >> with=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 just kernel.M= T7628_FDT and=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A>>> kernel.= MT7628_FDT.lzma=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 but bo= th fail:=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 Omega2 # =0A> fatlo= ad=0A>>> usb=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 0:1 0x80= 001100=0A>>>>>>>>>>>> =A0 =A0 =A0 =A0 =0A> /kernel.MT7628_FDT.lzma.uImage= =0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 *=0A>>>>>>>>>>>>>>> =A0 =A0= =A0 =A0 =A0 =A0 =A0 *=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 Read= ing =0A> file=0A>>>>>>>>>> =A0 =A0 "/kernel.MT7628_FDT.lzma. =0A> uImage"= =0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 *=0A>>>>>>>>>>>>>>> =A0 =A0= =A0 =A0 =A0 =A0 =A0 **=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 **= =0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 ******=0A>>>>>>>>>>>>>>> = =A0 =A0 =A0 =A0 =A0 =A0 =0A>>>>>>>>>> =A0 =A0 ****************************= **=0A>>>>> =A0 ****************************** ****************************= **=0A>>>>> =A0 ****************************** ******=0A>>>>>>>>>>>>>>> =A0= =A0 =A0 =A0 =A0 =A0 =A0 =0A> **********=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 = =A0 =A0 =A0 *=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 FAT: =0A> 136= 5186 Bytes=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 read=0A>>>>= >>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 Omega2 # =0A> bootm=0A>>>>>> =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 0x80001100=0A>>>>>>>>>>>>>>> =A0 = =A0 =A0 =A0 =A0 =A0 =A0 ## =0A> Booting image at=0A>>>>>> =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 80001100 ...=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 Image =0A> Name:=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 FreeBSD=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 Image =0A> Type:=0A>>> MIPS=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 Linux Kernel Image (lzma=0A>>>>>>>>>> =A0 =A0 compressed)=0A>>= >>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Data =0A> Size:=0A>>>>>> = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 1365122 Bytes =3D=A0 1.3 MB=0A>= >>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Load =0A> Address:=0A>>>= >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 fffffff2=0A>>>>>>>>>>>>>>> = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Entry =0A> Point:=0A>>>>>> =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 fffffff2=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =0A> Verifying=0A>>> Checksum=0A>>>>>> =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 ... OK=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =0A> Uncompressing=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 Kernel Image ...=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0= A few =0A> comments on=0A>>> the=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 hardware for anyone who wants=0A>>>>>>>>>> =A0 =A0 to get= =0A>>>>>>>>>>>> =A0 =A0 =A0 =A0 one:=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 = =A0 =A0 Get the =0A> expansion=0A>>> dock=0A>>>>>> =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 with serial port access -=0A>>>>>>>>>> =A0 =A0 the= power=0A>>>>>>>>>>>> =A0 =A0 =A0 =A0 dock=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 = =A0 =A0 =A0 =A0 does not =0A> provide=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 serial access - i think it is=0A>>>>>>>>>> =A0 =A0 possib= le to=0A>>>>>>>>>>>> =A0 =A0 =A0 =A0 use an=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 = =A0 =A0 =A0 =A0 ftdi ttl =0A> serial=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 chip/cable but have not tried.=0A>>>>>>>>>>>>>>> =A0 =A0 = =A0 =A0 =A0 =A0 =A0 Stupidly =0A> I forgot=0A>>> this=0A>>>>>> =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 only has wifi access so you=0A>>>>>>>>>= > =A0 =A0 are not=0A>>>>>>>>>>>> =A0 =A0 =A0 =A0 able to=0A>>>>>>>>>>>>>>>= =A0 =A0 =A0 =A0 =A0 =A0 =A0 tftp boot =0A> this=0A>>> without=0A>>>>>> = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 getting the ethernet network=0A= >>>>>>>>>> =A0 =A0 expansion=0A>>>>>>>>>>>> =A0 =A0 =A0 =A0 but=0A>>>>>>>>= >>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 loading =0A> stuff up=0A>>> from=0A>>= >>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 a usb memory stick is seem= =0A>>>>>>>>>> =A0 =A0 fine from=0A>>>>>>>>>>>> =A0 =A0 =A0 =A0 u-boot.=0A>= >>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 I do not =0A> think that=0A>>> = it=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 is possible to boo= t from the=0A>>>>>>>>>> =A0 =A0 SD card=0A>>>>>>>>>>>> =A0 =A0 =A0 =A0 on = the=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 Omega2+ - =0A> which is= =0A>>> a=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 shame.=0A>>>= >>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 Thanks =0A> for reading,=0A>>>>>>= >>>>>>>>> =0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 Mike.=0A>>>>>>>>>= >>>>>> =0A>>>>>>>>>>>>>>> =0A>>>>>>>>>>>>>>> =0A>>>>>>>>>>>>>>> =A0 =A0 =A0= =A0 =A0 =A0 =A0 =0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ____= __________________________ =0A> _________________=0A>>>>>>>>>>>>>>> =A0 =A0= =A0 =A0 =A0 =A0 =A0 =0A>>> freebsd-mips@freebsd.org=0A>>>>>>>>>>>> =A0 = =A0 =A0 =A0 =0A> >> org>mailing=0A>>>>>>>= >>>>>>> =A0 =A0 =A0 =A0 list=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =0A= >>>>>>>>>> =A0 =A0 https://lists.freebsd.org/=0A>>> mailman/listinfo/freeb= sd-mips=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =0A>>>>>>>>>>>> =A0 =A0 = =A0 =A0 =0A> >>>> =A0 mailman/listinfo/free= bsd-mips>=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 To =0A> unsubscrib= e,=0A>>> send=0A>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 any mai= l to=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A>>>>> =A0 "freebsd-m= ips-unsubscribe@ freebsd.org=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =0A>= >>>>>>>>> =A0 =A0 >> unsubscribe@freebsd.org>"= =0A>>>>>>>>>>>>>>> =0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 --=0A>>>>>>>>>>>= >>>> =A0 =A0 =A0 =A0 =A0 WBW=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 ------= -=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 Rybalko =0A> Aleksandr=0A>>>>> =A0= >>>>>>>>>>> =A0 =A0 =A0 =A0 =0A> >=0A>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =0A>>> ______________________________= =0A>>>>> =A0 _________________=0A>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =0A> freeb= sd-mips@freebsd.org=0A>>> mailing list=0A>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 = =0A> https://lists.freebsd.org/=0A>>>>> =A0 mailman/listinfo/freebsd-mips= =0A>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 To unsubscribe, =0A> send any mail=0A>>>= to=0A>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =0A>>> "freebsd-mips-unsubscribe@=0A= >>>>> =A0 freebsd.org"=0A>>>>>>>>> =A0 =A0 ______________________________= =0A> _________________=0A>>>>>>>>> =A0 =A0 freebsd-mips@freebsd.org mailin= g list=0A>>>>>>>>> =A0 =A0 https://lists.freebsd.org/=0A>>> mailman/listin= fo/freebsd-mips=0A>>>>>>>>> =A0 =A0 To unsubscribe, send any mail to=0A>>>= >> =A0 "freebsd-mips-unsubscribe@ freebsd.org"=0A>>>>>>>> =A0 =A0 --=0A>>= >>>>>> =0A>>>>>>>> =A0 =A0 WBW=0A>>>>>>>> =A0 =A0 -------=0A>>>>>>>> =A0 = =A0 Rybalko Aleksandr =0A>>>>>>>> =0A>>>>>>>> =0A> From owner-freebsd-mips@freebsd.org Tue May 9 23:26:03 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 E0C8CD6650C for ; Tue, 9 May 2017 23:26:03 +0000 (UTC) (envelope-from mike@wolman.co.uk) Received: from avasout07.plus.net (avasout07.plus.net [84.93.230.235]) (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 418CC665 for ; Tue, 9 May 2017 23:26:02 +0000 (UTC) (envelope-from mike@wolman.co.uk) Received: from [192.168.3.50] ([80.229.66.11]) by avasout07 with smtp id JPRr1v0020EahWw01PRsMr; Wed, 10 May 2017 00:25:53 +0100 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.2 cv=HP2zLslv c=1 sm=1 tr=0 a=sNOkzuqjfbpz3c/qSHODpA==:117 a=sNOkzuqjfbpz3c/qSHODpA==:17 a=N659UExz7-8A:10 a=UmSUZ3ptAAAA:8 a=4I05h4SrAAAA:8 a=6I5d2MoRAAAA:8 a=arpVtLJQAAAA:8 a=NEAV23lmAAAA:8 a=jdP34snFAAAA:8 a=LJ5NkaWEAAAA:8 a=bt8Zh30PAAAA:8 a=0KY3GLwFWrtWV5VI7SoA:9 a=1XIAXagP2oc05ptR:21 a=Cpwv6WT0IUSji4ZL:21 a=pILNOxqGKmIA:10 a=FyGKTEvU35uc88vWBdgE:22 a=SXYKVUms7l59yVxtnTo9:22 a=IjZwj45LgO3ly-622nXo:22 a=86BuEF5rAmEUDcZwuOX_:22 a=jlphF6vWLdwq7oh3TaWq:22 a=eH83O4KjmLCfbRe1EArK:22 Subject: Re: onion omega2+ To: Mori Hiroki , Aleksandr Rybalko References: <694efc3a-e183-35a1-a0bf-9a9c0d708826@wolman.co.uk> <410144.69078.qm@web101716.mail.ssk.yahoo.co.jp> <128807.28836.qm@web101715.mail.ssk.yahoo.co.jp> <2d555385-8258-fd75-e4a3-a1e59bf86314@wolman.co.uk> <651873.78746.qm@web101702.mail.ssk.yahoo.co.jp> <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> Cc: "freebsd-mips@freebsd.org" From: Mike Wolman Message-ID: <4bc006f1-4b14-56ef-69b9-105e9068b6ac@wolman.co.uk> Date: Wed, 10 May 2017 00:25:49 +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: <369335.16286.qm@web101716.mail.ssk.yahoo.co.jp> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit 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: Tue, 09 May 2017 23:26:04 -0000 Ok will rebuild kernel with that added I have edited /src/sys/mips/mediatek/std.mediatek so that it contains: ... # UART support device uart device uart_ns8250 ... as /src/sys/mips/conf/MT7628_FDT includes this Will report back once new kernel built 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. > > ----- Original Message ----- >> From: Mike Wolman >> To: Mori Hiroki ; Aleksandr Rybalko >> Cc: "freebsd-mips@freebsd.org" >> Date: 2017/5/10, Wed 00:51 >> Subject: Re: onion omega2+ >> >> Ok I not sure what my next step or what Im looking for but here is some >> info about the serial stuff and readelf ouput >> >> [mike@f64-current ~/omega2/tftpboot]$ readelf -h kernel.MT7628_FDT >> ELF Header: >> Magic: 7f 45 4c 46 01 01 01 09 00 00 00 00 00 00 00 00 >> Class: ELF32 >> Data: 2's complement, little endian >> Version: 1 (current) >> OS/ABI: FreeBSD >> ABI Version: 0 >> Type: EXEC (Executable file) >> Machine: MIPS R3000 Big-Endian only >> Version: 0x1 >> Entry point address: 0x80001100 >> Start of program headers: 52 (bytes into file) >> Start of section headers: 5653480 (bytes into file) >> Flags: 0x50001001, mips32, o32, noreorder >> Size of this header: 52 (bytes) >> Size of program headers: 32 (bytes) >> Number of program headers: 6 >> Size of section headers: 40 (bytes) >> Number of section headers: 32 >> Section header string table index: 29 >> >> >> When booting into linux from flash: >> >> root@Omega-12BF:/dev# dmesg |grep tty >> [ 0.000000] Kernel command line: console=ttyS0,115200 >> rootfstype=squashfs,jffs2 >> [ 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.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 >> >> >> >> [mike@f64-current ~/omega2/src/sys/gnu/dts/mips]$ grep serial * >> LINKIT7688.dts: serial0 = &uart2; >> LINKIT7688.dts-orig: serial0 = &uart2; >> mt7620a.dtsi: serial0 = &uartlite; >> mt7620n.dtsi: serial0 = &uartlite; >> mt7621.dtsi: serial0 = &uartlite; >> mt7628an.dtsi: serial0 = &uartlite; <------ the included dtsi >> by OMEGA2.dtsi >> rt2880.dtsi: serial0 = &uartlite; >> rt3050.dtsi: serial0 = &uartlite; >> rt3352.dtsi: serial0 = &uartlite; >> rt3883.dtsi: serial0 = &uartlite; >> rt5350.dtsi: serial0 = &uartlite; >> >> >> [mike@f64-current ~/omega2/src/sys/gnu/dts/mips]$ grep tty * >> ArcherC20i.dts: bootargs = "console=ttyS0,115200"; >> CARAMBOLA.dts: bootargs = "console=ttyS0,115200"; >> CF-WR800N.dts: bootargs = "console=ttyS0,115200"; >> MicroWRT.dts: bootargs = "console=ttyS0,115200"; >> NA930.dts: bootargs = "console=ttyS1,57600"; >> OMEGA2.dtsi: bootargs = "console=ttyS0,115200"; <----- >> looks >> like all the others >> OY-0001.dts: bootargs = "console=ttyS0,115200"; >> PBR-M1.dts: bootargs = "console=ttyS0,115200"; >> SK-WB8.dts: bootargs = "console=ttyS0,57600"; >> ZBT-WG2626.dts: bootargs = "console=ttyS0,115200"; >> ZBT-WG3526.dts: bootargs = "console=ttyS0,115200"; >> mt7620a.dtsi: bootargs = "console=ttyS0,57600"; >> mt7620n.dtsi: bootargs = "console=ttyS0,57600"; >> mt7628an.dtsi: bootargs = "console=ttyS0,57600"; >> rt2880.dtsi: bootargs = "console=ttyS0,57600"; >> rt3050.dtsi: bootargs = "console=ttyS0,57600"; >> rt3352.dtsi: bootargs = "console=ttyS0,57600"; >> rt3883.dtsi: bootargs = "console=ttyS0,57600"; >> rt5350.dtsi: bootargs = "console=ttyS0,57600"; >> (i have removed some of the results from here as most files match) >> >> On 09/05/2017 15:07, Mori Hiroki wrote: >>> Hi. Mike >>> >>>> Starting kernel ... >>> I think success to boot. >>> >>> Next is Entry point miss or uart console issue. >>> >>> >>> Entry point can check on ELF kernel file by readelf command. >>> >>> Uart console issue is in dts file. >>> >>> ----- Original Message ----- >>> >>>> From: Mike Wolman >>>> To: Mori Hiroki ; Aleksandr Rybalko >> >>>> Cc: "freebsd-mips@freebsd.org" >> >>>> Date: 2017/5/9, Tue 22:42 >>>> Subject: Re: onion omega2+ >>>> >>>> >>>> Ok got somewhere with this >>>> >>>> >>>> USB_STORAGE: 1 Storage Device(s) found >>>> Omega2 # fatload usb 0:1 0x80800000 kernel.MT7628_FDT.uImage >>>> * >>>> * >>>> Reading file "kernel.MT7628_FDT.uImage" >>>> * >>>> ** >>>> ** >>>> ** >>>> ** >>>> ** >>>> ** >>>> ** >>>> ** >>>> ** >>>> ** >>>> ****** >>>> ****** >>>> >> ****************************************************************************************************************************************************************************************************************** >>>> **** >>>> * >>>> FAT: 5654824 Bytes read >>>> Omega2 # go >>>> Usage: >>>> go - start application at address 'addr' >>>> >>>> Omega2 # go 0x80001000 >>>> ## Starting application at 0x80001000 ... >>>> >>>> >>>> >>>> I have tried with: >>>> >>>> Omega2 # go 0x80001100 >>>> ## Starting application at 0x80001100 ... >>>> >>>> >>>> >>>> I have tried using the 0x80001000 for fatload as well: >>>> >>>> >>>> USB_STORAGE: 1 Storage Device(s) found >>>> Omega2 # help fatload >>>> fatload >> >>>> [bytes] >>>> - load binary file 'filename' from 'dev' on >>>> 'interface' >>>> to address 'addr' from dos filesystem >>>> >>>> Reading file "kernel.MT7628_FDT.uImage" >>>> * >>>> ** >>>> ** >>>> ** >>>> ** >>>> ** >>>> ** >>>> ** >>>> ** >>>> ** >>>> ** >>>> ****** >>>> ****** >>>> >> ****************************************************************************************************************************************************************************************************************** >>>> **** >>>> * >>>> FAT: 5654824 Bytes read >>>> Omega2 # go 0x80001100 >>>> ## Starting application at 0x80001100 ... >>>> >>>> >>>> >>>> However: >>>> >>>> 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: 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 ... >>>> >>>> >>>> But it doesnt go any further >>>> >>>> >>>> >>>> >>>> >>>> >>>> On 09/05/2017 14:20, Mori Hiroki wrote: >>>>> Hi. >>>>> >>>>> One more. >>>>> >>>>> Omega2 # fatload usb 0:1 0x80800000 kernel.MT7628_FDT.uImage >>>>> >>>>> Omega2 # bootm 0x80800000 >>>>> >>>>> ----- Original Message ----- >>>>>> From: Mike Wolman >>>>>> To: Mori Hiroki ; Aleksandr >> Rybalko >>>> >>>>>> Cc: "freebsd-mips@freebsd.org" >>>> >>>>>> Date: 2017/5/9, Tue 22:01 >>>>>> Subject: Re: onion omega2+ >>>>>> >>>>>> >>>>>> No joy >>>>>> >>>>>> Omega2 # fatload usb 0:1 0x80800000 kernel.MT7628_FDT.uImage >>>>>> * >>>>>> * >>>>>> Reading file "kernel.MT7628_FDT.uImage" >>>>>> * >>>>>> ** >>>>>> ** >>>>>> ** >>>>>> ** >>>>>> ** >>>>>> ** >>>>>> ** >>>>>> ** >>>>>> ** >>>>>> ** >>>>>> ****** >>>>>> ****** >>>>>> >> ****************************************************************************************************************************************************************************************************************** >>>>>> **** >>>>>> * >>>>>> FAT: 5654824 Bytes read >>>>>> Omega2 # bootm >>>>>> ## Booting image at 80100000 ... >>>>>> Bad Magic Number,CE6AE7C4 >>>>>> >>>>>> I am going to get a different usb memory stick and rebuild >> the kernel >>>>>> later on as i got an error when last writing to the usb >> memory key and >>>>>> its quite old now so just want to eliminate it from testing. >>>>>> >>>>>> >>>>>> On 09/05/2017 13:52, Mori Hiroki wrote: >>>>>>> Hi. >>>>>>> >>>>>>> This is my sample operation get image from network and >> boot. >>>>>>> RT3052 # tftpboot 0x80800000 >>>> Planex_MZK-WNH_kernel.kbin.oldlzma.uboot >>>>>>> RT3052 # bootm >>>>>>> >>>>>>> >>>>>>> I don't use USB support U-Boot. But I think fatload >> command >>>> argument is >>>>>>> temporary memory address not kernel address. >>>>>>> >>>>>>> How about this. >>>>>>> >>>>>>> Omega2 # fatload usb 0:1 0x80800000 >> kernel.MT7628_FDT.uImage >>>>>>> Omega2 # bootm >>>>>>> >>>>>>> ----- Original Message ----- >>>>>>>> From: Mike Wolman >>>>>>>> To: Aleksandr Rybalko ; Mori >> Hiroki >>>>>> >>>>>>>> Cc: "freebsd-mips@freebsd.org" >>>>>> >>>>>>>> Date: 2017/5/9, Tue 20:48 >>>>>>>> Subject: Re: onion omega2+ >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> Is it possible to exclude the compression of the >> kernel/image >>>> for >>>>>>> now eg: >>>>>>>> mkimage -A mips -C none -O linux -T kernel -a >> 0x80001000 -e >>>>>>> 0x80001100 -n "FreeBSD" -d >> kernel.MT7628_FDT >>>>>>> kernel.MT7628_FDT.uImage >>>>>>>> I have just tried the above but when booting I get >> a Bad >>>> Magic >>>>>>> Number. >>>>>>>> Omega2 # fatload usb 0:1 0x80001000 >> kernel.MT7628_FDT.uImage >>>>>>>> * >>>>>>>> * >>>>>>>> Reading file "kernel.MT7628_FDT.uImage" >>>>>>>> * >>>>>>>> ** >>>>>>>> ** >>>>>>>> ** >>>>>>>> ** >>>>>>>> ** >>>>>>>> ** >>>>>>>> ** >>>>>>>> ** >>>>>>>> ** >>>>>>>> ** >>>>>>>> ****** >>>>>>>> ****** >>>>>>>> >> ****************************************************************************************************************************************************************************************************************** >>>>>>>> **** >>>>>>>> * >>>>>>>> FAT: 5654824 Bytes read >>>>>>>> Omega2 # bootm 0x80001100 >>>>>>>> ## Booting image at 80001100 ... >>>>>>>> Bad Magic Number,1C994480 >>>>>>>> Omega2 # >>>>>>>> >>>>>>>> >>>>>>>> I have seen other examples starting a program >> directly with >>>> going to >>>>>>> the address but this didnt work either: >>>>>>>> Omega2 # go 0x80001100 >>>>>>>> ## Starting application at 0x80001100 ... >>>>>>>> >>>>>>>> omega freezes here. >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> On 09/05/2017 10:12, Aleksandr Rybalko wrote: >>>>>>>> >>>>>>>> Fix things in order :) >>>>>>> Currently you have problem with LZMA, serial port >> later. >>>>>>> So, find version of lzma used to build linux firmware, >> MIPS >>>> routers world >>>>>> use about 5 incompatible versions. One of them, you can find >> here: >>>>>> >> http://project.zrouter.org/hg/zrouter/file/9ac53695a44d/tools/oldlzma >>>>>>>>> >>>>>>>>> 2017-05-09 7:03 GMT+03:00 Mori Hiroki >>>>>> : >>>>>>>>> Hi Mike >>>>>>>>>> Could you show u-boot printenv command >> result. >>>>>>>>>> Thanks >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> ----- Original Message ----- >>>>>>>>>>> From: Mike Wolman >> >>>>>>>>>>> To: Mori Hiroki >> ; >>>>>> "freebsd-mips@freebsd.org" >> >>>>>>>>>>> Cc: >>>>>>>>>>> Date: 2017/5/9, Tue 10:30 >>>>>>>>>>> Subject: Re: onion omega2+ >>>>>>>>>>> >>>>>>>>>>> Hi Mori, >>>>>>>>>>> >>>>>>>>>>> When I compiled the world/kernel etc I >> used: >>>>>>>>>>> X_DTS_FILE=OMEGA2P.dts >> KERNCONF=MT7628_FDT >>>>>>>>>>> ../freebsd-wifi-build/build/ bin/build >> ralink >>>>>>> buildkernel >>>>>>>>>>> I checked the serial stuff was the same >> as the >>>>>>> other configs in: >>>>>>>>>>> https://github.com/freebsd/ >> freebsd-wifi-build/ >>>>>>>>>>> and they looked the same. >>>>>>>>>>> >>>>>>>>>>> The OMEGA2.dtsi file has: >>>>>>>>>>> >>>>>>>>>>> chosen { >>>>>>>>>>> bootargs = >>>>>> "console=ttyS0,115200"; >>>>>>>>>>> }; >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> And mt7628an.dtsi has: serial0 = >> &uartlite; >>>>>>>>>>> I dont think im getting as far as >> worrying about >>>>>>> the serial console at >>>>>>>>>>> the moment and need to get the kernel >> to >>>> uncompress >>>>>>> first. >>>>>>>>>>> Mike. >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> On 09/05/2017 02:20, Mori Hiroki wrote: >>>>>>>>>>>> Hi Mike >>>>>>>>>>>> >>>>>>>>>>>> In FreeBSD is use serial0 dts >> item to >>>> console. >>>>>>>>>>>> I think good to use this at >> start. >>>>>>>>>>>> freebsd/sys/gnu/dts/mips/ >> MT7628.dts >>>>>>>>>>>> ----- Original Message ----- >>>>>>>>>>>>> From: Mike Wolman >>>> >>>>>>>>>>>>> To: Mori Hiroki >>>> ; >>>>>>>>>>> "freebsd-mips@freebsd.org" >>>>>> >>>>>>>>>>>>> Cc: >>>>>>>>>>>>> Date: 2017/5/9, Tue 09:25 >>>>>>>>>>>>> Subject: Re: onion omega2+ >>>>>>>>>>>>> >>>>>>>>>>>>> Hi Mori, >>>>>>>>>>>>> >>>>>>>>>>>>> I grabbed the dts files >> from: >>>>>>>>>>>>> https://github.com/WereCatf/ >>>>>> source/tree/image/target/ linux/ramips/dts >>>>>>>>>>> https://github.com/WereCatf/ >>>> source/blob/image/target/ >>>>>> linux/ramips/dts/OMEGA2P.dts >>>>>>>>>>> https://github.com/WereCatf/ >>>> source/blob/image/target/ >>>>>> linux/ramips/dts/OMEGA2.dtsi >>>>>>>>>>>>> If this is of any use from >> the default >>>>>>> linux install on the flash: >>>>>>>>>>>>> root@Omega-12BF:/proc# cat >> /proc/mtd >>>>>>>>>>>>> dev: size erasesize >> name >>>>>>>>>>>>> mtd0: 00030000 00010000 >>>> "u-boot" >>>>>>>>>>>>> mtd1: 00010000 00010000 >>>> "u-boot-env" >>>>>>>>>>>>> mtd2: 00010000 00010000 >>>> "factory" >>>>>>>>>>>>> mtd3: 01fb0000 00010000 >>>> "firmware" >>>>>>>>>>>>> mtd4: 00148842 00010000 >>>> "kernel" >>>>>>>>>>>>> mtd5: 01e677be 00010000 >>>> "rootfs" >>>>>>>>>>>>> mtd6: 01950000 00010000 >>>> "rootfs_data" >>>>>>>>>>>>> btw after posting i spotted >> and error >>>> in >>>>>>> what i did with: >>>>>>>>>>>>> mkimage -A mips -O linux -T >> kernel -C >>>> lzma >>>>>>> \ >>>>>>>>>>>>> -a 0x80001000 -e >> 0x80001100 \ >>>>>>>>>>>>> -n "FreeBSD" >> -d >>>>>>> kernel.MT7628_FDT.lzma >>>>>>>>>>>>> >> kernel.MT7628_FDT.ulzma.uImage >>>>>>>>>>>>> I have redone this using the >> correct >>>>>>> compressed kernel ie: >>>>>>>>>>>>> mkimage -A mips -O linux -T >> kernel -C >>>> lzma >>>>>>> \ >>>>>>>>>>>>> -a 0x80001000 -e >> 0x80001100 \ >>>>>>>>>>>>> -n "FreeBSD" >> -d >>>>>>> kernel.MT7628_FDT.ulzma >>>>>>>>>>>>> >> kernel.MT7628_FDT.ulzma.uImage >>>>>>>>>>>>> >>>>>>>>>>>>> But this didnt work. >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> On 09/05/2017 01:17, Mori >> Hiroki >>>> wrote: >>>>>>>>>>>>>> Hi. >>>>>>>>>>>>>> >>>>>>>>>>>>>> I think if U-Boot work >> memory >>>> make >>>>>>> broken then >>>>>>>>>>>>>> Uncompressing Kernel >> Image is NG. >>>>>>>>>>>>>> Some ARM U-Boot is use >> top >>>> address >>>>>>> in work memory. >>>>>>>>>>>>>> If this case your >> kernel start >>>>>>> address to move to >>>>>>>>>>>>>> after work memory. But >> I never >>>> see >>>>>>> in MIPS. >>>>>>>>>>>>>> And What is set >> FDT_DTS_FILE in >>>>>>> your kernel configuration ? >>>>>>>>>>>>>> ----- Original Message >> ----- >>>>>>>>>>>>>>> From: Mike Wolman >>>>>> >>>>>>>>>>>>>>> To: >> freebsd-mips@freebsd.org >>>>>>>>>>>>>>> Cc: >>>>>>>>>>>>>>> Date: 2017/5/9, Tue >> 07:48 >>>>>>>>>>>>>>> Subject: Re: onion >> omega2+ >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> More info in case >> anyone can >>>>>>> point me in the right direction. >>>>>>>>>>>>>>> I have found: >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >> https://forum.openwrt.org/ >>>>>> viewtopic.php?id=53865 >>>>>>>>>>>>>>> I have tried >> changing how >>>> lzma >>>>>>> compresses the kernel by >>>>>>>>>>> adding -d20 to >>>>>>>>>>>>>>> the build scripts >> eg: >>>>>>>>>>>>>>> /usr/local/bin/lzma >> e >>>>>>>>>>>>>>> >>>>>>>>>>> /home/mike/omega2/src/../root/ >>>>>> mipsel_ap/boot/kernel.MT7628_ FDT/kernel >>>>>>>>>>>>> \ >>>>>>>>>>>>>>> >> /home/mike/omega2/src/../ >>>>>> tftpboot/kernel.MT7628_FDT. lzma >>>>>>> -d20 >>>>>>>>>>>>>>> This did not work. >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> Looking at the >> onion omega >>>> conf >>>>>>> I see that it uses mkuzip and >>>>>>>>>>> not lzma >>>>>>>>>>>>>>> with the following >> settings: >>>>>>>>>>>>>>> >>>> X_FSIMAGE_CMD="mkuzip" >>>>>>>>>>>>>>> >> X_FSIMAGE_ARGS="-L -d -s >>>> 65536 >>>>>>> -v" >>>>>>>>>>>>>>> >>>> X_FSIMAGE_SUFFIX=".ulzma" >>>>>>>>>>>>>>> So tried the >> following: >>>>>>>>>>>>>>> mkuzip -L -d -s >> 65536 -v -o >>>>>>> kernel.MT7628_FDT.ulzma >>>>>>>>>>> kernel.MT7628_FDT >>>>>>>>>>>>>>> mkimage -A mips -O >> linux -T >>>>>>> kernel -C lzma \ >>>>>>>>>>>>>>> -a 0x80001000 >> -e >>>> 0x80001100 >>>>>>> \ >>>>>>>>>>>>>>> -n >> "FreeBSD" -d >>>>>>> kernel.MT7628_FDT.lzma >>>>>>>>>>>>>>> >>>> kernel.MT7628_FDT.ulzma.uImage >>>>>>>>>>>>>>> But this did not >> work either. >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> On 08/05/2017 >> 19:41, >>>> Aleksandr >>>>>>> Rybalko wrote: >>>>>>>>>>>>>>>> Hi Mike! >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> I see you >> have no >>>> "OK" >>>>>>> after >>>>>>>>>>> "Uncompressing Kernel >>>>>>>>>>>>> Image >>>>>>>>>>>>>>> ...", so >>>>>>>>>>>>>>>> first point >> uboot >>>>>>> decompressor fail. >>>>>>>>>>>>>>>> Why fail? >> Because you >>>> have >>>>>>> wrong base address in image: >>>>>>>>>>>>>>>> Load >> Address: >>>> fffffff2 >>>>>>>>>>>>>>>> Entry >> Point: >>>> fffffff2 >>>>>>>>>>>>>>>> MIPS32 >> machines have >>>> RAM >>>>>>> mapped to 0x80000000 address, >>>>>>>>>>> so adding >>>>>>>>>>>>> its >>>>>>>>>>>>>>>> size, you >> will get max >>>>>>> address (if 16MB, it will be >>>>>>>>>>> 0x81000000), >>>>>>>>>>>>> but >>>>>>>>>>>>>>>> you uboot >> image was >>>>>>> created with 0xfffffff2. >>>>>>>>>>>>>>>> Even more, >> unpacked >>>> kernel >>>>>>> expects it will be called at >>>>>>>>>>>>> 0x80001100. so >>>>>>>>>>>>>>>> if you have >> ELF kernel >>>>>>> (file with ELF header, like >>>>>>>>>>> every >>>>>>>>>>>>> executable) >>>>>>>>>>>>>>>> that file >> have to be >>>>>>> loaded at (0x80001100 - >>>>>>>>>>> ELF_HEADER_SIZE). >>>>>>>>>>>>>>>> In most cases >> it will >>>> be >>>>>>> 0x80001100 - 0x100 = >>>>>>>>>>> 0x80001000. But >>>>>>>>>>>>> sometime >>>>>>>>>>>>>>>> (I did not >> found why) >>>> it >>>>>>> can be 0x20, you can find it >>>>>>>>>>> by looking >>>>>>>>>>>>> at >>>>>>>>>>>>>>>> .text section >> in >>>> readelf >>>>>>> -S. >>>>>>>>>>>>>>>> So if you >> have kernel >>>> with >>>>>>> entry point 0x80001100 and >>>>>>>>>>> .text >>>>>>>>>>>>> segment >>>>>>>>>>>>>>>> offset 0x100, >> you have >>>> to >>>>>>> create uboot image with load >>>>>>>>>>> address >>>>>>>>>>>>>>>> 0x80001000 >> and entry >>>> point >>>>>>> 0x80001100. >>>>>>>>>>>>>>>> If that step >> successful >>>>>>> you will get: >>>>>>>>>>>>>>>> >> /Uncompressing Kernel >>>>>>> Image/ ... OK >>>>>>>>>>>>>>>> Starting >> kernel ... >>>>>>>>>>>>>>>> Last line >> mean, uboot >>>> did >>>>>>> jump into kernel code. >>>>>>>>>>>>>>>> Good luck. >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> 2017-05-07 >> 18:20 >>>> GMT+03:00 >>>>>>> Mike Wolman >>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>> >: >>>>>>>>>>>>>>>> Hi, >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> I am >> trying to get >>>>>>> FreeBSD working on this board - >>>>>>>>>>> I think I >>>>>>>>>>>>> am >>>>>>>>>>>>>>>> almost >> there in >>>>>>> getting it working but need some >>>>>>>>>>> help please. >>>>>>>>>>>>>>>> I have >> followed >>>>>>> instructions from the >>>>>>>>>>> freebsd-wifi-build and >>>>>>>>>>>>>>>> *think* I >> have got >>>>>>> everything correct - I am trying >>>>>>>>>>> to do >>>>>>>>>>>>> this on >>>>>>>>>>>>>>>> a CURRENT >> setup: >>>>>>>>>>>>>>>> FreeBSD >>>>>>> f64-current.mw.office 12.0-CURRENT >> FreeBSD >>>>>>>>>>>>> 12.0-CURRENT #0 >>>>>>>>>>>>>>>> r317887: >> Sun May 7 >>>>>>> 03:20:34 UTC 2017 >>>>>>>>>>>>>>>> >>>>>>>>>>>>> mike@f64-current.mw.office:/ >>>>>> usr/obj/usr/src/sys/GENERIC- NODEBUG amd64 >>>>>>>>>>>>>>>> $ cat >>>>>>> ~/.freebsd-wifi-build- settings.cfg >>>>>>>>>>>>>>>> >>>> X_SKIP_MORE_STUFF=YES >>>>>>>>>>>>>>>> >>>>>>> X_EXTRA_SRC_CONF=~/omega2/src. conf >>>>>>>>>>>>>>>> $ cat >>>>>>> ~/omega2/src.conf >>>>>>>>>>>>>>>> >> WITHOUT_CLANG=YES >>>>>>>>>>>>>>>> >>>> WITHOUT_CLANG_FULL=YES >>>>>>>>>>>>>>>> get dts >> files from >>>>>>> thread >>>>>>>>>>>>>>>> >>>>>>>>>>> http://community.onion.io/ >>>> topic/1099/openwrt-on-the- >>>>>> omega-2/8 >>>>>>>>>>>>>>>> >>>>>>>>>>>>> >> >>>>> topic/1099/openwrt-on-the- omega-2/8> >>>>>>>>>>>>>>>> cd >>>>>>> ~/omega2/src/sys/gnu/dts/mips >>>>>>>>>>>>>>>> fetch >>>>>>>>>>>>>>>> >>>>>>>>>>> https://raw.githubusercontent. >>>> com/WereCatf/source/image/ >>>>>> target/linux/ramips/dts/ OMEGA2.dtsi >>>>>>>>>>>>>>>> >>>>>>>>>>> >>>>> WereCatf/source/image/target/ >> linux/ramips/dts/OMEGA2.dtsi> >>>>>>>>>>>>>>>> fetch >>>>>>>>>>>>>>>> >>>>>>>>>>> https://raw.githubusercontent. >>>> com/WereCatf/source/image/ >>>>>> target/linux/ramips/dts/ OMEGA2.dts >>>>>>>>>>>>>>>> >>>>>>>>>>> >>>>> WereCatf/source/image/target/ linux/ramips/dts/OMEGA2.dts> >>>>>>>>>>>>>>>> fetch >>>>>>>>>>>>>>>> >>>>>>>>>>> https://raw.githubusercontent. >>>> com/WereCatf/source/image/ >>>>>> target/linux/ramips/dts/ OMEGA2P.dts >>>>>>>>>>>>>>>> >>>>>>>>>>> >>>>> WereCatf/source/image/target/ >> linux/ramips/dts/OMEGA2P.dts> >>>>>>>>>>>>>>>> >>>> X_DTS_FILE=OMEGA2P.dts >>>>>>> KERNCONF=MT7628_FDT >>>>>>>>>>>>>>>> >>>>>>> ../freebsd-wifi-build/build/ bin/build >> ralink >>>>>>>>>>> buildworld >>>>>>>>>>>>>>>> >>>> X_DTS_FILE=OMEGA2P.dts >>>>>>> KERNCONF=MT7628_FDT >>>>>>>>>>>>>>>> >>>>>>> ../freebsd-wifi-build/build/ bin/build >> ralink >>>>>>>>>>> buildkernel >>>>>>>>>>>>>>>> >>>> X_DTS_FILE=OMEGA2P.dts >>>>>>> KERNCONF=MT7628_FDT >>>>>>>>>>>>>>>> >>>>>>> ../freebsd-wifi-build/build/ bin/build >> ralink >>>>>>>>>>> installworld >>>>>>>>>>>>>>>> >>>> X_DTS_FILE=OMEGA2P.dts >>>>>>> KERNCONF=MT7628_FDT >>>>>>>>>>>>>>>> >>>>>>> ../freebsd-wifi-build/build/ bin/build >> ralink >>>>>>>>>>> installkernel >>>>>>>>>>>>>>>> >>>> X_DTS_FILE=OMEGA2P.dts >>>>>>> KERNCONF=MT7628_FDT >>>>>>>>>>>>>>>> >>>>>>> ../freebsd-wifi-build/build/ bin/build >> ralink >>>>>>>>>>> distribution >>>>>>>>>>>>>>>> >>>> X_DTS_FILE=OMEGA2P.dts >>>>>>> KERNCONF=MT7628_FDT >>>>>>>>>>>>>>>> >>>>>>> ../freebsd-wifi-build/build/ bin/build >> ralink >>>>>>>>>>> mfsroot >>>>>>>>>>>>>>>> >>>> X_DTS_FILE=OMEGA2P.dts >>>>>>> KERNCONF=MT7628_FDT >>>>>>>>>>>>>>>> >>>>>>> ../freebsd-wifi-build/build/ bin/build >> ralink >>>>>>>>>>> fsimage >>>>>>>>>>>>>>>> >>>> X_DTS_FILE=OMEGA2P.dts >>>>>>> KERNCONF=MT7628_FDT >>>>>>>>>>>>>>>> >>>>>>> ../freebsd-wifi-build/build/ bin/build >> ralink >>>> uboot >>>>>>>>>>>>>>>> Create >> flash: >>>>>>>>>>>>>>>> >>>>>>> X_FLASH=kernel.MT7628_FDT. lzma.flash >>>>>>>>>>>>>>>> dd >> if=/dev/zero >>>> bs=$(( >>>>>>> 0x200000 )) count=1 >>>>>>>>>>> of=${X_FLASH} >>>>>>>>>>>>>>>> dd >>>>>>> if=kernel.MT7628_FDT.lzma. uImage >> of=${X_FLASH} >>>>>>>>>>>>> conv=notrunc >>>>>>>>>>>>>>>> dd if= >>>>>>> mfsroot-ralink.img.lzma >> >> ${X_FLASH} >>>>>>>>>>>>>>>> $ readelf >> -h >>>>>>> kernel.MT7628_FDT | grep Entry >>>>>>>>>>>>>>>> Entry >> point >>>>>>> address: 0x80001100 >>>>>>>>>>>>>>>> Now on >> the omega >>>> over >>>>>>> serial - I didnt get the >>>>>>>>>>> network >>>>>>>>>>>>> expansion >>>>>>>>>>>>>>>> doc thing >> so am >>>> doing >>>>>>> stuff with usb rather than >>>>>>>>>>> tftp >>>>>>>>>>>>>>>> I am not >> 100% sure >>>>>>> about the 0x80001100 and the >>>>>>>>>>> fatload and >>>>>>>>>>>>> have >>>>>>>>>>>>>>>> tried >> this >>>>>>>>>>>>>>>> Omega2 # >> fatload >>>> usb >>>>>>> 0:1 0x80001100 >>>>>>>>>>>>> >> /kernel.MT7628_FDT.lzma.flash >>>>>>>>>>>>>>>> * >>>>>>>>>>>>>>>> * >>>>>>>>>>>>>>>> Reading >> file >>>>>>>>>>> "/kernel.MT7628_FDT.lzma. >> flash" >>>>>>>>>>>>>>>> * >>>>>>>>>>>>>>>> ** >>>>>>>>>>>>>>>> ** >>>>>>>>>>>>>>>> ** >>>>>>>>>>>>>>>> ****** >>>>>>>>>>>>>>>> >>>>>>>>>>> ****************************** >>>>>> ****************************** ****************************** >>>>>> ****************************** ********************* >>>>>>>>>>>>>>>> ****** >>>>>>>>>>>>>>>> * >>>>>>>>>>>>>>>> FAT: >> 2108463 Bytes >>>>>>> read >>>>>>>>>>>>>>>> Omega2 # >> bootm >>>>>>> 0x80001100 >>>>>>>>>>>>>>>> ## >> Booting image at >>>>>>> 80001100 ... >>>>>>>>>>>>>>>> Image >> Name: >>>>>>> FreeBSD >>>>>>>>>>>>>>>> Image >> Type: >>>> MIPS >>>>>>> Linux Kernel Image (lzma >>>>>>>>>>> compressed) >>>>>>>>>>>>>>>> Data >> Size: >>>>>>> 1365122 Bytes = 1.3 MB >>>>>>>>>>>>>>>> Load >> Address: >>>>>>> fffffff2 >>>>>>>>>>>>>>>> Entry >> Point: >>>>>>> fffffff2 >>>>>>>>>>>>>>>> >> Verifying >>>> Checksum >>>>>>> ... OK >>>>>>>>>>>>>>>> >> Uncompressing >>>>>>> Kernel Image ... >>>>>>>>>>>>>>>> At this >> point >>>> nothing >>>>>>> happens and console hangs - >>>>>>>>>>> note in >>>>>>>>>>>>>>>> >> OMEGA2.dtsithe >>>> console >>>>>>> is set to ttyS0: >>>>>>>>>>>>>>>> bootargs >> = >>>>>>> "console=ttyS0,115200"; >>>>>>>>>>>>>>>> I have >> also tried >>>> with >>>>>>> just kernel.MT7628_FDT and >>>>>>>>>>>>>>>> >>>> kernel.MT7628_FDT.lzma >>>>>>> but both fail: >>>>>>>>>>>>>>>> Omega2 # >> fatload >>>> usb >>>>>>> 0:1 0x80001100 >>>>>>>>>>>>> >> /kernel.MT7628_FDT.lzma.uImage >>>>>>>>>>>>>>>> * >>>>>>>>>>>>>>>> * >>>>>>>>>>>>>>>> Reading >> file >>>>>>>>>>> "/kernel.MT7628_FDT.lzma. >> uImage" >>>>>>>>>>>>>>>> * >>>>>>>>>>>>>>>> ** >>>>>>>>>>>>>>>> ** >>>>>>>>>>>>>>>> ****** >>>>>>>>>>>>>>>> >>>>>>>>>>> ****************************** >>>>>> ****************************** ****************************** >>>>>> ****************************** ****** >>>>>>>>>>>>>>>> >> ********** >>>>>>>>>>>>>>>> * >>>>>>>>>>>>>>>> FAT: >> 1365186 Bytes >>>>>>> read >>>>>>>>>>>>>>>> Omega2 # >> bootm >>>>>>> 0x80001100 >>>>>>>>>>>>>>>> ## >> Booting image at >>>>>>> 80001100 ... >>>>>>>>>>>>>>>> Image >> Name: >>>>>>> FreeBSD >>>>>>>>>>>>>>>> Image >> Type: >>>> MIPS >>>>>>> Linux Kernel Image (lzma >>>>>>>>>>> compressed) >>>>>>>>>>>>>>>> Data >> Size: >>>>>>> 1365122 Bytes = 1.3 MB >>>>>>>>>>>>>>>> Load >> Address: >>>>>>> fffffff2 >>>>>>>>>>>>>>>> Entry >> Point: >>>>>>> fffffff2 >>>>>>>>>>>>>>>> >> Verifying >>>> Checksum >>>>>>> ... OK >>>>>>>>>>>>>>>> >> Uncompressing >>>>>>> Kernel Image ... >>>>>>>>>>>>>>>> A few >> comments on >>>> the >>>>>>> hardware for anyone who wants >>>>>>>>>>> to get >>>>>>>>>>>>> one: >>>>>>>>>>>>>>>> Get the >> expansion >>>> dock >>>>>>> with serial port access - >>>>>>>>>>> the power >>>>>>>>>>>>> dock >>>>>>>>>>>>>>>> does not >> provide >>>>>>> serial access - i think it is >>>>>>>>>>> possible to >>>>>>>>>>>>> use an >>>>>>>>>>>>>>>> ftdi ttl >> serial >>>>>>> chip/cable but have not tried. >>>>>>>>>>>>>>>> Stupidly >> I forgot >>>> this >>>>>>> only has wifi access so you >>>>>>>>>>> are not >>>>>>>>>>>>> able to >>>>>>>>>>>>>>>> tftp boot >> this >>>> without >>>>>>> getting the ethernet network >>>>>>>>>>> expansion >>>>>>>>>>>>> but >>>>>>>>>>>>>>>> loading >> stuff up >>>> from >>>>>>> a usb memory stick is seem >>>>>>>>>>> fine from >>>>>>>>>>>>> u-boot. >>>>>>>>>>>>>>>> I do not >> think that >>>> it >>>>>>> is possible to boot from the >>>>>>>>>>> SD card >>>>>>>>>>>>> on the >>>>>>>>>>>>>>>> Omega2+ - >> which is >>>> a >>>>>>> shame. >>>>>>>>>>>>>>>> Thanks >> for reading, >>>>>>>>>>>>>>>> Mike. >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>> ______________________________ >> _________________ >>>>>>>>>>>>>>>> >>>> freebsd-mips@freebsd.org >>>>>>>>>>>>> >> >>> org>mailing >>>>>>>>>>>>>>> list >>>>>>>>>>>>>>>> >>>>>>>>>>> https://lists.freebsd.org/ >>>> mailman/listinfo/freebsd-mips >>>>>>>>>>>>>>>> >>>>>>>>>>>>> >> >>>>> mailman/listinfo/freebsd-mips> >>>>>>>>>>>>>>>> To >> unsubscribe, >>>> send >>>>>>> any mail to >>>>>>>>>>>>>>>> >>>>>> "freebsd-mips-unsubscribe@ freebsd.org >>>>>>>>>>>>>>>> >>>>>>>>>>> >>> unsubscribe@freebsd.org>" >>>>>>>>>>>>>>>> -- >>>>>>>>>>>>>>>> WBW >>>>>>>>>>>>>>>> ------- >>>>>>>>>>>>>>>> Rybalko >> Aleksandr >>>>>> >>>>>>>>>>>> >> > >>>>>>>>>>>>>>> >>>> ______________________________ >>>>>> _________________ >>>>>>>>>>>>>>> >> 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 >>>>>>>>> >>>>>>>>> From owner-freebsd-mips@freebsd.org Tue May 9 23:37:37 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 E9F97D6693F for ; Tue, 9 May 2017 23:37:37 +0000 (UTC) (envelope-from mike@wolman.co.uk) Received: from avasout07.plus.net (avasout07.plus.net [84.93.230.235]) (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 1FD83102A for ; Tue, 9 May 2017 23:37:36 +0000 (UTC) (envelope-from mike@wolman.co.uk) Received: from [192.168.3.50] ([80.229.66.11]) by avasout07 with smtp id JPdW1v0090EahWw01PdZVb; Wed, 10 May 2017 00:37:34 +0100 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.2 cv=HP2zLslv c=1 sm=1 tr=0 a=sNOkzuqjfbpz3c/qSHODpA==:117 a=sNOkzuqjfbpz3c/qSHODpA==:17 a=N659UExz7-8A:10 a=UmSUZ3ptAAAA:8 a=4I05h4SrAAAA:8 a=6I5d2MoRAAAA:8 a=arpVtLJQAAAA:8 a=NEAV23lmAAAA:8 a=jdP34snFAAAA:8 a=LJ5NkaWEAAAA:8 a=bt8Zh30PAAAA:8 a=MCU7YYBzWHTWvXrMlfcA:9 a=ATgIXIxwI8VI7qel:21 a=FT6gq4M7ym08zorn:21 a=pILNOxqGKmIA:10 a=FyGKTEvU35uc88vWBdgE:22 a=SXYKVUms7l59yVxtnTo9:22 a=IjZwj45LgO3ly-622nXo:22 a=86BuEF5rAmEUDcZwuOX_:22 a=jlphF6vWLdwq7oh3TaWq:22 a=eH83O4KjmLCfbRe1EArK:22 Subject: Re: onion omega2+ To: Mori Hiroki , Aleksandr Rybalko References: <694efc3a-e183-35a1-a0bf-9a9c0d708826@wolman.co.uk> <410144.69078.qm@web101716.mail.ssk.yahoo.co.jp> <128807.28836.qm@web101715.mail.ssk.yahoo.co.jp> <2d555385-8258-fd75-e4a3-a1e59bf86314@wolman.co.uk> <651873.78746.qm@web101702.mail.ssk.yahoo.co.jp> <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> Cc: "freebsd-mips@freebsd.org" From: Mike Wolman Message-ID: <41ac4963-5a75-b3a1-d13b-1425f9d8918c@wolman.co.uk> Date: Wed, 10 May 2017 00:37:29 +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: <369335.16286.qm@web101716.mail.ssk.yahoo.co.jp> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit 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: Tue, 09 May 2017 23:37:38 -0000 mmm i think the uart_ns8250 device is already being included - the start of the build: [mike@f64-current ~/omega2/src]$ X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT ../freebsd-wifi-build/build/bin/build ralink buildkernel Checking - uboot-mkimage-2010.12 .. OK. Checking - lzma .. OK. Checking - perl5 .. OK. Checking - rsync .. OK. Checking - mips-xtoolchain-gcc .. OK. *** Configuration file : ralink *** Base configuration : mipsel_ap *** Platform : mipsel_ap Build list: buildkernel *** Target : buildkernel + echo 'MAKEOBJDIRPREFIX: /home/mike/omega2/src/../obj/mipsel_ap/' MAKEOBJDIRPREFIX: /home/mike/omega2/src/../obj/mipsel_ap/ + mkdir -p /home/mike/omega2/src/../obj/mipsel_ap/ + mkdir -p /home/mike/omega2/src/../root/mipsel_ap + X_LOCAL_TOOL_DIRS='' + [ -n tools/bsdbox/ ] + X_LOCAL_TOOL_DIRS='LOCAL_TOOL_DIRS="tools/bsdbox/"' + echo '' + echo '' + echo 'KERN_DEBUGDIR=""' + [ YES '=' YES ] + echo 'WITHOUT_KERBEROS="YES"' + echo 'WITHOUT_KERBEROS_SUPPORT="YES"' + echo 'WITHOUT_NIS="YES"' + echo 'WITHOUT_NDIS="YES"' + echo 'WITHOUT_IPX="YES"' + echo 'WITHOUT_ATM="YES"' + echo 'WITHOUT_ICONV="YES"' + echo 'WITHOUT_CLANG_IS_CC="YES"' + echo 'WITHOUT_CASPER="YES"' + echo 'WITHOUT_CAPSICUM="YES"' + echo 'WITHOUT_TESTS="YES"' + [ YES '=' YES ] + echo 'MALLOC_PRODUCTION=' + [ YES '=' YES ] + echo 'WITHOUT_GAMES="YES"' + echo 'WITHOUT_DOCS="YES"' + echo 'WITHOUT_MAN="YES"' + echo 'WITHOUT_INFO="YES"' + echo 'WITHOUT_LOCALES="YES"' + echo 'WITHOUT_NLS="YES"' + echo 'WITHOUT_EXAMPLES="YES"' + echo 'WITHOUT_ZFS="YES"' + echo 'WITHOUT_RCS="YES"' + test -e /home/mike/omega2/src.conf + cat /home/mike/omega2/src.conf + X_CP_OPTS=-f + X_FDT_DTS_FILE='' + [ xOMEGA2P.dts '!=' x ] + X_FDT_DTS_FILE='FDT_DTS_FILE=OMEGA2P.dts' + [ -n buildkernel ] + echo $'*** Stage\t\t: buildkernel' *** Stage : buildkernel + [ buildkernel '=' installworld ] + [ buildkernel '=' installkernel ] + [ buildkernel '=' buildenv ] + [ buildkernel '=' buildenvvars ] + X_TARGET_CPUTYPE='TARGET_CPUTYPE=mips32' + [ buildkernel '=' buildkernel -o buildkernel '=' installkernel ] + [ '' '=' yes ] + X_DESTDIR_LINE='' + [ buildkernel '=' installworld -o buildkernel '=' installkernel -o buildkernel '=' distribution ] + [ '' '!=' '' ] + env 'MAKEOBJDIRPREFIX=/home/mike/omega2/src/../obj/mipsel_ap/' make -s 'NO_CLEAN=1' -j2 'DB_FROM_SRC=1' 'TARGET=mips' 'TARGET_ARCH=mipsel' 'TARGET_CPUTYPE=mips32' 'KERNCONF=MT7628_FDT' 'KODIR=/boot/kernel.MT7628_FDT/' 'KMODDIR=/boot/kernel.MT7628_FDT/' '__MAKE_CONF=/home/mike/omega2/src/../root/mipsel_ap/../make.conf.mipsel_ap' 'SRCCONF=/home/mike/omega2/src/../root/mipsel_ap/../src.conf.mipsel_ap' 'LOCAL_DIRS=tools/tools/ath tools/tools/net80211/wlanstats tools/tools/net80211/wlanwatch tools/bsdbox' 'FDT_DTS_FILE=OMEGA2P.dts' 'LOCAL_TOOL_DIRS="tools/bsdbox/"' buildkernel -------------------------------------------------------------- >>> Kernel build for MT7628_FDT started on Wed May 10 00:35:43 UTC 2017 -------------------------------------------------------------- ===> MT7628_FDT -------------------------------------------------------------- >>> stage 1: configuring the kernel -------------------------------------------------------------- WARNING: duplicate option `DEV_UART_NS8250' encountered. WARNING: duplicate device `uart_ns8250' encountered. Kernel build directory is /home/mike/omega2/src/../obj/mipsel_ap//mips.mipsel/usr/home/mike/omega2/src/sys/MT7628_FDT Don't forget to do ``make cleandepend && make depend'' -------------------------------------------------------------- >>> stage 2.2: rebuilding the object tree -------------------------------------------------------------- -------------------------------------------------------------- >>> stage 2.3: build tools -------------------------------------------------------------- . 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. > > ----- Original Message ----- >> From: Mike Wolman >> To: Mori Hiroki ; Aleksandr Rybalko >> Cc: "freebsd-mips@freebsd.org" >> Date: 2017/5/10, Wed 00:51 >> Subject: Re: onion omega2+ >> >> Ok I not sure what my next step or what Im looking for but here is some >> info about the serial stuff and readelf ouput >> >> [mike@f64-current ~/omega2/tftpboot]$ readelf -h kernel.MT7628_FDT >> ELF Header: >> Magic: 7f 45 4c 46 01 01 01 09 00 00 00 00 00 00 00 00 >> Class: ELF32 >> Data: 2's complement, little endian >> Version: 1 (current) >> OS/ABI: FreeBSD >> ABI Version: 0 >> Type: EXEC (Executable file) >> Machine: MIPS R3000 Big-Endian only >> Version: 0x1 >> Entry point address: 0x80001100 >> Start of program headers: 52 (bytes into file) >> Start of section headers: 5653480 (bytes into file) >> Flags: 0x50001001, mips32, o32, noreorder >> Size of this header: 52 (bytes) >> Size of program headers: 32 (bytes) >> Number of program headers: 6 >> Size of section headers: 40 (bytes) >> Number of section headers: 32 >> Section header string table index: 29 >> >> >> When booting into linux from flash: >> >> root@Omega-12BF:/dev# dmesg |grep tty >> [ 0.000000] Kernel command line: console=ttyS0,115200 >> rootfstype=squashfs,jffs2 >> [ 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.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 >> >> >> >> [mike@f64-current ~/omega2/src/sys/gnu/dts/mips]$ grep serial * >> LINKIT7688.dts: serial0 = &uart2; >> LINKIT7688.dts-orig: serial0 = &uart2; >> mt7620a.dtsi: serial0 = &uartlite; >> mt7620n.dtsi: serial0 = &uartlite; >> mt7621.dtsi: serial0 = &uartlite; >> mt7628an.dtsi: serial0 = &uartlite; <------ the included dtsi >> by OMEGA2.dtsi >> rt2880.dtsi: serial0 = &uartlite; >> rt3050.dtsi: serial0 = &uartlite; >> rt3352.dtsi: serial0 = &uartlite; >> rt3883.dtsi: serial0 = &uartlite; >> rt5350.dtsi: serial0 = &uartlite; >> >> >> [mike@f64-current ~/omega2/src/sys/gnu/dts/mips]$ grep tty * >> ArcherC20i.dts: bootargs = "console=ttyS0,115200"; >> CARAMBOLA.dts: bootargs = "console=ttyS0,115200"; >> CF-WR800N.dts: bootargs = "console=ttyS0,115200"; >> MicroWRT.dts: bootargs = "console=ttyS0,115200"; >> NA930.dts: bootargs = "console=ttyS1,57600"; >> OMEGA2.dtsi: bootargs = "console=ttyS0,115200"; <----- >> looks >> like all the others >> OY-0001.dts: bootargs = "console=ttyS0,115200"; >> PBR-M1.dts: bootargs = "console=ttyS0,115200"; >> SK-WB8.dts: bootargs = "console=ttyS0,57600"; >> ZBT-WG2626.dts: bootargs = "console=ttyS0,115200"; >> ZBT-WG3526.dts: bootargs = "console=ttyS0,115200"; >> mt7620a.dtsi: bootargs = "console=ttyS0,57600"; >> mt7620n.dtsi: bootargs = "console=ttyS0,57600"; >> mt7628an.dtsi: bootargs = "console=ttyS0,57600"; >> rt2880.dtsi: bootargs = "console=ttyS0,57600"; >> rt3050.dtsi: bootargs = "console=ttyS0,57600"; >> rt3352.dtsi: bootargs = "console=ttyS0,57600"; >> rt3883.dtsi: bootargs = "console=ttyS0,57600"; >> rt5350.dtsi: bootargs = "console=ttyS0,57600"; >> (i have removed some of the results from here as most files match) >> >> On 09/05/2017 15:07, Mori Hiroki wrote: >>> Hi. Mike >>> >>>> Starting kernel ... >>> I think success to boot. >>> >>> Next is Entry point miss or uart console issue. >>> >>> >>> Entry point can check on ELF kernel file by readelf command. >>> >>> Uart console issue is in dts file. >>> >>> ----- Original Message ----- >>> >>>> From: Mike Wolman >>>> To: Mori Hiroki ; Aleksandr Rybalko >> >>>> Cc: "freebsd-mips@freebsd.org" >> >>>> Date: 2017/5/9, Tue 22:42 >>>> Subject: Re: onion omega2+ >>>> >>>> >>>> Ok got somewhere with this >>>> >>>> >>>> USB_STORAGE: 1 Storage Device(s) found >>>> Omega2 # fatload usb 0:1 0x80800000 kernel.MT7628_FDT.uImage >>>> * >>>> * >>>> Reading file "kernel.MT7628_FDT.uImage" >>>> * >>>> ** >>>> ** >>>> ** >>>> ** >>>> ** >>>> ** >>>> ** >>>> ** >>>> ** >>>> ** >>>> ****** >>>> ****** >>>> >> ****************************************************************************************************************************************************************************************************************** >>>> **** >>>> * >>>> FAT: 5654824 Bytes read >>>> Omega2 # go >>>> Usage: >>>> go - start application at address 'addr' >>>> >>>> Omega2 # go 0x80001000 >>>> ## Starting application at 0x80001000 ... >>>> >>>> >>>> >>>> I have tried with: >>>> >>>> Omega2 # go 0x80001100 >>>> ## Starting application at 0x80001100 ... >>>> >>>> >>>> >>>> I have tried using the 0x80001000 for fatload as well: >>>> >>>> >>>> USB_STORAGE: 1 Storage Device(s) found >>>> Omega2 # help fatload >>>> fatload >> >>>> [bytes] >>>> - load binary file 'filename' from 'dev' on >>>> 'interface' >>>> to address 'addr' from dos filesystem >>>> >>>> Reading file "kernel.MT7628_FDT.uImage" >>>> * >>>> ** >>>> ** >>>> ** >>>> ** >>>> ** >>>> ** >>>> ** >>>> ** >>>> ** >>>> ** >>>> ****** >>>> ****** >>>> >> ****************************************************************************************************************************************************************************************************************** >>>> **** >>>> * >>>> FAT: 5654824 Bytes read >>>> Omega2 # go 0x80001100 >>>> ## Starting application at 0x80001100 ... >>>> >>>> >>>> >>>> However: >>>> >>>> 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: 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 ... >>>> >>>> >>>> But it doesnt go any further >>>> >>>> >>>> >>>> >>>> >>>> >>>> On 09/05/2017 14:20, Mori Hiroki wrote: >>>>> Hi. >>>>> >>>>> One more. >>>>> >>>>> Omega2 # fatload usb 0:1 0x80800000 kernel.MT7628_FDT.uImage >>>>> >>>>> Omega2 # bootm 0x80800000 >>>>> >>>>> ----- Original Message ----- >>>>>> From: Mike Wolman >>>>>> To: Mori Hiroki ; Aleksandr >> Rybalko >>>> >>>>>> Cc: "freebsd-mips@freebsd.org" >>>> >>>>>> Date: 2017/5/9, Tue 22:01 >>>>>> Subject: Re: onion omega2+ >>>>>> >>>>>> >>>>>> No joy >>>>>> >>>>>> Omega2 # fatload usb 0:1 0x80800000 kernel.MT7628_FDT.uImage >>>>>> * >>>>>> * >>>>>> Reading file "kernel.MT7628_FDT.uImage" >>>>>> * >>>>>> ** >>>>>> ** >>>>>> ** >>>>>> ** >>>>>> ** >>>>>> ** >>>>>> ** >>>>>> ** >>>>>> ** >>>>>> ** >>>>>> ****** >>>>>> ****** >>>>>> >> ****************************************************************************************************************************************************************************************************************** >>>>>> **** >>>>>> * >>>>>> FAT: 5654824 Bytes read >>>>>> Omega2 # bootm >>>>>> ## Booting image at 80100000 ... >>>>>> Bad Magic Number,CE6AE7C4 >>>>>> >>>>>> I am going to get a different usb memory stick and rebuild >> the kernel >>>>>> later on as i got an error when last writing to the usb >> memory key and >>>>>> its quite old now so just want to eliminate it from testing. >>>>>> >>>>>> >>>>>> On 09/05/2017 13:52, Mori Hiroki wrote: >>>>>>> Hi. >>>>>>> >>>>>>> This is my sample operation get image from network and >> boot. >>>>>>> RT3052 # tftpboot 0x80800000 >>>> Planex_MZK-WNH_kernel.kbin.oldlzma.uboot >>>>>>> RT3052 # bootm >>>>>>> >>>>>>> >>>>>>> I don't use USB support U-Boot. But I think fatload >> command >>>> argument is >>>>>>> temporary memory address not kernel address. >>>>>>> >>>>>>> How about this. >>>>>>> >>>>>>> Omega2 # fatload usb 0:1 0x80800000 >> kernel.MT7628_FDT.uImage >>>>>>> Omega2 # bootm >>>>>>> >>>>>>> ----- Original Message ----- >>>>>>>> From: Mike Wolman >>>>>>>> To: Aleksandr Rybalko ; Mori >> Hiroki >>>>>> >>>>>>>> Cc: "freebsd-mips@freebsd.org" >>>>>> >>>>>>>> Date: 2017/5/9, Tue 20:48 >>>>>>>> Subject: Re: onion omega2+ >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> Is it possible to exclude the compression of the >> kernel/image >>>> for >>>>>>> now eg: >>>>>>>> mkimage -A mips -C none -O linux -T kernel -a >> 0x80001000 -e >>>>>>> 0x80001100 -n "FreeBSD" -d >> kernel.MT7628_FDT >>>>>>> kernel.MT7628_FDT.uImage >>>>>>>> I have just tried the above but when booting I get >> a Bad >>>> Magic >>>>>>> Number. >>>>>>>> Omega2 # fatload usb 0:1 0x80001000 >> kernel.MT7628_FDT.uImage >>>>>>>> * >>>>>>>> * >>>>>>>> Reading file "kernel.MT7628_FDT.uImage" >>>>>>>> * >>>>>>>> ** >>>>>>>> ** >>>>>>>> ** >>>>>>>> ** >>>>>>>> ** >>>>>>>> ** >>>>>>>> ** >>>>>>>> ** >>>>>>>> ** >>>>>>>> ** >>>>>>>> ****** >>>>>>>> ****** >>>>>>>> >> ****************************************************************************************************************************************************************************************************************** >>>>>>>> **** >>>>>>>> * >>>>>>>> FAT: 5654824 Bytes read >>>>>>>> Omega2 # bootm 0x80001100 >>>>>>>> ## Booting image at 80001100 ... >>>>>>>> Bad Magic Number,1C994480 >>>>>>>> Omega2 # >>>>>>>> >>>>>>>> >>>>>>>> I have seen other examples starting a program >> directly with >>>> going to >>>>>>> the address but this didnt work either: >>>>>>>> Omega2 # go 0x80001100 >>>>>>>> ## Starting application at 0x80001100 ... >>>>>>>> >>>>>>>> omega freezes here. >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> On 09/05/2017 10:12, Aleksandr Rybalko wrote: >>>>>>>> >>>>>>>> Fix things in order :) >>>>>>> Currently you have problem with LZMA, serial port >> later. >>>>>>> So, find version of lzma used to build linux firmware, >> MIPS >>>> routers world >>>>>> use about 5 incompatible versions. One of them, you can find >> here: >>>>>> >> http://project.zrouter.org/hg/zrouter/file/9ac53695a44d/tools/oldlzma >>>>>>>>> >>>>>>>>> 2017-05-09 7:03 GMT+03:00 Mori Hiroki >>>>>> : >>>>>>>>> Hi Mike >>>>>>>>>> Could you show u-boot printenv command >> result. >>>>>>>>>> Thanks >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> ----- Original Message ----- >>>>>>>>>>> From: Mike Wolman >> >>>>>>>>>>> To: Mori Hiroki >> ; >>>>>> "freebsd-mips@freebsd.org" >> >>>>>>>>>>> Cc: >>>>>>>>>>> Date: 2017/5/9, Tue 10:30 >>>>>>>>>>> Subject: Re: onion omega2+ >>>>>>>>>>> >>>>>>>>>>> Hi Mori, >>>>>>>>>>> >>>>>>>>>>> When I compiled the world/kernel etc I >> used: >>>>>>>>>>> X_DTS_FILE=OMEGA2P.dts >> KERNCONF=MT7628_FDT >>>>>>>>>>> ../freebsd-wifi-build/build/ bin/build >> ralink >>>>>>> buildkernel >>>>>>>>>>> I checked the serial stuff was the same >> as the >>>>>>> other configs in: >>>>>>>>>>> https://github.com/freebsd/ >> freebsd-wifi-build/ >>>>>>>>>>> and they looked the same. >>>>>>>>>>> >>>>>>>>>>> The OMEGA2.dtsi file has: >>>>>>>>>>> >>>>>>>>>>> chosen { >>>>>>>>>>> bootargs = >>>>>> "console=ttyS0,115200"; >>>>>>>>>>> }; >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> And mt7628an.dtsi has: serial0 = >> &uartlite; >>>>>>>>>>> I dont think im getting as far as >> worrying about >>>>>>> the serial console at >>>>>>>>>>> the moment and need to get the kernel >> to >>>> uncompress >>>>>>> first. >>>>>>>>>>> Mike. >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> On 09/05/2017 02:20, Mori Hiroki wrote: >>>>>>>>>>>> Hi Mike >>>>>>>>>>>> >>>>>>>>>>>> In FreeBSD is use serial0 dts >> item to >>>> console. >>>>>>>>>>>> I think good to use this at >> start. >>>>>>>>>>>> freebsd/sys/gnu/dts/mips/ >> MT7628.dts >>>>>>>>>>>> ----- Original Message ----- >>>>>>>>>>>>> From: Mike Wolman >>>> >>>>>>>>>>>>> To: Mori Hiroki >>>> ; >>>>>>>>>>> "freebsd-mips@freebsd.org" >>>>>> >>>>>>>>>>>>> Cc: >>>>>>>>>>>>> Date: 2017/5/9, Tue 09:25 >>>>>>>>>>>>> Subject: Re: onion omega2+ >>>>>>>>>>>>> >>>>>>>>>>>>> Hi Mori, >>>>>>>>>>>>> >>>>>>>>>>>>> I grabbed the dts files >> from: >>>>>>>>>>>>> https://github.com/WereCatf/ >>>>>> source/tree/image/target/ linux/ramips/dts >>>>>>>>>>> https://github.com/WereCatf/ >>>> source/blob/image/target/ >>>>>> linux/ramips/dts/OMEGA2P.dts >>>>>>>>>>> https://github.com/WereCatf/ >>>> source/blob/image/target/ >>>>>> linux/ramips/dts/OMEGA2.dtsi >>>>>>>>>>>>> If this is of any use from >> the default >>>>>>> linux install on the flash: >>>>>>>>>>>>> root@Omega-12BF:/proc# cat >> /proc/mtd >>>>>>>>>>>>> dev: size erasesize >> name >>>>>>>>>>>>> mtd0: 00030000 00010000 >>>> "u-boot" >>>>>>>>>>>>> mtd1: 00010000 00010000 >>>> "u-boot-env" >>>>>>>>>>>>> mtd2: 00010000 00010000 >>>> "factory" >>>>>>>>>>>>> mtd3: 01fb0000 00010000 >>>> "firmware" >>>>>>>>>>>>> mtd4: 00148842 00010000 >>>> "kernel" >>>>>>>>>>>>> mtd5: 01e677be 00010000 >>>> "rootfs" >>>>>>>>>>>>> mtd6: 01950000 00010000 >>>> "rootfs_data" >>>>>>>>>>>>> btw after posting i spotted >> and error >>>> in >>>>>>> what i did with: >>>>>>>>>>>>> mkimage -A mips -O linux -T >> kernel -C >>>> lzma >>>>>>> \ >>>>>>>>>>>>> -a 0x80001000 -e >> 0x80001100 \ >>>>>>>>>>>>> -n "FreeBSD" >> -d >>>>>>> kernel.MT7628_FDT.lzma >>>>>>>>>>>>> >> kernel.MT7628_FDT.ulzma.uImage >>>>>>>>>>>>> I have redone this using the >> correct >>>>>>> compressed kernel ie: >>>>>>>>>>>>> mkimage -A mips -O linux -T >> kernel -C >>>> lzma >>>>>>> \ >>>>>>>>>>>>> -a 0x80001000 -e >> 0x80001100 \ >>>>>>>>>>>>> -n "FreeBSD" >> -d >>>>>>> kernel.MT7628_FDT.ulzma >>>>>>>>>>>>> >> kernel.MT7628_FDT.ulzma.uImage >>>>>>>>>>>>> >>>>>>>>>>>>> But this didnt work. >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> On 09/05/2017 01:17, Mori >> Hiroki >>>> wrote: >>>>>>>>>>>>>> Hi. >>>>>>>>>>>>>> >>>>>>>>>>>>>> I think if U-Boot work >> memory >>>> make >>>>>>> broken then >>>>>>>>>>>>>> Uncompressing Kernel >> Image is NG. >>>>>>>>>>>>>> Some ARM U-Boot is use >> top >>>> address >>>>>>> in work memory. >>>>>>>>>>>>>> If this case your >> kernel start >>>>>>> address to move to >>>>>>>>>>>>>> after work memory. But >> I never >>>> see >>>>>>> in MIPS. >>>>>>>>>>>>>> And What is set >> FDT_DTS_FILE in >>>>>>> your kernel configuration ? >>>>>>>>>>>>>> ----- Original Message >> ----- >>>>>>>>>>>>>>> From: Mike Wolman >>>>>> >>>>>>>>>>>>>>> To: >> freebsd-mips@freebsd.org >>>>>>>>>>>>>>> Cc: >>>>>>>>>>>>>>> Date: 2017/5/9, Tue >> 07:48 >>>>>>>>>>>>>>> Subject: Re: onion >> omega2+ >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> More info in case >> anyone can >>>>>>> point me in the right direction. >>>>>>>>>>>>>>> I have found: >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >> https://forum.openwrt.org/ >>>>>> viewtopic.php?id=53865 >>>>>>>>>>>>>>> I have tried >> changing how >>>> lzma >>>>>>> compresses the kernel by >>>>>>>>>>> adding -d20 to >>>>>>>>>>>>>>> the build scripts >> eg: >>>>>>>>>>>>>>> /usr/local/bin/lzma >> e >>>>>>>>>>>>>>> >>>>>>>>>>> /home/mike/omega2/src/../root/ >>>>>> mipsel_ap/boot/kernel.MT7628_ FDT/kernel >>>>>>>>>>>>> \ >>>>>>>>>>>>>>> >> /home/mike/omega2/src/../ >>>>>> tftpboot/kernel.MT7628_FDT. lzma >>>>>>> -d20 >>>>>>>>>>>>>>> This did not work. >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> Looking at the >> onion omega >>>> conf >>>>>>> I see that it uses mkuzip and >>>>>>>>>>> not lzma >>>>>>>>>>>>>>> with the following >> settings: >>>>>>>>>>>>>>> >>>> X_FSIMAGE_CMD="mkuzip" >>>>>>>>>>>>>>> >> X_FSIMAGE_ARGS="-L -d -s >>>> 65536 >>>>>>> -v" >>>>>>>>>>>>>>> >>>> X_FSIMAGE_SUFFIX=".ulzma" >>>>>>>>>>>>>>> So tried the >> following: >>>>>>>>>>>>>>> mkuzip -L -d -s >> 65536 -v -o >>>>>>> kernel.MT7628_FDT.ulzma >>>>>>>>>>> kernel.MT7628_FDT >>>>>>>>>>>>>>> mkimage -A mips -O >> linux -T >>>>>>> kernel -C lzma \ >>>>>>>>>>>>>>> -a 0x80001000 >> -e >>>> 0x80001100 >>>>>>> \ >>>>>>>>>>>>>>> -n >> "FreeBSD" -d >>>>>>> kernel.MT7628_FDT.lzma >>>>>>>>>>>>>>> >>>> kernel.MT7628_FDT.ulzma.uImage >>>>>>>>>>>>>>> But this did not >> work either. >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> On 08/05/2017 >> 19:41, >>>> Aleksandr >>>>>>> Rybalko wrote: >>>>>>>>>>>>>>>> Hi Mike! >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> I see you >> have no >>>> "OK" >>>>>>> after >>>>>>>>>>> "Uncompressing Kernel >>>>>>>>>>>>> Image >>>>>>>>>>>>>>> ...", so >>>>>>>>>>>>>>>> first point >> uboot >>>>>>> decompressor fail. >>>>>>>>>>>>>>>> Why fail? >> Because you >>>> have >>>>>>> wrong base address in image: >>>>>>>>>>>>>>>> Load >> Address: >>>> fffffff2 >>>>>>>>>>>>>>>> Entry >> Point: >>>> fffffff2 >>>>>>>>>>>>>>>> MIPS32 >> machines have >>>> RAM >>>>>>> mapped to 0x80000000 address, >>>>>>>>>>> so adding >>>>>>>>>>>>> its >>>>>>>>>>>>>>>> size, you >> will get max >>>>>>> address (if 16MB, it will be >>>>>>>>>>> 0x81000000), >>>>>>>>>>>>> but >>>>>>>>>>>>>>>> you uboot >> image was >>>>>>> created with 0xfffffff2. >>>>>>>>>>>>>>>> Even more, >> unpacked >>>> kernel >>>>>>> expects it will be called at >>>>>>>>>>>>> 0x80001100. so >>>>>>>>>>>>>>>> if you have >> ELF kernel >>>>>>> (file with ELF header, like >>>>>>>>>>> every >>>>>>>>>>>>> executable) >>>>>>>>>>>>>>>> that file >> have to be >>>>>>> loaded at (0x80001100 - >>>>>>>>>>> ELF_HEADER_SIZE). >>>>>>>>>>>>>>>> In most cases >> it will >>>> be >>>>>>> 0x80001100 - 0x100 = >>>>>>>>>>> 0x80001000. But >>>>>>>>>>>>> sometime >>>>>>>>>>>>>>>> (I did not >> found why) >>>> it >>>>>>> can be 0x20, you can find it >>>>>>>>>>> by looking >>>>>>>>>>>>> at >>>>>>>>>>>>>>>> .text section >> in >>>> readelf >>>>>>> -S. >>>>>>>>>>>>>>>> So if you >> have kernel >>>> with >>>>>>> entry point 0x80001100 and >>>>>>>>>>> .text >>>>>>>>>>>>> segment >>>>>>>>>>>>>>>> offset 0x100, >> you have >>>> to >>>>>>> create uboot image with load >>>>>>>>>>> address >>>>>>>>>>>>>>>> 0x80001000 >> and entry >>>> point >>>>>>> 0x80001100. >>>>>>>>>>>>>>>> If that step >> successful >>>>>>> you will get: >>>>>>>>>>>>>>>> >> /Uncompressing Kernel >>>>>>> Image/ ... OK >>>>>>>>>>>>>>>> Starting >> kernel ... >>>>>>>>>>>>>>>> Last line >> mean, uboot >>>> did >>>>>>> jump into kernel code. >>>>>>>>>>>>>>>> Good luck. >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> 2017-05-07 >> 18:20 >>>> GMT+03:00 >>>>>>> Mike Wolman >>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>> >: >>>>>>>>>>>>>>>> Hi, >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> I am >> trying to get >>>>>>> FreeBSD working on this board - >>>>>>>>>>> I think I >>>>>>>>>>>>> am >>>>>>>>>>>>>>>> almost >> there in >>>>>>> getting it working but need some >>>>>>>>>>> help please. >>>>>>>>>>>>>>>> I have >> followed >>>>>>> instructions from the >>>>>>>>>>> freebsd-wifi-build and >>>>>>>>>>>>>>>> *think* I >> have got >>>>>>> everything correct - I am trying >>>>>>>>>>> to do >>>>>>>>>>>>> this on >>>>>>>>>>>>>>>> a CURRENT >> setup: >>>>>>>>>>>>>>>> FreeBSD >>>>>>> f64-current.mw.office 12.0-CURRENT >> FreeBSD >>>>>>>>>>>>> 12.0-CURRENT #0 >>>>>>>>>>>>>>>> r317887: >> Sun May 7 >>>>>>> 03:20:34 UTC 2017 >>>>>>>>>>>>>>>> >>>>>>>>>>>>> mike@f64-current.mw.office:/ >>>>>> usr/obj/usr/src/sys/GENERIC- NODEBUG amd64 >>>>>>>>>>>>>>>> $ cat >>>>>>> ~/.freebsd-wifi-build- settings.cfg >>>>>>>>>>>>>>>> >>>> X_SKIP_MORE_STUFF=YES >>>>>>>>>>>>>>>> >>>>>>> X_EXTRA_SRC_CONF=~/omega2/src. conf >>>>>>>>>>>>>>>> $ cat >>>>>>> ~/omega2/src.conf >>>>>>>>>>>>>>>> >> WITHOUT_CLANG=YES >>>>>>>>>>>>>>>> >>>> WITHOUT_CLANG_FULL=YES >>>>>>>>>>>>>>>> get dts >> files from >>>>>>> thread >>>>>>>>>>>>>>>> >>>>>>>>>>> http://community.onion.io/ >>>> topic/1099/openwrt-on-the- >>>>>> omega-2/8 >>>>>>>>>>>>>>>> >>>>>>>>>>>>> >> >>>>> topic/1099/openwrt-on-the- omega-2/8> >>>>>>>>>>>>>>>> cd >>>>>>> ~/omega2/src/sys/gnu/dts/mips >>>>>>>>>>>>>>>> fetch >>>>>>>>>>>>>>>> >>>>>>>>>>> https://raw.githubusercontent. >>>> com/WereCatf/source/image/ >>>>>> target/linux/ramips/dts/ OMEGA2.dtsi >>>>>>>>>>>>>>>> >>>>>>>>>>> >>>>> WereCatf/source/image/target/ >> linux/ramips/dts/OMEGA2.dtsi> >>>>>>>>>>>>>>>> fetch >>>>>>>>>>>>>>>> >>>>>>>>>>> https://raw.githubusercontent. >>>> com/WereCatf/source/image/ >>>>>> target/linux/ramips/dts/ OMEGA2.dts >>>>>>>>>>>>>>>> >>>>>>>>>>> >>>>> WereCatf/source/image/target/ linux/ramips/dts/OMEGA2.dts> >>>>>>>>>>>>>>>> fetch >>>>>>>>>>>>>>>> >>>>>>>>>>> https://raw.githubusercontent. >>>> com/WereCatf/source/image/ >>>>>> target/linux/ramips/dts/ OMEGA2P.dts >>>>>>>>>>>>>>>> >>>>>>>>>>> >>>>> WereCatf/source/image/target/ >> linux/ramips/dts/OMEGA2P.dts> >>>>>>>>>>>>>>>> >>>> X_DTS_FILE=OMEGA2P.dts >>>>>>> KERNCONF=MT7628_FDT >>>>>>>>>>>>>>>> >>>>>>> ../freebsd-wifi-build/build/ bin/build >> ralink >>>>>>>>>>> buildworld >>>>>>>>>>>>>>>> >>>> X_DTS_FILE=OMEGA2P.dts >>>>>>> KERNCONF=MT7628_FDT >>>>>>>>>>>>>>>> >>>>>>> ../freebsd-wifi-build/build/ bin/build >> ralink >>>>>>>>>>> buildkernel >>>>>>>>>>>>>>>> >>>> X_DTS_FILE=OMEGA2P.dts >>>>>>> KERNCONF=MT7628_FDT >>>>>>>>>>>>>>>> >>>>>>> ../freebsd-wifi-build/build/ bin/build >> ralink >>>>>>>>>>> installworld >>>>>>>>>>>>>>>> >>>> X_DTS_FILE=OMEGA2P.dts >>>>>>> KERNCONF=MT7628_FDT >>>>>>>>>>>>>>>> >>>>>>> ../freebsd-wifi-build/build/ bin/build >> ralink >>>>>>>>>>> installkernel >>>>>>>>>>>>>>>> >>>> X_DTS_FILE=OMEGA2P.dts >>>>>>> KERNCONF=MT7628_FDT >>>>>>>>>>>>>>>> >>>>>>> ../freebsd-wifi-build/build/ bin/build >> ralink >>>>>>>>>>> distribution >>>>>>>>>>>>>>>> >>>> X_DTS_FILE=OMEGA2P.dts >>>>>>> KERNCONF=MT7628_FDT >>>>>>>>>>>>>>>> >>>>>>> ../freebsd-wifi-build/build/ bin/build >> ralink >>>>>>>>>>> mfsroot >>>>>>>>>>>>>>>> >>>> X_DTS_FILE=OMEGA2P.dts >>>>>>> KERNCONF=MT7628_FDT >>>>>>>>>>>>>>>> >>>>>>> ../freebsd-wifi-build/build/ bin/build >> ralink >>>>>>>>>>> fsimage >>>>>>>>>>>>>>>> >>>> X_DTS_FILE=OMEGA2P.dts >>>>>>> KERNCONF=MT7628_FDT >>>>>>>>>>>>>>>> >>>>>>> ../freebsd-wifi-build/build/ bin/build >> ralink >>>> uboot >>>>>>>>>>>>>>>> Create >> flash: >>>>>>>>>>>>>>>> >>>>>>> X_FLASH=kernel.MT7628_FDT. lzma.flash >>>>>>>>>>>>>>>> dd >> if=/dev/zero >>>> bs=$(( >>>>>>> 0x200000 )) count=1 >>>>>>>>>>> of=${X_FLASH} >>>>>>>>>>>>>>>> dd >>>>>>> if=kernel.MT7628_FDT.lzma. uImage >> of=${X_FLASH} >>>>>>>>>>>>> conv=notrunc >>>>>>>>>>>>>>>> dd if= >>>>>>> mfsroot-ralink.img.lzma >> >> ${X_FLASH} >>>>>>>>>>>>>>>> $ readelf >> -h >>>>>>> kernel.MT7628_FDT | grep Entry >>>>>>>>>>>>>>>> Entry >> point >>>>>>> address: 0x80001100 >>>>>>>>>>>>>>>> Now on >> the omega >>>> over >>>>>>> serial - I didnt get the >>>>>>>>>>> network >>>>>>>>>>>>> expansion >>>>>>>>>>>>>>>> doc thing >> so am >>>> doing >>>>>>> stuff with usb rather than >>>>>>>>>>> tftp >>>>>>>>>>>>>>>> I am not >> 100% sure >>>>>>> about the 0x80001100 and the >>>>>>>>>>> fatload and >>>>>>>>>>>>> have >>>>>>>>>>>>>>>> tried >> this >>>>>>>>>>>>>>>> Omega2 # >> fatload >>>> usb >>>>>>> 0:1 0x80001100 >>>>>>>>>>>>> >> /kernel.MT7628_FDT.lzma.flash >>>>>>>>>>>>>>>> * >>>>>>>>>>>>>>>> * >>>>>>>>>>>>>>>> Reading >> file >>>>>>>>>>> "/kernel.MT7628_FDT.lzma. >> flash" >>>>>>>>>>>>>>>> * >>>>>>>>>>>>>>>> ** >>>>>>>>>>>>>>>> ** >>>>>>>>>>>>>>>> ** >>>>>>>>>>>>>>>> ****** >>>>>>>>>>>>>>>> >>>>>>>>>>> ****************************** >>>>>> ****************************** ****************************** >>>>>> ****************************** ********************* >>>>>>>>>>>>>>>> ****** >>>>>>>>>>>>>>>> * >>>>>>>>>>>>>>>> FAT: >> 2108463 Bytes >>>>>>> read >>>>>>>>>>>>>>>> Omega2 # >> bootm >>>>>>> 0x80001100 >>>>>>>>>>>>>>>> ## >> Booting image at >>>>>>> 80001100 ... >>>>>>>>>>>>>>>> Image >> Name: >>>>>>> FreeBSD >>>>>>>>>>>>>>>> Image >> Type: >>>> MIPS >>>>>>> Linux Kernel Image (lzma >>>>>>>>>>> compressed) >>>>>>>>>>>>>>>> Data >> Size: >>>>>>> 1365122 Bytes = 1.3 MB >>>>>>>>>>>>>>>> Load >> Address: >>>>>>> fffffff2 >>>>>>>>>>>>>>>> Entry >> Point: >>>>>>> fffffff2 >>>>>>>>>>>>>>>> >> Verifying >>>> Checksum >>>>>>> ... OK >>>>>>>>>>>>>>>> >> Uncompressing >>>>>>> Kernel Image ... >>>>>>>>>>>>>>>> At this >> point >>>> nothing >>>>>>> happens and console hangs - >>>>>>>>>>> note in >>>>>>>>>>>>>>>> >> OMEGA2.dtsithe >>>> console >>>>>>> is set to ttyS0: >>>>>>>>>>>>>>>> bootargs >> = >>>>>>> "console=ttyS0,115200"; >>>>>>>>>>>>>>>> I have >> also tried >>>> with >>>>>>> just kernel.MT7628_FDT and >>>>>>>>>>>>>>>> >>>> kernel.MT7628_FDT.lzma >>>>>>> but both fail: >>>>>>>>>>>>>>>> Omega2 # >> fatload >>>> usb >>>>>>> 0:1 0x80001100 >>>>>>>>>>>>> >> /kernel.MT7628_FDT.lzma.uImage >>>>>>>>>>>>>>>> * >>>>>>>>>>>>>>>> * >>>>>>>>>>>>>>>> Reading >> file >>>>>>>>>>> "/kernel.MT7628_FDT.lzma. >> uImage" >>>>>>>>>>>>>>>> * >>>>>>>>>>>>>>>> ** >>>>>>>>>>>>>>>> ** >>>>>>>>>>>>>>>> ****** >>>>>>>>>>>>>>>> >>>>>>>>>>> ****************************** >>>>>> ****************************** ****************************** >>>>>> ****************************** ****** >>>>>>>>>>>>>>>> >> ********** >>>>>>>>>>>>>>>> * >>>>>>>>>>>>>>>> FAT: >> 1365186 Bytes >>>>>>> read >>>>>>>>>>>>>>>> Omega2 # >> bootm >>>>>>> 0x80001100 >>>>>>>>>>>>>>>> ## >> Booting image at >>>>>>> 80001100 ... >>>>>>>>>>>>>>>> Image >> Name: >>>>>>> FreeBSD >>>>>>>>>>>>>>>> Image >> Type: >>>> MIPS >>>>>>> Linux Kernel Image (lzma >>>>>>>>>>> compressed) >>>>>>>>>>>>>>>> Data >> Size: >>>>>>> 1365122 Bytes = 1.3 MB >>>>>>>>>>>>>>>> Load >> Address: >>>>>>> fffffff2 >>>>>>>>>>>>>>>> Entry >> Point: >>>>>>> fffffff2 >>>>>>>>>>>>>>>> >> Verifying >>>> Checksum >>>>>>> ... OK >>>>>>>>>>>>>>>> >> Uncompressing >>>>>>> Kernel Image ... >>>>>>>>>>>>>>>> A few >> comments on >>>> the >>>>>>> hardware for anyone who wants >>>>>>>>>>> to get >>>>>>>>>>>>> one: >>>>>>>>>>>>>>>> Get the >> expansion >>>> dock >>>>>>> with serial port access - >>>>>>>>>>> the power >>>>>>>>>>>>> dock >>>>>>>>>>>>>>>> does not >> provide >>>>>>> serial access - i think it is >>>>>>>>>>> possible to >>>>>>>>>>>>> use an >>>>>>>>>>>>>>>> ftdi ttl >> serial >>>>>>> chip/cable but have not tried. >>>>>>>>>>>>>>>> Stupidly >> I forgot >>>> this >>>>>>> only has wifi access so you >>>>>>>>>>> are not >>>>>>>>>>>>> able to >>>>>>>>>>>>>>>> tftp boot >> this >>>> without >>>>>>> getting the ethernet network >>>>>>>>>>> expansion >>>>>>>>>>>>> but >>>>>>>>>>>>>>>> loading >> stuff up >>>> from >>>>>>> a usb memory stick is seem >>>>>>>>>>> fine from >>>>>>>>>>>>> u-boot. >>>>>>>>>>>>>>>> I do not >> think that >>>> it >>>>>>> is possible to boot from the >>>>>>>>>>> SD card >>>>>>>>>>>>> on the >>>>>>>>>>>>>>>> Omega2+ - >> which is >>>> a >>>>>>> shame. >>>>>>>>>>>>>>>> Thanks >> for reading, >>>>>>>>>>>>>>>> Mike. >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>> ______________________________ >> _________________ >>>>>>>>>>>>>>>> >>>> freebsd-mips@freebsd.org >>>>>>>>>>>>> >> >>> org>mailing >>>>>>>>>>>>>>> list >>>>>>>>>>>>>>>> >>>>>>>>>>> https://lists.freebsd.org/ >>>> mailman/listinfo/freebsd-mips >>>>>>>>>>>>>>>> >>>>>>>>>>>>> >> >>>>> mailman/listinfo/freebsd-mips> >>>>>>>>>>>>>>>> To >> unsubscribe, >>>> send >>>>>>> any mail to >>>>>>>>>>>>>>>> >>>>>> "freebsd-mips-unsubscribe@ freebsd.org >>>>>>>>>>>>>>>> >>>>>>>>>>> >>> unsubscribe@freebsd.org>" >>>>>>>>>>>>>>>> -- >>>>>>>>>>>>>>>> WBW >>>>>>>>>>>>>>>> ------- >>>>>>>>>>>>>>>> Rybalko >> Aleksandr >>>>>> >>>>>>>>>>>> >> > >>>>>>>>>>>>>>> >>>> ______________________________ >>>>>> _________________ >>>>>>>>>>>>>>> >> 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 >>>>>>>>> >>>>>>>>> From owner-freebsd-mips@freebsd.org Wed May 10 00:01:10 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 B2BE7D66FDF for ; Wed, 10 May 2017 00:01:10 +0000 (UTC) (envelope-from mike@wolman.co.uk) Received: from avasout07.plus.net (avasout07.plus.net [84.93.230.235]) (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 1487E1CFC for ; Wed, 10 May 2017 00:01:09 +0000 (UTC) (envelope-from mike@wolman.co.uk) Received: from [192.168.3.50] ([80.229.66.11]) by avasout07 with smtp id JQ151v0050EahWw01Q16rB; Wed, 10 May 2017 01:01:07 +0100 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.2 cv=HP2zLslv c=1 sm=1 tr=0 a=sNOkzuqjfbpz3c/qSHODpA==:117 a=sNOkzuqjfbpz3c/qSHODpA==:17 a=N659UExz7-8A:10 a=UmSUZ3ptAAAA:8 a=4I05h4SrAAAA:8 a=6I5d2MoRAAAA:8 a=arpVtLJQAAAA:8 a=NEAV23lmAAAA:8 a=jdP34snFAAAA:8 a=LJ5NkaWEAAAA:8 a=bt8Zh30PAAAA:8 a=_4c_cPa7KR-jc0hoDZwA:9 a=4PqEs16Qk7kspL0i:21 a=cod5tj5B-b6Ro-_V:21 a=pILNOxqGKmIA:10 a=FyGKTEvU35uc88vWBdgE:22 a=SXYKVUms7l59yVxtnTo9:22 a=IjZwj45LgO3ly-622nXo:22 a=86BuEF5rAmEUDcZwuOX_:22 a=jlphF6vWLdwq7oh3TaWq:22 a=eH83O4KjmLCfbRe1EArK:22 Subject: Re: onion omega2+ To: Mori Hiroki , Aleksandr Rybalko References: <694efc3a-e183-35a1-a0bf-9a9c0d708826@wolman.co.uk> <410144.69078.qm@web101716.mail.ssk.yahoo.co.jp> <128807.28836.qm@web101715.mail.ssk.yahoo.co.jp> <2d555385-8258-fd75-e4a3-a1e59bf86314@wolman.co.uk> <651873.78746.qm@web101702.mail.ssk.yahoo.co.jp> <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> Cc: "freebsd-mips@freebsd.org" From: Mike Wolman Message-ID: <711a889d-9701-2441-5c9c-98e0ac607ffb@wolman.co.uk> Date: Wed, 10 May 2017 01:01:03 +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: <369335.16286.qm@web101716.mail.ssk.yahoo.co.jp> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit 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 00:01:10 -0000 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. > > ----- Original Message ----- >> From: Mike Wolman >> To: Mori Hiroki ; Aleksandr Rybalko >> Cc: "freebsd-mips@freebsd.org" >> Date: 2017/5/10, Wed 00:51 >> Subject: Re: onion omega2+ >> >> Ok I not sure what my next step or what Im looking for but here is some >> info about the serial stuff and readelf ouput >> >> [mike@f64-current ~/omega2/tftpboot]$ readelf -h kernel.MT7628_FDT >> ELF Header: >> Magic: 7f 45 4c 46 01 01 01 09 00 00 00 00 00 00 00 00 >> Class: ELF32 >> Data: 2's complement, little endian >> Version: 1 (current) >> OS/ABI: FreeBSD >> ABI Version: 0 >> Type: EXEC (Executable file) >> Machine: MIPS R3000 Big-Endian only >> Version: 0x1 >> Entry point address: 0x80001100 >> Start of program headers: 52 (bytes into file) >> Start of section headers: 5653480 (bytes into file) >> Flags: 0x50001001, mips32, o32, noreorder >> Size of this header: 52 (bytes) >> Size of program headers: 32 (bytes) >> Number of program headers: 6 >> Size of section headers: 40 (bytes) >> Number of section headers: 32 >> Section header string table index: 29 >> >> >> When booting into linux from flash: >> >> root@Omega-12BF:/dev# dmesg |grep tty >> [ 0.000000] Kernel command line: console=ttyS0,115200 >> rootfstype=squashfs,jffs2 >> [ 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.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 >> >> >> >> [mike@f64-current ~/omega2/src/sys/gnu/dts/mips]$ grep serial * >> LINKIT7688.dts: serial0 = &uart2; >> LINKIT7688.dts-orig: serial0 = &uart2; >> mt7620a.dtsi: serial0 = &uartlite; >> mt7620n.dtsi: serial0 = &uartlite; >> mt7621.dtsi: serial0 = &uartlite; >> mt7628an.dtsi: serial0 = &uartlite; <------ the included dtsi >> by OMEGA2.dtsi >> rt2880.dtsi: serial0 = &uartlite; >> rt3050.dtsi: serial0 = &uartlite; >> rt3352.dtsi: serial0 = &uartlite; >> rt3883.dtsi: serial0 = &uartlite; >> rt5350.dtsi: serial0 = &uartlite; >> >> >> [mike@f64-current ~/omega2/src/sys/gnu/dts/mips]$ grep tty * >> ArcherC20i.dts: bootargs = "console=ttyS0,115200"; >> CARAMBOLA.dts: bootargs = "console=ttyS0,115200"; >> CF-WR800N.dts: bootargs = "console=ttyS0,115200"; >> MicroWRT.dts: bootargs = "console=ttyS0,115200"; >> NA930.dts: bootargs = "console=ttyS1,57600"; >> OMEGA2.dtsi: bootargs = "console=ttyS0,115200"; <----- >> looks >> like all the others >> OY-0001.dts: bootargs = "console=ttyS0,115200"; >> PBR-M1.dts: bootargs = "console=ttyS0,115200"; >> SK-WB8.dts: bootargs = "console=ttyS0,57600"; >> ZBT-WG2626.dts: bootargs = "console=ttyS0,115200"; >> ZBT-WG3526.dts: bootargs = "console=ttyS0,115200"; >> mt7620a.dtsi: bootargs = "console=ttyS0,57600"; >> mt7620n.dtsi: bootargs = "console=ttyS0,57600"; >> mt7628an.dtsi: bootargs = "console=ttyS0,57600"; >> rt2880.dtsi: bootargs = "console=ttyS0,57600"; >> rt3050.dtsi: bootargs = "console=ttyS0,57600"; >> rt3352.dtsi: bootargs = "console=ttyS0,57600"; >> rt3883.dtsi: bootargs = "console=ttyS0,57600"; >> rt5350.dtsi: bootargs = "console=ttyS0,57600"; >> (i have removed some of the results from here as most files match) >> >> On 09/05/2017 15:07, Mori Hiroki wrote: >>> Hi. Mike >>> >>>> Starting kernel ... >>> I think success to boot. >>> >>> Next is Entry point miss or uart console issue. >>> >>> >>> Entry point can check on ELF kernel file by readelf command. >>> >>> Uart console issue is in dts file. >>> >>> ----- Original Message ----- >>> >>>> From: Mike Wolman >>>> To: Mori Hiroki ; Aleksandr Rybalko >> >>>> Cc: "freebsd-mips@freebsd.org" >> >>>> Date: 2017/5/9, Tue 22:42 >>>> Subject: Re: onion omega2+ >>>> >>>> >>>> Ok got somewhere with this >>>> >>>> >>>> USB_STORAGE: 1 Storage Device(s) found >>>> Omega2 # fatload usb 0:1 0x80800000 kernel.MT7628_FDT.uImage >>>> * >>>> * >>>> Reading file "kernel.MT7628_FDT.uImage" >>>> * >>>> ** >>>> ** >>>> ** >>>> ** >>>> ** >>>> ** >>>> ** >>>> ** >>>> ** >>>> ** >>>> ****** >>>> ****** >>>> >> ****************************************************************************************************************************************************************************************************************** >>>> **** >>>> * >>>> FAT: 5654824 Bytes read >>>> Omega2 # go >>>> Usage: >>>> go - start application at address 'addr' >>>> >>>> Omega2 # go 0x80001000 >>>> ## Starting application at 0x80001000 ... >>>> >>>> >>>> >>>> I have tried with: >>>> >>>> Omega2 # go 0x80001100 >>>> ## Starting application at 0x80001100 ... >>>> >>>> >>>> >>>> I have tried using the 0x80001000 for fatload as well: >>>> >>>> >>>> USB_STORAGE: 1 Storage Device(s) found >>>> Omega2 # help fatload >>>> fatload >> >>>> [bytes] >>>> - load binary file 'filename' from 'dev' on >>>> 'interface' >>>> to address 'addr' from dos filesystem >>>> >>>> Reading file "kernel.MT7628_FDT.uImage" >>>> * >>>> ** >>>> ** >>>> ** >>>> ** >>>> ** >>>> ** >>>> ** >>>> ** >>>> ** >>>> ** >>>> ****** >>>> ****** >>>> >> ****************************************************************************************************************************************************************************************************************** >>>> **** >>>> * >>>> FAT: 5654824 Bytes read >>>> Omega2 # go 0x80001100 >>>> ## Starting application at 0x80001100 ... >>>> >>>> >>>> >>>> However: >>>> >>>> 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: 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 ... >>>> >>>> >>>> But it doesnt go any further >>>> >>>> >>>> >>>> >>>> >>>> >>>> On 09/05/2017 14:20, Mori Hiroki wrote: >>>>> Hi. >>>>> >>>>> One more. >>>>> >>>>> Omega2 # fatload usb 0:1 0x80800000 kernel.MT7628_FDT.uImage >>>>> >>>>> Omega2 # bootm 0x80800000 >>>>> >>>>> ----- Original Message ----- >>>>>> From: Mike Wolman >>>>>> To: Mori Hiroki ; Aleksandr >> Rybalko >>>> >>>>>> Cc: "freebsd-mips@freebsd.org" >>>> >>>>>> Date: 2017/5/9, Tue 22:01 >>>>>> Subject: Re: onion omega2+ >>>>>> >>>>>> >>>>>> No joy >>>>>> >>>>>> Omega2 # fatload usb 0:1 0x80800000 kernel.MT7628_FDT.uImage >>>>>> * >>>>>> * >>>>>> Reading file "kernel.MT7628_FDT.uImage" >>>>>> * >>>>>> ** >>>>>> ** >>>>>> ** >>>>>> ** >>>>>> ** >>>>>> ** >>>>>> ** >>>>>> ** >>>>>> ** >>>>>> ** >>>>>> ****** >>>>>> ****** >>>>>> >> ****************************************************************************************************************************************************************************************************************** >>>>>> **** >>>>>> * >>>>>> FAT: 5654824 Bytes read >>>>>> Omega2 # bootm >>>>>> ## Booting image at 80100000 ... >>>>>> Bad Magic Number,CE6AE7C4 >>>>>> >>>>>> I am going to get a different usb memory stick and rebuild >> the kernel >>>>>> later on as i got an error when last writing to the usb >> memory key and >>>>>> its quite old now so just want to eliminate it from testing. >>>>>> >>>>>> >>>>>> On 09/05/2017 13:52, Mori Hiroki wrote: >>>>>>> Hi. >>>>>>> >>>>>>> This is my sample operation get image from network and >> boot. >>>>>>> RT3052 # tftpboot 0x80800000 >>>> Planex_MZK-WNH_kernel.kbin.oldlzma.uboot >>>>>>> RT3052 # bootm >>>>>>> >>>>>>> >>>>>>> I don't use USB support U-Boot. But I think fatload >> command >>>> argument is >>>>>>> temporary memory address not kernel address. >>>>>>> >>>>>>> How about this. >>>>>>> >>>>>>> Omega2 # fatload usb 0:1 0x80800000 >> kernel.MT7628_FDT.uImage >>>>>>> Omega2 # bootm >>>>>>> >>>>>>> ----- Original Message ----- >>>>>>>> From: Mike Wolman >>>>>>>> To: Aleksandr Rybalko ; Mori >> Hiroki >>>>>> >>>>>>>> Cc: "freebsd-mips@freebsd.org" >>>>>> >>>>>>>> Date: 2017/5/9, Tue 20:48 >>>>>>>> Subject: Re: onion omega2+ >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> Is it possible to exclude the compression of the >> kernel/image >>>> for >>>>>>> now eg: >>>>>>>> mkimage -A mips -C none -O linux -T kernel -a >> 0x80001000 -e >>>>>>> 0x80001100 -n "FreeBSD" -d >> kernel.MT7628_FDT >>>>>>> kernel.MT7628_FDT.uImage >>>>>>>> I have just tried the above but when booting I get >> a Bad >>>> Magic >>>>>>> Number. >>>>>>>> Omega2 # fatload usb 0:1 0x80001000 >> kernel.MT7628_FDT.uImage >>>>>>>> * >>>>>>>> * >>>>>>>> Reading file "kernel.MT7628_FDT.uImage" >>>>>>>> * >>>>>>>> ** >>>>>>>> ** >>>>>>>> ** >>>>>>>> ** >>>>>>>> ** >>>>>>>> ** >>>>>>>> ** >>>>>>>> ** >>>>>>>> ** >>>>>>>> ** >>>>>>>> ****** >>>>>>>> ****** >>>>>>>> >> ****************************************************************************************************************************************************************************************************************** >>>>>>>> **** >>>>>>>> * >>>>>>>> FAT: 5654824 Bytes read >>>>>>>> Omega2 # bootm 0x80001100 >>>>>>>> ## Booting image at 80001100 ... >>>>>>>> Bad Magic Number,1C994480 >>>>>>>> Omega2 # >>>>>>>> >>>>>>>> >>>>>>>> I have seen other examples starting a program >> directly with >>>> going to >>>>>>> the address but this didnt work either: >>>>>>>> Omega2 # go 0x80001100 >>>>>>>> ## Starting application at 0x80001100 ... >>>>>>>> >>>>>>>> omega freezes here. >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> On 09/05/2017 10:12, Aleksandr Rybalko wrote: >>>>>>>> >>>>>>>> Fix things in order :) >>>>>>> Currently you have problem with LZMA, serial port >> later. >>>>>>> So, find version of lzma used to build linux firmware, >> MIPS >>>> routers world >>>>>> use about 5 incompatible versions. One of them, you can find >> here: >>>>>> >> http://project.zrouter.org/hg/zrouter/file/9ac53695a44d/tools/oldlzma >>>>>>>>> >>>>>>>>> 2017-05-09 7:03 GMT+03:00 Mori Hiroki >>>>>> : >>>>>>>>> Hi Mike >>>>>>>>>> Could you show u-boot printenv command >> result. >>>>>>>>>> Thanks >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> ----- Original Message ----- >>>>>>>>>>> From: Mike Wolman >> >>>>>>>>>>> To: Mori Hiroki >> ; >>>>>> "freebsd-mips@freebsd.org" >> >>>>>>>>>>> Cc: >>>>>>>>>>> Date: 2017/5/9, Tue 10:30 >>>>>>>>>>> Subject: Re: onion omega2+ >>>>>>>>>>> >>>>>>>>>>> Hi Mori, >>>>>>>>>>> >>>>>>>>>>> When I compiled the world/kernel etc I >> used: >>>>>>>>>>> X_DTS_FILE=OMEGA2P.dts >> KERNCONF=MT7628_FDT >>>>>>>>>>> ../freebsd-wifi-build/build/ bin/build >> ralink >>>>>>> buildkernel >>>>>>>>>>> I checked the serial stuff was the same >> as the >>>>>>> other configs in: >>>>>>>>>>> https://github.com/freebsd/ >> freebsd-wifi-build/ >>>>>>>>>>> and they looked the same. >>>>>>>>>>> >>>>>>>>>>> The OMEGA2.dtsi file has: >>>>>>>>>>> >>>>>>>>>>> chosen { >>>>>>>>>>> bootargs = >>>>>> "console=ttyS0,115200"; >>>>>>>>>>> }; >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> And mt7628an.dtsi has: serial0 = >> &uartlite; >>>>>>>>>>> I dont think im getting as far as >> worrying about >>>>>>> the serial console at >>>>>>>>>>> the moment and need to get the kernel >> to >>>> uncompress >>>>>>> first. >>>>>>>>>>> Mike. >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> On 09/05/2017 02:20, Mori Hiroki wrote: >>>>>>>>>>>> Hi Mike >>>>>>>>>>>> >>>>>>>>>>>> In FreeBSD is use serial0 dts >> item to >>>> console. >>>>>>>>>>>> I think good to use this at >> start. >>>>>>>>>>>> freebsd/sys/gnu/dts/mips/ >> MT7628.dts >>>>>>>>>>>> ----- Original Message ----- >>>>>>>>>>>>> From: Mike Wolman >>>> >>>>>>>>>>>>> To: Mori Hiroki >>>> ; >>>>>>>>>>> "freebsd-mips@freebsd.org" >>>>>> >>>>>>>>>>>>> Cc: >>>>>>>>>>>>> Date: 2017/5/9, Tue 09:25 >>>>>>>>>>>>> Subject: Re: onion omega2+ >>>>>>>>>>>>> >>>>>>>>>>>>> Hi Mori, >>>>>>>>>>>>> >>>>>>>>>>>>> I grabbed the dts files >> from: >>>>>>>>>>>>> https://github.com/WereCatf/ >>>>>> source/tree/image/target/ linux/ramips/dts >>>>>>>>>>> https://github.com/WereCatf/ >>>> source/blob/image/target/ >>>>>> linux/ramips/dts/OMEGA2P.dts >>>>>>>>>>> https://github.com/WereCatf/ >>>> source/blob/image/target/ >>>>>> linux/ramips/dts/OMEGA2.dtsi >>>>>>>>>>>>> If this is of any use from >> the default >>>>>>> linux install on the flash: >>>>>>>>>>>>> root@Omega-12BF:/proc# cat >> /proc/mtd >>>>>>>>>>>>> dev: size erasesize >> name >>>>>>>>>>>>> mtd0: 00030000 00010000 >>>> "u-boot" >>>>>>>>>>>>> mtd1: 00010000 00010000 >>>> "u-boot-env" >>>>>>>>>>>>> mtd2: 00010000 00010000 >>>> "factory" >>>>>>>>>>>>> mtd3: 01fb0000 00010000 >>>> "firmware" >>>>>>>>>>>>> mtd4: 00148842 00010000 >>>> "kernel" >>>>>>>>>>>>> mtd5: 01e677be 00010000 >>>> "rootfs" >>>>>>>>>>>>> mtd6: 01950000 00010000 >>>> "rootfs_data" >>>>>>>>>>>>> btw after posting i spotted >> and error >>>> in >>>>>>> what i did with: >>>>>>>>>>>>> mkimage -A mips -O linux -T >> kernel -C >>>> lzma >>>>>>> \ >>>>>>>>>>>>> -a 0x80001000 -e >> 0x80001100 \ >>>>>>>>>>>>> -n "FreeBSD" >> -d >>>>>>> kernel.MT7628_FDT.lzma >>>>>>>>>>>>> >> kernel.MT7628_FDT.ulzma.uImage >>>>>>>>>>>>> I have redone this using the >> correct >>>>>>> compressed kernel ie: >>>>>>>>>>>>> mkimage -A mips -O linux -T >> kernel -C >>>> lzma >>>>>>> \ >>>>>>>>>>>>> -a 0x80001000 -e >> 0x80001100 \ >>>>>>>>>>>>> -n "FreeBSD" >> -d >>>>>>> kernel.MT7628_FDT.ulzma >>>>>>>>>>>>> >> kernel.MT7628_FDT.ulzma.uImage >>>>>>>>>>>>> >>>>>>>>>>>>> But this didnt work. >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> On 09/05/2017 01:17, Mori >> Hiroki >>>> wrote: >>>>>>>>>>>>>> Hi. >>>>>>>>>>>>>> >>>>>>>>>>>>>> I think if U-Boot work >> memory >>>> make >>>>>>> broken then >>>>>>>>>>>>>> Uncompressing Kernel >> Image is NG. >>>>>>>>>>>>>> Some ARM U-Boot is use >> top >>>> address >>>>>>> in work memory. >>>>>>>>>>>>>> If this case your >> kernel start >>>>>>> address to move to >>>>>>>>>>>>>> after work memory. But >> I never >>>> see >>>>>>> in MIPS. >>>>>>>>>>>>>> And What is set >> FDT_DTS_FILE in >>>>>>> your kernel configuration ? >>>>>>>>>>>>>> ----- Original Message >> ----- >>>>>>>>>>>>>>> From: Mike Wolman >>>>>> >>>>>>>>>>>>>>> To: >> freebsd-mips@freebsd.org >>>>>>>>>>>>>>> Cc: >>>>>>>>>>>>>>> Date: 2017/5/9, Tue >> 07:48 >>>>>>>>>>>>>>> Subject: Re: onion >> omega2+ >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> More info in case >> anyone can >>>>>>> point me in the right direction. >>>>>>>>>>>>>>> I have found: >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >> https://forum.openwrt.org/ >>>>>> viewtopic.php?id=53865 >>>>>>>>>>>>>>> I have tried >> changing how >>>> lzma >>>>>>> compresses the kernel by >>>>>>>>>>> adding -d20 to >>>>>>>>>>>>>>> the build scripts >> eg: >>>>>>>>>>>>>>> /usr/local/bin/lzma >> e >>>>>>>>>>>>>>> >>>>>>>>>>> /home/mike/omega2/src/../root/ >>>>>> mipsel_ap/boot/kernel.MT7628_ FDT/kernel >>>>>>>>>>>>> \ >>>>>>>>>>>>>>> >> /home/mike/omega2/src/../ >>>>>> tftpboot/kernel.MT7628_FDT. lzma >>>>>>> -d20 >>>>>>>>>>>>>>> This did not work. >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> Looking at the >> onion omega >>>> conf >>>>>>> I see that it uses mkuzip and >>>>>>>>>>> not lzma >>>>>>>>>>>>>>> with the following >> settings: >>>>>>>>>>>>>>> >>>> X_FSIMAGE_CMD="mkuzip" >>>>>>>>>>>>>>> >> X_FSIMAGE_ARGS="-L -d -s >>>> 65536 >>>>>>> -v" >>>>>>>>>>>>>>> >>>> X_FSIMAGE_SUFFIX=".ulzma" >>>>>>>>>>>>>>> So tried the >> following: >>>>>>>>>>>>>>> mkuzip -L -d -s >> 65536 -v -o >>>>>>> kernel.MT7628_FDT.ulzma >>>>>>>>>>> kernel.MT7628_FDT >>>>>>>>>>>>>>> mkimage -A mips -O >> linux -T >>>>>>> kernel -C lzma \ >>>>>>>>>>>>>>> -a 0x80001000 >> -e >>>> 0x80001100 >>>>>>> \ >>>>>>>>>>>>>>> -n >> "FreeBSD" -d >>>>>>> kernel.MT7628_FDT.lzma >>>>>>>>>>>>>>> >>>> kernel.MT7628_FDT.ulzma.uImage >>>>>>>>>>>>>>> But this did not >> work either. >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> On 08/05/2017 >> 19:41, >>>> Aleksandr >>>>>>> Rybalko wrote: >>>>>>>>>>>>>>>> Hi Mike! >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> I see you >> have no >>>> "OK" >>>>>>> after >>>>>>>>>>> "Uncompressing Kernel >>>>>>>>>>>>> Image >>>>>>>>>>>>>>> ...", so >>>>>>>>>>>>>>>> first point >> uboot >>>>>>> decompressor fail. >>>>>>>>>>>>>>>> Why fail? >> Because you >>>> have >>>>>>> wrong base address in image: >>>>>>>>>>>>>>>> Load >> Address: >>>> fffffff2 >>>>>>>>>>>>>>>> Entry >> Point: >>>> fffffff2 >>>>>>>>>>>>>>>> MIPS32 >> machines have >>>> RAM >>>>>>> mapped to 0x80000000 address, >>>>>>>>>>> so adding >>>>>>>>>>>>> its >>>>>>>>>>>>>>>> size, you >> will get max >>>>>>> address (if 16MB, it will be >>>>>>>>>>> 0x81000000), >>>>>>>>>>>>> but >>>>>>>>>>>>>>>> you uboot >> image was >>>>>>> created with 0xfffffff2. >>>>>>>>>>>>>>>> Even more, >> unpacked >>>> kernel >>>>>>> expects it will be called at >>>>>>>>>>>>> 0x80001100. so >>>>>>>>>>>>>>>> if you have >> ELF kernel >>>>>>> (file with ELF header, like >>>>>>>>>>> every >>>>>>>>>>>>> executable) >>>>>>>>>>>>>>>> that file >> have to be >>>>>>> loaded at (0x80001100 - >>>>>>>>>>> ELF_HEADER_SIZE). >>>>>>>>>>>>>>>> In most cases >> it will >>>> be >>>>>>> 0x80001100 - 0x100 = >>>>>>>>>>> 0x80001000. But >>>>>>>>>>>>> sometime >>>>>>>>>>>>>>>> (I did not >> found why) >>>> it >>>>>>> can be 0x20, you can find it >>>>>>>>>>> by looking >>>>>>>>>>>>> at >>>>>>>>>>>>>>>> .text section >> in >>>> readelf >>>>>>> -S. >>>>>>>>>>>>>>>> So if you >> have kernel >>>> with >>>>>>> entry point 0x80001100 and >>>>>>>>>>> .text >>>>>>>>>>>>> segment >>>>>>>>>>>>>>>> offset 0x100, >> you have >>>> to >>>>>>> create uboot image with load >>>>>>>>>>> address >>>>>>>>>>>>>>>> 0x80001000 >> and entry >>>> point >>>>>>> 0x80001100. >>>>>>>>>>>>>>>> If that step >> successful >>>>>>> you will get: >>>>>>>>>>>>>>>> >> /Uncompressing Kernel >>>>>>> Image/ ... OK >>>>>>>>>>>>>>>> Starting >> kernel ... >>>>>>>>>>>>>>>> Last line >> mean, uboot >>>> did >>>>>>> jump into kernel code. >>>>>>>>>>>>>>>> Good luck. >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> 2017-05-07 >> 18:20 >>>> GMT+03:00 >>>>>>> Mike Wolman >>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>> >: >>>>>>>>>>>>>>>> Hi, >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> I am >> trying to get >>>>>>> FreeBSD working on this board - >>>>>>>>>>> I think I >>>>>>>>>>>>> am >>>>>>>>>>>>>>>> almost >> there in >>>>>>> getting it working but need some >>>>>>>>>>> help please. >>>>>>>>>>>>>>>> I have >> followed >>>>>>> instructions from the >>>>>>>>>>> freebsd-wifi-build and >>>>>>>>>>>>>>>> *think* I >> have got >>>>>>> everything correct - I am trying >>>>>>>>>>> to do >>>>>>>>>>>>> this on >>>>>>>>>>>>>>>> a CURRENT >> setup: >>>>>>>>>>>>>>>> FreeBSD >>>>>>> f64-current.mw.office 12.0-CURRENT >> FreeBSD >>>>>>>>>>>>> 12.0-CURRENT #0 >>>>>>>>>>>>>>>> r317887: >> Sun May 7 >>>>>>> 03:20:34 UTC 2017 >>>>>>>>>>>>>>>> >>>>>>>>>>>>> mike@f64-current.mw.office:/ >>>>>> usr/obj/usr/src/sys/GENERIC- NODEBUG amd64 >>>>>>>>>>>>>>>> $ cat >>>>>>> ~/.freebsd-wifi-build- settings.cfg >>>>>>>>>>>>>>>> >>>> X_SKIP_MORE_STUFF=YES >>>>>>>>>>>>>>>> >>>>>>> X_EXTRA_SRC_CONF=~/omega2/src. conf >>>>>>>>>>>>>>>> $ cat >>>>>>> ~/omega2/src.conf >>>>>>>>>>>>>>>> >> WITHOUT_CLANG=YES >>>>>>>>>>>>>>>> >>>> WITHOUT_CLANG_FULL=YES >>>>>>>>>>>>>>>> get dts >> files from >>>>>>> thread >>>>>>>>>>>>>>>> >>>>>>>>>>> http://community.onion.io/ >>>> topic/1099/openwrt-on-the- >>>>>> omega-2/8 >>>>>>>>>>>>>>>> >>>>>>>>>>>>> >> >>>>> topic/1099/openwrt-on-the- omega-2/8> >>>>>>>>>>>>>>>> cd >>>>>>> ~/omega2/src/sys/gnu/dts/mips >>>>>>>>>>>>>>>> fetch >>>>>>>>>>>>>>>> >>>>>>>>>>> https://raw.githubusercontent. >>>> com/WereCatf/source/image/ >>>>>> target/linux/ramips/dts/ OMEGA2.dtsi >>>>>>>>>>>>>>>> >>>>>>>>>>> >>>>> WereCatf/source/image/target/ >> linux/ramips/dts/OMEGA2.dtsi> >>>>>>>>>>>>>>>> fetch >>>>>>>>>>>>>>>> >>>>>>>>>>> https://raw.githubusercontent. >>>> com/WereCatf/source/image/ >>>>>> target/linux/ramips/dts/ OMEGA2.dts >>>>>>>>>>>>>>>> >>>>>>>>>>> >>>>> WereCatf/source/image/target/ linux/ramips/dts/OMEGA2.dts> >>>>>>>>>>>>>>>> fetch >>>>>>>>>>>>>>>> >>>>>>>>>>> https://raw.githubusercontent. >>>> com/WereCatf/source/image/ >>>>>> target/linux/ramips/dts/ OMEGA2P.dts >>>>>>>>>>>>>>>> >>>>>>>>>>> >>>>> WereCatf/source/image/target/ >> linux/ramips/dts/OMEGA2P.dts> >>>>>>>>>>>>>>>> >>>> X_DTS_FILE=OMEGA2P.dts >>>>>>> KERNCONF=MT7628_FDT >>>>>>>>>>>>>>>> >>>>>>> ../freebsd-wifi-build/build/ bin/build >> ralink >>>>>>>>>>> buildworld >>>>>>>>>>>>>>>> >>>> X_DTS_FILE=OMEGA2P.dts >>>>>>> KERNCONF=MT7628_FDT >>>>>>>>>>>>>>>> >>>>>>> ../freebsd-wifi-build/build/ bin/build >> ralink >>>>>>>>>>> buildkernel >>>>>>>>>>>>>>>> >>>> X_DTS_FILE=OMEGA2P.dts >>>>>>> KERNCONF=MT7628_FDT >>>>>>>>>>>>>>>> >>>>>>> ../freebsd-wifi-build/build/ bin/build >> ralink >>>>>>>>>>> installworld >>>>>>>>>>>>>>>> >>>> X_DTS_FILE=OMEGA2P.dts >>>>>>> KERNCONF=MT7628_FDT >>>>>>>>>>>>>>>> >>>>>>> ../freebsd-wifi-build/build/ bin/build >> ralink >>>>>>>>>>> installkernel >>>>>>>>>>>>>>>> >>>> X_DTS_FILE=OMEGA2P.dts >>>>>>> KERNCONF=MT7628_FDT >>>>>>>>>>>>>>>> >>>>>>> ../freebsd-wifi-build/build/ bin/build >> ralink >>>>>>>>>>> distribution >>>>>>>>>>>>>>>> >>>> X_DTS_FILE=OMEGA2P.dts >>>>>>> KERNCONF=MT7628_FDT >>>>>>>>>>>>>>>> >>>>>>> ../freebsd-wifi-build/build/ bin/build >> ralink >>>>>>>>>>> mfsroot >>>>>>>>>>>>>>>> >>>> X_DTS_FILE=OMEGA2P.dts >>>>>>> KERNCONF=MT7628_FDT >>>>>>>>>>>>>>>> >>>>>>> ../freebsd-wifi-build/build/ bin/build >> ralink >>>>>>>>>>> fsimage >>>>>>>>>>>>>>>> >>>> X_DTS_FILE=OMEGA2P.dts >>>>>>> KERNCONF=MT7628_FDT >>>>>>>>>>>>>>>> >>>>>>> ../freebsd-wifi-build/build/ bin/build >> ralink >>>> uboot >>>>>>>>>>>>>>>> Create >> flash: >>>>>>>>>>>>>>>> >>>>>>> X_FLASH=kernel.MT7628_FDT. lzma.flash >>>>>>>>>>>>>>>> dd >> if=/dev/zero >>>> bs=$(( >>>>>>> 0x200000 )) count=1 >>>>>>>>>>> of=${X_FLASH} >>>>>>>>>>>>>>>> dd >>>>>>> if=kernel.MT7628_FDT.lzma. uImage >> of=${X_FLASH} >>>>>>>>>>>>> conv=notrunc >>>>>>>>>>>>>>>> dd if= >>>>>>> mfsroot-ralink.img.lzma >> >> ${X_FLASH} >>>>>>>>>>>>>>>> $ readelf >> -h >>>>>>> kernel.MT7628_FDT | grep Entry >>>>>>>>>>>>>>>> Entry >> point >>>>>>> address: 0x80001100 >>>>>>>>>>>>>>>> Now on >> the omega >>>> over >>>>>>> serial - I didnt get the >>>>>>>>>>> network >>>>>>>>>>>>> expansion >>>>>>>>>>>>>>>> doc thing >> so am >>>> doing >>>>>>> stuff with usb rather than >>>>>>>>>>> tftp >>>>>>>>>>>>>>>> I am not >> 100% sure >>>>>>> about the 0x80001100 and the >>>>>>>>>>> fatload and >>>>>>>>>>>>> have >>>>>>>>>>>>>>>> tried >> this >>>>>>>>>>>>>>>> Omega2 # >> fatload >>>> usb >>>>>>> 0:1 0x80001100 >>>>>>>>>>>>> >> /kernel.MT7628_FDT.lzma.flash >>>>>>>>>>>>>>>> * >>>>>>>>>>>>>>>> * >>>>>>>>>>>>>>>> Reading >> file >>>>>>>>>>> "/kernel.MT7628_FDT.lzma. >> flash" >>>>>>>>>>>>>>>> * >>>>>>>>>>>>>>>> ** >>>>>>>>>>>>>>>> ** >>>>>>>>>>>>>>>> ** >>>>>>>>>>>>>>>> ****** >>>>>>>>>>>>>>>> >>>>>>>>>>> ****************************** >>>>>> ****************************** ****************************** >>>>>> ****************************** ********************* >>>>>>>>>>>>>>>> ****** >>>>>>>>>>>>>>>> * >>>>>>>>>>>>>>>> FAT: >> 2108463 Bytes >>>>>>> read >>>>>>>>>>>>>>>> Omega2 # >> bootm >>>>>>> 0x80001100 >>>>>>>>>>>>>>>> ## >> Booting image at >>>>>>> 80001100 ... >>>>>>>>>>>>>>>> Image >> Name: >>>>>>> FreeBSD >>>>>>>>>>>>>>>> Image >> Type: >>>> MIPS >>>>>>> Linux Kernel Image (lzma >>>>>>>>>>> compressed) >>>>>>>>>>>>>>>> Data >> Size: >>>>>>> 1365122 Bytes = 1.3 MB >>>>>>>>>>>>>>>> Load >> Address: >>>>>>> fffffff2 >>>>>>>>>>>>>>>> Entry >> Point: >>>>>>> fffffff2 >>>>>>>>>>>>>>>> >> Verifying >>>> Checksum >>>>>>> ... OK >>>>>>>>>>>>>>>> >> Uncompressing >>>>>>> Kernel Image ... >>>>>>>>>>>>>>>> At this >> point >>>> nothing >>>>>>> happens and console hangs - >>>>>>>>>>> note in >>>>>>>>>>>>>>>> >> OMEGA2.dtsithe >>>> console >>>>>>> is set to ttyS0: >>>>>>>>>>>>>>>> bootargs >> = >>>>>>> "console=ttyS0,115200"; >>>>>>>>>>>>>>>> I have >> also tried >>>> with >>>>>>> just kernel.MT7628_FDT and >>>>>>>>>>>>>>>> >>>> kernel.MT7628_FDT.lzma >>>>>>> but both fail: >>>>>>>>>>>>>>>> Omega2 # >> fatload >>>> usb >>>>>>> 0:1 0x80001100 >>>>>>>>>>>>> >> /kernel.MT7628_FDT.lzma.uImage >>>>>>>>>>>>>>>> * >>>>>>>>>>>>>>>> * >>>>>>>>>>>>>>>> Reading >> file >>>>>>>>>>> "/kernel.MT7628_FDT.lzma. >> uImage" >>>>>>>>>>>>>>>> * >>>>>>>>>>>>>>>> ** >>>>>>>>>>>>>>>> ** >>>>>>>>>>>>>>>> ****** >>>>>>>>>>>>>>>> >>>>>>>>>>> ****************************** >>>>>> ****************************** ****************************** >>>>>> ****************************** ****** >>>>>>>>>>>>>>>> >> ********** >>>>>>>>>>>>>>>> * >>>>>>>>>>>>>>>> FAT: >> 1365186 Bytes >>>>>>> read >>>>>>>>>>>>>>>> Omega2 # >> bootm >>>>>>> 0x80001100 >>>>>>>>>>>>>>>> ## >> Booting image at >>>>>>> 80001100 ... >>>>>>>>>>>>>>>> Image >> Name: >>>>>>> FreeBSD >>>>>>>>>>>>>>>> Image >> Type: >>>> MIPS >>>>>>> Linux Kernel Image (lzma >>>>>>>>>>> compressed) >>>>>>>>>>>>>>>> Data >> Size: >>>>>>> 1365122 Bytes = 1.3 MB >>>>>>>>>>>>>>>> Load >> Address: >>>>>>> fffffff2 >>>>>>>>>>>>>>>> Entry >> Point: >>>>>>> fffffff2 >>>>>>>>>>>>>>>> >> Verifying >>>> Checksum >>>>>>> ... OK >>>>>>>>>>>>>>>> >> Uncompressing >>>>>>> Kernel Image ... >>>>>>>>>>>>>>>> A few >> comments on >>>> the >>>>>>> hardware for anyone who wants >>>>>>>>>>> to get >>>>>>>>>>>>> one: >>>>>>>>>>>>>>>> Get the >> expansion >>>> dock >>>>>>> with serial port access - >>>>>>>>>>> the power >>>>>>>>>>>>> dock >>>>>>>>>>>>>>>> does not >> provide >>>>>>> serial access - i think it is >>>>>>>>>>> possible to >>>>>>>>>>>>> use an >>>>>>>>>>>>>>>> ftdi ttl >> serial >>>>>>> chip/cable but have not tried. >>>>>>>>>>>>>>>> Stupidly >> I forgot >>>> this >>>>>>> only has wifi access so you >>>>>>>>>>> are not >>>>>>>>>>>>> able to >>>>>>>>>>>>>>>> tftp boot >> this >>>> without >>>>>>> getting the ethernet network >>>>>>>>>>> expansion >>>>>>>>>>>>> but >>>>>>>>>>>>>>>> loading >> stuff up >>>> from >>>>>>> a usb memory stick is seem >>>>>>>>>>> fine from >>>>>>>>>>>>> u-boot. >>>>>>>>>>>>>>>> I do not >> think that >>>> it >>>>>>> is possible to boot from the >>>>>>>>>>> SD card >>>>>>>>>>>>> on the >>>>>>>>>>>>>>>> Omega2+ - >> which is >>>> a >>>>>>> shame. >>>>>>>>>>>>>>>> Thanks >> for reading, >>>>>>>>>>>>>>>> Mike. >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>> ______________________________ >> _________________ >>>>>>>>>>>>>>>> >>>> freebsd-mips@freebsd.org >>>>>>>>>>>>> >> >>> org>mailing >>>>>>>>>>>>>>> list >>>>>>>>>>>>>>>> >>>>>>>>>>> https://lists.freebsd.org/ >>>> mailman/listinfo/freebsd-mips >>>>>>>>>>>>>>>> >>>>>>>>>>>>> >> >>>>> mailman/listinfo/freebsd-mips> >>>>>>>>>>>>>>>> To >> unsubscribe, >>>> send >>>>>>> any mail to >>>>>>>>>>>>>>>> >>>>>> "freebsd-mips-unsubscribe@ freebsd.org >>>>>>>>>>>>>>>> >>>>>>>>>>> >>> unsubscribe@freebsd.org>" >>>>>>>>>>>>>>>> -- >>>>>>>>>>>>>>>> WBW >>>>>>>>>>>>>>>> ------- >>>>>>>>>>>>>>>> Rybalko >> Aleksandr >>>>>> >>>>>>>>>>>> >> > >>>>>>>>>>>>>>> >>>> ______________________________ >>>>>> _________________ >>>>>>>>>>>>>>> >> 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 >>>>>>>>> >>>>>>>>> From owner-freebsd-mips@freebsd.org Wed May 10 00:52:30 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 1F517D651E5 for ; Wed, 10 May 2017 00:52:30 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from nh604-vm5.bullet.mail.ssk.yahoo.co.jp (nh604-vm5.bullet.mail.ssk.yahoo.co.jp [182.22.90.62]) by mx1.freebsd.org (Postfix) with SMTP id 626B01EAA for ; Wed, 10 May 2017 00:52:28 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from [182.22.66.106] by nh604.bullet.mail.ssk.yahoo.co.jp with NNFMP; 10 May 2017 00:50:01 -0000 Received: from [182.22.91.130] by t604.bullet.mail.ssk.yahoo.co.jp with NNFMP; 10 May 2017 00:50:01 -0000 Received: from [127.0.0.1] by omp603.mail.ssk.yahoo.co.jp with NNFMP; 10 May 2017 00:50:01 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 820406.28736.bm@omp603.mail.ssk.yahoo.co.jp Received: (qmail 14744 invoked by uid 60001); 10 May 2017 00:50:01 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.jp; s=yj20110701; t=1494377401; bh=wUogD2uRguLpNzY83LYh9uy0YwTXr7BNoOjLJmOgXJI=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:X-YMail-JAS:References:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=cwuR4F47Zt5R6WZ7L6+CGYv4DiSpl71GdMydpEa2UpQ0JNE7cqqXmDRHYmp7QOD3W6fDydmZ6EzLmWY9ll0vkz6QeYZYFiB3oAWiKqUjYkFWQncNHXyj0v99eGeN0vHCnXT9S7xrxPDm2gc2Ue6qmCY8AVjMUrsD62K9EI1LauA= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=yj20110701; d=yahoo.co.jp; h=Message-ID:X-YMail-OSG:Received:X-Mailer:X-YMail-JAS:References:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=e3nq3eyr8KJfPhLdLG5ps7TJAPFfUJOObk+SfpQYhO361+RS6tWMSW1vbDpXKfbI87etnSofct2zhdXGko4vJOZIp+EHFNf1/MaiVNTpDiUGVlmD1xGlEbJfrFjKExSjvP7gxk/1SG4LIuVhG/2/CkCjlMsjl+wYm9c3dhUoH+E=; Message-ID: <456721.9572.qm@web101705.mail.ssk.yahoo.co.jp> X-YMail-OSG: JKrrLTgVM1k8UNDUySf7RRp_emDYsW0V0WpxeiWB77AhGJKfdImrrrpc6Mece5OGgEuIH42Ct3JfNEWZP8sMiUU6HU3IKpR1wROinE3Q.E3qQtNAeTiLjpYnuuYB_tqVnlpGIJROOqIKaMdJ6p.QjhpefyvefHYIOb.TEwq0divznCo3HbgJl07n2X4neEo4OImtQSYZDMdAjKXcGML6M_sTYx3fuEowW339x1tUDk3s07ix0HY7RQw.tU4WMI3AbjjShWFscPg9UN0GihR5UOE.mo7lerqeArhcQLWTWw.YEi.FrV_Rv0lCVk93JJObG0Qq0uhxIW1HYmBZHE41YZlzZZ4JeFrW9aqCxJ8Cos.5Y43shSGmN6wZLdBIhKNSdox74BinqZ3BG6ZrgGqNc_HfDbbD7koWfo3v7RRB11G.vx9B..LVl4MGzL9Ssb7zb37PDSaOLG8p1QvOwf9RZxrLQrucXKhCSngxjUqV2oE9dCCuAWWCcnKM6JBGRMo_999tDh5TRaq1R2xb4LObbff9Om6cENpWLJ73EOWLXX3iGRtb53ns.DVHzDC5pm6u7Du.c5oUfJVtpMNbVkNC1.5s9Xk.X84ii3DQokml4ygadFoDEYr3zanzOJ1_p00tkKn9HMTvCRxcQRqoiOOZlJTW8rpl8p5d0cgR3lHc5nA- Received: from [210.20.198.8] by web101705.mail.ssk.yahoo.co.jp via HTTP; Wed, 10 May 2017 09:50:00 JST X-Mailer: YahooMailWebService/0.8.111_71 X-YMail-JAS: 3IIC0g4VM1k_PQbnDoo97ku3nkYnYsgGoB07mh6nxmhnak2ztP29RjYqiKsKP1XnmFfF1TAt7_FzNV2Do45FOrf6VM77EWKpomtCUsI94OHRtpItLC1Nw2Km2aH_2fjcVYFA References: <694efc3a-e183-35a1-a0bf-9a9c0d708826@wolman.co.uk> <410144.69078.qm@web101716.mail.ssk.yahoo.co.jp> <128807.28836.qm@web101715.mail.ssk.yahoo.co.jp> <2d555385-8258-fd75-e4a3-a1e59bf86314@wolman.co.uk> <651873.78746.qm@web101702.mail.ssk.yahoo.co.jp> <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> Date: Wed, 10 May 2017 09:50:00 +0900 (JST) From: Mori Hiroki Reply-To: Mori Hiroki Subject: Re: onion omega2+ To: Mike Wolman , Aleksandr Rybalko Cc: "freebsd-mips@freebsd.org" In-Reply-To: <711a889d-9701-2441-5c9c-98e0ac607ffb@wolman.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable 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 00:52:30 -0000 Hi mike=0A=0AI last idea is=A0uartlite=A0clock-frequency=A0miss.=0A=0A=A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=A0clock-frequency =3D <50000000= >;=0A=0ABut I don't know correct value.=0A=0A=0A=0A----- Original Message -= ----=0A> From: Mike Wolman =0A> To: Mori Hiroki ; Aleksandr Rybalko =0A> Cc: "freebsd-mips@f= reebsd.org" =0A> Date: 2017/5/10, Wed 09:01=0A> S= ubject: Re: onion omega2+=0A> =0A> =0A> The new kernel with=0A> =0A> device= =A0 =A0 =A0 =A0 =A0 uart_ns8250=0A> =0A> didnt work=0A> =0A> On 10/05/2017 = 00:05, Mori Hiroki wrote:=0A>> Hi Mike.=0A>> =0A>> I seem load address is= good.=0A>> =0A>> I check mt7628an.dtsi file.=0A>> =0A>> This file uart e= ntry is=0A>> =0A>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 uartlite: uartlite@c= 00 {=0A>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 compatible = =3D "ns16550a";=0A>> In this case you must add uart_ns8250 device to kerne= l configuration.=0A>> =0A>> ----- Original Message -----=0A>>> From: Mike= Wolman =0A>>> To: Mori Hiroki ;= Aleksandr Rybalko =0A> =0A>>> Cc: "freebsd-mips@freebsd.o= rg" =0A> =0A>>> Date: 2017/5/10, Wed 00:51=0A>>>= Subject: Re: onion omega2+=0A>>> =0A>>> Ok I not sure what my next step = or what Im looking for but here is some=0A>>> info about the serial stuff = and readelf ouput=0A>>> =0A>>> [mike@f64-current ~/omega2/tftpboot]$ reade= lf -h kernel.MT7628_FDT=0A>>> ELF Header:=0A>>> =A0 =A0 Magic:=A0 7f 45 = 4c 46 01 01 01 09 00 00 00 00 00 00 00 00=0A>>> =A0 =A0 Class:=A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ELF32=0A>>> =A0 =A0 Data:=A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 2's complement, lit= tle =0A> endian=0A>>> =A0 =A0 Version:=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 1 (current)=0A>>> =A0 =A0 OS/ABI:=A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 FreeBSD=0A>>> =A0 =A0 ABI Version:=A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 0=0A>>> =A0 =A0 Type:=A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 EXEC (Executable file)=0A>>> = =A0 =A0 Machine:=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 MIPS = R3000 Big-Endian only=0A>>> =A0 =A0 Version:=A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 0x1=0A>>> =A0 =A0 Entry point address:=A0 =A0 =A0= =A0 =A0 =A0 =A0 0x80001100=0A>>> =A0 =A0 Start of program headers:=A0 = =A0 =A0 =A0 =A0 52 (bytes into file)=0A>>> =A0 =A0 Start of section header= s:=A0 =A0 =A0 =A0 =A0 5653480 (bytes into file)=0A>>> =A0 =A0 Flags:=A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 0x50001001, mips32, o3= 2, =0A> noreorder=0A>>> =A0 =A0 Size of this header:=A0 =A0 =A0 =A0 =A0 = =A0 =A0 52 (bytes)=0A>>> =A0 =A0 Size of program headers:=A0 =A0 =A0 =A0 = =A0 32 (bytes)=0A>>> =A0 =A0 Number of program headers:=A0 =A0 =A0 =A0 6= =0A>>> =A0 =A0 Size of section headers:=A0 =A0 =A0 =A0 =A0 40 (bytes)=0A>= >> =A0 =A0 Number of section headers:=A0 =A0 =A0 =A0 32=0A>>> =A0 =A0 Se= ction header string table index: 29=0A>>> =0A>>> =0A>>> When booting into = linux from flash:=0A>>> =0A>>> root@Omega-12BF:/dev# dmesg |grep tty=0A>>>= [=A0 =A0 0.000000] Kernel command line: console=3DttyS0,115200=0A>>> roo= tfstype=3Dsquashfs,jffs2=0A>>> [=A0 =A0 0.276011] console [ttyS0] disabled= =0A>>> [=A0 =A0 0.279438] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq= =3D 28,=0A>>> base_baud =3D 2500000) is a 16550A=0A>>> [=A0 =A0 0.288217= ] console [ttyS0] enabled=0A>>> [=A0 =A0 0.303969] 10000d00.uart1: ttyS1 a= t MMIO 0x10000d00 (irq =3D 29,=0A>>> base_baud =3D 2500000) is a 16550A=0A= >>> [=A0 =A0 0.313561] 10000e00.uart2: ttyS2 at MMIO 0x10000e00 (irq =3D 3= 0,=0A>>> base_baud =3D 2500000) is a 16550A=0A>>> =0A>>> =0A>>> =0A>>> [m= ike@f64-current ~/omega2/src/sys/gnu/dts/mips]$ grep serial *=0A>>> LINKIT= 7688.dts:=A0 =A0 =A0 =A0 serial0 =3D &uart2;=0A>>> LINKIT7688.dts-orig:= =A0 =A0 =A0 =A0 =A0 =A0 serial0 =3D &uart2;=0A>>> mt7620a.dtsi:=A0 =A0 =A0= =A0 =A0 serial0 =3D &uartlite;=0A>>> mt7620n.dtsi:=A0 =A0 =A0 =A0 =A0 s= erial0 =3D &uartlite;=0A>>> mt7621.dtsi:=A0 =A0 =A0 =A0 =A0 =A0 serial0 = =3D &uartlite;=0A>>> mt7628an.dtsi:=A0 =A0 =A0 =A0 =A0 serial0 =3D &uartli= te;=A0 <------ the =0A> included dtsi=0A>>> by OMEGA2.dtsi=0A>>> rt2880.= dtsi:=A0 =A0 =A0 =A0 =A0 =A0 serial0 =3D &uartlite;=0A>>> rt3050.dtsi:=A0 = =A0 =A0 =A0 =A0 =A0 serial0 =3D &uartlite;=0A>>> rt3352.dtsi:=A0 =A0 =A0 = =A0 =A0 =A0 serial0 =3D &uartlite;=0A>>> rt3883.dtsi:=A0 =A0 =A0 =A0 =A0 = =A0 serial0 =3D &uartlite;=0A>>> rt5350.dtsi:=A0 =A0 =A0 =A0 =A0 =A0 seria= l0 =3D &uartlite;=0A>>> =0A>>> =0A>>> [mike@f64-current ~/omega2/src/sys/g= nu/dts/mips]$ grep tty *=0A>>> ArcherC20i.dts:=A0 =A0 =A0 =A0 bootargs = =3D "console=3DttyS0,115200";=0A>>> CARAMBOLA.dts:=A0 =A0 =A0 =A0 =A0 boot= args =3D "console=3DttyS0,115200";=0A>>> CF-WR800N.dts:=A0 =A0 =A0 =A0 =A0= bootargs =3D "console=3DttyS0,115200";=0A>>> MicroWRT.dts:=A0 =A0 =A0 =A0= =A0 bootargs =3D "console=3DttyS0,115200";=0A>>> NA930.dts:=A0 =A0 =A0 = =A0 =A0 =A0 =A0 bootargs =3D "console=3DttyS1,57600";=0A>>> OMEGA2.dtsi:= =A0 =A0 =A0 =A0 =A0 =A0 bootargs =3D "console=3DttyS0,115200"; =0A> <-----= =0A>>> looks=0A>>> like all the others=0A>>> OY-0001.dts:=A0 =A0 =A0 =A0= =A0 =A0 bootargs =3D "console=3DttyS0,115200";=0A>>> PBR-M1.dts:=A0 =A0 = =A0 =A0 =A0 =A0 bootargs =3D "console=3DttyS0,115200";=0A>>> SK-WB8.dts:= =A0 =A0 =A0 =A0 =A0 =A0 bootargs =3D "console=3DttyS0,57600";=0A>>> ZBT-W= G2626.dts:=A0 =A0 =A0 =A0 bootargs =3D "console=3DttyS0,115200";=0A>>> ZB= T-WG3526.dts:=A0 =A0 =A0 =A0 bootargs =3D "console=3DttyS0,115200";=0A>>> = mt7620a.dtsi:=A0 =A0 =A0 =A0 =A0 bootargs =3D "console=3DttyS0,57600";=0A= >>> mt7620n.dtsi:=A0 =A0 =A0 =A0 =A0 bootargs =3D "console=3DttyS0,57600"= ;=0A>>> mt7628an.dtsi:=A0 =A0 =A0 =A0 =A0 bootargs =3D "console=3DttyS0,57= 600";=0A>>> rt2880.dtsi:=A0 =A0 =A0 =A0 =A0 =A0 bootargs =3D "console=3Dtt= yS0,57600";=0A>>> rt3050.dtsi:=A0 =A0 =A0 =A0 =A0 =A0 bootargs =3D "consol= e=3DttyS0,57600";=0A>>> rt3352.dtsi:=A0 =A0 =A0 =A0 =A0 =A0 bootargs =3D "= console=3DttyS0,57600";=0A>>> rt3883.dtsi:=A0 =A0 =A0 =A0 =A0 =A0 bootargs= =3D "console=3DttyS0,57600";=0A>>> rt5350.dtsi:=A0 =A0 =A0 =A0 =A0 =A0 bo= otargs =3D "console=3DttyS0,57600";=0A>>> (i have removed some of the resu= lts from here as most files match)=0A>>> =0A>>> On 09/05/2017 15:07, Mori = Hiroki wrote:=0A>>>> =A0 Hi. Mike=0A>>>> =0A>>>>> =A0 Starting kernel ...= =0A>>>> =A0 I think success to boot.=0A>>>> =0A>>>> =A0 Next is Entry poi= nt miss or uart console issue.=0A>>>> =0A>>>> =0A>>>> =A0 Entry point can = check on ELF kernel file by readelf command.=0A>>>> =0A>>>> =A0 Uart conso= le issue is in dts file.=0A>>>> =0A>>>> =A0 ----- Original Message -----= =0A>>>> =0A>>>>> =A0 From: Mike Wolman =0A>>>>> =A0 To= : Mori Hiroki ; Aleksandr =0A> Rybalko=0A>>> =0A>>>>> =A0 Cc: "freebsd-mips@freebsd.org"=0A>>> =0A>>>>> =A0 Date: 2017/5/9, Tue 22:42=0A>>>>> =A0 Subject: = Re: onion omega2+=0A>>>>> =0A>>>>> =0A>>>>> =A0 Ok got somewhere with this= =0A>>>>> =0A>>>>> =0A>>>>> =A0 USB_STORAGE: 1 Storage Device(s) found=0A>>= >>> =A0 Omega2 # fatload usb 0:1 0x80800000 kernel.MT7628_FDT.uImage=0A>>>= >> =A0 *=0A>>>>> =A0 *=0A>>>>> =A0 Reading file "kernel.MT7628_FDT.uImag= e"=0A>>>>> =A0 *=0A>>>>> =A0 **=0A>>>>> =A0 **=0A>>>>> =A0 **=0A>>>>> = =A0 **=0A>>>>> =A0 **=0A>>>>> =A0 **=0A>>>>> =A0 **=0A>>>>> =A0 **=0A>= >>>> =A0 **=0A>>>>> =A0 **=0A>>>>> =A0 ******=0A>>>>> =A0 ******=0A>>>>= > =0A>>> =0A> *************************************************************= ***************************************************************************= **************************************************************************= =0A>>>>> =A0 ****=0A>>>>> =A0 *=0A>>>>> =A0 FAT: 5654824 Bytes read=0A>>= >>> =A0 Omega2 # go=0A>>>>> =A0 Usage:=0A>>>>> =A0 go=A0 =A0 =A0 - start= application at address 'addr'=0A>>>>> =0A>>>>> =A0 Omega2 # go 0x80001000= =0A>>>>> =A0 ## Starting application at 0x80001000 ...=0A>>>>> =0A>>>>> = =0A>>>>> =0A>>>>> =A0 I have tried with:=0A>>>>> =0A>>>>> =A0 Omega2 # go= 0x80001100=0A>>>>> =A0 ## Starting application at 0x80001100 ...=0A>>>>> = =0A>>>>> =0A>>>>> =0A>>>>> =A0 I have tried using the 0x80001000 for fatlo= ad as well:=0A>>>>> =0A>>>>> =0A>>>>> =A0 USB_STORAGE: 1 Storage Device(s)= found=0A>>>>> =A0 Omega2 # help fatload=0A>>>>> =A0 fatload = =A0 =0A>>> =0A>>>>> =A0 [bytes]=0A>>>>> =A0 = =A0 =A0 =A0 - load binary file 'filename' from =0A> 'dev' on=0A>>>>> =A0 = 'interface'=0A>>>>> =A0 =A0 =A0 =A0 =A0 to address 'addr' from dos filesys= tem=0A>>>>> =0A>>>>> =A0 Reading file "kernel.MT7628_FDT.uImage"=0A>>>>> = =A0 *=0A>>>>> =A0 **=0A>>>>> =A0 **=0A>>>>> =A0 **=0A>>>>> =A0 **=0A>>= >>> =A0 **=0A>>>>> =A0 **=0A>>>>> =A0 **=0A>>>>> =A0 **=0A>>>>> =A0 **= =0A>>>>> =A0 **=0A>>>>> =A0 ******=0A>>>>> =A0 ******=0A>>>>> =0A>>> =0A= > *************************************************************************= ***************************************************************************= **************************************************************=0A>>>>> =A0 = ****=0A>>>>> =A0 *=0A>>>>> =A0 FAT: 5654824 Bytes read=0A>>>>> =A0 Omeg= a2 # go 0x80001100=0A>>>>> =A0 ## Starting application at 0x80001100 ...= =0A>>>>> =0A>>>>> =0A>>>>> =0A>>>>> =A0 However:=0A>>>>> =0A>>>>> =A0 Ome= ga2 # fatload usb 0:1 0x80800000 kernel.MT7628_FDT.uImage=0A>>>>> =A0 *=0A= >>>>> =A0 *=0A>>>>> =A0 Reading file "kernel.MT7628_FDT.uImage"=0A>>>>> = =A0 *=0A>>>>> =A0 **=0A>>>>> =A0 **=0A>>>>> =A0 **=0A>>>>> =A0 **=0A>>= >>> =A0 **=0A>>>>> =A0 **=0A>>>>> =A0 **=0A>>>>> =A0 **=0A>>>>> =A0 **= =0A>>>>> =A0 **=0A>>>>> =A0 ******=0A>>>>> =A0 ******=0A>>>>> =0A>>> =0A= > *************************************************************************= ***************************************************************************= **************************************************************=0A>>>>> =A0 = ****=0A>>>>> =A0 *=0A>>>>> =A0 FAT: 5654824 Bytes read=0A>>>>> =A0 Omeg= a2 # bootm 0x80800000=0A>>>>> =A0 ## Booting image at 80800000 ...=0A>>>>>= =A0 =A0 =A0 =A0 Image Name:=A0 FreeBSD=0A>>>>> =A0 =A0 =A0 =A0 Image Type= :=A0 MIPS Linux Kernel Image (uncompressed)=0A>>>>> =A0 =A0 =A0 =A0 Data S= ize:=A0 =A0 5654760 Bytes =3D=A0 5.4 MB=0A>>>>> =A0 =A0 =A0 =A0 Load Addres= s: 80001000=0A>>>>> =A0 =A0 =A0 =A0 Entry Point:=A0 80001100=0A>>>>> =A0 = =A0 =A0 =A0 Verifying Checksum ... OK=0A>>>>> =A0 OK=0A>>>>> =A0 No initr= d=0A>>>>> =A0 ## Transferring control to Linux (at address 80001100) ...= =0A>>>>> =A0 ## Giving linux memsize in MB, 128=0A>>>>> =0A>>>>> =A0 Star= ting kernel ...=0A>>>>> =0A>>>>> =0A>>>>> =A0 But it doesnt go any further= =0A>>>>> =0A>>>>> =0A>>>>> =0A>>>>> =0A>>>>> =0A>>>>> =0A>>>>> =A0 On 09/0= 5/2017 14:20, Mori Hiroki wrote:=0A>>>>>> =A0 =A0 Hi.=0A>>>>>> =0A>>>>>> = =A0 =A0 One more.=0A>>>>>> =0A>>>>>> =A0 =A0 Omega2 # fatload usb 0:1 0x8= 0800000 =0A> kernel.MT7628_FDT.uImage=0A>>>>>> =0A>>>>>> =A0 =A0 Omega2 # = bootm 0x80800000=0A>>>>>> =0A>>>>>> =A0 =A0 ----- Original Message -----= =0A>>>>>>> =A0 =A0 From: Mike Wolman =0A>>>>>>> =A0 =A0= To: Mori Hiroki ; =0A> Aleksandr=0A>>> Rybalko=0A= >>>>> =A0 =0A>>>>>>> =A0 =A0 Cc: "freebsd-mips@freebsd.or= g"=0A>>>>> =A0 =0A>>>>>>> =A0 =A0 Date: 2017/5/= 9, Tue 22:01=0A>>>>>>> =A0 =A0 Subject: Re: onion omega2+=0A>>>>>>> =0A>>>= >>>> =0A>>>>>>> =A0 =A0 No joy=0A>>>>>>> =0A>>>>>>> =A0 =A0 Omega2 # fatl= oad usb 0:1 0x80800000 =0A> kernel.MT7628_FDT.uImage=0A>>>>>>> =A0 =A0 *= =0A>>>>>>> =A0 =A0 *=0A>>>>>>> =A0 =A0 Reading file "kernel.MT7628_FDT.uI= mage"=0A>>>>>>> =A0 =A0 *=0A>>>>>>> =A0 =A0 **=0A>>>>>>> =A0 =A0 **=0A>>= >>>>> =A0 =A0 **=0A>>>>>>> =A0 =A0 **=0A>>>>>>> =A0 =A0 **=0A>>>>>>> =A0= =A0 **=0A>>>>>>> =A0 =A0 **=0A>>>>>>> =A0 =A0 **=0A>>>>>>> =A0 =A0 **= =0A>>>>>>> =A0 =A0 **=0A>>>>>>> =A0 =A0 ******=0A>>>>>>> =A0 =A0 ******= =0A>>>>>>> =0A>>> =0A> ****************************************************= ***************************************************************************= ***************************************************************************= ********=0A>>>>>>> =A0 =A0 ****=0A>>>>>>> =A0 =A0 *=0A>>>>>>> =A0 =A0 FA= T: 5654824 Bytes read=0A>>>>>>> =A0 =A0 Omega2 # bootm=0A>>>>>>> =A0 =A0 = ## Booting image at 80100000 ...=0A>>>>>>> =A0 =A0 Bad Magic Number,CE6AE7= C4=0A>>>>>>> =0A>>>>>>> =A0 =A0 I am going to get a different usb memory s= tick and =0A> rebuild=0A>>> the kernel=0A>>>>>>> =A0 =A0 later on as i go= t an error when last writing to the =0A> usb=0A>>> memory key and=0A>>>>>>= > =A0 =A0 its quite old now so just want to eliminate it from =0A> testing= .=0A>>>>>>> =0A>>>>>>> =0A>>>>>>> =A0 =A0 On 09/05/2017 13:52, Mori Hiroki= wrote:=0A>>>>>>>> =A0 =A0 =A0 Hi.=0A>>>>>>>> =0A>>>>>>>> =A0 =A0 =A0 Thi= s is my sample operation get image from =0A> network and=0A>>> boot.=0A>>>= >>>>> =A0 =A0 =A0 RT3052 # tftpboot 0x80800000=0A>>>>> =A0 Planex_MZK-WNH= _kernel.kbin.oldlzma.uboot=0A>>>>>>>> =A0 =A0 =A0 RT3052 # bootm=0A>>>>>>>= > =0A>>>>>>>> =0A>>>>>>>> =A0 =A0 =A0 I don't use USB support U-Boot. But = I =0A> think fatload=0A>>> command=0A>>>>> =A0 argument is=0A>>>>>>>> =A0= =A0 =A0 temporary memory address not kernel address.=0A>>>>>>>> =0A>>>>>>= >> =A0 =A0 =A0 How about this.=0A>>>>>>>> =0A>>>>>>>> =A0 =A0 =A0 Omega2 = # fatload usb 0:1 0x80800000=0A>>> kernel.MT7628_FDT.uImage=0A>>>>>>>> =A0= =A0 =A0 Omega2 # bootm=0A>>>>>>>> =0A>>>>>>>> =A0 =A0 =A0 ----- Original= Message -----=0A>>>>>>>>> =A0 =A0 =A0 From: Mike Wolman =0A> =0A>>>>>>>>> =A0 =A0 =A0 To: Aleksandr Rybalko =0A> ; Mori=0A>>> Hiroki=0A>>>>>>> =A0 =A0 =0A>>>>>>>>= > =A0 =A0 =A0 Cc: "freebsd-mips@freebsd.org"=0A>>>>>>> =A0 =A0 =0A>>>>>>>>> =A0 =A0 =A0 Date: 2017/5/9, Tue 20:48=0A>>>>>= >>>> =A0 =A0 =A0 Subject: Re: onion omega2+=0A>>>>>>>>> =0A>>>>>>>>> =0A>>= >>>>>>> =0A>>>>>>>>> =0A>>>>>>>>> =A0 =A0 =A0 Is it possible to exclude th= e compression =0A> of the=0A>>> kernel/image=0A>>>>> =A0 for=0A>>>>>>>> = =A0 =A0 =A0 =A0 =A0 =A0 now eg:=0A>>>>>>>>> =A0 =A0 =A0 mkimage -A mips -C= none -O linux -T =0A> kernel -a=0A>>> 0x80001000 -e=0A>>>>>>>> =A0 =A0 = =A0 =A0 =A0 =A0 0x80001100 -n "FreeBSD" -d=0A>>> kernel.MT7628_FDT=0A>>>>>= >>> =A0 =A0 =A0 =A0 =A0 =A0 kernel.MT7628_FDT.uImage=0A>>>>>>>>> =A0 =A0 = =A0 I have just tried the above but when =0A> booting I get=0A>>> a Bad= =0A>>>>> =A0 Magic=0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 Number.=0A>>>>>>>>> = =A0 =A0 =A0 Omega2 # fatload usb 0:1 0x80001000=0A>>> kernel.MT7628_FDT.u= Image=0A>>>>>>>>> =A0 =A0 =A0 *=0A>>>>>>>>> =A0 =A0 =A0 *=0A>>>>>>>>> =A0= =A0 =A0 Reading file =0A> "kernel.MT7628_FDT.uImage"=0A>>>>>>>>> =A0 =A0 = =A0 *=0A>>>>>>>>> =A0 =A0 =A0 **=0A>>>>>>>>> =A0 =A0 =A0 **=0A>>>>>>>>> = =A0 =A0 =A0 **=0A>>>>>>>>> =A0 =A0 =A0 **=0A>>>>>>>>> =A0 =A0 =A0 **=0A>= >>>>>>>> =A0 =A0 =A0 **=0A>>>>>>>>> =A0 =A0 =A0 **=0A>>>>>>>>> =A0 =A0 = =A0 **=0A>>>>>>>>> =A0 =A0 =A0 **=0A>>>>>>>>> =A0 =A0 =A0 **=0A>>>>>>>>>= =A0 =A0 =A0 ******=0A>>>>>>>>> =A0 =A0 =A0 ******=0A>>>>>>>>> =0A>>> =0A= > *************************************************************************= ***************************************************************************= **************************************************************=0A>>>>>>>>> = =A0 =A0 =A0 ****=0A>>>>>>>>> =A0 =A0 =A0 *=0A>>>>>>>>> =A0 =A0 =A0 FAT: = 5654824 Bytes read=0A>>>>>>>>> =A0 =A0 =A0 Omega2 # bootm 0x80001100=0A>>>= >>>>>> =A0 =A0 =A0 ## Booting image at 80001100 ...=0A>>>>>>>>> =A0 =A0 = =A0 Bad Magic Number,1C994480=0A>>>>>>>>> =A0 =A0 =A0 Omega2 #=0A>>>>>>>>= > =0A>>>>>>>>> =0A>>>>>>>>> =A0 =A0 =A0 I have seen other examples startin= g a =0A> program=0A>>> directly with=0A>>>>> =A0 going to=0A>>>>>>>> =A0 = =A0 =A0 =A0 =A0 =A0 the address but this didnt work either:=0A>>>>>>>>> =A0= =A0 =A0 Omega2 # go 0x80001100=0A>>>>>>>>> =A0 =A0 =A0 ## Starting appli= cation at 0x80001100 ...=0A>>>>>>>>> =0A>>>>>>>>> =A0 =A0 =A0 omega freeze= s here.=0A>>>>>>>>> =0A>>>>>>>>> =0A>>>>>>>>> =0A>>>>>>>>> =0A>>>>>>>>> =A0= =A0 =A0 On 09/05/2017 10:12, Aleksandr Rybalko =0A> wrote:=0A>>>>>>>>> = =0A>>>>>>>>> =A0 =A0 =A0 Fix things in order :)=0A>>>>>>>> =A0 =A0 =A0 Cu= rrently you have problem with LZMA, serial =0A> port=0A>>> later.=0A>>>>>>= >> =A0 =A0 =A0 So, find version of lzma used to build linux =0A> firmware,= =0A>>> MIPS=0A>>>>> =A0 routers world=0A>>>>>>> =A0 =A0 use about 5 inco= mpatible versions. One of them, you =0A> can find=0A>>> here:=0A>>>>>>> = =A0 =A0 =0A>>> http://project.zrouter.org/hg/zrouter/file/9ac53695a44d/too= ls/oldlzma=0A>>>>>>>>>> =0A>>>>>>>>>> =A0 =A0 =A0 2017-05-09 7:03 GMT+03:0= 0 Mori Hiroki=0A>>>>>>> =A0 =A0 :=0A>>>>>>>>>> =A0 = =A0 =A0 Hi Mike=0A>>>>>>>>>>> =A0 =A0 =A0 Could you show u-boot printenv = =0A> command=0A>>> result.=0A>>>>>>>>>>> =A0 =A0 =A0 Thanks=0A>>>>>>>>>>>= =0A>>>>>>>>>>> =0A>>>>>>>>>>> =A0 =A0 =A0 ----- Original Message -----=0A= >>>>>>>>>>>> =A0 =A0 =A0 From: Mike Wolman=0A>>> =0A>>= >>>>>>>>>> =A0 =A0 =A0 To: Mori Hiroki=0A>>> ;=0A>= >>>>>> =A0 =A0 "freebsd-mips@freebsd.org"=0A>>> =0A>>>>>>>>>>>> =A0 =A0 =A0 Cc:=0A>>>>>>>>>>>> =A0 =A0 =A0 Date: 2017/5/= 9, Tue 10:30=0A>>>>>>>>>>>> =A0 =A0 =A0 Subject: Re: onion omega2+=0A>>>>>= >>>>>>> =0A>>>>>>>>>>>> =A0 =A0 =A0 Hi Mori,=0A>>>>>>>>>>>> =0A>>>>>>>>>>>= > =A0 =A0 =A0 When I compiled the =0A> world/kernel etc I=0A>>> used:=0A>= >>>>>>>>>>> =A0 =A0 =A0 X_DTS_FILE=3DOMEGA2P.dts=0A>>> KERNCONF=3DMT7628_= FDT=0A>>>>>>>>>>>> =A0 =A0 =A0 ../freebsd-wifi-build/build/ =0A> bin/build= =0A>>> ralink=0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 b= uildkernel=0A>>>>>>>>>>>> =A0 =A0 =A0 I checked the serial stuff =0A> was = the same=0A>>> as the=0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 other configs in:=0A>>>>>>>>>>>> =A0 =A0 =A0 https://github.com/fre= ebsd/=0A>>> freebsd-wifi-build/=0A>>>>>>>>>>>> =A0 =A0 =A0 and they looke= d the same.=0A>>>>>>>>>>>> =0A>>>>>>>>>>>> =A0 =A0 =A0 The OMEGA2.dtsi fil= e has:=0A>>>>>>>>>>>> =0A>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 chos= en {=0A>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 bootar= gs =3D=0A>>>>>>> =A0 =A0 "console=3DttyS0,115200";=0A>>>>>>>>>>>> =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 };=0A>>>>>>>>>>>> =0A>>>>>>>>>>>> =0A>>>>>>>>>>>> = =A0 =A0 =A0 And mt7628an.dtsi has:=A0 =0A> serial0 =3D=0A>>> &uartlite;= =0A>>>>>>>>>>>> =A0 =A0 =A0 I dont think im getting as =0A> far as=0A>>> = worrying about=0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 t= he serial console at=0A>>>>>>>>>>>> =A0 =A0 =A0 the moment and need to get= =0A> the kernel=0A>>> to=0A>>>>> =A0 uncompress=0A>>>>>>>> =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 first.=0A>>>>>>>>>>>> =A0 =A0 =A0 Mike= .=0A>>>>>>>>>>>> =0A>>>>>>>>>>>> =0A>>>>>>>>>>>> =A0 =A0 =A0 On 09/05/2017= 02:20, Mori =0A> Hiroki wrote:=0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 Hi Mike= =0A>>>>>>>>>>>>> =0A>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 In FreeBSD is use =0A= > serial0 dts=0A>>> item to=0A>>>>> =A0 console.=0A>>>>>>>>>>>>> =A0 =A0 = =A0 =A0 =A0 I think good to use =0A> this at=0A>>> start.=0A>>>>>>>>>>>>> = =A0 =A0 =A0 =A0 =A0 =0A> freebsd/sys/gnu/dts/mips/=0A>>> MT7628.dts=0A>>>>= >>>>>>>>> =A0 =A0 =A0 =A0 =A0 ----- Original Message =0A> -----=0A>>>>>>>>>= >>>>> =A0 =A0 =A0 =A0 =A0 From: Mike Wolman=0A>>>>> =A0 =0A>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 To: Mori Hiroki=0A>>>>> =A0 ;=0A>>>>>>>>>>>> =A0 =A0 =A0 =0A> "freebsd-mips@freebsd.org= "=0A>>>>>>> =A0 =A0 =0A>>>>>>>>>>>>>> =A0 =A0 = =A0 =A0 =A0 Cc:=0A>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 Date: 2017/5/9, =0A> T= ue 09:25=0A>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 Subject: Re: onion =0A> omega= 2+=0A>>>>>>>>>>>>>> =0A>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 Hi Mori,=0A>>>>>>= >>>>>>>> =0A>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 I grabbed the dts =0A> files= =0A>>> from:=0A>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =0A> https://github.com/= WereCatf/=0A>>>>>>> =A0 =A0 source/tree/image/target/ linux/ramips/dts=0A>= >>>>>>>>>>> =A0 =A0 =A0 https://github.com/WereCatf/=0A>>>>> =A0 source/bl= ob/image/target/=0A>>>>>>> =A0 =A0 linux/ramips/dts/OMEGA2P.dts=0A>>>>>>>>= >>>> =A0 =A0 =A0 https://github.com/WereCatf/=0A>>>>> =A0 source/blob/imag= e/target/=0A>>>>>>> =A0 =A0 linux/ramips/dts/OMEGA2.dtsi=0A>>>>>>>>>>>>>> = =A0 =A0 =A0 =A0 =A0 If this is of any =0A> use from=0A>>> the default=0A>>= >>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 linux install on the= flash:=0A>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =0A> root@Omega-12BF:/proc# ca= t=0A>>> /proc/mtd=0A>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 dev:=A0 =A0 size=A0= =0A> erasesize=0A>>> name=0A>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 mtd0: 0003= 0000 =0A> 00010000=0A>>>>> =A0 "u-boot"=0A>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 = =A0 mtd1: 00010000 =0A> 00010000=0A>>>>> =A0 "u-boot-env"=0A>>>>>>>>>>>>>>= =A0 =A0 =A0 =A0 =A0 mtd2: 00010000 =0A> 00010000=0A>>>>> =A0 "factory"=0A= >>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 mtd3: 01fb0000 =0A> 00010000=0A>>>>> =A0= "firmware"=0A>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 mtd4: 00148842 =0A> 00010= 000=0A>>>>> =A0 "kernel"=0A>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 mtd5: 01e677= be =0A> 00010000=0A>>>>> =A0 "rootfs"=0A>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0= mtd6: 01950000 =0A> 00010000=0A>>>>> =A0 "rootfs_data"=0A>>>>>>>>>>>>>> = =A0 =A0 =A0 =A0 =A0 btw after posting =0A> i spotted=0A>>> and error=0A>>>= >> =A0 in=0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 what = i did with:=0A>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 mkimage -A mips -O =0A> li= nux -T=0A>>> kernel -C=0A>>>>> =A0 lzma=0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 \=0A>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 = -a 0x80001000 =0A> -e=0A>>> 0x80001100 \=0A>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 = =A0 =A0 =A0 -n =0A> "FreeBSD"=0A>>> -d=0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 kernel.MT7628_FDT.lzma=0A>>>>>>>>>>>>>> =A0 =A0 =A0= =A0 =A0 =0A>>> kernel.MT7628_FDT.ulzma.uImage=0A>>>>>>>>>>>>>> =A0 =A0 = =A0 =A0 =A0 I have redone this =0A> using the=0A>>> correct=0A>>>>>>>> =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 compressed kernel ie:=0A>>>>>>= >>>>>>>> =A0 =A0 =A0 =A0 =A0 mkimage -A mips -O =0A> linux -T=0A>>> kernel= -C=0A>>>>> =A0 lzma=0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 \=0A>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 -a 0x80001000 =0A> -= e=0A>>> 0x80001100 \=0A>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 -n =0A> = "FreeBSD"=0A>>> -d=0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 kernel.MT7628_FDT.ulzma=0A>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =0A>>> ke= rnel.MT7628_FDT.ulzma.uImage=0A>>>>>>>>>>>>>> =0A>>>>>>>>>>>>>> =A0 =A0 =A0= =A0 =A0 But this didnt =0A> work.=0A>>>>>>>>>>>>>> =0A>>>>>>>>>>>>>> =0A>>= >>>>>>>>>>>> =0A>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 On 09/05/2017 =0A> 01:17= , Mori=0A>>> Hiroki=0A>>>>> =A0 wrote:=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 = =A0 Hi.=0A>>>>>>>>>>>>>>> =0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 I think = if =0A> U-Boot work=0A>>> memory=0A>>>>> =A0 make=0A>>>>>>>> =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 broken then=0A>>>>>>>>>>>>>>> =A0 =A0 = =A0 =A0 =A0 Uncompressing =0A> Kernel=0A>>> Image is NG.=0A>>>>>>>>>>>>>>= > =A0 =A0 =A0 =A0 =A0 Some ARM =0A> U-Boot is use=0A>>> top=0A>>>>> =A0 = address=0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 in work = memory.=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 If this case =0A> your=0A>>>= kernel start=0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 a= ddress to move to=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 after work =0A> me= mory. But=0A>>> I never=0A>>>>> =A0 see=0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 in MIPS.=0A>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 = And What is =0A> set=0A>>> FDT_DTS_FILE=A0 in=0A>>>>>>>> =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 your kernel configuration ?=0A>>>>>>>>>>>>>= >> =A0 =A0 =A0 =A0 =A0 ----- =0A> Original Message=0A>>> -----=0A>>>>>>>>= >>>>>>>> =A0 =A0 =A0 =A0 =A0 From: =0A> Mike Wolman=0A>>>>>>> =A0 =A0 =0A>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 To:=0A>>> freebsd= -mips@freebsd.org=0A>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 Cc:=0A>>>>>>>>>>>= >>>>> =A0 =A0 =A0 =A0 =A0 Date: =0A> 2017/5/9, Tue=0A>>> 07:48=0A>>>>>>>>= >>>>>>>> =A0 =A0 =A0 =A0 =A0 Subject: =0A> Re: onion=0A>>> omega2+=0A>>>>= >>>>>>>>>>>> =0A>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 More info =0A> in cas= e=0A>>> anyone can=0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 point me in the right =0A> direction.=0A>>>>>>>>>>>>>>>> =A0 =A0 =A0 = =A0 =A0 I have =0A> found:=0A>>>>>>>>>>>>>>>> =0A>>>>>>>>>>>>>>>> =A0 =A0 = =A0 =A0 =A0 =0A>>> https://forum.openwrt.org/=0A>>>>>>> =A0 =A0 viewtopic= .php?id=3D53865=0A>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 I have =0A> tried= =0A>>> changing how=0A>>>>> =A0 lzma=0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 compresses the kernel by=0A>>>>>>>>>>>> =A0 =A0 =A0= adding -d20 to=0A>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 the build =0A> scr= ipts=0A>>> eg:=0A>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =0A> /usr/local/bin/= lzma=0A>>> e=0A>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =0A>>>>>>>>>>>> =A0 =A0 = =A0 =0A> /home/mike/omega2/src/../root/=0A>>>>>>> =A0 =A0 mipsel_ap/boot/k= ernel.MT7628_ FDT/kernel=0A>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 \=0A>>>>>>>>>= >>>>>>> =A0 =A0 =A0 =A0 =A0 =0A>>> /home/mike/omega2/src/../=0A>>>>>>> =A0= =A0 tftpboot/kernel.MT7628_FDT. lzma=0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 -d20=0A>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 This d= id =0A> not work.=0A>>>>>>>>>>>>>>>> =0A>>>>>>>>>>>>>>>> =0A>>>>>>>>>>>>>>>= > =A0 =A0 =A0 =A0 =A0 Looking =0A> at the=0A>>> onion omega=0A>>>>> =A0 = conf=0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 I see that = it uses mkuzip =0A> and=0A>>>>>>>>>>>> =A0 =A0 =A0 not lzma=0A>>>>>>>>>>>>= >>>> =A0 =A0 =A0 =A0 =A0 with the =0A> following=0A>>> settings:=0A>>>>>>= >>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =0A>>>>> =A0 X_FSIMAGE_CMD=3D"mkuzip"=0A>>>= >>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =0A>>> X_FSIMAGE_ARGS=3D"-L -d -s=0A>>>>= > =A0 65536=0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 -v"= =0A>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =0A>>>>> =A0 X_FSIMAGE_SUFFIX=3D".= ulzma"=0A>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 So tried =0A> the=0A>>> fol= lowing:=0A>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 mkuzip -L =0A> -d -s=0A>>> = 65536 -v -o=0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ker= nel.MT7628_FDT.ulzma=0A>>>>>>>>>>>> =A0 =A0 =A0 kernel.MT7628_FDT=0A>>>>>>= >>>>>>>>>> =A0 =A0 =A0 =A0 =A0 mkimage =0A> -A mips -O=0A>>> linux -T=0A>= >>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 kernel -C lzma \=0A= >>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 -a =0A> 0x80001000=0A>>> -e= =0A>>>>> =A0 0x80001100=0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 \=0A>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 -n=0A>>> "FreeB= SD" -d=0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 kernel.MT= 7628_FDT.lzma=0A>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =0A>>>>> =A0 kernel.M= T7628_FDT.ulzma.uImage=0A>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 But this =0A= > did not=0A>>> work either.=0A>>>>>>>>>>>>>>>> =0A>>>>>>>>>>>>>>>> =0A>>>= >>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 On =0A> 08/05/2017=0A>>> 19:41,=0A>>>>>= =A0 Aleksandr=0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = Rybalko wrote:=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 Hi =0A> Mike!= =0A>>>>>>>>>>>>>>>>> =0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 I =0A> s= ee you=0A>>> have no=0A>>>>> =A0 "OK"=0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 after=0A>>>>>>>>>>>> =A0 =A0 =A0 "Uncompressing Ke= rnel=0A>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 Image=0A>>>>>>>>>>>>>>>> =A0 =A0 = =A0 =A0 =A0 =0A> ...", so=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =0A> = first point=0A>>> uboot=0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 decompressor fail.=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 Wh= y =0A> fail?=0A>>> Because you=0A>>>>> =A0 have=0A>>>>>>>> =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 wrong base address in image:=0A>>>>>>>>= >>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A> Load=0A>>> Address:=0A>>>>> =A0= fffffff2=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A> Entry=0A>>>= Point:=0A>>>>> =A0 fffffff2=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 = =0A> MIPS32=0A>>> machines have=0A>>>>> =A0 RAM=0A>>>>>>>> =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 mapped to 0x80000000 =0A> address,=0A>>= >>>>>>>>>> =A0 =A0 =A0 so adding=0A>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 its= =0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =0A> size, you=0A>>> will get= max=0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 address (if= 16MB, it will be=0A>>>>>>>>>>>> =A0 =A0 =A0 0x81000000),=0A>>>>>>>>>>>>>>= =A0 =A0 =A0 =A0 =A0 but=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 you = =0A> uboot=0A>>> image was=0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 created with 0xfffffff2.=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 = =A0 =A0 =0A> Even more,=0A>>> unpacked=0A>>>>> =A0 kernel=0A>>>>>>>> =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 expects it will be called at=0A= >>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 0x80001100. so=0A>>>>>>>>>>>>>>>>> =A0 = =A0 =A0 =A0 =A0 =A0 if =0A> you have=0A>>> ELF kernel=0A>>>>>>>> =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (file with ELF header, like=0A>>>>>= >>>>>>> =A0 =A0 =A0 every=0A>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 executable)= =0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =0A> that file=0A>>> have to = be=0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 loaded at (0x= 80001100 -=0A>>>>>>>>>>>> =A0 =A0 =A0 ELF_HEADER_SIZE).=0A>>>>>>>>>>>>>>>>= > =A0 =A0 =A0 =A0 =A0 =A0 In =0A> most cases=0A>>> it will=0A>>>>> =A0 b= e=0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 0x80001100 - 0= x100 =3D=0A>>>>>>>>>>>> =A0 =A0 =A0 0x80001000. But=0A>>>>>>>>>>>>>> =A0 = =A0 =A0 =A0 =A0 sometime=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 (I = =0A> did not=0A>>> found why)=0A>>>>> =A0 it=0A>>>>>>>> =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 can be 0x20, you can find it=0A>>>>>>>>>>>>= =A0 =A0 =A0 by looking=0A>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 at=0A>>>>>>>>= >>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =0A> .text section=0A>>> in=0A>>>>> =A0 = readelf=0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 -S.=0A>= >>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 So =0A> if you=0A>>> have kernel= =0A>>>>> =A0 with=0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 entry point 0x80001100 and=0A>>>>>>>>>>>> =A0 =A0 =A0 .text=0A>>>>>>>>= >>>>>> =A0 =A0 =A0 =A0 =A0 segment=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 = =A0 =0A> offset 0x100,=0A>>> you have=0A>>>>> =A0 to=0A>>>>>>>> =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 create uboot image with load=0A>>>>= >>>>>>>> =A0 =A0 =A0 address=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 = =0A> 0x80001000=0A>>> and entry=0A>>>>> =A0 point=0A>>>>>>>> =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 0x80001100.=0A>>>>>>>>>>>>>>>>> =A0 =A0= =A0 =A0 =A0 =A0 If =0A> that step=0A>>> successful=0A>>>>>>>> =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 you will get:=0A>>>>>>>>>>>>>>>>> = =A0 =A0 =A0 =A0 =A0 =A0 =0A>>> /Uncompressing Kernel=0A>>>>>>>> =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Image/ ... OK=0A>>>>>>>>>>>>>>>>> = =A0 =A0 =A0 =A0 =A0 =A0 =0A> Starting=0A>>> kernel ...=0A>>>>>>>>>>>>>>>>>= =A0 =A0 =A0 =A0 =A0 =A0 =0A> Last line=0A>>> mean, uboot=0A>>>>> =A0 did= =0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 jump into kerne= l code.=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =0A> Good luck.=0A>>>>>= >>>>>>>>>>>> =0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =0A> 2017-05-07= =0A>>> 18:20=0A>>>>> =A0 GMT+03:00=0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 Mike Wolman=0A>>>>>>>>>>>> =A0 =A0 =A0 >>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =0A>>>>>>> =A0 =A0 >:=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =0A> Hi,=0A>>>>>>>>>>>>>>>>> =0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =0A> I am=0A>>> trying to get=0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 FreeBSD working on this =0A> board -=0A>>>>>>>>>>>>= =A0 =A0 =A0 I think I=0A>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 am=0A>>>>>>>>>= >>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A> almost=0A>>> there in=0A>>>>= >>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 getting it working but= need =0A> some=0A>>>>>>>>>>>> =A0 =A0 =A0 help please.=0A>>>>>>>>>>>>>>>>= > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A> I have=0A>>> followed=0A>>>>>>>> = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 instructions from the=0A>>>= >>>>>>>>> =A0 =A0 =A0 freebsd-wifi-build and=0A>>>>>>>>>>>>>>>>> =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =0A> *think* I=0A>>> have got=0A>>>>>>>> =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 everything correct - I am =0A> tryi= ng=0A>>>>>>>>>>>> =A0 =A0 =A0 to do=0A>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 t= his on=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A> a CURRENT= =0A>>> setup:=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A> Fre= eBSD=0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 f64-current= .mw.office =0A> 12.0-CURRENT=0A>>> FreeBSD=0A>>>>>>>>>>>>>> =A0 =A0 =A0 = =A0 =A0 12.0-CURRENT #0=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =0A> r317887:=0A>>> Sun May=A0 7=0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 03:20:34 UTC 2017=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =0A>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =0A> mike@f64-current.mw.= office:/=0A>>>>>>> =A0 =A0 usr/obj/usr/src/sys/GENERIC- NODEBUG amd64=0A>>= >>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A> $ cat=0A>>>>>>>> =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ~/.freebsd-wifi-build- =0A> set= tings.cfg=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A>>>>> =A0 = X_SKIP_MORE_STUFF=3DYES=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A> X_EXTR= A_SRC_CONF=3D~/omega2/src. conf=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =0A> $ cat=0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 ~/omega2/src.conf=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =0A>>> WITHOUT_CLANG=3DYES=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =0A>>>>> =A0 WITHOUT_CLANG_FULL=3DYES=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =0A> get dts=0A>>> files from=0A>>>>>>>> =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 thread=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =0A>>>>>>>>>>>> =A0 =A0 =A0 http://community.onion.io/=0A>>= >>> =A0 topic/1099/openwrt-on-the-=0A>>>>>>> =A0 =A0 omega-2/8=0A>>>>>>>>= >>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0= =0A>>> >>>>>> =A0 =A0 topic/1099/openwrt-= on-the- omega-2/8>=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A>= cd=0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A> ~/omega= 2/src/sys/gnu/dts/mips=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =0A> fetch=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A>>>>>>>>>>>> = =A0 =A0 =A0 https://raw.githubusercontent.=0A>>>>> =A0 com/WereCatf/source= /image/=0A>>>>>>> =A0 =A0 target/linux/ramips/dts/ OMEGA2.dtsi=0A>>>>>>>>>= >>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A>>>>>>>>>>>> =A0 =A0 =A0 githubusercontent.com/=0A>>>>>>> =A0 =A0 WereCatf/source/image/t= arget/=0A>>> linux/ramips/dts/OMEGA2.dtsi>=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =0A> fetch=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0= =A0 =0A>>>>>>>>>>>> =A0 =A0 =A0 https://raw.githubusercontent.=0A>>>>> =A0= com/WereCatf/source/image/=0A>>>>>>> =A0 =A0 target/linux/ramips/dts/ OM= EGA2.dts=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A>>>>>>>>>>>> = =A0 =A0 =A0 githubusercontent.com/=0A>>>>>>> =A0 =A0 W= ereCatf/source/image/target/ =0A> linux/ramips/dts/OMEGA2.dts>=0A>>>>>>>>>>= >>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A> fetch=0A>>>>>>>>>>>>>>>>> =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =0A>>>>>>>>>>>> =A0 =A0 =A0 https://raw.githubuserc= ontent.=0A>>>>> =A0 com/WereCatf/source/image/=0A>>>>>>> =A0 =A0 target/l= inux/ramips/dts/ OMEGA2P.dts=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =0A>>>>>>>>>>>> =A0 =A0 =A0 githubusercontent.com/= =0A>>>>>>> =A0 =A0 WereCatf/source/image/target/=0A>>> linux/ramips/dts/O= MEGA2P.dts>=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A>>>>> = =A0 X_DTS_FILE=3DOMEGA2P.dts=0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 KERNCONF=3DMT7628_FDT=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= ../freebsd-wifi-build/build/ =0A> bin/build=0A>>> ralink=0A>>>>>>>>>>>> = =A0 =A0 =A0 buildworld=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =0A>>>>> =A0 X_DTS_FILE=3DOMEGA2P.dts=0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 KERNCONF=3DMT7628_FDT=0A>>>>>>>>>>>>>>>>> =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 ../freebsd-wifi-build/build/ =0A> bin/build=0A>>> ralink=0A>>>>>>= >>>>>> =A0 =A0 =A0 buildkernel=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =0A>>>>> =A0 X_DTS_FILE=3DOMEGA2P.dts=0A>>>>>>>> =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 KERNCONF=3DMT7628_FDT=0A>>>>>>>>>>>>>>>>> = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 ../freebsd-wifi-build/build/ =0A> bin/build=0A>>> ralink= =0A>>>>>>>>>>>> =A0 =A0 =A0 installworld=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =0A>>>>> =A0 X_DTS_FILE=3DOMEGA2P.dts=0A>>>>>>>> =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 KERNCONF=3DMT7628_FDT=0A>>>>>>>= >>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 ../freebsd-wifi-build/build/ =0A> bin/build=0A>= >> ralink=0A>>>>>>>>>>>> =A0 =A0 =A0 installkernel=0A>>>>>>>>>>>>>>>>> = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A>>>>> =A0 X_DTS_FILE=3DOMEGA2P.dts=0A>>= >>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 KERNCONF=3DMT7628_FD= T=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A>>>>>>>> =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ../freebsd-wifi-build/build/ =0A> b= in/build=0A>>> ralink=0A>>>>>>>>>>>> =A0 =A0 =A0 distribution=0A>>>>>>>>>= >>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A>>>>> =A0 X_DTS_FILE=3DOMEGA2P= .dts=0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 KERNCONF=3D= MT7628_FDT=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A>>>>>>>> = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ../freebsd-wifi-build/build= / =0A> bin/build=0A>>> ralink=0A>>>>>>>>>>>> =A0 =A0 =A0 mfsroot=0A>>>>>>= >>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A>>>>> =A0 X_DTS_FILE=3DOMEG= A2P.dts=0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 KERNCONF= =3DMT7628_FDT=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A>>>>>>= >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ../freebsd-wifi-build/bu= ild/ =0A> bin/build=0A>>> ralink=0A>>>>>>>>>>>> =A0 =A0 =A0 fsimage=0A>>>= >>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A>>>>> =A0 X_DTS_FILE=3DO= MEGA2P.dts=0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 KERNC= ONF=3DMT7628_FDT=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A>>>= >>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ../freebsd-wifi-build= /build/ =0A> bin/build=0A>>> ralink=0A>>>>> =A0 uboot=0A>>>>>>>>>>>>>>>>>= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A> Create=0A>>> flash:=0A>>>>>>>>>>>>>>= >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 X_FLASH=3Dkernel.MT7628_FDT. =0A> lzma.flash=0A>>>>>>>= >>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A> dd=0A>>> if=3D/dev/zero=0A= >>>>> =A0 bs=3D$((=0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 0x200000 )) count=3D1=0A>>>>>>>>>>>> =A0 =A0 =A0 of=3D${X_FLASH}=0A>>>= >>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A> dd=0A>>>>>>>> =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 if=3Dkernel.MT7628_FDT.lzma. =0A> u= Image=0A>>> of=3D${X_FLASH}=0A>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 conv=3Dno= trunc=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A> dd if=3D=0A>= >>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 mfsroot-ralink.img.= lzma =0A>>> =0A>>> ${X_FLASH}=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =0A> $ readelf=0A>>> -h=0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 kernel.MT7628_FDT | grep =0A> Entry=0A>>>>>>>>>>>>>>>>> = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A> =A0 Entry=0A>>> point=0A>>>>>>>> =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 address:=A0 =A0 =A0 =A0 =A0 = =A0 =A0 =0A> 0x80001100=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =0A> Now on=0A>>> the omega=0A>>>>> =A0 over=0A>>>>>>>> =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 serial - I didnt get the=0A>>>>>>>>>>>> =A0= =A0 =A0 network=0A>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 expansion=0A>>>>>>>>= >>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A> doc thing=0A>>> so am=0A>>>= >> =A0 doing=0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 st= uff with usb rather than=0A>>>>>>>>>>>> =A0 =A0 =A0 tftp=0A>>>>>>>>>>>>>>>= >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A> I am not=0A>>> 100% sure=0A>>>>>>>= > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 about the 0x80001100 and = the=0A>>>>>>>>>>>> =A0 =A0 =A0 fatload and=0A>>>>>>>>>>>>>> =A0 =A0 =A0 = =A0 =A0 have=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A> tried= =0A>>> this=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A> Omega= 2 #=0A>>> fatload=0A>>>>> =A0 usb=0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 0:1 0x80001100=0A>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =0A= >>> /kernel.MT7628_FDT.lzma.flash=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =0A> *=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A>= *=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A> Reading=0A>>> = file=0A>>>>>>>>>>>> =A0 =A0 =A0 =0A> "/kernel.MT7628_FDT.lzma.=0A>>> flash= "=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A> *=0A>>>>>>>>>>>>= >>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A> **=0A>>>>>>>>>>>>>>>>> =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =0A> **=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =0A> **=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A> *= *****=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A>>>>>>>>>>>> =A0 = =A0 =A0 =0A> ******************************=0A>>>>>>> =A0 =A0 ************= ****************** =0A> ******************************=0A>>>>>>> =A0 =A0 *= ***************************** =0A> *********************=0A>>>>>>>>>>>>>>>>= > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A> ******=0A>>>>>>>>>>>>>>>>> =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =0A> *=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =0A> FAT:=0A>>> 2108463 Bytes=0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 read=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =0A> Omega2 #=0A>>> bootm=0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 0x80001100=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =0A> ##=0A>>> Booting image at=0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 80001100 ...=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =0A> =A0 =A0 Image=0A>>> Name:=0A>>>>>>>> =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 FreeBSD=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =0A> =A0 =A0 Image=0A>>> Type:=0A>>>>> =A0 MIPS=0A>>>>>>= >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Linux Kernel Image (lzma= =0A>>>>>>>>>>>> =A0 =A0 =A0 compressed)=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =0A> =A0 =A0 Data=0A>>> Size:=0A>>>>>>>> =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 1365122 Bytes =3D=A0 1.3 MB=0A>>>>>>>>>= >>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A> =A0 =A0 Load=0A>>> Address:= =0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 fffffff2=0A>>>>= >>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A> =A0 =A0 Entry=0A>>> Poi= nt:=0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 fffffff2=0A>= >>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A> =A0 =A0 =0A>>> Verif= ying=0A>>>>> =A0 Checksum=0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 ... OK=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A>= =A0 =A0 =0A>>> Uncompressing=0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 Kernel Image ...=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =0A> At this=0A>>> point=0A>>>>> =A0 nothing=0A>>>>>>>> =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 happens and console hangs -=0A>= >>>>>>>>>>> =A0 =A0 =A0 note in=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =0A>>> OMEGA2.dtsithe=0A>>>>> =A0 console=0A>>>>>>>> =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 is set to ttyS0:=0A>>>>>>>>>>>>>>>>= > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A> bootargs=0A>>> =3D=0A>>>>>>>> =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A> "console=3DttyS0,115200";= =0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A> I have=0A>>> als= o tried=0A>>>>> =A0 with=0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 just kernel.MT7628_FDT and=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =0A>>>>> =A0 kernel.MT7628_FDT.lzma=0A>>>>>>>> =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 but both fail:=0A>>>>>>>>>>>>>>>>> =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A> Omega2 #=0A>>> fatload=0A>>>>> =A0 usb= =0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 0:1 0x80001100= =0A>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =0A>>> /kernel.MT7628_FDT.lzma.uImag= e=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A> *=0A>>>>>>>>>>>>= >>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A> *=0A>>>>>>>>>>>>>>>>> =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =0A> Reading=0A>>> file=0A>>>>>>>>>>>> =A0 =A0 =A0= =0A> "/kernel.MT7628_FDT.lzma.=0A>>> uImage"=0A>>>>>>>>>>>>>>>>> =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =0A> *=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =0A> **=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A> **= =0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A> ******=0A>>>>>>>>= >>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A>>>>>>>>>>>> =A0 =A0 =A0 =0A> ****= **************************=0A>>>>>>> =A0 =A0 *****************************= * =0A> ******************************=0A>>>>>>> =A0 =A0 ******************= ************ ******=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A= >>> **********=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A> *= =0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A> FAT:=0A>>> 13651= 86 Bytes=0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 read=0A= >>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A> Omega2 #=0A>>> boot= m=0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 0x80001100=0A>= >>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A> ##=0A>>> Booting ima= ge at=0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 80001100 .= ..=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A> =A0 =A0 Image= =0A>>> Name:=0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Fr= eeBSD=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A> =A0 =A0 Imag= e=0A>>> Type:=0A>>>>> =A0 MIPS=0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 Linux Kernel Image (lzma=0A>>>>>>>>>>>> =A0 =A0 =A0 compr= essed)=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A> =A0 =A0 Dat= a=0A>>> Size:=0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 1= 365122 Bytes =3D=A0 1.3 MB=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =0A> =A0 =A0 Load=0A>>> Address:=0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 fffffff2=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =0A> =A0 =A0 Entry=0A>>> Point:=0A>>>>>>>> =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 fffffff2=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =0A> =A0 =A0 =0A>>> Verifying=0A>>>>> =A0 Checksum=0A>>>>= >>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ... OK=0A>>>>>>>>>>>>>= >>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A> =A0 =A0 =0A>>> Uncompressing=0A>= >>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Kernel Image ...=0A= >>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A> A few=0A>>> comment= s on=0A>>>>> =A0 the=0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 hardware for anyone who =0A> wants=0A>>>>>>>>>>>> =A0 =A0 =A0 to g= et=0A>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 one:=0A>>>>>>>>>>>>>>>>> =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =0A> Get the=0A>>> expansion=0A>>>>> =A0 dock=0A>= >>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 with serial port ac= cess -=0A>>>>>>>>>>>> =A0 =A0 =A0 the power=0A>>>>>>>>>>>>>> =A0 =A0 =A0 = =A0 =A0 dock=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A> does = not=0A>>> provide=0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 serial access - i think it =0A> is=0A>>>>>>>>>>>> =A0 =A0 =A0 possible= to=0A>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 use an=0A>>>>>>>>>>>>>>>>> =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =0A> ftdi ttl=0A>>> serial=0A>>>>>>>> =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 chip/cable but have not =0A> tried.=0A= >>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A> Stupidly=0A>>> I fo= rgot=0A>>>>> =A0 this=0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 only has wifi access so you=0A>>>>>>>>>>>> =A0 =A0 =A0 are not=0A>= >>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 able to=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =0A> tftp boot=0A>>> this=0A>>>>> =A0 without=0A>>>>>= >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 getting the ethernet ne= twork=0A>>>>>>>>>>>> =A0 =A0 =A0 expansion=0A>>>>>>>>>>>>>> =A0 =A0 =A0 = =A0 =A0 but=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A> loadin= g=0A>>> stuff up=0A>>>>> =A0 from=0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 a usb memory stick is seem=0A>>>>>>>>>>>> =A0 =A0 =A0 = fine from=0A>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 u-boot.=0A>>>>>>>>>>>>>>>>> = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A> I do not=0A>>> think that=0A>>>>> =A0= it=0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 is possible= to boot from the=0A>>>>>>>>>>>> =A0 =A0 =A0 SD card=0A>>>>>>>>>>>>>> =A0 = =A0 =A0 =A0 =A0 on the=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =0A> Omega2+ -=0A>>> which is=0A>>>>> =A0 a=0A>>>>>>>> =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 shame.=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =0A> Thanks=0A>>> for reading,=0A>>>>>>>>>>>>>>>>> =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =0A> Mike.=0A>>>>>>>>>>>>>>>>> =0A>>>>>>>>>>>>>>>>= > =0A>>>>>>>>>>>>>>>>> =0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A> _________= _____________________=0A>>> _________________=0A>>>>>>>>>>>>>>>>> =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =0A>>>>> =A0 freebsd-mips@freebsd.org=0A>>>>>>>>>>>= >>> =A0 =A0 =A0 =A0 =A0 =0A>>> >>>> =A0 = org>mailing=0A>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 list=0A>>>>>>>>>>>>>>>>= > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A>>>>>>>>>>>> =A0 =A0 =A0 https://lists.fre= ebsd.org/=0A>>>>> =A0 mailman/listinfo/freebsd-mips=0A>>>>>>>>>>>>>>>>> = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =0A>>> <= https://lists.freebsd.org/=0A>>>>>>> =A0 =A0 mailman/listinfo/freebsd-mips= >=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A> To=0A>>> unsubs= cribe,=0A>>>>> =A0 send=0A>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 any mail to=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =0A>>>>>>> =A0 =A0 "freebsd-mips-unsubscribe@ freebsd.org=0A>>>>>>>>>>>>>>= >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A>>>>>>>>>>>> =A0 =A0 =A0 >>>> =A0 unsubscribe@freebsd.org>"=0A>>>>>>>>>>>>>>>>> =A0 =A0 = =A0 =A0 =A0 =A0 --=0A>>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 WBW=0A>>>>= >>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =0A> -------=0A>>>>>>>>>>>>>>>>> =A0 = =A0 =A0 =A0 =A0 =A0 =0A> Rybalko=0A>>> Aleksandr=0A>>>>>>> =A0 =A0 >>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =0A>>> >=0A>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =0A>>>>> =A0 _________________= _____________=0A>>>>>>> =A0 =A0 _________________=0A>>>>>>>>>>>>>>>> =A0 = =A0 =A0 =A0 =A0 =0A>>> freebsd-mips@freebsd.org=0A>>>>> =A0 mailing list= =0A>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =0A>>> https://lists.freebsd.org/= =0A>>>>>>> =A0 =A0 mailman/listinfo/freebsd-mips=0A>>>>>>>>>>>>>>>> =A0 = =A0 =A0 =A0 =A0 To =0A> unsubscribe,=0A>>> send any mail=0A>>>>> =A0 to= =0A>>>>>>>>>>>>>>>> =A0 =A0 =A0 =A0 =A0 =0A>>>>> =A0 "freebsd-mips-unsubsc= ribe@=0A>>>>>>> =A0 =A0 freebsd.org"=0A>>>>>>>>>>> =A0 =A0 =A0 __________= ____________________=0A>>> _________________=0A>>>>>>>>>>> =A0 =A0 =A0 fre= ebsd-mips@freebsd.org mailing =0A> list=0A>>>>>>>>>>> =A0 =A0 =A0 https://l= ists.freebsd.org/=0A>>>>> =A0 mailman/listinfo/freebsd-mips=0A>>>>>>>>>>> = =A0 =A0 =A0 To unsubscribe, send any mail to=0A>>>>>>> =A0 =A0 "freebsd-m= ips-unsubscribe@ freebsd.org"=0A>>>>>>>>>> =A0 =A0 =A0 --=0A>>>>>>>>>> =0A= >>>>>>>>>> =A0 =A0 =A0 WBW=0A>>>>>>>>>> =A0 =A0 =A0 -------=0A>>>>>>>>>> = =A0 =A0 =A0 Rybalko Aleksandr =0A> =0A>>>>>>>>>> =0A>>>>>>= >>>> =0A> From owner-freebsd-mips@freebsd.org Wed May 10 01:33:27 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 CD3C1D65BA2 for ; Wed, 10 May 2017 01:33:27 +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 62446117F for ; Wed, 10 May 2017 01:33:26 +0000 (UTC) (envelope-from mike@wolman.co.uk) Received: from [192.168.3.50] ([80.229.66.11]) by avasout08 with smtp id JRZG1v0020EahWw01RZHCs; Wed, 10 May 2017 02:33:17 +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=N659UExz7-8A:10 a=UmSUZ3ptAAAA:8 a=4I05h4SrAAAA:8 a=6I5d2MoRAAAA:8 a=CL-LaP0McPOblc2c9mAA:9 a=0QGuAOTWqiVFzUYc:21 a=S4tbv67T-abbUUVK:21 a=pILNOxqGKmIA:10 a=FyGKTEvU35uc88vWBdgE:22 a=SXYKVUms7l59yVxtnTo9:22 a=IjZwj45LgO3ly-622nXo:22 Subject: Re: onion omega2+ To: Mori Hiroki , Aleksandr Rybalko References: <694efc3a-e183-35a1-a0bf-9a9c0d708826@wolman.co.uk> <410144.69078.qm@web101716.mail.ssk.yahoo.co.jp> <128807.28836.qm@web101715.mail.ssk.yahoo.co.jp> <2d555385-8258-fd75-e4a3-a1e59bf86314@wolman.co.uk> <651873.78746.qm@web101702.mail.ssk.yahoo.co.jp> <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> Cc: "freebsd-mips@freebsd.org" From: Mike Wolman Message-ID: <8b21a15c-3af8-bdba-cc70-6bd0e3a65f39@wolman.co.uk> Date: Wed, 10 May 2017 02:33:14 +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: <456721.9572.qm@web101705.mail.ssk.yahoo.co.jp> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit 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 01:33:27 -0000 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. >>> From owner-freebsd-mips@freebsd.org Wed May 10 07:16:32 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 AF2FDD666A0 for ; Wed, 10 May 2017 07:16:32 +0000 (UTC) (envelope-from sgalabov@gmail.com) Received: from mail-wr0-x244.google.com (mail-wr0-x244.google.com [IPv6:2a00:1450:400c:c0c::244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 31377193F for ; Wed, 10 May 2017 07:16:32 +0000 (UTC) (envelope-from sgalabov@gmail.com) Received: by mail-wr0-x244.google.com with SMTP id 6so5742863wrb.1 for ; Wed, 10 May 2017 00:16:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=8hfIxc/+/NHpJMrZAknQT3LKFh/BHonVRlwAxzbuAfA=; b=LYtjxtE3TpT2tcScR1c81GfPOV/AcYRWQPFhGieGWKXPeB5Hjp+5Q30vs87NjSZoPD NtFewcqGGLxjvzxU1k5Hrg1SgU+U8bDjN4wz84mIPS+YIVtZWkerRMOLAQmQ0NbYMd8G BkfzinTdmsFI+E64cVgrAcgO71s0IKe+UVswpRDRV88Y8m8bNrQT/Wg1Sth+D+AA2sdf /llMUtaK8IC25LA9CoPLKCBvKcaBXpb6AllCBoSwOofQUXzXPn/EOkjk0z/rNAydfPuc SyiGVaRYxeJ1eC87sCWThqpzZFhRPtYrFbVm8/31AG7U6VZFAbLobCZHsz93yy6kyPlO Jsxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=8hfIxc/+/NHpJMrZAknQT3LKFh/BHonVRlwAxzbuAfA=; b=Zw6hpx7PopsrURG84b0SK+vJv9K8xHnI0IMe1yWNJ/GyBhq+Ua0g4fIzitsAISW5uP ru2h6lrL675MoNkg/w3ajoA6pIPB/xIpChLEpnvs4Tz00ntiPTpB34OobKZ8X7m2Pu+Q 1CISafd/M028+bzqr7LimfNHZ05QmzD07Dg4zFImXr96X99T+ktPczEGAWMoCUfIslfM 1fvbVpmKAqQMZkXvaROl7EikfYSrYC3zs7BR0tsbcANdUogv91sZTkp60D6R5tjtsEjs lKqQUULvq16M6Ej2sMBsLwwoLPvi3w+HIqmI9ARqqTtECpSGIeqVh3j+s1M7+mEwkrBH t+cQ== X-Gm-Message-State: AODbwcBk34QJnRtIGI/SdpeyFbnpv0WRBiXUrkhiVj5dMBIsdJ/0sdTR OQaqlAL5u003iA== X-Received: by 10.28.214.69 with SMTP id n66mr761353wmg.25.1494400590198; Wed, 10 May 2017 00:16:30 -0700 (PDT) Received: from [192.168.252.71] ([193.178.153.36]) by smtp.gmail.com with ESMTPSA id 130sm3331963wmq.17.2017.05.10.00.16.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 May 2017 00:16:28 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 10.0 \(3226\)) Subject: Re: onion omega2+ From: Stanislav Galabov In-Reply-To: <8b21a15c-3af8-bdba-cc70-6bd0e3a65f39@wolman.co.uk> Date: Wed, 10 May 2017 10:16:29 +0300 Cc: Stanislav Galabov , Mori Hiroki , Aleksandr Rybalko , "freebsd-mips@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: <05065E4E-1D0F-49DE-B14D-D45ECCEA251F@gmail.com> References: <694efc3a-e183-35a1-a0bf-9a9c0d708826@wolman.co.uk> <410144.69078.qm@web101716.mail.ssk.yahoo.co.jp> <128807.28836.qm@web101715.mail.ssk.yahoo.co.jp> <2d555385-8258-fd75-e4a3-a1e59bf86314@wolman.co.uk> <651873.78746.qm@web101702.mail.ssk.yahoo.co.jp> <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> To: Mike Wolman X-Mailer: Apple Mail (2.3226) 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 07:16:32 -0000 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=E2=80=99 = 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: >=20 >=20 > I have just tried with clock-frequency change in the 3 places it = appears in mt7628an.dtsi >=20 > But again some thing: >=20 > Omega2 # bootm 0x80800000 > ## Booting image at 80800000 ... > Image Name: FreeBSD > Image Type: MIPS Linux Kernel Image (uncompressed) > Data Size: 5654760 Bytes =3D 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 >=20 > Starting kernel ... >=20 >=20 > Note: When building kernel i see: >=20 > -------------------------------------------------------------- > >>> stage 3.1: building everything > -------------------------------------------------------------- > converting OMEGA2P.dts -> = /usr/home/mike/omega2/obj/mipsel_ap/mips.mipsel/usr/home/mike/omega2/src/s= ys/MT7628_FDT/OMEGA2P.dtb > = /usr/home/mike/omega2/obj/mipsel_ap/mips.mipsel/usr/home/mike/omega2/src/s= ys/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/s= ys/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/s= ys/MT7628_FDT/OMEGA2P.dtb: Warning (unit_address_vs_reg): Node = /pcie@10140000/pcie-bridge has a reg or ranges property, but no unit = name >=20 > Are these just warnings which can be ignored or could they be part of = the problem? >=20 >=20 >=20 > On 10/05/2017 01:50, Mori Hiroki wrote: >> Hi mike >>=20 >> I last idea is uartlite clock-frequency miss. >>=20 >> clock-frequency =3D <50000000>; >>=20 >> But I don't know correct value. >>=20 >>=20 >>=20 >> ----- 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+ >>>=20 >>>=20 >>> The new kernel with >>>=20 >>> device uart_ns8250 >>>=20 >>> didnt work >>>=20 >>> On 10/05/2017 00:05, Mori Hiroki wrote: >>>> Hi Mike. >>>>=20 >>>> I seem load address is good. >>>>=20 >>>> I check mt7628an.dtsi file. >>>>=20 >>>> This file uart entry is >>>>=20 >>>> uartlite: uartlite@c00 { >>>> compatible =3D "ns16550a"; >>>> In this case you must add uart_ns8250 device to kernel = configuration. >>>>=20 > _______________________________________________ > 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" From owner-freebsd-mips@freebsd.org Wed May 10 09:31:39 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 31EB0D630B0 for ; Wed, 10 May 2017 09:31:39 +0000 (UTC) (envelope-from ray@ddteam.net) Received: from mail-yb0-x22f.google.com (mail-yb0-x22f.google.com [IPv6:2607:f8b0:4002:c09::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E036E17A9 for ; Wed, 10 May 2017 09:31:38 +0000 (UTC) (envelope-from ray@ddteam.net) Received: by mail-yb0-x22f.google.com with SMTP id j17so6521666ybj.0 for ; Wed, 10 May 2017 02:31:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ddteam-net.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=bgfOR9raehtvbTjwbcBLcvsqFjTmxcmtEPgunVMx6Jo=; b=qoCsbIGZMByXLeKz0Jb9eUrPaMXF+01CcfGve4Sb/CxHuurmTIeM+TMBTopp62jA1q DrRyDVAsia3G1ylEp+BMIwkyHJ0Ma/rwX4Z3t+WENOfnnKqkz/J3z2g9vftkNs4qTb8n ZkIqUUYMsvJDPN+T5nD8fRZ53giEE05+cdJs25FpXct3uvb7J/4iHHW/yN5TfQSf+r9V zpoHpJnPK+qWoEoE2IyhXfakvnXA/POsVIwVtl3/0gP35riz8hYKuZjRtoV3136jB6t/ txdQuSS16CEI7zqeULXgZhzKgQLZexRfSxaAIXnFxdf7VuKOV9HU4ViwMrK0zra/D4eI hBmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=bgfOR9raehtvbTjwbcBLcvsqFjTmxcmtEPgunVMx6Jo=; b=nQlbvUcoq97IV+ZM08FB3//2KQqNH58/dLz2o364WeEYBlIE2psCz8hlHLdAq63K9+ GmxDwPlOtD0ZLpHYrpQxQjJVGYSxWO9WRpqa9NKOvWvgWNKoIZeIMMFARv5MQvCvc2bq YuIcfgYIsV0oRZOCYzCWLTndFrXryFZAGbDbSe1Ip+dsdkRUW1RX1OPo6YnBokV4xlhu 2ApFEIdbkaaFUOrQN2vupAPp+bWMZh17tbopqkWorkfLay2LqKHk5wTted55crYas6nw yLffY4xt1WKuzjqVYypoMJ4xYgFiRO1VzddU3tKKDt19xLyDyAObzlXafjF0YFNwycFN apUg== X-Gm-Message-State: AODbwcB8NElZa20e5B6QbbNKAmz7/PJdQMyvTU82phXRADDzdGrQrI19 3Y057NK3SDI9cBt4a63tZKjLZUGAZoN1 X-Received: by 10.37.163.195 with SMTP id e61mr4108186ybi.13.1494408697946; Wed, 10 May 2017 02:31:37 -0700 (PDT) MIME-Version: 1.0 Received: by 10.37.161.194 with HTTP; Wed, 10 May 2017 02:31:37 -0700 (PDT) In-Reply-To: <05065E4E-1D0F-49DE-B14D-D45ECCEA251F@gmail.com> References: <694efc3a-e183-35a1-a0bf-9a9c0d708826@wolman.co.uk> <410144.69078.qm@web101716.mail.ssk.yahoo.co.jp> <128807.28836.qm@web101715.mail.ssk.yahoo.co.jp> <2d555385-8258-fd75-e4a3-a1e59bf86314@wolman.co.uk> <651873.78746.qm@web101702.mail.ssk.yahoo.co.jp> <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> From: Aleksandr Rybalko Date: Wed, 10 May 2017 12:31:37 +0300 Message-ID: Subject: Re: onion omega2+ To: Stanislav Galabov Cc: Mike Wolman , Mori Hiroki , "freebsd-mips@freebsd.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 09:31:39 -0000 Stanislav, that will help only if kernel.MT7628_FDT is binary, not ELF. Mike, to get binary kernel you have to do objcopy -O binary (if you want to try). But to not deal with clock yet - comment out clock related stuff from DTS. Because clock stuff are done wrong in many cases and you have already configured clock from uboot, since uart works. 2017-05-10 10:16 GMT+03:00 Stanislav Galabov : > 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=E2=80=99 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 appear= s > 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 =3D 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 =3D <50000000>; > >> > >> But I don't know correct value. > >> > >> > >> > >> ----- Original Message ----- > >>> From: Mike Wolman > >>> To: Mori Hiroki ; Aleksandr Rybalko < > ray@ddteam.net> > >>> 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 =3D "ns16550a"; > >>>> In this case you must add uart_ns8250 device to kernel configuratio= n. > >>>> > > _______________________________________________ > > 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" > > --=20 WBW ------- Rybalko Aleksandr From owner-freebsd-mips@freebsd.org Wed May 10 09:31:52 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 53DEDD630E4 for ; Wed, 10 May 2017 09:31:52 +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 B1524195B for ; Wed, 10 May 2017 09:31:51 +0000 (UTC) (envelope-from mike@wolman.co.uk) Received: from [192.168.3.50] ([80.229.66.11]) by avasout08 with smtp id JZXm1v00A0EahWw01ZXnRU; Wed, 10 May 2017 10:31:48 +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=IkcTkHD0fZMA:10 a=UmSUZ3ptAAAA:8 a=4I05h4SrAAAA:8 a=6I5d2MoRAAAA:8 a=q7f4HX9snQ1o8HbZAvcA:9 a=r_CrhDsk7qHKBg0T:21 a=NyPYHugN43ce753L:21 a=QEXdDO2ut3YA:10 a=FyGKTEvU35uc88vWBdgE:22 a=SXYKVUms7l59yVxtnTo9:22 a=IjZwj45LgO3ly-622nXo:22 Subject: Re: onion omega2+ To: Stanislav Galabov References: <694efc3a-e183-35a1-a0bf-9a9c0d708826@wolman.co.uk> <410144.69078.qm@web101716.mail.ssk.yahoo.co.jp> <128807.28836.qm@web101715.mail.ssk.yahoo.co.jp> <2d555385-8258-fd75-e4a3-a1e59bf86314@wolman.co.uk> <651873.78746.qm@web101702.mail.ssk.yahoo.co.jp> <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> Cc: "freebsd-mips@freebsd.org" From: Mike Wolman Message-ID: <2b8211f6-9f42-0f11-678f-a2ed830b2430@wolman.co.uk> Date: Wed, 10 May 2017 10:31:44 +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: <05065E4E-1D0F-49DE-B14D-D45ECCEA251F@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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 09:31:52 -0000 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" From owner-freebsd-mips@freebsd.org Wed May 10 09:38:47 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 C55C5D637CA for ; Wed, 10 May 2017 09:38:47 +0000 (UTC) (envelope-from sgalabov@gmail.com) Received: from mail-wr0-x241.google.com (mail-wr0-x241.google.com [IPv6:2a00:1450:400c:c0c::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47AE81F53 for ; Wed, 10 May 2017 09:38:47 +0000 (UTC) (envelope-from sgalabov@gmail.com) Received: by mail-wr0-x241.google.com with SMTP id 6so6757105wrb.1 for ; Wed, 10 May 2017 02:38:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=/K4F+yALWitTYTkgoLsEwRqWpVYzmpaKZrG/bE7zKiQ=; b=HqSePBcbrHH3cAqnmYwhhrVp1fEIYrdsO7trIR8iHLi44vTtqvt4iu4HB7h9GZc+vs xIWB+jtdDMavaWLQ1LlI8njBkEdIgHWZ2w9lk5rjoEVYTy6DAHo721cLVOG53ktsw0od TcYx8fWnQ2ZerZh8BvHTfT7DKjgvxf9iZ4kKGQgPiktu2EVUtVB9wqicX3o3hDN2xpuE L5UW2xFBy/bAlp6vb+UWVmkJZNfLnk8VwTtUO9WZvC9k63EBPdeL0+SrdVxDpkfzWpbK IjHT1TBICp6RNlI2DTQ4IUJM+K9PG2CMlx3Myz23ONdlo06YAUhRLSiN3hcbSCGGtKGE 0y7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=/K4F+yALWitTYTkgoLsEwRqWpVYzmpaKZrG/bE7zKiQ=; b=WMrOwh7bQwfbBh044iTnTeJmPe5xOa5VkRwS93AS55X6VgsGe36vS0MbUFzXi1DEtc H7FmF9iIK5/o9N167la2c4BGh2ILv6PM/c0I4bGAt9QW6CnzarBphFriHESgNUV/bBBP HCfoElxse83mLw2eE8ZZrId3NZ5xl5Z2ZjfFE+4qudFerWSCiWVf0QzbIp+3Bc+HZ9xC t94ZHd5w0wchas0Wh2MOA5aKFrmBCAufroypRSx3+e0yuYmXPRc88+1kcUYjRjRsqQbe ZHp5TDZBFdxO+edvcBKLrvjUeGeNXraEWapWIB/MvQw4qYMTqTUkn/1LfDLKEyHMMJcr AsCg== X-Gm-Message-State: AODbwcD5rX9jY4AGcAFdevG9OqWb/AYNhtXrRAoHwR8uCD0ZhvjBY0OW AqBrOMTmvJZdZDBQEvQ= X-Received: by 10.28.170.135 with SMTP id t129mr408807wme.128.1494409125139; Wed, 10 May 2017 02:38:45 -0700 (PDT) Received: from [10.165.183.236] ([85.118.83.127]) by smtp.gmail.com with ESMTPSA id o20sm2445025wro.61.2017.05.10.02.38.42 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 10 May 2017 02:38:44 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (1.0) Subject: Re: onion omega2+ From: Stanislav Galabov X-Mailer: iPhone Mail (12B440) In-Reply-To: <2b8211f6-9f42-0f11-678f-a2ed830b2430@wolman.co.uk> Date: Wed, 10 May 2017 12:38:41 +0300 Cc: "freebsd-mips@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: References: <694efc3a-e183-35a1-a0bf-9a9c0d708826@wolman.co.uk> <410144.69078.qm@web101716.mail.ssk.yahoo.co.jp> <128807.28836.qm@web101715.mail.ssk.yahoo.co.jp> <2d555385-8258-fd75-e4a3-a1e59bf86314@wolman.co.uk> <651873.78746.qm@web101702.mail.ssk.yahoo.co.jp> <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> To: Mike Wolman 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 09:38:47 -0000 Hi Mike,=20 Alexandr is right, what I described should work for binary kernels and not f= or ELF ones. I somehow was of the impression that you were using binary. Ple= ase try the same with binary kernel per Alexandr's suggestion in an earlier p= ost... Best wishes Stanislav > On May 10, 2017, at 12:31, Mike Wolman wrote: >=20 > Hi Stanislav, >=20 > Just rebuild kernel with the original dtsi and made a new uImage with: >=20 >=20 > [mike@f64-current ~/omega2/tftpboot]$ mkimage -A mips -C none -O linux -T k= ernel -a 0x80001100 -e 0x80001100 -n "FreeBSD" -d kernel.MT7628_FDT kernel.M= T7628_FDT.uImage > Image Name: FreeBSD > Created: Wed May 10 10:10:37 2017 > Image Type: MIPS Linux Kernel Image (uncompressed) > Data Size: 5654760 Bytes =3D 5522.23 kB =3D 5.39 MB > Load Address: 80001100 > Entry Point: 80001100 >=20 >=20 > On the Omega: >=20 >=20 > 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 =3D 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 >=20 > Starting kernel ... >=20 >=20 > And again nothing more, I also tried one with a Load Address 80000000 but t= hat hasnt worked either. >=20 >=20 > In case this is of any use - when linux boots this is what the console loo= ks like: >=20 >=20 > 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 =3D 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 >=20 > Starting kernel ... >=20 > [ 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-0x0000000007ff= ffff] > [ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 by= tes. > [ 0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 3= 2 bytes > [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Tot= al pages: 32512 > [ 0.000000] Kernel command line: console=3DttyS0,115200 rootfstype=3Dsq= uashfs,jffs2 > [ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes) > [ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 byt= es) > [ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes= ) > [ 0.000000] Writing ErrCtl register=3D00022002 > [ 0.000000] Readback ErrCtl register=3D00022002 > [ 0.000000] Memory: 125488K/131072K available (3103K kernel code, 141K r= wdata, 752K rodata, 156K init, 196K bss, 5584K reserved, 0K cma-reserved) > [ 0.000000] SLUB: HWalign=3D32, Order=3D0-3, MinObjects=3D0, CPUs=3D1, N= odes=3D1 > [ 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=3D1929216) > [ 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 b= ytes) > [ 0.094407] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffff= ff, 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 by= tes) > [ 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_P= RIORITY) (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 =3D 28, ba= se_baud =3D 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 =3D 29, base_= baud =3D 2500000) is a 16550A > [ 0.313561] 10000e00.uart2: ttyS2 at MMIO 0x10000e00 (irq =3D 30, base_= baud =3D 2500000) is a 16550A > [ 0.324283] spi-mt7621 10000b00.spi: sys_freq: 193333333 > [ 0.334382] m25p80 spi32766.0: using chunked io (size=3D31) > [ 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 a= t 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 d= eprecated. 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 3= 1:5. > [ 0.601535] Freeing unused kernel memory: 156K (803e9000 - 80410000) > [ 1.630140] init: Console is alive > ... > more linux kernel messages. >=20 >=20 >> On 10/05/2017 08:16, Stanislav Galabov wrote: >> Hi Mike, >>=20 >> Please try setting both the Load Address and the Entry Point to the same v= alue as you see as Entry point address by using 'readelf -h=E2=80=99 and try= booting again. >> In your case this would seem to be 0x80001100. >>=20 >> Please leave all dts/dtsi files unchanged (as they originally were) for n= ow. >>=20 >> Best wishes, >> Stanislav >>=20 >>> On May 10, 2017, at 04:33, Mike Wolman wrote: >>>=20 >>>=20 >>> I have just tried with clock-frequency change in the 3 places it appears= in mt7628an.dtsi >>>=20 >>> But again some thing: >>>=20 >>> Omega2 # bootm 0x80800000 >>> ## Booting image at 80800000 ... >>> Image Name: FreeBSD >>> Image Type: MIPS Linux Kernel Image (uncompressed) >>> Data Size: 5654760 Bytes =3D 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 >>>=20 >>> Starting kernel ... >>>=20 >>>=20 >>> Note: When building kernel i see: >>>=20 >>> -------------------------------------------------------------- >>>>>> stage 3.1: building everything >>> -------------------------------------------------------------- >>> converting OMEGA2P.dts -> /usr/home/mike/omega2/obj/mipsel_ap/mips.mipse= l/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 h= as 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@10140= 000/pcie-bridge has a reg or ranges property, but no unit name >>>=20 >>> Are these just warnings which can be ignored or could they be part of th= e problem? >>>=20 >>>=20 >>>=20 >>>> On 10/05/2017 01:50, Mori Hiroki wrote: >>>> Hi mike >>>>=20 >>>> I last idea is uartlite clock-frequency miss. >>>>=20 >>>> clock-frequency =3D <50000000>; >>>>=20 >>>> But I don't know correct value. >>>>=20 >>>>=20 >>>>=20 >>>> ----- 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+ >>>>>=20 >>>>>=20 >>>>> The new kernel with >>>>>=20 >>>>> device uart_ns8250 >>>>>=20 >>>>> didnt work >>>>>=20 >>>>>> On 10/05/2017 00:05, Mori Hiroki wrote: >>>>>> Hi Mike. >>>>>>=20 >>>>>> I seem load address is good. >>>>>>=20 >>>>>> I check mt7628an.dtsi file. >>>>>>=20 >>>>>> This file uart entry is >>>>>>=20 >>>>>> uartlite: uartlite@c00 { >>>>>> compatible =3D "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" >=20 From owner-freebsd-mips@freebsd.org Wed May 10 09:53:00 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 531DBD63C60 for ; Wed, 10 May 2017 09:53:00 +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 8B02D8EC for ; Wed, 10 May 2017 09:52:59 +0000 (UTC) (envelope-from mike@wolman.co.uk) Received: from [192.168.3.50] ([80.229.66.11]) by avasout08 with smtp id JZsv1v0030EahWw01Zswn8; Wed, 10 May 2017 10:52:56 +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=IkcTkHD0fZMA:10 a=UmSUZ3ptAAAA:8 a=4I05h4SrAAAA:8 a=6I5d2MoRAAAA:8 a=2FF6ljSvz9nPjQgNE6QA:9 a=U7_p_HZ1QZGdi1My:21 a=X_GrpXpbFxq8Q3wf:21 a=T_K3YJ7_vOfJT_IA:21 a=QEXdDO2ut3YA:10 a=FyGKTEvU35uc88vWBdgE:22 a=SXYKVUms7l59yVxtnTo9:22 a=IjZwj45LgO3ly-622nXo:22 Subject: Re: onion omega2+ To: Stanislav Galabov References: <694efc3a-e183-35a1-a0bf-9a9c0d708826@wolman.co.uk> <128807.28836.qm@web101715.mail.ssk.yahoo.co.jp> <2d555385-8258-fd75-e4a3-a1e59bf86314@wolman.co.uk> <651873.78746.qm@web101702.mail.ssk.yahoo.co.jp> <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: "freebsd-mips@freebsd.org" From: Mike Wolman Message-ID: Date: Wed, 10 May 2017 10:52:53 +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-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 09:53:00 -0000 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" From owner-freebsd-mips@freebsd.org Wed May 10 10:32:35 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 D65B9D64A63 for ; Wed, 10 May 2017 10:32:35 +0000 (UTC) (envelope-from ray@ddteam.net) Received: from mail-yw0-x233.google.com (mail-yw0-x233.google.com [IPv6:2607:f8b0:4002:c05::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8A774D9C for ; Wed, 10 May 2017 10:32:35 +0000 (UTC) (envelope-from ray@ddteam.net) Received: by mail-yw0-x233.google.com with SMTP id l135so13192755ywb.2 for ; Wed, 10 May 2017 03:32:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ddteam-net.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=F4VGcQtCyWuEKRx5rF9N/Iq/zhL2L1uFFgILisiaFn8=; b=WfkBbh+lDEd4bMwyM65k+Z8UIUuDaub4OwCbkcte8+kVOlPb5UkmCUdJhORUrVEgIW a5MDatw97QEgQTIndn80lsjPbXuBm63joe09HiJxTrJe167g2O/7h6MG3d9e7mxM4V0V oW0/A2F3Gwl4w7pby74gQOhI0lL9gnMdXG/vLLzdvsuRf1/Pqr7GIZ5o2dCSxk2Bgjyy ByhIxkskXfICOVykAQ+N0KHk/NxQYKtZwbnRpFYGO5MzEuzLnsL2VYxrh+lOZ194fsXJ rPhjwF87dFwG9/nWuOJ41+bu21FgqmSCWfiNbzYrQp3FeXMXmX2dfccJNDG+iPWRbzr9 dwUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=F4VGcQtCyWuEKRx5rF9N/Iq/zhL2L1uFFgILisiaFn8=; b=fFQJVNLDha+/NonSjbl9vFu6EncvQO1Qo7bvI6tJYawZ872KeUwblID5sIvXdCR15F p77gsAKyUEKnJCZOcsx+t+yAXjQBmB0MieuliL6RPuO7HQXVy831C98GbuoBYpvakFa7 wafD2MiBSODGLa4R3OTvalnkX8UR9RjsTxrRxCYGDqlw6GBdiNBrwY8+koZhDrPHK0Hl /00dtsM32QhfJxJW8vLik7+FEC2/p1Fg4pSP2Ii/X8Pr0tQjPQlmQS+xUh5+jaI3c9DY vOVaiSnowXfloCJdMM0MVX8CWka3vD7dHfedHY2myLa97+mLOQsmjbj6CzKTOG8824Zj l7SA== X-Gm-Message-State: AODbwcDPaY+6uCk4wauEITzvEPkYIYtM4VnuiP2RK/D5QpDDs3AOhzdm zlH/L1WoIjbleCu3b07Gnas2d9OkfHpQ X-Received: by 10.129.108.83 with SMTP id h80mr3978569ywc.302.1494412354431; Wed, 10 May 2017 03:32:34 -0700 (PDT) MIME-Version: 1.0 Received: by 10.37.161.194 with HTTP; Wed, 10 May 2017 03:32:33 -0700 (PDT) In-Reply-To: References: <694efc3a-e183-35a1-a0bf-9a9c0d708826@wolman.co.uk> <128807.28836.qm@web101715.mail.ssk.yahoo.co.jp> <2d555385-8258-fd75-e4a3-a1e59bf86314@wolman.co.uk> <651873.78746.qm@web101702.mail.ssk.yahoo.co.jp> <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> From: Aleksandr Rybalko Date: Wed, 10 May 2017 13:32:33 +0300 Message-ID: Subject: Re: onion omega2+ To: Mike Wolman Cc: Stanislav Galabov , "freebsd-mips@freebsd.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 10:32:35 -0000 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 =3D 4096 > picache_loopcount =3D 16 > pdcache_stride =3D 4096 > pdcache_loopcount =3D 8 > max line size =3D 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=3D0xbee3519e > Config2=3D0x80000000 > Config3=3D0x2420 > Config7=3D0x80010400 > 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=3D9a05 @ 0x87fcf980 > > time =3D 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 =3D 5522.23 kB =3D 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 =3D 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 =3D 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-0x000000000 >>> 7ffffff] >>> [ 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=3DttyS0,115200 >>> rootfstype=3Dsquashfs,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=3D00022002 >>> [ 0.000000] Readback ErrCtl register=3D00022002 >>> [ 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=3D32, Order=3D0-3, MinObjects=3D0, CPUs=3D= 1, Nodes=3D1 >>> [ 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=3D1929216= ) >>> [ 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, 409= 6 >>> 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 =3D 28, >>> base_baud =3D 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 =3D 29, >>> base_baud =3D 2500000) is a 16550A >>> [ 0.313561] 10000e00.uart2: ttyS2 at MMIO 0x10000e00 (irq =3D 30, >>> base_baud =3D 2500000) is a 16550A >>> [ 0.324283] spi-mt7621 10000b00.spi: sys_freq: 193333333 >>> [ 0.334382] m25p80 spi32766.0: using chunked io (size=3D31) >>> [ 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 engin= e >>> 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 bee= n >>> 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=E2= =80=99 and try >>>> booting again. >>>> In your case this would seem to be 0x80001100. >>>> >>>> Please leave all dts/dtsi files unchanged (as they originally were) fo= r >>>> 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 =3D 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/mips >>>>> el_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 =3D <50000000>; >>>>>> >>>>>> But I don't know correct value. >>>>>> >>>>>> >>>>>> >>>>>> ----- Original Message ----- >>>>>> >>>>>>> From: Mike Wolman >>>>>>> To: Mori Hiroki ; Aleksandr Rybalko < >>>>>>> ray@ddteam.net> >>>>>>> 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 =3D "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.or= g >>>>> " >>>>> >>>> > _______________________________________________ > 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" > --=20 WBW ------- Rybalko Aleksandr From owner-freebsd-mips@freebsd.org Wed May 10 14:31:58 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 BD662D5DEBA for ; Wed, 10 May 2017 14:31:58 +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 C49C21828 for ; Wed, 10 May 2017 14:31:57 +0000 (UTC) (envelope-from mike@wolman.co.uk) Received: from [192.168.3.50] ([80.229.66.11]) by avasout08 with smtp id JeXs1v0060EahWw01eXtlt; Wed, 10 May 2017 15:31:55 +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=rmLMhS4pG6IWTux-B8QA:9 a=p9US5ry2jMQsrdqM:21 a=L40K_CCKYESGLqyz:21 a=g4nQaNg9QDaZbMU9:21 a=QEXdDO2ut3YA:10 a=pGLkceISAAAA:8 a=IIX2BFdiAAAA:8 a=4cRsxPlym8awM_IDjpIA:9 a=hXZgMmMjc9eGSu_P:21 a=y0SH4tpUWiw_PHqj:21 a=fK3--6npqecGgzfq: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: Date: Wed, 10 May 2017 15:31:50 +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 14:31:58 -0000 Only place I can find memory defined is in the OMEGA2P.dts #include "OMEGA2.dtsi" / { model = "Onion Omega2+"; memory@0 { device_type = "memory"; reg = <0x0 0x8000000>; }; }; &firmware { reg = <0x50000 0x1fb0000>; }; &system_led { label = "omega2:amber:system"; }; When linux boots its sees 128M: [ 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 When FreeBSD kernel starts it also sees the same amount of memory: 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. I have a question about the load address - in the kernel config MT7628_FDT file includes ../mediatek/std.mediatek - this has: makeoptions KERNLOADADDR=0x80001000 When linux boots its loader and entry point are both 0x80000000 - is this makeoption something I should edit and make 0x80000000 ? eg: ============================================ Onion Omega2 UBoot Version: 4.3.0.3 -------------------------------------------- ASIC 7628_MP (Port5<->None) DRAM component: 1024 Mbits DDR, width 16 DRAM bus: 16 bit Total memory: 128 MBytes Flash component: SPI Flash Date:Oct 18 2016 Time:17:29:05 ============================================ icache: sets:512, ways:4, linesz:32 ,total:65536 dcache: sets:256, ways:4, linesz:32 ,total:32768 CPU freq = 575 MHZ Estimated memory size = 128 Mbytes Resetting MT7628 PHY. Initializing MT7688 GPIO system. ************************************** * Hold Reset button for more options * ************************************** 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 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 > > 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 > > From owner-freebsd-mips@freebsd.org Wed May 10 20:49:08 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 33D69D67A99 for ; Wed, 10 May 2017 20:49:08 +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 4515C371 for ; Wed, 10 May 2017 20:49:06 +0000 (UTC) (envelope-from mike@wolman.co.uk) Received: from [192.168.3.50] ([80.229.66.11]) by avasout08 with smtp id Jkp21v0040EahWw01kp3A5; Wed, 10 May 2017 21:49:04 +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=Sg1WUr8g9FZMM6kNno0A:9 a=G7dDc1aBSx7AtjHT:21 a=t_9XRtRmpjO1gBiX:21 a=NXSPB8RhhOF6j2qQ:21 a=QEXdDO2ut3YA:10 a=pGLkceISAAAA:8 a=IIX2BFdiAAAA:8 a=H3Pq7yRN-jla55Uyc1MA:9 a=yJgP2CiKhvX3dUE3:21 a=Nv96lM7cUJnmHDFa:21 a=AmP2i4_QkByq7uES: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: Date: Wed, 10 May 2017 21:49:00 +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:49:08 -0000 Hi Aleksandr, I am still a little confused with the u-boot and entry/load address stuff - in your first reply: > Even more, unpacked kernel expects it will be called at 0x80001100. so if > you have ELF kernel (file with ELF header, like every executable) that file > have to be loaded at (0x80001100 - ELF_HEADER_SIZE). So I am trying to figure out what the ELF_HEADER_SIZE is. root@f64-current:/home/mike/omega2/tftpboot # readelf -h kernel.MT7628_FDT ELF Header: Magic: 7f 45 4c 46 01 01 01 09 00 00 00 00 00 00 00 00 Class: ELF32 Data: 2's complement, little endian Version: 1 (current) OS/ABI: FreeBSD ABI Version: 0 Type: EXEC (Executable file) Machine: MIPS R3000 Big-Endian only Version: 0x1 Entry point address: 0x80001100 Start of program headers: 52 (bytes into file) Start of section headers: 5622096 (bytes into file) Flags: 0x50001001, mips32, o32, noreorder Size of this header: 52 (bytes) Size of program headers: 32 (bytes) Number of program headers: 6 Size of section headers: 40 (bytes) Number of section headers: 32 Section header string table index: 29 0x80001100 - 0x00000034 = 0x800010CC - i first tried this but didnt convert bytes to bits 0x80001100 - 0x000001A0 = 0x80000F60 - i think this is correct for 52 bytes but not sure I have looked at readelf -S and get a size of 36f270 which if my understanding of the address stuff is correct then doesnt look right to me: 0x80001100 - 0x0036f270 = 0x7FC91E90 this is < 0x80000000 so must be wrong? root@f64-current:/home/mike/omega2/tftpboot # readelf -S kernel.MT7628_FDT|more There are 32 section headers, starting at offset 0x55c950: Section Headers: [Nr] Name Type Addr Off Size ES Flg Lk Inf Al [ 0] NULL 00000000 000000 000000 00 0 0 0 [ 1] .text PROGBITS 80001100 001100 36f270 00 AX 0 0 16 [ 2] .MIPS.stubs PROGBITS 80370370 370370 000010 00 AX 0 0 4 [ 3] .rodata PROGBITS 80370380 370380 0525b0 00 A 0 0 16 [ 4] set_sysctl_set PROGBITS 803c2930 3c2930 0011a4 00 A 0 0 4 [ 5] set_sysuninit_set PROGBITS 803c3ad4 3c3ad4 0004d0 00 A 0 0 4 [ 6] set_sysinit_set PROGBITS 803c3fa4 3c3fa4 000984 00 A 0 0 4 [ 7] set_cam_xpt_xport PROGBITS 803c4928 3c4928 000028 00 A 0 0 4 [ 8] set_modmetadata_s PROGBITS 803c4950 3c4950 000518 00 A 0 0 4 [ 9] set_cam_xpt_proto PROGBITS 803c4e68 3c4e68 000010 00 A 0 0 4 [10] set_kdb_dbbe_set PROGBITS 803c4e78 3c4e78 000008 00 A 0 0 4 [11] set_ofw_set PROGBITS 803c4e80 3c4e80 000004 00 A 0 0 4 [12] set_uart_fdt_clas PROGBITS 803c4e84 3c4e84 000004 00 A 0 0 4 [13] set_cons_set PROGBITS 803c4e88 3c4e88 000008 00 A 0 0 4 [14] usb_host_id PROGBITS 803c4ea0 3c4ea0 000020 00 A 0 0 32 [15] .interp PROGBITS 803c4ec0 3c4ec0 00000d 00 A 0 0 1 [16] .hash HASH 803c4ed0 3c4ed0 00b1f8 04 A 17 0 4 [17] .dynsym DYNSYM 803d00c8 3d00c8 01c790 10 A 18 1 4 [18] .dynstr STRTAB 803ec858 3ec858 01c77f 00 A 0 0 1 [19] .reginfo MIPS_REGINFO 80408fd8 408fd8 000018 18 A 0 0 4 [20] .data PROGBITS 8040c000 40c000 03b200 00 WA 0 0 8192 [21] .rld_map PROGBITS 80447200 447200 000004 00 WA 0 0 4 [22] set_pcpu PROGBITS 80447240 447240 000d04 00 WA 0 0 64 [23] .got PROGBITS 80447f50 447f50 0019a0 04 WA 0 0 16 [24] .dynamic DYNAMIC 804498f0 4498f0 0000c8 08 A 18 0 4 [25] .bss NOBITS 804499c0 4499b8 030650 00 WA 0 0 64 [26] .comment PROGBITS 00000000 4499b8 0105f3 00 0 0 1 [27] .pdr PROGBITS 00000000 459fac 04ea80 00 0 0 4 [28] .gnu_debuglink PROGBITS 00000000 4a8a2c 000014 00 0 0 1 [29] .shstrtab STRTAB 00000000 4a8a40 00016d 00 0 0 1 [30] .symtab SYMTAB 00000000 4a8bb0 04bc70 10 31 12112 4 [31] .strtab STRTAB 00000000 4f4820 068130 00 0 0 1 Key to Flags: W (write), A (alloc), X (execute), M (merge), S (strings) So I have tried: mkimage -A mips -O linux -T kernel -C none \ -a 0x80000F60 -e 0x80001100 \ -n "FreeBSD" -d kernel.MT7628_FDT kernel.MT7628_FDT.uImage I have a couple of questions other questions: 1. When loading the kernel from fat load does it matter what memory address I give it? (in the below im using the same address as the load address is 0x80000F60) 2. With bootm should i be using the load address ie: bootm 0x80000F60 in below attempt - things seem to happen if I use this rather than the entry address. ---- Omega2 # fatload usb 0:1 0x80000F60 kernel.MT7628_FDT.uImage * * Reading file "kernel.MT7628_FDT.uImage" * ** ****** ****** ***************************************************************************************************************************************************************************************************************** ******* * FAT: 5623440 Bytes read Omega2 # bootm 0x80000F60 ## Booting image at 80000f60 ... Image Name: FreeBSD Image Type: MIPS Linux Kernel Image (uncompressed) Data Size: 5623376 Bytes = 5.4 MB Load Address: 80000f60 Entry Point: 80001100 Verifying Checksum ... OK XIP Kernel Image ... OK No initrd ## Transferring control to Linux (at address 80001100) ... ## Giving linux memsize in MB, 128 Starting kernel ... And back to frozed console with u-boot. 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 > > From owner-freebsd-mips@freebsd.org Wed May 10 23:20:21 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 B96E1D67944 for ; Wed, 10 May 2017 23:20:21 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wr0-x22d.google.com (mail-wr0-x22d.google.com [IPv6:2a00:1450:400c:c0c::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5616CFAA for ; Wed, 10 May 2017 23:20:21 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-wr0-x22d.google.com with SMTP id l9so7636955wre.1 for ; Wed, 10 May 2017 16:20:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=yyDQoiLvChnFkNiPoUD9rMKy594xgN+EWVFYU40KnY4=; b=i+EVAj+eiOuZULaeP0k+g3henaK+uqrnLOi4e1+LUXo4vDP701CVXPECQwKg/NrfCv spKUitjOmznkKdiQh0Ub1IhHtSr9tODYWdQel763VcUXkIekO1p3JBZaprt3h5qoWGxt GFHYAUOlVc7hiS7sQXoNqhNuZiX9VMm0h8/LT8ErzcV8zhx8ki/DooiKdBIF+VxkUTma N91Np3e5P/yilEhBbtX8vCBmcBdZRVWVBkGM6MT1B+hQsWzzs5jKGah4U+jk5DAkBoHw pFmqQDktSdOvMWdcL7nrmodgFlvw2ocY+LptYgtKQDc5Rh0P6GbzNlZdbwkT/Vh/e4Tw UsxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=yyDQoiLvChnFkNiPoUD9rMKy594xgN+EWVFYU40KnY4=; b=Ojy53YkH0KvWrCDw3yEHRzvqYlsV5fVO99F8y4Xob/WMqDUszcEKvX/2cC490Aic4D AwDWNjvTSqoTHZtnQFwVIHYyMjLVRln1NJeo6GF7r4AZeC8JoK1Y2kpzzEOTRmHDco8I gCV2NWUgEnwQZeUEEk5eiyO8i5zPxde/zR80Ey5823jhvsnWQN/g1oJWpfpgCwtsprzE QAnQ70TFa8rl248650ppiu8S/J/wmH+NbQAblXcA4Pg361vI3VgGBEV4UX/E8dBbI1Zo VORL/joCgZPh3sVVKKS3UHpJxrzoXcFrojtxS8SDvTfADzw0IaYkKVCdNteNrc54o5Qc UkJg== X-Gm-Message-State: AODbwcDnwmmxMP3MT3Qpwp5twYqdsgC57uKmNaSG0mlMRbBP/yFK1f8R smP6N2JHiE4bAS/Yl1Sg+aiQFBgYmw== X-Received: by 10.223.134.80 with SMTP id 16mr5892808wrw.62.1494458419170; Wed, 10 May 2017 16:20:19 -0700 (PDT) MIME-Version: 1.0 Sender: adrian.chadd@gmail.com Received: by 10.28.193.134 with HTTP; Wed, 10 May 2017 16:20:17 -0700 (PDT) In-Reply-To: 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> From: Adrian Chadd Date: Wed, 10 May 2017 16:20:17 -0700 X-Google-Sender-Auth: NHly4WcQ327ZB8-sQHXwCg563ZM Message-ID: Subject: Re: onion omega2+ To: Mike Wolman Cc: Aleksandr Rybalko , "freebsd-mips@freebsd.org" Content-Type: text/plain; charset=UTF-8 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 23:20:21 -0000 Hi, Ah, you're doing XIP. I haven't done XIP before; i typically just generate a normal image and give it a separate load address 16MB or something into physical memory so I don't overwrite it. Ie, when you use mkimage to create a uboot application, you provide it /both/ a load address and a run address. So, eg, for MIPS we do this: * load: 0x80050000 * run: 0x80050100 .. the 256 bytes is space for the ELF header. And in the std.AR* files, we specify the run address is 0x80050100 to ensure it all lines up. Then to bootm i load it somewhere else away from that load address, so it gets copied to the right spot and run. -adrian From owner-freebsd-mips@freebsd.org Wed May 10 23:39:43 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 52ECBD67EB6 for ; Wed, 10 May 2017 23:39:43 +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 E49D71968 for ; Wed, 10 May 2017 23:39:42 +0000 (UTC) (envelope-from mike@wolman.co.uk) Received: from [192.168.3.50] ([80.229.66.11]) by avasout08 with smtp id Jnff1v0020EahWw01nfgAh; Thu, 11 May 2017 00:39:40 +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=IkcTkHD0fZMA:10 a=QdaIrptUDSTAzdKTkdgA:9 a=rNGentn2Ty9tPtzn:21 a=15ENNxkYTuzsjevg:21 a=QEXdDO2ut3YA:10 Subject: Re: onion omega2+ To: Adrian Chadd References: <694efc3a-e183-35a1-a0bf-9a9c0d708826@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: Aleksandr Rybalko , "freebsd-mips@freebsd.org" From: Mike Wolman Message-ID: Date: Thu, 11 May 2017 00:39:37 +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: 7bit 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 23:39:43 -0000 Hi Adrian, I am making the uImage from the kernel generated in tfpboot after the freebsd-wifi-build script is complete. I had an issue with a compressed kernel with an lzma error so with help we jumped past that and have got a kernel to boot from a binary with: objcopy -O binary kernel.MT7628_FDT kernel.MT7628_FDT.bin and then on the omega just "go 0x80001100" but am unable to get "bootm 0x80001100" working from uboot image still. I am trying to get the complete wifi build so I have a filesystem and kernel image so was just following what I could find/understand in the wifi build stuff. My current problem is I am not up on the hex address stuff and cannot workout what the correct load address should be for the u-boot image eg: mkimage -A mips -O linux -T kernel -C none \ -a 0x80000C00 -e 0x80001100 \ -n "FreeBSD" -d kernel.MT7628_FDT kernel.MT7628_FDT.uImage From my searching i see it is also related to the file size so have tried various combinations but just am not getting further. So info on the kernel: -r-xr-xr-x 1 mike mike 5623376 May 10 20:49 kernel.MT7628_FDT [mike@f64-current ~/omega2/tftpboot]$ readelf -h kernel.MT7628_FDT ELF Header: Magic: 7f 45 4c 46 01 01 01 09 00 00 00 00 00 00 00 00 Class: ELF32 Data: 2's complement, little endian Version: 1 (current) OS/ABI: FreeBSD ABI Version: 0 Type: EXEC (Executable file) Machine: MIPS R3000 Big-Endian only Version: 0x1 Entry point address: 0x80001100 Start of program headers: 52 (bytes into file) Start of section headers: 5622096 (bytes into file) Flags: 0x50001001, mips32, o32, noreorder Size of this header: 52 (bytes) Size of program headers: 32 (bytes) Number of program headers: 6 Size of section headers: 40 (bytes) Number of section headers: 32 Section header string table index: 29 Also just to clarify - when using fatload the address i should use should NOT be the load or entry address ie use something like: fatload usb 0:1 0x80800000 kernel.MT7628_FDT.uImage bootm 0x8000XXXXX Where0x8000XXXXX is the load address? Thanks Mike. On 11/05/2017 00:20, Adrian Chadd wrote: > Hi, > > Ah, you're doing XIP. I haven't done XIP before; i typically just > generate a normal image and give it a separate load address 16MB or > something into physical memory so I don't overwrite it. > > Ie, when you use mkimage to create a uboot application, you provide it > /both/ a load address and a run address. So, eg, for MIPS we do this: > > * load: 0x80050000 > * run: 0x80050100 > > .. the 256 bytes is space for the ELF header. And in the std.AR* > files, we specify the run address is 0x80050100 to ensure it all lines > up. > > Then to bootm i load it somewhere else away from that load address, so > it gets copied to the right spot and run. > > > > -adrian From owner-freebsd-mips@freebsd.org Thu May 11 00:24:53 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 23B3CD67B75 for ; Thu, 11 May 2017 00:24:53 +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 902A1104B for ; Thu, 11 May 2017 00:24:52 +0000 (UTC) (envelope-from mike@wolman.co.uk) Received: from [192.168.3.50] ([80.229.66.11]) by avasout08 with smtp id JoQo1v0030EahWw01oQpvd; Thu, 11 May 2017 01:24:50 +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=IkcTkHD0fZMA:10 a=AI_3NOf9PSKZ0Z9-qgEA:9 a=hINxQK8h4VNznEVM:21 a=JO56Or097prXaGsj:21 a=QEXdDO2ut3YA:10 Subject: Re: onion omega2+ To: Adrian Chadd References: <694efc3a-e183-35a1-a0bf-9a9c0d708826@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: Aleksandr Rybalko , "freebsd-mips@freebsd.org" From: Mike Wolman Message-ID: Date: Thu, 11 May 2017 01:24:46 +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: 7bit 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: Thu, 11 May 2017 00:24:53 -0000 I have re-read this thread (a few times) and redone a kernel now have managed to get u-boot stuff going, calling it a night but I think other than the compression bits I think the rest build stuff should be straight forward and just a matter of sorting out the root filesystem stuff. One thing I dont get is why it seems to be ok booting up without debugging stuff enabled but when turned on it panics but will have another look as maybe it was where I was loading the image file into memory from? Not sure about the flashing of the on board memory and may get a second one as a backup before i attempt that. I wouldnt mind some input on that side of things once I have a image file ready to go as Im not too keen on bricking the device. Thanks again for everyones input, I will do some testing once logged in as a user and see how it goes as a wifi extender and simpler router before having a go with the gpio/spi/iic stuff. Mike. Testing BULK mode...Identifying a storage device...* USB_STORAGE: 1 Storage Device(s) found Omega2 # fatload usb 0:1 0x80800000 kernel.MT7628_FDT.uImage * * Reading file "kernel.MT7628_FDT.uImage" * ** ****** ****** ******************************************************************************************************************************************************************************************* **** * FAT: 4491512 Bytes read Omega2 # bootm 0x80800000 ## Booting image at 80800000 ... Image Name: FreeBSD Image Type: MIPS Linux Kernel Image (uncompressed) Data Size: 4491448 Bytes = 4.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, 128 Starting kernel ... FDT DTB at: 0x804133c0 CPU clock: 580MHz Timer clock: 290MHz UART clock: 40MHz U-Boot args (from 0 args): None Environment: memsize=128 initrd_start=0x00000000 initrd_size=0x0 flash_start=0x00000000 flash_size=0x2000000 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> From owner-freebsd-mips@freebsd.org Thu May 11 11:32:57 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 0877BD658B6 for ; Thu, 11 May 2017 11:32:57 +0000 (UTC) (envelope-from ray@ddteam.net) Received: from mail-yb0-x22a.google.com (mail-yb0-x22a.google.com [IPv6:2607:f8b0:4002:c09::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B9EF21CCE for ; Thu, 11 May 2017 11:32:56 +0000 (UTC) (envelope-from ray@ddteam.net) Received: by mail-yb0-x22a.google.com with SMTP id p143so5631616yba.2 for ; Thu, 11 May 2017 04:32:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ddteam-net.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=ATS31Cq8h24S866AqABWhIJZShnhCvJv9lOysVa9+lI=; b=cHeC50W1mqf73qTgYS+osyEiBi6dF/BpZCg5D2RF26z500l2bfN7wL758zlmLFhE7A Wqcahj3R70OKwa2TkWslZdjdepul1iFLBr4YSMPog+B36EtGqDOP03jwyGM6vdIiaVJ3 bj/oePXBCYyHs4zr4NYWu6lp8lvtpPXnFjYBmFOVDk2+cZAaRfqis6pwEi1xCjQqsziX lw1iF/U+VwxarEWJoXv3pHwaHwLJjJBWWengOdB62HW/jeuaa8JFC5o36gzIcqJd5E1b Ldz8DXh9Iw+e5cscqhKbiZeThJhtL8GbxlAdJ9BPKQSEFNacrR3pSc7E9R7SpoG81Xh/ Qw2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=ATS31Cq8h24S866AqABWhIJZShnhCvJv9lOysVa9+lI=; b=Fez1/k9gY895q1WTujYXE0fKYR2MCP2c6182KeyD6z03s5Tat8o8c3NY3sh1P139nl 3TXP1N7VnHtdgNpg+Vp7ilLGewqbxpwJt44QL5Gt+doZ9ZCaAHRN5oKOURrvQsj1eino Xn1VKlNkbZd222BNdG89cVSztVHJCFO+8p1HJlqJDTrMBFw2HfmS7s2DT60ciDW9xFX/ azc7zxky/bF4EQCKzCZILMlshRuSjn+XZRT3HZb3ugjCyhfzseWdSOdPz/LkT+i+Qs6+ q1mg/MsNz9EQVPk9emCL2KJNyuggUBlnavG1LGn9Z3T1DhmCs3QPOrjFBtIhdptBFeDi byvw== X-Gm-Message-State: AODbwcC7by31lQUAv4fm9pE24LFXzdsWZRu/Ak/h0j7KLlSMB54gS12p nQSVp1gbqPmTIGh44YQILWqm2R0W6FiS X-Received: by 10.37.172.219 with SMTP id x27mr9066502ybd.122.1494502375589; Thu, 11 May 2017 04:32:55 -0700 (PDT) MIME-Version: 1.0 Received: by 10.37.161.194 with HTTP; Thu, 11 May 2017 04:32:54 -0700 (PDT) In-Reply-To: References: <694efc3a-e183-35a1-a0bf-9a9c0d708826@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> From: Aleksandr Rybalko Date: Thu, 11 May 2017 14:32:54 +0300 Message-ID: Subject: Re: onion omega2+ To: Mike Wolman Cc: Adrian Chadd , "freebsd-mips@freebsd.org" Content-Type: text/plain; charset=UTF-8 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: Thu, 11 May 2017 11:32:57 -0000 BTW, Mike, join us on IRC in EFNet network, channel #bsdmips. There is a lot of guys who able to help. 2017-05-11 3:24 GMT+03:00 Mike Wolman : > > I have re-read this thread (a few times) and redone a kernel now have > managed to get u-boot stuff going, calling it a night but I think other > than the compression bits I think the rest build stuff should be straight > forward and just a matter of sorting out the root filesystem stuff. > > One thing I dont get is why it seems to be ok booting up without debugging > stuff enabled but when turned on it panics but will have another look as > maybe it was where I was loading the image file into memory from? > > Not sure about the flashing of the on board memory and may get a second > one as a backup before i attempt that. I wouldnt mind some input on that > side of things once I have a image file ready to go as Im not too keen on > bricking the device. > > Thanks again for everyones input, I will do some testing once logged in > as a user and see how it goes as a wifi extender and simpler router before > having a go with the gpio/spi/iic stuff. > > Mike. > > > Testing BULK mode...Identifying a storage device...* > USB_STORAGE: 1 Storage Device(s) found > Omega2 # fatload usb 0:1 0x80800000 kernel.MT7628_FDT.uImage > * > * > Reading file "kernel.MT7628_FDT.uImage" > * > ** > ****** > ****** > ************************************************************ > ************************************************************ > ******************************************************************* > **** > * > FAT: 4491512 Bytes read > Omega2 # bootm 0x80800000 > ## Booting image at 80800000 ... > Image Name: FreeBSD > Image Type: MIPS Linux Kernel Image (uncompressed) > Data Size: 4491448 Bytes = 4.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, 128 > > Starting kernel ... > > FDT DTB at: 0x804133c0 > CPU clock: 580MHz > Timer clock: 290MHz > UART clock: 40MHz > > U-Boot args (from 0 args): > None > Environment: > memsize=128 > initrd_start=0x00000000 > initrd_size=0x0 > flash_start=0x00000000 > flash_size=0x2000000 > 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> > > -- WBW ------- Rybalko Aleksandr From owner-freebsd-mips@freebsd.org Thu May 11 13:32:48 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 59FEAD674A0 for ; Thu, 11 May 2017 13:32:48 +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 DB6D61A1E for ; Thu, 11 May 2017 13:32:47 +0000 (UTC) (envelope-from mike@wolman.co.uk) Received: from [192.168.3.50] ([80.229.66.11]) by avasout08 with smtp id K1Yd1v00B0EahWw011Yebr; Thu, 11 May 2017 14:32:39 +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=NOXaJoz1W5epnK5WgsYA:9 a=HwnZxz3SP31qpyj8:21 a=WSWapo6lRVslRfvj:21 a=QEXdDO2ut3YA:10 a=pGLkceISAAAA:8 a=DmkYlkv94dxvIbivmI4A:9 a=zcewMMQvTUVTd3Oa:21 a=_W_S_7VecoQA:10 a=6kGIvZw6iX1k4Y-7sg4_:22 Subject: Re: onion omega2+ To: Aleksandr Rybalko References: <694efc3a-e183-35a1-a0bf-9a9c0d708826@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: Adrian Chadd , "freebsd-mips@freebsd.org" From: Mike Wolman Message-ID: <3959d9ed-5bbc-0b79-f63a-502080f91cbf@wolman.co.uk> Date: Thu, 11 May 2017 14:32:35 +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: 7bit 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: Thu, 11 May 2017 13:32:48 -0000 On 11/05/2017 12:32, Aleksandr Rybalko wrote: > BTW, Mike, join us on IRC in EFNet network, channel #bsdmips. There is > a lot of guys who able to help. > Ahh great thank will get myself on there - not used irc in quite some time! I think I am almost there now just having a spot of trouble with getting the root mounting off the md device: The standard kernel conf for MT7628_FDT has: # Default rootfs device configuration, should be changed to suit target board options ROOTDEVNAME=\"ufs:md0.uzip\" # Support geom_uzip(4) compressed disk images device geom_uzip options GEOM_UZIP # Support md(4) and md-based rootfs device md options MD_ROOT On booting I see: 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. I have created a kernel.MT7628_FDT.lzma.uImage which is compressed and boots from uboot. The mfsroot was created with: X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT ../freebsd-wifi-build/build/bin/build ralink mfsroot and fsimage: X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT ../freebsd-wifi-build/build/bin/build ralink fsimage From digging about and looking at the build scripts I have made a geom_uzip image from the fsimage with: mkuzip -L -d -s 65536 -v -o mfsroot-ralink.img.ulzma ../img/mfsroot-ralink.img and then joined this to the kernel with: ( dd if=kernel.MT7628_FDT.lzma.uImage bs=65536 conv=sync dd if=mfsroot-ralink.img.ulzma ) > MT7628_FDT.lzma.flash Am I missing something in the stage between making the mfsroot and fsimage where I need to add a some config somewhere or give the kernel a hint or set something in the u-boot env to where the fs image is? I tried to use: ../freebsd-wifi-build/build/bin/build ralink ubnt But this fails as there is no specified firmware description - i have tried to run this without the build script with: ../freebsd-wifi-build/programs/ubnt-mkfwimage/mkfwimage -B -v \ -k kernel.MT7628_FDT.lzma.uImage \ -r /home/mike/omega2/tftpboot/mfsroot-ralink.img.lzma \ -C -c ../cfgfs-ralink.img -B "" mips -o MT7628_FDT.initial.img From owner-freebsd-mips@freebsd.org Thu May 11 17:19:54 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 D381BD68552 for ; Thu, 11 May 2017 17:19:54 +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 EAFC41789 for ; Thu, 11 May 2017 17:19:53 +0000 (UTC) (envelope-from mike@wolman.co.uk) Received: from [192.168.3.50] ([80.229.66.11]) by avasout08 with smtp id K5Kp1v0030EahWw015KqpC; Thu, 11 May 2017 18:19:51 +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=NEAV23lmAAAA:8 a=UmSUZ3ptAAAA:8 a=4I05h4SrAAAA:8 a=l4KoLRpVckND58WieDEA:9 a=FionAtAFUV0A8qPy:21 a=LXsLWB7_BhdK32y9:21 a=QEXdDO2ut3YA:10 a=pGLkceISAAAA:8 a=vYmQ6wlUfUkEe5TkdcwA:9 a=RkqUVOrZdOtx93Fw:21 a=NtxN9s60dfK-LuFb:21 a=XQ37r22w2BZyJCNK:21 a=_W_S_7VecoQA:10 a=FyGKTEvU35uc88vWBdgE:22 a=SXYKVUms7l59yVxtnTo9:22 a=6kGIvZw6iX1k4Y-7sg4_:22 Subject: Re: onion omega2+ To: Aleksandr Rybalko References: <694efc3a-e183-35a1-a0bf-9a9c0d708826@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: Adrian Chadd , "freebsd-mips@freebsd.org" From: Mike Wolman Message-ID: <8b7d4ebb-0048-11d7-9743-7eb6b38e9335@wolman.co.uk> Date: Thu, 11 May 2017 18:19:46 +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: 7bit 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: Thu, 11 May 2017 17:19:54 -0000 Quick update on where I am with this - basically still trying to join the kernel and root fs so the kernel can find a root filesystem when boots. I have tried various ways to combine the kernel and fs image file but am not getting much further. I saw in https://github.com/freebsd/freebsd-wifi-build/blob/master/build/bin/build_ubnt uses mkfwimage so also tried that by editing ../freebsd-wifi-build/programs/ubnt-mkfwimage/mkfwimage.c: { .name = "OMEGA2P", .kern_start = 0x80001100, .kern_entry = 0x80001100, .firmware_max_length= 0x00B00000, }, This seems to make the image ok: [mike@f64-current ~/omega2/tftpboot]$ ../freebsd-wifi-build/programs/ubnt-mkfwimage/mkfwimage -B OMEGA2P -v "2" -k kernel.MT7628_FDT.lzma.uImage -r /home/mike/omega2/tftpboot/mfsroot-ralink.img.lzma -C 65536 -c ../cfgfs-ralink.img -o MT7628_FDT.initial.img board = OMEGA2P kernel: 1144975 bytes (base 0x80001100) rootfs: 10834 bytes cfgfs: 65536 bytes total: (1221345 bytes) root: 10323825 0x8011898f cfg: 65536 0x80af1100 Firmware version: '2' Output file: 'MT7628_FDT.initial.img' Part count: 3 kernel: 1144975 bytes (free: 0) rootfs: 10834 bytes (free: 10312991) cfg: 65536 bytes (free: 0) [mike@f64-current ~/omega2/tftpboot]$ But this doesnt boot: Omega2 # fatload usb 0:1 0x80800000 MT7628_FDT.initial.img * * Reading file "MT7628_FDT.initial.img" * ** ** ****** *************************************************************************************************************************** ** * FAT: 1221817 Bytes read Omega2 # bootm 0x80800000 ## Booting image at 80800000 ... Bad Magic Number,4F50454E Omega2 # I have followed section 8 in https://github.com/freebsd/freebsd-wifi-build/blob/master/build/README.user-build with various changes but none seem to get past the kernel booting and stopping when it cannot find the root. One thing in this document I was unsure of is: "assuming that 2MByte is allocated to the kernel" I see nowhere which then indicates to the kernel that the uzip filesystem resides past that point in memory so am still confused as to how the kernel knows where to find the uzip image file for geom to deal with and then finally mount. On 11/05/2017 12:32, Aleksandr Rybalko wrote: > BTW, Mike, join us on IRC in EFNet network, channel #bsdmips. There is > a lot of guys who able to help. > > 2017-05-11 3:24 GMT+03:00 Mike Wolman >: > > > I have re-read this thread (a few times) and redone a kernel now > have managed to get u-boot stuff going, calling it a night but I > think other than the compression bits I think the rest build stuff > should be straight forward and just a matter of sorting out the > root filesystem stuff. > > One thing I dont get is why it seems to be ok booting up without > debugging stuff enabled but when turned on it panics but will have > another look as maybe it was where I was loading the image file > into memory from? > > Not sure about the flashing of the on board memory and may get a > second one as a backup before i attempt that. I wouldnt mind some > input on that side of things once I have a image file ready to go > as Im not too keen on bricking the device. > > Thanks again for everyones input, I will do some testing once > logged in as a user and see how it goes as a wifi extender and > simpler router before having a go with the gpio/spi/iic stuff. > > Mike. > > > Testing BULK mode...Identifying a storage device...* > USB_STORAGE: 1 Storage Device(s) found > Omega2 # fatload usb 0:1 0x80800000 kernel.MT7628_FDT.uImage > * > * > Reading file "kernel.MT7628_FDT.uImage" > * > ** > ****** > ****** > ******************************************************************************************************************************************************************************************* > **** > * > FAT: 4491512 Bytes read > Omega2 # bootm 0x80800000 > ## Booting image at 80800000 ... > Image Name: FreeBSD > Image Type: MIPS Linux Kernel Image (uncompressed) > Data Size: 4491448 Bytes = 4.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, 128 > > Starting kernel ... > > FDT DTB at: 0x804133c0 > CPU clock: 580MHz > Timer clock: 290MHz > UART clock: 40MHz > > U-Boot args (from 0 args): > None > Environment: > memsize=128 > initrd_start=0x00000000 > initrd_size=0x0 > flash_start=0x00000000 > flash_size=0x2000000 > 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: addr 2> 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> > > > > > -- > WBW > ------- > Rybalko Aleksandr > > From owner-freebsd-mips@freebsd.org Thu May 11 19:28:56 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 9F011D6991D for ; Thu, 11 May 2017 19:28:56 +0000 (UTC) (envelope-from ray@ddteam.net) Received: from mail-yw0-x22b.google.com (mail-yw0-x22b.google.com [IPv6:2607:f8b0:4002:c05::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 58FB9797 for ; Thu, 11 May 2017 19:28:56 +0000 (UTC) (envelope-from ray@ddteam.net) Received: by mail-yw0-x22b.google.com with SMTP id l135so1373759ywb.2 for ; Thu, 11 May 2017 12:28:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ddteam-net.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=oXE7KRBEQM8kd3lNO/FWkrd2cIcSlzdXrdTH+fqf5Ls=; b=eaADUVgNf8LbWI2Qa3Xb4BYE34lW47Nc06kvPnEOlvVEFE0nC74T2q83qCKi3Ahik0 MOh0LuCGMoGEcNMdHjqT3S0ccVX1ESzi+yaiQWcMvNB5GTBHQpqscey+oDmeGFDYN6ID VWVjorb+vP0NxZuHi45ylwJCZxp1k39ocNbQXZmM75qUrQDx+6YUxHifFl6FQoNf6cjX d2N5flDxiro1DTpNWcNP4WBbpeaPbE/zv+VYVZtYJOy3RyCvySQ/Z+3BrqnBM5PHpP9J 54ogy3dDLWz3ic8JzBXgrcM+rPhipPfBW6VMynRL28Zde7u1Z6IW+wsjGB01np/yQ4XV 1P7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=oXE7KRBEQM8kd3lNO/FWkrd2cIcSlzdXrdTH+fqf5Ls=; b=b2j5KLKZDKnJJyynNORRGkqQEK39YQfgIMQPLzNRfVI9luhWe6gRpd5KzrU9GHBCbf aTm2e4GMOhY8ECbDUTN8zhk1yF1BpY0nwYyicyzsx++CrboOhHsKpcZESa5KhDxSQfqU yCUhKI0t1gEaVb3car/aJVHW4JIl+kqEPYZYOpKGyiDR7nPGTyg5g4dqTyzd93fPWP/b v6XV/IsGKeZrAOopst+372No2MFkjsshlF4oZwMCNeEUJyK3aVi26DXzA6NSID2maAnB mVch6igVKFgvT1dXNNKVb1NovdJGUyvSP94dzX5orJGasAt77BiPQ4QK8MtqH4/w+5M1 q3Vg== X-Gm-Message-State: AODbwcBRYkwj2g8WBkPQjVOn+22bqle3cArRAjrqO6cVNsHx6CC0eJNb dmjlfp+1Ye0Z8fUajYvnO9NB0XlZ2w== X-Received: by 10.129.153.132 with SMTP id q126mr166633ywg.162.1494530935288; Thu, 11 May 2017 12:28:55 -0700 (PDT) MIME-Version: 1.0 Received: by 10.37.161.194 with HTTP; Thu, 11 May 2017 12:28:54 -0700 (PDT) In-Reply-To: <8b7d4ebb-0048-11d7-9743-7eb6b38e9335@wolman.co.uk> References: <694efc3a-e183-35a1-a0bf-9a9c0d708826@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> <8b7d4ebb-0048-11d7-9743-7eb6b38e9335@wolman.co.uk> From: Aleksandr Rybalko Date: Thu, 11 May 2017 22:28:54 +0300 Message-ID: Subject: Re: onion omega2+ To: Mike Wolman Cc: Adrian Chadd , "freebsd-mips@freebsd.org" Content-Type: text/plain; charset="UTF-8" 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: Thu, 11 May 2017 19:28:56 -0000 IIRC ubnt-mkfwimage/mkfwimage is for those boards which follow Atheros rules about packing firmware. Not all makers even for Qualcom/Atheros based boards use tool like that. But you have Mediatek chip (based on old Ralink). I see you a bit confused with all that. Will try to explain. You trying to boot machine without flashing anything into onboard NOR flash. For that case you can mount from RAM or external source. RAM - mfsroot (memory file system). External - USB Flash, USB card-reader(SD/MMC/CF/etc) or network(NFS). I see USB works fine, and even some drive attached (da0). NFS is fine if network have no problems. I see drivers attached, but dunno if kernel really can pass traffic out. So w/o modify internal flash, you have 3 ways MFS, USB drive and NFS. * For MFS you need to pack FS into image and compile kernel with rootfs pointed into MFS image from memory. * For USB drive you have to create simple UFS partition and put MIPS binaries you compiled for rootfs. And recompile kernel with rootfs pointed into that partition on da0 you have (or you can try to specify ufs:/dev/da0s1a on command prompt when kernel can't find rootfs). * For NFS you have to setup NFS export with you MIPS rootfs data, and recompile kernel with rootfs on NFS. About flashing image into internal flash, later :-D 2017-05-11 20:19 GMT+03:00 Mike Wolman : > > Quick update on where I am with this - basically still trying to join the > kernel and root fs so the kernel can find a root filesystem when boots. > > I have tried various ways to combine the kernel and fs image file but am > not getting much further. > > I saw in https://github.com/freebsd/freebsd-wifi-build/blob/ > master/build/bin/build_ubnt uses mkfwimage > > so also tried that by editing ../freebsd-wifi-build/ > programs/ubnt-mkfwimage/mkfwimage.c: > > > { > .name = "OMEGA2P", > .kern_start = 0x80001100, > .kern_entry = 0x80001100, > .firmware_max_length= 0x00B00000, > }, > > > This seems to make the image ok: > > [mike@f64-current ~/omega2/tftpboot]$ ../freebsd-wifi-build/ > programs/ubnt-mkfwimage/mkfwimage -B OMEGA2P -v "2" -k > kernel.MT7628_FDT.lzma.uImage -r /home/mike/omega2/tftpboot/mfsroot-ralink.img.lzma > -C 65536 -c ../cfgfs-ralink.img -o MT7628_FDT.initial.img > board = OMEGA2P > kernel: 1144975 bytes (base 0x80001100) > rootfs: 10834 bytes > cfgfs: 65536 bytes > total: (1221345 bytes) > root: 10323825 0x8011898f > cfg: 65536 0x80af1100 > Firmware version: '2' > Output file: 'MT7628_FDT.initial.img' > Part count: 3 > kernel: 1144975 bytes (free: 0) > rootfs: 10834 bytes (free: 10312991) > cfg: 65536 bytes (free: 0) > [mike@f64-current ~/omega2/tftpboot]$ > > > But this doesnt boot: > > Omega2 # fatload usb 0:1 0x80800000 MT7628_FDT.initial.img > * > * > Reading file "MT7628_FDT.initial.img" > * > ** > ** > ****** > ************************************************************ > *************************************************************** > ** > * > FAT: 1221817 Bytes read > Omega2 # bootm 0x80800000 > ## Booting image at 80800000 ... > Bad Magic Number,4F50454E > Omega2 # > > > I have followed section 8 in https://github.com/freebsd/ > freebsd-wifi-build/blob/master/build/README.user-build > with various changes but none seem to get past the kernel booting and > stopping when it cannot find the root. > > One thing in this document I was unsure of is: "assuming that 2MByte is > allocated to the kernel" > > I see nowhere which then indicates to the kernel that the uzip filesystem > resides past that point in memory so am still confused as to how the kernel > knows where to find the uzip image file for geom to deal with and then > finally mount. > > > > On 11/05/2017 12:32, Aleksandr Rybalko wrote: > > BTW, Mike, join us on IRC in EFNet network, channel #bsdmips. There is a > lot of guys who able to help. > > 2017-05-11 3:24 GMT+03:00 Mike Wolman : > >> >> I have re-read this thread (a few times) and redone a kernel now have >> managed to get u-boot stuff going, calling it a night but I think other >> than the compression bits I think the rest build stuff should be straight >> forward and just a matter of sorting out the root filesystem stuff. >> >> One thing I dont get is why it seems to be ok booting up without >> debugging stuff enabled but when turned on it panics but will have another >> look as maybe it was where I was loading the image file into memory from? >> >> Not sure about the flashing of the on board memory and may get a second >> one as a backup before i attempt that. I wouldnt mind some input on that >> side of things once I have a image file ready to go as Im not too keen on >> bricking the device. >> >> Thanks again for everyones input, I will do some testing once logged in >> as a user and see how it goes as a wifi extender and simpler router before >> having a go with the gpio/spi/iic stuff. >> >> Mike. >> >> >> Testing BULK mode...Identifying a storage device...* >> USB_STORAGE: 1 Storage Device(s) found >> Omega2 # fatload usb 0:1 0x80800000 kernel.MT7628_FDT.uImage >> * >> * >> Reading file "kernel.MT7628_FDT.uImage" >> * >> ** >> ****** >> ****** >> ************************************************************ >> ************************************************************ >> ******************************************************************* >> **** >> * >> FAT: 4491512 Bytes read >> Omega2 # bootm 0x80800000 >> ## Booting image at 80800000 ... >> Image Name: FreeBSD >> Image Type: MIPS Linux Kernel Image (uncompressed) >> Data Size: 4491448 Bytes = 4.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, 128 >> >> Starting kernel ... >> >> FDT DTB at: 0x804133c0 >> CPU clock: 580MHz >> Timer clock: 290MHz >> UART clock: 40MHz >> >> U-Boot args (from 0 args): >> None >> Environment: >> memsize=128 >> initrd_start=0x00000000 >> initrd_size=0x0 >> flash_start=0x00000000 >> flash_size=0x2000000 >> 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> >> >> > > > -- > WBW > ------- > Rybalko Aleksandr > > > -- WBW ------- Rybalko Aleksandr From owner-freebsd-mips@freebsd.org Thu May 11 21:39:46 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 CF33FD69CB5 for ; Thu, 11 May 2017 21:39:46 +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 D90EA14F2 for ; Thu, 11 May 2017 21:39:45 +0000 (UTC) (envelope-from mike@wolman.co.uk) Received: from [192.168.3.50] ([80.229.66.11]) by avasout08 with smtp id K9ff1v0010EahWw019fgQu; Thu, 11 May 2017 22:39:42 +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=NEAV23lmAAAA:8 a=4I05h4SrAAAA:8 a=bjiuWHblDxVD4KV0aqAA:9 a=WEQz5gEhK6oeAU6h:21 a=kANvkuEzgMgjsAJF:21 a=QEXdDO2ut3YA:10 a=pGLkceISAAAA:8 a=ohIcpZE68W4LThZlyFcA:9 a=dcUAe6Vlvu0Z6CzS:21 a=lqq-XZbdb2lynQEt:21 a=Jjii4o7GgREulPLU:21 a=_W_S_7VecoQA:10 a=FyGKTEvU35uc88vWBdgE:22 a=SXYKVUms7l59yVxtnTo9:22 a=6kGIvZw6iX1k4Y-7sg4_:22 Subject: Re: onion omega2+ To: Aleksandr Rybalko References: <694efc3a-e183-35a1-a0bf-9a9c0d708826@wolman.co.uk> <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> <8b7d4ebb-0048-11d7-9743-7eb6b38e9335@wolman.co.uk> Cc: Adrian Chadd , "freebsd-mips@freebsd.org" From: Mike Wolman Message-ID: <83bd5d72-28a9-7461-4ad0-05001ea92104@wolman.co.uk> Date: Thu, 11 May 2017 22:39:36 +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: 7bit 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: Thu, 11 May 2017 21:39:46 -0000 Well after my confusion trying to create a single flash file and kernel without the correct mkfwimage tool I have got root mounted from a usb key A few bits of hardware not working - i dont seem to see the sd card and also wifi device is missing so need to dig into that but otherwise i think everything else is there - the freebsd-wifi build is very minumal so will probally make a larger one. Need to figure out how to now install kernel into flash to save the hassle of reseting usb and loading kernel manually each time - also i can then leave in the rootfs usb key. USB_STORAGE: 1 Storage Device(s) found Omega2 # fatload usb 0:1 0x80800000 kernel.MT7628_FDT.lzma.uImage * * Reading file "kernel.MT7628_FDT.lzma.uImage" * ** ****** ************************************************************************************************************************** ************ * FAT: 1144975 Bytes read SWAP USB KEY Omega2 # bootm 0x80800000 ## Booting image at 80800000 ... Image Name: FreeBSD Image Type: MIPS Linux Kernel Image (lzma compressed) Data Size: 1144911 Bytes = 1.1 MB Load Address: 80001100 Entry Point: 80001100 Verifying Checksum ... OK Uncompressing Kernel Image ... OK No initrd ## Transferring control to Linux (at address 80001100) ... ## Giving linux memsize in MB, 128 Starting kernel ... FDT DTB at: 0x804133c0 CPU clock: 580MHz Timer clock: 290MHz UART clock: 40MHz U-Boot args (from 0 args): None Environment: memsize=128 initrd_start=0x00000000 initrd_size=0x0 flash_start=0x00000000 flash_size=0x2000000 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 Root mount waiting for: usbus1 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... pass0 at umass-sim0 bus 0 scbus0 target 0 lun 0 pass0: Removable Direct Access SPC-2 SCSI device pass0: Serial Number QVHLQ8BR pass0: 1.000MB/s transfers GEOM: new disk da0 da0 at umass-sim0 bus 0 scbus0 target 0 lun 0 da0: Removable Direct Access SPC-2 SCSI device da0: Serial Number QVHLQ8BR da0: 1.000MB/s transfers da0: 3840MB (7864320 512 byte sectors) da0: quirks=0x12 da0: Delete methods: 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> ufs:/dev/da0s1 Trying to mount root from ufs:/dev/da0s1 []... warning: no time-of-day clock registered, system time will not be set accurately start_init: trying /sbin/init May 11 22:07:41 init: login_getclass: unknown class 'daemon' *** Mounting /tmp, /var, /etc ... random: unblocking device. *** Copying /c/etc -> /etc ... *** Starting rc2 ... *** Populating /var .. *** Loading configuration files .. *** Restoring from .. dd: no value specified for if gunzip: (stdin): unexpected end of file 0 blocks *** Completed. *** setting up hostname *** Load kernel modules .. bridgestp kldload: can't load bridgestp: module already loaded or in kernel .. if_bridge kldload: can't load if_bridge: No such file or directory .. random kldload: can't load random: No such file or directory *** Setting kern.random.harvest.mask=511 kern.random.harvest.mask: 2047 -> 511 *** bringing up loopback .. *** Default password/login databases .. *** Customising sysctl .. *** Starting networking via /etc/rc.d/base/net *** Interface: rt0: start *** Interface: rt0: done *** Interface: bridge0: start bridge0: bpf attached bridge0: Ethernet address: 7e:a3:34:4f:fe:33 rt0: entering promiscuous mode rt0: promiscuous mode enabled bridge0: link state changed to UP *** Interface: bridge0: done ipfw: setsockopt(IP_FW_XDEL): Protocol not available *** Done! FreeBSD/mips (freebsd-wifi) (ttyu0) login: root # # vmstat procs memory page disks faults cpu r b w avm fre flt re pi po fr sr fl0 md0 in sy cs us sy id 0 0 0 49M 103M 52 0 1 0 34 1 0 0 37 3759 93 1 6 94 # # devinfo nexus0 ofwbus0 cpulist0 cpupic0 palmbus0 sysc0 intc0 simplebus0 gpio0 gpiobus0 gpioc0 gpio1 gpiobus1 gpioc1 gpio2 gpiobus2 gpioc2 spi0 spibus0 mx25l0 uart0 uart1 uart2 pinctrl0 rstctrl0 clkctrl0 usbphy0 ehci0 usbus0 uhub1 ohci0 usbus1 uhub0 umass0 rt0 mtkswitch0 miibus0 ukphy0 miibus1 ukphy1 miibus2 ukphy2 miibus3 ukphy3 miibus4 ukphy4 etherswitch0 mdio0 gpioled0 clock0 # On 11/05/2017 20:28, Aleksandr Rybalko wrote: > IIRC ubnt-mkfwimage/mkfwimage is for those boards which follow Atheros > rules about packing > firmware. Not all makers even for Qualcom/Atheros based boards use > tool like that. > But you have Mediatek chip (based on old Ralink). > > I see you a bit confused with all that. Will try to explain. > > You trying to boot machine without flashing anything into onboard NOR > flash. For that case you can mount from RAM or external source. > RAM - mfsroot (memory file system). > External - USB Flash, USB card-reader(SD/MMC/CF/etc) or network(NFS). > I see USB works fine, and even some drive attached (da0). > NFS is fine if network have no problems. I see drivers attached, but > dunno if kernel really can pass traffic out. > > So w/o modify internal flash, you have 3 ways MFS, USB drive and NFS. > * For MFS you need to pack FS into image and compile kernel with > rootfs pointed into MFS image from memory. > * For USB drive you have to create simple UFS partition and put MIPS > binaries you compiled for rootfs. And recompile kernel with rootfs > pointed into that partition on da0 you have (or you can try to specify > ufs:/dev/da0s1a on command prompt when kernel can't find rootfs). > * For NFS you have to setup NFS export with you MIPS rootfs data, and > recompile kernel with rootfs on NFS. > > About flashing image into internal flash, later :-D > > > > 2017-05-11 20:19 GMT+03:00 Mike Wolman >: > > > Quick update on where I am with this - basically still trying to > join the kernel and root fs so the kernel can find a root > filesystem when boots. > > I have tried various ways to combine the kernel and fs image file > but am not getting much further. > > I saw in > https://github.com/freebsd/freebsd-wifi-build/blob/master/build/bin/build_ubnt > > uses mkfwimage > > so also tried that by editing > ../freebsd-wifi-build/programs/ubnt-mkfwimage/mkfwimage.c: > > > { > .name = "OMEGA2P", > .kern_start = 0x80001100, > .kern_entry = 0x80001100, > .firmware_max_length= 0x00B00000, > }, > > > This seems to make the image ok: > > [mike@f64-current ~/omega2/tftpboot]$ > ../freebsd-wifi-build/programs/ubnt-mkfwimage/mkfwimage -B OMEGA2P > -v "2" -k kernel.MT7628_FDT.lzma.uImage -r > /home/mike/omega2/tftpboot/mfsroot-ralink.img.lzma -C 65536 -c > ../cfgfs-ralink.img -o MT7628_FDT.initial.img > board = OMEGA2P > kernel: 1144975 bytes (base 0x80001100) > rootfs: 10834 bytes > cfgfs: 65536 bytes > total: (1221345 bytes) > root: 10323825 0x8011898f > cfg: 65536 0x80af1100 > Firmware version: '2' > Output file: 'MT7628_FDT.initial.img' > Part count: 3 > kernel: 1144975 bytes (free: 0) > rootfs: 10834 bytes (free: 10312991) > cfg: 65536 bytes (free: 0) > [mike@f64-current ~/omega2/tftpboot]$ > > > But this doesnt boot: > > Omega2 # fatload usb 0:1 0x80800000 MT7628_FDT.initial.img > * > * > Reading file "MT7628_FDT.initial.img" > * > ** > ** > ****** > *************************************************************************************************************************** > ** > * > FAT: 1221817 Bytes read > Omega2 # bootm 0x80800000 > ## Booting image at 80800000 ... > Bad Magic Number,4F50454E > Omega2 # > > > I have followed section 8 in > https://github.com/freebsd/freebsd-wifi-build/blob/master/build/README.user-build > > > with various changes but none seem to get past the kernel booting > and stopping when it cannot find the root. > > One thing in this document I was unsure of is: "assuming that > 2MByte is allocated to the kernel" > > I see nowhere which then indicates to the kernel that the uzip > filesystem resides past that point in memory so am still confused > as to how the kernel knows where to find the uzip image file for > geom to deal with and then finally mount. > > > > On 11/05/2017 12:32, Aleksandr Rybalko wrote: >> BTW, Mike, join us on IRC in EFNet network, channel #bsdmips. >> There is a lot of guys who able to help. >> >> 2017-05-11 3:24 GMT+03:00 Mike Wolman > >: >> >> >> I have re-read this thread (a few times) and redone a kernel >> now have managed to get u-boot stuff going, calling it a >> night but I think other than the compression bits I think the >> rest build stuff should be straight forward and just a matter >> of sorting out the root filesystem stuff. >> >> One thing I dont get is why it seems to be ok booting up >> without debugging stuff enabled but when turned on it panics >> but will have another look as maybe it was where I was >> loading the image file into memory from? >> >> Not sure about the flashing of the on board memory and may >> get a second one as a backup before i attempt that. I >> wouldnt mind some input on that side of things once I have a >> image file ready to go as Im not too keen on bricking the device. >> >> Thanks again for everyones input, I will do some testing >> once logged in as a user and see how it goes as a wifi >> extender and simpler router before having a go with the >> gpio/spi/iic stuff. >> >> Mike. >> >> >> Testing BULK mode...Identifying a storage device...* >> USB_STORAGE: 1 Storage Device(s) found >> Omega2 # fatload usb 0:1 0x80800000 kernel.MT7628_FDT.uImage >> * >> * >> Reading file "kernel.MT7628_FDT.uImage" >> * >> ** >> ****** >> ****** >> ******************************************************************************************************************************************************************************************* >> **** >> * >> FAT: 4491512 Bytes read >> Omega2 # bootm 0x80800000 >> ## Booting image at 80800000 ... >> Image Name: FreeBSD >> Image Type: MIPS Linux Kernel Image (uncompressed) >> Data Size: 4491448 Bytes = 4.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, 128 >> >> Starting kernel ... >> >> FDT DTB at: 0x804133c0 >> CPU clock: 580MHz >> Timer clock: 290MHz >> UART clock: 40MHz >> >> U-Boot args (from 0 args): >> None >> Environment: >> memsize=128 >> initrd_start=0x00000000 >> initrd_size=0x0 >> flash_start=0x00000000 >> flash_size=0x2000000 >> 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:/us >> r/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: > addr 1> on usbus1 >> ugen0.1: at usbus0 >> uhub1: > addr 1> 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: > 2.00/1.00, addr 2> 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> >> >> >> >> >> -- >> WBW >> ------- >> Rybalko Aleksandr > >> > > > > > -- > WBW > ------- > Rybalko Aleksandr > > From owner-freebsd-mips@freebsd.org Thu May 11 23:45:22 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 E90AFD699CF for ; Thu, 11 May 2017 23:45:22 +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 5E88ECBA for ; Thu, 11 May 2017 23:45:21 +0000 (UTC) (envelope-from mike@wolman.co.uk) Received: from [192.168.3.50] ([80.229.66.11]) by avasout08 with smtp id KBlH1v0020EahWw01BlJhe; Fri, 12 May 2017 00:45:18 +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=NEAV23lmAAAA:8 a=127TY74O_w7vd7A9bJsA:9 a=QEXdDO2ut3YA:10 a=J6xVyYsGJ577LuYSrLMA:9 a=R58UzUjmiXCjb7Jx:21 a=_W_S_7VecoQA:10 Subject: Re: onion omega2+ References: <694efc3a-e183-35a1-a0bf-9a9c0d708826@wolman.co.uk> <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> <8b7d4ebb-0048-11d7-9743-7eb6b38e9335@wolman.co.uk> To: "freebsd-mips@freebsd.org" From: Mike Wolman Message-ID: <14ba3e3f-4172-a09b-8cba-385400b23ca8@wolman.co.uk> Date: Fri, 12 May 2017 00:45:14 +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: 7bit 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: Thu, 11 May 2017 23:45:23 -0000 I have put together a little how to and uploaded an kernel image + default mfsroot https://github.com/sysadminmike/freebsd-onion-omega2-build From owner-freebsd-mips@freebsd.org Fri May 12 20:16:06 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 3AAA4D69E51 for ; Fri, 12 May 2017 20:16:06 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wr0-x22f.google.com (mail-wr0-x22f.google.com [IPv6:2a00:1450:400c:c0c::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BE44C1C12 for ; Fri, 12 May 2017 20:16:05 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-wr0-x22f.google.com with SMTP id l50so49745074wrc.3 for ; Fri, 12 May 2017 13:16:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=CwVj/8aD9RMVq2PZTLDYYdU/jNeaEMBfSWOmOQsO+jw=; b=JPKsGgqQGwWWZOchPyc4q1qPyHNM/kdFVURk3MimVl2VdmNn7OcJChwe3g1r7wixZS uKKGTLDJ6wQgofB2fTtHWzEFXL7DuJaOkFrZSWy0SREUsFwmboOwaxiN2UKLROzl5rVa 3e6Iw87kSCpn1EqEqPrZ1mtq6Cy2pOxmUIcnkXNGw1kCYOrAJPzSv9G5HOdU5ghT/oik ICBOgMBZUAdtptxPR8b8/wAjDh+LM91tOSOs7mNlcATUQ2SRXXP05fBIrJFE8Ipk0joO W2yQqbcmbt0l0470oDdkVY5052dX5Ql92mdu2rUovOVpu7AyUeoLWP6Ir23zIb9AF5zo 7zAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=CwVj/8aD9RMVq2PZTLDYYdU/jNeaEMBfSWOmOQsO+jw=; b=uIhkx94nQ0tYY1vkjiLwC4Pvx1Fhs2DDfRQ8TJ1yi/mlSGsZ7rqZcd3T8ZLI8sokeM bBHz1emrjvaFDRQT5tD/D9+XmENKu56al8XauhS04n8cWquG6FrgWY4t/wyu00VO/Got C12EeYMgoQKtRwJ7SK4fj1ajQw1J8JZRtkSC8LxzeGLSur+7teBz3XhEInobvoBwRyME YTE+LPPYPXvFIlbEJ+uqwBOgdogGoGlkLHQ9vVGTXnCXXG8WNc2b5Z6mnDGtgP9FnZUa 60lWSAK4nujebJ1jof2YhnLMPE42zQkBMGoRM5z/kfZW3mLLAXbPPHKYfoNq37+vhwzR 8NVA== X-Gm-Message-State: AODbwcDOCCOQUjCrYT44afVpYmXZvI0NX44htzvG8xcU/ZlfDyEtgGAp sz/vqR2IgIIMY9g/z2heoBe45w4D3MLU X-Received: by 10.223.164.148 with SMTP id g20mr4168016wrb.89.1494620163632; Fri, 12 May 2017 13:16:03 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.193.134 with HTTP; Fri, 12 May 2017 13:16:02 -0700 (PDT) In-Reply-To: <14ba3e3f-4172-a09b-8cba-385400b23ca8@wolman.co.uk> References: <694efc3a-e183-35a1-a0bf-9a9c0d708826@wolman.co.uk> <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> <8b7d4ebb-0048-11d7-9743-7eb6b38e9335@wolman.co.uk> <14ba3e3f-4172-a09b-8cba-385400b23ca8@wolman.co.uk> From: Adrian Chadd Date: Fri, 12 May 2017 13:16:02 -0700 Message-ID: Subject: Re: onion omega2+ To: Mike Wolman Cc: "freebsd-mips@freebsd.org" Content-Type: text/plain; charset="UTF-8" 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: Fri, 12 May 2017 20:16:06 -0000 Nice! Please provide build patches to freebsd-wifi-build! There's no working wifi support yet, but getting working SoCs with it is the first step! -a On 11 May 2017 at 16:45, Mike Wolman wrote: > > I have put together a little how to and uploaded an kernel image + default > mfsroot > > https://github.com/sysadminmike/freebsd-onion-omega2-build > > > > > > _______________________________________________ > 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" From owner-freebsd-mips@freebsd.org Fri May 12 21:01:34 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 D99DFD6A774 for ; Fri, 12 May 2017 21:01:34 +0000 (UTC) (envelope-from mike@wolman.co.uk) Received: from avasout07.plus.net (avasout07.plus.net [84.93.230.235]) (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 493661688 for ; Fri, 12 May 2017 21:01:33 +0000 (UTC) (envelope-from mike@wolman.co.uk) Received: from [192.168.3.50] ([80.229.66.11]) by avasout07 with smtp id KZ1N1v00A0EahWw01Z1PwK; Fri, 12 May 2017 22:01:24 +0100 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.2 cv=HP2zLslv c=1 sm=1 tr=0 a=sNOkzuqjfbpz3c/qSHODpA==:117 a=sNOkzuqjfbpz3c/qSHODpA==:17 a=r77TgQKjGQsHNAKrUKIA:9 a=bt8Zh30PAAAA:8 a=NEAV23lmAAAA:8 a=UmSUZ3ptAAAA:8 a=6I5d2MoRAAAA:8 a=sNSXljyHE8vPc5AjSCIA:9 a=LdN9_fb5RHERbtEL:21 a=kiukFdhC5OQn8Mu_:21 a=QEXdDO2ut3YA:10 a=pGLkceISAAAA:8 a=tVY3lKhz-99ZkqqMxDMA:9 a=feIjS9BuV5ZjjU7l:21 a=CXwopZxp0L3j8yZK:21 a=QjFYV1e8nHDHrW9x:21 a=_W_S_7VecoQA:10 a=FyGKTEvU35uc88vWBdgE:22 a=IjZwj45LgO3ly-622nXo:22 a=6kGIvZw6iX1k4Y-7sg4_:22 Subject: Re: onion omega2+ To: Adrian Chadd References: <694efc3a-e183-35a1-a0bf-9a9c0d708826@wolman.co.uk> <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> <8b7d4ebb-0048-11d7-9743-7eb6b38e9335@wolman.co.uk> <14ba3e3f-4172-a09b-8cba-385400b23ca8@wolman.co.uk> Cc: "freebsd-mips@freebsd.org" From: Mike Wolman Message-ID: Date: Fri, 12 May 2017 22:01:19 +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: 7bit 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: Fri, 12 May 2017 21:01:34 -0000 Hi Adrian, The only changes from the normal wifi-build for a MT7628_FDT kernel build is to fetch the omega dtsi/dti files: |cd /src/sys/gnu/dts/mips fetch https://raw.githubusercontent.com/WereCatf/source/image/target/linux/ramips/dts/OMEGA2.dtsi fetch https://raw.githubusercontent.com/WereCatf/source/image/target/linux/ramips/dts/OMEGA2.dts fetch https://raw.githubusercontent.com/WereCatf/source/image/target/linux/ramips/dts/OMEGA2P.dts| And pass different options to the build script, I can https://github.com/sysadminmike/freebsd-onion-omega2-build and make like the wiki pages for various devices on: https://github.com/freebsd/freebsd-wifi-build/wiki like the other boards if that's useful? Mike. On 12/05/2017 21:16, Adrian Chadd wrote: > Nice! > > Please provide build patches to freebsd-wifi-build! > > There's no working wifi support yet, but getting working SoCs with it > is the first step! > > > > -a > > > On 11 May 2017 at 16:45, Mike Wolman wrote: >> I have put together a little how to and uploaded an kernel image + default >> mfsroot >> >> https://github.com/sysadminmike/freebsd-onion-omega2-build >> >> >> >> >> >> _______________________________________________ >> 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"