From owner-freebsd-arm@FreeBSD.ORG Sun Jan 11 04:03:08 2015 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 77CD2905 for ; Sun, 11 Jan 2015 04:03:08 +0000 (UTC) Received: from moon.peach.ne.jp (moon.peach.ne.jp [203.141.148.98]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1EACFE06 for ; Sun, 11 Jan 2015 04:03:07 +0000 (UTC) Received: from moon.peach.ne.jp (localhost [127.0.0.1]) by moon.peach.ne.jp (Postfix) with ESMTP id 9C2616811E for ; Sun, 11 Jan 2015 12:57:42 +0900 (JST) Received: from artemis (unknown [172.18.0.21]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by moon.peach.ne.jp (Postfix) with ESMTPSA id 8939F68118 for ; Sun, 11 Jan 2015 12:57:42 +0900 (JST) Message-ID: <8B52D212B8274A619E32AB455C941860@ad.peach.ne.jp> From: "Daisuke Aoyama" To: References: In-Reply-To: Subject: Re: NAS4Free on Raspberry Pi and ARM problems Date: Sun, 11 Jan 2015 12:57:39 +0900 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 14.0.8117.416 X-MimeOLE: Produced By Microsoft MimeOLE V14.0.8117.416 X-Virus-Scanned: ClamAV using ClamSMTP X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Jan 2015 04:03:08 -0000 Hi all, I've made probably final test image of NAS4Free. This contains workaround patches which solve previous failures such as: "[Bug 181601] Sporadic failure of root mount on ARM/Raspberry" http://lists.freebsd.org/pipermail/freebsd-arm/2014-December/009866.html "C++ exceptions in freebsd-arm doesn't seem to work" http://lists.freebsd.org/pipermail/freebsd-arm/2014-August/008994.html Now clang 3.5 and NAS4Free work well. Thank you for importing clang 3.5. NAS4Free has been built by 100% clang. (u-boot was built by clang 3.4 at last year) You can get latest test image of NAS4Free 9.3.0.2 for RPi(1GB SD card) from: http://www.peach.ne.jp/archives/nas4free/test/NAS4Free-rpi-SD-9.3.0.2.1295-20150111.img.gz If it works well on broken SD cards, I will create separated patches against latest FreeBSD source. If you have broken cards, please help checking SD cards. Simply, write above image and boot it! Try to dd from mmcsd0 like this from console menu #6: (expect over 12.5MB/s) # dd if=/dev/mmcsd0 of=/dev/null bs=1m count=64 Changes since 9.3.0.2.1214: base image of FreeBSD is switched to clang 3.5 version. finished to import both ports/firefly (iTunes/DAAP) and ports/fuppes (DLNA/UPnP). resolved c++ exception (avoid smartctl core dump). add workaround HS mode (solves failure HS detection) improve DMA mode of SDHCI access. fix wrong word access in bcm2835_sdhci. change loader.conf to set hw.bcm2835.sdhci.hs=1. change system partition size. add extra partition. include all NAS4Free changes. (now all WebGUI code is merged in trunk@SVN) -------------------------------------------------------------------------------------- How to use extra partition: If you write NAS4Free to SD card of 2GB or more capacity, you can use extra partition as data area. Boot any version of NAS4Free or FreeBSD based on 11-CURRENT. Insert SD card written new version to USB card reader, then attach to booted host. If your card is detected as da0, run following commands: (please replace da0 with your USB card reader's device) # gpart resize -i4 da0 # gpart resize -a4m -i1 da0s4 # newfs -U -j /dev/da0s4a Now you have formatted data area in the end of SD card. Note: You can't modify correctly after booting. Using USB card reader before booting is very important. After booting resized new version, go to "Disks|Management" and click "Import disks". Next, go to "Disks|Mount Point|Management", and add mount point. Select "Disk" -> your SD card, "Partition type" -> MBR partition, "Partition number" -> 4, "Mount point name" -> any string. Click Add button. Finally, apply the change. Now above /dev/da0s4a is mounted on /mnt/. You can add shares on it. -------------------------------------------------------------------------------------- Unchecked/Unresolved problems: >Internal LAN driver cause timeout. >>kernel: smsc0: warning: MII read timeout >>kernel: smsc0: warning: Failed to read register 0x114 I didn't see it on r276645 kernel. -------------------------------------------------------------------------------------- HS mode booting tested cards: HanyeTech 64GB UHS-I mmcsd0: 65GB at mmc0 50.0MHz/4bit/65535-block Transcend 32GB UHS-I TS32GSDU1 mmcsd0: 32GB at mmc0 50.0MHz/4bit/65535-block TOSHIBA EXCERIA TypeHD 32GB UHS-I SD-H32GR7WA3 mmcsd0: 32GB at mmc0 50.0MHz/4bit/65535-block SAMSUNG EVO 16GB UHS-I MB-SP16D/JPEC mmcsd0: 16GB at mmc0 50.0MHz/4bit/65535-block TOSHIBA microSD 16GB UHS-I SD-C016GR7AR30 mmcsd0: 16GB at mmc0 50.0MHz/4bit/65535-block KINGMAX 8GB Class10 KM-SDHC10X8G mmcsd0: 8GB at mmc0 50.0MHz/4bit/65535-bloc Amazon Basics 8GB Class10 mmcsd0: 8GB at mmc0 50.0MHz/4bit/65535-block IO DATA microSD 4GB Class4 BMS-4G4A mmcsd0: 4GB at mmc0 50.0MHz/4bit/65535-block -------------------------------------------------------------------------------------- dd result of SD-H32GR7WA3: # dd if=/dev/mmcsd0 of=/dev/null bs=1m count=64 64+0 records in 64+0 records out 67108864 bytes transferred in 2.961009 secs (22664188 bytes/sec) # dd if=/dev/zero of=/dev/mmcsd0s2b bs=1m count=64 64+0 records in 64+0 records out 67108864 bytes transferred in 4.815796 secs (13935155 bytes/sec) -------------------------------------------------------------------------------------- Enjoy NAS4Free world yourself. Thanks, -- Daisuke Aoyama