Preparing a Sandisk Cruzer Blade for Linux

AmigaOne X5000 platform specific issues related to Linux only.

Preparing a Sandisk Cruzer Blade for Linux

Postby Roland » Wed May 23, 2018 8:59 am

I purchased recently a 64GB Sandisk Cruzer Blade USB 2.0 stick, with the idea to collect all the Linux distros and kernelsI I use regularly on a single disk unit. But when trying to use it, I found a strange problem: Uboot does not recognize it as an USB storage device IF it is the only USB disk connected!?! (checked with "usb reset" + "usb storage/tree") The USB port used does not make any difference.

But if I have also an another USB stick (e.g. a similar Cruzer Blade but 32 GB) connected, and the 64GB one is in a port wich comes LATER in the USB port hierarchy, it is recognized normally. But if it is earlier in the hierarchy than the 32 GB one, it is not recognized.

What should I do to fix this problem? Starting from the bottom, what is the best way to prep (or low level format) a USB stick for Linux (both Fat32 and Ext parttions needed), so that it would work also with U-Boot? I already tried to create a new partioton table (MBR) using GParted, but it did not do any difference.

BTW, 32 GB Cruzer blades I have do not show this problem, but I cannot remember how I prepared them.
- Roland -
Roland
 
Posts: 238
Joined: Tue May 02, 2017 8:23 am

Re: Preparing a Sandisk Cruzer Blade for Linux

Postby xeno74 » Wed May 23, 2018 4:54 pm

Hi Roland,

Have you seen any error messages? I also use Sandisk USB sticks but I haven’t had such problems yet. I usually create a small FAT16 partition on the USB stick. After that I copy the dtb file and the kernel to the stick. Then I create a big partition without a file system on the stick. Afterwards I copy a Linux img for example the MATE PowerPC Remix with dd to the second big partition. Then I increase it with Gparted.

Cheers,
Christian
Last edited by xeno74 on Wed May 23, 2018 5:18 pm, edited 2 times in total.
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
 
Posts: 4236
Joined: Fri Mar 23, 2012 8:58 am

Re: Preparing a Sandisk Cruzer Blade for Linux

Postby xeno74 » Wed May 23, 2018 4:59 pm

http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
 
Posts: 4236
Joined: Fri Mar 23, 2012 8:58 am

Re: Preparing a Sandisk Cruzer Blade for Linux

Postby caseycullen » Wed May 23, 2018 5:09 pm

I've good luck with Sandisk Cruizer USB drives using an msdos partition table, a FAT32 partition (for dtb and kernel) and an ext4 partition (dd image onto partition, then correct partition size in gparted). However, I did have issues with a PNY USB drive that I was never able to get uboot to recognize.
---Casey
caseycullen
 
Posts: 134
Joined: Sat Dec 17, 2016 8:12 am
Location: Madison, WI USA

Re: Preparing a Sandisk Cruzer Blade for Linux

Postby Roland » Wed May 23, 2018 9:37 pm

xeno74 wrote:Have you seen any error messages? I also use Sandisk USB sticks but I haven’t had such problems yet.


No, except those from U-Boot when you try to boot from a nonexistent disk. At OS level (both AmigaOS and Linux), after booting from some other unit, my Sandisk seems to work normally - partitions (both Fat and Ext) and files are accessible without problems.

Have you used also 64GB Cruzer Blades? The 32 GB ones has worked ok for me.

I usually create a small FAT16 partition on the USB stick. After that I copy the dtb file and the kernel to the stick. Then I create a big partition without a file system on the stick. Afterwards I copy a Linux img for example the MATE PowerPC Remix with dd to the second big partition. Then I increase it with Gparted.


I have used FAT32 for boot partition, but I tried now also FAT16. There was no difference... I also copied several partitions/distros from working USB disks to the 64GB Sandisk, but they did not have effect on U-boot behaviour. I have also already the Remix 0.9 image downloaded but have not tested it yet.
- Roland -
Roland
 
Posts: 238
Joined: Tue May 02, 2017 8:23 am

Re: Preparing a Sandisk Cruzer Blade for Linux

Postby xeno74 » Wed May 23, 2018 9:48 pm

Roland,

I use very often a SanDisk Ultra Fit USB 3.0 Flash Drive.

Cheers,
Christian
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
 
Posts: 4236
Joined: Fri Mar 23, 2012 8:58 am

Re: Preparing a Sandisk Cruzer Blade for Linux

Postby Roland » Wed May 23, 2018 9:56 pm

caseycullen wrote:I've good luck with Sandisk Cruizer USB drives using an msdos partition table, a FAT32 partition (for dtb and kernel) and an ext4 partition (dd image onto partition, then correct partition size in gparted). However, I did have issues with a PNY USB drive that I was never able to get uboot to recognize.


Have you also used 64GB Sandisk Cruizers? This is the first USB stick I have of that size, so no experience from other units. In the smaller sizes I have had problems mostly with Kingston DT50 series. They worked slowly and unreliably with Linux, and they are also heating strongly when being just connected. I would recommend to avoid them....

32 GB Sandisk Cruzer Blades has worked best with Linux... Only two times the boot partition (FAT 32) has been corrupted for unknown reason (did not do any writing/deleting operations), but reformatting fixed it.
- Roland -
Roland
 
Posts: 238
Joined: Tue May 02, 2017 8:23 am

Re: Preparing a Sandisk Cruzer Blade for Linux

Postby xeno74 » Wed May 23, 2018 10:31 pm

Roland wrote:Have you also used 64GB Sandisk Cruizers?


I have one with Debian PowerPCSPE for my Tabor board. It works without any problems.

— Christian
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
 
Posts: 4236
Joined: Fri Mar 23, 2012 8:58 am

Re: Preparing a Sandisk Cruzer Blade for Linux

Postby Roland » Thu May 24, 2018 10:11 am

xeno74 wrote:
Roland wrote:Have you also used 64GB Sandisk Cruizers?


I have one with Debian PowerPCSPE for my Tabor board. It works without any problems.


Ok, thanks... What revision # does your Sandisk have? Mine has 1.00. If it the same, then the problem must be in the U-Boot of X5000. Unfortunately I do not have a Tabor to test it there ;-).
- Roland -
Roland
 
Posts: 238
Joined: Tue May 02, 2017 8:23 am


Return to Platform: AmigaOne X5000 - Linux Only

Who is online

Users browsing this forum: thomasrapp and 3 guests