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] Lenovo Thinkpad X230 Tablet (G...
Last Post: spithink
04-18-2026 09:24 PM
» Replies: 355
» Views: 259159
Fujitsu D3061-A1 & Xeon E3-1245
Last Post: Nikandros
04-18-2026 02:31 PM
» Replies: 11
» Views: 1334
HP Pro 3300 & 3400 (H61): Upgrade to Ivy...
Last Post: miant
04-18-2026 12:20 PM
» Replies: 154
» Views: 158640
[REQUEST] Lenovo IdeaPad L340 (BGCNxxWW)...
Last Post: Triple_A
04-18-2026 07:02 AM
» Replies: 108
» Views: 74155
[REQUEST] Acer Predator Helios 300 PH315...
Last Post: Dudu2002
04-17-2026 11:55 AM
» Replies: 51
» Views: 27847
Acer Veriton M4620G Slic 2.1 Request
Last Post: rouger0831
04-17-2026 03:10 AM
» Replies: 5
» Views: 6939
[REQUEST] Lenovo B590 (H1ETxxWW) Whiteli...
Last Post: steberrr
04-16-2026 01:07 PM
» Replies: 800
» Views: 542982
GA-M68M-S2P (rev. 1.0) F5 BIOS unlock
Last Post: TheExplorer
04-16-2026 12:50 PM
» Replies: 17
» Views: 25208
[Request] Unlock Bios for Asus TUF FX505...
Last Post: antonio1985
04-16-2026 08:26 AM
» Replies: 12
» Views: 14448
[Request] Panasonic Toughbook CF-30K (MK...
Last Post: Yoshi128k
04-15-2026 03:45 PM
» Replies: 0
» Views: 898
[REQUEST] Lenovo Thinkpad T440p (GLETxxW...
Last Post: Dudu2002
04-15-2026 10:57 AM
» Replies: 532
» Views: 333716
[Request] Dell Inspiron N5010 A15 Full U...
Last Post: smnghosh
04-15-2026 06:08 AM
» Replies: 24
» Views: 38213
[REQUEST] Lenovo X270 (R0IETxxW) Whiteli...
Last Post: Kopturov
04-14-2026 01:48 PM
» Replies: 26
» Views: 16440
Acer TravelMate 4230 — Enable AHCI / Unl...
Last Post: maximiliano80
04-14-2026 03:18 AM
» Replies: 0
» Views: 950
[REQUEST] Dell Inspiron 15R 5520 BIOS Un...
Last Post: nguyenchitu
04-13-2026 10:42 PM
» Replies: 46
» Views: 38843
Help for UnLock Ram Timing
Last Post: Brax16
04-13-2026 01:55 PM
» Replies: 0
» Views: 960
Gigabyte GA-945PL-S3 (Rev. 1.0): Wolfdal...
Last Post: michamichael22
04-13-2026 01:23 PM
» Replies: 8
» Views: 5063
Lenovo Y550 BIOS Unlocking (Advanced Men...
Last Post: kentsergeo
04-13-2026 02:52 AM
» Replies: 7
» Views: 4200
Help with Foxconn H61S (weird miniITX ma...
Last Post: shiz_balls101
04-12-2026 08:20 AM
» Replies: 2
» Views: 1130
[REQUEST] Acer Aspire E1-571(G) BIOS Unl...
Last Post: RJMP
04-11-2026 01:07 PM
» Replies: 137
» Views: 116979

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)