Announcement

Collapse
No announcement yet.

Compiling a kernel for branch rpi-4.9.y

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

  • Compiling a kernel for branch rpi-4.9.y

    Dear community, Dear 4D SYSTEMS,

    some time ago I tried to compile kernel 4.9.y from the Raspberry Pi foundation (https://github.com/raspberrypi/linux) together with the 4d-hats-sources on bitbucket (https://bitbucket.org/4DPi/4d-hats/). Unfortunately this fails, as I already reported here (https://github.com/raspberrypi/linux/issues/1844). If only the LCD module is enabled ("4D Systems LCD HAT support (2.4, 3.2 and 3.5 inch)") I obtain this error message:
    make -j4 zImage modules dtbs
    scripts/kconfig/conf --silentoldconfig Kconfig
    CHK include/config/kernel.release
    CHK include/generated/uapi/linux/version.h
    CHK include/generated/utsrelease.h
    CHK include/generated/timeconst.h
    CHK include/generated/bounds.h
    CHK include/generated/asm-offsets.h
    CALL scripts/checksyscalls.sh
    CHK include/generated/compile.h
    GZIP kernel/config_data.gz
    CHK kernel/config_data.h
    UPD kernel/config_data.h
    CC [M] kernel/configs.o
    make[3]: *** No rule to make target 'drivers/video/4d-hats/compress-v7.o', needed by 'drivers/video/4d-hats/4dpi.o'. Stop.
    make[3]: *** Waiting for unfinished jobs....
    CC drivers/video/4d-hats/4d-hats.o
    drivers/video/4d-hats/4d-hats.c:50:27: fatal error: mach/platform.h: No such file or directory
    #include <mach/platform.h>
    ^
    compilation terminated.
    CC drivers/video/fbdev/core/sysfillrect.o
    CC drivers/video/fbdev/core/syscopyarea.o
    scripts/Makefile.build:293: recipe for target 'drivers/video/4d-hats/4d-hats.o' failed
    make[3]: *** [drivers/video/4d-hats/4d-hats.o] Error 1
    scripts/Makefile.build:544: recipe for target 'drivers/video/4d-hats' failed
    make[2]: *** [drivers/video/4d-hats] Error 2
    make[2]: *** Waiting for unfinished jobs....
    CC drivers/video/fbdev/core/sysimgblt.o
    CC drivers/video/fbdev/core/fb_sys_fops.o
    LD drivers/video/fbdev/core/built-in.o
    LD drivers/video/fbdev/built-in.o
    scripts/Makefile.build:544: recipe for target 'drivers/video' failed
    make[1]: *** [drivers/video] Error 2
    Makefile:988: recipe for target 'drivers' failed
    make: *** [drivers] Error 2


    Since my kernel know-how is limited to compiling but not driver development I would very much appreciate a patch or updated sources at bitbucket.org. For my project I depend on the LCD and touchscreen functionality.

    Thank you for your help / pointers.

    Kind regards
    Peter




  • #2
    Copying parts of my recent comment on the GitHubissue:
    Trying to solve the issue on my own, an internet search led me to this issue reportthat contains a hacky patch by @psyke83. Applying this patch to 4d-hats.c makes this module compile.
    I am not yet at a functional kernel, especially as the touchscreen driver 4dpi_touch.c seems to require additional work.

    My intention is to give an update and link to the external forum thread, where discussion may go one. In any case I would also be glad to read comments here.

    Comment


    • #3
      As I wrote in the other thread, I succeeded compiling for rpi-4.9.y. This gave me confidence to at least try compilation with rpi-4.14.y, which will be the next kernel branch the Raspberry Pi foundation will switch to (see https://www.raspberrypi.org/forums/v...?f=29&t=197689).

      Unfortunately things did not work out. The kernel gives this at bootup:
      $ dmesg
      [ 0.000000] Booting Linux on physical CPU 0x0
      [ 0.000000] Linux version 4.14.13-v7+ ([email protected]) (gcc version 6.3.0 20170516 (Raspbian 6.3.0-18+rpi1)) #2 SMP Mon Jan 15 15:22:14 CET 2018
      [ 0.000000] CPU: ARMv7 Processor [410fd034] revision 4 (ARMv7), cr=10c5383d
      [ 0.000000] CPU: div instructions available: patching division code
      [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
      [ 0.000000] OF: fdt: Machine model: Raspberry Pi 3 Model B Rev 1.2
      [ 0.000000] Memory policy: Data cache writealloc
      [ 0.000000] cma: Reserved 8 MiB at 0x3ac00000
      [ 0.000000] On node 0 totalpages: 242688
      [ 0.000000] free_area_init_node: node 0, pgdat 80c7ea80, node_mem_map ba3a1000
      [ 0.000000] Normal zone: 2133 pages used for memmap
      [ 0.000000] Normal zone: 0 pages reserved
      [ 0.000000] Normal zone: 242688 pages, LIFO batch:31
      [ 0.000000] random: fast init done
      [ 0.000000] percpu: Embedded 17 pages/cpu @ba34a000 s38604 r8192 d22836 u69632
      [ 0.000000] pcpu-alloc: s38604 r8192 d22836 u69632 alloc=17*4096
      [ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
      [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 240555
      [ 0.000000] Kernel command line: 8250.nr_uarts=1 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait fbcon=map:10 fbcon=font:VGA8x8 logo.nologo 4dpi.rotate=180
      [ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
      [ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
      [ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
      [ 0.000000] Memory: 940260K/970752K available (7168K kernel code, 549K rwdata, 2032K rodata, 1024K init, 705K bss, 22300K reserved, 8192K cma-reserved)
      [ 0.000000] Virtual kernel memory layout:
      vector : 0xffff0000 - 0xffff1000 ( 4 kB)
      fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
      vmalloc : 0xbb800000 - 0xff800000 (1088 MB)
      lowmem : 0x80000000 - 0xbb400000 ( 948 MB)
      modules : 0x7f000000 - 0x80000000 ( 16 MB)
      .text : 0x80008000 - 0x80800000 (8160 kB)
      .init : 0x80b00000 - 0x80c00000 (1024 kB)
      .data : 0x80c00000 - 0x80c89504 ( 550 kB)
      .bss : 0x80c910cc - 0x80d417a4 ( 706 kB)
      [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
      [ 0.000000] ftrace: allocating 24588 entries in 73 pages
      [ 0.000000] Hierarchical RCU implementation.
      [ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
      [ 0.000000] arch_timer: cp15 timer(s) running at 19.20MHz (phys).
      [ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x46d987e47, max_idle_ns: 440795202767 ns
      [ 0.000007] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 4398046511078ns
      [ 0.000021] Switching to timer-based delay loop, resolution 52ns
      [ 0.000271] Console: colour dummy device 80x30
      [ 0.000820] console [tty1] enabled
      [ 0.000859] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=192000)
      [ 0.000899] pid_max: default: 32768 minimum: 301
      [ 0.001214] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
      [ 0.001247] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
      [ 0.002196] Disabling memory control group subsystem
      [ 0.002289] CPU: Testing write buffer coherency: ok
      [ 0.002691] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
      [ 0.003075] Setting up static identity map for 0x100000 - 0x10003c
      [ 0.003206] Hierarchical SRCU implementation.
      [ 0.003846] smp: Bringing up secondary CPUs ...
      [ 0.004433] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
      [ 0.005082] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
      [ 0.005728] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
      [ 0.005829] smp: Brought up 1 node, 4 CPUs
      [ 0.005899] SMP: Total of 4 processors activated (153.60 BogoMIPS).
      [ 0.005920] CPU: All CPU(s) started in HYP mode.
      [ 0.005938] CPU: Virtualization extensions available.
      [ 0.006766] devtmpfs: initialized
      [ 0.017217] VFP support v0.3: implementor 41 architecture 3 part 40 variant 3 rev 4
      [ 0.017453] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
      [ 0.017497] futex hash table entries: 1024 (order: 4, 65536 bytes)
      [ 0.018086] pinctrl core: initialized pinctrl subsystem
      [ 0.018835] NET: Registered protocol family 16
      [ 0.021479] DMA: preallocated 1024 KiB pool for atomic coherent allocations
      [ 0.026091] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
      [ 0.026123] hw-breakpoint: maximum watchpoint size is 8 bytes.
      [ 0.026330] Serial: AMBA PL011 UART driver
      [ 0.028014] bcm2835-mbox 3f00b880.mailbox: mailbox enabled
      [ 0.028473] uart-pl011 3f201000.serial: could not find pctldev for node /soc/[email protected]/uart0_pins, deferring probe
      [ 0.058760] bcm2835-dma 3f007000.dma: DMA legacy API manager at bb80f000, dmachans=0x1
      [ 0.060248] SCSI subsystem initialized
      [ 0.060389] usbcore: registered new interface driver usbfs
      [ 0.060462] usbcore: registered new interface driver hub
      [ 0.060561] usbcore: registered new device driver usb
      [ 0.070075] raspberrypi-firmware soc:firmware: Attached to firmware from 2017-10-24 17:09
      [ 0.071410] clocksource: Switched to clocksource arch_sys_counter
      [ 0.146485] VFS: Disk quotas dquot_6.6.0
      [ 0.146611] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
      [ 0.146812] FS-Cache: Loaded
      [ 0.147024] CacheFiles: Loaded
      [ 0.155669] NET: Registered protocol family 2
      [ 0.156398] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
      [ 0.156526] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
      [ 0.156728] TCP: Hash tables configured (established 8192 bind 8192)
      [ 0.156874] UDP hash table entries: 512 (order: 2, 16384 bytes)
      [ 0.156936] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
      [ 0.157179] NET: Registered protocol family 1
      [ 0.157628] RPC: Registered named UNIX socket transport module.
      [ 0.157651] RPC: Registered udp transport module.
      [ 0.157670] RPC: Registered tcp transport module.
      [ 0.157689] RPC: Registered tcp NFSv4.1 backchannel transport module.
      [ 0.159199] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 7 counters available
      [ 0.161916] workingset: timestamp_bits=14 max_order=18 bucket_order=4
      [ 0.169481] FS-Cache: Netfs 'nfs' registered for caching
      [ 0.170062] NFS: Registering the id_resolver key type
      [ 0.170105] Key type id_resolver registered
      [ 0.170124] Key type id_legacy registered
      [ 0.171980] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
      [ 0.172130] io scheduler noop registered
      [ 0.172151] io scheduler deadline registered (default)
      [ 0.172430] io scheduler cfq registered
      [ 0.172450] io scheduler mq-deadline registered
      [ 0.172469] io scheduler kyber registered
      [ 0.175166] BCM2708FB: allocated DMA memory fad10000
      [ 0.175211] BCM2708FB: allocated DMA channel 0 @ bb80f000
      [ 0.183077] Console: switching to colour frame buffer device 82x52
      [ 0.187377] spi-bcm2835 3f204000.spi: could not get clk: -517
      [ 0.188330] Serial: 8250/16550 driver, 1 ports, IRQ sharing enabled
      [ 0.189621] bcm2835-rng 3f104000.rng: hwrng registered
      [ 0.189823] vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 mem_size:0x40000000(1024 MiB)
      [ 0.190352] vc-sm: Videocore shared memory driver
      [ 0.190687] gpiomem-bcm2835 3f200000.gpiomem: Initialised: Registers at 0x3f200000
      [ 0.199953] brd: module loaded
      [ 0.208366] loop: module loaded
      [ 0.208444] Loading iSCSI transport class v2.0-870.
      [ 0.208983] usbcore: registered new interface driver smsc95xx
      [ 0.209077] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
      [ 0.437241] Core Release: 2.80a
      [ 0.437299] Setting default values for core params
      [ 0.437388] Finished setting default values for core params
      [ 0.637696] Using Buffer DMA mode
      [ 0.637751] Periodic Transfer Interrupt Enhancement - disabled
      [ 0.637830] Multiprocessor Interrupt Enhancement - disabled
      [ 0.637907] OTG VER PARAM: 0, OTG VER FLAG: 0
      [ 0.637978] Dedicated Tx FIFOs mode
      [ 0.638394] WARN:wc_otg_hcd_init:1032: FIQ DMA bounce buffers: virt = 0xbad04000 dma = 0xfad04000 len=9024
      [ 0.643781] FIQ FSM acceleration enabled for :
      Non-periodic Split Transactions
      Periodic Split Transactions
      High-Speed Isochronous Endpoints
      Interrupt/Control Split Transaction hack enabled
      [ 0.656985] dwc_otg: Microframe scheduler enabled
      [ 0.657040] WARN::hcd_init_fiq:459: FIQ on core 1 at 0x805ce410
      [ 0.659684] WARN::hcd_init_fiq:460: FIQ ASM at 0x805ce768 length 36
      [ 0.662298] WARN::hcd_init_fiq:486: MPHI regs_base at 0xbb87c000
      [ 0.664957] dwc_otg 3f980000.usb: DWC OTG Controller
      [ 0.667594] dwc_otg 3f980000.usb: new USB bus registered, assigned bus number 1
      [ 0.670294] dwc_otg 3f980000.usb: irq 62, io mem 0x00000000
      [ 0.673015] Init: Port Power? op_state=1
      [ 0.675645] Init: Power Port (0)
      [ 0.678408] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
      [ 0.681023] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
      [ 0.683645] usb usb1: Product: DWC OTG Controller
      [ 0.686229] usb usb1: Manufacturer: Linux 4.14.13-v7+ dwc_otg_hcd
      [ 0.688827] usb usb1: SerialNumber: 3f980000.usb
      [ 0.692024] hub 1-0:1.0: USB hub found
      [ 0.694627] hub 1-0:1.0: 1 port detected
      [ 0.697624] dwc_otg: FIQ enabled
      [ 0.697629] dwc_otg: NAK holdoff enabled
      [ 0.697634] dwc_otg: FIQ split-transaction FSM enabled
      [ 0.697644] Module dwc_common_port init
      [ 0.697860] usbcore: registered new interface driver usb-storage
      [ 0.700573] mousedev: PS/2 mouse device common for all mice
      [ 0.703228] IR NEC protocol handler initialized
      [ 0.705801] IR RC5(x/sz) protocol handler initialized
      [ 0.708392] IR RC6 protocol handler initialized
      [ 0.710990] IR JVC protocol handler initialized
      [ 0.713573] IR Sony protocol handler initialized
      [ 0.716156] IR SANYO protocol handler initialized
      [ 0.718720] IR Sharp protocol handler initialized
      [ 0.721243] IR MCE Keyboard/mouse protocol handler initialized
      [ 0.723785] IR XMP protocol handler initialized
      [ 0.726980] bcm2835-wdt 3f100000.watchdog: Broadcom BCM2835 watchdog timer
      [ 0.729778] bcm2835-cpufreq: min=600000 max=1200000
      [ 0.732648] sdhci: Secure Digital Host Controller Interface driver
      [ 0.735163] sdhci: Copyright(c) Pierre Ossman
      [ 0.737984] mmc-bcm2835 3f300000.mmc: could not get clk, deferring probe
      [ 0.740787] sdhost-bcm2835 3f202000.mmc: could not get clk, deferring probe
      [ 0.743425] sdhci-pltfm: SDHCI platform and OF driver helper
      [ 0.748559] ledtrig-cpu: registered to indicate activity on CPUs
      [ 0.751287] hidraw: raw HID events driver (C) Jiri Kosina
      [ 0.754037] usbcore: registered new interface driver usbhid
      [ 0.756593] usbhid: USB HID core driver
      [ 0.759723] vchiq: vchiq_init_state: slot_zero = bad80000, is_master = 0
      [ 0.763674] [vc_sm_connected_init]: start
      [ 0.772411] [vc_sm_connected_init]: end - returning 0
      [ 0.775524] Initializing XFRM netlink socket
      [ 0.778077] NET: Registered protocol family 17
      [ 0.780689] Key type dns_resolver registered
      [ 0.783710] Registering SWP/SWPB emulation handler
      [ 0.786809] registered taskstats version 1
      [ 0.794929] uart-pl011 3f201000.serial: cts_event_workaround enabled
      [ 0.797505] 3f201000.serial: ttyAMA0 at MMIO 0x3f201000 (irq = 87, base_baud = 0) is a PL011 rev2
      [ 1.806419] console [ttyAMA0] enabled
      [ 1.813809] 4d-hats spi0.0: 4d-hat registered, product code = ab
      [ 2.698248] mmc-bcm2835 3f300000.mmc: mmc_debug:0 mmc_debug2:0
      [ 2.707956] mmc-bcm2835 3f300000.mmc: DMA channel allocated
      [ 2.717859] Unable to handle kernel NULL pointer dereference at virtual address 00000064
      [ 2.729967] pgd = 80004000
      [ 2.734670] [00000064] *pgd=00000000
      [ 2.740226] Internal error: Oops: 5 [#1] SMP ARM
      [ 2.746826] Modules linked in:
      [ 2.751888] CPU: 3 PID: 64 Comm: kworker/3:2 Not tainted 4.14.13-v7+ #2
      [ 2.762581] Hardware name: BCM2835
      [ 2.768081] Workqueue: events fb_deferred_io_work
      [ 2.774882] task: b9668000 task.stack: b965a000
      [ 2.781502] PC is at obj_update_compress+0x68/0x548
      [ 2.788463] LR is at 0x2dc6c00
      [ 2.793584] pc : [<804db108>] lr : [<02dc6c00>] psr: 60000013
      [ 2.804021] sp : b965be40 ip : b965be80 fp : b965beac
      [ 2.811395] r10: 00000000 r9 : ba385918 r8 : 80d126a4
      [ 2.818765] r7 : 00000000 r6 : 80c53488 r5 : 00000001 r4 : 80c5349c
      [ 2.829581] r3 : 00000001 r2 : 2abf18c9 r1 : 0ccf0cff r0 : 00ff2aab
      [ 2.840538] Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
      [ 2.852234] Control: 10c5383d Table: 0000406a DAC: 00000055
      [ 2.862621] Process kworker/3:2 (pid: 64, stack limit = 0xb965a210)
      [ 2.873653] Stack: (0xb965be40 to 0xb965c000)
      [ 2.880450] be40: b965bebc b965be50 80156474 0000013f 000001df 00000000 00000001 b9668000
      [ 2.893552] be60: ba385d00 8013f0d4 b965bebc b965be78 00ff2aab 0ccf0cff 2abf18c9 2aab2aaf
      [ 2.906728] be80: b9e16018 80d126b4 00000001 80c53488 80c53484 b960a800 ba385918 00000000
      [ 2.919923] bea0: b965bed4 b965beb0 804d89d0 804db0ac 00000001 000001df 0000013f 80d126b4
      [ 2.933163] bec0: 80c53488 80c5349c b965befc b965bed8 804cab60 804d8990 b960aac8 b9643c80
      [ 2.946426] bee0: ba385900 00000000 ba388900 ba385918 b965bf34 b965bf00 80136f10 804caacc
      [ 2.959690] bf00: 00000008 80c02d00 ba385918 b9643c80 ba385900 b9643c98 00000008 80c02d00
      [ 2.973002] bf20: ba385918 b965a000 b965bf74 b965bf38 80137ee8 80136cf8 00000000 80952420
      [ 2.986460] bf40: 80c81c8a ba385900 b961509c b9615080 00000000 b9645a80 b965a000 b9643c80
      [ 2.999995] bf60: b961509c b9d57e90 b965bfac b965bf78 8013d6e0 80137e94 00000000 80137e88
      [ 3.013542] bf80: 00000000 b9645a80 8013d59c 00000000 00000000 00000000 00000000 00000000
      [ 3.027197] bfa0: 00000000 b965bfb0 8010810c 8013d5a8 00000000 00000000 00000000 00000000
      [ 3.040948] bfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      [ 3.054772] bfe0: 00000000 00000000 00000000 00000000 00000013 00000000 55555555 55555555
      [ 3.068613] [<804db108>] (obj_update_compress) from [<804d89d0>] (lcdpi_update_compress+0x4c/0x54)
      [ 3.083239] [<804d89d0>] (lcdpi_update_compress) from [<804cab60>] (fb_deferred_io_work+0xa0/0xf4)
      [ 3.097748] [<804cab60>] (fb_deferred_io_work) from [<80136f10>] (process_one_work+0x224/0x518)
      [ 3.111883] [<80136f10>] (process_one_work) from [<80137ee8>] (worker_thread+0x60/0x5f0)
      [ 3.125331] [<80137ee8>] (worker_thread) from [<8013d6e0>] (kthread+0x144/0x174)
      [ 3.138021] [<8013d6e0>] (kthread) from [<8010810c>] (ret_from_fork+0x14/0x28)
      [ 3.150543] Code: 83a03004 959b3004 92033007 e50b3054 (e5973064)
      [ 3.161949] ---[ end trace c8459f48a1f24820 ]---
      I had to patch 4d-hats.c otherwise an error
      Code:
       implicit declaration of function 'copy_to_user'
      would occur:
      Code:
      diff --git a/drivers/video/gen4-hats/4d-hats.c b/drivers/video/gen4-hats/4d-hats.c
      index 5f29a0931..1f2527b31 100644
      --- a/drivers/video/gen4-hats/4d-hats.c
      +++ b/drivers/video/gen4-hats/4d-hats.c
      @@ -48,6 +48,8 @@
       #include <linux/semaphore.h>
       #include <linux/reboot.h>
      
      +#include <linux/uaccess.h>
      +
       /* Delay command */
       #define MSDELAY        0xFF

      Comment


      • #4
        I gave the updated sources a try but driver initialization still causes a stack trace:
        Code:
        [    1.839742] 4d-hats spi0.0: 4d-hat registered, product code = ab
        [    2.415983] mmc-bcm2835 3f300000.mmc: mmc_debug:0 mmc_debug2:0
        [    2.425716] mmc-bcm2835 3f300000.mmc: DMA channel allocated
        [    2.435736] Unable to handle kernel NULL pointer dereference at virtual address 00000064
        [    2.447871] pgd = 80004000
        [    2.452582] [00000064] *pgd=00000000
        [    2.458147] Internal error: Oops: 5 [#1] SMP ARM
        [    2.464749] Modules linked in:
        [    2.469821] CPU: 0 PID: 64 Comm: kworker/0:2 Not tainted 4.14.48-v7+ #2
        [    2.480525] Hardware name: BCM2835
        [    2.486033] Workqueue: events fb_deferred_io_work
        [    2.492840] task: b9fc9e00 task.stack: b962e000
        [    2.499469] PC is at obj_update_compress+0x68/0x548
        [    2.506442] LR is at 0x2dc6c00
        [    2.511576] pc : [<804f0bd8>]    lr : [<02dc6c00>]    psr: 60000013
        [    2.522042] sp : b962fe40  ip : b962fe80  fp : b962feac
        [    2.529427] r10: 00000000  r9 : ba352918  r8 : 80d197e0
        [    2.536811] r7 : 00000000  r6 : 80c59508  r5 : 00000001  r4 : 80c5951c
        [    2.547663] r3 : 00000001  r2 : 2abf18c9  r1 : 0ccf0cff  r0 : 00ff2aab
        [    2.558653] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
        [    2.570375] Control: 10c5383d  Table: 0000406a  DAC: 00000055
        [    2.580790] Process kworker/0:2 (pid: 64, stack limit = 0xb962e210)
        [    2.591850] Stack: (0xb962fe40 to 0xb9630000)
        [    2.598660] fe40: ba34e480 00000000 b962fe6c 0000013f 000001df 00000004 00000001 b9e0de54
        [    2.611769] fe60: b9c06300 000000c8 ba352918 00000000 00ff2aab 0ccf0cff 2abf18c9 2aab2aaf
        [    2.624953] fe80: b962feb4 80d197f0 00000001 80c59508 80c59504 b9629000 ba352918 00000000
        [    2.638174] fea0: b962fed4 b962feb0 804ee49c 804f0b7c 00000001 000001df 0000013f 80d197f0
        [    2.651430] fec0: 80c59508 80c5951c b962fefc b962fed8 804e0618 804ee45c b96292c8 b95ed080
        [    2.664710] fee0: ba352900 00000000 ba355900 ba352918 b962ff34 b962ff00 801372e0 804e0584
        [    2.677986] ff00: 00000008 80c02d00 ba352918 b95ed080 ba352900 b95ed098 00000008 80c02d00
        [    2.691301] ff20: ba352918 b962e000 b962ff74 b962ff38 801382b8 801370c8 00000000 8095b4e8
        [    2.704749] ff40: 80c884e2 ba352900 b9d8331c b9d83300 00000000 b95ecf80 b962e000 b95ed080
        [    2.718273] ff60: b9d8331c b9d07e90 b962ffac b962ff78 8013dab0 80138264 00000000 80138258
        [    2.731814] ff80: 00000000 b95ecf80 8013d96c 00000000 00000000 00000000 00000000 00000000
        [    2.745468] ffa0: 00000000 b962ffb0 801080ac 8013d978 00000000 00000000 00000000 00000000
        [    2.759198] ffc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
        [    2.772970] ffe0: 00000000 00000000 00000000 00000000 00000013 00000000 55555555 50555555
        [    2.786764] [<804f0bd8>] (obj_update_compress) from [<804ee49c>] (lcdpi_update_compress+0x4c/0x54)
        [    2.801328] [<804ee49c>] (lcdpi_update_compress) from [<804e0618>] (fb_deferred_io_work+0xa0/0xf4)
        [    2.815781] [<804e0618>] (fb_deferred_io_work) from [<801372e0>] (process_one_work+0x224/0x518)
        [    2.829869] [<801372e0>] (process_one_work) from [<801382b8>] (worker_thread+0x60/0x5f0)
        [    2.843272] [<801382b8>] (worker_thread) from [<8013dab0>] (kthread+0x144/0x174)
        [    2.855909] [<8013dab0>] (kthread) from [<801080ac>] (ret_from_fork+0x14/0x28)
        [    2.868399] Code: 83a03004 959b3004 92033007 e50b3054 (e5973064)
        [    2.879795] ---[ end trace 12b027e0b7363183 ]---
        This is on a freshly compiled kernel from both https://github.com/raspberrypi/linux...75a7da290cd6aa and https://bitbucket.org/4DPi/gen4-hats...8ad326e222908:
        Code:
        uname -a
        Linux TMP 4.14.48-v7+ #2 SMP Fri Jun 8 08:30:53 CEST 2018 armv7l GNU/Linux
        Can you please suggest something? Thanks!

        Comment


        • #5
          Hi PeterPablo, I have updated the compress modules in the repository (from above dmesg it looks that the problem is with lcdpi_update_compress). Hope it works.

          Comment


          • #6
            Originally posted by strancara View Post
            Hi PeterPablo, I have updated the compress modules in the repository (from above dmesg it looks that the problem is with lcdpi_update_compress). Hope it works.
            This works flawlessly. Thank you very much for updating the binaries (https://bitbucket.org/4DPi/gen4-hats...696235c0056269)!
            Code:
            uname -a
            Linux xxx 4.14.48-v7+ #1 SMP Mon Jun 25 09:56:16 CEST 2018 armv7l GNU/Linux

            Comment


            • #7
              Hi Andrej,

              is there a reason, why you are not checking in the source code of compress-v6 and compress-v7.c ?
              if you check in the files, it will work for future releases or at least non 4dsystems employees could update the source and compile it.
              because for each kernel update in the raspberry image it would be a lottery if compress-v6.o or compress-v7.o will work or not...
              actually it is not working for Debian buster. (__memset error: see forum posts in https://forum.4dsystems.com.au/node/63149 )
              KR,
              Markus.

              Comment

            Working...
            X