Where does FreeLoader gets it's modules list?

All development related issues welcome

Moderator: Moderator Team

Post Reply
paul
Posts: 48
Joined: Tue Jul 10, 2007 5:58 am

Where does FreeLoader gets it's modules list?

Post by paul »

I have built a bootcd with:
#add_subdirectory(usbohci)
in drivers/usb/CMakeLists.txt file.

It build fined, but when I try to run it:
(../../boot/freeldr/freeldr/windows/winldr.c:328) err: Can't load boot driver 'system32\drivers\usbohci.sys'!

It will also stop because it cannot initialize boot drivers:
Entered debugger on first-chance exception (Exception Code: 0xc0000005) (Page F)
Memory at 0x001012AC could not be read: Page not present.
kdb:> bt
Eip:
<NTOSKRNL.EXE:175271 (:0 (memcpy))>
Frames:
<NTOSKRNL.EXE:1075c8 (include/crt/mingw32/intrin_x86.h:75 (ObpCaptureObjectName>
<NTOSKRNL.EXE:1078ee (ntoskrnl/ob/oblife.c:548 (ObpCaptureObjectCreateInformati>
<NTOSKRNL.EXE:104295 (ntoskrnl/ob/obhandle.c:2458 (ObOpenObjectByName))>
<NTOSKRNL.EXE:2ef97 (ntoskrnl/config/ntapi.c:145 (NtOpenKey))>
<NTOSKRNL.EXE:13fcb5 (ntoskrnl/include/internal/arch/../i386/ke.h:687 (KiSystem>
<NTOSKRNL.EXE:3c7f (:0 (KiSystemService))>
<NTOSKRNL.EXE:19d0 (:0 (ZwOpenKey))>
<NTOSKRNL.EXE:6ab42 (ntoskrnl/io/iomgr/driver.c:1047 (IopInitializeBootDrivers)>
<NTOSKRNL.EXE:77626 (ntoskrnl/io/iomgr/iomgr.c:535 (IoInitSystem))>
<NTOSKRNL.EXE:3e1c4 (ntoskrnl/ex/init.c:1798 (Phase1InitializationDiscard))>
<NTOSKRNL.EXE:3e8ab (ntoskrnl/ex/init.c:2009 (Phase1Initialization))>
<NTOSKRNL.EXE:1251ce (ntoskrnl/ps/thread.c:156 (PspSystemThreadStartup))>
<NTOSKRNL.EXE:13ce79 (ntoskrnl/ke/i386/thrdini.c:78 (KiThreadStartup))>
<NTOSKRNL.EXE:12519b (ntoskrnl/ps/state.c:565 (NtQueueApcThread))>
<ffffffff>
<NTOSKRNL.EXE:13c2db (ntoskrnl/ke/i386/kiinit.c:679 (KiSystemStartupBootStack))>
<0000000e>
Couldn't access memory at 0x00097610!
kdb:>

I thought that it was maybe the ninja system, so I did ninja clean, before redoing ninja bootcd, but that did not change anything.
Where else do I need to remove the driver for it not to be includer in FreeLoader?

paul
Posts: 48
Joined: Tue Jul 10, 2007 5:58 am

Re: Where does FreeLoader gets it's modules list?

Post by paul »

ah! Maybe that: http://svn.reactos.org/svn/reactos/trun ... iew=markup
Googling about it returned among others: http://gosh.msfn.org/txtsetup.htm

It works... more or less... commenting out with a semicolon at the begining...
Now stage 1 is fine... but it ask for the driver again when booting stage 2 :evil:

I guess that is the installer run in 1st stage that choose the drivers to be installed.
Is it usetup?
Will look much later... going to take a break.

hto
Developer
Posts: 2193
Joined: Sun Oct 01, 2006 3:43 pm

Post by hto »

[…] it ask for the driver again when booting stage 2
Maybe that: http://svn.reactos.org/svn/reactos/trun ... iew=markup

paul
Posts: 48
Joined: Tue Jul 10, 2007 5:58 am

Re: Where does FreeLoader gets it's modules list?

Post by paul »

Thanks, but at first glance this is not it.
I means I commented out usb stuff in reactos/media/inf/CMakeLists.txt and after that
"ninja all" said nothing to do.
Then bootcd with "ninja bootcd" did the same as before.

edit1:I think this is linked to http://svn.reactos.org/svn/reactos/trun ... iew=markup
Edit 2: no, I think this affects only stage 1
Edit 3: I suspect that is is linked to: http://svn.reactos.org/svn/reactos/trun ... iew=markup
Like in:
"1536 ; OHCI controller driver
1537 HKLM,"SYSTEM\CurrentControlSet\Services\usbohci","ErrorControl",0x00010001,0x00000001
1538 HKLM,"SYSTEM\CurrentControlSet\Services\usbohci","Group",0x00000000,"Boot Bus Extender"
1539 HKLM,"SYSTEM\CurrentControlSet\Services\usbohci","ImagePath",0x00020000,"system32\drivers\usbohci.sys"
1540 HKLM,"SYSTEM\CurrentControlSet\Services\usbohci","Start",0x00010001,0x00000000
1541 HKLM,"SYSTEM\CurrentControlSet\Services\usbohci","Type",0x00010001,0x00000001"

But it seems also mention at beginning as an essential service:
12 ; Critical Device Database
...
29 HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\PCI#CC_0C0310","Service",0x00000000,"usbohci"
30 HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\PCI#CC_0C0310","ClassGUID",0x00000000,"{36FC9E60-C465-11CF-8056-444553540000}"

Edit 4: Well, almost there. Indeed commenting out those lines, the system does not complain anymore and almost start.
But it shows a box: "Install SysSetupInfDevices failed! Rebooting now!"
Edit 5: Guess I need to uncomment usb stuff in reactos/media/inf/CMakeLists.txt

Edit 6: the message about usbohci not there is back, but this time when booting fully installed ReactOS.

Post Reply

Who is online

Users browsing this forum: Yandex [Bot] and 1 guest