cannot boot latest RCN image from 2016-09-28 on BBGW

97 views
Skip to first unread message

Stephane Charette

unread,
Oct 1, 2016, 10:42:09 PM10/1/16
to BeagleBoard
Trying to test the latest RCN image from 2016-09-28.  But I get a kernel panic before the flashing begins.  Serial debug console shows these errors:

Begin: Running /scripts/local-premount ... done.
Begin: Will now check root file system ... fsck from util-linux 2.25.2
fsck: error 2 (No such file or directory) while executing fsck.ext4 for /dev/mmcblk1p1
fsck exited with status code 8
done.
Warning: File system check failed but did not detect errors
[    9.628045] EXT4-fs (mmcblk1p1): mounted filesystem with ordered data mode. Opts: (null)
done.
Target filesystem doesn't have requested /opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
switch_root: can't execute '/bin/sh': No such file or directory
[    9.758682] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100
...insert kernel dump here...

At this point everything hangs.  Anyone else seeing the same thing?  Build used is this one:  https://rcn-ee.com/rootfs/bb.org/testing/2016-09-28/seeed-iot/BBGW-blank-debian-8.6-seeed-iot-armhf-2016-09-28-4gb.img.xz

Stéphane

Robert Nelson

unread,
Oct 1, 2016, 11:46:16 PM10/1/16
to Beagle Board
Just double checked ^... seems to be working correctly...

[ 3.483814] remoteproc0: powering up wkup_m3
[ 3.488330] remoteproc0: Booting fw image am335x-pm-firmware.elf,
size 217148
[ 3.495902] remoteproc0: remote processor wkup_m3 is now up
[ 3.501611] wkup_m3_ipc 44e11324.wkup_m3_ipc: CM3 Firmware Version = 0x192
[ 3.514132] bone_capemgr bone_capemgr: Baseboard:
'A335BNLT,GW1A,BBGW16055517'
-----------------------------
Starting eMMC Flasher from microSD media
Version: [1.20160909: u-boot 1MB -> 4MB hole...]
-----------------------------
Checking for Valid bbgw-eeprom header
Valid bbgw-eeprom header found [335]
-----------------------------
copying: [/dev/mmcblk0] -> [/dev/mmcblk1]
lsblk:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
mmcblk1boot0 179:16 0 2M 1 disk
mmcblk1boot1 179:24 0 2M 1 disk
mmcblk0 179:0 0 7.4G 0 disk
`-mmcblk0p1 179:1 0 3.3G 0 part /
mmcblk1 179:8 0 3.7G 0 disk
`-mmcblk1p1 179:9 0 3.7G 0 part
-----------------------------
df -h | grep rootfs:
df: cannot read table of mounted file systems: No such file or directory
-----------------------------
Erasing: /dev/mmcblk1
108+0 records in
108+0 records out
113246208 bytes (113 MB) copied, 9.48847 s, 11.9 MB/s
[ 28.416409] random: nonblocking pool is initialized
108+0 records in
108+0 records out
113246208 bytes (113 MB) copied, 2.88258 s, 39.3 MB/s
Erasing: /dev/mmcblk1 complete
-----------------------------
Writing bootloader to [/dev/mmcblk1]
dd if=/opt/backup/uboot/MLO of=/dev/mmcblk1 count=1 seek=1 conv=notrunc bs=128k
-----------------------------
0+1 records in
0+1 records out
69124 bytes (69 kB) copied, 0.0170685 s, 4.0 MB/s
-----------------------------
dd if=/opt/backup/uboot/u-boot.img of=/dev/mmcblk1 count=2 seek=1
conv=notrunc bs=384k
-----------------------------
0+1 records in
0+1 records out
375108 bytes (375 kB) copied, 0.0588013 s, 6.4 MB/s
-----------------------------
Formatting: /dev/mmcblk1
sfdisk: [sfdisk from util-linux 2.25.2]
sfdisk: [sfdisk --force --Linux --in-order --unit M /dev/mmcblk1]
sfdisk: [4,,L,*]
sfdisk: Checking that no-one is using thi[ 30.433117] mmcblk1: p1
s disk right now ...
sfdisk: OK

Disk /dev/mmcblk1: 119296 cylinders, 4 heads, 16 sectors/track
sfdisk: /dev/mmcblk1: unrecognized partition table type
Old situation:
sfdisk: No partitions found
New situation:
Units: 1MiB = 1024*1024 bytes, blocks of 1024 bytes, counting from 0

Device Boot Start End MiB #blocks Id System
/dev/mmcblk1p1 * 4 3727 3724 3813376 83 Linux
/dev/mmcblk1p2 0 - 0 0 0 Empty
/dev/mmcblk1p3 0 - 0 0 0 Empty
/dev/mmcblk1p4 0 - 0 0 0 Empty
Successfully wrote the new partition table

Re-reading the partition table ...

sfdisk: If you created or changed a DOS partition, /dev/foo7, say,
then use dd(1)
to zero the first 512 bytes: dd if=/dev/zero of=/dev/foo7 bs=512 count=1
(See fdisk(8).)
mkfs.ext4 -c -O ^metadata_csum,^64bit /dev/mmcblk1p1 -L rootfs
-----------------------------
mke2fs 1.43 (17-May-2016)
ext2fs_check_if_mount: Can't check if filesystem is mounted due to
missing mtab file while determining whether /dev/mmcblk1p1 is mounted.
Discarding device blocks: done
Creating filesystem with 953344 4k blocks and 238560 inodes
Filesystem UUID: e70fe1ee-d0b6-4302-b91b-df0b2b55248d
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736

Regards,

--
Robert Nelson
https://rcn-ee.com/

evilwulfie

unread,
Oct 2, 2016, 12:16:22 AM10/2/16
to beagl...@googlegroups.com
you are using a good quality power supply ?

Stephane Charette

unread,
Oct 2, 2016, 1:17:05 AM10/2/16
to BeagleBoard
On Saturday, October 1, 2016 at 8:46:16 PM UTC-7, RobertCNelson wrote:
On Sat, Oct 1, 2016 at 9:42 PM, Stephane Charette
<stephane...@gmail.com> wrote:
> Trying to test the latest RCN image from 2016-09-28.  But I get a kernel
> panic before the flashing begins.  Serial debug console shows these errors:
...

Just double checked ^... seems to be working correctly...


Nevermind.  I tried several images over the past 2 months, and they were all failing the same way.  I completely shut down my desktop, rebooted it, re-wrote the latest image to my uSD card, and now it is all working again.  Latest image is up and running on my BBGW.  Lost half my evening to this issue.  I don't know why/how Linux sometimes seems to lose its shit when writing images, and when it happens, a complete reboot seems to be the only thing to fix it.

Sorry for the false alarm.

Stéphane

Jason Kridner

unread,
Oct 2, 2016, 1:16:20 PM10/2/16
to beagl...@googlegroups.com
Have you tried etcher.io instead of dd?
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/17f44729-ff68-4ef2-ab2a-0a1fcac7e4cf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Stéphane Charette

unread,
Oct 2, 2016, 2:25:23 PM10/2/16
to beagl...@googlegroups.com
On Sun, Oct 2, 2016 at 10:15 AM, Jason Kridner <jkri...@gmail.com> wrote:
Have you tried etcher.io instead of dd?


Just tried it.  Definitely more friendly than dd.  Thanks for the suggestion.

Stéphane
Reply all
Reply to author
Forward
0 new messages