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

bugtracker-admin at leaf.dragonflybsd.org bugtracker-admin at leaf.dragonflybsd.org
Mon May 30 06:43:42 PDT 2016


Issue #2899 has been updated by dpostolov.


Hi swildner!

I am downloaded new snapshot of DragonFly and test again:

#uname -a
DragonFly 4.5-Development v4.5.0.1066.gd5657 Sun May 29 14:21:34 UTC 2016 X86_64_Generic

#dmesg | grep mmcsd0
mmcsd0: 29GB <SDHC Memory Card> at mmc0 50Mhz/4bit
#diskinfo -q /dev/mmcsd0
/dev/mmcsd0 blksize=512 off=0 size=00077a000000 30624.00MB

Now I am try to select mmcsd0 as target disk, but size of mmcsd0 is void:
DragonFly screenshot mmcsd0 void size - photo image: https://yadi.sk/i/M1PMTBK8s7jEq

View Log:
Executing '/usr/bin/grep -w '^mmcsd0 [0-9]*MB' /var/run/dmesg.boot >> /tmp/survey.txt || /bin/echo 'mmcsd0' >> /temp/survey.txt'

I am think, that Installer try to find the string "MB", but SD card in dmesg detected as "GB" size, then Installer print void space about SD card parameters.

If manually edit /var/run/dmesg.boot and to replace "29GB" to "30624MB" then:
DragonFly screenshot mmcsd0 full size photo image: https://yadi.sk/i/53JcmC65s7jER

Lets to go Step by step to find a solution:
1. Correct value of mmcsd0 parameters in Installer target disk menu
2. Installation DragonFly to SD card.

If to select mmcsd0 as target disk, Installer try to format mmcsd0 and print:
"The sole primary partition of the disk mmcsd0 was not correctly formatted, and may now be in on inconsistent state. We recommend re-formatting the disk before attempting to install DragonFly BSD on it."

P.S. On FreeBSD bsdinstall successfully install FreeBSD to this SD card.
FreeBSD screenshot mmcsd0 full size photo image: https://yadi.sk/i/IboxUjYOs7jFN

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

* 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