Forum RSS Feed Follow @ Twitter Follow On Facebook

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[-]
Welcome
You have to register before you can post on our site.

Username:


Password:





[-]
Latest Threads
[REQUEST] Acer Nitro 5 AN515-54 BIOS Unl...
Last Post: Dudu2002
Yesterday 02:57 PM
» Replies: 133
» Views: 68753
[REQUEST] HP Stream 13 (13-c100nm) White...
Last Post: krusic22
07-29-2025 06:42 PM
» Replies: 0
» Views: 391
Acer Aspire 7741G BIOS
Last Post: lucky42
07-28-2025 08:53 AM
» Replies: 1
» Views: 1119
[REQUEST] [AMIBIOS8] MSI MS-1731 unlock
Last Post: wololo
07-27-2025 02:07 PM
» Replies: 0
» Views: 674
REQUEST - Unlock bios for Toshiba Satell...
Last Post: SaadC50
07-27-2025 10:14 AM
» Replies: 0
» Views: 587
[REQUEST] Lenovo G500(S) (7BCNxxWW) Whit...
Last Post: Tchistiakov
07-27-2025 08:52 AM
» Replies: 566
» Views: 305898
[REQUEST] HP Envy 15-k203nl bios mod
Last Post: Maxinator500
07-26-2025 12:44 PM
» Replies: 1
» Views: 730
[REQUEST] HP Pavilion dv7-6153er - F.1B ...
Last Post: swmint
07-26-2025 08:31 AM
» Replies: 2
» Views: 5620
[REQUEST] Lenovo G580 (62CNxxWW) Whiteli...
Last Post: Rt1213
07-26-2025 06:03 AM
» Replies: 817
» Views: 398323
Soltek SL-65KIV2
Last Post: DeathBringer
07-26-2025 05:44 AM
» Replies: 20
» Views: 1760
[REQUEST] Lenovo IdeaPad 3 15ALC6 (GLCNx...
Last Post: KADCORP
07-26-2025 12:30 AM
» Replies: 11
» Views: 7099
[REQUEST] GIGABYTE G6 MF (2024) Bios Unl...
Last Post: cwaras
07-25-2025 06:14 PM
» Replies: 2
» Views: 1335
[REQUEST] Lenovo Thinkpad E130 (H4ETxxWW...
Last Post: Dudu2002
07-25-2025 01:55 PM
» Replies: 495
» Views: 191612
[REQUEST] Acer Aspire VN7-791(G) BIOS Un...
Last Post: Dudu2002
07-25-2025 01:48 PM
» Replies: 93
» Views: 92858
[REQUEST] Lenovo Z410 & Z510 (8DCNxxWW) ...
Last Post: oleg-kv
07-25-2025 01:43 PM
» Replies: 501
» Views: 217941
BA92-10824B P04RAC phoenix bios rom requ...
Last Post: thi
07-25-2025 04:11 AM
» Replies: 0
» Views: 1157
[REQUEST] Acer Aspire 5742(G,Z) BIOS Unl...
Last Post: men92
07-24-2025 08:38 AM
» Replies: 166
» Views: 58511
[REQUEST] Lenovo Legion T5 (O54KT1DA) BI...
Last Post: kutoramo
07-24-2025 07:34 AM
» Replies: 1
» Views: 1993
[REQUEST] Unlocking / Enabling WoL for A...
Last Post: StarFluxGames
07-23-2025 06:23 AM
» Replies: 0
» Views: 1169
[REQUEST] Lenovo G510 (79CNxxWW) BIOS Un...
Last Post: Dudu2002
07-23-2025 02:47 AM
» Replies: 80
» Views: 60522

Asus N73 - no boot from internal card-reader (bios/hw mod required?)
#11
wish i could call smth for basic debug (to know if function called or not), like SpeakerBeep for ex., but N73 lacks onboard beeper
+ later: acually, there's FixedDelay (requires only imm32 put into ecxbefore call) - quite usable with noticable delays (5s+)

looks like we need to get to CreateBbsEntry:

Code:
USBAPI_Start - invoked via software SMI (system management interrupt), USBRT
    USB_StartHostControllers                        // for(bDriverIndex=0; bDriverIndex<gUsbData->max_hc
        USB_EnumerateRootHubPorts                    // for(Index = 0; Index < gUsbData->bHCInitialized
            (func-ptr pfnHCDEnumeratePorts) EHCI_EnumeratePorts    // for(bPortNum=1; bPortNum<=fpHCStruc->bNumPorts
                USBCheckPortChange
                    USB_GetHubPortStatus
                    USB_ResetHubPort
                    USB_EnableHubPort
                    USB_DisconnectDevice
                    USB_DisableHubPort(fpHCStruc, hubAddr, portNum);
                    USB_DetectNewDevice
                        USB_MemAlloc
                        USB_MemFree
                        SpeakerBeep
                        USB_GetDescriptor
                        USB_InitDeviceDataDummy
                        USBIdentifyAndConfigureDevice
                            USBCheckNonCompliantDevice
                            OEMSkipList
                            USB_ConfigureDevice - sets func-ptr for configuring dev
                            (func-ptr) USBMassCheckForStorageDevice
                            CheckDeviceLimit
                            USB_SmiQueuePut
                        USBLogError
                        USB_DisableHubPort

AmiUsbDriverEntryPoint - UHCD module EP
    UsbMassInit
        UsbMassStart - called by handler set by InstallMultipleProtocolInterfaces in UsbMassInit
            InstallUSBMass
                UsbInstallLegacyDevice
                    UnlockShadow
                    CreateBbsEntry            // <- TARGET, ?not reached?
                    InsertBbsEntryAt
                    UsbUninstallLegacyDevice

UsbInt13EntryPoint - USBINT13 module EP
    UsbInstallLegacyDevice
        CreateBbsEntry            // <- TARGET, ?not reached?
find
quote
#12
found out, that some "debug port" is skipped during enumeration in EHCI_EnumeratePorts
patched EhciIsolateDebugPort to never mark any port as debug
still no boot from cardreader

+ so i looked through all 3 relevant modules: uhcd, usbrt and usbint13
didn't find any "excluding" or blacklisting code
looks like now i have no options, but try to jumpwire data+/data- from cardreader to any usb port, booting from which actually works (from usb flash for ex.)
my guess is that this particular cardreader can not be identified as mass storage device - if it will not show up after rewiring, this is the case
find
quote
#13
so, i did rewired cardreader to port#1 (one of the backside ports, that was broken anyway by trying too hard to plug usb cable upside-down)
now it boots from sdcard, bios recognizes card reader as "MultipleCard Reader 1.00"

that means, that:
- the device itself is ok (mass stoarge-compatible) and not blacklistend in bios as incompatible (there's an array of USB_BAD_DEVS specified)
- it was a software problem after all, it's a pity i was unable to find it

if anyone has any more ideas - please let me know (my hw mod is perfectly reversable)
surely i'd like to fix the problem inside bios
thx


Attached Files Thumbnail(s)
   
find
quote
#14
Sorry,earlier I was wrong,my memory tricks me.
I checked now and that skip list was inside UsbBus module.
But that is Insyde Bios and could be totally different implementation.
There was three occurence of similar code inside that module.

Code:
mov     [rsp+98h+var_58], 3 ; 3 5 6 usb ports used by webcam card reader and BT module
mov     [rsp+98h+var_57], 5
mov     [rsp+98h+var_56], 6
mov     [rsp+98h+var_55], sil
mov     [rsp+98h+var_53], sil
mov     [rsp+98h+var_54], r13b
mov     [rsp+98h+var_52], 7Fh
mov     [rsp+98h+var_51], 0FFh
mov     [rsp+98h+var_50], 4
mov     [rsp+98h+var_4F], sil
Replaced 5 with 2 which was unused port and after that card reader was enumerated as boot device.
find
quote


Forum Jump:


Users browsing this thread: 1 Guest(s)