<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Pablo,<br>
Thank you for the feedback. <br>
The problem I have faced with applying the patch myself and
compiling the module are errors like this when I plug in the
device:<br>
<br>
Feb 3 13:11:48 bananapi kernel: pvrusb2: Unknown symbol
<br>
__stack_chk_guard (err 0)
<br>
Feb 3 13:11:48 bananapi kernel: pvrusb2: Unknown symbol
<br>
__stack_chk_fail (err 0)
<br>
<br>
Using insmod directly shows this:
<br>
insmod: ERROR: could not insert module pvrusb2.ko: Unknown symbol
in module
<br>
<br>
I must still be missing something here. <br>
<br>
One thing I had a tough time was finding the kernel source for
what is used for these ARM releases. I googled and ended up
finding:
<a class="moz-txt-link-freetext" href="http://buildlogs-seed.centos.org/c7.1708.exp.i386/kernel/20180105174048/4.9.75-204.el7.centos.x86_64/kernel-4.9.75-204.el7.centos.src.rpm">http://buildlogs-seed.centos.org/c7.1708.exp.i386/kernel/20180105174048/4.9.75-204.el7.centos.x86_64/kernel-4.9.75-204.el7.centos.src.rpm</a>,
and used that one. I figured the src.rpm there should work so
that's what I ended up using to recompile just the pvrusb2 module,
not sure if that would have anything to do with the problem.<br>
<br>
I definitely have no problem filing a bug on bugzilla, I have a
feeling they will say it's fixed in 4.14. I'm not sure if the
CentOS ARM branch will continue with the 4.9 kernel or go up to a
newer one which would fix the problem entirely. But for now if we
are stuck with 4.9 I'm not sure how to proceed or if there's a way
to get the patch applied for the next update.<br>
<br>
Thanks for the help.<br>
<br>
Chris<br>
<br>
<br>
<br>
On 02/04/2018 09:11 AM, Pablo Sebastián Greco wrote:<br>
</div>
<blockquote
cite="mid:493db684-9c61-9f49-f7b1-c66c436e5846@fliagreco.com.ar"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<p><font size="-1"><font face="Courier New, Courier, monospace">Chris,
I think you are on the right track.<br>
Reverting commit
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/commit/drivers/media/usb/pvrusb2/pvrusb2-eeprom.c?h=v4.9.80&id=374aceef5912f3438a1cc582a2007551f0fbdb15">https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/commit/drivers/media/usb/pvrusb2/pvrusb2-eeprom.c?h=v4.9.80&id=374aceef5912f3438a1cc582a2007551f0fbdb15</a>
on both stable 4.4 and 4.9 should fix the issue because
neither of those branches received these commits
(<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/commit/drivers/media/common/tveeprom.c?id=7cda4c5bae46ffca3abeadc4c1882d9325ee3102">https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/commit/drivers/media/common/tveeprom.c?id=7cda4c5bae46ffca3abeadc4c1882d9325ee3102</a>
,
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/commit/drivers/media/common/tveeprom.c?id=6037b3ca28f4258d913dbe77248fd77827702ae3">https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/commit/drivers/media/common/tveeprom.c?id=6037b3ca28f4258d913dbe77248fd77827702ae3</a>)
so null is an invalid way to call.<br>
I think you should file a bug with this info on
bugzilla.kernel.org and go from there.<br>
From the CentOS standpoint, don't know if such a patch could
be applied, for next update, don't really have the authority
there....<br>
<br>
HTH.<br>
Pablo.</font></font><br>
</p>
<div class="moz-cite-prefix">El 3/2/18 a las 12:40, Chris Szilagyi
escribió:<br>
</div>
<blockquote type="cite"
cite="mid:70869025-91e6-5a48-703d-697b9872452c@apex-internet.com">I
seem to have stumbled upon an issue larger than I thought. I
have been fighting this driver in the 4.9.75-204 kernel that is
the current release for the AltArch/Arm32 platforms. Basically
I'm getting a kernel oops with this kernel (I included below).
I have tried patching and compiling my own module however I'm
now getting a segfault with that. It seems that the 4.14 kernel
may have resolved this issue: <br>
<br>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/media/usb/pvrusb2/pvrusb2-eeprom.c?h=v4.14-rc1&id=446aba663b8240b24202cb8902b0d5c8f91aa3da">https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/media/usb/pvrusb2/pvrusb2-eeprom.c?h=v4.14-rc1&id=446aba663b8240b24202cb8902b0d5c8f91aa3da</a>
<br>
<br>
But I'm hoping to get this fixed with the 4.9.75 kernel or the
4.9.x series if that is what will be used for future kernel
updates for this platform. I found a post regarding the issue
on an Ubuntu forum and it appears this is the same thing I'm
getting with this CentOS 4.9.75 kernel: <br>
<br>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="https://bugs.launchpad.net/ubuntu/+bug/1710419">https://bugs.launchpad.net/ubuntu/+bug/1710419</a>
<br>
<br>
This is the patch I tried and so far no luck. If anybody has a
way to help or any thoughts on how to get this integrated to the
kernels for this, I am more than happy to test it here on the
Banana Pi. <br>
<br>
Thank you for your help. <br>
<br>
Chris <br>
<br>
<br>
<br>
On 02/03/2018 12:37 AM, Chris Szilagyi wrote: <br>
<blockquote type="cite">My apologies... I was running against
only the kernel-devel source files rather than the full kernel
source. It is working fine now that I found the correct
kernel src.rpm package for this kernel. <br>
<br>
Thank you... <br>
Chris <br>
<br>
<br>
On 02/02/2018 09:59 PM, Chris Szilagyi wrote: <br>
<blockquote type="cite">Hello: <br>
<br>
I am attempting to re-compile a broken kernel module for the
AltArch/Arm32 release. Currently I'm trying it against the
current kernel, 4.9.75-204. In using
"kernel-devel-4.9.75-204.el7.centos.armv7hl", and following
the instructions for CentOS at : <a moz-do-not-send="true"
class="moz-txt-link-freetext"
href="https://wiki.centos.org/HowTos/BuildingKernelModules">https://wiki.centos.org/HowTos/BuildingKernelModules</a>,
when I do a "make prepare", I am getting the error: <br>
<br>
make[1]: *** No rule to make target
`arch/arm/tools/gen-mach-types', needed by
`include/generated/mach-types.h'. Stop. <br>
make: *** [archprepare] Error 2 <br>
<br>
I've been searching for a fix for this but not sure what is
missing here. If you have a solution please let me know.
Thanks for your help on this. <br>
<br>
Chris <br>
_______________________________________________ <br>
Arm-dev mailing list <br>
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:Arm-dev@centos.org">Arm-dev@centos.org</a> <br>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="https://lists.centos.org/mailman/listinfo/arm-dev">https://lists.centos.org/mailman/listinfo/arm-dev</a>
<br>
</blockquote>
<br>
</blockquote>
<br>
_______________________________________________ <br>
Arm-dev mailing list <br>
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:Arm-dev@centos.org">Arm-dev@centos.org</a> <br>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="https://lists.centos.org/mailman/listinfo/arm-dev">https://lists.centos.org/mailman/listinfo/arm-dev</a>
<br>
<br>
</blockquote>
</blockquote>
<br>
</body>
</html>