Port-arm archive

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

booting BeagleBoneGreen



Having convinced myself that the BeagleBoneGreen produced by Seeed is
equivalent to the BeagleBoneBlack--at least as far as devices supported
by NetBSD--I bought one along with the necessary accessories, namely the
3.3v FTDI USB UART cable.


Booting the pre-installed Linux presents a disk device:

Jan 11 19:57:08 skuld /netbsd: umass0 at uhub2 port 3 configuration 1 interface 4
Jan 11 19:57:08 skuld /netbsd: umass0: Circuitco BeagleBoneBlack, rev 2.00/3.08, addr 2
Jan 11 19:57:08 skuld /netbsd: umass0: using SCSI over Bulk-Only
Jan 11 19:57:08 skuld /netbsd: scsibus0 at umass0: 2 targets, 1 lun per target
Jan 11 19:57:08 skuld /netbsd: sd0 at scsibus0 target 0 lun 0: <Linux, File-CD Gadget, 0308> disk removable
Jan 11 19:57:08 skuld /netbsd: sd0: fabricating a geometry
Jan 11 19:57:08 skuld /netbsd: sd0: 98304 KB, 96 cyl, 64 head, 32 sec, 512 bytes/sect x 196608 sectors
Jan 11 19:57:08 skuld /netbsd: sd0: fabricating a geometry

but there is nothing recognizable to 'fdisk':

$ fdisk sd0           
fdisk: Cannot determine the number of heads
Disk: /dev/rsd0d
NetBSD disklabel disk geometry:
cylinders: 96, heads: 64, sectors/track: 32 (2048 sectors/cylinder)
total sectors: 196608, bytes/sector: 512

BIOS disk geometry:
cylinders: 96, heads: 64, sectors/track: 32 (2048 sectors/cylinder)
total sectors: 196608

Partitions aligned to 2048 sector boundaries, offset 32

Partition table:
0: <UNUSED>
1: <UNUSED>
2: <UNUSED>
3: <UNUSED>
No active partition.
Drive serial number: 0 (0x00000000)


'disklabel' just shows the default partitioning

$ disklabel sd0
# /dev/rsd0d:
type: SCSI
disk: File-CD Gadget  
label: fictitious
flags: removable
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 64
sectors/cylinder: 2048
cylinders: 96
total sectors: 196608
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0		# microseconds
track-to-track seek: 0	# microseconds
drivedata: 0 

4 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
 a:    196608         0     4.2BSD      0     0     0  # (Cyl.      0 -     95)
 d:    196608         0     unused      0     0        # (Cyl.      0 -     95)
disklabel: boot block size 0
disklabel: super block size 0


The card is reachable via its ethernet connection and the web server
serves up the "Beagle 101" page.



Cribbing notes from OpenBSD, I set about netbooting the machine.  I
guessed that the "netbsd-BEAGLEBONE.ub" kernel was the correct one.  It
seemed that if anything encountered a problem along the way, the machine
would reset.  I fixed all the things I know I forgot, but the machine
still doesn't make it to launching 'getty' on the console.  It seems
that something is taking too long and the watchdog reset the board before
it can finish.

Console dmesg:

U-Boot SPL 2015.04-00632-g71e9389-dirty (May 06 2015 - 18:32:51)


U-Boot 2015.04-00632-g71e9389-dirty (May 06 2015 - 18:32:51)
                                                            
Website: www.seeed.cc
                     
       Watchdog enabled
I2C:   ready           
DRAM:  512 MiB
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 
U-Boot# dhcp
link up on port 0, speed 100, full duplex
BOOTP broadcast 1                        
DHCP client bound to address 192.168.17.67 (57 ms)
Using cpsw device                                 
TFTP from server 192.168.17.242; our IP address is 192.168.17.67
Filename 'netbsd-BEAGLEBONE.ub'.                                
Load address: 0x82000000        
Loading: #################################################################
	 #################################################################
	 #################################################################
	 #############################################################    
	 1.8 MiB/s                                                    
done              
Bytes transferred = 3744960 (3924c0 hex)
U-Boot# bootm                           
## Booting kernel from Legacy Image at 82000000 ...
   Image Name:   NetBSD/beagle 7.0_STABLE          
   Created:      2016-01-10  14:23:12 UTC
   Image Type:   ARM NetBSD Kernel Image (uncompressed)
   Data Size:    3744896 Bytes = 3.6 MiB               
   Load Address: 80300000               
   Entry Point:  80300000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
## Transferring control to NetBSD stage-2 loader (at address 80300000) ...
defgh                                                                     
uboot arg = 0x9ef2afb0, 0, 0x9ffa187a, 0x9ffa187a
[ Kernel symbol table missing! ]
Loaded initial symtab at 0x8060597c, strtab at 0x806378dc, # entries 12052
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 7.0_STABLE (BEAGLEBONE.201601101240Z)
total memory = 512 MB
avail memory = 503 MB
sysctl_createv: sysctl_create(machine_arch) returned 17
kern.module.path=/stand/evbarm/7.0/modules
timecounter: Timecounters tick every 10.000 msec
mainbus0 (root)
cpu0 at mainbus0 core 0: 1000 MHz Cortex-A8 r3p2 (Cortex V7A core)
cpu0: DC enabled IC enabled WB disabled EABT branch prediction enabled
cpu0: isar: [0]=0x101111 [1]=0x13112111 [2]=0x21232031 [3]=0x11112131, [4]=0x11142, [5]=0
cpu0: mmfr: [0]=0x1100003 [1]=0x20000000 [2]=0x1202000 [3]=0x211
cpu0: pfr: [0]=0x1131 [1]=0x11
cpu0: 32KB/64B 4-way L1 VIPT Instruction cache
cpu0: 32KB/64B 4-way write-back-locking-C L1 PIPT Data cache
cpu0: 256KB/64B 8-way write-through L2 PIPT Unified cache
vfp0 at cpu0: NEON MPE (VFP 3.0+), rounding, NaN propagation, denormals
vfp0: mvfr: [0]=0x11110222 [1]=0x11111
obio0 at mainbus0 base 0x44000000-0x4fffffff: On-Board IO
omapicu0 at obio0 addr 0x48200000-0x48200fff intrbase 0
prcm0 at obio0 addr 0x44e00000-0x44e01fff: Power, Reset and Clock Management
sitaracm0 at obio0 addr 0x44e10000-0x44e11fff: control module, rev 1.0
edma0 at obio0 addr 0x49000000-0x490fffff intrbase 12
gpmc0 at mainbus0 base 0x50000000: General Purpose Memory Controller, rev 6.0
gpmc0: CS#0 valid, addr 0x00000000, size  16MB
com0 at obio0 addr 0x44e09000-0x44e09fff intr 72: ns16550a, working fifo
com0: console
sdhc0 at obio0 addr 0x48060100-0x48060fff intr 64sdhc0: EDMA tx channel 24, rx channel 25
: SDHC controller (EDMA)
sdhc0: SD Host Specification 2.0, rev.49
sdhc0: using DMA transfer
sdmmc0 at sdhc0 slot 0
sdhc0: INIT Procedure timeout
sdhc1 at obio0 addr 0x481d8100-0x481d8fff intr 28sdhc1: EDMA tx channel 2, rx channel 3
: SDHC controller (EDMA)
sdhc1: SD Host Specification 2.0, rev.49
sdhc1: using DMA transfer
sdmmc1 at sdhc1 slot 0
tiiic0 at obio0 addr 0x44e0b000-0x44e0bfff intr 70: rev 0.11
iic0 at tiiic0: I2C bus
seeprom0 at iic0 addr 0x50: AT24Cxx or compatible EEPROM: size 32768
tps65217pmic0 at iic0 addr 0x24: TPS65217C Power Management Multi-Channel IC (rev 1.2)
tps65217pmic0: power sources [USB] max 1800 mA, AC max 2500 mA
tps65217pmic0: [LDO1: 1800 mV] [LDO2: 3300 mV] [LDO3: 1800 mV] [LDO4: 3300 mV] [DCDC1: 1500 mV] [DCDC2: 1325 mV] [DCDC3: 1125 mV] 
omapdmtimer0 at obio0 addr 0x48040000-0x48040fff intr 68: DMTIMER2
omapdmtimer1 at obio0 addr 0x44e31000-0x44e31fff intr 67: DMTIMER1ms
omapdmtimer2 at obio0 addr 0x48044000-0x48044fff intr 92: DMTIMER4
omapwdt32k0 at obio0 addr 0x44e35000-0x44e35fff: rev 0.1
tiotg0 at obio0 addr 0x47400000-0x47404fff intrbase 17: TI dual-port USB controller: version v1.0.0.13
motg0 at tiotg0 port 0: 0x4ea20800 version v0.0.0
motg1 at tiotg0 port 1: 0x4ea20800 version v0.0.0
motg1: Dynamic FIFO sizing detected, assuming 16Kbytes of FIFO RAM
usb0 at motg1: USB revision 2.0
cpsw0 at obio0 addr 0x4a100000-0x4a107fff intrbase 40: TI CPSW Ethernet
cpsw0: Ethernet address 78:a5:04:ef:0d:05
ukphy0 at cpsw0 phy 0WARNING: module error: vfs load failed for `miiverbose', error 45
: OUI 0x00800f, model 0x000f, rev. 1
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
trng0 at obio0 addr 0x48310000-0x48311fff intr 111
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
timecounter: Timecounter "dmtimer" frequency 24000000 Hz quality 100
uhub0 at usb0: Mentor Graphics MOTG root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 1 port with 1 removable, self powered
sdmmc1: unknown CARD_TYPE: 0x17
sdmmc1: mem init failed
ld1 at sdmmc1: <0xfe:0x014e:P1XXXX:0x00:0x8bff58d5:0x000>
ld1: 1024 MB, 1040 cyl, 32 head, 63 sec, 512 bytes/sect x 2097152 sectors
ld1: 1-bit width, bus clock 96.000 MHz
sdmmc0: couldn't enable card: 60
boot device: <unknown>
root device: cpsw0
dump device: 
file system (default generic): 
root on cpsw0
mountroot: trying nfs...
nfs_boot: trying DHCP/BOOTP
cpsw0: link state UP (was UNKNOWN)
nfs_boot: DHCP next-server: 192.168.17.242
nfs_boot: my_name=bbg0
nfs_boot: my_domain=technoskunk.fur
nfs_boot: my_addr=192.168.17.67
nfs_boot: my_mask=255.255.255.0
nfs_boot: gateway=192.168.17.254
root on 192.168.17.242:/r0/diskless/bbg0
root time: 0x56945d4b
root file system type: nfs
WARNING: no TOD clock present
WARNING: using filesystem time
WARNING: CHECK AND RESET THE DATE!
init path (default /sbin/init): 
init: copying out path `/sbin/init' 11
Tue Jan 12 01:56:28 UTC 2016
Not checking /: fs_passno = 0 in /etc/fstab
Starting file system checks:
random_seed: /var/db/entropy-file: Not present
Setting tty flags.
WARNING: module error: vfs load failed for `wsdisplay', error 2
WARNING: module error: vfs load failed for `wsdisplay', error 2
WARNING: module error: vfs load failed for `wsdisplay', error 2
WARNING: module error: vfs load failed for `wsdisplay', error 2
Setting sysctl variables:
ddb.onpanic: 1 -> 0
Starting network.
Hostname: bbg0.technoskunk.fur
IPv6 mode: host
Configuring network interfaces: cpsw0.
Adding interface aliases:.
add net default: gateway ossian.technoskunk.fur
Waiting for DAD completion for statically configured addresses...
Building databases: dev, utmp, utmpx.
Starting syslogd.
Mounting all file systems...
Clearing temporary files.
Creating a.out runtime link editor directory cache.
Checking quotas: done.
Setting securelevel: kern.securelevel: 0 -> 1
swapctl: adding /swap as swap device at priority 1
Starting virecover.
Checking for core dump...
savecore: no core dump (no dumpdev)
Starting local daemons:.
Updating motd.
postfix: rebuilding /etc/mail/aliases (missing /etc/mail/aliases.db)
[board resets]

-- 
|/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
|\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
| X  No HTML/proprietary data in email.   BSD just sits there and works!
|/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645



Home | Main Index | Thread Index | Old Index