Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Nov 2017 20:52:38 +0000
From:      Mike Wolman <mike@wolman.co.uk>
To:        Ed Maste <emaste@freebsd.org>
Cc:        "freebsd-mips@freebsd.org" <freebsd-mips@freebsd.org>
Subject:   Re: onion omega2+
Message-ID:  <1d99151e-7a67-2fce-4254-6b36b8daa5a8@wolman.co.uk>
In-Reply-To: <CAPyFy2BEAPpE3GeXo90ZXswjB092QwsXSEmP_ua-Way3gnmS_A@mail.gmail.com>
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> <AE3AB870-6C1F-4BCC-B8A6-B3FA49E8FE10@gmail.com> <a8b9fd4e-6eef-740a-166a-a611b0f133e5@wolman.co.uk> <CAJ1Oi8Eo3jWAy1nRO1auT03zcXBzdxtnqv=9JytyP6GU8yXWGg@mail.gmail.com> <b1892083-81ce-aa99-045b-e8fd83a71c7e@wolman.co.uk> <CAJ-VmokjK-ehABi7nASMwLuVbeBnZ_fYDLfKjTiCSq3ojPuEBg@mail.gmail.com> <f495bb53-b91e-b13c-cd14-7228ebac3591@wolman.co.uk> <CAJ1Oi8EHGnw4gzt=Ku9EBLQafHLkHsWNKUv_iwC2uV99=DdSog@mail.gmail.com> <8b7d4ebb-0048-11d7-9743-7eb6b38e9335@wolman.co.uk> <CAJ1Oi8GBpO=cb4PnfquTYaUSMWS-K2EfwCu_H76m-TYHaP7TPg@mail.gmail.com> <14ba3e3f-4172-a09b-8cba-385400b23ca8@wolman.co.uk> <CAPyFy2BEAPpE3GeXo90ZXswjB092QwsXSEmP_ua-Way3gnmS_A@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help


On 15/11/2017 19:47, Ed Maste wrote:
> On 11 May 2017 at 19:45, Mike Wolman <mike@wolman.co.uk> 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.











Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1d99151e-7a67-2fce-4254-6b36b8daa5a8>