[Vmdebootstrap-devel] Bug#874535: vmdebootstrap: BeagleBone Black example is not bootable on BeagleBone Black hardware
Tyler Riddle
cardboardaardvark at gmail.com
Thu Sep 7 03:42:12 UTC 2017
Package: vmdebootstrap
Version: 1.7-1
Severity: important
Dear Maintainer,
I am highly interested in using Debian with my BeagleBone Black hardware but have
run into an issue with vmdebootstrap: the provided example scripts will run
with out error but do not produce a bootable image. I am able to reproduce this
problem 100% of the time.
Here are the steps I've taken (with logs from the session included below):
1. Execute /usr/share/vmdebootstrap/examples/beagleboneblack.sh with --image and --size options
2. Write the generated image to a microSD card
3. Boot the BBB off the microSD by holding the user button down at power on
The serial output of the BBB includes output from uboot so the image is at least
partially functional. What I observe is uboot outputting "Staring kernel ..."
then a hang for approximiately 1 minute. After this delay it looks like the BBB
reboots as the uboot output shows up on the serial port again. What I believe
is happening is a watchdog is rebooting the hardware because the kernel has
not loaded. What I do not think is the problem is the kernel has booted and
is not using the serial device for the console.
What I expected to happen is to run the example scripts unmodified and have
a BeagleBone Black image that boots into a Debian operating system.
At this time I haven't found anything that gets the BBB to boot with the image
generated by vmdebootstrap. I can, however, boot the Debian installer but I can
not get a bootable install from it either and I can't yet confirm the issues
are identical.
Here is the output from the session where I created the image and wrote it to
a microSD card:
tyler at happytime:~/tmp$ /usr/share/vmdebootstrap/examples/beagleboneblack.sh --image bbb.img --size 1G
Creating disk image
Creating partitions
Using bootsize 100mib: 104857600 bytes
Creating filesystem ext4
Mounting /dev/mapper/loop0p2 on /tmp/tmpZfQvdh
Creating filesystem vfat
Mounting /dev/mapper/loop0p1 on /tmp/tmpZfQvdh/boot/
Debootstrapping sid [armhf]
Setting up binfmt handler
Running debootstrap second stage
Give root an empty password
Removing udev persistent cd and net rules
Enabling systemd-networkd for DHCP
Enabling systemctl-resolved for DNS
Running customize script /usr/share/vmdebootstrap/examples/beagleboneblack-customise.sh
Updating the initramfs
Optimizing image for compression
Umounting /tmp/tmpZfQvdh/boot/
Umounting /tmp/tmpZfQvdh
Changing owner to tyler
Cleaning up
tyler at happytime:~/tmp$ sudo dd if=bbb.img of=/dev/sdd bs=1M
[sudo] password for tyler:
953+1 records in
953+1 records out
1000000000 bytes (1.0 GB, 954 MiB) copied, 53.7612 s, 18.6 MB/s
tyler at happytime:~/tmp$
and here is the output from the serial console attached to the BBB hardware showing
two boot attempts though no manual reboot was made and no power cycle was performed.
U-Boot SPL 2017.07+dfsg1-3 (Aug 04 2017 - 19:56:56)
Trying to boot from MMC1
** First descriptor is NOT a primary desc on 1:1 **
*** Warning - bad CRC, using default environment
reading u-boot.img
reading u-boot.img
U-Boot 2017.07+dfsg1-3 (Aug 04 2017 - 19:56:56 +0000)
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
** First descriptor is NOT a primary desc on 1:1 **
*** Warning - bad CRC, using default environment
<ethaddr> not set. Validating first E-fuse MAC
Net: Could not get PHY for cpsw: addr 0
cpsw
Press SPACE to abort autoboot in 2 seconds
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
reading boot.scr
** Unable to read file boot.scr **
reading uEnv.txt
755 bytes read in 6 ms (122.1 KiB/s)
Loaded env from uEnv.txt
Importing environment from mmc0 ...
Running uenvcmd ...
reading vmlinuz-4.12.0-1-armmp
3864464 bytes read in 251 ms (14.7 MiB/s)
reading initrd.img-4.12.0-1-armmp
16194586 bytes read in 1027 ms (15 MiB/s)
reading /dtbs/am335x-boneblack.dtb
35788 bytes read in 13 ms (2.6 MiB/s)
## Flattened Device Tree blob at 80f80000
Booting using the fdt blob at 0x80f80000
Using Device Tree in place at 80f80000, end 80f8bbcb
Starting kernel ...
U-Boot SPL 2017.07+dfsg1-3 (Aug 04 2017 - 19:56:56)
Trying to boot from MMC1
** First descriptor is NOT a primary desc on 1:1 **
*** Warning - bad CRC, using default environment
reading u-boot.img
reading u-boot.img
U-Boot 2017.07+dfsg1-3 (Aug 04 2017 - 19:56:56 +0000)
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
** First descriptor is NOT a primary desc on 1:1 **
*** Warning - bad CRC, using default environment
<ethaddr> not set. Validating first E-fuse MAC
Net: Could not get PHY for cpsw: addr 0
cpsw
Press SPACE to abort autoboot in 2 seconds
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
reading boot.scr
** Unable to read file boot.scr **
reading uEnv.txt
755 bytes read in 6 ms (122.1 KiB/s)
Loaded env from uEnv.txt
Importing environment from mmc0 ...
Running uenvcmd ...
reading vmlinuz-4.12.0-1-armmp
3864464 bytes read in 252 ms (14.6 MiB/s)
reading initrd.img-4.12.0-1-armmp
16194586 bytes read in 1028 ms (15 MiB/s)
reading /dtbs/am335x-boneblack.dtb
35788 bytes read in 14 ms (2.4 MiB/s)
## Flattened Device Tree blob at 80f80000
Booting using the fdt blob at 0x80f80000
Using Device Tree in place at 80f80000, end 80f8bbcb
Starting kernel ...
-- System Information:
Debian Release: 9.1
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.9.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE= (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages vmdebootstrap depends on:
ii debootstrap 1.0.89
ii kpartx 0.6.4-5
ii libjs-sphinxdoc 1.4.9-2
ii parted 3.2-17
ii python 2.7.13-2
ii python-cliapp 1.20160724-2
ii python-distro-info 0.14
ii python2.7 2.7.13-2
ii qemu-utils 1:2.8+dfsg-6+deb9u2
Versions of packages vmdebootstrap recommends:
ii dosfstools 4.1-1
ii extlinux 3:6.03+dfsg-14.1
ii grub2-common 2.02~beta3-5
ii python-guestfs 1:1.34.6-2
ii qemu-system 1:2.8+dfsg-6+deb9u2
ii qemu-user-static 1:2.8+dfsg-6+deb9u2
ii squashfs-tools 1:4.3-3+deb9u1
Versions of packages vmdebootstrap suggests:
pn cmdtest <none>
pn mbr <none>
pn pandoc <none>
pn u-boot <none>
-- no debconf information
More information about the Vmdebootstrap-devel
mailing list