Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Beaglebone Black -current error on partition resize



Is it a GPT partition?  I'd stick the SD in a reader and fsck it from some other machine.  I only use Sandisk, never tried EVO, lately the High Endurance ones.  B&H Photo or Adorama prices are good, just got 2 128 GB ones for about $60.  No problem with any of them in at least a year.  Readers wear out (contacts) more than SD cards.  You can get extra life from the readers by using the adapters to full size and plugging into the full size socket on the reader.  It's mostly what I use lately, have about 6 little machines running.

On Nov 27, 2019 3:12 AM, <dhop%nwlink.com@localhost> wrote:
Apologies if this is malformed, I've been away from the lists a spell and
now trying different email clients to find one that behaves.

I'm trying to boot -current using a generic 32-bit image from invisible.ca
on a Beaglebone Black, and I'm getting a ton of errors after fs expansion.
I suspect that the expansion is clobbering the FAT partition, because on
reboot I get a ton of errors of the form:
[...]
/dev/rld0e: Cluster 20363 is marked free in FAT 0, but continues with
cluster 19884 in FAT 1
/dev/rld0e: Cluster 20364 is marked free in FAT 0, but continues with
cluster 19885 in FAT 1
/dev/rld0e: Cluster 20365 is marked free in FAT 0, but continues with
cluster 19886 in FAT 1
/dev/rld0e: Cluster 20366 is marked free in FAT 0, as EOF in FAT 1
/dev/rld0e: Cluster 20403 is marked free in FAT 0, but continues with
cluster 19924 in FAT 1
/dev/rld0e: Cluster 20404 is marked free in FAT 0, but continues with
cluster 19925 in FAT 1
/dev/rld0e: Cluster 20405 is marked free in FAT 0, as EOF in FAT 1
/dev/rld0e: Cluster 20412 is marked free in FAT 0, but continues with
cluster 19933 in FAT 1
/dev/rld0e: Cluster 20413 is marked free in FAT 0, but continues with
cluster 19934 in FAT 1
/dev/rld0e: Cluster 20414 is marked free in FAT 0, but continues with
cluster 19935 in FAT 1
[...]

I'm using a Samsung EVO Plus 32-gig SD card.  The log looks like this:
[   2.3838543] boot device: ld0
[   2.3928375] root on ld0a dumps on ld0b
[   2.3928375] mountroot: trying ffs...
[   2.4036180] root file system type: ffs
[   2.4126108] kern.module.path=/stand/evbarm/9.0/modules
[   2.4126108] WARNING: no TOD clock present
[   2.4126108] WARNING: using filesystem time
[   2.4266791] WARNING: CHECK AND RESET THE DATE!
[   2.4326108] init: copying out path `/sbin/init' 11
Sun Nov 24 23:53:43 UTC 2019
Starting root file system check:
/dev/rld0a: file system is clean; not checking
Growing ld0 MBR partition #1 (1065MB -> 30304MB)
Growing ld0 disklabel (1289MB -> 30528MB)
Resizing /
reboot: rebooted by root

[ 188.1726085] rebooting...

[...]
Starting root file system check:
/dev/rld0a: file system is clean; not checking
fdisk: Cannot determine the number of heads
Not resizing /: already correct size
swapctl: adding /dev/ld0b as swap device at priority 0
Starting file system checks:
[   7.7326103] sdhc0: cmd timeout error
[   7.7573527] ld0e: error reading fsbn 1 of 1-80 (ld0 bn 32769; cn 16 tn 0
sn 1), retrying
[   8.4026094] sdhc0: timeout waiting for mask 0x3 value 0 (state=0x1f70a06)
[   8.4026094] sdhc0: command or data phase inhibited
[   8.4426097] sdhc0: cmd timeout error
[   8.4539879] ld0e: error reading fsbn 81 of 81-160 (ld0 bn 32849; cn 16 tn
2 sn 17), retrying
/dev/rld0e: FAT starts with odd byte sequence (00000000)
FIXED
/dev/rld0e: Cluster 256 in FAT 0 continues with out of range cluster number
65520
/dev/rld0e: FAT starts with odd byte sequence (00000000)
FIXED
[...]

Then the cluster errors cascade ending with a panic.  I'm new to the BBB so
I bet I'm doing something wrong here, but I am using the current pkgsrc
U-Boot:

----------
U-Boot SPL 2018.11 (Nov 26 2019 - 15:10:39 -0800)
Trying to boot from MMC1
Loading Environment from FAT... *** Warning - bad CRC, using default
environment
Loading Environment from MMC... *** Warning - bad CRC, using default
environment

U-Boot 2018.11nb4 (Nov 26 2019 - 15:10:39 -0800)

CPU  : AM335X-GP rev 2.1
I2C:   ready
DRAM:  512 MiB
No match for driver 'omap_hsmmc'
No match for driver 'omap_hsmmc'
Some drivers were not found
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
Loading Environment from FAT... *** Warning - bad CRC, using default
environment
Loading Environment from MMC... *** Warning - bad CRC, using default
environment

<ethaddr> not set. Validating first E-fuse MAC
Net:   cpsw, usb_ether
Press SPACE to abort autoboot in 2 seconds
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
480 bytes read in 5 ms (93.8 KiB/s)
Running bootscript from mmc0 ...
## Executing script at 82000000
6490580 bytes read in 410 ms (15.1 MiB/s)
## Booting kernel from Legacy Image at 82000000 ...
   Image Name:   NetBSD/beagle 9.0_BETA
   Created:      2019-11-24  23:44:57 UTC
   Image Type:   ARM NetBSD Kernel Image (uncompressed)
   Data Size:    6490516 Bytes = 6.2 MiB
   Load Address: 80300000
   Entry Point:  80300000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
## Transferring control to NetBSD stage-2 loader (at address 80300000) ...
[   1.0000000] uboot arg = 0x9df36f98, 0, 0x9ffa4003, 0x9df41168
[...]

--David




Home | Main Index | Thread Index | Old Index