Date: Fri, 10 Jan 2020 15:05:01 +0100 (CET) From: Wojciech Puchar <wojtek@puchar.net> To: freebsd-hackers@freebsd.org Subject: Raspberry PI zero USB - boot log Message-ID: <alpine.BSF.2.20.2001101504140.31338@puchar.net> In-Reply-To: <alpine.BSF.2.20.2001101501410.31338@puchar.net> References: <alpine.BSF.2.20.2001101501410.31338@puchar.net>
next in thread | previous in thread | raw e-mail | index | archive | help
MMC: mmc@7e300000: 1
Loading Environment from FAT... In: serial
Out: vidconsole
Err: vidconsole
Net: No ethernet found.
starting USB...
Bus usb@7e980000: scanning bus usb@7e980000 for devices... 1 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
Hit any key to stop autoboot: 2 1 0
MMC Device 0 not found
no mmc device at slot 0
switch to partitions #0, OK
mmc1 is current device
Scanning mmc 1:1...
Found EFI removable media binary efi/boot/bootarm.efi
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
7[r[999;999H[6n8Scanning disk mmc@7e300000.blk...
Found 3 disks
BootOrder not defined
EFI boot manager: Cannot load any image
624336 bytes read in 83 ms (7.2 MiB/s)
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
[?25hConsoles: EFI console
|/-\ Reading loader env vars from /efi/freebsd/loader.env
Setting currdev to disk0p1:
|/-\|/FreeBSD/arm EFI loader, Revision 1.1
Command line arguments: l
EFI version: 2.80
EFI Firmware: Das U-Boot (rev 8217.4096)
Console: efi (0)
Load Path: /efi\boot\bootarm.efi
Load Device: /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b)/SD(1)/SD(0)/HD(1,MBR,0x90909090,0x800,0x36ad0c0)
Trying ESP: /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b)/SD(1)/SD(0)/HD(1,MBR,0x90909090,0x800,0x36ad0c0)
Setting currdev to disk0p1:
-\|/-\|/-\|/Trying: /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b)/SD(1)/SD(0)/HD(2,MBR,0x90909090,0x36ad8c0,0x4c4b40)
Setting currdev to disk0p2:
-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\Loading /boot/defaults/loader.conf
Loading /boot/device.hints
|/-\|/-\|/-\|/-Loading /boot/loader.conf
\|/-\|Loading /boot/loader.conf.local
/-\|/-\|/-\|/-\|/-\|/-\|Loading kernel...
/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-/boot/kernel/kernel data=0x75a324+0x1edcdc \|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/syms=[0x4+0xc2dd0-\|/-\+0x4+0xcc072|/-\|/-]
Loading configured modules...
\|/-\|/-\|/-\|//boot/kernel/umodem.ko text=0x2438 data=0x244+0x4 syms=[0x4+0xa00+0x4+0xaf6]
loading required module 'ucom'
-\|/-\|/-\|/-\|/-\|/-/boot/kernel/ucom.ko text=0x4390 data=0x3d4+0x838 \syms=[0x4+0xeb0+0x4+0xc2e]
|/-\|/-\/boot/entropy size=0x1000
Hit [Enter] to boot immediately, or any other key for command prompt.
Booting [/boot/kernel/kernel] in 1 second... Booting [/boot/kernel/kernel]...
Using DTB provided by EFI at 0x7ef6000.
Kernel entry at 0x14c00100...
Kernel args: (null)
|/-\|/---<<BOOT>>---
Copyright (c) 1992-2020 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 12.1-STABLE r356529 RPI-B arm
FreeBSD clang version 9.0.1 (git@github.com:llvm/llvm-project.git c1a0a213378a458fbea1a5c77b315c7dce08fd05) (based on LLVM 9.0.1)
VT: init without driver.
CPU: ARM ARM1176 r0p7 (ECO: 0x00000000)
CPU Features:
Thumb, Security, VMSAv7
Optional instructions:
UMULL, SMULL, MLA, SIMD(ext)
16KB/32B 4-way instruction cache
16KB/32B 4-way WB data cache
real memory = 469757952 (447 MB)
avail memory = 446189568 (425 MB)
random: unblocking device.
random: entropy device external interface
kbd0 at kbdmux0
ofwbus0: <Open Firmware Device Tree>
simplebus0: <Flattened device tree simple bus> on ofwbus0
intc0: <BCM2835 Interrupt Controller> mem 0x7e00b200-0x7e00b3ff on simplebus0
gpio0: <BCM2708/2835 GPIO controller> mem 0x7e200000-0x7e2000b3 irq 19,20 on simplebus0
gpiobus0: <OFW GPIO bus> on gpio0
bcm_dma0: <BCM2835 DMA Controller> mem 0x7e007000-0x7e007eff irq 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16 on simplebus0
Checking root against raspberrypi,model-b
Checking root against brcm,bcm2835
bcmwd0: <BCM2708/2835 Watchdog> mem 0x7e100000-0x7e100113,0x7e00a000-0x7e00a023 on simplebus0
bcmrng0: <Broadcom BCM2835 RNG> mem 0x7e104000-0x7e10400f irq 17 on simplebus0
mbox0: <BCM2835 VideoCore Mailbox> mem 0x7e00b880-0x7e00b8bf irq 18 on simplebus0
gpioc0: <GPIO controller> on gpio0
uart0: <PrimeCell UART (PL011)> mem 0x7e201000-0x7e2011ff irq 21 on simplebus0
uart0: console (115200,n,8,1)
bcm283x_dwcotg0: <DWC OTG 2.0 integrated USB controller (bcm283x)> mem 0x7e980000-0x7e98ffff,0x7e006000-0x7e006fff irq 41,42 on simplebus0
usbus0 on bcm283x_dwcotg0
systimer0 mem 0x7e003000-0x7e003fff irq 43,44,45,46 on simplebus0
Event timer "BCM2835-3" frequency 1000000 Hz quality 1000
Timecounter "BCM2835-3" frequency 1000000 Hz quality 1000
sdhci_bcm0: <Broadcom 2708 SDHCI controller> mem 0x7e300000-0x7e3000ff irq 48 on simplebus0
mmc0: <MMC/SD bus> on sdhci_bcm0
vchiq0: <BCM2835 VCHIQ> mem 0x7e00b840-0x7e00b87b irq 52 on simplebus0
vchiq: local ver 8 (min 3), remote ver 8.
pcm0: <VCHIQ audio> on vchiq0
fb0: <BCM2835 VT framebuffer driver> on simplebus0
fbd0 on fb0
VT: initialize with new VT driver "fb".
fb0: 656x416(656x416@0,0) 24bpp
fb0: fbswap: 1, pitch 1968, base 0x1eb33000, screen_size 818688
gpioled0: <GPIO LEDs> on ofwbus0
cryptosoft0: <software crypto>
intc0: Stray irq 17 disabled
Timecounters tick every 1.000 msec
usbus0: 480Mbps High Speed USB v2.0
ugen0.1: <DWCOTG OTG Root HUB> at usbus0
uhub0: <DWCOTG OTG Root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus0
mmcsd0: 32GB <SDHC SL32G 8.0 SN BB434268 MFG 06/2017 by 3 SD> at mmc0 50.0MHz/4bit/65535-block
Trying to mount root from ufs:/dev/ufs/rootfs [rw,noatime]...
Warning: no time-of-day clock registered, system time will not be set accurately
uhub0: 1 port with 1 removable, self powered
Setting hostuuid: d885de37-3299-11ea-b6c2-93a4fee15f62.
Setting hostid: 0xb6bb69d6.
Starting file system checks:
/dev/ufs/rootfs: FILE SYSTEM CLEAN; SKIPPING CHECKS
/dev/ufs/rootfs: clean, 444504 free (1048 frags, 55432 blocks, 0.2% fragmentation)
/dev/mmcsd0s1: FILESYSTEM CLEAN; SKIPPING CHECKS
Mounting local filesystems:.
ELF ldconfig path: /lib /usr/lib /usr/lib/compat
Soft Float compatibility ldconfig path:
Setting hostname: rejestrator.
Setting up harvesting: [UMA],[FS_ATIME],SWI,INTERRUPT,NET_NG,NET_ETHER,NET_TUN,MOUSE,KEYBOARD,ATTACH,CACHED
Feeding entropy: .
lo0: link state changed to UP
Starting Network: lo0.
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
inet 127.0.0.1 netmask 0xff000000
groups: lo
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
add host 127.0.0.1: gateway lo0 fib 0: route already in table
add host ::1: gateway lo0 fib 0: route already in table
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
Starting syslogd.
Clearing /tmp (X related).
Updating motd:.
Mounting late filesystems:.
Configuring vt: blanktime.
Starting cron.
Fri Jan 10 14:58:38 CET 2020
FreeBSD/arm (rejestrator) (ttyu0)
login: root
Password:
Last login: Fri Jan 10 14:58:05 on ttyu0
FreeBSD 12.1-STABLE r356529 RPI-B
Welcome to FreeBSD!
Release Notes, Errata: https://www.FreeBSD.org/releases/
Security Advisories: https://www.FreeBSD.org/security/
FreeBSD Handbook: https://www.FreeBSD.org/handbook/
FreeBSD FAQ: https://www.FreeBSD.org/faq/
Questions List: https://lists.FreeBSD.org/mailman/listinfo/freebsd-questions/
FreeBSD Forums: https://forums.FreeBSD.org/
Documents installed with the system are in the /usr/local/share/doc/freebsd/
directory, or can be installed later with: pkg install en-freebsd-doc
For other languages, replace "en" with a language code like de or fr.
Show the version of FreeBSD installed: freebsd-version ; uname -a
Please include that output and any error messages when posting questions.
Introduction to manual pages: man man
FreeBSD directory layout: man hier
Edit /etc/motd to change this login announcement.
7[r[999;999H[6n8(max 60 seconds) for system thread `bufspacedaemon-0' to stop... done
All buffers synced.
Uptime: 30s
The operating system has halted.
Please press any key to reboot.
~
[EOT]
[root@wojtek /tmp]# exit
Script done on Fri Jan 10 15:01:10 2020
From owner-freebsd-hackers@freebsd.org Fri Jan 10 14:06:31 2020
Return-Path: <owner-freebsd-hackers@freebsd.org>
Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1])
by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7A0AD1E8908
for <freebsd-hackers@mailman.nyi.freebsd.org>;
Fri, 10 Jan 2020 14:06:31 +0000 (UTC) (envelope-from hps@selasky.org)
Received: from mail.turbocat.net (turbocat.net [88.99.82.50])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
server-signature RSA-PSS (4096 bits))
(Client did not present a certificate)
by mx1.freebsd.org (Postfix) with ESMTPS id 47vPsy4zZKz4dP3;
Fri, 10 Jan 2020 14:06:30 +0000 (UTC) (envelope-from hps@selasky.org)
Received: from hps2020.home.selasky.org (unknown [62.141.129.235])
(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits))
(No client certificate requested)
by mail.turbocat.net (Postfix) with ESMTPSA id E959F2600D5;
Fri, 10 Jan 2020 15:06:28 +0100 (CET)
Subject: Re: Raspberry PI zero USB - problem
To: Wojciech Puchar <wojtek@puchar.net>, freebsd-hackers@freebsd.org,
=?UTF-8?Q?Edward_Tomasz_Napiera=c5=82a?= <trasz@FreeBSD.org>
References: <alpine.BSF.2.20.2001101501410.31338@puchar.net>
From: Hans Petter Selasky <hps@selasky.org>
Message-ID: <ecbd301c-dcfc-f272-2d1d-21e5b2e9fe00@selasky.org>
Date: Fri, 10 Jan 2020 15:06:14 +0100
User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101
Thunderbird/68.3.1
MIME-Version: 1.0
In-Reply-To: <alpine.BSF.2.20.2001101501410.31338@puchar.net>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Rspamd-Queue-Id: 47vPsy4zZKz4dP3
X-Spamd-Bar: -----
Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none;
spf=pass (mx1.freebsd.org: domain of hps@selasky.org designates 88.99.82.50 as
permitted sender) smtp.mailfrom=hps@selasky.org
X-Spamd-Result: default: False [-5.41 / 15.00]; ARC_NA(0.00)[];
RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0];
RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[];
R_SPF_ALLOW(-0.20)[+a:mail.turbocat.net:c];
FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain];
DMARC_NA(0.00)[selasky.org]; NEURAL_HAM_LONG(-1.00)[-1.000,0];
TO_MATCH_ENVRCPT_SOME(0.00)[];
IP_SCORE(-3.11)[ip: (-9.34), ipnet: 88.99.0.0/16(-4.71), asn: 24940(-1.50),
country: DE(-0.02)]; FROM_EQ_ENVFROM(0.00)[];
R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+];
ASN(0.00)[asn:24940, ipnet:88.99.0.0/16, country:DE];
MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[];
RCVD_COUNT_TWO(0.00)[2]
X-BeenThere: freebsd-hackers@freebsd.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Technical Discussions relating to FreeBSD
<freebsd-hackers.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-hackers>,
<mailto:freebsd-hackers-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-hackers/>
List-Post: <mailto:freebsd-hackers@freebsd.org>
List-Help: <mailto:freebsd-hackers-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-hackers>,
<mailto:freebsd-hackers-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Fri, 10 Jan 2020 14:06:31 -0000
On 2020-01-10 15:04, Wojciech Puchar wrote:
> i have raspberry Pi ZERO - power over USB and USB on the go, serial console
> everything works except USB. When i attach pendrive to it over USB
> nothing happens. While at boot usb is detected, even uhub so everything
> should work.
>
> In the same time pendrive is detected when i try to boot with it inserted.
>
>
> what am i doing wrong. RPi Zero is descriped clearly here:
>
> https://wiki.freebsd.org/arm/Raspberry%20Pi
>
> and USB works both device and host.
>
> is there something that must be set to make it work under FreeBSD?
>
This question is for Edward. Maybe a FDT descriptor regression? There
were some patches recently in the DWC OTG driver. Are you using the
latest kernel?
--HPS
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.20.2001101504140.31338>
