<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 04/29/14 01:50, Alan Cudmore wrote:<br>
</div>
<blockquote
cite="mid:CAJrjN72Ttb6AAYjPb3NiN0-9kLDozLFK2YpQDMEn+q-ygDogJA@mail.gmail.com"
type="cite">
<div dir="ltr">Do you have the right configuration options
defined?
<div><br>
</div>
<div>I rebuilt the raspberry Pi BSP with all tests (
--enable-tests=yes ). This includes the
testsuites/fstests/fsbdpart01 test.</div>
<div>The test links and runs, but I'm not sure if it passes ( or
if it should completely, since there is no IDE hardware on the
Pi)</div>
<div>I get this output:</div>
<div>
<div>*** BEGIN OF TEST FSBDPART 1 ***</div>
<div>../../../../../../../rtems-git/c/src/../../testsuites/fstests/fsbdpart01/init.c:
143 (sc) == RTEMS_SUCCESSFUL</div>
<div><br>
</div>
</div>
<div>
After this it seems to hang.</div>
<div><br>
</div>
<div><br>
</div>
<div>But , the init.c for that test may help you with the
configuration in your code.</div>
<div><br>
</div>
</div>
</blockquote>
<br>
I have configured the base filesystem to IMFS (as used in the
fstests/fsbdpart01) instead of the devfs used on samples/hello and
it compiles now.<br>
<br>
Thanks for the help.<br>
<br>
<blockquote
cite="mid:CAJrjN72Ttb6AAYjPb3NiN0-9kLDozLFK2YpQDMEn+q-ygDogJA@mail.gmail.com"
type="cite">
<div dir="ltr">
<div><br>
</div>
<div><br>
</div>
</div>
<div class="gmail_extra">
<br>
<br>
<div class="gmail_quote">On Mon, Apr 28, 2014 at 2:56 PM, Andre
Marques <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:andre.lousa.marques@gmail.com"
target="_blank">andre.lousa.marques@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
I am currently working on an emmc driver for the Raspberry
Pi, and I am trying to mount the SD card using libblock on
RTEMS GIT HEAD.<br>
<br>
To mount the SD card I am doing:<br>
<br>
1. rtems_io_register_driver (by calling my driver with
CONFIGURE_APPLICATION_EXTRA_DRIVERS on hello sample)<br>
<br>
2. rtems_filesystem_make_dev_t to get the device file<br>
<br>
3. rtems_disk_io_initialize<br>
<br>
4. rtems_disk_create_phys<br>
<br>
Up until this point everything seems good.<br>
<br>
Next I try to read the SD card partition table with
rtems_bdpart_register_from_disk, and for that I add an
include for rtems/bdpart.h<br>
<br>
When I hit compile, the result seems to point at a linker
problem (conflict with dummy.o):<br>
<br>
(..)<br>
Making all in hello<br>
gmake[6]: Entering directory `/home/bison/RTEMS/arm/raspberry_pi/b-rtems4.11/arm-rtems4.11/c/raspberrypi/testsuites/samples/hello'<br>
arm-rtems4.11-gcc -B../../../../../raspberrypi/lib/ -specs
bsp_specs -qrtems -DHAVE_CONFIG_H -I.
-I/home/bison/RTEMS/code/c/src/../../testsuites/samples/hello
-I.. -mcpu=arm1176jzf-s -O2 -g -Wall
-Wmissing-prototypes -Wimplicit-function-declaration
-Wstrict-prototypes -Wnested-externs -MT init.o -MD -MP -MF
.deps/init.Tpo -c -o init.o /home/bison/RTEMS/code/c/src/../../testsuites/samples/hello/init.c<br>
mv -f .deps/init.Tpo .deps/init.Po<br>
arm-rtems4.11-gcc -B../../../../../raspberrypi/lib/ -specs
bsp_specs -qrtems -mcpu=arm1176jzf-s -O2 -g -Wall
-Wmissing-prototypes -Wimplicit-function-declaration
-Wstrict-prototypes -Wnested-externs -mcpu=arm1176jzf-s
-o hello.exe init.o<br>
../../../../../raspberrypi/lib/librtemscpu.a(dummy.o): In
function `_Thread_Idle_body':<br>
/home/bison/RTEMS/arm/raspberry_pi/b-rtems4.11/arm-rtems4.11/c/raspberrypi/cpukit/libmisc/../../cpukit/../../../raspberrypi/lib/include/rtems/confdefs.h:849:
multiple definition of `_Thread_Idle_body'<br>
init.o:/home/bison/RTEMS/arm/raspberry_pi/b-rtems4.11/arm-rtems4.11/c/raspberrypi/testsuites/samples/hello/../../../../../raspberrypi/lib/include/rtems/confdefs.h:849:
first defined here<br>
../../../../../raspberrypi/lib/librtemscpu.a(dummy.o): In
function `_Thread_Get_executing':<br>
/home/bison/RTEMS/arm/raspberry_pi/b-rtems4.11/arm-rtems4.11/c/raspberrypi/cpukit/libmisc/../../cpukit/../../../raspberrypi/lib/include/rtems/score/thread.h:632:
multiple definition of `__getreent'<br>
init.o:/home/bison/RTEMS/arm/raspberry_pi/b-rtems4.11/arm-rtems4.11/c/raspberrypi/testsuites/samples/hello/../../../../../raspberrypi/lib/include/rtems/score/thread.h:632:
first defined here<br>
../../../../../raspberrypi/lib/librtemscpu.a(dummy.o): In
function `_Thread_Idle_body':<br>
/home/bison/RTEMS/arm/raspberry_pi/b-rtems4.11/arm-rtems4.11/c/raspberrypi/cpukit/libmisc/../../cpukit/../../../raspberrypi/lib/include/rtems/confdefs.h:849:
multiple definition of `_POSIX_Threads_Initialize_user_threads_p'<br>
init.o:/home/bison/RTEMS/arm/raspberry_pi/b-rtems4.11/arm-rtems4.11/c/raspberrypi/testsuites/samples/hello/../../../../../raspberrypi/lib/include/rtems/confdefs.h:849:
first defined here<br>
../../../../../raspberrypi/lib/librtemscpu.a(dummy.o):(.data+0x0):
multiple definition of `_RTEMS_tasks_Initialize_user_tasks_p'<br>
init.o:(.data+0x0): first defined here<br>
../../../../../raspberrypi/lib/librtemscpu.a(dummy.o):(.rodata+0x0):
multiple definition of `Configuration'<br>
init.o:(.rodata+0x0): first defined here<br>
../../../../../raspberrypi/lib/librtemscpu.a(dummy.o):(.data+0x4):
multiple definition of `rtems_maximum_priority'<br>
init.o:(.data+0x4): first defined here<br>
../../../../../raspberrypi/lib/librtemscpu.a(dummy.o):(.data+0x8):
multiple definition of `rtems_minimum_stack_size'<br>
init.o:(.data+0x8): first defined here<br>
../../../../../raspberrypi/lib/librtemscpu.a(dummy.o): In
function `_Thread_Get_executing':<br>
/home/bison/RTEMS/arm/raspberry_pi/b-rtems4.11/arm-rtems4.11/c/raspberrypi/cpukit/libmisc/../../cpukit/../../../raspberrypi/lib/include/rtems/score/thread.h:632:
multiple definition of `Configuration_POSIX_API'<br>
init.o:/home/bison/RTEMS/arm/raspberry_pi/b-rtems4.11/arm-rtems4.11/c/raspberrypi/testsuites/samples/hello/../../../../../raspberrypi/lib/include/rtems/test.h:73:
first defined here<br>
../../../../../raspberrypi/lib/librtemscpu.a(dummy.o):(.data+0xc):
multiple definition of `Configuration_RTEMS_API'<br>
init.o:(.data+0xc): first defined here<br>
../../../../../raspberrypi/lib/librtemscpu.a(dummy.o):(.data+0x3c):
multiple definition of `Device_drivers'<br>
init.o:(.data+0x3c): first defined here<br>
../../../../../raspberrypi/lib/librtemscpu.a(dummy.o):(.data+0x6c):
multiple definition of `Initialization_tasks'<br>
init.o:(.data+0x6c): first defined here<br>
../../../../../raspberrypi/lib/librtemscpu.a(dummy.o):(.bss+0x38):
multiple definition of `rtems_malloc_dirty_helper'<br>
init.o:/home/bison/RTEMS/code/c/src/../../testsuites/samples/hello/init.c:47:
first defined here<br>
../../../../../raspberrypi/lib/librtemscpu.a(dummy.o):(.rodata+0x74):
multiple definition of `rtems_malloc_extend_handler'<br>
init.o:(.rodata+0xc8): first defined here<br>
../../../../../raspberrypi/lib/librtemscpu.a(dummy.o):(.bss+0x3c):
multiple definition of `rtems_malloc_statistics_helpers'<br>
init.o:/home/bison/RTEMS/arm/raspberry_pi/b-rtems4.11/arm-rtems4.11/c/raspberrypi/testsuites/samples/hello/../../../../../raspberrypi/lib/include/rtems/score/thread.h:632:
first defined here<br>
../../../../../raspberrypi/lib/librtemscpu.a(dummy.o):(.data+0x88):
multiple definition of `RTEMS_Malloc_Heap'<br>
init.o:(.data+0x88): first defined here<br>
../../../../../raspberrypi/lib/librtemscpu.a(dummy.o):(.rodata+0x78):
multiple definition of `_Scheduler_FIXME_thread_priority_queues_are_broken'<br>
init.o:(.rodata+0xcc): first defined here<br>
../../../../../raspberrypi/lib/librtemscpu.a(dummy.o):(.data+0x8c):
multiple definition of `_Scheduler'<br>
init.o:(.data+0x8c): first defined here<br>
../../../../../raspberrypi/lib/librtemscpu.a(dummy.o):(.rodata+0x7c):
multiple definition of `rtems_filesystem_root_configuration'<br>
init.o:(.rodata+0xd0): first defined here<br>
../../../../../raspberrypi/lib/librtemscpu.a(dummy.o):(.rodata+0x90):
multiple definition of `rtems_filesystem_table'<br>
init.o:(.rodata+0xec): first defined here<br>
/home/bison/RTEMS/arm/tools/rtems-4.11_arm/lib/gcc/arm-rtems4.11/4.8.2/../../../../arm-rtems4.11/bin/ld:
Warning: size of symbol `rtems_filesystem_table' changed
from 24 in init.o to 16 in ../../../../../raspberrypi/lib/librtemscpu.a(dummy.o)<br>
../../../../../raspberrypi/lib/librtemscpu.a(dummy.o):(.bss+0x40):
multiple definition of `rtems_telnetd_maximum_ptys'<br>
init.o:(.bss+0x90): first defined here<br>
../../../../../raspberrypi/lib/librtemscpu.a(dummy.o):(.data+0xd0):
multiple definition of `rtems_libio_number_iops'<br>
init.o:(.data+0xcc): first defined here<br>
../../../../../raspberrypi/lib/librtemscpu.a(dummy.o):(.rodata+0xa0):
multiple definition of `rtems_fs_init_helper'<br>
init.o:(.rodata+0x104): first defined here<br>
../../../../../raspberrypi/lib/librtemscpu.a(dummy.o):(.rodata+0xa4):
multiple definition of `rtems_libio_exit_helper'<br>
init.o:(.rodata+0x108): first defined here<br>
../../../../../raspberrypi/lib/librtemscpu.a(dummy.o):(.rodata+0xa8):
multiple definition of `rtems_libio_post_driver_helper'<br>
init.o:(.rodata+0x10c): first defined here<br>
../../../../../raspberrypi/lib/librtemscpu.a(dummy.o):(.rodata+0xac):
multiple definition of `rtems_libio_init_helper'<br>
init.o:(.rodata+0x110): first defined here<br>
../../../../../raspberrypi/lib/librtemscpu.a(dummy.o):(.data+0x7c):
undefined reference to `main'<br>
collect2: error: ld returned 1 exit status<br>
(..)<br>
<br>
Any clue of what may be the problem?<br>
<br>
--André Marques.<br>
<br>
_______________________________________________<br>
rtems-devel mailing list<br>
<a moz-do-not-send="true"
href="mailto:rtems-devel@rtems.org" target="_blank">rtems-devel@rtems.org</a><br>
<a moz-do-not-send="true"
href="http://www.rtems.org/mailman/listinfo/rtems-devel"
target="_blank">http://www.rtems.org/mailman/listinfo/rtems-devel</a><br>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</body>
</html>