[DragonFlyBSD - Bug #2899] Install DragonFly to SD card

bugtracker-admin at leaf.dragonflybsd.org bugtracker-admin at leaf.dragonflybsd.org
Sat Jun 4 10:44:16 PDT 2016


Issue #2899 has been updated by dpostolov.


I am test Dfly Development image from 4 jun. Detection size of mmcsd0 in MB is OK, but installation to sd card is failure. Maybe Dfly installer have problems with detection sd card geometry?

Log:

Installer started
-----------------
+ Creating DFUI connection on ``9999''

+ Connecting on ``9999''

,-<<< Executing `/bin/sh /tmp/extract_vars >/tmp/extracted_vars.txt'
`->>> Exit status: 0

+ Starting installer state machine
,-<<< Executing `/bin/echo 'da0: 476940MB' >>/tmp/survey.txt'
`->>> Exit status: 0

,-<<< Executing `if /bin/test -d /dev/serno; then /bin/ls -l /dev/serno | /usr/bin/grep "`/bin/ls -l /dev/da0 | /usr/bin/awk '{print $5, $6;}'`" | /usr/bin/awk '{print $10;}' >>/tmp/survey.txt; fi'
`->>> Exit status: 0

,-<<< Executing `/sbin/fdisk -s da0 2>/dev/null >>/tmp/survey.txt || /bin/echo '' >>/tmp/survey.txt'
`->>> Exit status: 0

,-<<< Executing `/bin/echo 'da8: 14816MB' >>/tmp/survey.txt'
`->>> Exit status: 0

,-<<< Executing `if /bin/test -d /dev/serno; then /bin/ls -l /dev/serno | /usr/bin/grep "`/bin/ls -l /dev/da8 | /usr/bin/awk '{print $5, $6;}'`" | /usr/bin/awk '{print $10;}' >>/tmp/survey.txt; fi'
`->>> Exit status: 0

,-<<< Executing `/sbin/fdisk -s da8 2>/dev/null >>/tmp/survey.txt || /bin/echo '' >>/tmp/survey.txt'
`->>> Exit status: 0

,-<<< Executing `/bin/echo 'mmcsd0: 30624MB' >>/tmp/survey.txt'
`->>> Exit status: 0

,-<<< Executing `if /bin/test -d /dev/serno; then /bin/ls -l /dev/serno | /usr/bin/grep "`/bin/ls -l /dev/mmcsd0 | /usr/bin/awk '{print $5, $6;}'`" | /usr/bin/awk '{print $10;}' >>/tmp/survey.txt; fi'
`->>> Exit status: 0

,-<<< Executing `/sbin/fdisk -s mmcsd0 2>/dev/null >>/tmp/survey.txt || /bin/echo '' >>/tmp/survey.txt'
`->>> Exit status: 0

,-<<< Executing `/bin/echo 'vn0: 0MB' >>/tmp/survey.txt'
`->>> Exit status: 0

,-<<< Executing `if /bin/test -d /dev/serno; then /bin/ls -l /dev/serno | /usr/bin/grep "`/bin/ls -l /dev/vn0 | /usr/bin/awk '{print $5, $6;}'`" | /usr/bin/awk '{print $10;}' >>/tmp/survey.txt; fi'
`->>> Exit status: 0

,-<<< Executing `/sbin/fdisk -s vn0 2>/dev/null >>/tmp/survey.txt || /bin/echo '' >>/tmp/survey.txt'
`->>> Exit status: 0

,-<<< Executing `/bin/echo 'vn1: 0MB' >>/tmp/survey.txt'
`->>> Exit status: 0

,-<<< Executing `if /bin/test -d /dev/serno; then /bin/ls -l /dev/serno | /usr/bin/grep "`/bin/ls -l /dev/vn1 | /usr/bin/awk '{print $5, $6;}'`" | /usr/bin/awk '{print $10;}' >>/tmp/survey.txt; fi'
`->>> Exit status: 0

,-<<< Executing `/sbin/fdisk -s vn1 2>/dev/null >>/tmp/survey.txt || /bin/echo '' >>/tmp/survey.txt'
`->>> Exit status: 0

,-<<< Executing `/bin/echo 'vn2: 0MB' >>/tmp/survey.txt'
`->>> Exit status: 0

,-<<< Executing `if /bin/test -d /dev/serno; then /bin/ls -l /dev/serno | /usr/bin/grep "`/bin/ls -l /dev/vn2 | /usr/bin/awk '{print $5, $6;}'`" | /usr/bin/awk '{print $10;}' >>/tmp/survey.txt; fi'
`->>> Exit status: 0

,-<<< Executing `/sbin/fdisk -s vn2 2>/dev/null >>/tmp/survey.txt || /bin/echo '' >>/tmp/survey.txt'
`->>> Exit status: 0

,-<<< Executing `/bin/echo 'vn3: 0MB' >>/tmp/survey.txt'
`->>> Exit status: 0

,-<<< Executing `if /bin/test -d /dev/serno; then /bin/ls -l /dev/serno | /usr/bin/grep "`/bin/ls -l /dev/vn3 | /usr/bin/awk '{print $5, $6;}'`" | /usr/bin/awk '{print $10;}' >>/tmp/survey.txt; fi'
`->>> Exit status: 0

,-<<< Executing `/sbin/fdisk -s vn3 2>/dev/null >>/tmp/survey.txt || /bin/echo '' >>/tmp/survey.txt'
`->>> Exit status: 0

,-<<< Executing `/sbin/fdisk -BI mmcsd0'
| ******* Working on device /dev/mmcsd0 *******
| Warning: ending cylinder wraps, using all 1's
`->>> Exit status: 0

,-<<< Executing `/bin/echo 'da0: 476940MB' >>/tmp/survey.txt'
`->>> Exit status: 0

,-<<< Executing `if /bin/test -d /dev/serno; then /bin/ls -l /dev/serno | /usr/bin/grep "`/bin/ls -l /dev/da0 | /usr/bin/awk '{print $5, $6;}'`" | /usr/bin/awk '{print $10;}' >>/tmp/survey.txt; fi'
`->>> Exit status: 0

,-<<< Executing `/sbin/fdisk -s da0 2>/dev/null >>/tmp/survey.txt || /bin/echo '' >>/tmp/survey.txt'
`->>> Exit status: 0

,-<<< Executing `/bin/echo 'da8: 14816MB' >>/tmp/survey.txt'
`->>> Exit status: 0

,-<<< Executing `if /bin/test -d /dev/serno; then /bin/ls -l /dev/serno | /usr/bin/grep "`/bin/ls -l /dev/da8 | /usr/bin/awk '{print $5, $6;}'`" | /usr/bin/awk '{print $10;}' >>/tmp/survey.txt; fi'
`->>> Exit status: 0

,-<<< Executing `/sbin/fdisk -s da8 2>/dev/null >>/tmp/survey.txt || /bin/echo '' >>/tmp/survey.txt'
`->>> Exit status: 0

,-<<< Executing `/bin/echo 'mmcsd0: 30624MB' >>/tmp/survey.txt'
`->>> Exit status: 0

,-<<< Executing `if /bin/test -d /dev/serno; then /bin/ls -l /dev/serno | /usr/bin/grep "`/bin/ls -l /dev/mmcsd0 | /usr/bin/awk '{print $5, $6;}'`" | /usr/bin/awk '{print $10;}' >>/tmp/survey.txt; fi'
`->>> Exit status: 0

,-<<< Executing `/sbin/fdisk -s mmcsd0 2>/dev/null >>/tmp/survey.txt || /bin/echo '' >>/tmp/survey.txt'
`->>> Exit status: 0

,-<<< Executing `/bin/echo 'vn0: 0MB' >>/tmp/survey.txt'
`->>> Exit status: 0

,-<<< Executing `if /bin/test -d /dev/serno; then /bin/ls -l /dev/serno | /usr/bin/grep "`/bin/ls -l /dev/vn0 | /usr/bin/awk '{print $5, $6;}'`" | /usr/bin/awk '{print $10;}' >>/tmp/survey.txt; fi'
`->>> Exit status: 0

,-<<< Executing `/sbin/fdisk -s vn0 2>/dev/null >>/tmp/survey.txt || /bin/echo '' >>/tmp/survey.txt'
`->>> Exit status: 0

,-<<< Executing `/bin/echo 'vn1: 0MB' >>/tmp/survey.txt'
`->>> Exit status: 0

,-<<< Executing `if /bin/test -d /dev/serno; then /bin/ls -l /dev/serno | /usr/bin/grep "`/bin/ls -l /dev/vn1 | /usr/bin/awk '{print $5, $6;}'`" | /usr/bin/awk '{print $10;}' >>/tmp/survey.txt; fi'
`->>> Exit status: 0

,-<<< Executing `/sbin/fdisk -s vn1 2>/dev/null >>/tmp/survey.txt || /bin/echo '' >>/tmp/survey.txt'
`->>> Exit status: 0

,-<<< Executing `/bin/echo 'vn2: 0MB' >>/tmp/survey.txt'
`->>> Exit status: 0

,-<<< Executing `if /bin/test -d /dev/serno; then /bin/ls -l /dev/serno | /usr/bin/grep "`/bin/ls -l /dev/vn2 | /usr/bin/awk '{print $5, $6;}'`" | /usr/bin/awk '{print $10;}' >>/tmp/survey.txt; fi'
`->>> Exit status: 0

,-<<< Executing `/sbin/fdisk -s vn2 2>/dev/null >>/tmp/survey.txt || /bin/echo '' >>/tmp/survey.txt'
`->>> Exit status: 0

,-<<< Executing `/bin/echo 'vn3: 0MB' >>/tmp/survey.txt'
`->>> Exit status: 0

,-<<< Executing `if /bin/test -d /dev/serno; then /bin/ls -l /dev/serno | /usr/bin/grep "`/bin/ls -l /dev/vn3 | /usr/bin/awk '{print $5, $6;}'`" | /usr/bin/awk '{print $10;}' >>/tmp/survey.txt; fi'
`->>> Exit status: 0

,-<<< Executing `/sbin/fdisk -s vn3 2>/dev/null >>/tmp/survey.txt || /bin/echo '' >>/tmp/survey.txt'
`->>> Exit status: 0

,-<<< Executing `/bin/echo 'g c3888 h256 s63' >/tmp/new.fdisk'
`->>> Exit status: 0

,-<<< Executing `/bin/echo 'p 1 165 63 62717697' >>/tmp/new.fdisk'
`->>> Exit status: 0

,-<<< Executing `/bin/echo 'a 1' >>/tmp/new.fdisk'
`->>> Exit status: 0

,-<<< Executing `/bin/cat /tmp/new.fdisk'
| g c3888 h256 s63
| p 1 165 63 62717697
| a 1
`->>> Exit status: 0

,-<<< Executing `/sbin/fdisk -v -f /tmp/new.fdisk mmcsd0'
| fdisk: WARNING line 1: number of cylinders (3888) may be out-of-range
|     (must be within 1-1024 for normal BIOS operation, unless the entire disk
|     is dedicated to DragonFly)
| fdisk: WARNING: adjusting size of partition 1 from 62717697 to 62705601
|     to end on a cylinder boundary
| ******* Working on device /dev/mmcsd0 *******
| Warning: ending cylinder wraps, using all 1's
| parameters extracted from device are:
| cylinders=3888 heads=256 sectors/track=63 (16128 blks/cyl)
| 
| Figures below won't work with BIOS for partitions not in cyl 1
| parameters to be used for BIOS calculations are:
| cylinders=3888 heads=256 sectors/track=63 (16128 blks/cyl)
| 
| Information from DOS bootblock is:
| 1: sysid 165,(DragonFly/FreeBSD/NetBSD/386BSD)
|     start 63, size 62705601 (30617 Meg), flag 80 (active)
| 	beg: cyl 0/ head 1/ sector 1;
| 	end: cyl 1023/ head 255/ sector 63
| 2: <UNUSED>
| 3: <UNUSED>
| 4: <UNUSED>
`->>> Exit status: 0

,-<<< Executing `/bin/rm -f /tmp/install.disklabel.mmcsd0s1'
`->>> Exit status: 0

,-<<< Executing `/sbin/disklabel64 -W mmcsd0s1'
`->>> Exit status: 0

,-<<< Executing `/bin/dd if=/dev/zero of=/dev/mmcsd0s1 bs=32k count=16'
| dd: /dev/mmcsd0s1: short write on character device
| dd: /dev/mmcsd0s1: end of device
| 1+0 records in
| 0+1 records out
| 32256 bytes transferred in 0.358280 secs (90030 bytes/sec)
`->>> Exit status: 1

----------------------------------------
Bug #2899: Install DragonFly to SD card
http://bugs.dragonflybsd.org/issues/2899#change-12918

* Author: dpostolov
* Status: New
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 
----------------------------------------
Hi to all DragonFly BSD developers and Community!
 
Sorry for my bad English...
 
I am try to install DragonFly BSD to my mini-PC Intel NUC5PPYH CPU Intel N3700, latest at this time BIOS 0050, to SD card Sony 32GB. NUC5PPYH BIOS supports booting Linux/FreeBSD from SD card.
 
uname -a
DragonFly dfw-7732.localdomain 4.5-DEVELOPMENT DragonFly v4.5.0.763.g541aa16-DEVELOPMENT #0: Tue Mar 29 10:54:30 UTC 2016    root at pkgbox64.dragonflybsd.org:/usr/obj/usr/src/sys/X86_64_GENERIC  x86_64
 
FreeBSD 10.3 successfully installed and works from SD card, but DragonFly is not. As I am understand, DragonFly detected SD, but Dfly Installer cant support geometry of this mmcsd0.
 
How I can install DragonFly BSD to SD card?
 
I am booted from USB stick and can installing Dfly to USB stick or HDD (later, afrer buying new HDD after failed previous), DragonFly Installer: Select a disk on which to install DragonFly BSD.
<da8: 7643MB (15654848 512 byte sectors: 255 63S/T 974C) > # This is bootable USB stick-installer
<mmcsd0> [void space]
 
If select mmcsd0, then Dfly Installer say about error. As I am understand, Installer cant recognized geometry of SD.
 
ls /dev/mmc* # on mmcsd0 installed version of FreeBSD 10.3
/dev/mmcsd0 /dev/mmcsd0s0 /dev/mmcsd0s1 /dev/mmcsd0s2
 
pciconf -lv
sdhci_pci0 at pci0:0:18:0 class=0x080501 card=0x20608086 chip=0x22968086 rev 0x21 hdr=0x00
vendor = 'Intel Corporation'
class = base peripherial
subclass = SD host controller
 
dmesg | grep sd
sdhci_pci0:< Generic SD HCI > mem 0x8141b000 - 0x8141bfff irq 18 at device 18.0 on pci0
sd hci_pci0:1slot(s) allocated
mmc0:<MMC/SD bus> on sdhci_pci0
mmcsd0:29GB < SDHC Memory Card > at mmc0 50Mhz/4bit
 
On FreeBSD different output data is:
 
dmesg | grep sd
mmcsd0:32GB < SDHC SD32G 3.0 SN7C400885 MFG 02/2015 by 39 PH > at mmc0 50Mhz/4bit/65535-block
 
---
 
best regards,
Dmitry Postolov
dpostolov at yandex.ru



-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account



More information about the Bugs mailing list