32GB card on Beaglebone?

Has anyone gotten a 32GB card to work on the Beaglebone?

- Grant

Yes I did. You can see my G+ post about it.

https://plus.google.com/u/0/111314977694735577722/posts/9dDNqD8Dds4

Thanks, it sounds like some 32GB cards work and some don't. I skimmed
your post and it looks like a faster card increases I/O performance so
that's great. I have this 32GB Sandisk I'd like to try:

http://www.amazon.co.uk/gp/product/B007JTKLEK

- Grant

Can you run flashbench [1][2] on it? I'm curious to see the results for
that card.

[1]:http://git.linaro.org/gitweb?p=people/arnd/flashbench.git;a=summary
[2]:https://wiki.linaro.org/WorkingGroups/Kernel/Projects/FlashCardSurvey

-Andrew

> Yes I did. You can see my G+ post about it.
>
> https://plus.google.com/u/0/111314977694735577722/posts/9dDNqD8Dds4

Thanks, it sounds like some 32GB cards work and some don't. I
skimmed your post and it looks like a faster card increases I/O
performance so that's great. I have this 32GB Sandisk I'd like to
try:

http://www.amazon.co.uk/gp/product/B007JTKLEK

Can you run flashbench [1][2] on it? I'm curious to see the results for
that card.

[1]:http://git.linaro.org/gitweb?p=people/arnd/flashbench.git;a=summary
[2]:https://wiki.linaro.org/WorkingGroups/Kernel/Projects/FlashCardSurvey

-Andrew

I started Linux life with Gentoo so I don't know how to compile
software manually and I'm fine with that as I want portage to know
about everything that's installed. I would be happy to install and
test if there were an ebuild for flashbench.

- Grant

>> > Yes I did. You can see my G+ post about it.
>> >
>> > https://plus.google.com/u/0/111314977694735577722/posts/9dDNqD8Dds4
>>
>> Thanks, it sounds like some 32GB cards work and some don't. I
>> skimmed your post and it looks like a faster card increases I/O
>> performance so that's great. I have this 32GB Sandisk I'd like to
>> try:
>>
>> http://www.amazon.co.uk/gp/product/B007JTKLEK
>
> Can you run flashbench [1][2] on it? I'm curious to see the
> results for that card.
>
> [1]:http://git.linaro.org/gitweb?p=people/arnd/flashbench.git;a=summary
> [2]:https://wiki.linaro.org/WorkingGroups/Kernel/Projects/FlashCardSurvey
>
> -Andrew

I started Linux life with Gentoo so I don't know how to compile
software manually and I'm fine with that as I want portage to know
about everything that's installed. I would be happy to install and
test if there were an ebuild for flashbench.

OK, but if you choose to build from source without an ebuild (or, maybe
even submit an ebuild yourself), here's how:

Clone the git repo:

$ git clone http://git.linaro.org/git-ro/people/arnd/flashbench.git

Build:

$ make

Done :slight_smile:

I'm sorry to pull this OT but maybe I will end up being helpful. Will
the above install files throughout the filesystem or just compile a
single binary? Do you know about how large the download is? I'm on a
metered connection right now but I'm guessing it's a small download.

- Grant

Yes I did. You can see my G+ post about it.

https://plus.google.com/u/0/111314977694735577722/posts/9dDNqD8Dds4

Thanks, it sounds like some 32GB cards work and some don't. I skimmed
your post and it looks like a faster card increases I/O performance so
that's great. I have this 32GB Sandisk I'd like to try:

http://www.amazon.co.uk/gp/product/B007JTKLEK

- Grant

It works! Loving the increased performance....

- Grant

Sorry if this is a reply I've already sent, had some mail troubles this
weekend.

>> >> > Yes I did. You can see my G+ post about it.
>> >> >
>> >> > https://plus.google.com/u/0/111314977694735577722/posts/9dDNq
>> >> > D8Dds4
>> >>
>> >> Thanks, it sounds like some 32GB cards work and some don't. I
>> >> skimmed your post and it looks like a faster card increases I/O
>> >> performance so that's great. I have this 32GB Sandisk I'd like
>> >> to try:
>> >>
>> >> http://www.amazon.co.uk/gp/product/B007JTKLEK
>> >
>> > Can you run flashbench [1][2] on it? I'm curious to see the
>> > results for that card.
>> >
>> > [1]:http://git.linaro.org/gitweb?p=people/arnd/flashbench.git;a=
>> > summary
>> > [2]:https://wiki.linaro.org/WorkingGroups/Kernel/Projects/Flash
>> > CardSurvey
>> >
>> > -Andrew
>>
>> I started Linux life with Gentoo so I don't know how to compile
>> software manually and I'm fine with that as I want portage to know
>> about everything that's installed. I would be happy to install
>> and test if there were an ebuild for flashbench.
>
> OK, but if you choose to build from source without an ebuild (or,
> maybe even submit an ebuild yourself), here's how:
>
> Clone the git repo:
>
> $ git clone http://git.linaro.org/git-ro/people/arnd/flashbench.git

I'm actually having issues cloning from that repo right now, see below
for alternate address.

>
> Build:
>
> $ make
>
> Done :slight_smile:

I'm sorry to pull this OT but maybe I will end up being helpful.
Will the above install files throughout the filesystem or just
compile a single binary?

It compiles to 2 binaries. Nothing gets placed outside the flashbench
directory.

Do you know about how large the download
is? I'm on a metered connection right now but I'm guessing it's a
small download.

The entire git repo (locally on my machine) clocks in around 500 KB, the
act of cloning should download a bit less than that. If you want to
clone even less, give 'git clone --depth 1' a try, to only clone the
HEAD of the repo:

$ git clone --depth 1 git://git.linaro.org/people/arnd/flashbench.git

-Andrew

>> >> http://www.amazon.co.uk/gp/product/B007JTKLEK
>> >
>> > Can you run flashbench [1][2] on it? I'm curious to see the
>> > results for that card.
>> >
>> > [1]:http://git.linaro.org/gitweb?p=people/arnd/flashbench.git;a=summary
>> > [2]:https://wiki.linaro.org/WorkingGroups/Kernel/Projects/FlashCardSurvey
>> >

[snip]

> Clone the git repo:
>
> $ git clone http://git.linaro.org/git-ro/people/arnd/flashbench.git
>
> Build:
>
> $ make
>
> Done :slight_smile:

flashbench is compiled and awaiting instructions. What command would
you like me to run? Can I run it from the beaglebone? It won't
destroy data?

- Grant

It will destroy data if you do anything other than the '-a' (read test)
option.

I suggest running flashbench only on something that you haven't booted
off of. For example, if you only have one MMC card on your bone and
that's what you boot from, don't run flashbench on that card. If you
can boot your bone with an NFS root or a ramdisk, then it's safe to run
flashbench on that card.

Things work best if you have a desktop or laptop PC (or can boot off of
a non-mmc device on an embedded board) with an mmc device, so when you
insert an SD card, you see a device like /dev/mmcblk0. If not, that's
OK, but you won't be able to extract quite as much info, for example,
if you have a USB SD reader that shows up as a SCSI device
like /dev/sdc or similar.

A few tests to run (sub my /dev/mmcblk0 with what ever your card shows
up as), then send the results to the flashbench-results mailing list
[1] and ask for what to do next there (I'm on that list and can help
you further there, or others on that list can give good advice, possibly
better than mine):

$ head /sys/block/mmcblk0/device/* 2>/dev/null | grep -v ^$

$ sudo fdisk -l /dev/mmcblk0 | grep Disk

$ sudo ./flashbench -a /dev/mmcblk0 --blocksize=1024

$ sudo ./flashbench /dev/mmcblk0 -f

[1]:http://lists.linaro.org/mailman/listinfo/flashbench-results

For any of those commands, if run as root, obviously you don't need
the sudo part. If you want to try out some other commands, give the
--open-au switches a try. The README or other posts in the archive
should give you some direction.

-Andrew

But be aware, you will risk destroying the partition map, FAT partition
contents, and u-boot's files if you run anything other than the -a
option. So, really, booting from serial to load u-boot followed by a
ramdisk or NFS root is the best (only?) option on the bone.

A laptop works well for running flashbench.

-Andrew