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 TravelMate 5760(G,Z) BIOS...
Last Post: quibic
Today 01:03 AM
» Replies: 49
» Views: 26220
Asus P8Z77-M RT-d Unlock
Last Post: cbaldwin1
Yesterday 04:21 PM
» Replies: 0
» Views: 100
Yoga 530-14arr smt option
Last Post: Dudu2002
Yesterday 02:04 PM
» Replies: 1
» Views: 118
[REQUEST] Gigabyte GA-X99P-SLI BIOS with...
Last Post: DKisCRUSHIN
Yesterday 09:50 AM
» Replies: 0
» Views: 89
Acer Aspire 5920G - Requesting Modded BI...
Last Post: EbrahimSiami
07-10-2025 02:56 PM
» Replies: 1
» Views: 286
Acer A517-51G-58S5 - Complete BIOS image...
Last Post: Humboldt
07-10-2025 01:07 PM
» Replies: 2
» Views: 150
i7 2860QM how to raise power limit?
Last Post: DeathBringer
07-10-2025 07:03 AM
» Replies: 10
» Views: 482
Lenovo Yoga Pro 7 14ASP9 Bios Unlock
Last Post: Dudu2002
07-10-2025 03:02 AM
» Replies: 3
» Views: 259
[RESOLVED] Help! BIOS for Asus GL503VS R...
Last Post: AmosNZ
07-10-2025 12:09 AM
» Replies: 5
» Views: 2975
[REQUEST] Acer Predator Helios 500 PH517...
Last Post: TeckToe
07-09-2025 11:29 PM
» Replies: 4
» Views: 1480
Gigabyte G6X 9MG insydeH2O IOS Unlock
Last Post: Zzhheennyyaa
07-09-2025 04:37 PM
» Replies: 2
» Views: 623
[SOLVED] Lenovo IdeaPad 510-15ISK - BIOS...
Last Post: outsydeh2o
07-09-2025 09:39 AM
» Replies: 1
» Views: 296
(new to forums) searching for aid/direct...
Last Post: adorable_yangire
07-09-2025 12:11 AM
» Replies: 0
» Views: 232
[SOLVED] Change Serial Number, UUID, Mac...
Last Post: dsdn1
07-08-2025 07:55 PM
» Replies: 10
» Views: 16883
[REQUEST] Lenovo G50-45 BIOS Unlock
Last Post: szakiz
07-08-2025 05:36 PM
» Replies: 49
» Views: 53463
[REQUEST] Lenovo Yoga 7 Pro 82Y7 unlock
Last Post: Dudu2002
07-08-2025 07:13 AM
» Replies: 1
» Views: 268
[REQUEST] Lenovo G710 BIOS Whitelist Rem...
Last Post: Dudu2002
07-08-2025 07:12 AM
» Replies: 491
» Views: 217790
Lenovo Y550 BIOS Unlocking (Advanced Men...
Last Post: kentsergeo
07-08-2025 12:15 AM
» Replies: 5
» Views: 1158
[REQUEST] Acer Aspire 8930(G) BIOS Unloc...
Last Post: Ilias manolopoulos
07-07-2025 01:52 PM
» Replies: 58
» Views: 43703
ASUS M11AD > Haswell Refresh
Last Post: JCY1962
07-07-2025 12:40 PM
» Replies: 22
» Views: 7790

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: 2 Guest(s)