Forum Rule: Always post complete source code & details to reproduce any issue!
Page 13 of 13 FirstFirst ... 3 11 12 13
Results 301 to 305 of 305

Thread: USBHost_t36 USB Mass Storage Driver Experiments

  1. #301
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    5,034
    Starting off slightly off-topic. I just received a new Raspberry PI 4, that hopefully tomorrow will set up. Forgot to get a micro HDMI cable. It is now in mail box in town...

    Was looking around on how to install Ubuntu on it and ran across a site that shows you how to install it on an SSD: https://jamesachambers.com/raspberry...llation-guide/

    Included in this are some cheap setups for SSD drives.
    One is Do it your self with a cheap SSD: https://jamesachambers.com/raspberry...sd-upgrade-30/

    cheap SSD Drive: https://www.amazon.com/Kingston-120G...language=en_US

    Cheap Adapter: https://www.amazon.com/StarTech-com-...language=en_US

    Total: $19.99+$9.99 or lets say $30

    Or a bit more expensive, a plug in thumb drive wheich is SSD: https://www.amazon.com/dp/B01MU8TZRV...language=en_US $46

    The reason I mention that here, is maybe it might be fun to try one of these here... And then maybe end up using it for the new RPI4 (or 3)..

  2. #302
    @Kurte

    Thanks for this information. SSD's are something that I have wanted to play with but just could not afford at that time. The plugin SSD drive would be the best choice for me for minimal hardware clutter.
    I
    have the latest RPI3 and have always used USB Drives with them. I was using Ubuntu MATE. The latest I found is:
    https://ubuntu-mate.org/raspberry-pi/

    In the boot directory, 'cmdline.txt', this worked:
    Code:
    #dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait
    dwc_otg.lpm_enable=0 console=tty1 root=/dev/sda1 rootfstype=ext4 elevator=deadline rootwait
    It also worked with Raspbian.

    Has anybody tried adapting or using lwext4 an ext4 Linux style file system for microcontrollers?
    Would this be a worthwhile project?

  3. #303
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    5,034
    @wwatson - Today I received the cheap drive/adapter and plugged it into my PC and had to initialize it. So I choose MBR
    I then formatted all of it as one exfat partition...

    I then ran the MBR_diskIO_test program and it ran...
    Code:
    Disk read Result: 0
    33 c0 8e d0 bc 00 7c 8e c0 8e d8 be 00 7c bf 00
    06 b9 00 02 fc f3 a4 50 68 1c 06 cb fb b9 04 00
    bd be 07 80 7e 00 00 7c 0b 0f 85 0e 01 83 c5 10
    e2 f1 cd 18 88 56 00 55 c6 46 11 05 c6 46 10 00
    b4 41 bb aa 55 cd 13 5d 72 0f 81 fb 55 aa 75 09
    f7 c1 01 00 74 03 fe 46 10 66 60 80 7e 10 00 74
    26 66 68 00 00 00 00 66 ff 76 08 68 00 00 68 00
    7c 68 01 00 68 10 00 b4 42 8a 56 00 8b f4 cd 13
    9f 83 c4 10 9e eb 14 b8 01 02 bb 00 7c 8a 56 00
    8a 76 01 8a 4e 02 8a 6e 03 cd 13 66 61 73 1c fe
    4e 11 75 0c 80 7e 00 80 0f 84 8a 00 b2 80 eb 84
    55 32 e4 8a 56 00 cd 13 5d eb 9e 81 3e fe 7d 55
    aa 75 6e ff 76 00 e8 8d 00 75 17 fa b0 d1 e6 64
    e8 83 00 b0 df e6 60 e8 7c 00 b0 ff e6 64 e8 75
    00 fb b8 00 bb cd 1a 66 23 c0 75 3b 66 81 fb 54
    43 50 41 75 32 81 f9 02 01 72 2c 66 68 07 bb 00
    00 66 68 00 02 00 00 66 68 08 00 00 00 66 53 66
    53 66 55 66 68 00 00 00 00 66 68 00 7c 00 00 66
    61 68 00 00 07 cd 1a 5a 32 f6 ea 00 7c 00 00 cd
    18 a0 b7 07 eb 08 a0 b6 07 eb 03 a0 b5 07 32 e4
    05 00 07 8b f0 ac 3c 00 74 09 bb 07 00 b4 0e cd
    10 eb f2 f4 eb fd 2b c9 e4 64 eb 00 24 02 e0 f8
    24 02 c3 49 6e 76 61 6c 69 64 20 70 61 72 74 69
    74 69 6f 6e 20 74 61 62 6c 65 00 45 72 72 6f 72
    20 6c 6f 61 64 69 6e 67 20 6f 70 65 72 61 74 69
    6e 67 20 73 79 73 74 65 6d 00 4d 69 73 73 69 6e
    67 20 6f 70 65 72 61 74 69 6e 67 20 73 79 73 74
    65 6d 00 00 00 63 7b 9a 33 08 72 2d 5a 03 00 20
    21 00 07 fe ff ff 00 08 00 00 00 38 f9 0d 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa
    
    Master Boot Record
      Partition: 0 first Sector: 2048 total Sectors: 234436608
      Partition: 1 first Sector: 0 total Sectors: 0
      Partition: 2 first Sector: 0 total Sectors: 0
      Partition: 3 first Sector: 0 total Sectors: 0
    Next up need to remember what speed test or the like there is...

    Yes I also wondered if there was some linux disk format setups for Microcontrollers as well.

    Probably will do a little more on the system with this and then try it out on one of the RPIs...

  4. #304

    Updated MSC

    @All

    I have cleaned up and updated MSC.

    Added more complete error processing including using sense codes. Funny thing is I have not been able generate any errors yet so not sure how it will respond.
    I'm sure eventually they will happen

    Here is the link again:
    https://github.com/wwatson4506/MSC

  5. #305
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    9,018
    Too late to check for updated source - but using TD_1.47 and what I have that compiles I am seeing this error on SD cards in a USB Adaoter:
    Code:
    Test logger_RawRead
    uSDFS_VER:30_Jun_19_07_17
    BUFFSIZE :8192
    Dev Type :2:/
    CSW Tag Error: 253
    I have not seen this before? Time for Zzzz's here but tried to compile this using updated TyComm from my SubLime editor with https://github.com/Defragster/Tset that is working on T4 with TD 1.47 otherwise.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •