jankowskib / FELix

An open-source flash tool for Allwinner
45 stars 11 forks source link

no built in support for parallel device flashing? #7

Open gamesguru opened 5 years ago

gamesguru commented 5 years ago

i am using --tofes and --flash commands to great effect on 4.4.2 and 6.0.1 A33s. we are impressed with your tool and we would possibly scale up its use in our production.

however when you try to flash on separate thread, each device reads from disk and the hard drive sounds unhappy. we got a segmentation fault when trying 10 devices, and it was interesting because 9 ended up being corrupt booting into FEL mode, but not exactly what i was looking for.

i am not aware, is there already some built in support to push this over a usb port but only read up the livesuit image once?

thanks

gamesguru commented 5 years ago

sometimes it crashes when running even 2 in parallel it's possible this is due to some finishing out of the lot, rebooting, and the usb numbers shifting around?

felix -d 5 -f --flash /public/testers/octp-images/6.0/OCTP_5_20171223_android6.0.img

FELix 1.0 RC6 by Lolet
Warning: I don't give any warranty on this software. You use it at own risk!
ÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇ
[WTF]
NoMethodError: undefined method `port_number' for nil:NilClass at /home/TEST_LIB/TOOLS/felix:646:in `<main>'
* Cleaning up                                               [OK]
gamesguru commented 5 years ago
felix -d 2 -f --flash /public/testers/octp-images/6.0/OCTP_5_20171223_android6.0.img

FELix 1.0 RC6 by Lolet
Warning: I don't give any warranty on this software. You use it at own risk!
ÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇÔöÇ
[WTF]
NoMethodError: undefined method `port_number' for nil:NilClass at /home/TEST_LIB/TOOLS/felix:646:in `<main>'
* Cleaning up                                               [OK]
/home/SHANES_TEST_LIB/TOOLS/felix: [BUG] Segmentation fault at 0x00007f3e54f91f30
ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux-gnu]

-- Control frame information -----------------------------------------------
c:0001 p:0000 s:0003 E:001fc0 (none) [FINISH]

-- Machine register context ------------------------------------------------
 RIP: 0x00007f3e54f91f30 RBP: 0x0000000000000000 RSP: 0x00007f3e5454cef8
 RAX: 0x00007f3e5454d700 RBX: 0x0000000000000000 RCX: 0x00007f3e57005679
 RDX: 0x1d7d9e6b654eddf0 RDI: 0x0000000000000000 RSI: 0x0000000000000000
  R8: 0x00007f3e5454d700  R9: 0x00007f3e5454d700 R10: 0x00007f3e5454d9d0
 R11: 0x0000000000000202 R12: 0x00007f3e5454cfc0 R13: 0x0000000000000000
 R14: 0x0000000000000000 R15: 0x00007ffe38e1bc10 EFL: 0x0000000000010246

-- C level backtrace information -------------------------------------------