Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Apr 2015 23:25:35 +0200
From:      Bas Vermin <bas@nimrev.com>
To:        freebsd-arm@freebsd.org
Subject:   Re: mmc/sd driver testing.
Message-ID:  <B6FA1896-B23C-41B4-AA25-7407A8D92BBE@nimrev.com>

next in thread | raw e-mail | index | archive | help
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 <Dummy>
random: SOFT: yarrow init()
random: selecting highest priority adaptor <Yarrow>
ofwbus0: <Open Firmware Device Tree>
simplebus0: <Flattened device tree simple bus> on ofwbus0
aintc0: <A10 AINTC Interrupt Controller> mem 0x1c20400-0x1c207ff on =
simplebus0
a10_sramc0: <Allwinner sramc module> mem 0x1c00000-0x1c00fff on =
simplebus0
a10_ccm0: <Allwinner Clock Control Module> mem 0x1c20000-0x1c203ff on =
simplebus0
a10_timer0: <Allwinner A10/A20 timer> 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: <Allwinner A10 Watchdog> mem 0x1c20c90-0x1c20c97 on simplebus0
gpio0: <Allwinner GPIO controller> mem 0x1c20800-0x1c20bff irq 28 on =
simplebus0
gpiobus0: <GPIO bus> on gpio0
gpioc0: <GPIO controller> on gpio0
ehci0: <Allwinner Integrated USB 2.0 controller> mem 0x1c14000-0x1c14fff =
irq 39 on simplebus0
usbus0: EHCI version 1.0
usbus0 on ehci0
ehci1: <Allwinner Integrated USB 2.0 controller> mem 0x1c1c000-0x1c1cfff =
irq 40 on simplebus0
usbus1: EHCI version 1.0
usbus1 on ehci1
a10_mmc0: <Allwinner Integrated MMC/SD controller> mem =
0x1c0f000-0x1c0ffff irq 32 on simplebus0
mmc0: <MMC/SD bus> on a10_mmc0
uart0: <16750 or compatible> mem 0x1c28000-0x1c283ff irq 1 on simplebus0
uart0: console (115200,n,8,1)
emac0: <A10/A20 EMAC ethernet controller> mem 0x1c0b000-0x1c0bfff irq 55 =
on simplebus0
miibus0: <MII bus> on emac0
rlphy0: <RTL8201L 10/100 media interface> 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: <Allwinner> at usbus0
uhub0: <Allwinner EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on =
usbus0
gen1.1: <Allwinner> at usbus1
uhub1: <Allwinner EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on =
usbus1
mmcsd0: 8GB <SDHC SL08G 8.0 SN 22F1DB6C MFG 11/2013 by 3 SD> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B6FA1896-B23C-41B4-AA25-7407A8D92BBE>