How to parse a line?

I'm currenting trying to parse the out put of the following command.

iostat -xtc -r |grep cmdk0

which produces the output

cmdk0,0.2,0.0,1.2,0.0,0.0,0.0,39.7,0,0,0,0,0,0,0,99

I'm then trying to get the data to look like this:
rw=0.2
ws=0.0
krs=1.2
kws=0.0
wait=0.0
actv=0.0
svct=39.7
%w=0
%b=0
tin=0
tout=0
us=0
sy=0
wt=0
id=99

Any thoughts on how to do this would be great.

iostat -xtc -r | nawk -F',' -v line='cmdk0' -f iostat.awk

iostat.awk:

FNR==2 {for(i=2; i<=NF;i++) header=$i; next }
$1 == line { for(i=2; i<=NF;i++) printf("%s=%s\n", header, $i)}

I don't have your version of the iostat, so I could not test it thoroughly.

using perl split may be another option