Skip to content

Detach kernel driver to fix Errno_16: Device is busy#1

Open
radio-van wants to merge 1 commit intoandybalholm:masterfrom
radio-van:Fix_device_busy_error_16
Open

Detach kernel driver to fix Errno_16: Device is busy#1
radio-van wants to merge 1 commit intoandybalholm:masterfrom
radio-van:Fix_device_busy_error_16

Conversation

@radio-van
Copy link
Copy Markdown

Helps to fix following error with Nokia 8110:

  File "edl.py", line 419, in <module>                                                                                                                
    main()                                                                                                                                                                    
  File "edl.py", line 145, in main                                                                                                                    
    cdc.connected=cdc.connect()                                                                                                                                               
  File "./Library/usb.py", line 24, in connect                                                                                                          
    self.device.set_configuration()                                                                                                                                           
  File "./venv/lib/python3.10/site-packages/usb/core.py", line 915, in set_configuration                                                                
    self._ctx.managed_set_configuration(self, configuration)                                                                                                                  
  File "./venv/lib/python3.10/site-packages/usb/core.py", line 113, in wrapper                                                                          
    return f(self, *args, **kwargs)                                                                                                                                           
  File "./venv/lib/python3.10/site-packages/usb/core.py", line 159, in managed_set_configuration                                                        
    self.backend.set_configuration(self.handle, cfg.bConfigurationValue)                                                                                                      
  File "./venv/lib/python3.10/site-packages/usb/backend/libusb1.py", line 812, in set_configuration                                                     
    _check(self.lib.libusb_set_configuration(dev_handle.handle, config_value))                                                                                                
  File "./venv/lib/python3.10/site-packages/usb/backend/libusb1.py", line 604, in _check                                                                
    raise USBError(_strerror(ret), ret, _libusb_errno[ret])                                                                                                                   
usb.core.USBError: [Errno 16] Resource busy  

@l4l4l4l4
Copy link
Copy Markdown

Executes only 1 command, then need to re-enable edl to make it work again.

/e/s/n/edl (Fix_device_busy_error_16|✔) $ python3 edl.py -printgpt -loader ../8110.mbn

Qualcomm Sahara / Firehose Client (c) B.Kerler 2018-2019.


Using loader ../8110.mbn ...
Waiting for the device
Device detected :)
Mode detected: Unknown
Sorry, couldn't talk to Sahara, please reboot the device !
/e/s/n/edl (Fix_device_busy_error_16|✔) $ python3 edl.py -printgpt -loader ../8110.mbn

Qualcomm Sahara / Firehose Client (c) B.Kerler 2018-2019.


Using loader ../8110.mbn ...
Waiting for the device
Device detected :)
Mode detected: Sahara

------------------------
HWID:              0x000940e100420050 (MSM_ID:0x000940e1,OEM_ID:0x0042,MODEL_ID:0x0050)
PK_HASH:           0x1357fdaeabb7becbe49095f000d9d3dadf198885106d98598cac6d1b9b2edb3a
Serial:            0x14d02e59
SBL Version:       0x00000000

Successfully uploaded programmer :)
TargetName=MSM8909
MemoryName=eMMC
Version=1

Reading from physical partition 0, sector 0, sectors 32
Progress: |██████████████████████████████████████████████████| 100.0% Complete

GPT Table:
-------------
traceability:        Offset 0x0000000000004400, Length 0x0000000000100000, Flags 0x00000000, UUID f8b2c472-058a-c109-0b80-f82160fbe8e2, Type 0x5e38e488
tunning:             Offset 0x0000000000104400, Length 0x0000000000300000, Flags 0x00000000, UUID 95f51878-5d3f-4741-4d6d-fe0224cc46ce, Type 0xf5eefb2d
modemst1:            Offset 0x0000000000404400, Length 0x0000000000300000, Flags 0x00000000, UUID fb575b4d-4a06-a05f-4fdd-e78f54c6c0b7, Type 0xebbeadaf
modemst2:            Offset 0x0000000000704400, Length 0x0000000000300000, Flags 0x00000000, UUID ca115137-36bd-fd7c-fbf2-bd1bd915741d, Type 0xa288b1f
fsc:                 Offset 0x0000000000a04400, Length 0x0000000000000400, Flags 0x00000000, UUID 05e02dde-fb0c-0490-ef49-2bd7b6c7179f, Type 0x57b90a16
ssd:                 Offset 0x0000000000a04800, Length 0x0000000000002000, Flags 0x00000000, UUID 7e2e47fc-2bf7-d144-44ec-df5752665832, Type 0x2c86e742
sbl1:                Offset 0x0000000000a06800, Length 0x0000000000080000, Flags 0x00000000, UUID 70cfcc76-b7cd-e340-4e82-01004a7668af, Type 0xdea0ba2c
sbl1bak:             Offset 0x0000000000a86800, Length 0x0000000000080000, Flags 0x00000000, UUID f24bafdd-cdbb-dd62-4bd9-68501c2fc45e, Type 0xdea0ba2c
aboot:               Offset 0x0000000000b06800, Length 0x0000000000100000, Flags 0x00000000, UUID 29b86496-34b7-fa5b-a877-8473c5e1856d, Type 0x400ffdcd
abootbak:            Offset 0x0000000000c06800, Length 0x0000000000100000, Flags 0x00000000, UUID aea71b63-92be-8838-a28a-4fc2c1234abb, Type 0x400ffdcd
rpm:                 Offset 0x0000000000d06800, Length 0x0000000000080000, Flags 0x00000000, UUID 959f10da-63d8-4a33-c011-797a620376a5, Type 0x98df793
rpmbak:              Offset 0x0000000000d86800, Length 0x0000000000080000, Flags 0x00000000, UUID 4bdedaa1-df7a-206b-0ed2-4da0886ba6d8, Type 0x98df793
tz:                  Offset 0x0000000000e06800, Length 0x00000000000c0000, Flags 0x00000000, UUID 33e462f8-bf9c-70d3-13ed-69e06899d6e9, Type 0xa053aa7f
tzbak:               Offset 0x0000000000ec6800, Length 0x00000000000c0000, Flags 0x00000000, UUID fce7552c-5cf9-a805-4558-c93197db4304, Type 0xa053aa7f
pad:                 Offset 0x0000000000f86800, Length 0x0000000000100000, Flags 0x00000000, UUID c6edca94-7ae2-18b2-8650-d2622ddfc21f, Type EFI_BASIC_DATA
misc:                Offset 0x0000000001086800, Length 0x0000000000100000, Flags 0x00000000, UUID 284cc14a-063a-0dfd-ce14-2e0616c68c89, Type 0x82acc91f
splash:              Offset 0x0000000001186800, Length 0x0000000000a00000, Flags 0x00000000, UUID 9c717899-61e5-f654-621c-10a60efd1307, Type 0x20117f86
keystore:            Offset 0x0000000001b86800, Length 0x0000000000080000, Flags 0x00000000, UUID 80c3b1b6-d290-55e5-f0d3-90228f369989, Type 0xde7d4029
config:              Offset 0x0000000001c06800, Length 0x0000000000080000, Flags 0x00000000, UUID bf7aaff1-2bc4-4d97-554c-ffea685a1f57, Type 0x91b72d4d
simlock:             Offset 0x0000000001c86800, Length 0x0000000000500000, Flags 0x00000000, UUID 0f57002a-9ccf-5301-5d53-b39e7d6475f4, Type 0x116ef152
modem:               Offset 0x0000000004000000, Length 0x0000000004000000, Flags 0x00000010, UUID de37692c-dc1b-0c8b-834d-e2406bf63538, Type EFI_BASIC_DATA
devinfo:             Offset 0x0000000008000000, Length 0x0000000000100000, Flags 0x00000010, UUID bb22e05e-7982-514d-b94f-090ae9233899, Type 0x1b81e7e6
DDR:                 Offset 0x0000000008100000, Length 0x0000000000008000, Flags 0x00000010, UUID 3536e317-58ef-f8a1-6322-9c326d475f97, Type 0x20a0c19c
fsg:                 Offset 0x0000000008108000, Length 0x0000000000300000, Flags 0x00000010, UUID 4ae5b65d-a0b1-a8e5-9197-e7a2e378c91a, Type 0x638ff8e2
sec:                 Offset 0x0000000008408000, Length 0x0000000000004000, Flags 0x00000010, UUID 5fc2e451-ec4c-661a-d619-5a038a14da16, Type 0x303e6ac3
boot:                Offset 0x000000000840c000, Length 0x00000000018f4000, Flags 0x00000010, UUID 96b64679-9665-cf15-715a-71a1a437e905, Type 0x20117f86
recovery:            Offset 0x0000000009d00000, Length 0x0000000001900000, Flags 0x00000010, UUID e6c8ea39-61c0-a565-534b-5828988980be, Type 0x9d72d4e4
persist:             Offset 0x000000000b600000, Length 0x0000000002000000, Flags 0x00000010, UUID 05aaed83-9628-da70-da01-95819d183ca6, Type 0x6c95e238
system:              Offset 0x000000000d600000, Length 0x0000000032000000, Flags 0x00000010, UUID b617fcaa-1dc9-e5dd-6389-100c429bf01c, Type 0x97d7b011
cache:               Offset 0x000000003f600000, Length 0x000000000c800000, Flags 0x00000010, UUID 12d20a1a-c7d8-b2bc-3ffb-22015be468f3, Type 0x5594c694
oem:                 Offset 0x000000004be00000, Length 0x0000000000200000, Flags 0x00000010, UUID da6be548-528c-84d8-bc52-8be253de1daa, Type 0x7db6ac55
userdata:            Offset 0x000000004c000000, Length 0x000000009cffbe00, Flags 0x00000000, UUID c1df16c6-0eaa-0561-fb40-e314c82878b3, Type 0x70c59180

Total disk size:0x00000000e8ffbc00, sectors:0x0000000000747fde
/e/s/n/edl (Fix_device_busy_error_16|✔) $ python3 edl.py -w /recovery ../recovery/recovery-8110.img -loader ../8110.mbn                           2.592s  (Fix_device_busy_error_16|✔) 16:06

Qualcomm Sahara / Firehose Client (c) B.Kerler 2018-2019.


Using loader ../8110.mbn ...
Waiting for the device
Device detected :)
Mode detected: Unknown
Sorry, couldn't talk to Sahara, please reboot the device !
/e/s/n/edl (Fix_device_busy_error_16|✔) $ python3 edl.py -printgpt -loader ../8110.mbn                                                             2.52s  (Fix_device_busy_error_16|✔) 16:07

Qualcomm Sahara / Firehose Client (c) B.Kerler 2018-2019.


Using loader ../8110.mbn ...
Waiting for the device
Device detected :)
Mode detected: Unknown
Sorry, couldn't talk to Sahara, please reboot the device !

chrisdobbins referenced this pull request in chrisdobbins/edl Apr 10, 2023
@yohanboniface
Copy link
Copy Markdown

I needed too this change to make it work with a Nokia 8110 4G.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants