Jump to content











Photo
- - - - -

USB3 in LiveXP


  • Please log in to reply
12 replies to this topic

#1 BobxT

BobxT

    Member

  • Members
  • 82 posts
  •  
    Australia

Posted 17 January 2011 - 07:47 PM

I have added two USB 3.0 drivers to my LiveXP WinBuilder 080.

However, LiveXP does not recognise any USB drive connected to the USB3 ports until I use the HWPnP menu "#2. Install all Hardware (Force PnP)".

Once I do the Hardware detect, any USB 3 device works perfectly. My USB 3.0 card(s) are in three separate computers and do not support booting from USB of course.

I presume that if these drivers could be included in the "TXTSETUP.SIF" file, then the detection of the USB 3.0 card I am using should be automatic and found during the boot stage.

This USB3_0.script does not add the necessary entries into the TXTSETUP.SIF.

[Main]

Title=driver: Renasas Electronics USB 3.0 Device Driver

Type=script

Selected=True

Level=5

Author=WinBuilder Version 080

Credits=PEBuilder plugin USB3_0.inf

Version=1

NoWarning=False

Download_Level=0

Description=Renasas Electronics USB 3.0 Device Driver set



[Process]

Run,%ScriptFile%,SourceDisksFiles

Run,%ScriptFile%,SetValue



[SourceDisksFiles]

Echo,"Copying files.."

FileCopy,"%ScriptDir%\nusb3xhc.inf","%target_win%\inf"

FileCopy,"%ScriptDir%\nusb3hub.inf","%target_win%\inf"

FileCopy,"%ScriptDir%\NUSB3XHC.SYS","%target_sys%\drivers"

FileCopy,"%ScriptDir%\NUSB3HUB.SYS","%target_sys%\drivers"



[SetValue]

IniWrite,txtsetup.sif,"SourceDisksFiles","nusb3xhc.sys","1#$c#$c#$c#$c#$c#$c4_#$c4#$c1#$c#$c#$c1#$c4"

IniWrite,txtsetup.sif,"BusExtenders.Load","nusb3xhc","nusb3xhc.sys"

IniWrite,txtsetup.sif,"HardwareIdsDatabase","PCI\VEN_1033&DEV_0194"," #$qnusb3xhc#$q"

IniWrite,txtsetup.sif,"SourceDisksFiles","nusb3hub.sys","1#$c#$c#$c#$c#$c#$c4_#$c4#$c1#$c#$c#$c1#$c4"

IniWrite,txtsetup.sif,"BusExtenders.Load","nusb3hub"," #$qnusb3hub.sys#$q"

IniWrite,txtsetup.sif,"HardwareIdsDatabase","NUSB3\ROOT_HUB30"," #$qnusb3hub#$q"

IniWrite,txtsetup.sif,"HardwareIdsDatabase","NUSB3\CLASS_09"," #$qnusb3hub#$q"




What am I doing wrong..?

Regards,
BobxT

#2 wimb

wimb

    Platinum Member

  • Developer
  • 2554 posts
  • Interests:Boot and Install from USB
  •  
    Netherlands

Posted 17 January 2011 - 08:23 PM

In portable Windows 7 PE I observed that Install of USB 3.0 is a two-step process.
So you might try to install the device twice to get it working instantly.

#3 BobxT

BobxT

    Member

  • Members
  • 82 posts
  •  
    Australia

Posted 17 January 2011 - 10:09 PM

In portable Windows 7 PE I observed that Install of USB 3.0 is a two-step process.
So you might try to install the device twice to get it working instantly.


How do I go about doing that, can you point me to a tutorial on that subject..?

But what about the "TXTSETUP.SIF" file..? Shouldn't it be populated with entries concerning the USB 3.0 drivers, because the script fails to do this..?

ie:-
NUSB3XHC.SYS
NUSB3HUB.SYS

The above are not added to the "TXTSETUP.SIF" file.

Regards,
BobxT

#4 cdob

cdob

    Gold Member

  • Expert
  • 1438 posts

Posted 17 January 2011 - 10:15 PM

@BobxT

Do you use a USB 3.0 device at USB 3.0 controller?
Reneseas driver set USB 2.0 Hub HardwareIds too.
Contrary NUSB3\CLASS_09&SUBCLASS_00&PROT_?? should be inluded by NUSB3\CLASS_09 already.

IniWrite,txtsetup.sif,"BusExtenders.Load","nusb3xhc","nusb3xhc.sys"
IniWrite,txtsetup.sif,"BusExtenders.Load","nusb3hub"," #$qnusb3hub.sys#$q"

Include unreadable parts to nusb3xhc.sys too.

Try old NEC drivers too.
A old example http://www.911cd.net...ndpost&p=161433
Works at boot, no HWPNP required. PNP won't work anyway, no *.inf included.


In portable Windows 7 PE I observed that Install of USB 3.0 is a two-step process.

Did you used dism to include USB 3.0 drivers?

#5 BobxT

BobxT

    Member

  • Members
  • 82 posts
  •  
    Australia

Posted 18 January 2011 - 02:08 AM

@BobxT

Do you use a USB 3.0 device at USB 3.0 controller?

I have a USB 3.0 PCI-e card and I have a USB 3.0 External hard drive.
The USB 3.0 controller card is not bootable as it is not recognised by the computer bios.

Reneseas driver set USB 2.0 Hub HardwareIds too.

Are you saying that the RENESAS -USB3 controls the HardwareIDs for USB 2.0 as WELL as USB 3.0..?

Contrary NUSB3\CLASS_09&SUBCLASS_00&PROT_?? should be inluded by NUSB3\CLASS_09 already.

I don't understand what you are trying to say. Please elaborate.

Include unreadable parts to nusb3xhc.sys too.

What does this mean..?

Try old NEC drivers too.
A old example http://www.911cd.net...ndpost&p=161433
Works at boot, no HWPNP required. PNP won't work anyway, no *.inf included.

I have been to that web page before.
That information is what I based my USB 3.0 script on and while it works with my addon cards I have to use HWPnP to detect and use the USB 3.0 connected drives. It does NOT work at boot on MY SYSTEM.

It DOES work AFTER Booting on MY SYSTEM AFTER running HWPnP.

Did you used dism to include USB 3.0 drivers?


No, since I don't know what dism is, I did not use it. :-)

Regards,
BobxT

#6 wimb

wimb

    Platinum Member

  • Developer
  • 2554 posts
  • Interests:Boot and Install from USB
  •  
    Netherlands

Posted 18 January 2011 - 10:22 AM

Did you used dism to include USB 3.0 drivers?

dism was not used to include the USB 3.0 drivers.

First booting with 7 PE from USB 2.0 HDD on NEW machine which has drive where Windows 7 is installed and has USB3.0 port,
then I used Install Drivers from Win7 Host DriverStore (icon on desktop in 7 PE made with Make_PE3).

I observed that most in 7 PE missing drivers (Video + Ethernet + WLAN) were installed by pecmd.exe, but 1 was still missing
The missing driver hwid is NUSB\ROOT_HUB30
At the same time I saw that the 7PE DriverStore contained already the nusb3xhc.inf_x86_... folder from the Win7 Host
The nusb3hub.inf_x86_.... folder of the host was not yet present in the 7 PE DriverStore

Then I used in 7 PE again icon for Install Drivers from Win7 DS
and then the nusb3hub.inf_x86_... folder appeared in 7 PE DriverStore and USB 3.0 was installed OK

So it is a two step proces:
1. install nusb3xhc.inf - USB 3.0 host controller
2. install nusb3hub.inf - USB 3.0 hub driver

The USB 3.0 drivers are from Renesas

:)

part of AutoIt3 script pecmd_DriverStore.au3 in folder PE3_mod\PE3_add\x86\Windows\System32

$dpath = _FileFind('\Windows\System32\DriverStore\FileRepository')

If Not @error Then

 MsgBox(48, "Install Drivers from Host using pecmd.exe ", "Install Drivers from Host using pecmd.exe and " & @CRLF & @CRLF & $dpath, 3)

 ShellExecuteWait(@WindowsDir & "\System32\pecmd.exe", "DEVI " & $dpath & "\*.inf", "", "open", @SW_HIDE)

 MsgBox(64, "Install Drivers from Host using pecmd.exe ", "Install Drivers from Host has Finished ", 3)

Else

......

EndIf


#7 cdob

cdob

    Gold Member

  • Expert
  • 1438 posts

Posted 18 January 2011 - 05:50 PM

HardwareIDs for USB 2.0 as WELL as USB 3.0..?

I don't understand what you are trying to say. Please elaborate.

Read the nusb3hub.inf file
NUSB3\ROOT_HUB30.DeviceDesc = "Renesas Electronics USB 3.0 Root Hub"

 NUSB3\CLASS_09.DeviceDesc   = "Renesas Electronics USB Hub"

 NUSB3\CLASS_09&SUBCLASS_00&PROT_01.DeviceDesc   = "Renesas Electronics USB 2.0 Hub"

 NUSB3\CLASS_09&SUBCLASS_00&PROT_02.DeviceDesc   = "Renesas Electronics USB 2.0 MTT Hub"

 NUSB3\CLASS_09&SUBCLASS_00&PROT_03.DeviceDesc   = "Renesas Electronics USB 3.0 Hub"

 NUSB3HUB.SvcDesc            = "Renesas Electronics USB 3.0 Hub Driver"

What does this mean..?


Suggestion
IniWrite,txtsetup.sif,"BusExtenders.Load","nusb3xhc"," #$qnusb3xhc.sys#$q"

IniWrite,txtsetup.sif,"BusExtenders.Load","nusb3hub"," #$qnusb3hub.sys#$q"
However, as far as I remember quotes interesting. Story has quite a history.
Unfortunately LiveXP developers can't help currently.

Does txtsetup.sif contain all USB3.0 settings?


That information is what I based my USB 3.0 script on and while it works with my

A reference would be friendly.


dism was not used to include the USB 3.0 drivers.

Use dism.
And in case another user use BIOS boot support, add USB 3.0 boot friendly settings.

http://reboot.pro/10...post__p__115443

#8 BobxT

BobxT

    Member

  • Members
  • 82 posts
  •  
    Australia

Posted 18 January 2011 - 07:35 PM

Suggestion

IniWrite,txtsetup.sif,"BusExtenders.Load","nusb3xhc"," #$qnusb3xhc.sys#$q"

IniWrite,txtsetup.sif,"BusExtenders.Load","nusb3hub"," #$qnusb3hub.sys#$q"
However, as far as I remember quotes interesting. Story has quite a history.
Unfortunately LiveXP developers can't help currently.

Does txtsetup.sif contain all USB3.0 settings?


No, despite the IniWrite lines, the "TXTSETUP.SIF" file remains empty of any USB 3.0 related entries.

BobxT

#9 dera

dera

    Gold Member

  • .script developer
  • 1335 posts
  •  
    Hungary

Posted 18 January 2011 - 07:51 PM

No, despite the IniWrite lines, the "TXTSETUP.SIF" file remains empty of any USB 3.0 related entries.

BobxT

so i do not know so much about USB 3.0,
but focusing on the scritpt lines only:
maybe should define the path to txtsetup.sif
e.g.
IniWrite,"%target_win%\txtsetup.sif",etc.

#10 BobxT

BobxT

    Member

  • Members
  • 82 posts
  •  
    Australia

Posted 18 January 2011 - 08:47 PM

so i do not know so much about USB 3.0,
but focusing on the script lines only:
maybe should define the path to txtsetup.sif
e.g.
IniWrite,"%target_win%\txtsetup.sif",etc.


Thanks you..!
I have done that and now the IniWrite lines do successfully write to the txtsetup.sif file.

Now for more testing, looking good, so far..!

TA,
Regards,
BobxT

#11 wimb

wimb

    Platinum Member

  • Developer
  • 2554 posts
  • Interests:Boot and Install from USB
  •  
    Netherlands

Posted 19 January 2011 - 07:28 AM

Use dism.
And in case another user use BIOS boot support, add USB 3.0 boot friendly settings.

http://reboot.pro/10...post__p__115443

Yes, it works.

Dism was used to Add to 7 PE the NUSB3 folder with two driver folders of Renesas.
In fact the NUSB3 driver folder is only 250 kB so that it can be added easily to Make_PE3\PE3_mod\WIN7_drivers\x86

Next version of Make_PE3 will have built-in support for USB 3.0

Thanks cdob

:whistling:


#12 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 19 January 2011 - 08:13 PM

BobxT it looks like you did confuse something.
There is the USB-Controller and there is the USB-Drive. Getting one to work, has no direct effect on the working of the other.

The way USB Support works in PE1 is like this.
In txsetup.sif the entries are made, responsible to load the drivers for the controller.
Since you've said the controller is working, your settings are ok.

The "autodetect" of the USB-Drives in PE1 is actually a cheat. There is not autodetect like in a real XP.
What we did was, prepopulate the USB-Devices Database in the registry with USB-Devices. So when one plugs in a USB-Device for the first time, to PE1 it actually looks like a known device is reconnected.

If you want your USB-Drive to work right away, you'll need to add it to the USB-Devices-Database in the registry at build time.

For a more explicit pointers, look at the USB-Support.script.


:dubbio:

#13 BobxT

BobxT

    Member

  • Members
  • 82 posts
  •  
    Australia

Posted 21 January 2011 - 05:52 AM

Hi All,

Following an offline email conversation with Lancelot, I have tested a script that can be downloaded from here:-
http://www.mediafire...6slafb81dwia9dp

Put it into \Drivers\4 Storage

Plus:
In addition, you have to enable "Removable Devices Combo" script due to the fact that "Removable Devices Combo" script, even when you select nothing, provides base layer for usb devices :whistling:.

Also, add HWPnP to the build, but do not set to execute at startup :dubbio: (this is "Galapo's LiveXP" default setting of HWPnP in LiveXP.)


I can confirm that this script does work completely with my 2TB USB 3.0 hard drive and USB 3.0 PCI-e card (actually a Asus "u3s6" card).

The script supplied by Lancelot is derived from work done by Dera and particularly by Cdob. Lancelot said to pass on his thanks to both Cdob and Dera.

I would also pass on a special thanks to Lancelot for this script.

BobxT.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users