darrenl
Posts: 12
Joined: Sat Nov 16, 2013 2:49 pm

Firmware Question

Thu Nov 28, 2013 3:54 pm

I have a Raspberry Pi firmware question. I tried researching myself, but my googlefu has failed me. My apologies if it has been answered earlier in the forums.

After updating with "sudo rpi-update", and then inputting "/usr/bin/vcgencmd version", sometimes the firmware is labeled "clean" and sometimes it is labeled "tainted". What's the difference between the two? For example:

[email protected] ~ $ /usr/bin/vcgencmd version
Nov 12 2013 23:43:03
Copyright (c) 2012 Broadcom
version 4aee5454c7955e7bc0bbb152ca4c0e26e75376e1 (clean) (release)

[email protected] ~ $ /usr/bin/vcgencmd version
Nov 27 2013 22:50:29
Copyright (c) 2012 Broadcom
version 95b18c7513b1cdd8ab76f541338f749285898fb7 (tainted) (release)

Kind regards,
Darren

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

Re: Firmware Question

Thu Nov 28, 2013 5:28 pm

It means I've got to fix something.

Basically the build process extracts the git commit hash and checks if the git tree is clean (i.e. exactly as a fresh clone would look).
If not it is marked as tainted.

Our build process is pretty good, in making sure all the build object are written to a serparate tree.
There is just one binary file that is produced by the build process that gets left in the source tree, and makes it look tainted.

Fortunately this is done after the git clean/tainted so doesn't normally affect it.

But, if I build the firmware twice it gets marked as tainted if I forget to delete this file.
I'll try to fix the build system to not do this.

darrenl
Posts: 12
Joined: Sat Nov 16, 2013 2:49 pm

Re: Firmware Question

Thu Nov 28, 2013 10:37 pm

Thanks dom! With the Raspberry Pi, the parts I find most interesting have to do with Linux. So, I visit github and read what you, popcornmix, and others do there. I don't understand a lot of it yet, but my goal is to learn more, and who knows, maybe even contribute some day. I think you guys do outstanding work.

Kind regards,
Darren

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

Re: Firmware Question

Thu Nov 28, 2013 10:48 pm

I've tried fixing this in the latest firmware. Let me know if you get a tainted releaese in the future. The new one looks okay:

Code: Select all

$ vcgencmd version
Nov 28 2013 21:11:14
Copyright (c) 2012 Broadcom
version 97d9a116746b859d0ccceef55b6cbd96b801f5a8 (clean) (release)

darrenl
Posts: 12
Joined: Sat Nov 16, 2013 2:49 pm

Re: Firmware Question

Thu Nov 28, 2013 11:37 pm

Code: Select all

[email protected] ~ $ vcgencmd version
Nov 28 2013 21:14:32 
Copyright (c) 2012 Broadcom
version 97d9a116746b859d0ccceef55b6cbd96b801f5a8 (clean) (release)
Looks great, thanks. I didn't know the "tainted" message came from git. I just noticed it because I keep a log of all changes I make to better learn the Linux OS, and I could never figure out what it meant.

iJaffa
Posts: 8
Joined: Fri Mar 21, 2014 11:29 am

Re: Firmware Question

Fri Mar 21, 2014 11:31 am

Just a heads up, the current firmware version is also appearing as 'tainted':

Code: Select all

Mar 19 2014 23:30:05
Copyright (c) 2012 Broadcom
version 98eb97cd0061f2fcff808fe5f32f851d5eada1ee (tainted) (release)

cooperbaker
Posts: 2
Joined: Sun Apr 20, 2014 9:09 pm

Re: Firmware Question

Wed Apr 23, 2014 2:39 am

Apr 23 2014 00:14:29
Copyright (c) 2012 Broadcom
version 8c6eeb8ba935907264625ed86287962173a60e55 (tainted) (release)

TraumaER
Posts: 1
Joined: Sun Apr 27, 2014 12:52 pm

Re: Firmware Question

Sun Apr 27, 2014 12:57 pm

I just updated my firmware as well and got the same as @cooperbaker.

From reading your post this isn't an issue though just a matter of that extra file in the GIT repo? I didn't receive any errors in the update so should be good there. I'll run rpi-update every now and then to look for a new release.

Thanks for the straight forward explanation of the issue :)

Return to “General discussion”