Announcement

Collapse
No announcement yet.

4DPI-24HAT and piCore

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

  • 4DPI-24HAT and piCore

    I'd like to get the 24Hat working with piCore. the piCore distribution is pretty attractive as it essentially never leaves the initFS. You can set it up so that there are no reads or writes to the SD card once piCore is running. PiCore + a 24Hat + QT and you have an awesome embedded device that you can just unplug at any time. Has anyone already done this?

    The latest kernel that piCore supports is 4.7.22. I've added your v7 files to this kernel and I can compile the kernel with no errors. There are three warnings:
    HTML Code:
    [text]
    WARNING: vmlinux.o(.text+0x3b59f0): Section mismatch in reference from the function lcdpi_ioctl() to the function .init.textsd1963_480x272_setup()
    The function lcdpi_ioctl() references
    the function __init ssd1963_480x272_setup().
    This is often because lcdpi_ioctl lacks a __init
    annotation or the annotation of ssd1963_480x272_setup is wrong.
    
    WARNING: vmlinux.o(.text+0x3b5b54): Section mismatch in reference from the function lcdpi_ioctl() to the function .init.textsd1963_800x480_setup()
    The function lcdpi_ioctl() references
    the function __init ssd1963_800x480_setup().
    This is often because lcdpi_ioctl lacks a __init
    annotation or the annotation of ssd1963_800x480_setup is wrong.
    
    WARNING: vmlinux.o(.data+0x488d0): Section mismatch in reference from the variable spi_lcdpi_driver to the function .init.text:lcdpi_probe()
    The variable spi_lcdpi_driver references
    the function __init lcdpi_probe()
    If the reference is valid then annotate the
    variable with __init* or __refdata (see linux/init.h) or name the variable:
    *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console
    [/text]
    I'm not a kernel developer, can anyone tell me if this is important? Maybe easy to fix?

    Here's a diff of the standard piCore .config and the .config after adding and enabling your files:
    HTML Code:
    [TEXT]
    2718c2718
    < CONFIG_HWMON=m
    ---
    > CONFIG_HWMON=y
    2845a2846
    > CONFIG_THERMAL_HWMON=y
    3724,3726c3725,3727
    < CONFIG_FB_SYS_FILLRECT=m
    < CONFIG_FB_SYS_COPYAREA=m
    < CONFIG_FB_SYS_IMAGEBLIT=m
    ---
    > CONFIG_FB_SYS_FILLRECT=y
    > CONFIG_FB_SYS_COPYAREA=y
    > CONFIG_FB_SYS_IMAGEBLIT=y
    3728c3729
    < CONFIG_FB_SYS_FOPS=m
    ---
    > CONFIG_FB_SYS_FOPS=y
    3784a3786,3792
    > CONFIG_4DHATS=y
    > CONFIG_FB_HATS=y
    > CONFIG_4DPI_SPI_DMA=y
    > CONFIG_4DPI_ADS7846=y
    > CONFIG_4DPI_AR1020I2C=y
    > # CONFIG_4DPI_FT5X06 is not set
    > CONFIG_4DPI_PWMBL=y
    [/TEXT]
    So far no joy in getting the 24Hat to work. I'm not sure yet if I have the device tree working right, I'm looking at that now. I would like to understand the warning above.

    Jim

  • #2
    Hi,

    above warnings don't seem to be important. Please check:

    - sudo vcdbg log msg. Is device tree overlay loaded from HAT's EEPROM?
    - is a new framebuffer registered after kernel is loaded (ls /dev/fb*)
    - is there anyrhing regarding spi in dmesg (dmesg | grep spi)

    maybe compare results from piCore image with results from a standard Raspbian image.

    Best regards,
    Andrej

    Comment

    Working...
    X