Re: Loading USB driver @ boot
- From: "Bruce Eitman [eMVP]" <bruce.eitman.nospam@xxxxxxxxxxxxxxxxxxx>
- Date: Mon, 19 May 2008 21:30:41 -0400
If I follow this correctly, changing the nk.bin isn't possible. So you
could use the HIVE registry, that I hope you have. change the name of the
new version of the driver and change it in the registry, now it should work
with your system path change pointing to your NOR flash.
--
Bruce Eitman (eMVP)
Senior Engineer
Bruce.Eitman AT EuroTech DOT com
My BLOG http://geekswithblogs.net/bruceeitman
EuroTech Inc.
www.EuroTech.com
"Michel Verhagen (eMVP)" <michel@xxxxxxxxxx> wrote in message
news:uNJighguIHA.6096@xxxxxxxxxxxxxxxxxxxxxxx
The right way to do this is to mount the USB drive as root so that any
file on the USB drive will override any file in ROM:
Inside NK.BIN: usbdriver.dll (version 1.0)
On USB drive : usbdriver.dll (version 2.0)
Now if you mount the USB drive as root usbdriver.dll version 2.0 will be
used.
Inside NK.BIN: usbdriver.dll (version 1.0)
On USB drive :
In this case the system will just use version 1.0.
Of course you have to put all necessary USB driver registry settings
between ; HIVE BOOT SECTION tags to load everything at first boot. Then
set "MountAsRoot" in the USB drive profile and voila!
Of course loading a USB drive will increase your boot time with quite a
bit (the system won't continue booting until the USB drive is completely
loaded and mounted).
It's probably faster to use a part of the internal NOR flash as a
partition with a filesystem that can be mounted as root. Then you can just
"upgrade" the driver by copying usbdriver.dll v2 to the internal NOR
partition and on next boot the system will use the new version instead of
the one in the NK.BIN.
Good luck,
Michel Verhagen, eMVP
Check out my blog: http://GuruCE.com/blog
GuruCE Ltd.
Microsoft Embedded Partner
http://GuruCE.com
Consultancy, training and development services.
Steve Hugg wrote:
We have a system with two partitions, the NK.bin and an internal
filesystem on the same NOR flash device. We have the need to load USB
drivers from the internal filesystem. The reason being, our NK.bin is
not upgradable but the filesystem is. So we have some ideas:
* We use the Loader/SystemPath registry variable to point to the
filesystem. This doesn't seem to work even though we put this entry in
the boot registry.
* We copy the USB driver files to the \WINDOWS directory after boot.
The problem here is that we have a race condition between the copy and
the USB driver loading.
* Let the USB driver fail loading the first time, then retry after we
boot up and copy driver files to \windows (is there a function to
reload a driver?)
Has anyone else had a similar problem? Thanks!
.
- Follow-Ups:
- Re: Loading USB driver @ boot
- From: Michel Verhagen (eMVP)
- Re: Loading USB driver @ boot
- References:
- Loading USB driver @ boot
- From: Steve Hugg
- Re: Loading USB driver @ boot
- From: Michel Verhagen (eMVP)
- Loading USB driver @ boot
- Prev by Date: repllog failing
- Next by Date: Re: Loading USB driver @ boot
- Previous by thread: Re: Loading USB driver @ boot
- Next by thread: Re: Loading USB driver @ boot
- Index(es):
Relevant Pages
|