From owner-freebsd-arm@FreeBSD.ORG Sun Sep 21 04:25:43 2014 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 75585B38 for ; Sun, 21 Sep 2014 04:25:43 +0000 (UTC) Received: from mail-ig0-x232.google.com (mail-ig0-x232.google.com [IPv6:2607:f8b0:4001:c05::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3CE7B35C for ; Sun, 21 Sep 2014 04:25:43 +0000 (UTC) Received: by mail-ig0-f178.google.com with SMTP id r10so1108522igi.11 for ; Sat, 20 Sep 2014 21:25:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=9bmnDMZwsX4k14qFPvj0wUjX4RwVxiZo69zsXInp1uo=; b=XAeaa2I5sbT+lhRpU6+kMGhxYz8/C4uF/Vaz6hsd0R4wB70LVaF4/EJEfwzXvdWND2 IU4speYLjed7vTQNJOSEuBAa1wWx13EbF3kwqQjkql22yw4eOxJhcFn8LPz+D7iqMpbC G+lbdoLmgksDAvU5Kp/PacedBzL4LxVxDncWlVLXQP/M0qc26aMAjwVG2Ha3aH8PhCYu rwC5gshl6eRoa8b3po7uusWRZtKaV4/jKcYjBB2vQoyRtYt/ikopycEeOA+75C5PvtaM g7/bh72b962zDhe1++PK0rNm8hjJHLEnpL6t7iLPhTgtiuE0HV9SNU4C36EnhbU/+gL8 XAAA== MIME-Version: 1.0 X-Received: by 10.50.66.36 with SMTP id c4mr6402829igt.48.1411273542198; Sat, 20 Sep 2014 21:25:42 -0700 (PDT) Received: by 10.64.119.193 with HTTP; Sat, 20 Sep 2014 21:25:42 -0700 (PDT) In-Reply-To: <857916216.19088.1411240494803.JavaMail.www@wwinf1p21> References: <568188637.10901.1411218668061.JavaMail.www@wwinf1p20> <1886035707.11136.1411219513483.JavaMail.www@wwinf1p20> <284420224.12277.1411223197278.JavaMail.www@wwinf1p20> <584735728.12399.1411223474805.JavaMail.www@wwinf1p20> <139071258.18161.1411238741408.JavaMail.www@wwinf1p20> <857916216.19088.1411240494803.JavaMail.www@wwinf1p21> Date: Sun, 21 Sep 2014 12:25:42 +0800 Message-ID: Subject: Re: kernel debugger on cubietruck From: Ganbold Tsagaankhuu To: Gilles DALMAS Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: freebsd-arm X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Sep 2014 04:25:43 -0000 On Sun, Sep 21, 2014 at 3:14 AM, Gilles DALMAS wrote: > the network interface is not detected > > > Cubietruck should have GMAC ethernet, currently it is not supported in FreeBSD. Ganbold > > > > Message du 20/09/14 20:45 > > De : "Gilles DALMAS" > > A : "Ganbold Tsagaankhuu" > > Copie =C3=A0 : "freebsd-arm" > > Objet : Re: kernel debugger on cubietruck > > > > when I try to put "ufs: / dev / da0", the system starts but I have a lo= t > of "no such device" and "spurious interrupt detected" > Message du 20/09/= 14 > 16:35 > De : "Ganbold Tsagaankhuu" > A : "Gilles DALMAS" > Copie =C3=A0 := > > Objet : Re: kernel debugger on cubietruck > > > > On Sat, Sep 20, 2014 at > 10:31 PM, Gilles DALMAS wrote: > > no need to re make the kernel-toolchai= n > ? > > No just build kernel only. > Ganbold > > > > > > Message du > 20/09/14 16:26 > > De : "Gilles DALMAS" > > A : "Ganbold Tsagaankhuu" > > > Copie =C3=A0 : "freebsd-arm@freebsd.org" > > Objet : Re: kernel debugger = on > cubietruck > > > > i comment emac line from : # Ethernet device lo= op > device ether device mii device smscphy #device > cpsw device bpf device emac # USB ethernet support, require= s > miibus device miibus and re run the compilation ? no need to > re created the sd card ? just the USB flash ? > Message du 20/09/14 16:= 09 > > De : "Ganbold Tsagaankhuu" > A : "Gilles DALMAS" > Copie =C3=A0 : " > freebsd-arm@freebsd.org" > Objet : Re: kernel debugger on cubietruck > > > > > On Sat, Sep 20, 2014 at 9:25 PM, Gilles DALMAS wrote: > I did not kno= w > much about debug kernel, but when I pass the trace command, I get: > > db= > > trace > Tracing pid 0 tid 100000 td 0xc08ba870 > db_trace_self() at > db_trace_self > pc =3D 0xc04eba6c lr =3D 0xc0232780 > (db_hex2dec+0x4d8) > sp =3D 0xc08e5750 fp =3D 0xc08e5768 > > r10 =3D 0xc08ba1c4 > db_hex2dec() at db_hex2dec+0x4d8 > pc =3D > 0xc0232780 lr =3D 0xc02320f0 (db_command_loop+0x2fc) > sp =3D > 0xc08e5770 fp =3D 0xc08e5810 > r4 =3D 0x00000000 r5 =3D 0x0000= 0000 > > r6 =3D 0x00000063 > db_command_loop() at db_command_loop+0x2fc > > pc =3D 0xc02320f0 lr =3D 0xc0231e54 (db_command_loop+0x60) > > sp =3D 0xc08e5818 fp =3D 0xc08e5828 > r4 =3D 0xc0528609 r5 =3D > 0xc0540c1c > r6 =3D 0xc08ba1b0 r7 =3D 0xc08e5a48 > r8 = =3D > 0x00000001 r9 =3D 0xc05d2918 > r10 =3D 0xc0615aa4 > db_command_l= oop() > at db_command_loop+0x60 > pc =3D 0xc0231e54 lr =3D 0xc023481c > (X_db_symbol_values+0x250) > sp =3D 0xc08e5830 fp =3D 0xc08e595= 0 > > r4 =3D 0x00000000 r5 =3D 0xc08ba1bc > r6 =3D 0xc0615ac= 8 > > X_db_symbol_values() at X_db_symbol_values+0x250 > pc =3D > 0xc023481c lr =3D 0xc0352c88 (kdb_trap+0x15c) > sp =3D 0xc08e59= 58 fp > =3D 0xc08e5978 > r4 =3D 0x00000000 r5 =3D 0x00000005 > = r6 =3D > 0xc0615ac8 r7 =3D 0xc08e5a48 > kdb_trap() at kdb_trap+0x15c > p= c =3D > 0xc0352c88 lr =3D 0xc050138c (data_abort_handler+0x680) > sp = =3D > 0xc08e5980 fp =3D 0xc08e5998 > r4 =3D 0xc08e5a48 r5 =3D 0x0000= 0005 > > r6 =3D 0x600001d3 r7 =3D 0x00000000 > r8 =3D 0x0000001= 3 r9 =3D > 0xc08e5a48 > r10 =3D 0x00000001 > data_abort_handler() at > data_abort_handler+0x680 > pc =3D 0xc050138c lr =3D 0xc0501134 > (data_abort_handler+0x428) > sp =3D 0xc08e59a0 fp =3D 0xc08e5a4= 0 > > r4 =3D 0xc08e5eb0 r5 =3D 0xc08ba870 > r6 =3D 0xc08ba54= 8 r7 =3D > 0x00000005 > data_abort_handler() at data_abort_handler+0x428 > = pc > =3D 0xc0501134 lr =3D 0xc04ed754 (exception_exit) > sp =3D 0xc0= 8e5a48 > fp =3D 0xc08e5ab0 > r4 =3D 0xc3b49f00 r5 =3D 0xc3b4a080 > = r6 =3D > 0xc3b4a0b8 r7 =3D 0x00000000 > r8 =3D 0xc056b038 r9 =3D 0xc3ae= 1700 > > r10 =3D 0xc05d4930 > exception_exit() at exception_exit > = pc > =3D 0xc04ed754 lr =3D 0xc024e0f0 (mii_phy_flowstatus+0x2080) > = sp =3D > 0xc08e5a98 fp =3D 0xc08e5ab0 > r0 =3D 0x00000000 r1 =3D 0xc054= 7c85 > > r2 =3D 0x00000072 r3 =3D 0x00000008 > r4 =3D 0xc3b49f0= 0 r5 =3D > 0xc3b4a080 > r6 =3D 0xc3b4a0b8 r7 =3D 0x00000000 > r8 = =3D > 0xc056b038 r9 =3D 0xc3ae1700 > r10 =3D 0xc05d4930 r12 =3D 0x0000= 0000 > > strcmp() at strcmp+0x4 > pc =3D 0xc03d7604 lr =3D 0xc024e0f0 > (mii_phy_flowstatus+0x2080) > sp =3D 0xc08e5a98 fp =3D 0xc08e5a= b0 > > Unwind failure (no registers changed) > > Please try without emac driver. > MII in Cubietruck could be different. > > Ganbold > > > > > > > > > Message du 20/09/14 15:13 > > De : "Boris Astardzhiev" > > A : "Gilles > DALMAS" > > Copie =C3=A0 : freebsd-arm@freebsd.org > > Objet : Re: kernel > debugger on cubietruck > > > > > > Hi, > > > As far as I see strcmp() is > passed a NULL pointer, try issuing a backtrace to get the exact place of > calling. > > > Regards > > On Sep 20, 2014 4:11 PM, "Gilles DALMAS" wrot= e: > > > hi, > > > > > > > > I would compile freebsd for it run on a > cubietruck. For this I used the wiki page: > https://wiki.freebsd.org/FreeBSD/arm/Cubieboard using option > confifuration "CUBIEBOARD2." everything goes well, but starting on the > "truck", I get this message: > > > > > > > > vm_fault(0xc08bab80, 0, 1, > 0) -> 1 > > Fatal kernel mode data abort: 'Translation Fault (S)' > > > trapframe: 0xc08e5a48 > > FSR=3D00000005, FAR=3D00000000, spsr=3Da00001d3= > > r0 > =3D00000000, r1 =3Dc0547c85, r2 =3D00000072, r3 =3D00000008 > > r4 =3Dc3b= 49f00, r5 > =3Dc3b4a080, r6 =3Dc3b4a0b8, r7 =3D00000000 > > r8 =3Dc056b038, r9 =3Dc3a= e1700, > r10=3Dc05d4930, r11=3Dc08e5ab0 > > r12=3D00000000, ssp=3Dc08e5a98, slr=3D= c024e0f0, pc > =3Dc03d7604 > > > > [ thread pid 0 tid 100000 ] > > Stopped at > strcmp+0x4: ldrb r3, [r0] > > > > > > > > where is the problem > please ? > > > > _______________________________________________ > > > freebsd-arm@freebsd.org mailing list > > > http://lists.freebsd.org/mailman/listinfo/freebsd-arm > > To unsubscribe, > send any mail to "freebsd-arm-unsubscribe@freebsd.org" > > > _______________________________________________ > freebsd-arm@freebsd.org > mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arm > To > unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" > > _______________________________________________ freebsd-arm@freebsd.org > mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-arm To > unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" > > _______________________________________________ freebsd-arm@freebsd.org > mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-arm To > unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" > >