From owner-freebsd-mips@freebsd.org Wed Nov 15 20:55:51 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 C0695DE7239 for ; Wed, 15 Nov 2017 20:55:51 +0000 (UTC) (envelope-from mike@wolman.co.uk) Received: from avasout07.plus.net (avasout07.plus.net [84.93.230.235]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5B7FC7BA06 for ; Wed, 15 Nov 2017 20:55:50 +0000 (UTC) (envelope-from mike@wolman.co.uk) Received: from [192.168.3.50] ([80.229.66.11]) by smtp with ESMTP id F4foeAXnmBcPOF4fpeysdj; Wed, 15 Nov 2017 20:52:41 +0000 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.2 cv=Kf6iiUQD c=1 sm=1 tr=0 a=sNOkzuqjfbpz3c/qSHODpA==:117 a=sNOkzuqjfbpz3c/qSHODpA==:17 a=IkcTkHD0fZMA:10 a=UmSUZ3ptAAAA:8 a=NEAV23lmAAAA:8 a=OyfE2iRfyHiD94MPxEMA:9 a=Z1wE6fiYg6dMKnvS:21 a=T0D3iTMcdHTJ_vau:21 a=QEXdDO2ut3YA:10 a=FyGKTEvU35uc88vWBdgE:22 Subject: Re: onion omega2+ To: Ed Maste Cc: "freebsd-mips@freebsd.org" 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> From: Mike Wolman Message-ID: <1d99151e-7a67-2fce-4254-6b36b8daa5a8@wolman.co.uk> Date: Wed, 15 Nov 2017 20:52:38 +0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-GB X-CMAE-Envelope: MS4wfP/F27M5bMK1INmbwBbQFEA9hKnE60dcYAsZXvFXYfw4gZ1jSONhMVaLqG6fQjW6T+6vneWY03pAh+epkSoMuG+hJOxpeCklCpys8Y2TDBVIymJa3lve RpFPoQoRioMFMc2mHQLmRUAPx/Z5YaA3pi/j/y4m67R63y/Lg1spKhDI X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Nov 2017 20:55:51 -0000 On 15/11/2017 19:47, Ed Maste wrote: > On 11 May 2017 at 19: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 > Hi Mike, > > I have a University of Waterloo co-op student working for the FreeBSD > Foundation. Zak's trying out FreeBSD on a number of embedded boards, > including an Onion Omega 2 that I have here. He tried replicating your > result, but we've not had success yet. > > We tried the kernel image from your github repo, and it looks our > Omega2 doesn't successfully transfer out of U-Boot; the red LED > doesn't turn off, and what seems to be final U-Boot messages aren't > printed. > > Excerpts from our attempt: > > 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 > -------------------------------------------- > ... > 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... > ... > Omega2 # fatload usb 0:1 0x80800000 kernel.MT7628_FDT.lzma.uImage > * > * > Reading file "kernel.MT7628_FDT.lzma.uImage" > * > **************************************************************** > ****** > ************************************************************************************************************************* > ************************************************************ > * > FAT: 1144975 Bytes read > Omega2 # bootm 0x80800000^M > ## 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) ... > > [EOT] > > I know Allan Jude has an OnionOmega2 or two as well, and he's going to > give it a try soon. Any other FreeBSD/mips folks have suggestions to > test? Hi Ed, Im not sure why the boot didnt continue for you - i had a fair bit of trouble getting things going initially with the load address and entry point stuff but those settings worked for me - but the looks of things you have done everything as I did - im not sure why you cant get it to go any further - tbh I think after various randomish attempts and hints from the mips list found the correct load address. I ran into some other problems with what I had planned for the omega2 and unsupported bits so have put it aside for the time being so dont have the build vm I was using to create the mips rootfs but maybe worth a go from scratch with a current version of the freebsd src? Just checking are your trying this on the Omega2 or the Omega2Plus? Also I was using a ral (editmax) wifi usb dongle and a usb hub - I cant remember if I removed the usb memory key before booting but maybe worth messing with usb devices after loading stuff from the memory key and before booting. Also I seem to recall messing with the serial console perhaps - maybe restart you serial terminal emulator perhaps something funny there at boot? am pretty sure the dts stuff setup the console on the correct com port and didnt need to mess with that and i got console output from kernel boot start. Sorry to be a bit vague but I havent messed with this for a little while now. Mike.