Compare kernel versions? (re: Adafruit_BBIO ADC bug)

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

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,

Thanks for the detailed response.

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

thanks,
drew

Robert,

Do you have also something like https://github.com/RobertCNelson/linux-dev/commits

for the kernel 4.4.13-bone11 ?

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..

Regards,

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

yay, sounds like a bug with the native compiler. :wink:

Regards,

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

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