rpi_patches icon indicating copy to clipboard operation
rpi_patches copied to clipboard

Serial-pl011

Open DatanoiseTV opened this issue 10 years ago • 8 comments

Hi,

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

DatanoiseTV avatar Feb 13 '15 13:02 DatanoiseTV

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.

kmtaylor avatar Feb 16 '15 00:02 kmtaylor

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

DatanoiseTV avatar Feb 16 '15 08:02 DatanoiseTV

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

kmtaylor avatar Feb 16 '15 22:02 kmtaylor

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

DatanoiseTV avatar Feb 17 '15 00:02 DatanoiseTV

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

kmtaylor avatar Feb 17 '15 00:02 kmtaylor

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!

seanjean3000 avatar Nov 09 '20 15:11 seanjean3000

@seanjean3000 https://www.raspberrypi.org/forums/viewtopic.php?t=102496

DatanoiseTV avatar Nov 09 '20 16:11 DatanoiseTV

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!

seanjean3000 avatar Nov 09 '20 20:11 seanjean3000