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
asus rog g513qr bios
Last Post: cic
Today 05:15 AM
» Replies: 0
» Views: 19
Asus PIKE II 3008-8i bios
Last Post: zaku
Today 03:09 AM
» Replies: 0
» Views: 42
[REQUEST] Acer Aspire 4349, 5349 & 5749(...
Last Post: Computer Service
Yesterday 08:16 PM
» Replies: 251
» Views: 131112
HP Pavilion 17-f150nr (no wifi after bio...
Last Post: SSB_017
Yesterday 10:51 AM
» Replies: 0
» Views: 143
Samsung Chronos NP770 NP870 disable disc...
Last Post: faeterov
Yesterday 09:50 AM
» Replies: 1
» Views: 167
A Suggestion
Last Post: marco_otg
04-05-2025 06:40 PM
» Replies: 0
» Views: 111
Bios MOD Lenovo L390/ Wifi support MacOS
Last Post: DennisWeaver
04-03-2025 10:50 PM
» Replies: 1
» Views: 914
[REQUEST] Acer Nitro 5 AN515-54 BIOS Unl...
Last Post: help_seeker
04-03-2025 01:23 PM
» Replies: 129
» Views: 54228
[REQUEST] Lenovo ThinkCentre M93p Tiny (...
Last Post: sairos
04-03-2025 10:23 AM
» Replies: 60
» Views: 47214
[REQUEST] Lenovo Thinkpad T440p (GLETxxW...
Last Post: uncle_Fedya
04-02-2025 03:54 PM
» Replies: 524
» Views: 222758
[REQUEST] Lenovo T440(S) (GJETxxWW) Whit...
Last Post: Dudu2002
04-02-2025 01:56 PM
» Replies: 497
» Views: 208477
[REQUEST] Gigabyte G5 KF BIOS unlock
Last Post: Dudu2002
04-02-2025 01:55 PM
» Replies: 3
» Views: 540
[REQUEST] Lenovo Legion 5 (EFCNxxWW) BIO...
Last Post: Dudu2002
04-02-2025 03:32 AM
» Replies: 44
» Views: 21325
Gigabyte b650e aorus master F33b
Last Post: Anem
04-01-2025 11:59 PM
» Replies: 0
» Views: 350
Xeon E5 2699 V3 (turbo Unlock) for Bios-...
Last Post: xlr8r
04-01-2025 11:42 AM
» Replies: 0
» Views: 461
[REQUEST] Lenovo Thinkpad X1 Carbon Gen3...
Last Post: Dudu2002
04-01-2025 08:50 AM
» Replies: 38
» Views: 18140
HP Probook 640 G2 bricked BIOS
Last Post: Milovanovic1992
04-01-2025 08:13 AM
» Replies: 0
» Views: 400
Dell Optiplex 3060 add 9th Gen CPU suppo...
Last Post: nickedasy
04-01-2025 03:31 AM
» Replies: 18
» Views: 1598
AM3 support for a Compaq
Last Post: DeathBringer
04-01-2025 01:01 AM
» Replies: 1
» Views: 464
Bios modding to support more RAM (Pegatr...
Last Post: DeathBringer
03-31-2025 01:33 PM
» Replies: 1
» Views: 625

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)