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] Mod Adaptec ARCCONF to allow x...
Last Post: Teetrinker
09-13-2025 10:14 AM
» Replies: 0
» Views: 1488
[REQUEST] Lenovo G580 (5ECNxxWW) Whiteli...
Last Post: Princeneo
09-12-2025 09:23 AM
» Replies: 1726
» Views: 897185
[REQUEST] Lenovo Ideapad 100-14IBD & 100...
Last Post: Dudu2002
09-12-2025 02:22 AM
» Replies: 26
» Views: 23570
[REQUEST] Acer Nitro 5 AN515-58 BIOS Unl...
Last Post: iku56m22v
09-11-2025 10:02 AM
» Replies: 37
» Views: 26522
3rd Party RAM Mod For HP EliteDesk 705 G...
Last Post: AmyGrrl
09-10-2025 09:40 AM
» Replies: 0
» Views: 3295
MSI PR210 AHCI
Last Post: iday82
09-09-2025 04:40 PM
» Replies: 0
» Views: 3520
Honor Magicbook D14 Ryzen 4800H
Last Post: Altermann
09-09-2025 05:04 AM
» Replies: 0
» Views: 3841
[REQUEST] Thinkpad X60S WiFi WhiteList r...
Last Post: Vigor89
09-08-2025 04:46 PM
» Replies: 0
» Views: 4540
[REQUEST] GIGABYTE G6 MF (2024) Bios Unl...
Last Post: lovesickugh
09-07-2025 09:15 PM
» Replies: 3
» Views: 8473
Gigabyte GA-G33-DS3R: USB Boot
Last Post: dinix
09-04-2025 10:37 AM
» Replies: 0
» Views: 6424
Optiplex 7060 SFF 9th Generation Intel C...
Last Post: DeathBringer
08-31-2025 01:59 AM
» Replies: 68
» Views: 38387
Bios Powered classmate
Last Post: MosheNessi
08-28-2025 08:08 AM
» Replies: 0
» Views: 6456
[REQUEST] Lenovo Thinkpad X12 Detachable...
Last Post: Kokoko123
08-28-2025 12:48 AM
» Replies: 0
» Views: 6686
[REQUEST] Unlock advanced options to HP ...
Last Post: huguito
08-26-2025 02:57 PM
» Replies: 0
» Views: 6855
[REQUEST] Dell Precision T3500 BIOS Unlo...
Last Post: DEX0ZEN
08-25-2025 01:30 PM
» Replies: 45
» Views: 51753
[REQUEST] Samsung NP900X4D AES-NI enable...
Last Post: Vesly
08-23-2025 05:25 PM
» Replies: 63
» Views: 47403
Acer Veriton X2640G Xeon support
Last Post: hercares
08-19-2025 03:21 PM
» Replies: 5
» Views: 2523
[Request] Lenovo v520s sff unit bios sup...
Last Post: DeathBringer
08-17-2025 02:05 PM
» Replies: 15
» Views: 3397
[Success] [Bios Mod] Dell XPS L321X EFI ...
Last Post: tuwumo
08-17-2025 11:37 AM
» Replies: 18
» Views: 29884
Samsung N140 JA05IT AHCI
Last Post: Ranmamez
08-12-2025 05:22 PM
» Replies: 0
» Views: 7339

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)