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
HP Pro 3300 & 3400 (H61): Upgrade to Ivy...
Last Post: Hooper
Today 02:15 AM
» Replies: 153
» Views: 156154
Help with Foxconn H61S (weird miniITX ma...
Last Post: DeathBringer
Today 01:46 AM
» Replies: 1
» Views: 113
[REQUEST] Acer Aspire E1-571(G) BIOS Unl...
Last Post: RJMP
Yesterday 01:07 PM
» Replies: 137
» Views: 115051
Fujitsu D3061-A1 & Xeon E3-1245
Last Post: DeathBringer
Yesterday 08:00 AM
» Replies: 7
» Views: 89
[REQUEST] Lenovo ThinkPad T450(s) (JBETx...
Last Post: konam005
04-10-2026 10:20 PM
» Replies: 149
» Views: 133374
Dell R7610 sr-iov bios mod help
Last Post: IronFist
04-10-2026 02:43 PM
» Replies: 0
» Views: 155
[RESQUEST] Gigabyte A5 X1 Insyde BIOS un...
Last Post: SuperSantaSqualala
04-10-2026 12:04 PM
» Replies: 2
» Views: 158
[REQUEST] Lenovo L340-15API & L340-17API...
Last Post: Dudu2002
04-10-2026 11:43 AM
» Replies: 14
» Views: 10405
Acer Nitro AN16-42-R854 need bios
Last Post: QEDSE
04-10-2026 03:16 AM
» Replies: 0
» Views: 172
Lenovo Y550 BIOS Unlocking (Advanced Men...
Last Post: kentsergeo
04-10-2026 01:41 AM
» Replies: 6
» Views: 3476
[REQUEST] HP Elitebook 8440p Whitelist R...
Last Post: ic0n_358_
04-09-2026 01:16 PM
» Replies: 72
» Views: 54778
BIOS secure flash check failed
Last Post: Tutis123
04-09-2026 08:58 AM
» Replies: 0
» Views: 192
[REQUEST] Lenovo Yoga 520-14IKB BIOS Unl...
Last Post: Nicolasdrummer
04-08-2026 10:40 AM
» Replies: 9
» Views: 4131
BIOS MOD FOR DELL N7110 UNLOCKED UEFI BO...
Last Post: biiza
04-08-2026 08:01 AM
» Replies: 38
» Views: 79640
Lenovo g780: BIOS is password-locked
Last Post: liliill
04-06-2026 02:35 PM
» Replies: 0
» Views: 323
[REQUEST] Acer Aspire One 532h BIOS Unlo...
Last Post: zpunout
04-06-2026 02:44 AM
» Replies: 47
» Views: 36001
[REQUEST] Lenovo T440(S) (GJETxxWW) Whit...
Last Post: dx88ct
04-05-2026 09:18 PM
» Replies: 503
» Views: 299428
[REQUEST] Unlock Sony Vaio SX 12 VJS125 ...
Last Post: LindaFero
04-05-2026 04:08 PM
» Replies: 0
» Views: 247
Disable Prochot ryzen 5 5500u
Last Post: vorajeeah
04-05-2026 10:01 AM
» Replies: 0
» Views: 238
HP Pro 3330 (H-POPEYE-H61-uATX): Ivy Bri...
Last Post: Hooper
04-05-2026 06:03 AM
» Replies: 10
» Views: 8114

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)