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 PT715-51 (Triton 700) ins...
Last Post: count1100
Today 08:45 AM
» Replies: 27
» Views: 15674
[Request] Support for Intel Xeon E3-1230...
Last Post: biospains
Today 04:40 AM
» Replies: 36
» Views: 15434
Acer Aspire 5738 Restore full ram speed
Last Post: IrRaziel
Yesterday 04:50 PM
» Replies: 10
» Views: 390
[REQUEST] Acer Aspire E1-510 BIOS Unlock
Last Post: banusri123
Yesterday 03:31 PM
» Replies: 41
» Views: 37904
[REQUEST] Machenike F117-FPE BIOS Unlock
Last Post: mortalrun
Yesterday 11:23 AM
» Replies: 0
» Views: 129
[REQUEST] Axioo Hype 5 AMD X3 Bios Unloc...
Last Post: Aseptartar
Yesterday 12:39 AM
» Replies: 0
» Views: 156
BIOS Hex Offset
Last Post: Pacho
06-19-2025 03:33 PM
» Replies: 0
» Views: 149
[REQUEST] hp 14-cm0xxx bios unlock(ami f...
Last Post: Anneaham
06-18-2025 11:34 PM
» Replies: 1
» Views: 482
[Request] Lenovo v520s sff unit bios sup...
Last Post: DeathBringer
06-18-2025 01:41 PM
» Replies: 7
» Views: 784
[REQUEST] BIOS Unlock for Gigabyte G5-KD...
Last Post: Dudu2002
06-18-2025 06:52 AM
» Replies: 10
» Views: 3551
[REQUEST] HP 15-ac109nx – Insyde BIOS F....
Last Post: Naifaey13
06-18-2025 06:08 AM
» Replies: 0
» Views: 191
[REQUEST] Acer Predator Helios 300 PH315...
Last Post: Dudu2002
06-18-2025 02:45 AM
» Replies: 44
» Views: 12972
HP probook4436s(e2-3000m)can update to a...
Last Post: hurricaning
06-17-2025 09:21 AM
» Replies: 2
» Views: 369
[REQUEST] Acer Nitro 5 AN515-58 BIOS Unl...
Last Post: Neonka
06-17-2025 05:05 AM
» Replies: 36
» Views: 14043
[REQUEST] Asus ROG Strix GL702ZC BIOS Un...
Last Post: bip_bop
06-17-2025 02:16 AM
» Replies: 171
» Views: 99076
[SOLVED] Lenovo E545 (HRETxxWW) WiFi + B...
Last Post: Vigor89
06-16-2025 04:51 PM
» Replies: 268
» Views: 117832
[Test, sp54926] HP Pavilion dm1-4000sd
Last Post: symbios24
06-16-2025 08:14 AM
» Replies: 36
» Views: 28815
[REQUEST] Lenovo G400S (7BCNxxWW) Whitel...
Last Post: flastac
06-14-2025 09:45 AM
» Replies: 212
» Views: 106629
[Request] Bios is locked need to unlock ...
Last Post: Xperjo
06-14-2025 12:59 AM
» Replies: 0
» Views: 531
Ailenware M15 R2
Last Post: axdy
06-13-2025 05:17 PM
» Replies: 0
» Views: 351

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)