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