From owner-freebsd-arm@FreeBSD.ORG Tue Nov 12 19:46:18 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C71EDA46 for ; Tue, 12 Nov 2013 19:46:18 +0000 (UTC) Received: from kukuro.siemiradzcy.pl (host-89-231-96-32.warszawa.mm.pl [89.231.96.32]) by mx1.freebsd.org (Postfix) with ESMTP id 57732205D for ; Tue, 12 Nov 2013 19:46:17 +0000 (UTC) Received: from [10.84.12.122] (volkove-THINK.siemiradzcy.pl [10.84.12.122]) by kukuro.siemiradzcy.pl (Postfix) with ESMTPSA id 75E51C0079 for ; Tue, 12 Nov 2013 20:36:20 +0100 (CET) Message-ID: <52828332.8070603@siemiradzcy.pl> Date: Tue, 12 Nov 2013 20:36:18 +0100 From: =?UTF-8?B?xYF1a2FzeiBKYWt1YiBTaWVtaXJhZHpraQ==?= User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: freebsd-arm@freebsd.org Subject: E-sata drive not detected on Kirkwood 88F6281 SoC (Sheevaplug) on FreeBSD 10/BETA3 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Nov 2013 19:46:18 -0000 Hello group! I hope you could help me with the problem I'm trying to solve. I'm having a problem with e-sata drive on FreeBSD 10/BETA3 on Kirkwood 88F6281 SoC (aka Sheevaplug) - it is not detected during boot. It was working fine for FreeBSD 8.2. I know that there were (at least) two important changes for ATA stack which may be the reason, that this changes on 20110424 and on 20130404. However my understanding was that compiling into the kernel mvs and ada will fix the problem. As I understand from the manpage mvs should also support my controller: 88F6281 SoC, but I cannot see it: # camcontrol devlist at scbus0 target 0 lun 0 (pass0,da0) Would you be able to suggest me what else I can check? Below my kernel config: # # Custom kernel for Marvell SheevaPlug devices. # # $FreeBSD: stable/10/sys/arm/conf/SHEEVAPLUG 253845 2013-07-31 17:21:18Z obrien $ # ident SHEEVAPLUG include "../mv/kirkwood/std.db88f6xxx" options SOC_MV_KIRKWOOD makeoptions MODULES_OVERRIDE="" #makeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols makeoptions WERROR="-Werror" options SCHED_4BSD #4BSD scheduler options INET #InterNETworking options INET6 #IPv6 communications protocols options FFS #Berkeley Fast Filesystem options NANDFS #NAND Filesystem options NFSCL #New Network Filesystem Client options NFSLOCKD #Network Lock Manager #options NFS_ROOT #NFS usable as /, requires NFSCL #options BOOTP #options BOOTP_NFSROOT #options BOOTP_NFSV3 #options BOOTP_WIRED_TO=mge0 # Root fs on USB device #options ROOTDEVNAME=\"ufs:/dev/da0a\" #options ROOTDEVNAME=\"ufs:/dev/da1s1a\" #options ROOTDEVNAME=\"ufs:/dev/da1p10\" #options ROOTDEVNAME=\"ufs:/dev/ad2d2\" options ROOTDEVNAME=\"nandfs:/dev/gnand0s.root\" options SYSVSHM #SYSV-style shared memory options SYSVMSG #SYSV-style message queues options SYSVSEM #SYSV-style semaphores options _KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time extensions options MUTEX_NOINLINE options RWLOCK_NOINLINE options NO_FFS_SNAPSHOT options NO_SWAPPING # Debugging options ALT_BREAK_TO_DEBUGGER options DDB options KDB # Pseudo devices device random device loop # Serial ports device uart # Networking device ether device mge # Marvell Gigabit Ethernet controller device mii device e1000phy device bpf options HZ=1000 options DEVICE_POLLING device vlan device cesa # Marvell security engine device crypto device cryptodev # USB options USB_DEBUG # enable debug msgs device usb device ehci device umass device scbus device pass device da # NAND device nand # NAND sim options ALQ device nandsim # Flattened Device Tree options FDT options FDT_DTB_STATIC makeoptions FDT_DTS_FILE=sheevaplug.dts device md device mvs device ada device pf device pflog options MSDOSFS options GEOM_PART_GPT Here is the full output of the boot sequence: Marvell>> ide reset Reset IDE: Marvell Serial ATA Adapter Integrated Sata device found [0 1 0]: Enable DMA mode Device 1 @ 0 1: Model: WDC WD20EARX-00PASB0 Firm: 51.0AB51 Ser#: WD-WCAZAJ212143 Type: Hard Disk Supports 48-bit addressing Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512) Marvell>> usb reset (Re)start USB... USB: scanning bus for devices... 2 USB Device(s) found scanning bus for storage devices... 1 Storage Device(s) found Marvell>> boot BOOTP broadcast 1 *** Unhandled DHCP Option in OFFER/ACK: 28 *** Unhandled DHCP Option in OFFER/ACK: 28 DHCP client bound to address 10.64.1.5 Using egiga0 device TFTP from server 10.64.1.2; our IP address is 10.64.1.5 Filename 'kernel.bin'. Load address: 0x900000 Loading: ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ##################################################### done Bytes transferred = 4260808 (4103c8 hex) ## Starting application at 0x00900000 ... KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2013 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 10.0-BETA3 #4 r257803M: Tue Nov 12 02:16:15 CET 2013 root@fb:/usr/obj/arm.arm/usr/src/sys/SHEEVAPLUG arm FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610 CPU: Feroceon 88FR131 rev 1 (Marvell core) Little-endian DC enabled IC enabled WA disabled DC streaming enabled BTB disabled L2 enabled L2 prefetch enabled WB enabled EABT branch prediction enabled 16KB/32B 4-way instruction cache 16KB/32B 4-way write-back-locking-C data cache real memory = 536870912 (512 MB) avail memory = 518631424 (494 MB) SOC: Marvell 88F6281 rev A0, TClock 200MHz Instruction cache prefetch enabled, data cache prefetch enabled 256KB 4-way set-associative write-through unified L2 cache random device not loaded; using insecure entropy random: initialized localbus0: on fdtbus0 nand0: mem 0xf9300000-0xf93fffff on localbus0 nandbus0: on nand0 lnand0: on nandbus0 lnand0: Found BBT table for chip simplebus0: on fdtbus0 ic0: mem 0xf1020200-0xf102023b on simplebus0 timer0: mem 0xf1020300-0xf102032f irq 1 on simplebus0 Event timer "CPUTimer0" frequency 200000000 Hz quality 1000 Timecounter "CPUTimer1" frequency 200000000 Hz quality 1000 gpio0: mem 0xf1010100-0xf101011f irq 35,36,37,38,39,40,41 on simplebus0 rtc0: mem 0xf1010300-0xf1010307 on simplebus0 mge0: mem 0xf1072000-0xf1073fff irq 12,13,14,11,46 on simplebus0 mge0: Ethernet address: 00:50:43:01:4c:aa miibus0: on mge0 e1000phy0: PHY 0 on miibus0 e1000phy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto uart0: <16550 or compatible> mem 0xf1012000-0xf101201f irq 33 on simplebus0 uart0: console (1066,n,8,1) uart1: <16550 or compatible> mem 0xf1012100-0xf101211f irq 34 on simplebus0 cesa0: mem 0xf1030000-0xf103ffff irq 22 on simplebus0 ehci0: mem 0xf1050000-0xf1050fff irq 48,19 on simplebus0 usbus0: EHCI version 1.0 usbus0: set host controller mode usbus0 on ehci0 cryptosoft0: Timecounters tick every 1.000 msec usbus0: 480Mbps High Speed USB v2.0 ugen0.1: at usbus0 uhub0: on usbus0 random: unblocking device. Root mount waiting for: usbus0 uhub0: 1 port with 1 removable, self powered Root mount waiting for: usbus0 Root mount waiting for: usbus0 ugen0.2: at usbus0 umass0: on usbus0 umass0: SCSI over Bulk-Only; quirks = 0x4100 umass0:0:0:-1: Attached to scbus0 Trying to mount root from nandfs:/dev/gnand0s.root []... WARNING: NANDFS is considered to be a highly experimental feature in FreeBSD. da0 at umass-sim0 bus 0 scbus0 target 0 lun 0 da0: Removable Direct Access SCSI-2 device da0: Serial Number 124500000000038F da0: 40.000MB/s transfers da0: 7651MB (15669248 512 byte sectors: 255H 63S/T 975C) da0: quirks=0x2 Setting hostuuid: a67cbd38-c0d3-11d3-a56f-005043014caa. Setting hostid: 0x9d53772f. Entropy harvesting: interrupts ethernet point_to_point swi. Starting file system checks: Mounting local file systems:. Writing entropy file:. Setting hostname: pathogen. Starting Network: lo0 mge0. lo0: flags=8049 metric 0 mtu 16384 options=600003 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff000000 nd6 options=21 mge0: flags=8802 metric 0 mtu 1500 options=8000b ether 00:50:43:01:4c:aa media: Ethernet autoselect (1000baseT ) status: active nd6 options=29 Starting devd. Starting Network: mge0. mge0: flags=8802 metric 0 mtu 1500 options=8000b ether 00:50:43:01:4c:aa media: Ethernet autoselect (1000baseT ) status: active nd6 options=29 add net fe80::: gateway ::1 add net ff02::: gateway ::1 add net ::ffff:0.0.0.0: gateway ::1 add net ::0.0.0.0: gateway ::1 Generating host.conf. eval: cannot create /etc/host.conf: Read-only file system eval: cannot create /etc/host.conf: Read-only file system eval: cannot create /etc/host.conf: Read-only file system Creating and/or trimming log files. Starting syslogd. ELF ldconfig path: /lib /usr/lib /usr/lib/compat Clearing /tmp (X related). Updating motd: /etc/motd is not writable, update failed. Mounting late file systems:. Performing sanity check on sshd configuration. Starting sshd. Starting sendmail_submit. Starting sendmail_msp_queue. Starting cron. Starting background file system checks in 60 seconds. Tue Nov 12 18:39:39 UTC 2013 FreeBSD/arm (pathogen) (ttyu0) login: root Nov 12 18:39:52 pathogen login: ROOT LOGIN (root) ON ttyu0 FreeBSD 10.0-BETA3 (SHEEVAPLUG) #3 r257803M: Tue Nov 12 00:58:51 CET 2013 Welcome to FreeBSD! Before seeking technical support, please use the following resources: o Security advisories and updated errata information for all releases are at http://www.FreeBSD.org/releases/ - always consult the ERRATA section for your release first as it's updated frequently. o The Handbook and FAQ documents are at http://www.FreeBSD.org/ and, along with the mailing lists, can be searched by going to http://www.FreeBSD.org/search/. If the doc package has been installed (or fetched via pkg install lang-freebsd-doc, where lang is the 2-letter language code, e.g. en), they are also available formatted in /usr/local/share/doc/freebsd. If you still have a question or problem, please take the output of `uname -a', along with any relevant error messages, and email it as a question to the questions@FreeBSD.org mailing list. If you are unfamiliar with FreeBSD's directory layout, please refer to the hier(7) manual page. If you are not familiar with manual pages, type `man man'. Edit /etc/motd to change this login announcement. root@pathogen:~ # --- Best regards / Pozdrawiam Ɓukasz Siemiradzki