Date: Sun, 11 Jan 2015 12:57:39 +0900 From: "Daisuke Aoyama" <aoyama@peach.ne.jp> To: <freebsd-arm@freebsd.org> Subject: Re: NAS4Free on Raspberry Pi and ARM problems Message-ID: <8B52D212B8274A619E32AB455C941860@ad.peach.ne.jp> In-Reply-To: <F4CBCA49441F46B2ABB19017AC3359FE@ad.peach.ne.jp> References: <F4CBCA49441F46B2ABB19017AC3359FE@ad.peach.ne.jp>
next in thread | previous in thread | raw e-mail | index | archive | help
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/<mount point name>. 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 <SDHC SD 0.2 SN 00028185 MFG 06/2014 by 29 AD> at mmc0 50.0MHz/4bit/65535-block Transcend 32GB UHS-I TS32GSDU1 mmcsd0: 32GB <SDHC SDU1 0.2 SN 4700C511 MFG 08/2014 by 116 JE> at mmc0 50.0MHz/4bit/65535-block TOSHIBA EXCERIA TypeHD 32GB UHS-I SD-H32GR7WA3 mmcsd0: 32GB <SDHC SD32G 8.5 SN EF54D635 MFG 10/2012 by 2 TM> at mmc0 50.0MHz/4bit/65535-block SAMSUNG EVO 16GB UHS-I MB-SP16D/JPEC mmcsd0: 16GB <SDHC 00000 1.0 SN DB242AD3 MFG 04/2014 by 27 SM> at mmc0 50.0MHz/4bit/65535-block TOSHIBA microSD 16GB UHS-I SD-C016GR7AR30 mmcsd0: 16GB <SDHC SA16G 1.2 SN 22C01A20 MFG 02/2014 by 2 TM> at mmc0 50.0MHz/4bit/65535-block KINGMAX 8GB Class10 KM-SDHC10X8G mmcsd0: 8GB <SDHC NCard 1.0 SN 133070A2 MFG 07/2012 by 115 BG> at mmc0 50.0MHz/4bit/65535-bloc Amazon Basics 8GB Class10 mmcsd0: 8GB <SDHC SD08G 3.0 SN 701F2991 MFG 11/2012 by 39 PH> at mmc0 50.0MHz/4bit/65535-block IO DATA microSD 4GB Class4 BMS-4G4A mmcsd0: 4GB <SDHC SD04G 3.0 SN 7C75A8D8 MFG 01/2012 by 39 PH> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8B52D212B8274A619E32AB455C941860>