Announcement

Collapse
No announcement yet.

Building custom kernel for 4DPi-24-HAT ?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    Hello,
    We have just put up the latest source code, which removes the need for the missing files etc. You should be able to build everything now.
    https://bitbucket.org/4DPi/gen4-hats/src/master/
    James

    Comment


    • #17
      Thank you James, I'll check out the code and try a test build in the next hours....

      Kind Regards

      Comment


      • #18
        Hello James,

        would you mind taking a look at this patch for kernel series v5.3.x ?

        Code:
        diff --git a/drivers/video/gen4-hats/pwmbl.c b/drivers/video/gen4-hats/pwmbl.c
        index eb7e3be8e156..77277d8c721d 100644
         --- a/drivers/video/gen4-hats/pwmbl.c
         +++ b/drivers/video/gen4-hats/pwmbl.c
         @@ -285,8 +285,13 @@ static int fb_notifier_callback(struct notifier_block *p,
        
              /* If we aren't interested in this event, skip it immediately ... */
              //if (event != FB_EVENT_BLANK)
         -    if((event != FB_EVENT_CONBLANK) && (event != FB_EARLY_EVENT_BLANK) && (event != FB_R_EARLY_EVENT_BLANK))
         +   #if (LINUX_VERSION_CODE > KERNEL_VERSION(5, 3, 0))
         +   if((event != FB_EVENT_BLANK) && (event != FB_EARLY_EVENT_BLANK) && (event != FB_R_EARLY_EVENT_BLANK))
                  return 0;
         +   #else
         +   if((event != FB_EVENT_CONBLANK) && (event != FB_EARLY_EVENT_BLANK) && (event != FB_R_EARLY_EVENT_BLANK))
         +        return 0;
         +   #endif
        it seems that the FB_EVENT_CONBLANK has been reverted in this developement series...thanks
        Last edited by artynet; 2 weeks ago.

        Comment


        • James_4DSystems
          James_4DSystems commented
          Editing a comment
          Hi, I have passed this on to the developer to look into, he will get to it as soon as he can.

      • #19
        or, as an alternative, just make a simple backport in the 5.3.x series code
        Code:
        diff --git a/include/linux/fb.h b/include/linux/fb.h
        index 3037712646447a182d8fe474bfda3ec3ff864f0d..d7369e33928c24d9e9fc420bdf0ecb6b0f32d629 100644
        --- a/include/linux/fb.h
        +++ b/include/linux/fb.h
        @@ -136,6 +136,8 @@ struct fb_cursor_user {
         /*      A display blank is requested       */
         #define FB_EVENT_BLANK                  0x09
        +/*    A software display blank change occurred */
        +#define FB_EVENT_CONBLANK               0x0C
        /*      A hardware display blank early change occurred */
         #define FB_EARLY_EVENT_BLANK        0x10
         /*      A hardware display blank revert early change occurred */
         #define FB_R_EARLY_EVENT_BLANK        0x11
        which in my case is a local patch for the kernel sources

        Kind Regards
        Last edited by artynet; 1 week ago.

        Comment


        • #20
          Hi, thank you for the patch! We will certainly consider it when we start testing our drivers with 5.3 kernel.

          Comment


          • #21
            Originally posted by strancara View Post
            Hi, thank you for the patch! We will certainly consider it when we start testing our drivers with 5.3 kernel.
            you're very welcome ! please get in touch with me if you need any additional support...

            Kind Regards

            Arturo

            Comment

            Working...
            X