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

Serial-pl011 #2

Open
DatanoiseTV opened this issue Feb 13, 2015 · 8 comments
Open

Serial-pl011 #2

DatanoiseTV opened this issue Feb 13, 2015 · 8 comments

Comments

@DatanoiseTV
Copy link

Hi,

Do you have any version which uses the current kernel API and compiles?
I wanted to compile it, but some kernel APIs changed.

@kmtaylor
Copy link
Owner

I don't have any other versions, but it should be hard to update it. Which kernel version are you using? I'll download it and have a go at compiling.

@DatanoiseTV
Copy link
Author

It's "Linux raspberrypi 3.18.7-v7+ #755 SMP PREEMPT Thu Feb 12 17:20:48 GMT 2015 armv7l GNU/Linux" - the latest Raspbian on a PI2, so I guess its https://github.com/raspberrypi/linux/tree/rpi-3.18.y

@kmtaylor
Copy link
Owner

Ok. It should be up to date now. Give it a try and let me know. Thanks.

@DatanoiseTV
Copy link
Author

Unfortunately not able to compile it:

make -C /lib/modules/3.18.7-v7+/build M=/home/pi/usart-sound modules
make[1]: Entering directory '/usr/src/linux'

  WARNING: Symbol version dump ./Module.symvers
           is missing; modules will have no dependencies and modversions.

  CC [M]  /home/pi/usart-sound/serial-pl011.o
/home/pi/usart-sound/serial-pl011.c: In function ‘snd_serial_probe’:
/home/pi/usart-sound/serial-pl011.c:1071:36: error: ‘index’ undeclared (first use in this function)
/home/pi/usart-sound/serial-pl011.c:1071:36: note: each undeclared identifier is reported only once for each function it appears in
/home/pi/usart-sound/serial-pl011.c:1071:42: error: ‘dev’ undeclared (first use in this function)
scripts/Makefile.build:263: recipe for target '/home/pi/usart-sound/serial-pl011.o' failed
make[2]: **\* [/home/pi/usart-sound/serial-pl011.o] Error 1
Makefile:1381: recipe for target '_module_/home/pi/usart-sound' failed
make[1]: **\* [_module_/home/pi/usart-sound] Error 2
make[1]: Leaving directory '/usr/src/linux'
Makefile:4: recipe for target 'all' failed
make: **\* [all] Error 2

@kmtaylor
Copy link
Owner

Damn it. Sorry about that. I got myself confused with which version to upload. It should be correct now.

@kmtaylor kmtaylor reopened this Feb 17, 2015
@seanjean3000
Copy link

Hi--I'm pretty new to this aspect of Linux, kernel modules, so can anyone offer an outline on how to use this? I would like to get it running on a Pi4 with the current RPi OS and kernel 5.4 to be able to use some of the additional UARTs for MIDI I/O.

Any help is greatly appreciated!

@DatanoiseTV
Copy link
Author

@seanjean3000
Copy link

Hey, thanks for the reply (and speed, too). But I'm not even at that step--what do I actually do with the file serial-pl011.c once I've downloaded it? How do I use it? I need to compile it and install, or..? Really don't know where to begin with this one.

I do at least have the UARTs on the Pi enabled, so I feel like that's a start...

Thank again in advance for any insight!

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

3 participants