Quantcast

Re: beaglebone black cannot boot from sd

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: beaglebone black cannot boot from sd

Tuyosi Takesima
Hi all .

i managed to succeed to run openbsd on beaglebone black(BBB).

i tried 6.0 & snapshots , but LED did not light .
so i use 5.4 .

the next is too long for veterans .
but it may be  kind to the newbies like me .


------------------>


cu -l cuaU0 -s 115200

Connected to /dev/cuaU0 (speed 115200)

U-Boot SPL 2013.04-dirty (Apr 20 2013 - 08:30:43)
musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, HB-ISO Rx, HB-ISO Tx,
SoftConn)
musb-hdrc: MHDRC RTL version 2.0
musb-hdrc: setup fifo_mode 4
musb-hdrc: 28/31 max ep, 16384/16384 memory
qUSB Peripheral mode controller at 47401000 using PIO, IRQ 0
mqusb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, HB-ISO Rx, HB-ISO Tx,
SoftConn)
musb-hdrc: MHDRC RTL version 2.0
musb-hdrc: setup fifo_mode 4
musb-hdrc: 28/31 max ep, 16384/16384 memory
USB Host mode controller at 47401800 using PIO, IRQ 0
OMAP SD/MMC: 0
reading u-boot.img
reading u-boot.img


U-Boot 2013.04-dirty (Apr 20 2013 - 08:30:43)

I2C:   ready
DRAM:  512 MiB
WARNING: Caches not enabled
NAND:  No NAND device found!!!
0 MiB
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
*** Warning - readenv() failed, using default environment

musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, HB-ISO Rx, HB-ISO Tx,
SoftConn)
musb-hdrc: MHDRC RTL version 2.0
musb-hdrc: setup fifo_mode 4
musb-hdrc: 28/31 max ep, 16384/16384 memory
USB Peripheral mode controller at 47401000 using PIO, IRQ 0
musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, HB-ISO Rx, HB-ISO Tx,
SoftConn)
musb-hdrc: MHDRC RTL version 2.0
musb-hdrc: setup fifo_mode 4
musb-hdrc: 28/31 max ep, 16384/16384 memory
USB Host mode controller at 47401800 using PIO, IRQ 0
Net:   <ethaddr> not set. Validating first E-fuse MAC
cpsw, usb_ether
Hit any key to stop autoboot:  0
gpio: pin 53 (gpio 53) value is 1
mmc0 is current device
micro SD card found
mmc0 is current device
gpio: pin 54 (gpio 54) value is 1
SD/MMC found on device 0
reading uEnv.txt
151 bytes read in 3 ms (48.8 KiB/s)
Loaded environment from uEnv.txt
Importing environment from mmc ...
Running uenvcmd ...
reading bsd.umg
3931284 bytes read in 456 ms (8.2 MiB/s)
## Booting kernel from Legacy Image at 82800000 ...
   Image Name:   boot
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3931220 Bytes = 3.7 MiB
   Load Address: 80300000
   Entry Point:  80300000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...


OpenBSD/beagle booting ...
arg0 0x0 arg1 0xe05 arg2 0x80000100
atag core flags 0 pagesize 0 rootdev 0
atag cmdline [sd0i:/bsd.umg]
atag mem start 0x80000000 size 0x20000000
bootfile: sd0i:/bsd.umg
bootargs:
memory size derived from u-boot
bootconf.mem[0].address = 80000000 pages 131072/0x20000000
Allocating page tables
freestart = 0x00729000, free_pages = 530647 (0x000818d7)
IRQ stack: p0x81fd1000 v0xc1fd1000
ABT stack: p0x81fd0000 v0xc1fd0000
UND stack: p0x81fcf000 v0xc1fcf000
SVC stack: p0x81fcd000 v0xc1fcd000
Creating L1 page table at 0x81ffc000
Mapping kernel
Constructing L2 page tables
undefined page pmap [ no symbol table formats found ]
board type: beaglebone
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California.  All rights
reserved.
Copyright (c) 1995-2013 OpenBSD. All rights reserved.
http://www.OpenBSD.org

OpenBSD 5.4 (RAMDISK) #0: Tue Jul 30 11:47:32 EDT 2013
    [hidden email]:/usr/src/sys/arch/beagle/compile/RAMDISK
real mem  = 536870912 (512MB)
avail mem = 518393856 (494MB)
mainbus0 at root
cpu0 at mainbus0: ARM Cortex A8 R3 rev 2 (ARMv7 core)
cpu0: DC enabled IC enabled WB disabled EABT branch prediction enabled
cpu0: 32KB(64b/l,4way) I-cache, 32KB(64b/l,4way) wr-back D-cache
omap0 at mainbus0: BeagleBone
prcm0 at omap0 rev 0.2

sitaracm0 at omap0: control module, rev 1.0
qintc0 at omap0 rev 5.0
dmtimer0 at omap0 rev 3.1
dmtimer1 at omap0 rev 3.1
omdog0 at omap0 rev 0.1
ommmc0 at omap0
sdmmc0 at ommmc0
com0 at omap0: ti16750, 64 byte fifo
com0: console
cpsw0 at omap0 txdescs at 0xcfb90000 rxdescs at 0xcfb91000, address
d0:5f:b8:f5:f9:79
ukphy0 at cpsw0 phy 0: Generic IEEE 802.3u media interface, rev. 1: OUI
0x0001f0, model 0x000f
scsibus0 at sdmmc0: 2 targets, initiator 0
sd0 at scsibus0 targ 1 lun 0: <SD/MMC, Drive #01, > SCSI2 0/direct fixed
sd0: 14804MB, 512 bytes/sector, 30318592 sectors
boot device: sd0
root on rd0a swap on rd0b dump on rd0b
WARNING: CHECK AND RESET THE DATE!
erase ^?, werase ^W, kill ^U, intr ^C, status ^T

Welcome to the OpenBSD/beagle 5.4 installation program.
(I)nstall, (U)pgrade or (S)hell? i
At any prompt except password prompts you can escape to a shell by
typing '!'. Default answers are shown in []'s and are selected by
pressing RETURN.  You can exit this program at any time by pressing
Control-C, but this can leave your system in an inconsistent state.

Terminal type? [vt220]
System hostname? (short form, e.g. 'foo') BBB

Available network interfaces are: cpsw0.
Which one do you wish to configure? (or 'done') [cpsw0]
IPv4 address for cpsw0? (or 'dhcp' or 'none') [dhcp]
Issuing hostname-associated DHCP request for cpsw0.
DHCPDISCOVER on cpsw0 to 255.255.255.255 port 67 interval 1
DHCPDISCOVER on cpsw0 to 255.255.255.255 port 67 interval 2
DHCPOFFER from 192.168.80.1 (c8:3a:35:3b:c4:d0)
DHCPREQUEST on cpsw0 to 255.255.255.255 port 67
DHCPREQUEST on cpsw0 to 255.255.255.255 port 67
DHCPACK from 192.168.80.1 (c8:3a:35:3b:c4:d0)
bound to 192.168.80.105 -- renewal in 43199 seconds.
IPv6 address for cpsw0? (or 'rtsol' or 'none') [none]
Available network interfaces are: cpsw0.
Which one do you wish to configure? (or 'done') [done]
Using DNS domainname my.domain
Using DNS nameservers at 192.168.0.1 8.8.8.8

Password for root account? (will not echo)
Password for root account? (again)
Start sshd(8) by default? [yes]
Start ntpd(8) by default? [no] yes
NTP server? (hostname or 'default') [default]
Setup a user? (enter a lower-case loginname, or 'no') [no] yuma
Full user name for yuma? [yuma]
Password for yuma account? (will not echo)
Password for yuma account? (again)
Since you set up a user, disable sshd(8) logins to root? [yes]
What timezone are you in? ('?' for list) [Asia/Tokyo]

Available disks are: sd0.
Which disk is the root disk? ('?' for details) [sd0]
Use DUIDs rather than device names in fstab? [yes]
Disk: sd0       geometry: 1887/255/63 [30318592 Sectors]
Offset: 0       Signature: 0xAA55
            Starting         Ending         LBA Info:
 #: id      C   H   S -      C   H   S [       start:        size ]
-------------------------------------------------------------------------------
*0: 0C      0   1   1 -      1 254  63 [          63:       32067 ]
Win95 FAT32L
 1: 00      0   0   0 -      0   0   0 [           0:           0 ]
unused
 2: 00      0   0   0 -      0   0   0 [           0:           0 ]
unused
 3: A6      0   1   2 -      1 254  63 [          64:       32066 ]
OpenBSD
Use (W)hole disk or (E)dit the MBR? [whole]
Creating a FAT partition and an OpenBSD partition for rest of
sd0...done.
/dev/rsd0i: 32668 sectors in 8167 FAT16 clusters (2048 bytes/cluster)
bps=512 spc=4 res=1 nft=2 rde=512 sec=32768 mid=0xf8 spf=32 spt=63
hds=255 hid=64
The auto-allocated layout for sd0 is:
#                size           offset  fstype [fsize bsize  cpg]
  a:           461.0M            32832  4.2BSD   2048 16384    1 # /
  b:           461.0M           976928    swap
  c:         14804.0M                0  unused
  d:           729.6M          1921056  4.2BSD   2048 16384    1 # /tmp
  e:          1070.6M          3415232  4.2BSD   2048 16384    1 # /var
  f:          1281.0M          5607776  4.2BSD   2048 16384    1 # /usr
  g:           740.6M          8231232  4.2BSD   2048 16384    1 #
/usr/X11R6
  h:          2810.0M          9747968  4.2BSD   2048 16384    1 #
/usr/local
  i:            16.0M               64   MSDOS
  j:          1176.4M         15502816  4.2BSD   2048 16384    1 #
/usr/src
  k:          1604.8M         17912064  4.2BSD   2048 16384    1 #
/usr/obj
  l:          4453.0M         21198688  4.2BSD   2048 16384    1 # /home
Use (A)uto layout, (E)dit auto layout, or create (C)ustom layout? [a] c

You will now create an OpenBSD disklabel inside the OpenBSD MBR
partition. The disklabel defines how OpenBSD splits up the MBR partition
into OpenBSD partitions in which filesystems and swap space are created.
You must provide each filesystem's mountpoint in this program.

The offsets used in the disklabel are ABSOLUTE, i.e. relative to the
start of the disk, NOT the start of the OpenBSD MBR partition.

Label editor (enter '?' for help at any prompt)
> p
OpenBSD area: 32832-30318592; size: 30285760; free: 30285760
#                size           offset  fstype [fsize bsize  cpg]
  c:         30318592                0  unused
  i:            32768               64   MSDOS
> a b
offset: [32832]
size: [30285760] 2G
Rounding size to cylinder (16065 sectors): 4208328
FS type: [swap]
> a a
offset: [4241160]
size: [26077432]
FS type: [4.2BSD]
mount point: [none] /
Rounding offset to bsize (32 sectors): 4241184
Rounding size to bsize (32 sectors): 26077408
> p
OpenBSD area: 32832-30318592; size: 30285760; free: 24
#                size           offset  fstype [fsize bsize  cpg]
  a:         26077408          4241184  4.2BSD   2048 16384    1 # /
  b:          4208328            32832    swap
  c:         30318592                0  unused
  i:            32768               64   MSDOS
> w
> q
No label changes.
/dev/rsd0a: 12733.1MB in 26077408 sectors of 512 bytes
63 cylinder groups of 202.47MB, 12958 blocks, 25984 inodes each
/dev/sd0a (030fea1fd62b5a0e.a) on /mnt type ffs (rw, asynchronous,
local)

Let's install the sets!

Location of sets? (disk ftp http nfs or 'done') [http]
HTqTP/FTP proxy URL? (e.g. '<a href="http://proxy:8080'">http://proxy:8080', or 'none') [none]
Server? (hostname, list#, 'done' or '?') [ftp.jaist.ac.jp]
mirror.yandex.ru
Server directory? [pub/OpenBSD/5.4/beagle]

Select sets by entering a set name, a file name pattern or 'all'.
De-select
sets by prepending a '-' to the set name, file name pattern or 'all'.
Selected
sets are labelled '[X]'.
    [X] bsd           [X] etc54.tgz     [X] game54.tgz    [ ]
xshare54.tgz
    [X] bsd.rd        [X] comp54.tgz    [ ] xbase54.tgz   [ ]
xfont54.tgz
    [X] base54.tgz    [X] man54.tgz     [ ] xetc54.tgz    [ ]
xserv54.tgz
Set name(s)? (or 'abort' or 'done') [done] -g*
    [X] bsd           [X] etc54.tgz     [ ] game54.tgz    [ ]
xshare54.tgz
    [X] bsd.rd        [X] comp54.tgz    [ ] xbase54.tgz   [ ]
xfont54.tgz
    [X] base54.tgz    [X] man54.tgz     [ ] xetc54.tgz    [ ]
xserv54.tgz
Set name(s)? (or 'abort' or 'done') [done]
bsd          100% |*************************************|  3014 KB
00:15
bsd.rd       100% |*************************************|  3984 KB
00:26
base54.tgz   100% |*************************************| 55945 KB
07:02
etc54.tgz    100% |*************************************|   511 KB
00:03
comp54.tgz   100% |*************************************| 47704 KB
04:20
man54.tgz    100% |*************************************|  9762 KB
01:13
Location of sets? (disk ftp http nfs or 'done') [done]
Time appears wrong.  Set to 'Sun Sep 25 16:06:17 JST 2016'? [yes]
Saving configuration files...done.
Generating initial host.random file...done.
Making all device nodes...done.

CONGRATULATIONS! Your OpenBSD install has been successfully completed!
To boot the new system, enter 'reboot' at the command prompt.
When you login to your new system the first time, please read your mail
using the 'mail' command.


halt -p


--------
power on with pushing S2
then openbsd comes
--------


login: root
Password:
OpenBSD 5.4 (GENERIC) #0: Tue Jul 30 11:23:44 EDT 2013

Welcome to OpenBSD: The proactively secure Unix-like operating system.

Please use the sendbug(1) utility to report bugs in the system.
Before reporting a bug, please try to reproduce it with the latest
version of the code.  With bug reports, please try to ensure that
enough information to reproduce the problem is enclosed, and if a
known fix for it exists, include that as well.

You have mail.

--------
regards
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: beaglebone black cannot boot from sd

Tuyosi Takesima
hi all .

thanks for the Mailing List's help .
ftp.jaist.ac.jp:/pub/OpenBSD/6.0/armv7/miniroot-am335x-60.fs is also OK .
---------
Tuyosi ; http://akita-arm.blogspot.jp/2016/09/bbb.html
Loading...