mohsenmoqadam / fnld Goto Github PK
View Code? Open in Web Editor NEWSimple FreeBSD Driver for Nokia 5110 LCD
Simple FreeBSD Driver for Nokia 5110 LCD
Hello,
tried to use the driver in FreeBSD13-RC5, got panic with error 17:
make_dev_sv: bad si_name (error 17, si_name=lcd5110)
So i tried to replace make_dev with make_dev_p passing flags MAKEDEV_WAITOK and MAKEDEV_CHECKNAME.
The driver loads but it seems to attempt to create it multiple times:
lcd51100: <Nokia 5110 LCD> at cs 0 node 0 on spibus=0
and extra entries:
lcd51101: <Nokia 5110 LCD> at cs 0 node 0 on spibus=0
device_attach: lcd51101 attach returned 17
lcd51101: <Nokia 5110 LCD> at cs 1 node 0 on spibus=0
device_attach: lcd51101 attach returned 17
The bakclight is turned on but nothing appears on the screen. (checked connections twice, i used the same gpio pins defined in the .h file on a Rpi B+ board). But if i test spi0_clk and spi0_mosi with an oscilloscope something seems to come out when i run:
echo "string" > /dev/lcd5110
Finally on kldunload the backlight turns off but then the kernel panics with
Fatal kernel mode data abort: 'Translation fault (L2)' on read
follows a register dump.
I have created node lcd5110@0 under soc/spi using dts overlay method.
ofwdump -r /soc/ shows it in the right place.
Any suggestion?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.