https://bugs.dragonflybsd.org/
https://bugs.dragonflybsd.org/favicon.ico?1629395208
2016-05-30T00:47:16Z
DragonFlyBSD bugtracker
DragonFlyBSD - Bug #2899: Install DragonFly to SD card
https://bugs.dragonflybsd.org/issues/2899?journal_id=12886
2016-05-30T00:47:16Z
swildner
<ul></ul><p>What's the exact error the installer is giving upon selecting mmcsd0 as target disk?</p>
<p>The error dialog should have an option to view the log. Please check it for the error and give us a screenshot or photo of the screen, please.</p>
<p>Best regards,<br />Sascha</p>
DragonFlyBSD - Bug #2899: Install DragonFly to SD card
https://bugs.dragonflybsd.org/issues/2899?journal_id=12898
2016-05-30T13:43:42Z
dpostolov
dpostolov@yandex.ru
<ul></ul><p>Hi swildner!</p>
<p>I am downloaded new snapshot of DragonFly and test again:</p>
<p>#uname -a<br />DragonFly 4.5-Development v4.5.0.1066.gd5657 Sun May 29 14:21:34 UTC 2016 X86_64_Generic</p>
<p>#dmesg | grep mmcsd0<br />mmcsd0: 29GB <SDHC Memory Card> at mmc0 50Mhz/4bit<br />#diskinfo -q /dev/mmcsd0<br />/dev/mmcsd0 blksize=512 off=0 size=00077a000000 30624.00MB</p>
<p>Now I am try to select mmcsd0 as target disk, but size of mmcsd0 is void:<br />DragonFly screenshot mmcsd0 void size - photo image: <a class="external" href="https://yadi.sk/i/M1PMTBK8s7jEq">https://yadi.sk/i/M1PMTBK8s7jEq</a></p>
<p>View Log:<br />Executing '/usr/bin/grep -w '^mmcsd0 [0-9]*MB' /var/run/dmesg.boot >> /tmp/survey.txt || /bin/echo 'mmcsd0' >> /temp/survey.txt'</p>
<p>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.</p>
<p>If manually edit /var/run/dmesg.boot and to replace "29GB" to "30624MB" then:<br />DragonFly screenshot mmcsd0 full size photo image: <a class="external" href="https://yadi.sk/i/53JcmC65s7jER">https://yadi.sk/i/53JcmC65s7jER</a></p>
<p>Lets to go Step by step to find a solution:<br />1. Correct value of mmcsd0 parameters in Installer target disk menu<br />2. Installation DragonFly to SD card.</p>
<p>If to select mmcsd0 as target disk, Installer try to format mmcsd0 and print:<br />"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>
<p>P.S. On FreeBSD bsdinstall successfully install FreeBSD to this SD card.<br />FreeBSD screenshot mmcsd0 full size photo image: <a class="external" href="https://yadi.sk/i/IboxUjYOs7jFN">https://yadi.sk/i/IboxUjYOs7jFN</a></p>
DragonFlyBSD - Bug #2899: Install DragonFly to SD card
https://bugs.dragonflybsd.org/issues/2899?journal_id=12899
2016-05-31T06:09:56Z
swildner
<ul></ul><p>Thanks for the info. I'll dig out my Laptop that has a PCI attached SD controller and try to find the issue.</p>
DragonFlyBSD - Bug #2899: Install DragonFly to SD card
https://bugs.dragonflybsd.org/issues/2899?journal_id=12901
2016-05-31T21:31:44Z
swildner
<ul></ul><p>I've pushed a commit that hopefully fixes the disk size detection issue you're seeing with mmcsd(4). See the commit msg for further details.</p>
<p><a class="external" href="http://lists.dragonflybsd.org/pipermail/commits/2016-May/500527.html">http://lists.dragonflybsd.org/pipermail/commits/2016-May/500527.html</a></p>
<p>If you need an ISO or IMG with that fix, wait a day or two and it should show up in our snapshots: <a class="external" href="http://avalon.dragonflybsd.org/snapshots/x86_64/">http://avalon.dragonflybsd.org/snapshots/x86_64/</a></p>
<p>I haven't done any further testing with it yet.</p>
<p>Please report results. :)</p>
<p>Regards,<br />Sascha</p>
DragonFlyBSD - Bug #2899: Install DragonFly to SD card
https://bugs.dragonflybsd.org/issues/2899?journal_id=12918
2016-06-04T17:44:16Z
dpostolov
dpostolov@yandex.ru
<ul></ul><p>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?</p>
<p>Log:</p>
<p>Installer started<br />-----------------<br />+ Creating DFUI connection on ``9999''</p>
<p>+ Connecting on ``9999''</p>
<p>,-<<< Executing `/bin/sh /tmp/extract_vars >/tmp/extracted_vars.txt'<br />`->>> Exit status: 0</p>
<p>+ Starting installer state machine<br />,-<<< Executing `/bin/echo 'da0: 476940MB' >>/tmp/survey.txt'<br />`->>> Exit status: 0</p>
<p>,-<<< Executing `if /bin/test <del>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'<br />`</del>>>> Exit status: 0</p>
<p>,-<<< Executing `/sbin/fdisk <del>s da0 2>/dev/null >>/tmp/survey.txt || /bin/echo '' >>/tmp/survey.txt'<br />`</del>>>> Exit status: 0</p>
<p>,-<<< Executing `/bin/echo 'da8: 14816MB' >>/tmp/survey.txt'<br />`->>> Exit status: 0</p>
<p>,-<<< Executing `if /bin/test <del>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'<br />`</del>>>> Exit status: 0</p>
<p>,-<<< Executing `/sbin/fdisk <del>s da8 2>/dev/null >>/tmp/survey.txt || /bin/echo '' >>/tmp/survey.txt'<br />`</del>>>> Exit status: 0</p>
<p>,-<<< Executing `/bin/echo 'mmcsd0: 30624MB' >>/tmp/survey.txt'<br />`->>> Exit status: 0</p>
<p>,-<<< Executing `if /bin/test <del>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'<br />`</del>>>> Exit status: 0</p>
<p>,-<<< Executing `/sbin/fdisk <del>s mmcsd0 2>/dev/null >>/tmp/survey.txt || /bin/echo '' >>/tmp/survey.txt'<br />`</del>>>> Exit status: 0</p>
<p>,-<<< Executing `/bin/echo 'vn0: 0MB' >>/tmp/survey.txt'<br />`->>> Exit status: 0</p>
<p>,-<<< Executing `if /bin/test <del>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'<br />`</del>>>> Exit status: 0</p>
<p>,-<<< Executing `/sbin/fdisk <del>s vn0 2>/dev/null >>/tmp/survey.txt || /bin/echo '' >>/tmp/survey.txt'<br />`</del>>>> Exit status: 0</p>
<p>,-<<< Executing `/bin/echo 'vn1: 0MB' >>/tmp/survey.txt'<br />`->>> Exit status: 0</p>
<p>,-<<< Executing `if /bin/test <del>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'<br />`</del>>>> Exit status: 0</p>
<p>,-<<< Executing `/sbin/fdisk <del>s vn1 2>/dev/null >>/tmp/survey.txt || /bin/echo '' >>/tmp/survey.txt'<br />`</del>>>> Exit status: 0</p>
<p>,-<<< Executing `/bin/echo 'vn2: 0MB' >>/tmp/survey.txt'<br />`->>> Exit status: 0</p>
<p>,-<<< Executing `if /bin/test <del>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'<br />`</del>>>> Exit status: 0</p>
<p>,-<<< Executing `/sbin/fdisk <del>s vn2 2>/dev/null >>/tmp/survey.txt || /bin/echo '' >>/tmp/survey.txt'<br />`</del>>>> Exit status: 0</p>
<p>,-<<< Executing `/bin/echo 'vn3: 0MB' >>/tmp/survey.txt'<br />`->>> Exit status: 0</p>
<p>,-<<< Executing `if /bin/test <del>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'<br />`</del>>>> Exit status: 0</p>
<p>,-<<< Executing `/sbin/fdisk <del>s vn3 2>/dev/null >>/tmp/survey.txt || /bin/echo '' >>/tmp/survey.txt'<br />`</del>>>> Exit status: 0</p>
<p>,-<<< Executing `/sbin/fdisk -BI mmcsd0'
| *<strong><b></strong>** Working on device /dev/mmcsd0 <strong></b></strong>***
| Warning: ending cylinder wraps, using all 1's<br />`->>> Exit status: 0</p>
<p>,-<<< Executing `/bin/echo 'da0: 476940MB' >>/tmp/survey.txt'<br />`->>> Exit status: 0</p>
<p>,-<<< Executing `if /bin/test <del>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'<br />`</del>>>> Exit status: 0</p>
<p>,-<<< Executing `/sbin/fdisk <del>s da0 2>/dev/null >>/tmp/survey.txt || /bin/echo '' >>/tmp/survey.txt'<br />`</del>>>> Exit status: 0</p>
<p>,-<<< Executing `/bin/echo 'da8: 14816MB' >>/tmp/survey.txt'<br />`->>> Exit status: 0</p>
<p>,-<<< Executing `if /bin/test <del>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'<br />`</del>>>> Exit status: 0</p>
<p>,-<<< Executing `/sbin/fdisk <del>s da8 2>/dev/null >>/tmp/survey.txt || /bin/echo '' >>/tmp/survey.txt'<br />`</del>>>> Exit status: 0</p>
<p>,-<<< Executing `/bin/echo 'mmcsd0: 30624MB' >>/tmp/survey.txt'<br />`->>> Exit status: 0</p>
<p>,-<<< Executing `if /bin/test <del>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'<br />`</del>>>> Exit status: 0</p>
<p>,-<<< Executing `/sbin/fdisk <del>s mmcsd0 2>/dev/null >>/tmp/survey.txt || /bin/echo '' >>/tmp/survey.txt'<br />`</del>>>> Exit status: 0</p>
<p>,-<<< Executing `/bin/echo 'vn0: 0MB' >>/tmp/survey.txt'<br />`->>> Exit status: 0</p>
<p>,-<<< Executing `if /bin/test <del>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'<br />`</del>>>> Exit status: 0</p>
<p>,-<<< Executing `/sbin/fdisk <del>s vn0 2>/dev/null >>/tmp/survey.txt || /bin/echo '' >>/tmp/survey.txt'<br />`</del>>>> Exit status: 0</p>
<p>,-<<< Executing `/bin/echo 'vn1: 0MB' >>/tmp/survey.txt'<br />`->>> Exit status: 0</p>
<p>,-<<< Executing `if /bin/test <del>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'<br />`</del>>>> Exit status: 0</p>
<p>,-<<< Executing `/sbin/fdisk <del>s vn1 2>/dev/null >>/tmp/survey.txt || /bin/echo '' >>/tmp/survey.txt'<br />`</del>>>> Exit status: 0</p>
<p>,-<<< Executing `/bin/echo 'vn2: 0MB' >>/tmp/survey.txt'<br />`->>> Exit status: 0</p>
<p>,-<<< Executing `if /bin/test <del>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'<br />`</del>>>> Exit status: 0</p>
<p>,-<<< Executing `/sbin/fdisk <del>s vn2 2>/dev/null >>/tmp/survey.txt || /bin/echo '' >>/tmp/survey.txt'<br />`</del>>>> Exit status: 0</p>
<p>,-<<< Executing `/bin/echo 'vn3: 0MB' >>/tmp/survey.txt'<br />`->>> Exit status: 0</p>
<p>,-<<< Executing `if /bin/test <del>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'<br />`</del>>>> Exit status: 0</p>
<p>,-<<< Executing `/sbin/fdisk <del>s vn3 2>/dev/null >>/tmp/survey.txt || /bin/echo '' >>/tmp/survey.txt'<br />`</del>>>> Exit status: 0</p>
<p>,-<<< Executing `/bin/echo 'g c3888 h256 s63' >/tmp/new.fdisk'<br />`->>> Exit status: 0</p>
<p>,-<<< Executing `/bin/echo 'p 1 165 63 62717697' >>/tmp/new.fdisk'<br />`->>> Exit status: 0</p>
<p>,-<<< Executing `/bin/echo 'a 1' >>/tmp/new.fdisk'<br />`->>> Exit status: 0</p>
<p>,-<<< Executing `/bin/cat /tmp/new.fdisk'
| g c3888 h256 s63
| p 1 165 63 62717697
| a 1<br />`->>> Exit status: 0</p>
<p>,-<<< 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
| *<strong><b></strong>** Working on device /dev/mmcsd0 <strong></b></strong>***
| 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><br />`->>> Exit status: 0</p>
<p>,-<<< Executing `/bin/rm <del>f /tmp/install.disklabel.mmcsd0s1'<br />`</del>>>> Exit status: 0</p>
<p>,-<<< Executing `/sbin/disklabel64 <del>W mmcsd0s1'<br />`</del>>>> Exit status: 0</p>
<p>,-<<< 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)<br />`->>> Exit status: 1</p>
DragonFlyBSD - Bug #2899: Install DragonFly to SD card
https://bugs.dragonflybsd.org/issues/2899?journal_id=13081
2017-03-18T19:58:22Z
swildner
<ul></ul><p>There have been fixes to mmcsd etc. in recent times and just today I pushed another fix. If you still have this setup lying around, can you try with a current snapshot again (my fix should be on it too in a day or two)?</p>
DragonFlyBSD - Bug #2899: Install DragonFly to SD card
https://bugs.dragonflybsd.org/issues/2899?journal_id=13082
2017-03-19T02:11:01Z
dpostolov
dpostolov@yandex.ru
<ul></ul><p>I am sorry, but now I am use only one NUC DN2820FYKH without cardreader. NUC5PPYH with cardreader in reservation.</p>
DragonFlyBSD - Bug #2899: Install DragonFly to SD card
https://bugs.dragonflybsd.org/issues/2899?journal_id=13142
2017-05-13T10:46:50Z
dpostolov
dpostolov@yandex.ru
<ul></ul><p>Updated by swildner about 2 months ago></p>
<p>There have been fixes to mmcsd etc. in recent times and just today I pushed another fix. If you still have this setup lying around, can you try with a current snapshot again (my fix should be on it too in a day or two)?</p>
<p>Updated by dpostolov about 2 months ago></p>
<p>I am sorry, but now I am use only one NUC DN2820FYKH without cardreader. NUC5PPYH with cardreader in reservation.</p>
<p>--- Sorry for my bad English...</p>
<p>I am return Intel NUC5PPYH with cardreader to my Home WorkSpace and try to install latest DragonFly BSD image from May 12. All OK and I am successfully install and run DragonFly BSD from SD Card Sony 32 GB.</p>
<p>uname -a</p>
<p>DragonFly dfly.local 4.9-DEVELOPMENT DragonFly v4.9.242.gfa5c6-DEVELOPMENT #0: Fri May 12 12:28:22 UTC 2017 <a class="email" href="mailto:root@pkgbox64.dragonflybsd.org">root@pkgbox64.dragonflybsd.org</a>: /usr/obj/usr/src/sys/x86_64_GENERIC x86_64</p>
<p>The problem is [SOLVED].</p>
DragonFlyBSD - Bug #2899: Install DragonFly to SD card
https://bugs.dragonflybsd.org/issues/2899?journal_id=13670
2019-06-15T15:28:29Z
liweitianux
liweitianux@live.com
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Resolved</i></li></ul>