[GSOC2009] LCD and Ethernet card support for Gumstix on Skyeye simulator

xi yang hiyangxi at gmail.com
Sat Aug 22 11:03:59 UTC 2009


Hi Joel
The previous patch corrupt the interrupt handler. Sorry, forget that
patch, try this one.


2009/8/22 xi yang <hiyangxi at gmail.com>:
> Hi Joel,
> I checked out newest version form CVS, it seems that you have forgot
> to merge some "#define" to pxa255.h. Here is the patch for it and
> warnning message.
>
> Index: c/src/lib/libbsp/arm/gumstix/fb/fb.c
> ===================================================================
> RCS file: /usr1/CVS/rtems/c/src/lib/libbsp/arm/gumstix/fb/fb.c,v
> retrieving revision 1.1
> diff -u -r1.1 fb.c
> --- c/src/lib/libbsp/arm/gumstix/fb/fb.c        21 Aug 2009 17:49:31 -0000      1.1
> +++ c/src/lib/libbsp/arm/gumstix/fb/fb.c        22 Aug 2009 07:45:23 -0000
> @@ -85,7 +85,7 @@
>   /*
>    * Register the device
>    */
> -  status = rtems_io_register_name ("/dev/fb", major, 0);
> +  status = rtems_io_register_name ("/dev/fb0", major, 0);
>   if (status != RTEMS_SUCCESSFUL)
>     {
>       printk("Error registering FBSKYEYE device!\n");
> Index: c/src/lib/libbsp/arm/gumstix/startup/bspstart.c
> ===================================================================
> RCS file: /usr1/CVS/rtems/c/src/lib/libbsp/arm/gumstix/startup/bspstart.c,v
> retrieving revision 1.2
> diff -u -r1.2 bspstart.c
> --- c/src/lib/libbsp/arm/gumstix/startup/bspstart.c     29 Jun 2009
> 23:16:44 -0000  1.2
> +++ c/src/lib/libbsp/arm/gumstix/startup/bspstart.c     22 Aug 2009 07:45:23 -0000
> @@ -14,7 +14,8 @@
>  #include <pxa255.h>
>
>  /* Function prototypes */
> -extern void rtems_irq_mngt_init(void);
> +void rtems_exception_init_mngt(void);
> +void  rtems_irq_mngt_init(void);
>
>  /*
>  *
> Index: c/src/lib/libcpu/arm/pxa255/include/pxa255.h
> ===================================================================
> RCS file: /usr1/CVS/rtems/c/src/lib/libcpu/arm/pxa255/include/pxa255.h,v
> retrieving revision 1.3
> diff -u -r1.3 pxa255.h
> --- c/src/lib/libcpu/arm/pxa255/include/pxa255.h        10 Jul 2009 15:34:12 -0000      1.3
> +++ c/src/lib/libcpu/arm/pxa255/include/pxa255.h        22 Aug 2009 07:45:25 -0000
> @@ -27,6 +27,7 @@
>  #define XSCALE_IRQ_OS_TIMER     26
>  #define XSCALE_IRQ_PMU          12
>  #define XSCALE_IRQ_STUART       20
> +#define XSCALE_IRQ_NETWORK      16
>
>  #define PMU_IRQ             12
>  #define CCNT_IRQ_ENABLE     1UL << 6
> @@ -106,4 +107,24 @@
>  #define PMC_PMNC_CCD (0x01 << 3)
>  #define PMC_PMNC_PCD (0x01 << 4)
>
> +/*LCD*/
> +#define LCCR0  (*(volatile word_t *)(0x44000000))
> +#define LCCR1  (*(volatile word_t *)(0x44000004))
> +#define LCCR2  (*(volatile word_t *)(0x44000008))
> +#define LCCR3  (*(volatile word_t *)(0x4400000C))
> +
> +#define FDADR0  (*(volatile word_t *)(0x44000200))
> +#define FSADR0  (*(volatile word_t *)(0x44000204))
> +#define FIDR0   (*(volatile word_t *)(0x44000208))
> +#define LDCMD0  (*(volatile word_t *)(0x4400020C))
> +
> +#define FDADR1  (*(volatile word_t *)(0x44000210))
> +#define FSADR1  (*(volatile word_t *)(0x44000214))
> +#define FIDR1   (*(volatile word_t *)(0x44000218))
> +#define LDCMD1  (*(volatile word_t *)(0x4400021C))
> +
> +#define LCCR0_ENB       0x00000001
> +#define LCCR1_PPL       0x000003FF
> +#define LCCR2_LPP       0x000003FF
> +#define LCCR3_BPP       0x07000000
>  #endif
> Index: c/src/lib/libcpu/arm/pxa255/irq/bsp_irq_init.c
> ===================================================================
> RCS file: /usr1/CVS/rtems/c/src/lib/libcpu/arm/pxa255/irq/bsp_irq_init.c,v
> retrieving revision 1.2
> diff -u -r1.2 bsp_irq_init.c
> --- c/src/lib/libcpu/arm/pxa255/irq/bsp_irq_init.c      5 Jun 2009 22:10:43 -0000       1.2
> +++ c/src/lib/libcpu/arm/pxa255/irq/bsp_irq_init.c      22 Aug 2009 07:45:25 -0000
> @@ -13,7 +13,10 @@
>  #include <bsp.h>
>  #include <pxa255.h>
>
> -extern void default_int_handler(void);
> +void dummy_handler(uint32_t vector)
> +{
> +  printk("raw_idt_notify has been called \n");
> +}
>
>  void (*IRQ_table[PRIMARY_IRQS])(uint32_t vector);
>
> @@ -27,7 +30,7 @@
>
>   /* Initialize the vector table contents with default handler */
>   for (i=0; i<PRIMARY_IRQS; i++) {
> -    IRQ_table[i] = default_int_handler;
> +    IRQ_table[i] = dummy_handler;
>   }
>
>   /* disable all interrupts */
>
>
> 2009/8/21 xi yang <hiyangxi at gmail.com>:
>> Hi Joel,
>> Please review and merge LCD and Ethernet patch(fb_eth.patch, fb.c ,
>> rtl8019.c and wd80x3.h)
>> Shutdown_rtl8019.patch is for Skeyey simulator. WIth this patch,
>> skyeye is able to support shutdown device and RTL8019 on PXA255
>> platform.
>>
>>
>> If you want to use network for Skeyey, just add this line to configure file
>> net: base=0x40000600, size=0xff, int=16, type=rtl8019,
>> mac=0:4:3:2:1:f, ethmod=tuntap, hostip=10.0.0.1
>> insmod tun.ko
>> Then, start Skyeye as root user. 10.0.0.1 is the host machine IP, you
>> can set the simulated machine IP to 10.0.0.2.
>>
>> Regards
>>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: del_warn_add_def.patch
Type: text/x-patch
Size: 4985 bytes
Desc: not available
URL: <http://lists.rtems.org/pipermail/users/attachments/20090822/1d09e4cf/attachment.bin>


More information about the users mailing list