From owner-freebsd-arm@freebsd.org Sun Dec 6 22:56:11 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 EBF8D9A001D for ; Sun, 6 Dec 2015 22:56:10 +0000 (UTC) (envelope-from e.moe@rcn.com) Received: from smtp.rcn.com (smtp.rcn.com [69.168.97.78]) (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 B9E381CF5 for ; Sun, 6 Dec 2015 22:56:10 +0000 (UTC) (envelope-from e.moe@rcn.com) X_CMAE_Category: , , X-CNFS-Analysis: v=2.1 cv=A9fMR/iG c=1 sm=1 tr=0 a=kLIaxcRmAfIWWG5Fo3VFTQ==:117 a=kLIaxcRmAfIWWG5Fo3VFTQ==:17 a=K-v-2zaBAAAA:8 a=OA2lqS22AAAA:8 a=IkcTkHD0fZMA:10 a=7Qk2ozbKAAAA:8 a=NEAV23lmAAAA:8 a=6I5d2MoRAAAA:8 a=dekyxvedQrBI6J3IMO4A:9 a=ZdcB0r2LmxTnfm1T:21 a=z8sIpWzd745f_Kdb:21 a=QEXdDO2ut3YA:10 X-CM-Score: 0 X-Scanned-by: Cloudmark Authority Engine X-Authed-Username: ZS5tb2VAcmNuLmNvbQ== Authentication-Results: smtp02.rcn.cmh.synacor.com smtp.mail=e.moe@rcn.com; spf=neutral; sender-id=neutral Authentication-Results: smtp02.rcn.cmh.synacor.com header.from=e.moe@rcn.com; sender-id=neutral Authentication-Results: smtp02.rcn.cmh.synacor.com smtp.user=e.moe; auth=pass (PLAIN) Received-SPF: neutral (smtp02.rcn.cmh.synacor.com: 24.148.20.83 is neither permitted nor denied by domain of rcn.com) Received: from [24.148.20.83] ([24.148.20.83:2447] helo=[192.168.1.175]) by smtp.rcn.com (envelope-from ) (ecelerity 3.6.2.43620 r(Platform:3.6.2.0)) with ESMTPSA (cipher=AES256-SHA) id 4A/DB-58680-80DB4665; Sun, 06 Dec 2015 17:56:08 -0500 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.1 \(3096.5\)) Subject: Re: Raspberry Pi Zero From: Erik Moe In-Reply-To: Date: Sun, 6 Dec 2015 16:56:07 -0600 Cc: "freebsd-arm@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: <1BA9B6BD-A0C1-4E15-852B-A82D5A0416C5@rcn.com> References: <44D770D9-F1EF-461E-BB1A-8A19E9FB4BC8@rcn.com> <4D7C44B3-8135-4431-A07B-6135284D0C02@bsdimp.com> <5663E1FA.3060602@kronometrix.org> <566407CE.4020403@gmail.com> To: Warner Losh X-Mailer: Apple Mail (2.3096.5) 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: Sun, 06 Dec 2015 22:56:11 -0000 So the new firmware works on a RPI-B, RPI-B+, RPI-2 with the RPI-2 image = and RPI-Zero. So whatever changes were made to make the RPI-Zero work = are compatible with all the previous version of the Pi. So it just = seems a matter updating the u-boot-rpi and u-boot-rpi2 ports. Erik > On Dec 6, 2015, at 11:01 AM, Erik Moe wrote: >=20 >=20 >> On Dec 6, 2015, at 10:47 AM, Warner Losh wrote: >>=20 >>=20 >>=20 >> On Sun, Dec 6, 2015 at 9:45 AM, Erik Moe > wrote: >> Firmware was the issue. I mounted the MSDOS partition of the latest = RPI-B snapshot, replaced bootcode.bin, fixup.dat, fixup_cd.dat, = start.elf and start_cd.elf from https://github.com/raspberrypi/firmware = and the Zero booted right up = into multi-user mode. It didn=E2=80=99t seem to mind that the DTB was = for the RPI-B. >>=20 >>=20 >> Cool. Any chance you can try the same image on an RPI-B?=20 >=20 > Yes, I=E2=80=99m curious myself. I=E2=80=99ll give it a try >=20 >>=20 >> Warner=20 >=20 > Granted it=E2=80=99s only running at 700Mhz. Is that a DTB thing or a = kernel thing? >=20 > reading ubldr.bin > 214704 bytes read in 29 ms (7.1 MiB/s) > ## No elf image at address 0x00200000 > ## Starting application at 0x00200000 ... > Consoles: U-Boot console > Compatible U-Boot API signature found @1db474d0 >=20 > FreeBSD/armv6 U-Boot loader, Revision 1.2 > (root@releng2.nyi.freebsd.org, Tue Dec 1 08:17:13 UTC 2015) >=20 > DRAM: 480MB > Number of U-Boot devices: 1 > U-Boot env: loaderdev=3D'mmc 0' > Found U-Boot device: disk > Checking unit=3D0 slice=3D partition=3D... good. > Booting from disk0s2a: % > /boot/kernel/kernel data=3D0x5d6aa4+0xe555c = syms=3D[0x4+0xc5fb0+0x4+0x94dbb] >=20 > Hit [Enter] to boot immediately, or any other key for command prompt. > Booting [/boot/kernel/kernel]... > Using DTB provided by U-Boot at address 0x100. > Kernel entry at 0x400100... > Kernel args: (null) > 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 #0 r291495: Tue Dec 1 08:23:29 UTC 2015 > root@releng2.nyi.freebsd.org:/usr/obj/arm.armv6/usr/src/sys/RPI-B = arm > FreeBSD clang version 3.7.0 (tags/RELEASE_370/final 246257) 20150906 > VT: init without driver. > sema_sysinit > CPU: ARM1176JZ-S rev 7 (ARM11J core) > Supported features: ARM_ISA THUMB2 JAZELLE ARMv4 Security_Ext > WB enabled LABT branch prediction enabled > 16KB/32B 4-way instruction cache > 16KB/32B 4-way write-back-locking-C data cache > real memory =3D 503312384 (479 MB) > avail memory =3D 481800192 (459 MB) > random: entropy device external interface > kbd0 at kbdmux0 > ofwbus0: > simplebus0: mem = 0x20000000-0x20ffffff on ofwbus0 > cpulist0: on ofwbus0 > cpu0: on cpulist0 > bcm2835_cpufreq0: on cpu0 > intc0: mem 0xb200-0xb3ff on simplebus0 > systimer0: mem 0x3000-0x3fff irq 8,9,10,11 on = simplebus0 > Event timer "BCM2835-3" frequency 1000000 Hz quality 1000 > Timecounter "BCM2835-3" frequency 1000000 Hz quality 1000 > bcmwd0: mem 0x10001c-0x100027 on simplebus0 > gpio0: mem 0x200000-0x2000af irq = 57,59,58,60 on simplebus0 > gpio0: read-only pins: 46-53. > gpio0: reserved pins: 48-53. > gpiobus0: on gpio0 > gpioled0: at pin 16 on gpiobus0 > gpioc0: on gpio0 > iichb0: mem 0x205000-0x20501f irq 61 on = simplebus0 > iicbus0: on iichb0 > iic0: on iicbus0 > iichb1: mem 0x804000-0x80401f irq 61 on = simplebus0 > iicbus1: on iichb1 > iic1: on iicbus1 > spi0: mem 0x204000-0x20401f irq 62 on = simplebus0 > spibus0: on spi0 > bcm_dma0: mem 0x7000-0x7fff,0xe05000-0xe05fff = irq 24,25,26,27,28,29,30,31,32,33,34,35,36 on simplebus0 > mbox0: mem 0xb880-0xb8bf irq 1 on = simplebus0 > sdhci_bcm0: mem 0x300000-0x3000ff irq = 70 on simplebus0 > mmc0: on sdhci_bcm0 > uart0: mem 0x201000-0x201fff irq 65 on = simplebus0 > uart0: console (115200,n,8,1) > vchiq0: mem 0xb800-0xb84f irq 2 on simplebus0 > vchiq: local ver 8 (min 3), remote ver 8. > pcm0: on vchiq0 > bcm283x_dwcotg0: mem = 0x980000-0x99ffff irq 17 on simplebus0 > usbus0 on bcm283x_dwcotg0 > fb0: on ofwbus0 > fbd0 on fb0 > VT: initialize with new VT driver "fb". > fb0: 656x416(656x416@0,0) 24bpp > fb0: fbswap: 1, pitch 1968, base 0x1eaac000, screen_size 818688 > cryptosoft0: > Timecounters tick every 10.000 msec > IPsec: Initialized Security Association Processing. > usbus0: 480Mbps High Speed USB v2.0 > bcm2835_cpufreq0: ARM 700MHz, Core 250MHz, SDRAM 400MHz, Turbo OFF > ugen0.1: at usbus0 > uhub0: on = usbus0 > mmcsd0: 8GB at mmc0 = 41.6MHz/4bit/65535-block > Trying to mount root from ufs:/dev/ufs/rootfs [rw]... > warning: no time-of-day clock registered, system time will not be set = accurately > uhub0: 1 port with 1 removable, self powered > Setting hostuuid: 83cb9b0d-9805-11e5-a352-0d59aa7881dc. > Setting hostid: 0xb11e12a1. > No suitable dump device was found. > Starting file system checks: > /dev/ufs/rootfs: FILE SYSTEM CLEAN; SKIPPING CHECKS > /dev/ufs/rootfs: clean, 1736538 free (194 frags, 217043 blocks, 0.0% = fragmentation) > Mounting local file systems:. > Setting hostname: rpi-b. > Setting up = harvesting:[UMA],[FS_ATIME],SWI,INTERRUPT,NET_NG,NET_ETHER,NET_TUN,MOUSE,K= EYBOARD,ATTACH,CACHED > Feeding entropy:random: unblocking device. > . > Starting Network: lo0. > lo0: flags=3D8049 metric 0 mtu 16384 > options=3D600003 > inet6 ::1 prefixlen 128 > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1 > inet 127.0.0.1 netmask 0xff000000 > groups: lo > nd6 options=3D21 > ELF ldconfig path: /lib /usr/lib /usr/lib/compat > Starting devd. > 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 > Creating and/or trimming log files. > Starting syslogd. > Starting casperd. > Clearing /tmp (X related). > Updating motd:. > Mounting late file systems:. > Configuring vt: blanktime. > Performing sanity check on sshd configuration. > Starting sshd. > Starting cron. > Starting background file system checks in 60 seconds. >=20 > Tue Dec 1 08:34:11 UTC 2015 >=20 > FreeBSD/arm (rpi-b) (ttyu0) >=20 > login: >=20 > Erik >=20 > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"