Announcement

Collapse
No announcement yet.

Building custom kernel for 4DPi-24-HAT ?

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

  • artynet
    replied
    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

    Leave a comment:


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

    Leave a comment:


  • artynet
    replied
    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.

    Leave a comment:


  • James_4DSystems
    commented on 's reply
    Hi, I have passed this on to the developer to look into, he will get to it as soon as he can.

  • artynet
    replied
    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.

    Leave a comment:


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

    Kind Regards

    Leave a comment:


  • James_4DSystems
    replied
    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/

    Leave a comment:


  • artynet
    replied
    Originally posted by mhaag View Post
    hi James,

    thanks for you effort and compiling it for buster, but again the question, why are following files not in the bitbucket repo?

    compress-v6.c and compress-v7.c ( the compress-vX.o object files are not working for actual kernel versions)

    it makes it easier to create our own patches for different kernel versions.
    At least i prefer source code releases and not dedicated binary releases for SOME kernel versions.
    Why are you doing this? It creates a lot of work on your side too....

    If you release the complete source code base it gives us (not 4dsystems employees) the possibility to compile it for future kernels,

    KR,
    Markus
    please release the missing source code :
    • compress-v6.c
    • compress-v7.c
    I'd also like to give my contribution in maintaining the driver for future kernel releases.

    Kind Regards
    Last edited by artynet; 4th October 2019, 11:18 PM.

    Leave a comment:


  • frsantiago
    replied
    Hi CHRIS4DSYSTEMS ,

    Good Day.

    The display kernel is now also working with Raspbian Buster Lite (2019-07-10). Tested in Raspberry Pi 3B+ and 4DPi Displays.

    Hope this helps.

    BR,

    Leave a comment:


  • CHRIS4DSYSTEMS
    commented on 's reply
    Thanks much John. Appreciate your support.

  • John Kevin
    replied
    Hi CHRIS4DSYSTEMS ,

    After downloading the Raspbian Buster with desktop, you can try and proceed with the following steps.

    1.) Load the Raspberry Pi image onto an SD card, using the instructions provided on the Raspberry Pi website for Linux, Mac or PC:

    http://www.raspberrypi.org/documenta...ages/README.md

    2) Insert the SD card into the Raspberry Pi. Do not connect the 4DPi yet. You will need an external monitor/keyboard/network connection, else simply a network connection to the Pi and the rest can be done over an SSH connection.

    3.) Either log into the Raspberry Pi from your keyboard/monitor using the standard ‘pi’ and ‘raspberry’ credentials, else SSH into your raspberry PI and log in via your SSH session.

    4.) Expand the file system on the downloaded image using raspi-config (submenu Expand Filesystem).
    After exiting raspi-config a reboot is needed.

    Code:
    sudo raspi-config
    sudo reboot
    5.) To download and install files, enter the following commands in terminal/shell /SSH to download the kernel from the 4D Systems Server:

    Code:
    wget http://4dsystems.com.au/downloads/4DPi/All/gen4-hats_4-19-57-v7l+_v1.0.tar.gz
    Then install it using this command:

    Code:
    sudo tar -xzvf gen4-hats_4-19-57-v7l+_v1.0.tar.gz -C /
    6.) After the installation, shut down the Raspberry Pi.

    Code:
    sudo shutdown now
    7.) Connect the 4DPi to the Raspberry Pi, and reapply power.

    You should be able to see the Raspberry Pi booting on the display.

    Let me know if that helps.

    Best Regards,
    Kevin

    Leave a comment:


  • CHRIS4DSYSTEMS
    commented on 's reply
    I installed 'Raspbian Buster with recommended software'. I must be doing something wrong then.... can you give me the detailed steps (like the one on the datasheet) for the Raspbian Buster OS?

  • James_4DSystems
    commented on 's reply
    Hi Chris. Did you install the Buster Desktop version or the Buster Lite version? It only works with Buster Desktop at this stage. We have tested it on multiple Pis and on all of our 4DPi display models and it is working correctly.

  • CHRIS4DSYSTEMS
    commented on 's reply
    Hey James, thanks for your support. Unfortunately it did not work for me. It did go through the install on Raspbian Buster OS, but when I change to the Gen4 display it's just black... So, resorted back to Raspbian Stretch, this time the kernel indicated in the datasheet worked... the download from the website went through, my system is now running. Any thoughts on this? In the future I might be using the Buster, so I will need that working kernel.

  • James_4DSystems
    commented on 's reply
    The URL should now work from the 4D Server, as per the link above.
Working...
X