From owner-freebsd-arm@freebsd.org Tue Sep 8 05:14:02 2015 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 38B859CCE79 for ; Tue, 8 Sep 2015 05:14:02 +0000 (UTC) (envelope-from sig6247@openmailbox.org) Received: from mail2.openmailbox.org (mail2.openmailbox.org [62.4.1.33]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EE28719C6 for ; Tue, 8 Sep 2015 05:14:01 +0000 (UTC) (envelope-from sig6247@openmailbox.org) Received: by mail2.openmailbox.org (Postfix, from userid 1004) id 6FA642AC18B0; Tue, 8 Sep 2015 07:13:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=openmailbox.org; s=openmailbox; t=1441689233; bh=SSvyPAxyLigHVs4+nkcqGa0xiE4pmkMOJaKoHo6dNCk=; h=Date:From:To:Subject:From; b=hwb6ikTLDbeK2vBgJyilO6aqNWFw/ym214744gROI7xaBWeKFJSHBTrru1TqpmaCj 9r/jWr6+lZQ6WRt65JOEshmO8YvP/hsW3SENwRYDRGXOl44hokw+6z/SW09jbRLAbx YYU/XfM7wG6e1JZbGHuGpGORa6XRb82a9i6AGfOI= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on openmailbox-b2 X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MISSING_MID,NO_RECEIVED,NO_RELAYS autolearn=no autolearn_force=no version=3.4.0 Date: Tue, 08 Sep 2015 05:13:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=openmailbox.org; s=openmailbox; t=1441689233; bh=SSvyPAxyLigHVs4+nkcqGa0xiE4pmkMOJaKoHo6dNCk=; h=Date:From:To:Subject:From; b=hwb6ikTLDbeK2vBgJyilO6aqNWFw/ym214744gROI7xaBWeKFJSHBTrru1TqpmaCj 9r/jWr6+lZQ6WRt65JOEshmO8YvP/hsW3SENwRYDRGXOl44hokw+6z/SW09jbRLAbx YYU/XfM7wG6e1JZbGHuGpGORa6XRb82a9i6AGfOI= From: sig6247 To: freebsd-arm@freebsd.org Subject: A10/A20 AHCI device not working on BananaPi M1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-Id: <20150908051353.6FA642AC18B0@mail2.openmailbox.org> X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Sep 2015 05:14:02 -0000 Hi, I'm running 11.0-CURRENT r287391 with KERNCONF=A20, the hard disk is connected on the SATA port. It seems it can not read/write the disk reliably. # newfs -U /dev/ada0 /dev/ada0: 476940.0MB (976773168 sectors) block size 32768, fragment size 4096 using 762 cylinder groups of 626.09MB, 20035 blks, 80256 inodes. with soft updates super-block backups (for fsck_ffs -b #) at: 192, 1282432, 2564672, 3846912, 5129152, 6411392, 7693632, 8975872, 10258112, 11540352, 12822592, 14104832, 15387072, 16669312, 17951552, 19233792, ... ... 962962432, 964244672, 965526912, 966809152, 968091392, 969373632, 970655872, 971938112, 973220352, 974502592, 975784832 cg 0: bad magic number # dd if=/dev/zero of=/dev/ada0 bs=512 count=1 1+0 records in 1+0 records out 512 bytes transferred in 0.062203 secs (8231 bytes/sec) # dd if=/dev/ada0 bs=512 count=1 | hexdump -C 1+0 records in 1+0 records out 512 bytes transferred in 0.001043 secs (490911 bytes/sec) 00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 00000040 a5 a5 a5 a5 a5 a5 a5 a5 a5 a5 a5 a5 a5 a5 a5 a5 |................| * 00000080 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| * 000000c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 00000100 a5 a5 a5 a5 a5 a5 a5 a5 a5 a5 a5 a5 a5 a5 a5 a5 |................| * 00000140 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| * 00000180 a5 a5 a5 a5 a5 a5 a5 a5 a5 a5 a5 a5 a5 a5 a5 a5 |................| * 00000200 # dd if=/dev/ada0 bs=512 count=1 | hexdump -C 1+0 records in 1+0 records out 512 bytes transferred in 0.001050 secs (487832 bytes/sec) 00000000 a5 a5 a5 a5 a5 a5 a5 a5 a5 a5 a5 a5 a5 a5 a5 a5 |................| * 00000100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 00000140 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| * 00000180 a5 a5 a5 a5 a5 a5 a5 a5 a5 a5 a5 a5 a5 a5 a5 a5 |................| * 00000200