Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 May 2017 12:31:37 +0300
From:      Aleksandr Rybalko <ray@ddteam.net>
To:        Stanislav Galabov <sgalabov@gmail.com>
Cc:        Mike Wolman <mike@wolman.co.uk>, Mori Hiroki <yamori813@yahoo.co.jp>,  "freebsd-mips@freebsd.org" <freebsd-mips@freebsd.org>
Subject:   Re: onion omega2+
Message-ID:  <CAJ1Oi8ExWvw_eDG%2BBdeoN8dwHGbjrV-XhHeDWvZavFy6hvdjYw@mail.gmail.com>
In-Reply-To: <05065E4E-1D0F-49DE-B14D-D45ECCEA251F@gmail.com>
References:  <694efc3a-e183-35a1-a0bf-9a9c0d708826@wolman.co.uk> <e92bc818-485f-d9fc-da2b-776bae2b0916@wolman.co.uk> <410144.69078.qm@web101716.mail.ssk.yahoo.co.jp> <fda8b792-f6c4-d0fb-5a99-d190cc3a4f39@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> <CAJ1Oi8Hemuug5JRP9btUgs-MmCFgb-_qS0qrEW7h=BhPAYXpFQ@mail.gmail.com> <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>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <sgalabov@gmail.com>:

> 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 <mike@wolman.co.uk> 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 <mike@wolman.co.uk>
> >>> To: Mori Hiroki <yamori813@yahoo.co.jp>; Aleksandr Rybalko <
> ray@ddteam.net>
> >>> Cc: "freebsd-mips@freebsd.org" <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 <ray@ddteam.net>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ1Oi8ExWvw_eDG%2BBdeoN8dwHGbjrV-XhHeDWvZavFy6hvdjYw>