[PATCH 13/16] ps3: get firmware version
Geoff Levand
geoffrey.levand at am.sony.com
Tue Jan 30 06:13:46 EST 2007
Arnd Bergmann wrote:
>> Changed from a struct to a union and got rid of the output to /proc/cpuinfo.
>> I'll look into arranging something in /proc/device-tree that userspace utils
>> can query.
>
> What's the current plan for the creating the device tree anyway? I think
> this should be part of the boot wrapper for the kernel in the ps3 flash,
> which can write the version into the flattened device tree. The second
> kernel then gets a copy of that through kboot.
Yes, that's hopefully ppossible, start with the static tree from ps3.dts then
add some properties in the first stage (romboot) wrapper entry. kboot then
passes that to the second stage wrapper entry, which passes it to the
second stage kernel. I suppose the second stage wrapper could do some
processing on it if needed. Backward compatibility with the 2.6.16 bootloader
will probably need that.
To make it work, I need to arrange to do 64 bit HV calls from the 32 bit
wrapper. I'm not yet entirely sure how to set that up. Any suggestions
would be welcome.
-Geoff
More information about the Linuxppc-dev
mailing list