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 Aspire V3-772G BIOS Unloc...
Last Post: Dudu2002
Today 05:33 PM
» Replies: 460
» Views: 273882
[REQUEST] Sony Vaio VPCEH & VPCEJ series...
Last Post: Half-Life
Today 03:24 PM
» Replies: 244
» Views: 182716
[Request] Acer Aspire V3-771(G) BIOS unl...
Last Post: vincetek
Today 09:44 AM
» Replies: 262
» Views: 173316
Lenovo Miix 510-12IKB
Last Post: plusiaedge
Yesterday 09:55 PM
» Replies: 5
» Views: 3741
Help to interchange diferent uefi bios o...
Last Post: plusiaedge
Yesterday 09:53 PM
» Replies: 2
» Views: 1117
MS-7525 QUAD CORE Q8400 UPDATE
Last Post: Nonameman
Yesterday 02:12 PM
» Replies: 0
» Views: 89
[REQUEST] Lenovo Z50-70 & Z40-70 (9BCNxx...
Last Post: Dudu2002
Yesterday 03:08 AM
» Replies: 760
» Views: 393012
GA-Z68M-D2H NVMe
Last Post: spssw
12-16-2025 09:30 PM
» Replies: 2
» Views: 3895
[REQUEST] HP Pavilion dm4-1000 series (I...
Last Post: pf007
12-16-2025 12:45 PM
» Replies: 42
» Views: 10395
[REQUEST] Lenovo IdeaPad P400, P500, Z40...
Last Post: Generaltr
12-16-2025 12:23 PM
» Replies: 79
» Views: 62273
Unlocking the E11IS2 BIOS
Last Post: Akira340
12-16-2025 10:49 AM
» Replies: 39
» Views: 48760
[REQUEST] Unlock bios Machenike S15
Last Post: Dudu2002
12-16-2025 01:29 AM
» Replies: 2
» Views: 2674
[REQUEST] Gigabyte MZ32-AR0 unlock and p...
Last Post: quarkpower
12-15-2025 02:43 PM
» Replies: 0
» Views: 155
HP Pro 3300 & 3400 (H61): Upgrade to Ivy...
Last Post: miant
12-15-2025 11:54 AM
» Replies: 132
» Views: 135322
[REQUEST] Acer Predator PHN16-72 BIOS Un...
Last Post: Trixvr
12-14-2025 01:31 PM
» Replies: 6
» Views: 3196
[REQUEST] Acer Nitro 5 AN515-58 BIOS Unl...
Last Post: nork
12-14-2025 12:35 PM
» Replies: 48
» Views: 63443
[REQUEST] ASUS Zen AiO Z240IE CoffeeLake...
Last Post: MetalNight
12-14-2025 06:37 AM
» Replies: 0
» Views: 247
[REQUEST] Gigabyte G5 KC Unlock BIOS
Last Post: Dudu2002
12-13-2025 04:25 PM
» Replies: 7
» Views: 5688
Panasonic CF-D1 MK3 Advanced settings un...
Last Post: Bozzeh
12-13-2025 02:39 PM
» Replies: 15
» Views: 6212
[REQUEST] Lenovo ThinkCentre M93p Tiny (...
Last Post: mfrabbibd
12-12-2025 08:24 PM
» Replies: 61
» Views: 60633

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)