Welcome! Log In Create A New Profile

Advanced

Pogoplug V4 can't boot off Verbatim SD card

Posted by rsantag 
Pogoplug V4 can't boot off Verbatim SD card
November 03, 2021 05:42PM
I'm trying to create a bootable image on a Verbatim SD card (actually, microSD + adapter). I've done this dozens of times with PNY, SD cards, PNY microSD cards and Sandisk microSD cards, but I'm having no luck with a couple of Verbatim cards. All cards are 16GB.

I partition the disk, create the file system, label the partition "rootfs" and extract everything from a tar file. If I mount it on another system, file system looks fine. But when I try to boot on the PogoPlug, I receive one of the following errors (note: USB and IDE entries removed for brevity)

Verbatim Card #1
Quote

MMC rescan: current device # 0 initialized OK
<snip>
Loading envs from mmc 0...
** ext2fs_devread() read error **
** File not found /boot/uEnv.txt **
<snip>
MMC rescan: current device # 0 initialized OK
device mmc 0:1
** ext2fs_devread() read error **
** File not found /boot/uImage **

Verbatim Card #2
Quote

MMC rescan: current device # 0 initialized OK
<snip>
Loading envs from mmc 0...
** No partition table - mmc 0 **
<snip>
Scan device mmc
mmc_init: -95, time 3198
device mmc 0:1
** No partition table - mmc 0 **

With a PNY microSD card, all works fine:
Quote

MMC rescan: current device # 0 initialized OK
<snip>
Loading envs from mmc 0...
44 bytes read in 21 ms (2 KiB/s)
... envs loaded
importing envs ...
<snip>
Scan device mmc

MMC rescan: current device # 0 initialized OK
device mmc 0:1
1 bytes read in 21 ms (0 Bytes/s)
Found bootable drive on mmc 0
loading uImage ...
5524320 bytes read in 155 ms (34 MiB/s)
loading uInitrd ...
7813499 bytes read in 197 ms (37.8 MiB/s)
loading DTB /boot/dts/kirkwood-pogoplug_v4.dtb ...
9962 bytes read in 57 ms (169.9 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
Image Name: Linux-5.8.3-kirkwood-tld-1
Created: 2020-12-06 20:10:01 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 5524256 Bytes = 5.3 MiB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
Image Name: initramfs-5.8.3-kirkwood-tld-1
Created: 2020-12-06 20:10:14 UTC
Image Type: ARM Linux RAMDisk Image (gzip compressed)
Data Size: 7813435 Bytes = 7.5 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 01c00000
Booting using the fdt blob at 0x1c00000

Has anybody else run into this with Verbatim cards?
Did I maybe just get a bad batch? The weird thing is
I can mount and read the file system fine on another
Pogoplug using a USB SD-card reader.
Re: Pogoplug V4 can't boot off Verbatim SD card
November 03, 2021 06:58PM
Note that, since it can't boot off the SD card, it boots up the old Cloud Engines environment, which then mounts the SD card with no problem.

Quote

root@PogoplugMobile:~# df
Filesystem 1K-blocks Used Available Use% Mounted on
ubi0:rootfs 99432 11768 87664 12% /
none 59312 8 59304 0% /tmp
/tmp/.cemnt/mmcblk0p1
7659144 1725368 5544708 24% /tmp/.cemnt/mnt_mmcblk0p1
root@PogoplugMobile:~# cd /tmp/.cemnt/mnt_mmcblk0p1/
root@PogoplugMobile:/tmp/.cemnt/mnt_mmcblk0p1# ls -al
drwxr-xr-x 22 root root 4096 Aug 24 2020 .
drwxr-xr-x 3 root root 100 Nov 3 23:52 ..
drwxr-xr-x 2 root root 4096 Nov 3 23:54 .cedata
-rw-r--r-- 1 root root 61 Jan 1 1970 .ceid
drwxr-xr-x 2 root root 4096 Aug 23 2020 bin
drwxr-xr-x 3 root root 4096 Dec 6 2020 boot
drwxr-xr-x 5 root root 4096 Feb 24 2012 dev
drwxr-xr-x 73 root root 4096 Nov 3 21:07 etc
drwxr-xr-x 2 root root 4096 Sep 18 2020 home
drwxr-xr-x 14 root root 4096 Aug 23 2020 lib
drwx------ 2 root root 16384 Feb 24 2012 lost+found
drwxr-xr-x 2 root root 4096 Feb 24 2012 media
drwxr-xr-x 2 root root 4096 Feb 10 2015 mnt
drwxr-xr-x 3 root root 4096 Aug 23 2020 opt
drwxr-xr-x 2 root root 4096 Jan 22 2012 proc
drwx------ 5 root root 4096 Sep 18 2020 root
drwxr-xr-x 2 root root 4096 Feb 8 2013 run
drwxr-xr-x 2 root root 4096 Mar 30 2021 sbin
drwxr-xr-x 2 root root 4096 Feb 24 2012 srv
-rw------- 1 root root 268435456 Aug 24 2020 swapfile
drwxr-xr-x 2 root root 4096 Jan 1 2011 sys
drwxrwxrwt 2 root root 4096 Nov 3 21:06 tmp
drwxr-xr-x 10 root root 4096 Feb 24 2012 usr
drwxr-xr-x 12 root root 4096 Aug 23 2020 var
root@PogoplugMobile:/tmp/.cemnt/mnt_mmcblk0p1#
Re: Pogoplug V4 can't boot off Verbatim SD card
November 03, 2021 10:16PM
rsantag,

First, remember to always post the u-boot banner so I know which version you are running. I assumeit is the latest, u-boot-2017.07-tld-1?

And yes, it sounds like issue about u-boot dealing with microSD adapters.

Quote

With a PNY microSD card, all works fine:

Does it have a different adapter? or are you using the same adapter for this PNY and Verbatim? if it is different, then use that adapter to see if you can boot.

Linux has a better driver (more quirks have been found and incorporated), for u-boot there are still cases when we can not boot with a specific microSD adapter. From time to time, I still found a Sandisk or Transcend adapter that does not work.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: