Re: Raspberry Pi support for Rev-2 & BL

paul_c <[email protected]> Mon, 14 Jan 2013 23:50:14 +0000
Newsgroups gmane.comp.sysutils.lcdproc
Message-ID <[email protected]>
Hi Markus

On Monday 14 January 2013, Markus Dolze wrote:
> In the meantime you may receive notice that the revision detection
> fails on recent models (my revision is 'f'). The line that reads in
> the revision number should read hex vales ('x' modifier) not
> integers.

I should have dug in to the kernel sources to check (it is indeed 
printed as a hex value) - It would appear that the "Revision" string is 
common to all ARM boards, and most worryingly, it is a command line 
parameter. In effect, the test can not be relied upon to verify the 
revision. An element of trust on the part of the user is required.. The 
parameter, bcm2708.boardrev, would appear to be passed by the firmware 
on power-on, but it can be overridden in /boot/cmdline.txt.

Could check for /sys/module/bcm2708/parameters/boardrev, but again, we 
would have to trust that the user has not given a false value. At the 
moment, I'm reluctant to rely on the sysfs tree until the Raspberry Pi 
is supported in the mainline kernel (looks like it may be around 3.9.x 
or 3.10.x).

Regards, Paul.