Re: BeagleBoard Black Won't Boot into OpenBSD Installer

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: BeagleBoard Black Won't Boot into OpenBSD Installer

Kenneth Hendrickson
Toggling the bootable flag on the MSDOS partition on the internal flash, so that only the MSDOS partition on the Micro SD card had the bootable flag set, DID NOT WORK.

Nothing seems to work.

What is the secret sauce to get it to boot from the micro SD card?



--------------------------------------------
On Sat, 5/13/17, Kenneth Hendrickson <[hidden email]> wrote:

 Subject: Re: BeagleBoard Black Won't Boot into OpenBSD Installer
 To: [hidden email]
 Date: Saturday, May 13, 2017, 12:58 AM
 
 I followed this:
 http://www.TedUnangst.com/flak/post/OpenBSD-on-BeagleBone-Black
 
 but it always booted into Linux.
 
 What is the secret sauce to get it to
 boot from the micro SD card?
 
 
 --------------------------------------------
 On Sat, 5/13/17, Kenneth Hendrickson
 <[hidden email]>
 wrote:
 
  Subject: BeagleBoard Black Won't Boot
 into OpenBSD Installer
  To: [hidden email]
  Date: Saturday, May 13, 2017, 12:04
 AM
 
  I can't get Beagleboard Black to boot
 into
  the OpenBSD installer.
  What am I doing wrong?
 
  What I did:
  * Copied miniroot-am335x-61.fs to my
  Micro SD card with dd
  * Placed Micro SD card into
 Beagleboard
  Black
  * Held button hear SD card while
  applying power, and/or rebooting
 
  It always reboots into Linux.
 
  Evidence:
 
  root@beaglebone:~#
  reboot
 
  Broadcast message from root@beaglebone
  (ttyO0) (Thu Nov 12 19:07:03 2015):
  The system is going down for reboot
  NOW!
  root@beaglebone:~#
  Sending SIGTERM to remaining
 processes...
  Sending SIGKILL to remaining
  processes...
  Unmounting file systems.
  Unmounted /sys/fs/fuse/connections.
  Unmounted /sys/kernel/security.
  Unmounted /sys/kernel/debug.
  Unmounted /dev/mqueue.
  Disabling swaps.
  Detaching loop devices.
  Detaching DM devices.
  [  324.358219] (NULL device *):
  gadget not registered.
  [  324.371348] Restarting system.
 
  U-Boot SPL 2015.10-00001-g143c9ee
 (Nov
  06 2015 - 15:27:19)
  bad magic
 
 
  U-Boot 2015.10-00001-g143c9ee (Nov 06
  2015 - 15:27:19 -0600), Build:
 jenkins-gi4
 
         Watchdog enabled
  I2C:   ready
  DRAM:  512 MiB
  Reset Source: Power-on reset has
  occurred.
  MMC:   OMAP SD/MMC: 0, OMAP
  SD/MMC: 1
  Using default environment
 
  Net:   <ethaddr> not set.
  Validating first E-fuse MAC
  cpsw
  Hit any key to stop autoboot:  0
  gpio: pin 53 (gpio 53) value is 1
  switch to partitions #0, OK
  mmc0 is current device
  gpio: pin 54 (gpio 54) value is 1
  Failed to mount ext2 filesystem...
  ** Unrecognized filesystem type **
  Checking for: /uEnv.txt ...
  Failed to mount ext2 filesystem...
  ** Unrecognized filesystem type **
  Checking for: /boot.scr ...
  Failed to mount ext2 filesystem...
  ** Unrecognized filesystem type **
  Checking for: /boot/boot.scr ...
  Failed to mount ext2 filesystem...
  ** Unrecognized filesystem type **
  Checking for: /boot/uEnv.txt ...
  Failed to mount ext2 filesystem...
  ** Unrecognized filesystem type **
  ** Invalid partition 2 **
  ** Invalid partition 3 **
  ** Invalid partition 4 **
  ** Invalid partition 5 **
  ** Invalid partition 6 **
  ** Invalid partition 7 **
  gpio: pin 56 (gpio 56) value is 0
  gpio: pin 55 (gpio 55) value is 0
  gpio: pin 54 (gpio 54) value is 0
  switch to partitions #0, OK
  mmc1(part 0) is current device
  gpio: pin 54 (gpio 54) value is 1
  Checking for: /uEnv.txt ...
  Checking for: /boot.scr ...
  Checking for: /boot/boot.scr ...
  Checking for: /boot/uEnv.txt ...
  gpio: pin 55 (gpio 55) value is 1
  1800 bytes read in 15 ms (117.2
 KiB/s)
  Loaded environment from
 /boot/uEnv.txt
  Checking if uname_r is set in
  /boot/uEnv.txt...
  gpio: pin 56 (gpio 56) value is 1
  Running uname_boot ...
  loading /boot/vmlinuz-3.8.13-bone79
  ...
  5644336 bytes read in 328 ms (16.4
  MiB/s)
  loading
 
 /boot/dtbs/3.8.13-bone79/am335x-boneblack.dtb ...
  26118 bytes read in 21 ms (1.2 MiB/s)
  loading
 /boot/initrd.img-3.8.13-bone79
  ...
  2862929 bytes read in 175 ms (15.6
  MiB/s)
  debug: [console=ttyO0,115200n8
 
 root=UUID=ea3d5ca5-9e98-4dba-805d-387512f01c15 r.
  debug: [bootz 0x82000000
  0x88080000:2baf51 0x88000000] ...
  Kernel image @ 0x82000000 [ 0x000000
 -
  0x562030 ]
  ## Flattened Device Tree blob at
  88000000
     Booting using the fdt blob
 at
  0x88000000
     Loading Ramdisk to 8fd45000,
  end 8fffff51 ... OK
     Loading Device Tree to
  8fd3b000, end 8fd44605 ... OK
 
  Starting kernel ...
 
  Uncompressing Linux... done, booting
  the kernel.
  [    0.372520]
  omap2_mbox_probe: platform not
 supported
  [    0.528233] tps65217-bl
  tps65217-bl: no platform data
 provided
  [    0.592209] bone-capemgr
  bone_capemgr.9: slot #0: No cape
 found
  [    0.629317] bone-capemgr
  bone_capemgr.9: slot #1: No cape
 found
  [    0.666425] bone-capemgr
  bone_capemgr.9: slot #2: No cape
 found
  [    0.703534] bone-capemgr
  bone_capemgr.9: slot #3: No cape
 found
  [    0.719284] bone-capemgr
  bone_capemgr.9: slot #6:
 BB-BONELT-HDMIN conflict P)
  [    0.728854] bone-capemgr
  bone_capemgr.9: slot #6: Failed
 verification
  [    0.735582] bone-capemgr
  bone_capemgr.9: loader: failed to load
 slot-6 BB-BO)
  [    0.752256] omap_hsmmc
  mmc.5: of_parse_phandle_with_args of
 'reset' failed
  [    0.815133] pinctrl-single
  44e10800.pinmux: pin 44e10854 already
 requested b8
  [    0.826793] pinctrl-single
  44e10800.pinmux: pin-21 (gpio-leds.8)
 status -22
  [    0.834063] pinctrl-single
  44e10800.pinmux: could not request pin
 21 on devie
  Loading, please wait...
  systemd-fsck[204]: rootfs: clean,
  97232/227584 files, 519551/909056
 blocks
 
  Debian GNU/Linux 7 beaglebone ttyO0
 
  BeagleBoard.org Debian Image
  2015-11-12
 
  Support/FAQ: http://elinux.org/Beagleboard:BeagleBoneBlack_Debian
 
  default username:password is
  [debian:temppwd]
 
  The IP Address for usb0 is:
  192.168.7.2
  beaglebone login: [  
 26.205892]
  libphy: PHY 4a101000.mdio:01 not
 found
  [   26.210972] net eth0: phy
  4a101000.mdio:01 not found on slave 1
 
  Debian GNU/Linux 7 beaglebone ttyO0
 
  BeagleBoard.org Debian Image
  2015-11-12
 
  Support/FAQ: http://elinux.org/Beagleboard:BeagleBoneBlack_Debian
 
  default username:password is
  [debian:temppwd]
 
  The IP Address for usb0 is:
  192.168.7.2
  beaglebone login:
 
 

Reply | Threaded
Open this post in threaded view
|

Re: BeagleBoard Black Won't Boot into OpenBSD Installer

Kenneth Hendrickson
This:
https://wiki.FreeBSD.org/FreeBSD/arm/BeagleBoneBlack
didn't work.

It still always boots into Linux.

I'm still missing the secret sauce to boot from the Micro SD card.


--------------------------------------------
On Sat, 5/13/17, Kenneth Hendrickson <[hidden email]> wrote:

 Subject: Re: BeagleBoard Black Won't Boot into OpenBSD Installer
 To: [hidden email]
 Date: Saturday, May 13, 2017, 1:39 AM
 
 Toggling the bootable flag on the MSDOS
 partition on the internal flash, so that only the MSDOS
 partition on the Micro SD card had the bootable flag set,
 DID NOT WORK.
 
 Nothing seems to work.
 
 What is the secret sauce to get it to
 boot from the micro SD card?
 
 
 
 --------------------------------------------
 On Sat, 5/13/17, Kenneth Hendrickson
 <[hidden email]>
 wrote:
 
  Subject: Re: BeagleBoard Black Won't
 Boot into OpenBSD Installer
  To: [hidden email]
  Date: Saturday, May 13, 2017, 12:58
 AM
 
  I followed this:
  http://www.TedUnangst.com/flak/post/OpenBSD-on-BeagleBone-Black
 
  but it always booted into Linux.
 
  What is the secret sauce to get it to
  boot from the micro SD card?
 
 
 
 --------------------------------------------
  On Sat, 5/13/17, Kenneth Hendrickson
  <[hidden email]>
  wrote:
 
   Subject: BeagleBoard Black Won't
 Boot
  into OpenBSD Installer
   To: [hidden email]
   Date: Saturday, May 13, 2017,
 12:04
  AM
  
   I can't get Beagleboard Black to
 boot
  into
   the OpenBSD installer.
   What am I doing wrong?
  
   What I did:
   * Copied miniroot-am335x-61.fs
 to my
   Micro SD card with dd
   * Placed Micro SD card into
  Beagleboard
   Black
   * Held button hear SD card
 while
   applying power, and/or
 rebooting
  
   It always reboots into Linux.
  
   Evidence:
  
   root@beaglebone:~#
   reboot
  
   Broadcast message from root@beaglebone
   (ttyO0) (Thu Nov 12 19:07:03
 2015):
   The system is going down for
 reboot
   NOW!
   root@beaglebone:~#
   Sending SIGTERM to remaining
  processes...
   Sending SIGKILL to remaining
   processes...
   Unmounting file systems.
   Unmounted
 /sys/fs/fuse/connections.
   Unmounted /sys/kernel/security.
   Unmounted /sys/kernel/debug.
   Unmounted /dev/mqueue.
   Disabling swaps.
   Detaching loop devices.
   Detaching DM devices.
   [  324.358219] (NULL device
 *):
   gadget not registered.
   [  324.371348] Restarting
 system.
  
   U-Boot SPL
 2015.10-00001-g143c9ee
  (Nov
   06 2015 - 15:27:19)
   bad magic
  
  
   U-Boot 2015.10-00001-g143c9ee
 (Nov 06
   2015 - 15:27:19 -0600), Build:
  jenkins-gi4
  
          Watchdog enabled
   I2C:   ready
   DRAM:  512 MiB
   Reset Source: Power-on reset
 has
   occurred.
   MMC:   OMAP SD/MMC: 0, OMAP
   SD/MMC: 1
   Using default environment
  
   Net:   <ethaddr> not
 set.
   Validating first E-fuse MAC
   cpsw
   Hit any key to stop autoboot: 
 0
   gpio: pin 53 (gpio 53) value is
 1
   switch to partitions #0, OK
   mmc0 is current device
   gpio: pin 54 (gpio 54) value is
 1
   Failed to mount ext2
 filesystem...
   ** Unrecognized filesystem type
 **
   Checking for: /uEnv.txt ...
   Failed to mount ext2
 filesystem...
   ** Unrecognized filesystem type
 **
   Checking for: /boot.scr ...
   Failed to mount ext2
 filesystem...
   ** Unrecognized filesystem type
 **
   Checking for: /boot/boot.scr
 ...
   Failed to mount ext2
 filesystem...
   ** Unrecognized filesystem type
 **
   Checking for: /boot/uEnv.txt
 ...
   Failed to mount ext2
 filesystem...
   ** Unrecognized filesystem type
 **
   ** Invalid partition 2 **
   ** Invalid partition 3 **
   ** Invalid partition 4 **
   ** Invalid partition 5 **
   ** Invalid partition 6 **
   ** Invalid partition 7 **
   gpio: pin 56 (gpio 56) value is
 0
   gpio: pin 55 (gpio 55) value is
 0
   gpio: pin 54 (gpio 54) value is
 0
   switch to partitions #0, OK
   mmc1(part 0) is current device
   gpio: pin 54 (gpio 54) value is
 1
   Checking for: /uEnv.txt ...
   Checking for: /boot.scr ...
   Checking for: /boot/boot.scr
 ...
   Checking for: /boot/uEnv.txt
 ...
   gpio: pin 55 (gpio 55) value is
 1
   1800 bytes read in 15 ms (117.2
  KiB/s)
   Loaded environment from
  /boot/uEnv.txt
   Checking if uname_r is set in
   /boot/uEnv.txt...
   gpio: pin 56 (gpio 56) value is
 1
   Running uname_boot ...
   loading
 /boot/vmlinuz-3.8.13-bone79
   ...
   5644336 bytes read in 328 ms
 (16.4
   MiB/s)
   loading
 
 
 /boot/dtbs/3.8.13-bone79/am335x-boneblack.dtb ...
   26118 bytes read in 21 ms (1.2
 MiB/s)
   loading
  /boot/initrd.img-3.8.13-bone79
   ...
   2862929 bytes read in 175 ms
 (15.6
   MiB/s)
   debug: [console=ttyO0,115200n8
 
 
 root=UUID=ea3d5ca5-9e98-4dba-805d-387512f01c15 r.
   debug: [bootz 0x82000000
   0x88080000:2baf51 0x88000000]
 ...
   Kernel image @ 0x82000000 [
 0x000000
  -
   0x562030 ]
   ## Flattened Device Tree blob
 at
   88000000
      Booting using the fdt blob
  at
   0x88000000
      Loading Ramdisk to
 8fd45000,
   end 8fffff51 ... OK
      Loading Device Tree to
   8fd3b000, end 8fd44605 ... OK
  
   Starting kernel ...
  
   Uncompressing Linux... done,
 booting
   the kernel.
   [    0.372520]
   omap2_mbox_probe: platform not
  supported
   [    0.528233] tps65217-bl
   tps65217-bl: no platform data
  provided
   [    0.592209] bone-capemgr
   bone_capemgr.9: slot #0: No
 cape
  found
   [    0.629317] bone-capemgr
   bone_capemgr.9: slot #1: No
 cape
  found
   [    0.666425] bone-capemgr
   bone_capemgr.9: slot #2: No
 cape
  found
   [    0.703534] bone-capemgr
   bone_capemgr.9: slot #3: No
 cape
  found
   [    0.719284] bone-capemgr
   bone_capemgr.9: slot #6:
  BB-BONELT-HDMIN conflict P)
   [    0.728854] bone-capemgr
   bone_capemgr.9: slot #6: Failed
  verification
   [    0.735582] bone-capemgr
   bone_capemgr.9: loader: failed
 to load
  slot-6 BB-BO)
   [    0.752256] omap_hsmmc
   mmc.5:
 of_parse_phandle_with_args of
  'reset' failed
   [    0.815133] pinctrl-single
   44e10800.pinmux: pin 44e10854
 already
  requested b8
   [    0.826793] pinctrl-single
   44e10800.pinmux: pin-21
 (gpio-leds.8)
  status -22
   [    0.834063] pinctrl-single
   44e10800.pinmux: could not
 request pin
  21 on devie
   Loading, please wait...
   systemd-fsck[204]: rootfs:
 clean,
   97232/227584 files,
 519551/909056
  blocks
  
   Debian GNU/Linux 7 beaglebone
 ttyO0
  
   BeagleBoard.org Debian Image
   2015-11-12
  
   Support/FAQ: http://elinux.org/Beagleboard:BeagleBoneBlack_Debian
  
   default username:password is
   [debian:temppwd]
  
   The IP Address for usb0 is:
   192.168.7.2
   beaglebone login: [  
  26.205892]
   libphy: PHY 4a101000.mdio:01
 not
  found
   [   26.210972] net eth0: phy
   4a101000.mdio:01 not found on
 slave 1
  
   Debian GNU/Linux 7 beaglebone
 ttyO0
  
   BeagleBoard.org Debian Image
   2015-11-12
  
   Support/FAQ: http://elinux.org/Beagleboard:BeagleBoneBlack_Debian
  
   default username:password is
   [debian:temppwd]
  
   The IP Address for usb0 is:
   192.168.7.2
   beaglebone login:
  
  

Reply | Threaded
Open this post in threaded view
|

Re: BeagleBoard Black Won't Boot into OpenBSD Installer

Jonathan Gray-11
In reply to this post by Kenneth Hendrickson
On Sat, May 13, 2017 at 05:39:39AM +0000, Kenneth Hendrickson wrote:
> Toggling the bootable flag on the MSDOS partition on the internal flash, so that only the MSDOS partition on the Micro SD card had the bootable flag set, DID NOT WORK.
>
> Nothing seems to work.
>
> What is the secret sauce to get it to boot from the micro SD card?

You need to hold down the boot switch while booting to boot from SD card
if the eMMC contains a msdos filesystem with MLO etc.  If booting from
eMMC fails or is skipped with the boot switch the SD card will be used
as the boot device.

http://www.elinux.org/Beagleboard:BeagleBoneBlack#BeagleBone_Black_Connector_and_Switch_Locations

Reply | Threaded
Open this post in threaded view
|

Re: BeagleBoard Black Won't Boot into OpenBSD Installer

Kenneth Hendrickson
In reply to this post by Kenneth Hendrickson

--------------------------------------------
On Sat, 5/13/17, Jonathan Gray <[hidden email]> wrote:
> You need to hold down the boot
> switch while booting to boot from SD card

I did that.  It didn't work.

There is something else needed ...

> if
> the eMMC contains a msdos filesystem with MLO etc.  If
> booting from
> eMMC fails or is skipped with
> the boot switch the SD card will be used
> as
> the boot device.
>
> http://www.elinux.org/Beagleboard:BeagleBoneBlack#BeagleBone_Black_Connector_and_Switch_Locations
 

Reply | Threaded
Open this post in threaded view
|

Re: BeagleBoard Black Won't Boot into OpenBSD Installer

Kenneth Hendrickson
In reply to this post by Kenneth Hendrickson
I stopped the booting process and got into uboot.
I changed the environment variable mmcdev to 1, from 0.
The change didn't stick, and it still booted into Linux.

I notice that bootcmd hard codes setting mmcdev to 0.

Maybe there is something that can be done in uboot
to make it boot the OpenBSD installer, but I haven't
found it yet.

Maybe my hardware boot button is bad.


 --------------------------------------------
 On Sat, 5/13/17, Jonathan Gray <[hidden email]>
 wrote:
 > You need to hold down the boot
 > switch while booting to boot from
 SD card
 
 I did that.  It didn't work.
 
 There is something else needed ...
 
 

Reply | Threaded
Open this post in threaded view
|

Re: BeagleBoard Black Won't Boot into OpenBSD Installer

Kenneth Hendrickson
In reply to this post by Kenneth Hendrickson
WORKING NOW!

I have no idea what I was doing wrong, but it is booting into the OpenBSD installer now.