Am newbie with Libre Computer products (AML-S905X-CC-V2, Libre Computer 16GB eMMC).
So far, everything has been working “as advertised” with my new board. Performance is very solid, repeatable. Really like having Unix on a SBC and your implementation will be perfect for my needs, projects going forward.
Initially, used a SanDisk Ultra 16GB to dd “xxx”.img onto eMMC. Got error message when tried to boot on eMMC; so used the ums 0 mmc 0 command in U-boot console to clear and restart. Once the “=> ums 0 mmc 0” was entered, the boot continued = loaded linux from initial SanDisk dd install, requested normal linux setup info & has been solid since.
Now, I would like to reinitialize everything and start over in order to clean things up. This time, I would like to use your “eMMC Flashing Steps for Linux with pyamlboot”.
Have used the USB A to USB A cable included in the EMMC box to try to establish comms with my main Linux PC (main PC is running Ubuntu 22.04.4, Python 3.10.12, usb directory is showing in usr/lib/python3/dist-packages). Followed your instructions to "press black button next to usb header on AML board while plugging into usb port top left next to ethernet (= red and blue led’s remain lit continuously on sweet potato, no green ever). Also, plugged the sweet potato into its dedicated 5v power supply after releasing its boot button.
However can’t find the sweet potato plugged into main PC USB anywhere. From libretech-flash-tool, ‘./lft.sh dev-list’ only shows the other mounted drives. Can’t get any of the standard linux USB device recognition tools to find new devices, either (lsblk…). Also, plugged another SSD into same USB port on main PC & it was found by main PC.
When I try “sudo pyamlboot/run.sh aml-s905x-cc ums-emmc” command it produces errors identical to the ones shown in Eli Weaver’s October '23 message, except that the last four lines of my error message reference Python 3 not 3.9
My last four error message lines are =
{File “/usr/lib/python3/dist-packages/usb/core.py”, line 1082, in ctrl_transfer
ret = self._ctx.backend.ctrl_transfer(
File “/usr/lib/python3/dist-packages/usb/backend/libusb1.py”, line 893, in ctrl_transfer
ret = _check(self.lib.libusb_control_transfer(
File “/usr/lib/python3/dist-packages/usb/backend/libusb1.py”, line 604, in _check
raise USBError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBError: [Errno 19] No such device (it may have been disconnected)}
I have assumed a new binding took effect for my eMMC when I did the U-boot ums 0 mmc 0 command, and that I now should be able to use pamylboot to access the sweet potato as a mass storage device from my main PC???
Next step would be to replace sweet potato board and try again. But concerned that I may have missed or misinterpreted some of your troubleshooting instructions - any advice would be appreciated…
Thank you