User avatar
Siewert308SW
Posts: 33
Joined: Fri Feb 27, 2015 1:31 pm
Location: The Netherlands
Contact: Website

Re: Moving Linux kernel to 4.9

Tue May 30, 2017 6:11 pm

dom wrote:See: https://github.com/Hexxeh/rpi-update/issues/244 for info about gawk/mawk.

I will remove the gawk specific code in rpi-update once I've confirmed it fixes the issue.
I've also asked our packaging guy why many users have mawk rather than gawk installed
(I personally have gawk installed, but I guess that came in as a dependency on something I installed).
thx
Setup:
- RPi3 - PIco HV3.0A / Domo Beta 3.9XXX / RFXtrx433E / Aeotec Gen5
- RPi3 - PIco HV3.0A / PiHole / PiVPN / NAS / Print Server
- Youless Elec&Gas
- FI9803P Cams
- KD101 detectors
- Zwave & KaKu

https://github.com/Siewert308SW

Martin Frezman
Posts: 1021
Joined: Mon Oct 31, 2016 10:05 am

Re: Moving Linux kernel to 4.9

Fri Jun 02, 2017 11:28 am

dom wrote:See: https://github.com/Hexxeh/rpi-update/issues/244 for info about gawk/mawk.

I will remove the gawk specific code in rpi-update once I've confirmed it fixes the issue.
I've also asked our packaging guy why many users have mawk rather than gawk installed
(I personally have gawk installed, but I guess that came in as a dependency on something I installed).
Upthread, someone mentioned that "gawk should be installed by default". The truth of that statement turns on which meaning of the word "should" is intended. On computer support board, people often use the word "should" as a soft form of the word "is". For example: Water should be wet.

Used in that sense, the statement is untrue/invalid, because, as we all know by now, Debian out-of-the-box has "mawk" as "awk". You have to install gawk yourself. It would be good if Raspbian did that for you, but I understand they want to keep to Debian as much as possible. The other sense of the word "should" is as in "It would be desirable if". For example: Raspbian should have gawk installed by default (but it doesn't).

For the record, I strongly feel that you should not remove the gawk-specific code from your scripts, because gawk is a good thing and its use should be encouraged. Rather, I think you should work to having gawk installed by default in Raspbian.

Finally, because gawk does have "non-standard extensions", I always invoke it by name. I never use plain "awk" in a script (or on the command line) because you never know what you're getting. Instead, I use "gawk"; note that this would cause the script in question to fail more directly (in a way more easily diagnosed), rather than generate a cryptic message about "strtonum".
If this post appears in the wrong forums category, my apologies.

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5138
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Moving Linux kernel to 4.9

Sat Jun 03, 2017 11:34 am

aplocher wrote:D'oh, me again, now I'm having the same problem on my Pi3. The problem is I did a apt-get update/dist-upgrade and it downgraded the kernel. Then rpi-update still thinks it's updated to 4.9 (which I guess it's not) so rpi-update isn't allowing it reinstall:
Run:

Code: Select all

sudo rm /boot/.firmware_revision
before rpi-update to force it to run.

peter.huewe
Posts: 4
Joined: Wed Sep 14, 2016 4:25 am

Re: Moving Linux kernel to 4.9

Tue Jun 27, 2017 11:28 am

shige3106 wrote: I believet that TPM is important for secure boot for Iot or security...
Anyway, I created image by myself but it doesnt show the device in /dev/tpmx.
I know that something wrong with device tree file.

Could you let me any advice ? attatched my dts file.
I want to use the driver for raspi2/raspi3.
The dts file more or less looks fine.
Of course you need to add a TPM to your system and enable TPM Support in the Kernel.

With a quick google I found this blog post:
http://letstrust.de/archives/9-Howto-En ... t-TPM.html

Or also have a look at the guides Infineon Technologies (my employer) has
See:
https://www.infineon.com/cms/de/product ... 8#ispnTab3
Infineon SLB 9645 / SLB 9670 TPM 1.2 with Embedded Platform Integration on a Raspberry Pi® 2
Infineon SLB 9670 TPM 2.0 on a Raspberry Pi 3 EN

Infineon's sub-company Hitex now has the eval boards for RPI in stock:
https://www.ehitex.de/en/evaluation-boa ... tpm2.0-spi TPM2.0 SPI
https://www.ehitex.de/en/evaluation-boa ... tpm1.2-spi TPM1.2 SPI
https://www.ehitex.de/en/evaluation-boa ... tpm1.2-i2c TPM1.2 I2C

or as a lower cost alternative the german Raspberry Pi distributor buyzero/pi3g has it's own Infineon SLB9670 TPM SPI board in stock:
https://buyzero.de/products/letstrust-h ... orm-module
(this is where the blog post above comes from)

warp10
Posts: 2
Joined: Thu Aug 17, 2017 9:28 am

Re: Moving Linux kernel to 4.9

Thu Aug 17, 2017 9:31 am

Hi,

I not sure if this is the right place to ask, please advice where to post otherwise.

I'm using a USB to serial adapter with an pl2303 chip on a RPi2.

Using the 4.9 kernel, dmesg states:

Code: Select all

pl2303 ttyUSB0: usb_serial_generic_read_bulk_callback - urb stopped: -32
The adapter worked before without any problems.

Any ideas?

cheers,
Thorsten

PhilE
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 1687
Joined: Mon Sep 29, 2014 1:07 pm
Location: Cambridge

Re: Moving Linux kernel to 4.9

Thu Aug 17, 2017 3:16 pm

I see you've already asked this question in the Hexxeh firmware repo, but without any reply yet. In finding that post I also found this other post (https://github.com/raspberrypi/linux/is ... -321313449):
I can confirm that the problem with serial port disconnects that express the syslog line:
ftdi_sio ttyUSB0: usb_serial_generic_read_bulk_callback - urb stopped: -32
is caused by FAKE FTDI chips. I tried several different FTDI usb serial boards, and it turned out that they were all fake. I purchased genuine FTDI serial board (UB232R) from Digikey, and the problem has gone away. I can verify that the batches that I had originally tried were fake because several of them had SerialNumber of 00000, and several others had serial number of A50285BI, which was confirmed to be common with fake chips - see https://softsolder.com/2016/09/02/count ... r-roundup/

I did not have to drop the USB down to 1.1, it worked correctly as soon as I put in the genuine chips.
Perhaps this applies to you as well?

warp10
Posts: 2
Joined: Thu Aug 17, 2017 9:28 am

Re: Moving Linux kernel to 4.9

Fri Aug 18, 2017 8:49 am

Dear PhilE,

thanks for your reply and the links.

It's very probable that the chip used in the adapter is fake, I've bought it from ebay for less than 2€.
The serial is

Code: Select all

ATTRS{serial}=="3f980000.usb"

In my case however, the problem is solved. It has nothing to do with the kernel whatsoever. There was another process accessing /dev/ttyUSB0.
Thanks to lsof, I could identify the process and after stopping it, the error message is gone and I can use the adapter!

I'll change the issue in the repo accordingly.

cheers,
Thorsten

cjan
Posts: 545
Joined: Sun May 06, 2012 12:00 am

Re: Moving Linux kernel to 4.9

Mon Aug 28, 2017 7:29 am

so, kernel from rpi-update is the same, jessie & stretch ?

runboy93
Posts: 331
Joined: Tue Feb 28, 2017 1:17 pm
Location: Finland
Contact: Website

Re: Moving Linux kernel to 4.9

Mon Aug 28, 2017 7:59 am

cjan wrote:
Mon Aug 28, 2017 7:29 am
so, kernel from rpi-update is the same, jessie & stretch ?
rpi-update kernel is 4.9.45 I think and stable is 4.9.41

cjan
Posts: 545
Joined: Sun May 06, 2012 12:00 am

Re: Moving Linux kernel to 4.9

Mon Aug 28, 2017 8:05 am

runboy93 wrote:
Mon Aug 28, 2017 7:59 am
cjan wrote:
Mon Aug 28, 2017 7:29 am
so, kernel from rpi-update is the same, jessie & stretch ?
rpi-update kernel is 4.9.45 I think and stable is 4.9.41
sorry, poor english.
does it(s) same build environment?

User avatar
bensimmo
Posts: 2622
Joined: Sun Dec 28, 2014 3:02 pm
Location: East Yorkshire

Re: Moving Linux kernel to 4.9

Mon Aug 28, 2017 8:17 am

Using rpi-update hasn't been needed to get 4.9 for some time now, since it came out of testing.
The usual apt-get will update older setups.
Raspbian Jessie and Stretch both use 4.9

PhilE
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 1687
Joined: Mon Sep 29, 2014 1:07 pm
Location: Cambridge

Re: Moving Linux kernel to 4.9

Mon Aug 28, 2017 9:21 am

rpi-update will get you the same kernel, whatever the OS.


andig2
Posts: 51
Joined: Wed Oct 31, 2012 9:34 pm

Re: Moving Linux kernel to 4.9

Thu Mar 08, 2018 9:18 pm

Hi,

is there any way to get kernel headers for current 4.14 kernel versions? I need to compile the usb2can driver and am totally failing to do so :(

Thanks,
Andi

User avatar
fruitoftheloom
Posts: 16455
Joined: Tue Mar 25, 2014 12:40 pm
Location: Bognor Regis UK

Re: Moving Linux kernel to 4.9

Fri Mar 09, 2018 7:24 am

andig2 wrote:
Thu Mar 08, 2018 9:18 pm
Hi,

is there any way to get kernel headers for current 4.14 kernel versions? I need to compile the usb2can driver and am totally failing to do so :(

Thanks,
Andi
You have hijacked a post not related to your issue, 4.14 has its own Post:

viewtopic.php?f=29&t=197689
""understanding the theoretical, but not always the end goal""

My other Devices are the ChromeBit CS10, ChromeCast & Huawei Mate 10 Pro SmartPhone

Return to “Advanced users”

Who is online

Users browsing this forum: No registered users and 3 guests