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] AM3 support for ECS RS485M-M
Last Post: Vlad94
Today 05:18 PM
» Replies: 6
» Views: 915
Intel Xeon E3 1270 V5 for LGA 1151 (ASUS...
Last Post: DeathBringer
Today 03:26 PM
» Replies: 6
» Views: 524
ASUS M2N4-SLI new cpu
Last Post: Vlad94
Today 02:52 PM
» Replies: 9
» Views: 2154
UNLOCKED BIOS S3810 WITH LIMIT 8GB RAM
Last Post: DeathBringer
Today 11:55 AM
» Replies: 1
» Views: 206
Microcode Update for HP Compaq DC7900 (7...
Last Post: DeathBringer
Today 11:52 AM
» Replies: 19
» Views: 10975
[REQUEST] Lenovo Flex 2-14 (A0CNxxWW) Wh...
Last Post: Dudu2002
Today 11:51 AM
» Replies: 246
» Views: 118618
disabling amd prochot with moded bios.
Last Post: vorajeeah
Today 07:21 AM
» Replies: 0
» Views: 151
[REQUEST] Lenovo Thinkpad X240 (GIETxxWW...
Last Post: Dudu2002
Yesterday 11:34 PM
» Replies: 343
» Views: 199304
[REQUEST] Samsung RV520 BIOS Unlock
Last Post: ezikCel
Yesterday 07:45 PM
» Replies: 9
» Views: 13732
Winflash "flash bios is not an upgrade" ...
Last Post: lovie_loveth
Yesterday 06:47 PM
» Replies: 23
» Views: 11834
[REQUEST] Sony Vaio SVE141 & SVE151 seri...
Last Post: nitro88
Yesterday 02:13 AM
» Replies: 59
» Views: 37922
[REQUEST] Toshiba Satellite L750D & L755...
Last Post: thepwrtank18
10-16-2025 08:20 PM
» Replies: 14
» Views: 12978
Huananzhi x79-8d
Last Post: lomajpure
10-16-2025 01:13 PM
» Replies: 0
» Views: 301
Alienware M17x R3 Bios Unlock
Last Post: Dudu2002
10-16-2025 10:40 AM
» Replies: 12
» Views: 20983
[REQUEST] Gigabyte Aorus 15G KC BIOS unl...
Last Post: Dudu2002
10-14-2025 05:10 PM
» Replies: 35
» Views: 15897
Aorus 17G YD unlock bios?
Last Post: Dudu2002
10-14-2025 05:08 PM
» Replies: 1
» Views: 547
Unlocking the Hidden MAINTENANCE Menu of...
Last Post: 123BIOS
10-14-2025 10:31 AM
» Replies: 0
» Views: 846
[REQUEST] Lenovo Z50-70 & Z40-70 (9BCNxx...
Last Post: pitnixu
10-14-2025 04:12 AM
» Replies: 757
» Views: 366707
[REQUEST] Lenovo IdeaPad S400 (6DCNxxWW)...
Last Post: Jamil Missen
10-13-2025 10:04 PM
» Replies: 335
» Views: 167287
[REQUEST] Acer Aspire 5742(G,Z) BIOS Unl...
Last Post: deliter
10-13-2025 09:32 PM
» Replies: 168
» Views: 70161

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)