Comments (13)
That is truth, flashing via Mk II protocol is not implemented yet. It is also written in TODO:
Lines 22 to 23 in 3344248
Protocol is described in file doc/mkii and some initial code is in src/mkii.c
Lines 191 to 337 in 3344248
Patches for full implementation are welcome :-)
from 0xffff.
It support via USB flashing any image type to Maemo device
in README is incorrect then, ok
from 0xffff.
I'll give it a try.
from 0xffff.
Does the raw data on ep=2 size=1048576
correspond to the stuff i get by calling image_read
?
from 0xffff.
Yes. You can look at nolo_send_image() which is similar, but data over usb are sent differently.
from 0xffff.
In attachment you can find sniffed usb log when flashing emmc image. mkii.log For such purpose there libusb-sniff.c library.
from 0xffff.
Damn, it seems like i bricked it even more than it used to be. It times out at ret = mkii_send_receive(dev->udev, 0x03, msg1, 0, msg1, sizeof(buf1));
every time and the screen behaviour suggests it tries to boot or smth.
from 0xffff.
Oh, nvm, it times out in the raw data sending after 100s. I wonder if i must/should usb_bulk_write the whole 1048576 pack at once.
from 0xffff.
I have no idea. This is something which I not tested yet...
from 0xffff.
Also i wonder if usb 1-1.2: usbfs: process 17803 (0xFFFF) did not claim interface 2 before use
is related to my troubles.
from 0xffff.
Hmm, usb_strerror at the entrance of mkii_flash_image
says Error: could not detach kernel driver from interface 1: No data available
.
The current state of my code is there: l29ah@4580ed4
Maybe i'm missing something, but now the usb_bulk_write
exits either with a timeout, or with error submitting URB: No such file or directory
.
from 0xffff.
Hmm, usb_strerror at the entrance of
mkii_flash_image
saysError: could not detach kernel driver from interface 1: No data available
.
Maybe thats because there is no attached kernel driver, so nothing is possible to detach?
The current state of my code is there: l29ah@4580ed4
Maybe i'm missing something, but now theusb_bulk_write
exits either with a timeout, or witherror submitting URB: No such file or directory
.
You can recheck which data are sending/receiving via USB bus with libusb-sniff.
from 0xffff.
The best way is really to run 0xFFFF under libusb-sniff. That mkii.log file was created by running flasher-3.5 under libusb-sniff. Just call make libusb-sniff-64.so
(or -32.so
) and run sudo LD_PRELOAD=./libusb-sniff-64.so ./0xFFFF ...
Or look into libusb-sniff.c source for details.
from 0xffff.
Related Issues (3)
- use libusb-1? HOT 15
- Error: Cannot find id for mmc block disk device HOT 17
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.
from 0xffff.