Hello,
I have a couple of problems installing an OpenBSD snapshot (from
03/08/2014) via miniroot-imx-55.fs on a i.MX6 SABRE Lite board.
The default u-boot boot loader in SPI flash seems to expect
"6q_bootscript" instead of "6x_bootscript" which is on miniroot-imx-55.fs.
Simply renaming the file to 6q_bootscript lets the system hang:
<...snip...>
Loading file "/6q_bootscript" from mmc device 1:1 (xxb1)
367 bytes read
## Executing script at 10008000
AHCI 0000.0000 1 slots 1 ports ? Gbps 0x0 impl SATA mode
flags:
No port device detected!
<system hangs>
However, manually entering only the u-boot commands which are specific
for my setup worked for me:
MX6Q SABRELITE U-Boot > mmc rescan
MX6Q SABRELITE U-Boot > setenv bootargs sd0i:/bsd.umg
MX6Q SABRELITE U-Boot > setenv loadaddr 0x18800000
MX6Q SABRELITE U-Boot > mmc dev 1
mmc1 is current device
MX6Q SABRELITE U-Boot > ext2load mmc 1:1 ${loadaddr} bsd.umg
Loading file "bsd.umg" from mmc device 1:1 (xxb1)
7620856 bytes read
MX6Q SABRELITE U-Boot > bootm ${loadaddr}
<...see full output of this installation session at the end of this mail...>
After booting into the OpenBSD installer menu, and switching to a shell,
I noticed minor problems with the imxenet(4) network interface. By
default, the MAC address is set to all zeros. Configuring this
interface's MAC address via "ifconfig lladdr" and then looking at the
configuration via "ifconfig imxenet0" lets the system hang (powercycle
required).
Fortunately, direct use of dhclient on this interface did work (with a
DHCP lease for an all zero MAC address).
There also seems to be a problem with the sd0 disk (SDHC card) which
can't be accessed at all (via fdisk, disklabel, newfs...). I could
verify this problem with multiple SDHC cards. Input/output errors
related to sd0 prevented installation of the system with all tested SDHC
cards.
Best Regards
Andreas
Output of the full installation session:
# cu -l cua00 -s 115200
Connected (speed 115200)
U-Boot 2009.08 (Aug 16 2012 - 10:06:42)
CPU: Freescale i.MX 6 family 0.0V at 792 MHz
Temperature: 53 C, calibration data 0x5944d87d
mx6q pll1: 792MHz
mx6q pll2: 528MHz
mx6q pll3: 480MHz
mx6q pll8: 50MHz
ipg clock : 66000000Hz
ipg per clock : 66000000Hz
uart clock : 80000000Hz
cspi clock : 60000000Hz
ahb clock : 132000000Hz
axi clock : 264000000Hz
emi_slow clock: 29333333Hz
ddr clock : 528000000Hz
usdhc1 clock : 200000000Hz
usdhc2 clock : 200000000Hz
usdhc3 clock : 200000000Hz
usdhc4 clock : 200000000Hz
nfc clock : 24000000Hz
Board: MX6Q-SABRELITE:[ POR]
Boot Device: I2C
I2C: ready
DRAM: 1 GB
MMC: FSL_USDHC: 0,FSL_USDHC: 1
JEDEC ID: 0xbf:0x25:0x41
Reading SPI NOR flash 0xc0000 [0x2000 bytes] -> ram 0x276009b8
SUCCESS
*** Warning - bad CRC, using default environment
In: serial
Out: serial
Err: serial
Net: got MAC address from IIM: 00:00:00:00:00:00
FEC0 [PRIME]
Hit any key to stop autoboot: 0
Card did not respond to voltage select!
mmc0(part 0) is current device
MMC: block number 0x1 exceeds max(0x0)
** Can't read from device 0 **
** Unable to use mmc 0:1 for fatload **
** Bad partition 1 **
mmc1 is current device
reading /6q_bootscript
** Unable to read "/6q_bootscript" from mmc 1:1 **
Loading file "/6q_bootscript" from mmc device 1:1 (xxb1)
** File not found /6q_bootscript
MX6Q SABRELITE U-Boot > mmc rescan
MX6Q SABRELITE U-Boot > setenv bootargs sd0i:/bsd.umg
MX6Q SABRELITE U-Boot > setenv loadaddr 0x18800000
MX6Q SABRELITE U-Boot > mmc dev 1
mmc1 is current device
MX6Q SABRELITE U-Boot > ext2load mmc 1:1 ${loadaddr} bsd.umg
Loading file "bsd.umg" from mmc device 1:1 (xxb1)
7620856 bytes read
MX6Q SABRELITE U-Boot > bootm ${loadaddr}
## Booting kernel from Legacy Image at 18800000 ...
Image Name: boot
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 7620792 Bytes = 7.3 MB
Load Address: 10800000
Entry Point: 10800000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK
Starting kernel ...
OpenBSD/imx booting ...
arg0 0x0 arg1 0xeb9 arg2 0x10000100
atag core flags 0 pagesize 0 rootdev 0
atag revision 00063000
atag mem start 0x10000000 size 0x40000000
atag cmdline [sd0i:/bsd.umg]
bootfile: sd0i:/bsd.umg
bootargs:
Allocating page tables
freestart = 0x10f45000, free_pages = 258235 (0x0003f0bb)
IRQ stack: p0x10f73000 v0xc0f73000
ABT stack: p0x10f74000 v0xc0f74000
UND stack: p0x10f75000 v0xc0f75000
SVC stack: p0x10f76000 v0xc0f76000
Creating L1 page table at 0x10f48000
Mapping kernel
Constructing L2 page tables
undefined page pmap [ using 203188 bytes of bsd ELF symbol table ]
board type: SABRE Lite
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
Copyright (c) 1995-2014 OpenBSD. All rights reserved. http://www.OpenBSD.org
OpenBSD 5.5 (RAMDISK-IMX) #8: Sat Mar 8 15:48:10 EST 2014
[email protected]:/usr/src/sys/arch/armv7/compile/RAMDISK-IMX
real mem = 1073741824 (1024MB)
avail mem = 1035935744 (987MB)
warning: no entropy supplied by boot loader
mainbus0 at root
cortex0 at mainbus0
ampintc0 at cortex0 nirq 160
amptimer0 at cortex0: tick rate 396000 KHz
armliicc0 at cortex0: rtl 7 waymask: 0x0000000f
cpu0 at mainbus0: ARM Cortex A9 R2 rev 10 (ARMv7 core)
cpu0: DC enabled IC enabled WB disabled EABT branch prediction enabled
cpu0: 32KB(32b/l,4way) I-cache, 32KB(32b/l,4way) wr-back D-cache
imx0 at mainbus0: i.MX6 SABRE Lite
imxccm0 at imx0: imx6 rev 1.2 CPU freq: 792 MHz
imxiomuxc0 at imx0
imxdog0 at imx0
imxocotp0 at imx0
imxuart0 at imx0 console
imxgpio0 at imx0
imxgpio1 at imx0
imxgpio2 at imx0
imxgpio3 at imx0
imxgpio4 at imx0
imxgpio5 at imx0
imxgpio6 at imx0
imxesdhc0 at imx0
sdmmc0 at imxesdhc0
imxesdhc1 at imx0
sdmmc1 at imxesdhc1
ehci0 at imx0
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "i.MX6 EHCI root hub" rev 2.00/1.00 addr 1
imxenet0 at imx0
imxenet0: address 00:00:00:00:00:00
ukphy0 at imxenet0 phy 6: Generic IEEE 802.3u media interface, rev. 1:
OUI 0x000885, model 0x0021
ahci0 at imx0 AHCI 1.3
scsibus0 at ahci0: 32 targets
scsibus1 at sdmmc1: 2 targets, initiator 0
sd0 at scsibus1 targ 1 lun 0: <SD/MMC, Drive #01, > SCSI2 0/direct fixed
sd0: 3724MB, 512 bytes/sector, 7626752 sectors
uhub1 at uhub0 port 1 "vendor 0x0424 product 0x2513" rev 2.00/b.b3 addr 2
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/armv7 5.5 installation program.
(I)nstall, (U)pgrade, (A)utoinstall or (S)hell? s
# dhclient imxenet0
DHCPDISCOVER on imxenet0 to 255.255.255.255 port 67 interval 3
DHCPOFFER from 192.168.1.1 (00:40:63:c9:d8:05)
DHCPREQUEST on imxenet0 to 255.255.255.255 port 67
DHCPACK from 192.168.1.1 (00:40:63:c9:d8:05)
bound to 192.168.1.36 -- renewal in 21599 seconds.
# exit
erase ^?, werase ^W, kill ^U, intr ^C, status ^T
Welcome to the OpenBSD/armv7 5.5 installation program.
(I)nstall, (U)pgrade, (A)utoinstall 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.
System hostname? (short form, e.g. 'foo') imx6
Available network interfaces are: imxenet0.
Which network interface do you wish to configure? (or 'done') [imxenet0]
IPv4 address for imxenet0? (or 'dhcp' or 'none') [dhcp]
Issuing hostname-associated DHCP request for imxenet0.
DHCPREQUEST on imxenet0 to 255.255.255.255 port 67
DHCPACK from 192.168.1.1 (00:40:63:c9:d8:05)
bound to 192.168.1.36 -- renewal in 21600 seconds.
IPv6 address for imxenet0? (or 'rtsol' or 'none') [none]
Available network interfaces are: imxenet0.
Which network interface do you wish to configure? (or 'done') [done]
Using DNS domainname my.domain
Using DNS nameservers at 192.168.1.1
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] 192.168.1.1
Setup a user? (enter a lower-case loginname, or 'no') [no]
Available disks are: sd0.
Which disk is the root disk? ('?' for details) [sd0]
Use DUIDs rather than device names in fstab? [yes]
fdisk: sd0: Input/output error
MBR has invalid signature; not showing it.
Use (W)hole disk or (E)dit the MBR? [whole]
Creating a ext2fs partition and an OpenBSD partition for rest of
sd0...fdisk: sd0: Input/output error
done.
disklabel: /dev/rsd0c: Input/output error
newfs_ext2fs: /dev/rsd0i: open for read: Input/output error
The auto-allocated layout for sd0 is:
disklabel: /dev/rsd0c: Input/output error
Use (A)uto layout, (E)dit auto layout, or create (C)ustom layout? [a]