Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Panic in FreeBSD 13 #2

Open
Damianoux opened this issue Apr 20, 2021 · 0 comments
Open

Panic in FreeBSD 13 #2

Damianoux opened this issue Apr 20, 2021 · 0 comments

Comments

@Damianoux
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant