From: Heiko Z. <he...@zu...> - 2012-05-01 17:30:34
|
Serge, Did you want to add this to the standard configuration? Regards Heiko Quoting Serge Leschinsky <sma...@us...>: > Update of /cvsroot/devil-linux/build/scripts > In directory vz-cvs-3.sog:/tmp/cvs-serv32338/scripts > > Added Files: > microcode > Log Message: > > - added CPU microcode update > > > --- NEW FILE: microcode --- > #!/bin/bash > # $Source: /cvsroot/devil-linux/build/scripts/microcode,v $ > # $Revision: 1.1 $ > # $Date: 2012/04/23 05:45:45 $ > # http://www.devil-linux.org > > # you need the next line, otherwise script won't be executed !!! > # DL-build-system v3 > > # get the directoryname of the script > MYDIR=${0%/*} > > # source functions and config > source $MYDIR/settings > > case $1 in > build ) > gcc -Wall -o intel-microcode2ucode intel-microcode2ucode.c || exit 1 > mkdir firmware && pushd firmware > /dev/null || exit 1 > for i in $SRCDIR/microcode/*; do > tar vfxj $i || exit 1 > done > ../intel-microcode2ucode microcode.dat || exit 1 > popd > /dev/null > ;; > > install ) > rm -rf $TMPDIR || exit 1 > > mkdir -p $TMPDIR/lib/firmware/{amd-ucode,intel-ucode} && chmod 755 > $TMPDIR/lib/firmware/*-ucode || exit 1 > cp -a firmware/amd-ucode*/microcode_amd.bin > $TMPDIR/lib/firmware/amd-ucode/ || exit 1 > cp -a firmware/amd-ucode*/microcode_amd_fam15h.bin > $TMPDIR/lib/firmware/amd-ucode/ || exit 1 > cp -a firmware/intel-ucode/* $TMPDIR/lib/firmware/intel-ucode/ || exit 1 > mkdir -p $TMPDIR/lib/udev/rules.d && cp microcode.rules > $TMPDIR/lib/udev/rules.d/89-microcode.rules || exit 1 > copy_files $TMPDIR/lib $CDDIR/ || exit 1 > > rm -rf $TMPDIR || exit 1 > ;; > > * ) > echo "ERROR ($0)" > echo "please add parameter so I know what to do" > exit 1 > ;; > esac > > > ------------------------------------------------------------------------------ > For Developers, A Lot Can Happen In A Second. > Boundary is the first to Know...and Tell You. > Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! > http://p.sf.net/sfu/Boundary-d2dvs2 > _______________________________________________ > Devil-linux-commit mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/devil-linux-commit -- Regards Heiko Zuerker http://www.devil-linux.org |
From: Serge L. <ser...@gm...> - 2012-05-04 19:30:26
|
Hi Heiko, yes, I thought there is no harm in it because microcode module should be loaded specially, udev doesn't load it. Serge On 05/01/2012 10:30 AM, Heiko Zuerker wrote: > Serge, > > Did you want to add this to the standard configuration? > > Regards > Heiko > > Quoting Serge Leschinsky<sma...@us...>: > >> Update of /cvsroot/devil-linux/build/scripts >> In directory vz-cvs-3.sog:/tmp/cvs-serv32338/scripts >> >> Added Files: >> microcode >> Log Message: >> >> - added CPU microcode update >> >> >> --- NEW FILE: microcode --- >> #!/bin/bash >> # $Source: /cvsroot/devil-linux/build/scripts/microcode,v $ >> # $Revision: 1.1 $ >> # $Date: 2012/04/23 05:45:45 $ >> # http://www.devil-linux.org >> >> # you need the next line, otherwise script won't be executed !!! >> # DL-build-system v3 >> >> # get the directoryname of the script >> MYDIR=${0%/*} >> >> # source functions and config >> source $MYDIR/settings >> >> case $1 in >> build ) >> gcc -Wall -o intel-microcode2ucode intel-microcode2ucode.c || exit 1 >> mkdir firmware&& pushd firmware> /dev/null || exit 1 >> for i in $SRCDIR/microcode/*; do >> tar vfxj $i || exit 1 >> done >> ../intel-microcode2ucode microcode.dat || exit 1 >> popd> /dev/null >> ;; >> >> install ) >> rm -rf $TMPDIR || exit 1 >> >> mkdir -p $TMPDIR/lib/firmware/{amd-ucode,intel-ucode}&& chmod 755 >> $TMPDIR/lib/firmware/*-ucode || exit 1 >> cp -a firmware/amd-ucode*/microcode_amd.bin >> $TMPDIR/lib/firmware/amd-ucode/ || exit 1 >> cp -a firmware/amd-ucode*/microcode_amd_fam15h.bin >> $TMPDIR/lib/firmware/amd-ucode/ || exit 1 >> cp -a firmware/intel-ucode/* $TMPDIR/lib/firmware/intel-ucode/ || exit 1 >> mkdir -p $TMPDIR/lib/udev/rules.d&& cp microcode.rules >> $TMPDIR/lib/udev/rules.d/89-microcode.rules || exit 1 >> copy_files $TMPDIR/lib $CDDIR/ || exit 1 >> >> rm -rf $TMPDIR || exit 1 >> ;; >> >> * ) >> echo "ERROR ($0)" >> echo "please add parameter so I know what to do" >> exit 1 >> ;; >> esac >> >> >> ------------------------------------------------------------------------------ >> For Developers, A Lot Can Happen In A Second. >> Boundary is the first to Know...and Tell You. >> Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! >> http://p.sf.net/sfu/Boundary-d2dvs2 >> _______________________________________________ >> Devil-linux-commit mailing list >> Dev...@li... >> https://lists.sourceforge.net/lists/listinfo/devil-linux-commit > |