Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Oct 2014 17:30:36 +0200 (CEST)
From:      Gilles DALMAS <gdalmas@wanadoo.fr>
To:        Ganbold Tsagaankhuu <ganbold@gmail.com>
Cc:        "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org>
Subject:   Re: kernel debugger on cubietruck
Message-ID:  <1388420595.15156.1413646236260.JavaMail.www@wwinf1p15>
In-Reply-To: <CAGtf9xP-XEN8dwrJaczDoz4Ao5s=qndKGCcOdnPetQjf0P=FJQ@mail.gmail.com>
References:  <568188637.10901.1411218668061.JavaMail.www@wwinf1p20> <CAP=KkTwhRpJRW8jTLCjYRf55RLc-xSi%2BFCEBd5WHpU0hn-bUmQ@mail.gmail.com> <1886035707.11136.1411219513483.JavaMail.www@wwinf1p20> <CAGtf9xNnNavZLsSkTEpku187z7cCA%2BtgmXNODa3UQJZ4Kncqcg@mail.gmail.com> <284420224.12277.1411223197278.JavaMail.www@wwinf1p20> <CAGtf9xO4x4%2BHaHn1DTJEoeM5LULMshnktWTQiO-pw_bMcxujig@mail.gmail.com> <1486126360.7756.1413535515292.JavaMail.www@wwinf1c10> <CAGtf9xP-XEN8dwrJaczDoz4Ao5s=qndKGCcOdnPetQjf0P=FJQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
I tried to set directly the path of "if_dwc.c" file in the "files.a20" file=
 but I get this error:



cc: warning: argument unused during compilation: '-mfpu=3Dnone' [-Wunused-c=
ommand-line-argument]
In file included from /usr/home/gilles/freebsd/sys/arm/arm/genassym.c:30:
In file included from /usr/home/gilles/freebsd/sys/sys/param.h:134:
In file included from ./machine/param.h:49:
./machine/acle-compat.h:182:4: error: Unable to determine architecture vers=
ion.
#=C2=A0 error Unable to determine architecture version.
=C2=A0=C2=A0 ^
In file included from /usr/home/gilles/freebsd/sys/arm/arm/genassym.c:30:
In file included from /usr/home/gilles/freebsd/sys/sys/param.h:134:
./machine/param.h:56:5: warning: '__ARM_ARCH' is not defined, evaluates to =
0 [-Wundef]
#if __ARM_ARCH >=3D 6
=C2=A0=C2=A0=C2=A0 ^
In file included from /usr/home/gilles/freebsd/sys/arm/arm/genassym.c:33:
In file included from /usr/home/gilles/freebsd/sys/sys/proc.h:62:
/usr/home/gilles/freebsd/sys/sys/pcpu.h:188:1: error: static_assert failed =
"compile-time assertion failed"
CTASSERT((PAGE_SIZE / sizeof(struct pcpu)) * sizeof(struct pcpu) =3D=3D PAG=
E_SIZE);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=
~~~
/usr/home/gilles/freebsd/sys/sys/systm.h:102:21: note: expanded from macro =
'CTASSERT'
#define CTASSERT(x)=C2=A0=C2=A0=C2=A0=C2=A0 _Static_assert(x, "compile-time=
 assertion failed")
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ^=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ~
1 warning and 2 errors generated.
*** Error code 1

Stop.
make[2]: stopped in /usr/obj/arm.armv6/usr/home/gilles/freebsd/sys/CUBIEBOA=
RD2
*** Error code 1

Stop.
make[1]: stopped in /usr/home/gilles/freebsd
*** Error code 1

Stop.
make: stopped in /usr/home/gilles/freebsd



=C2=A0

I do not know if there is a link.

> Message du 17/10/14 11:00
> De : "Ganbold Tsagaankhuu"=20
> A : "Gilles DALMAS"=20
> Copie =C3=A0 : "freebsd-arm@freebsd.org"=20
> Objet : Re: kernel debugger on cubietruck
>=20
>

>

>
On Fri, Oct 17, 2014 at 4:45 PM, Gilles DALMAS  wrote:
>

> Hi,
>=20
> I just saw this page of "man" on the website of freebsd, could she could =
not solve the problem of GMAC driver?

> http://www.freebsd.org/cgi/man.cgi?query=3Dgem&sektion=3D4

>=20
>



>
If you referring by this to GMAC on A20 then no. However if_dwc driver whic=
h was committed recently is close, but needs some more work to make it work=
 for A20.

>
Ganbold
=C2=A0

>=20
>=20
>=20
>

> Message du 20/09/14 16:30


> > De : "Ganbold Tsagaankhuu"=20
> > A : "Gilles DALMAS"=20
> > Copie =C3=A0 : "freebsd-arm@freebsd.org"=20
> > Objet : Re: kernel debugger on cubietruck
> >=20
> >

> >

> >
On Sat, Sep 20, 2014 at 10:26 PM, Gilles DALMAS  wrote:
> >

> > i comment emac line from :
> >=20
> > # Ethernet
> > device=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 loop
> > device=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 ether
> > device=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 mii
> > device=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 smscphy
> > #device =C2=A0=C2=A0=C2=A0 cpsw
> > device=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 bpf
> >=20
> > device=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 emac
> >=20
> > # USB ethernet support, requires miibus
> > device=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 miibus

> > =C2=A0

> > and re run the compilation ?



> >
Just build kernel only and try.

> >
Ganbold

> > =C2=A0

> > =C2=A0

> > no need to re created the sd card ? just the USB flash ?

> > =C2=A0

> Message du 20/09/14 16:09
> > > De : "Ganbold Tsagaankhuu"=20
> > > A : "Gilles DALMAS"=20
> > > Copie =C3=A0 : "freebsd-arm@freebsd.org"=20


> > > Objet : Re: kernel debugger on cubietruck
> > >=20
> > >

> > >

> > >
On Sat, Sep 20, 2014 at 9:25 PM, Gilles DALMAS  wrote:
> > >
I did not know much about debug kernel, but when I pass the trace command, =
I get:
> > >=20
> > > db> trace
> > > Tracing pid 0 tid 100000 td 0xc08ba870
> > > db_trace_self() at db_trace_self
> > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 pc =3D 0xc04eba6c=C2=
=A0 lr =3D 0xc0232780 (db_hex2dec+0x4d8)
> > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 sp =3D 0xc08e5750=C2=
=A0 fp =3D 0xc08e5768
> > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 r10 =3D 0xc08ba1c4
> > > db_hex2dec() at db_hex2dec+0x4d8
> > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 pc =3D 0xc0232780=C2=
=A0 lr =3D 0xc02320f0 (db_command_loop+0x2fc)
> > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 sp =3D 0xc08e5770=C2=
=A0 fp =3D 0xc08e5810
> > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 r4 =3D 0x00000000=C2=
=A0 r5 =3D 0x00000000
> > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 r6 =3D 0x00000063
> > > db_command_loop() at db_command_loop+0x2fc
> > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 pc =3D 0xc02320f0=C2=
=A0 lr =3D 0xc0231e54 (db_command_loop+0x60)
> > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 sp =3D 0xc08e5818=C2=
=A0 fp =3D 0xc08e5828
> > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 r4 =3D 0xc0528609=C2=
=A0 r5 =3D 0xc0540c1c
> > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 r6 =3D 0xc08ba1b0=C2=
=A0 r7 =3D 0xc08e5a48
> > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 r8 =3D 0x00000001=C2=
=A0 r9 =3D 0xc05d2918
> > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 r10 =3D 0xc0615aa4
> > > db_command_loop() at db_command_loop+0x60
> > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 pc =3D 0xc0231e54=C2=
=A0 lr =3D 0xc023481c (X_db_symbol_values+0x250)
> > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 sp =3D 0xc08e5830=C2=
=A0 fp =3D 0xc08e5950
> > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 r4 =3D 0x00000000=C2=
=A0 r5 =3D 0xc08ba1bc
> > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 r6 =3D 0xc0615ac8
> > > X_db_symbol_values() at X_db_symbol_values+0x250
> > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 pc =3D 0xc023481c=C2=
=A0 lr =3D 0xc0352c88 (kdb_trap+0x15c)
> > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 sp =3D 0xc08e5958=C2=
=A0 fp =3D 0xc08e5978
> > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 r4 =3D 0x00000000=C2=
=A0 r5 =3D 0x00000005
> > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 r6 =3D 0xc0615ac8=C2=
=A0 r7 =3D 0xc08e5a48
> > > kdb_trap() at kdb_trap+0x15c
> > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 pc =3D 0xc0352c88=C2=
=A0 lr =3D 0xc050138c (data_abort_handler+0x680)
> > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 sp =3D 0xc08e5980=C2=
=A0 fp =3D 0xc08e5998
> > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 r4 =3D 0xc08e5a48=C2=
=A0 r5 =3D 0x00000005
> > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 r6 =3D 0x600001d3=C2=
=A0 r7 =3D 0x00000000
> > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 r8 =3D 0x00000013=C2=
=A0 r9 =3D 0xc08e5a48
> > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 r10 =3D 0x00000001
> > > data_abort_handler() at data_abort_handler+0x680
> > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 pc =3D 0xc050138c=C2=
=A0 lr =3D 0xc0501134 (data_abort_handler+0x428)
> > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 sp =3D 0xc08e59a0=C2=
=A0 fp =3D 0xc08e5a40
> > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 r4 =3D 0xc08e5eb0=C2=
=A0 r5 =3D 0xc08ba870
> > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 r6 =3D 0xc08ba548=C2=
=A0 r7 =3D 0x00000005
> > > data_abort_handler() at data_abort_handler+0x428
> > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 pc =3D 0xc0501134=C2=
=A0 lr =3D 0xc04ed754 (exception_exit)
> > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 sp =3D 0xc08e5a48=C2=
=A0 fp =3D 0xc08e5ab0
> > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 r4 =3D 0xc3b49f00=C2=
=A0 r5 =3D 0xc3b4a080
> > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 r6 =3D 0xc3b4a0b8=C2=
=A0 r7 =3D 0x00000000
> > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 r8 =3D 0xc056b038=C2=
=A0 r9 =3D 0xc3ae1700
> > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 r10 =3D 0xc05d4930
> > > exception_exit() at exception_exit
> > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 pc =3D 0xc04ed754=C2=
=A0 lr =3D 0xc024e0f0 (mii_phy_flowstatus+0x2080)
> > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 sp =3D 0xc08e5a98=C2=
=A0 fp =3D 0xc08e5ab0
> > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 r0 =3D 0x00000000=C2=
=A0 r1 =3D 0xc0547c85
> > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 r2 =3D 0x00000072=C2=
=A0 r3 =3D 0x00000008
> > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 r4 =3D 0xc3b49f00=C2=
=A0 r5 =3D 0xc3b4a080
> > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 r6 =3D 0xc3b4a0b8=C2=
=A0 r7 =3D 0x00000000
> > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 r8 =3D 0xc056b038=C2=
=A0 r9 =3D 0xc3ae1700
> > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 r10 =3D 0xc05d4930 r12 =3D=
 0x00000000
> > > strcmp() at strcmp+0x4
> > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 pc =3D 0xc03d7604=C2=
=A0 lr =3D 0xc024e0f0 (mii_phy_flowstatus+0x2080)
> > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 sp =3D 0xc08e5a98=C2=
=A0 fp =3D 0xc08e5ab0
> > > Unwind failure (no registers changed)
> > >

> > >
Please try without=C2=A0emac=C2=A0driver. MII in Cubietruck=C2=A0could be d=
ifferent.
> > >

> > >=20
Ganbold

> > >=20

> > >=20
=C2=A0

> > >=20
> > >=20
> > > =C2=A0
> > >=20
> > > > 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,
> > >=20
> > > > As far as I see strcmp() is passed a NULL pointer, try issuing a ba=
cktrace to get the exact place of calling.
> > >=20
> > > > Regards
> > >=20
> > >=20

On Sep 20, 2014 4:11 PM, "Gilles DALMAS"=C2=A0 wrote:
> > >=20
> > > hi,
> > > >
> > > > =C2=A0
> > > >
> > > > 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 optio=
n confifuration "CUBIEBOARD2." everything goes well, but starting on the "t=
ruck", I get this message:
> > > >
> > > > =C2=A0
> > > >
> > > > 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 =3Dc3b49f00, r5 =3Dc3b4a080, r6 =3Dc3b4a0b8, r7 =3D00000000
> > > > r8 =3Dc056b038, r9 =3Dc3ae1700, r10=3Dc05d4930, r11=3Dc08e5ab0
> > > > r12=3D00000000, ssp=3Dc08e5a98, slr=3Dc024e0f0, pc =3Dc03d7604
> > > >
> > > > [ thread pid 0 tid 100000 ]
> > > > Stopped at=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 strcmp+0x4:=C2=A0=C2=A0=C2=
=A0=C2=A0 ldrb=C2=A0=C2=A0=C2=A0 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.o=
rg"
> > >=20
> > > _______________________________________________
> > > 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=
"




> > >







> >







>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1388420595.15156.1413646236260.JavaMail.www>