Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QUESTION] SD mount by USB #14

Closed
reloxx13 opened this issue Aug 15, 2019 · 6 comments
Closed

[QUESTION] SD mount by USB #14

reloxx13 opened this issue Aug 15, 2019 · 6 comments

Comments

@reloxx13
Copy link

reloxx13 commented Aug 15, 2019

Heya,

should it be possible to mount the SD card by USB on a unix/windows PC?

Is it possible with ur hardware side (USB stack) with tweaks in marlin?

Im trying to find a way to update the firmware by USB rather than the SD Card.

For this i would like to copy the firmware over USB to the SD card.

E.g. the SKR Pro 1.1 does work like this.

BR

@bigtreetech
Copy link
Owner

It's done in here MarlinFirmware/Marlin#15180.
But more testing is needed.

@reloxx13
Copy link
Author

reloxx13 commented Sep 7, 2019

thank you, looking forward for the merge.

@reloxx13
Copy link
Author

reloxx13 commented Sep 8, 2019

works now, thank you

grafik

@dseven
Copy link

dseven commented Dec 12, 2019

Can't get this to work in 2.0.x-bugfix. I've built for STM32F103RC_bigtree_512K_USB, and both Windows and Linux (Pi running OctoPi) see a disk device, but they don't seem to be seeing a partition table on it, so it can't be mounted. Connecting the card via a USB card reader works fine (so the card itself seems OK).

root@octopi:~# fdisk -l /dev/sda
Disk /dev/sda: 120 MiB, 125829120 bytes, 245760 sectors
Disk model: SD Flash Disk
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
root@octopi:~#

My config at MarlinFirmware/Marlin@bugfix-2.0.x...dseven:n6ml_skr_mini_mesh_config

What am I missing?

@Phisik
Copy link

Phisik commented Jan 13, 2020

I experience exactly the same problem as dseven above with my SKR MINI E3 v1.2 (TMC2209 version). I have build the latest Marlin 2.0.1 with platform.io for STM32F103RC_bigtree_512K_USB environment. I can see the SD card reader in OS. Both Win10 & Armbian see Composite USB device & COM port. Both OSes correctly detect SD card capacity but see no partition on it. Neither SD card can be formatted from OS. Are there any defines to be switch on for SD reader to work properly? Or this is some usb code bug?

Here is Linux output for STM32 card reader:

root@orangepi:/# ls /dev/sd*
/dev/sda
root@orangepi:/# fdisk -l /dev/sda
Disk /dev/sda: 120 MiB, 125829120 bytes, 245760 sectors
Disk model: SD Flash Disk
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

config_file.zip

@dseven
Copy link

dseven commented Jan 13, 2020

I started to open a new issue on this, but it pointed me to this existing one. The workaround there seems to be working for me.

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

No branches or pull requests

4 participants