Giter Club home page Giter Club logo

Comments (5)

bk3a12 avatar bk3a12 commented on June 5, 2024

This is the full log when I compiled.
[code]
sudo make ARCH=arm64 -C "/usr/src/linux-headers-5.9.0-arm-64" M="/home/dale/linux_openvfd/driver" make: Entering directory '/usr/src/linux-headers-5.9.0-arm-64'
AR /home/dale/linux_openvfd/driver/built-in.a
CC [M] /home/dale/linux_openvfd/driver/protocols/i2c_sw.o
CC [M] /home/dale/linux_openvfd/driver/protocols/i2c_hw.o
CC [M] /home/dale/linux_openvfd/driver/protocols/spi_sw.o
CC [M] /home/dale/linux_openvfd/driver/controllers/dummy.o
CC [M] /home/dale/linux_openvfd/driver/controllers/seg7_ctrl.o
CC [M] /home/dale/linux_openvfd/driver/controllers/fd628.o
CC [M] /home/dale/linux_openvfd/driver/controllers/fd650.o
CC [M] /home/dale/linux_openvfd/driver/controllers/hd44780.o
CC [M] /home/dale/linux_openvfd/driver/controllers/gfx_mono_ctrl.o
CC [M] /home/dale/linux_openvfd/driver/controllers/ssd1306.o
CC [M] /home/dale/linux_openvfd/driver/controllers/pcd8544.o
CC [M] /home/dale/linux_openvfd/driver/controllers/il3829.o
CC [M] /home/dale/linux_openvfd/driver/openvfd_drv.o
/home/dale/linux_openvfd/driver/openvfd_drv.c:43:7: warning: "CONFIG_AMLOGIC_LEGACY_EARLY_SUSPEND" is not defined, evaluates to 0 [-Wundef]
#elif CONFIG_AMLOGIC_LEGACY_EARLY_SUSPEND
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
LD [M] /home/dale/linux_openvfd/driver/openvfd.o
MODPOST /home/dale/linux_openvfd/driver/Module.symvers
ERROR: modpost: "__stack_chk_guard" [/home/dale/linux_openvfd/driver/openvfd.ko] undefined!
make[1]: *** [scripts/Makefile.modpost:111: /home/dale/linux_openvfd/driver/Module.symvers] Error 1
make[1]: *** Deleting file '/home/dale/linux_openvfd/driver/Module.symvers'
make: *** [Makefile:1697: modules] Error 2
make: Leaving directory '/usr/src/linux-headers-5.9.0-arm-64'
[/code]

from linux_openvfd.

arthur-liberman avatar arthur-liberman commented on June 5, 2024

CONFIG_AMLOGIC_LEGACY_EARLY_SUSPEND is specific to Amlogic linux kernel, and should not cause any problems, at least as far as I know.
Regarding the error you see, maybe this will shed a bit more light on the problem. I think it's due to your env configuration.
openzfs/zfs#10985 (comment)

from linux_openvfd.

bk3a12 avatar bk3a12 commented on June 5, 2024

HI, thanks for your advice. I've switched into focal and after that I could re compile the driver. But when I tried to load module with insmod, I got below error, which I didn't know where it came from.

`Message from syslogd@localhost at Jul 18 01:27:28 ...
kernel:[ 57.778976] Internal error: Oops: 96000004 [#1] PREEMPT SMP

Message from syslogd@localhost at Jul 18 01:27:28 ...
kernel:[ 58.028944] Code: 39016420 f9401a60 f9404fe1 f9400000 (f9406021)
Segmentation fault`
I could see it seemed to be loaded by lsmod but I have no idea whether it is okay. I tried OpenVFDService & and no luck.
And other question, when it comes to armbian, can I put vfd.conf file in the directory /storage/.config/ as we do for coreelec?
Thanks.

from linux_openvfd.

arthur-liberman avatar arthur-liberman commented on June 5, 2024

Do you have a full call stack output to see where exactly the segfault happened?

from linux_openvfd.

bk3a12 avatar bk3a12 commented on June 5, 2024

I'm sorry, I'm programming noob. Could you please guide me so that I can provide you what you want to see? Thanks

Edit: I was able to install by manually input depmod -a.
But I could not trigger LED to show time. Maybe something is wrong with dtb and configuration vfd.conf file.
arm-64:~$ ./OpenVFDService &
[1] 2105
arm-64:~$ Open device failed.
: No such file or directory

As I asked before, can I put vfd.conf file in the directory /storage/.config/ as we do for coreelec?
Thanks.

Edit2: I was able to turn on the display.
I create guide if anyone needs it.
https://github.com/bk3a12/openvfd_enable_for_tx3_mini

from linux_openvfd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.