smc driver

Philippe Simons loki_666 at fastmail.fm
Mon Jul 4 17:44:20 UTC 2005


Hi,

i've been playing with a smc driver for the gp32 bsp, but I ran into a
strage issue...
I was able to sucessfully mount the smc with the fileio sample, read
some files and browse with the shell.
now I'm trying to build an app which mount the smc, like fileio does,
but link fails with
undefined reference to `rtems_ide_part_table_initialize(char*)'

I've checked librtemscpu.a and there is an ide_part_table.o with the fct
rtems_ide_part_table_initialize...
btw, the same app was able to link with Untar_FromMemory() fct which is
in librtemscpu.a too...

here is my system.h
/* configuration information */

#include <bsp.h> /* for device driver prototypes */
#include <smc.h>

#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER

#define CONFIGURE_HAS_OWN_DEVICE_DRIVER_TABLE

#ifdef CONFIGURE_INIT
rtems_driver_address_table Device_drivers[] =
	{
	CONSOLE_DRIVER_TABLE_ENTRY
	,CLOCK_DRIVER_TABLE_ENTRY
	,SMC_DRIVER_TABLE_ENTRY
	};

#include <rtems/bdbuf.h>
rtems_bdbuf_config rtems_bdbuf_configuration[] = {
  {512,128,NULL}
};

int rtems_bdbuf_configuration_size =( sizeof(rtems_bdbuf_configuration)
				     /sizeof(rtems_bdbuf_configuration[0]));
#endif


#define CONFIGURE_MAXIMUM_TASKS             20
#define CONFIGURE_MAXIMUM_SEMAPHORES        20
#define CONFIGURE_MAXIMUM_MESSAGE_QUEUES    20
#define CONFIGURE_INIT_TASK_PRIORITY          10
#define CONFIGURE_INIT_TASK_INITIAL_MODES     RTEMS_PREEMPT

#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS        20
#define CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEM
#define CONFIGURE_INIT_TASK_ENTRY_POINT   main_task
#define CONFIGURE_INIT_TASK_NAME          rtems_build_name( 'A', 'W',
'3', '2' )
#define CONFIGURE_INIT_TASK_STACK_SIZE  (20 * RTEMS_MINIMUM_STACK_SIZE)

#define CONFIGURE_EXTRA_TASK_STACKS     (20 * RTEMS_MINIMUM_STACK_SIZE)

#include <rtems/confdefs.h>

I dont know whats wrong...
TIA

-- 
http://www.fastmail.fm - Access all of your messages and folders
                          wherever you are




More information about the users mailing list