Menu

#84 UTF16 INF drivers file

v1.0 (example)
closed
None
5
2014-07-15
2014-07-07
Anonymous
No

Hello,

We have UTF16-Little Endian Inf driver file for our PCs.
The grep provide by the busybox doesn't support this so the driver files are not copied to the driver directory on Windows.
We try to convert the INF to UTF8 but windows won't install theme because they are not sign.

I try this hack:
if file "${INF}" | grep "Little-endian UTF-16" ;then
iconv -f UTF-16LE -t UTF-8 "${INF}" | grep -i "VEN_${VENDORID}\&DEV_${DEVICEID}" >/dev/null 2>&1
if [[ $? -eq 0 ]]
then
log "Device id ${DEVICEID} from vendor id $VENDORID found in ${INF}."
dirname "${INF}">> /tmp/scandriver.dir.${VENDORID}-${DEVICEID}
fi
else
grep -i "VEN_${VENDORID}\&DEV_${DEVICEID}" "${INF}" >/dev/null 2>&1
if [[ $? -eq 0 ]]
then
log "Device id ${DEVICEID} from vendor id $VENDORID found in ${INF}."
dirname "${INF}">> /tmp/scandriver.dir.${VENDORID}-${DEVICEID}
fi
fi

but the iconv commande isn't in busybox...
Can you please help me ?

Thx in advance,

Discussion

  • Mario Gzuk

    Mario Gzuk - 2014-07-07

    Hi,
    can you send me an example of such an inf file? Or give me a download link? For the first I would suggest that you create some fake inf files inside the directories, which only contains the srings you need inside, e.g.:
    workaround.inf
    VEN_8086&DEV2394
    This is only a workaround, maybe you can give it a try. So you can also add a line to delete all workaround files from the disk at last:

    find /c/DRIVERDIR -type f -name workaround.inf -exec rm -f {} \;

    Cheers

     
  • Sylvain Fargeas

    Sylvain Fargeas - 2014-07-08

    Hello,
    I'll try your workaround and give you some news after.
    I attached the utf16 inf driver.
    Thx

     
  • Mario Gzuk

    Mario Gzuk - 2014-07-09

    Hi,
    I have added a new release for uranos-boot 3.15.4: https://sourceforge.net/projects/uranos/files/uranos-boot/3.15.4/ . This included the iconv program. I have testet the importend parts of your code and it works.
    Can you fully test it and give me a feedback? If all works as you want, I will add the needed code into the repository so that it will be available in the next update.

    Thx 2

     
  • Mario Gzuk

    Mario Gzuk - 2014-07-09
    • assigned_to: Mario Gzuk
     
  • Sylvain Fargeas

    Sylvain Fargeas - 2014-07-10

    Hello,
    It works with the new boot-cd and my hack.
    Thx you very much.

    The workaround works to but it's not user friendly ;)

     

    Last edit: Sylvain Fargeas 2014-07-10
  • Mario Gzuk

    Mario Gzuk - 2014-07-15
    • status: open --> closed-fixed
     
  • Mario Gzuk

    Mario Gzuk - 2014-07-15

    Fixed in REV. 2260 -> thank you for reporting!

     
  • Mario Gzuk

    Mario Gzuk - 2014-07-15
    • status: closed-fixed --> closed
     

Log in to post a comment.