drivecom's People
Forkers
dominikgebhart gokul0625 the-l0st-technocrat christoxz tricke461 corwin79 hossainel apocsantos educationtechunicorns je55e44 belbayomy66drivecom's Issues
AssertionError: Header not accepted on PS2268
I'm trying to run this on an ASUS Transformer T100TA which has an embedded 8Gb flash drive with the Windows recovery partition on it. I'm now running Ubuntu on this device and would like to rewrite this flash, but it appears to be read-only. Is there any software controllable read-only flag on this device?
mike:~$ sudo python3 ./drivecom.py get_info --path /dev/sg0
drivecom.py - Phison USB flasher and utilities
----------------------------------------------
Handling command 'get_info'...
Using USB drive:
Path: /dev/sg0
Image version: 01.00.53
Chip type: 2268
Flash chip ID: 98DE989272D7
Mode: Firmware
I have tried reflashing the firmware (in firmware and boot modes) but I get the following error:
drivecom.py - Phison USB flasher and utilities
----------------------------------------------
Handling command 'flash_firmware'...
Using USB drive:
Path: /dev/sg0
Opening firmware image Desktop/Stuff/Firmware PS2251-68/FW68FF01V10053M.BIN...
Firmware image read.
Transferring firmware...
Traceback (most recent call last):
File "./drivecom.py", line 652, in <module>
args.func(args)
File "./drivecom.py", line 430, in drivecom_flash_firmware
device.transfer_file_data(data, 0x01, 0x00)
File "./drivecom.py", line 282, in transfer_file_data
raise AssertionError("Header not accepted")
AssertionError: Header not accepted
The flashing actually appears to have worked, as it was originally showing version 01.00.10, but the drive itself still seems to be read-only (even if I use hdparm -r 0
and remount the drive).
no sg or sr
Hi,
I'm on manjaro, and I can't find any sg or sr devices in /dev/.
Is there a new way to access the mid-level SCSI layer?
my usb is /dev/sde.
OSError: [Errno 25] Inappropriate ioctl for device
OSError: [Errno 25] Inappropriate ioctl for device
I'm getting this error when I try to run the code on a mac. Can anyone please help?
OSError: [Errno 22] Invalid argument
I'm trying to use this on an ASUS Transformer T100TA, which I'm lead to believe has a Phison USB controller with an 8gb flash drive, originally used for the recovery partition. I'm running Ubuntu on it now. It's definitely available (read-only) on /dev/sda
sudo python3 ./drivecom.py get_info --path /dev/sda
drivecom.py - Phison USB flasher and utilities
----------------------------------------------
Handling command 'get_info'...
Using USB drive:
Path: /dev/sda
Traceback (most recent call last):
File "./drivecom.py", line 652, in <module>
args.func(args)
File "./drivecom.py", line 391, in drivecom_get_info
ret = device.send_scsi_command([0x06, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01], 512 + 16)
File "./drivecom.py", line 265, in send_scsi_command
ret = fcntl.ioctl(self.device_handle, SG_IO, args)
OSError: [Errno 22] Invalid argument
Does this mean it's the wrong kind of controller, or do I need to use a different device?
list_devices
fails with
libusb is not set up or installed properly.
Even though it (and the dev headers) are installed ok. Does it need 'setup'?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.