ame
Posts: 3172
Joined: Sat Aug 18, 2012 1:21 am
Location: Korea

Re: Linux kernel is now 3.18

Wed Jan 21, 2015 1:10 am

Here's the detective work I have managed so far. In /var/log/dmesg I have this:

Code: Select all

[    6.020730] Driver for 1-wire Dallas network protocol.
[    6.134665] w1-gpio onewire@0: gpio pin 4, gpio pullup pin 1
[    6.230123] w1_add_master_device: set_pullup requires write_byte or touch_bit, disabling
I don't know why the pullup is on pin 1. My one-wire bus is hooked up to pin 4.

[Edit: This might be a red herring. It's all working when I stopped device tree from loading.]
Last edited by ame on Wed Jan 21, 2015 7:30 am, edited 1 time in total.

Sheddyian
Posts: 21
Joined: Thu Jul 17, 2014 4:33 pm

Re: Linux kernel is now 3.18

Wed Jan 21, 2015 1:56 am

I wasn't familiar with using rpi-update to select different versions of firmware, so this took me a while, but I can now confirm that
reverting to the previous firmware with :

Code: Select all

sudo rpi-update f74b92120e0d469fc5c2dc85b2b5718d877e1cbb 
fixes the problem, and I can now measure the temperature with the 1 wire probe. It's currently 2.56C outside where I am :D

Ian

ame
Posts: 3172
Joined: Sat Aug 18, 2012 1:21 am
Location: Korea

Re: Linux kernel is now 3.18

Wed Jan 21, 2015 2:20 am

I fixed it too. In a different way.

I Read the Fine Manual and discovered I can get rid of the device tree implementation (for now):
https://github.com/raspberrypi/document ... ce-tree.md (section 4.3)

So, with "device_tree=" in /boot/config.txt and my modules in /etc/modules, and my parameters in /etc/modprobe.d/1-wire.conf it's all good... for now.

Thanks everyone for the hints and tips. Clearly device tree is a Good Thing, but I've had to turn it off for the present.

Now to try the DS2406 module.

PuppetHoundZ
Posts: 170
Joined: Wed Jan 21, 2015 2:57 am

Re: Linux kernel is now 3.18

Wed Jan 21, 2015 3:05 am

I'm new and this is my first post. I'm really enjoying my raspberry pi b+

I'm using a 16GB micro SD card with Noobs 1.3.11, the Offiical Broadcom Wifi Dongle and a bunch of FAT32 USB drives. I've been using a Pi to learn Debian Linux as a desktop and how the command line works mostly.

It's been mentioned the new Device Tree will require modifications Config.txt. Will I need to make any modifications to this if I wish to utilize the new kernel with my setup or should I just stick to the last rpi-update?

User avatar
DougieLawson
Posts: 30171
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website

Re: Linux kernel is now 3.18

Wed Jan 21, 2015 8:29 am

PuppetHoundZ wrote:I'm new and this is my first post. I'm really enjoying my raspberry pi b+
Stay a very long way away from the 3.18 kernel. Your system has 3.12.35+ and you should stick with that until 3.18 becomes generally available with the apt-get update/upgrade (or dist-upgrade) process.
Microprocessor, Raspberry Pi & Arduino Hacker
Mainframe database troubleshooter
MQTT Evangelist
Twitter: @DougieLawson

Since 2012: 1B*5, 2B*2, B+, A+, Zero*2, 3B*3

Please post ALL technical questions on the forum. Do not send private messages.

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

Re: Linux kernel is now 3.18

Wed Jan 21, 2015 9:05 am

Although I could take issue with the tone of Dougie's comment, the take-home is correct. In due course there will be a NOOBs release including the new kernel, and you should probably wait until that is available instead of taking the rpi-update. Having said that, unless you are using any external hardware other than the WiFi dongle then I doubt you would notice any difference (although I have heard suggestions of a small performance boost).

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

Re: Linux kernel is now 3.18

Wed Jan 21, 2015 4:51 pm

FYI, there is a new post explaining the Device Tree changes here: http://www.raspberrypi.org/forums/viewt ... 29&t=97314

PuppetHoundZ
Posts: 170
Joined: Wed Jan 21, 2015 2:57 am

Re: Linux kernel is now 3.18

Wed Jan 21, 2015 4:58 pm

DougieLawson wrote: ...Your system has 3.12.35+ and you should stick with that until 3.18 becomes generally available with the apt-get update/upgrade (or dist-upgrade) process.
Noted. The reason why I asked in the first place was because there is lot of confusion reading around the forums and other areas that say do an rpi-update after you do the dist-upgrade because "apt-get upgrade or dist-upgrade" don't contain firmware updates, but your reply reassures that it does and will in the next dist-upgrade. Thanks.

Edit: It also appears that if I wait for the next Dist-upgrade I won't have to worry about all the files not working with the new device tree stuff if I ever do decide to buy a LED HAT or something for fun.

PS
the link helps from PhilE too much appreciated.

User avatar
DougieLawson
Posts: 30171
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website

Re: Linux kernel is now 3.18

Wed Jan 21, 2015 5:03 pm

Hey PuppetHoundZ, that was a baptism of fire for your first couple of forum posts. BTW, welcome to this mad-house.
Microprocessor, Raspberry Pi & Arduino Hacker
Mainframe database troubleshooter
MQTT Evangelist
Twitter: @DougieLawson

Since 2012: 1B*5, 2B*2, B+, A+, Zero*2, 3B*3

Please post ALL technical questions on the forum. Do not send private messages.

PuppetHoundZ
Posts: 170
Joined: Wed Jan 21, 2015 2:57 am

Re: Linux kernel is now 3.18

Wed Jan 21, 2015 5:19 pm

No worries Dougie.

I've been reading the forums since November of last year (ie when I got my first Pi, a B+) and I've finally joined because a lot of users weren't asking the questions I needed answered. This Rpi-update clarification really helps me. My only concern is that I did Rpi-update last Sunday the 19th and am concerned that I may have messed it up but Pi works fine imo. I definitely waiting for the next Dist-upgrade as I'm excited as to what Epiphany browser has brought.

Should I have to do another reformat on my SD card and install the new noobs if and when it comes out or just keep to apt-get dist-upgrade?


Ps sorry if I'm getting off topic.

User avatar
DougieLawson
Posts: 30171
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website

Re: Linux kernel is now 3.18

Wed Jan 21, 2015 6:02 pm

Does your RPi boot?
Do all of your peripherals work?
Have you read Phil's excellent thread that concisely describes the new DT stuff?

"Yes" to all of those and you've passed the exam. You can label yourself as an "Advanced User" and can stick with 3.18.3+ saving the hassle of undoing it.
Microprocessor, Raspberry Pi & Arduino Hacker
Mainframe database troubleshooter
MQTT Evangelist
Twitter: @DougieLawson

Since 2012: 1B*5, 2B*2, B+, A+, Zero*2, 3B*3

Please post ALL technical questions on the forum. Do not send private messages.

PuppetHoundZ
Posts: 170
Joined: Wed Jan 21, 2015 2:57 am

Re: Linux kernel is now 3.18

Wed Jan 21, 2015 6:41 pm

So if I did rpi-update last sunday I'm already using 3.18 kernel?

Everything works fine btw all devices and it's trouble free.

User avatar
DougieLawson
Posts: 30171
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website

Re: Linux kernel is now 3.18

Wed Jan 21, 2015 7:11 pm

PuppetHoundZ wrote:So if I did rpi-update last sunday I'm already using 3.18 kernel?

Everything works fine btw all devices and it's trouble free.
If you did rpi-update any time after 18:00 yesterday, you'd get 3.18.3+, Sunday was still 3.12.36+.
Microprocessor, Raspberry Pi & Arduino Hacker
Mainframe database troubleshooter
MQTT Evangelist
Twitter: @DougieLawson

Since 2012: 1B*5, 2B*2, B+, A+, Zero*2, 3B*3

Please post ALL technical questions on the forum. Do not send private messages.

PuppetHoundZ
Posts: 170
Joined: Wed Jan 21, 2015 2:57 am

Re: Linux kernel is now 3.18

Wed Jan 21, 2015 8:08 pm

I'm making an back-up copy or image of my SD card right now. I'll try it out just for the fun of it. IF it don't work out I can just re-image back to my old version. I'm always interested in performance updates and the DT seems more focused on GPIO setups which I don't have any way of doing yet. So I'll have at it to try out the new kernel performance. :)


Update: Well I tried the new kernel out and my Broadcom Wifi Dongle doesn't work now. I guess I'm reformatting and imaging back. :lol:

It's a learning experience. I'll be happily awaiting the next dist-upgrade that support DT with a more plug and play experience. ;)

Btw, My USB Drives worked fine and it appeared to boot faster (placebo maybe?). But the Wifi didn't show up in the WPA Gui Setup, so I'm reverting back with the image I just made. I'm going to try and learn that DT stuff more by reading more up on it but it doesn't appear to mention Wifi Dongles.

Will this Kernel be squared out by the time the new Dist-upgrade comes out or will we still have to learn Device Tree regardless? I mean I've used Ubuntu (my first time with it was two weeks ago and everything was plug and play) and never had to mess with Device tree.

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

Re: Linux kernel is now 3.18

Wed Jan 21, 2015 10:55 pm

PuppetHoundZ wrote: Update: Well I tried the new kernel out and my Broadcom Wifi Dongle doesn't work now. I guess I'm reformatting and imaging back. :lol:
What wifi dongle? The output of lsusb and lsmod on the working system would be useful.

PuppetHoundZ
Posts: 170
Joined: Wed Jan 21, 2015 2:57 am

Re: Linux kernel is now 3.18

Wed Jan 21, 2015 11:16 pm

dom wrote: What wifi dongle? The output of lsusb and lsmod on the working system would be useful.

The Offiical Broadcom one:
http://blog.broadcom.com/raspberry-pi/w ... ess-power/
Image of my Setup:
http://t.co/iD02jE2fmy

When I opened up the GUI interface within Raspbian it didn't even show it up or recognize it. Which means I may need to do the config.txt text thing.

I'm using NOOBS 1.3.11 with Raspbian installed. A USB Hard Drive formatted in FAT32 (which works) but the Broadcom Dongle doesn't. I'm not familiar with the terms: "lsusb and lsmod", sorry for my lack of knowlege on that but I don't know. :? I really am a Noob when it come to some of this (probably shouldn't even be messing around with this kernel thing but I though I would try it out and post my findings.)


Update: I looked up how to do the "Isusb and Ismod" I'll try it and post a list of what it says when I get back to my Pi in a few hours by updating this post. ok? :D

Update here are the information you requested (this is from the new rpi-update kernel 3.18):

Code: Select all

~ $ lsusb
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. 
Bus 001 Device 008: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Bus 001 Device 005: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 001 Device 007: ID 152d:0551 JMicron Technology Corp. / JMicron USA Technology Corp. 
Bus 001 Device 009: ID 0a5c:bd1e Broadcom Corp. 
and

Code: Select all

 ~ $ lsmod
Module                  Size  Used by
snd_bcm2835            21342  0 
snd_pcm                93100  1 snd_bcm2835
snd_seq                61097  0 
snd_seq_device          7209  1 snd_seq
snd_timer              23007  2 snd_pcm,snd_seq
snd                    67211  5 snd_bcm2835,snd_timer,snd_pcm,snd_seq,snd_seq_device
sg                     21787  0 
uas                    15604  0 
evdev                  11000  4 
joydev                  9766  0 
uio_pdrv_genirq         3666  0 
uio                     9897  1 uio_pdrv_genirq


Update2: I'm reverting back to my old image I made with the previous kernel.
I even attempted to add the code:

Code: Select all

device_tree=
this still resulted in the wpa_gui to not recognize the broadcom wifi dongle. IT may have to do with the fact that the drivers or somthing else is missing in the kernel or just not loading right. I hope this gets sorted out by the time the apt-get update comes with this new kernel.

Update3 after re-image back to previous kernel:
my lsmod page changed has a lot more listed while lsusb is exactly as posted with the new 3.18 kernel:

Code: Select all

~ $ lsmod
Module                  Size  Used by
snd_bcm2835            19496  0 
sg                     19877  0 
joydev                  9257  0 
snd_soc_bcm2708_i2s     6210  0 
regmap_mmio             2818  1 snd_soc_bcm2708_i2s
evdev                  10681  4 
snd_soc_core          128465  1 snd_soc_bcm2708_i2s
snd_compress            8259  1 snd_soc_core
regmap_i2c              1661  1 snd_soc_core
snd_pcm_dmaengine       5505  1 snd_soc_core
regmap_spi              1913  1 snd_soc_core
snd_pcm                83845  3 snd_bcm2835,snd_soc_core,snd_pcm_dmaengine
snd_page_alloc          5132  1 snd_pcm
snd_seq                55484  0 
snd_seq_device          6469  1 snd_seq
snd_timer              20998  2 snd_pcm,snd_seq
leds_gpio               2079  0 
led_class               4118  1 leds_gpio
snd                    62252  7 snd_bcm2835,snd_soc_core,snd_timer,snd_pcm,snd_seq,snd_seq_device,snd_compress
brcmfmac              124591  0 
brcmutil                6881  1 brcmfmac
cfg80211              212241  1 brcmfmac
rfkill                 19784  2 cfg80211
Keep in mind I attempted to add the information to the config.txt file as noted in the new "Device Trees, Overlays and Parameters" documentation page. I also deleted the the files on modprobe.d/raspbi-blacklist.conf (or thereabouts) I don't know if doing that reduced the amount of things that load in the lsmod but that's what I did after I did Rpi-update to kernel 3.18.

I hope this post actually helps somebody as I'm a bit at a loss as to what I'm doing now, hopefully I'm not wasting anyones time but myself. But all runs superb out of the box with the previous kernel :D

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

Re: Linux kernel is now 3.18

Thu Jan 22, 2015 6:55 am

I'm sorry to hear you are having such problems. My instinct is that this is not a DT problem, but rather something else that has changed as a result of going from 3.12 to 3.18. It was discovered yesterday that the rtl8188eu WiFi driver had lost its firmware (now restored) - this could be something similar.

PuppetHoundZ
Posts: 170
Joined: Wed Jan 21, 2015 2:57 am

Re: Linux kernel is now 3.18

Thu Jan 22, 2015 7:33 am

PhilE wrote:My instinct is that this is not a DT problem, but rather something else that has changed as a result of going from 3.12 to 3.18. It was discovered yesterday that the rtl8188eu WiFi driver had lost its firmware (now restored) - this could be something similar.
That's what's I think too. Because this whole DT has helped me figure out how to modify the config.txt using the NOOBS recovery page. I did all the suggestions by uncommenting all the device things. But none of those DT terms that were listed as uncomment-able had any naming regarding USB hardware, but only just GPIO stuff.

A cool idea regarding DT be implemented:
The new device tree should have some way to have it turned on/off using "sudo raspi-config" have these accessible to enable / disable sort of like the kernel module for pi-face I was skimming over.

I've got this page bookmarked and will keep an eye on it if kernel gets the firmware / Wifi driver back during this test phase, I'll be happy to rpi-update back to it. But this was all fun I have a spare MicroSD card that I think I may try out for fun and continue this and when I get the wifi working on that. I'll update my primary SDCard. Ie. I mostly doing this to learn Debian Linux so that I can have a good knowlege of how it works in case I ever want to transition my life over to Ubuntu and the idea of the Pi as a multi-fuctional desktop computer is awesome.

jdb
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 1697
Joined: Thu Jul 11, 2013 2:37 pm

Re: Linux kernel is now 3.18

Thu Jan 22, 2015 12:11 pm

It's likely that brcmfmac got deactivated in the build (either a missing dependency or wasn't carried over).

On a 3.18 kernel, what is the result of modinfo brcmfmac?

Edit: it's being looked into.
Rockets are loud.
https://astro-pi.org

PuppetHoundZ
Posts: 170
Joined: Wed Jan 21, 2015 2:57 am

Re: Linux kernel is now 3.18

Thu Jan 22, 2015 7:40 pm

jdb wrote:
On a 3.18 kernel, what is the result of modinfo brcmfmac?
Nothing.

I get this:

Code: Select all

ERROR: Module brcmfmac not found.
I'm testing this now with a secondary card with a fresh install that I just mess around with but it does it every time no wifi Driver. :)

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

Re: Linux kernel is now 3.18

Thu Jan 22, 2015 8:48 pm

I've discovered that somewhere along the way some configuration options went missing, including the one that enables that Wi-Fi driver. There will probably be a new release tomorrow.

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

Re: Linux kernel is now 3.18

Fri Jan 23, 2015 11:49 am

PuppetHoundZ wrote: The new device tree should have some way to have it turned on/off using "sudo raspi-config" have these accessible to enable / disable sort of like the kernel module for pi-face I was skimming over.
Yes, I think the more common DT options could be enabled/disabled through raspi-config.

BertieD
Posts: 1
Joined: Fri Jan 23, 2015 12:18 pm

Re: Linux kernel is now 3.18

Fri Jan 23, 2015 12:28 pm

I had same problem - upgraded to this kernel and lost 1-wire until I found this thread.
Reverted as per Ian's post above and now back working again. Now on 3.12.36+
Thanks for sharing! :)

PuppetHoundZ
Posts: 170
Joined: Wed Jan 21, 2015 2:57 am

Re: Linux kernel is now 3.18

Fri Jan 23, 2015 6:02 pm

PhilE wrote:There will probably be a new release tomorrow.
It works. Everything works. I don't even need to mess with Config.txt or anything else unless I just wanted to mess around with it but the Wifi works now. Thanks.

Update 1/27/15: After much messing around. I've learned I don't need to modify much other than commenting out the Blacklist file mentioned in other forum and adding the parameters (currently commented) in the config.txt. The reason why is that I'm not using the GPIO pins at this time and mostly learning Linux OS. But it's good to know that when I do decide to use GPIO for projects I'll already be familiar with the basics of DT.
Last edited by PuppetHoundZ on Tue Jan 27, 2015 9:19 pm, edited 1 time in total.

KMO
Posts: 1
Joined: Tue Jan 27, 2015 11:28 am

Re: Linux kernel is now 3.18

Tue Jan 27, 2015 11:32 am

"So, with "device_tree=" in /boot/config.txt and my modules in /etc/modules, and my parameters in /etc/modprobe.d/1-wire.conf it's all good... for now."

what parameters did you put in /etc/modprobe.d/1-wire.conf ?

Return to “Advanced users”

Who is online

Users browsing this forum: No registered users and 15 guests