From owner-freebsd-arm@FreeBSD.ORG Wed Apr 22 21:32:21 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 1EA84B35 for ; Wed, 22 Apr 2015 21:32:21 +0000 (UTC) Received: from nimrev.com (nimrev.com [188.226.203.191]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 79F111883 for ; Wed, 22 Apr 2015 21:32:20 +0000 (UTC) Received: from nimrev.com (localhost [127.0.0.1]); by nimrev.com (OpenSMTPD) with ESMTP id 5901d685; for ; Wed, 22 Apr 2015 21:25:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=nimrev.com; h=from :content-type:content-transfer-encoding:subject:message-id:date :to:mime-version; s=mail; bh=meNVRV4rnmupz35AKylKRzAQsoE=; b=RB7 cbzmqcCaMRyZvSww1KtDWkIp8F/u1zXpf7hcZcmdiQ36vuiY2Q+HgcMLtNFDHPC6 gI0xfyT8cri/HiG2PIn3e2sZCY5sqgCYw3xfTOdBxLIWzbSIV40zva+X/scbk+3T T3A4lBq8Yxpn7XDEyIUonb+516BeDpsIJ8XEZxbo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=nimrev.com; h=from :content-type:content-transfer-encoding:subject:message-id:date :to:mime-version; q=dns; s=mail; b=X+jT1r5PirX/TNdxV9IxUZDDTOKte SZfUobqptJepjEYm2lPYl2wnGQzfjAXwsFoFxW+5hmSXfxa3FfTlMEF9PZuoZe09 EXHC7PJfvExA0eupQF74JeaBvtVlSlrain/qvkWf4sNTE9Bas91hIOmHKdkxW0lT LEbAd7ATB7oWTM= Received: by mail.nimrev.com (OpenSMTPD) with ESMTPSA id 29a4fb0a; TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO; for ; Wed, 22 Apr 2015 21:25:35 +0200 (CEST) From: Bas Vermin Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: mmc/sd driver testing. Message-Id: Date: Wed, 22 Apr 2015 23:25:35 +0200 To: freebsd-arm@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) X-Mailer: Apple Mail (2.2098) 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: Wed, 22 Apr 2015 21:32:21 -0000 Hey Luiz, I just tried your patches with a a fresh -HEAD. The mmc driver seems to register just fine and is able to detect the = partitions on my sd card.=20 However my Cubieboard doesn=E2=80=99t seem to get to the login prompt, = it gets stuck after the =E2=80=9Cwarning: no time-of-day clock = registered=E2=80=A6=E2=80=9D After this happened I waited a while just to make sure it wasn=E2=80=99t = slow read speeds, CPU die gets really warm.=20 Also the system didn=E2=80=99t freeze, when I plug in a USB stick it = still outputs messages to the console. Any ideas about what could be going on? My boot log: U-Boot 2015.01-5 (Mar 21 2015 - 11:29:51) Arch Linux ARM CPU: Allwinner A10 (SUN4I) I2C: ready DRAM: 1016 MiB MMC: SUNXI SD/MMC: 0 *** Warning - bad CRC, using default environment Reserved 8192kB of RAM for Framebuffer. In: serial Out: serial Err: serial SCSI: SUNXI SCSI INIT SATA link 0 timeout. AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl SATA mode flags: ncq stag pm led clo only pmp pio slum part ccc apst=20 Net: emac (Re)start USB... USB0: USB EHCI 1.00 scanning bus 0 for devices... 1 USB Device(s) found USB1: USB EHCI 1.00 scanning bus 1 for devices... 1 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found Hit any key to stop autoboot: 0=20 sun4i# fatload mmc 0 0x40200000 kernel; go 0x40200100 reading kernel 5935420 bytes read in 397 ms (14.3 MiB/s) ## Starting application at 0x40200100 ... KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2015 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 11.0-CURRENT #3 r281867M: Wed Apr 22 22:33:21 CEST 2015 root@freebsd.my.domain:/usr/obj/arm.arm/usr/src/sys/CUBIEBOARD arm FreeBSD clang version 3.6.0 (tags/RELEASE_360/final 230434) 20150225 WARNING: WITNESS option enabled, expect reduced performance. CPU: Cortex A8-r3 rev 2 (Cortex-A core) Supported features: ARM_ISA THUMB2 JAZELLE THUMBEE ARMv4 Security_Ext WB disabled EABT branch prediction enabled LoUU:2 LoC:3 LoUIS:1=20 Cache level 1:=20 32KB/64B 4-way data cache WT WB Read-Alloc 32KB/64B 4-way instruction cache Read-Alloc Cache level 2:=20 256KB/64B 8-way unified cache WT WB Read-Alloc Write-Alloc real memory =3D 1073741824 (1024 MB) avail memory =3D 1039183872 (991 MB) random: entropy device infrastructure driver random: selecting highest priority adaptor random: SOFT: yarrow init() random: selecting highest priority adaptor ofwbus0: simplebus0: on ofwbus0 aintc0: mem 0x1c20400-0x1c207ff on = simplebus0 a10_sramc0: mem 0x1c00000-0x1c00fff on = simplebus0 a10_ccm0: mem 0x1c20000-0x1c203ff on = simplebus0 a10_timer0: mem 0x1c20c00-0x1c20c8f irq 22 on = simplebus0 Event timer "a10_timer Eventtimer" frequency 24000000 Hz quality 1000 Timecounter "a10_timer timer0" frequency 24000000 Hz quality 1000 a10wd0: mem 0x1c20c90-0x1c20c97 on simplebus0 gpio0: mem 0x1c20800-0x1c20bff irq 28 on = simplebus0 gpiobus0: on gpio0 gpioc0: on gpio0 ehci0: mem 0x1c14000-0x1c14fff = irq 39 on simplebus0 usbus0: EHCI version 1.0 usbus0 on ehci0 ehci1: mem 0x1c1c000-0x1c1cfff = irq 40 on simplebus0 usbus1: EHCI version 1.0 usbus1 on ehci1 a10_mmc0: mem = 0x1c0f000-0x1c0ffff irq 32 on simplebus0 mmc0: on a10_mmc0 uart0: <16750 or compatible> mem 0x1c28000-0x1c283ff irq 1 on simplebus0 uart0: console (115200,n,8,1) emac0: mem 0x1c0b000-0x1c0bfff irq 55 = on simplebus0 miibus0: on emac0 rlphy0: PHY 1 on miibus0 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto emac0: Ethernet address: 62:73:64:11:83:9e Timecounters tick every 10.000 msec usbus0: 480Mbps High Speed USB v2.0 usbus1: 480Mbps High Speed USB v2.0 uugen0.1: at usbus0 uhub0: on = usbus0 gen1.1: at usbus1 uhub1: on = usbus1 mmcsd0: 8GB at mmc0 = 50.0MHz/4bit/65535-block random: unblocking device. WARNING: WITNESS option enabled, expect reduced performance. Root mount waiting for: usbus1 usbus0 uhub1: 1 port with 1 removable, self powered uhub0: 1 port with 1 removable, self powered Trying to mount root from ufs:/dev/mmcsd0s2a []... warning: no time-of-day clock registered, system time will not be set = accurately