Date: Sat, 18 Oct 2014 08:38:26 +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: <690516400.2059.1413614306421.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>
index | next in thread | previous in thread | raw e-mail
hi ganbold, suddenly, the compilation for cubieboard is possible? I tried adding "device dwc" with the socfpga include file (include "../altera/socfpga/std.socfpga") in the conf file "CUBIEBOARD2" but I get this error, I does not understand too. linking kernel.debug socfpga_common.o: In function `cpu_reset': /usr/home/gilles/freebsd/sys/arm/altera/socfpga/socfpga_common.c:54: multiple definition of `cpu_reset' a10_machdep.o:/usr/home/gilles/freebsd/sys/arm/allwinner/a10_machdep.c:110: first defined here socfpga_common.o: In function `cpu_reset': /usr/home/gilles/freebsd/sys/arm/altera/socfpga/socfpga_common.c:54: multiple definition of `fdt_fixup_table' a10_common.o:/usr/home/gilles/freebsd/sys/arm/allwinner/a10_common.c:47: first defined here socfpga_common.o:(.data+0x0): multiple definition of `fdt_pic_table' a10_common.o:(.data+0x0): first defined here socfpga_machdep.o: In function `platform_lastaddr': /usr/home/gilles/freebsd/sys/arm/altera/socfpga/socfpga_machdep.c:54: multiple definition of `platform_lastaddr' a10_machdep.o:/usr/home/gilles/freebsd/sys/arm/allwinner/a10_machdep.c:58: first defined here socfpga_machdep.o: In function `platform_probe_and_attach': /usr/home/gilles/freebsd/sys/arm/altera/socfpga/socfpga_machdep.c:61: multiple definition of `platform_probe_and_attach' a10_machdep.o:/usr/home/gilles/freebsd/sys/arm/allwinner/a10_machdep.c:64: first defined here socfpga_machdep.o: In function `platform_gpio_init': /usr/home/gilles/freebsd/sys/arm/altera/socfpga/socfpga_machdep.c:67: multiple definition of `platform_gpio_init' a10_machdep.o:/usr/home/gilles/freebsd/sys/arm/allwinner/a10_machdep.c:69: first defined here socfpga_machdep.o: In function `platform_late_init': /usr/home/gilles/freebsd/sys/arm/altera/socfpga/socfpga_machdep.c:73: multiple definition of `platform_late_init' a10_machdep.o:/usr/home/gilles/freebsd/sys/arm/allwinner/a10_machdep.c:74: first defined here socfpga_machdep.o: In function `platform_devmap_init': /usr/home/gilles/freebsd/sys/arm/altera/socfpga/socfpga_machdep.c:77: multiple definition of `platform_devmap_init' a10_machdep.o:/usr/home/gilles/freebsd/sys/arm/allwinner/a10_machdep.c:88: first defined here socfpga_machdep.o: In function `bus_dma_get_range': /usr/home/gilles/freebsd/sys/arm/altera/socfpga/socfpga_machdep.c:103: multiple definition of `bus_dma_get_range' a10_machdep.o:/usr/home/gilles/freebsd/sys/arm/allwinner/a10_machdep.c:97: first defined here socfpga_machdep.o: In function `bus_dma_get_range_nb': /usr/home/gilles/freebsd/sys/arm/altera/socfpga/socfpga_machdep.c:110: multiple definition of `bus_dma_get_range_nb' a10_machdep.o:/usr/home/gilles/freebsd/sys/arm/allwinner/a10_machdep.c:103: first defined here socfpga_mp.o: In function `platform_mp_init_secondary': /usr/home/gilles/freebsd/sys/arm/altera/socfpga/socfpga_mp.c:87: multiple definition of `platform_mp_init_secondary' a20_mp.o:/usr/home/gilles/freebsd/sys/arm/allwinner/a20/a20_mp.c:60: first defined here socfpga_mp.o: In function `platform_mp_setmaxid': /usr/home/gilles/freebsd/sys/arm/altera/socfpga/socfpga_mp.c:96: multiple definition of `platform_mp_setmaxid' a20_mp.o:/usr/home/gilles/freebsd/sys/arm/allwinner/a20/a20_mp.c:68: first defined here socfpga_mp.o: In function `platform_mp_probe': /usr/home/gilles/freebsd/sys/arm/altera/socfpga/socfpga_mp.c:114: multiple definition of `platform_mp_probe' a20_mp.o:/usr/home/gilles/freebsd/sys/arm/allwinner/a20/a20_mp.c:83: first defined here socfpga_mp.o: In function `platform_mp_start_ap': /usr/home/gilles/freebsd/sys/arm/altera/socfpga/socfpga_mp.c:126: multiple definition of `platform_mp_start_ap' a20_mp.o:/usr/home/gilles/freebsd/sys/arm/allwinner/a20/a20_mp.c:96: first defined here socfpga_mp.o: In function `platform_ipi_send': /usr/home/gilles/freebsd/sys/arm/altera/socfpga/socfpga_mp.c:176: multiple definition of `platform_ipi_send' a20_mp.o:/usr/home/gilles/freebsd/sys/arm/allwinner/a20/a20_mp.c:154: first defined here *** Error code 1 Stop. make[2]: stopped in /usr/obj/arm.armv6/usr/home/gilles/freebsd/sys/CUBIEBOARD2 *** Error code 1 Stop. make[1]: stopped in /usr/home/gilles/freebsd *** Error code 1 Stop. make: stopped in /usr/home/gilles/freebsd > Message du 17/10/14 11:00 > De : "Ganbold Tsagaankhuu" > A : "Gilles DALMAS" > Copie à : "freebsd-arm@freebsd.org" > Objet : Re: kernel debugger on cubietruck > > > > On Fri, Oct 17, 2014 at 4:45 PM, Gilles DALMAS wrote: > > Hi, > > 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=gem&sektion=4 > > > If you referring by this to GMAC on A20 then no. However if_dwc driver which was committed recently is close, but needs some more work to make it work for A20. > Ganbold > > > > > Message du 20/09/14 16:30 > > De : "Ganbold Tsagaankhuu" > > A : "Gilles DALMAS" > > Copie à : "freebsd-arm@freebsd.org" > > Objet : Re: kernel debugger on cubietruck > > > > > > > > On Sat, Sep 20, 2014 at 10:26 PM, Gilles DALMAS wrote: > > > > i comment emac line from : > > > > # Ethernet > > device loop > > device ether > > device mii > > device smscphy > > #device cpsw > > device bpf > > > > device emac > > > > # USB ethernet support, requires miibus > > device miibus > > > > and re run the compilation ? > > Just build kernel only and try. > > Ganbold > > > > > > 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 à : "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 know 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 = 0xc04eba6c lr = 0xc0232780 (db_hex2dec+0x4d8) > > > sp = 0xc08e5750 fp = 0xc08e5768 > > > r10 = 0xc08ba1c4 > > > db_hex2dec() at db_hex2dec+0x4d8 > > > pc = 0xc0232780 lr = 0xc02320f0 (db_command_loop+0x2fc) > > > sp = 0xc08e5770 fp = 0xc08e5810 > > > r4 = 0x00000000 r5 = 0x00000000 > > > r6 = 0x00000063 > > > db_command_loop() at db_command_loop+0x2fc > > > pc = 0xc02320f0 lr = 0xc0231e54 (db_command_loop+0x60) > > > sp = 0xc08e5818 fp = 0xc08e5828 > > > r4 = 0xc0528609 r5 = 0xc0540c1c > > > r6 = 0xc08ba1b0 r7 = 0xc08e5a48 > > > r8 = 0x00000001 r9 = 0xc05d2918 > > > r10 = 0xc0615aa4 > > > db_command_loop() at db_command_loop+0x60 > > > pc = 0xc0231e54 lr = 0xc023481c (X_db_symbol_values+0x250) > > > sp = 0xc08e5830 fp = 0xc08e5950 > > > r4 = 0x00000000 r5 = 0xc08ba1bc > > > r6 = 0xc0615ac8 > > > X_db_symbol_values() at X_db_symbol_values+0x250 > > > pc = 0xc023481c lr = 0xc0352c88 (kdb_trap+0x15c) > > > sp = 0xc08e5958 fp = 0xc08e5978 > > > r4 = 0x00000000 r5 = 0x00000005 > > > r6 = 0xc0615ac8 r7 = 0xc08e5a48 > > > kdb_trap() at kdb_trap+0x15c > > > pc = 0xc0352c88 lr = 0xc050138c (data_abort_handler+0x680) > > > sp = 0xc08e5980 fp = 0xc08e5998 > > > r4 = 0xc08e5a48 r5 = 0x00000005 > > > r6 = 0x600001d3 r7 = 0x00000000 > > > r8 = 0x00000013 r9 = 0xc08e5a48 > > > r10 = 0x00000001 > > > data_abort_handler() at data_abort_handler+0x680 > > > pc = 0xc050138c lr = 0xc0501134 (data_abort_handler+0x428) > > > sp = 0xc08e59a0 fp = 0xc08e5a40 > > > r4 = 0xc08e5eb0 r5 = 0xc08ba870 > > > r6 = 0xc08ba548 r7 = 0x00000005 > > > data_abort_handler() at data_abort_handler+0x428 > > > pc = 0xc0501134 lr = 0xc04ed754 (exception_exit) > > > sp = 0xc08e5a48 fp = 0xc08e5ab0 > > > r4 = 0xc3b49f00 r5 = 0xc3b4a080 > > > r6 = 0xc3b4a0b8 r7 = 0x00000000 > > > r8 = 0xc056b038 r9 = 0xc3ae1700 > > > r10 = 0xc05d4930 > > > exception_exit() at exception_exit > > > pc = 0xc04ed754 lr = 0xc024e0f0 (mii_phy_flowstatus+0x2080) > > > sp = 0xc08e5a98 fp = 0xc08e5ab0 > > > r0 = 0x00000000 r1 = 0xc0547c85 > > > r2 = 0x00000072 r3 = 0x00000008 > > > r4 = 0xc3b49f00 r5 = 0xc3b4a080 > > > r6 = 0xc3b4a0b8 r7 = 0x00000000 > > > r8 = 0xc056b038 r9 = 0xc3ae1700 > > > r10 = 0xc05d4930 r12 = 0x00000000 > > > strcmp() at strcmp+0x4 > > > pc = 0xc03d7604 lr = 0xc024e0f0 (mii_phy_flowstatus+0x2080) > > > sp = 0xc08e5a98 fp = 0xc08e5ab0 > > > 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 à : 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" wrote: > > > > > > 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=00000005, FAR=00000000, spsr=a00001d3 > > > > r0 =00000000, r1 =c0547c85, r2 =00000072, r3 =00000008 > > > > r4 =c3b49f00, r5 =c3b4a080, r6 =c3b4a0b8, r7 =00000000 > > > > r8 =c056b038, r9 =c3ae1700, r10=c05d4930, r11=c08e5ab0 > > > > r12=00000000, ssp=c08e5a98, slr=c024e0f0, pc =c03d7604 > > > > > > > > [ 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" > > > > > >help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?690516400.2059.1413614306421.JavaMail.www>
