Compare kernel versions? (re: Adafruit_BBIO ADC bug)

78 views
Skip to first unread message

Drew Fustini

unread,
Nov 23, 2016, 11:57:42 PM11/23/16
to Beagle Board, Robert Nelson
What's the best way to compare the difference between 4.4.30-ti-r66
and 4.4.30-ti-r65?

A person on the Adafruit forum reported an ADC issue with
Adafruit_BBIO in the latest Debian image:

"Adafruit_BBIO ADC latest image"
https://forums.adafruit.com/viewtopic.php?f=49&t=105847

There seems to be a bug where ADC.setup() fails upon the first
execution but works OK after that. I've installed different kernels
via apt-get and determined that 4.4.30-ti-r65 works OK:

4.4.32-ti-r68: FAIL
4.4.31-ti-r67: FAIL
4.4.30-ti-r66: FAIL
4.4.30-ti-r65: OK

This bone variant also works:
4.4.33-bone14: OK


thanks,
drew

Robert Nelson

unread,
Nov 24, 2016, 12:36:54 AM11/24/16
to Drew Fustini, Beagle Board
On Wed, Nov 23, 2016 at 10:57 PM, Drew Fustini <pdp7...@gmail.com> wrote:
> What's the best way to compare the difference between 4.4.30-ti-r66
> and 4.4.30-ti-r65?
>
> A person on the Adafruit forum reported an ADC issue with
> Adafruit_BBIO in the latest Debian image:
>
> "Adafruit_BBIO ADC latest image"
> https://forums.adafruit.com/viewtopic.php?f=49&t=105847
>
> There seems to be a bug where ADC.setup() fails upon the first
> execution but works OK after that. I've installed different kernels
> via apt-get and determined that 4.4.30-ti-r65 works OK:
>
> 4.4.32-ti-r68: FAIL
> 4.4.31-ti-r67: FAIL
> 4.4.30-ti-r66: FAIL
> 4.4.30-ti-r65: OK

https://github.com/RobertCNelson/ti-linux-kernel-dev/commits/ti-linux-4.4.y

r65 -> r66 there's 4 commits:

1st commit: (ti tree merge (rt merge))

https://github.com/RobertCNelson/ti-linux-kernel-dev/commit/7826d21813db6352830dd42b5a020048d0e24ec5


contents of ti merge:

https://github.com/RobertCNelson/ti-linux-kernel/compare/d5ab51a974f9dc5eb924e0745160669bb42956b6...4b3fde8208319595e894780a95736917b40d6417


2nd commit: (no-pie, gcc6/stretch fix, gcc6 in stretch now has pie
enabled by default, that doesn't work with the kernel... should be no
change with jessie's gcc)

https://github.com/RobertCNelson/ti-linux-kernel-dev/commit/16f1c12086c15b5171886c713f18fa34600123d9

3rd commit: added support for broadcom: 43430

https://github.com/RobertCNelson/ti-linux-kernel-dev/commit/d6fa558f0d929736429da70e5afdc00fe33139fb


4th commit: 4.4.30-ti-r66

https://github.com/RobertCNelson/ti-linux-kernel-dev/commit/66eecadbd6d2458dee35aab23e932b9c680cc01e

Compare patches for verification:

wget https://rcn-ee.net/deb/jessie-armhf/v4.4.30-ti-r65/patch-4.4.30-ti-r65.diff.gz
gunzip patch-4.4.30-ti-r65.diff.gz

wget https://rcn-ee.net/deb/jessie-armhf/v4.4.30-ti-r66/patch-4.4.30-ti-r66.diff.gz
gunzip patch-4.4.30-ti-r66.diff.gz

diff -u patch-4.4.30-ti-r65.diff patch-4.4.30-ti-r66.diff

https://paste.debian.net/898309/

might be the rt change???

Regards,

--
Robert Nelson
https://rcn-ee.com/

Drew Fustini

unread,
Nov 24, 2016, 2:03:06 AM11/24/16
to Robert Nelson, Beagle Board
Thanks for the detailed response.

I'll build ti-linux-kernel-dev and try removing those patches one by one.


thanks,
drew

Micka

unread,
Nov 24, 2016, 3:39:55 AM11/24/16
to beagl...@googlegroups.com
Robert,


for the kernel 4.4.13-bone11 ?

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAOCHtYidM5m_YhZ%2Bh%2BbiRiJHfsSSZPPreB4YRmNWNy7jHzvxKw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Robert Nelson

unread,
Nov 24, 2016, 12:57:19 PM11/24/16
to Drew Fustini, Beagle Board
On Thu, Nov 24, 2016 at 1:02 AM, Drew Fustini <pdp7...@gmail.com> wrote:
> Thanks for the detailed response.
>
> I'll build ti-linux-kernel-dev and try removing those patches one by one.

You'll have to use yakbuild*, start with 4.4.30-ti-r66 and in
./KERNEL/, git revert one at a time..

* https://github.com/RobertCNelson/yakbuild

as ti-linux-kernel-dev is not bisectable..

Drew Fustini

unread,
Nov 28, 2016, 1:56:35 AM11/28/16
to Robert Nelson, Beagle Board
On Thu, Nov 24, 2016 at 11:56 AM, Robert Nelson <robert...@gmail.com> wrote:
> You'll have to use yakbuild*, start with 4.4.30-ti-r66 and in
> ./KERNEL/, git revert one at a time..

The odd thing is that the issue does not occur with the 4.4.30-ti-r66
kernel I built using yakbuild:
https://gist.github.com/pdp7/740c5472ae13e52787f37be0484241f6/#gistcomment-1932257

However, 4.4.30-ti-r66 is a problem when installed via apt-get.

Thanks,
Drew

Robert Nelson

unread,
Nov 28, 2016, 9:46:42 AM11/28/16
to Drew Fustini, Beagle Board
yay, sounds like a bug with the native compiler. ;)

Drew Fustini

unread,
Nov 28, 2016, 7:10:49 PM11/28/16
to Robert Nelson, Beagle Board

On Nov 28, 2016 8:46 AM, "Robert Nelson" <robert...@gmail.com> wrote:
> yay, sounds like a bug with the native compiler. ;)

What do you mean by native compiler bug?

Are your builds done on ARM whereas I am cross compiling on my Intel PC?

Thanks,
Drew

Drew Fustini

unread,
Nov 30, 2016, 4:59:37 AM11/30/16
to BeagleBoard, robert...@gmail.com
On Wednesday, November 23, 2016 at 10:57:42 PM UTC-6, Drew Fustini wrote:
> A person on the Adafruit forum reported an ADC issue with
> Adafruit_BBIO in the latest Debian image:

> "Adafruit_BBIO ADC latest image"
https://forums.adafruit.com/viewtopic.php?f=49&t=105847

> There seems to be a bug where ADC.setup() fails upon the first
> execution but works OK after that. I've installed different kernels
> via apt-get and determined that 4.4.30-ti-r65 works OK: 

> 4.4.32-ti-r68: FAIL
> 4.4.31-ti-r67: FAIL
> 4.4.30-ti-r66: FAIL
> 4.4.30-ti-r65: OK

To followup, this issue appears to be resolved with 4.4.34-ti-r69 kernel:

Linux beaglebone 4.4.34-ti-r69 #1 SMP Wed Nov 23 20:01:14 UTC 2016 armv7l GNU/Linux

I installed via apt-get:

apt-get install linux-image-4.4.34-ti-r69


-drew
Reply all
Reply to author
Forward
0 new messages