notro
Posts: 695
Joined: Tue Oct 16, 2012 6:21 pm
Location: Drammen, Norway

Re: New device tree kernel is in testing

Mon Jan 19, 2015 6:47 pm

Yes of course you're right :oops: Apparently my logical units aren't fully equipped :lol:

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

Re: New device tree kernel is in testing

Mon Jan 19, 2015 8:19 pm

dom wrote:Just a heads up. I'll probably make the current 3.18.3 + DT kernel available through default rpi-update (without needing BRANCH=next) tomorrow for wider testing.
Speak up if you think there are any issues that need addressing before then.

At some later point it will appear through apt-get upgrade and official raspbian sdcard images.
I think you should bump SUBLEVEL = 3 to SUBLEVEL = 4 when you do that.
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

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

Re: New device tree kernel is in testing

Tue Jan 20, 2015 11:28 am

DougieLawson wrote: I think you should bump SUBLEVEL = 3 to SUBLEVEL = 4 when you do that.
That comes from https://www.kernel.org/ and 3.18.3 is the latest version.

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

Re: New device tree kernel is in testing

Tue Jan 20, 2015 7:09 pm

This has now been pushed to main firmware branch.

Code: Select all

sudo rpi-update
will get the latest 3.18 kernel with DT support. Don't use BRANCH="next" as it will stop being updated (until the next experimental feature needs testing).

For general 3.18 discussion go here.

DT specific issues can continue here.

funtomas
Posts: 9
Joined: Mon Dec 02, 2013 10:12 am

Re: New device tree kernel is in testing

Tue Jan 20, 2015 9:52 pm

i2c not working

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

Re: New device tree kernel is in testing

Tue Jan 20, 2015 10:20 pm

You will need to add:

dtparam=i2c1

to your config.txt file, and also clear out /etc/modprobe.d/raspiblacklist.conf (or thereabouts)

There is documentation here: https://github.com/raspberrypi/document ... ce-tree.md

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

Re: New device tree kernel is in testing

Tue Jan 20, 2015 10:21 pm

funtomas wrote:i2c not working
Have you enabled it in /boot/config.txt?

Code: Select all

device_tree_param=i2c1=on
device_tree_param=spi=on
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

User avatar
algorithm
Posts: 185
Joined: Mon Nov 25, 2013 9:09 pm
Location: Flatland

Re: New device tree kernel is in testing

Wed Jan 21, 2015 1:29 am

funtomas wrote:i2c not working
I predict an avalanche of this.

User avatar
Paul Webster
Posts: 812
Joined: Sat Jul 30, 2011 4:49 am
Location: London, UK
Contact: Twitter

Re: New device tree kernel is in testing

Wed Jan 21, 2015 7:27 am

Here is another one that seems to have gone wrong once DT build was picked up
http://www.raspberrypi.org/forums/viewt ... 58#p675258

milhouse
Posts: 641
Joined: Mon Jan 16, 2012 12:59 pm

Re: New device tree kernel is in testing

Wed Jan 21, 2015 8:04 am

It's not as if they didn't have prior warning this was coming, or the opportunity to help test...

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

Re: New device tree kernel is in testing

Wed Jan 21, 2015 8:42 am

milhouse wrote:It's not as if they didn't have prior warning this was coming, or the opportunity to help test...
Who are "they"? And prior warning of what, precisely?

milhouse
Posts: 641
Joined: Mon Jan 16, 2012 12:59 pm

Re: New device tree kernel is in testing

Wed Jan 21, 2015 8:55 am

ame wrote:Who are "they"?
"Those" about to start an "avalanche".
ame wrote:And prior warning of what, precisely?
This thread, that you have posted in, which is 6 weeks old and stating clearly that this branch will become master so "testing now will be useful".

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

Re: New device tree kernel is in testing

Wed Jan 21, 2015 9:00 am

I think what milhouse meant was that the intention to move to using Device Tree to describe the hardware, as opposed to declaring platform devices in the board support code, has been discussed for some time, and the BRANCH=next releases have been using it for about a month. Having said that, I imagine that for many people this update will be the first time they've even heard of Device Tree, and it is always a shock when things that used to work no longer do so.

I'm putting together a readme.txt to go into /boot/overlays that describes each overlay and its parameters, the idea being that it will be updated with each new overlay. In the meantime, here is the commit comment for the w1-gpio and w1-gpio-pullup overlays:

Code: Select all

    Adding w1-gpio device tree overlays
    
    w1-gpio-overlay:
      Use if a pullup pin is not required.
      Parameters:
        gpiopin=<i/o pin>     // default 4
    
    w1-gpio-pullup-overlay:
      Use if a pullup pin is required.
      Parameters:
        gpiopin=<i/o pin>     // default 4
        pullup=<pullup pin>   // default 5
And some examples:

Code: Select all

dtoverlay=w1-gpio,gpiopin=4
or

Code: Select all

dtoverlay=w1-gpio-pullup,gpiopin=4,pullup=5
Note that Device Tree support can be disabled (for now, at least) with:

Code: Select all

device_tree=

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

Re: New device tree kernel is in testing

Wed Jan 21, 2015 9:07 am

milhouse wrote:
ame wrote:Who are "they"?
"Those" about to start an "avalanche".
Ah, sorry, I thought you meant the people who aren't as smug as you.
ame wrote:And prior warning of what, precisely?
This thread, that you have posted in, which is 6 weeks old and stating clearly that this branch will become master so "testing now will be useful".
This presupposes that everyone has the time, resources and expertise to test something. Warning that "this branch will become master" is not the same as warning this "this branch will break everything."

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

Re: New device tree kernel is in testing

Wed Jan 21, 2015 9:11 am

PhilE wrote:I think what milhouse meant was that the intention to move to using Device Tree to describe the hardware, as opposed to declaring platform devices in the board support code, has been discussed for some time, and the BRANCH=next releases have been using it for about a month. Having said that, I imagine that for many people this update will be the first time they've even heard of Device Tree, and it is always a shock when things that used to work no longer do so.

I'm putting together a readme.txt to go into /boot/overlays that describes each overlay and its parameters, the idea being that it will be updated with each new overlay. In the meantime, here is the commit comment for the w1-gpio and w1-gpio-pullup overlays:
Yes, it was a shock that stuff stopped working, but I fixed it (by disabling the new feature).

It's night-time here, so I don't have any time now to turn on the device tree modules that I need, but over the next few days it will become clear what to do. Thank you for your hard work and I'll read the documentation carefully and try things out.

milhouse
Posts: 641
Joined: Mon Jan 16, 2012 12:59 pm

Re: New device tree kernel is in testing

Wed Jan 21, 2015 9:12 am

ame wrote:Ah, sorry, I thought you meant the people who aren't as smug as you.
Them too (although maybe not so much smug, as incredulous). ;)
ame wrote:This presupposes that everyone has the time, resources and expertise to test something. Warning that "this branch will become master" is not the same as warning this "this branch will break everything."
Yet you're willing to play Russian Roulette with rpi-update (no offence to dom, PhilE etc.) without doing the most basic research, otherwise you'd have known what was coming.
Last edited by milhouse on Wed Jan 21, 2015 9:18 am, edited 2 times in total.

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

Re: New device tree kernel is in testing

Wed Jan 21, 2015 9:16 am

Come on, gents, let's keep it friendly.
This presupposes that everyone has the time, resources and expertise to test something. Warning that "this branch will become master" is not the same as warning this "this branch will break everything."
You are correct that expecting everyone to be aware of the significance of this change is a bit much, and that is why this is a staged roll-out. "next" first, then rpi-update, then apt-get and NOOBs. I expect some technical teething problems, but the biggest obstacle will be getting the information out and helping people over the hump caused by any change, into a better future for the platform.

In the meantime, thank you for your patience.

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

Re: New device tree kernel is in testing

Wed Jan 21, 2015 9:23 am

milhouse wrote: Yet you're willing to play Russian Roulette with rpi-update, without doing the most basic research, otherwise you'd have known what was coming.
Um, no. I read this.
The default firmware branch updated to 3.18 kernel with device tree enabled.
The "next" firmware branch has been using this for the last few weeks without major problems.
<snip>
Ideally nothing much will change.
<snip>
Anyway, now that I am using it I can contribute to testing.

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

Re: New device tree kernel is in testing

Wed Jan 21, 2015 9:28 am

milhouse wrote:It's not as if they didn't have prior warning this was coming, or the opportunity to help test...
The problem is that folks are using rpi-update without reading the health warnings. Most users should never need to use that to push forwards with new firmware/kernels but should wait for the new stuff to be delivered with apt-get.

http://www.raspberrypi.org/forums/viewt ... 85#p675385

Maybe we should get rpi-update to ask "Are you sure you know what this process will do?" before proceeding.
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

milhouse
Posts: 641
Joined: Mon Jan 16, 2012 12:59 pm

Re: New device tree kernel is in testing

Wed Jan 21, 2015 9:29 am

ame wrote:Anyway, now that I am using it I can contribute to testing.
Yay. :)

I suspect the problem with this update has been, and will be, insufficient testing of all the different combinations of hardware and modules (which is not a criticism of the Foundation, as it's an impossible task). Obviously nobody with your particular setup was able to test in the last six weeks, which is frustrating/disappointing if your setup is particularly common.
Last edited by milhouse on Wed Jan 21, 2015 9:31 am, edited 1 time in total.

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

Re: New device tree kernel is in testing

Wed Jan 21, 2015 9:30 am

DougieLawson wrote:Maybe we should get rpi-update to ask "Are you sure you know what this process will do?" before proceeding.
You know everyone is going to say "Yes".

PatrickB
Posts: 2
Joined: Wed Jan 21, 2015 9:26 am

Re: New device tree kernel is in testing

Wed Jan 21, 2015 9:31 am

is it possible with new kernel i get some problems with pi camera and lan eth0 interface? if i create a picture with raspistill my eth0 ip address disappear.

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

Re: New device tree kernel is in testing

Wed Jan 21, 2015 9:35 am

PatrickB - I've not heard of that problem before. Do you see any messages appear in the dmesg output? Has anybody else tried the camera?

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

Re: New device tree kernel is in testing

Wed Jan 21, 2015 9:37 am

PatrickB wrote:is it possible with new kernel i get some problems with pi camera and lan eth0 interface? if i create a picture with raspistill my eth0 ip address disappear.
What model of RPi?
What do you have in /boot/config.txt?
Are there any messages in dmesg when this happens?
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

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

Re: New device tree kernel is in testing

Wed Jan 21, 2015 10:01 am

Be aware that enabling the i2c0 interface ("dtparam=i2c0=on") will interfere with the camera detection and operation, although this doesn't sound like your problem.

Return to “Advanced users”