RobertCNelson / boot-scripts

Just a bunch of useful scripts placed under /opt/scripts/
125 stars 132 forks source link

Module uio_pruss not found #6

Closed jedahan closed 10 years ago

jedahan commented 10 years ago

So, after updating, I can no longer find uio_pruss.ko ...

RobertCNelson commented 10 years ago

umm... please be more specific... These are maintenance/boot scripts. It sounds like you updated the kernel, but you didn't say that..

Regards,

jedahan commented 10 years ago

Ahh sorry. I've been trying to find how the kernel is compiled, to see if theres a patch to apply, to compile uio_pruss.ko. I want to modprobe uio_pruss, but it seems the update_kernel.sh script does not build that module.

RobertCNelson commented 10 years ago

update_kernel.sh (1)

doesn't build anything, it just installs...

The build scripts are here: (2)

1: https://github.com/RobertCNelson/boot-scripts/blob/master/tools/update_kernel.sh 2: https://github.com/RobertCNelson/bb-kernel

rohitkalaskar commented 9 years ago

@jedahan Did you figure out how to install uio_pruss module ? Like you said update_kernel.sh doesn't seem to install it.

izaakschroeder commented 9 years ago

@rohitkalaskar @jedahan See https://github.com/izaakschroeder/uio_pruss for a solution on 3.18+ kernels.

RobertCNelson commented 9 years ago

Very cool @izaakschroeder , have you had a chance to try it on the 3.14.x based TI kernel i've been pushing to bb.org users?

izaakschroeder commented 9 years ago

I have not yet @RobertCNelson but I feel like it will probably work with minimal changes (and indeed the origin of my module comes from someone's patches on 3.14).

The module loads and uio is populated correctly with what appears to be the correct information. Unfortunately I get errors which I am not skilled enough to debug when trying to access the PRU memory via mmap on the uio fds. Unhandled fault: external abort on non-linefetch (0x1018) at 0xb6882002

I suspect it has something to do with another PRU related patch which is included neither in DT nor in uio_pruss. If you are interested I'd be happy to help get this running on any series of kernels as long as it includes 3.18.0-bone1, though I will probably need significant guidance; I'm not a kernel developer by any stretch of the imagination.

izaakschroeder commented 9 years ago

You may also poke around in https://github.com/izaakschroeder/pruss which is old, kinda working code that I'll one day clean up; it's userland code for the PRUSS including assembler, disassembler and driver. It also happens to be written in node making it easy to use in existing node-based projects.

I would be curious to port it to the rproc subsystem instead of uio, but I'm not sure I'd get the same kind of control. Thoughts welcome.