From owner-freebsd-arm@FreeBSD.ORG Wed Jan 30 09:24:50 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 20CCFEB2 for ; Wed, 30 Jan 2013 09:24:50 +0000 (UTC) (envelope-from mats@exmandato.se) Received: from ext.mellstrand.net (ext.mellstrand.net [IPv6:2001:2040:4:2::51]) by mx1.freebsd.org (Postfix) with ESMTP id 4B6EF9CC for ; Wed, 30 Jan 2013 09:24:48 +0000 (UTC) Received: by ext.mellstrand.net Wed, 30 Jan 2013 09:24:42 GMT Subject: Re: FreeBSD/armv6z/clang on Raspberry Pi 512MB (with U-Boot + ubldr) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii From: Mats Mellstrand X-Priority: 3 In-Reply-To: Date: Wed, 30 Jan 2013 10:24:42 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <722ED669-A682-4F25-A65B-1E2FF8CFAA4D@exmandato.se> References: <2659960079254C38ACD2F1DCBB7A1A19@ad.peach.ne.jp> To: Daisuke Aoyama Cc: freebsd-arm@freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jan 2013 09:24:50 -0000 Hi The image works, but I can't get IPv6 to work as expected. I can ping6 to and from my Raspberry but trying to ssh in to RPIs IPv6 = address just hangs. The same happens when I try to ssh out from RPI to a IPv6 address. IPv4 works. The sshd listen to the IPv6 port root# netstat -an Active Internet connections (including servers) Proto Recv-Q Send-Q Local Address Foreign Address = (state) tcp4 0 0 *.22 *.* LISTEN tcp6 0 0 *.22 *.* LISTEN .. I have disabled the ipfw firewall and "allow all" in /etc/hosts.allow /mm =20 On 29 jan 2013, at 19:10, Daisuke Aoyama wrote: > I've updated clang RPI code based on SVN r246066. > This is OABI version. I plan to try EABI next if possible. >=20 > major change: > o update base tree to SVN r246066. > o implement -mload-store-multiple/-mno-load-store-multiple option in = clang/llvm. (workaround only) > o re-enable __clear_cache() in libgcc. > o bugfix bcm2835_dma inline asm code, etc. > o use bcm2835_dma_wb/wbinv in SDHCI. > o add USB LAN and wireless LAN driver module. (loaded by devd = automatically) > o move swap to head of partition. > o use label mount instead of /dev/mmcsd0s2a,/dev/mmcsd0s2b. > o add wireless lan, quota, ipfw and IPv6 to kernel config. > o change default HS mode is enabled. >=20 > To prevent a fault on ldm/stm generated by clang, all files are = complied with: > CFLAGS=3D-O2 -mno-global-merge -mno-load-store-multiple = -fno-strict-aliasing -pipe -mabi=3Dapcs-gnu -march=3Darmv6z = -mtune=3Darm1176jzf-s -mfloat-abi=3Dsoft >=20 > To reduce time in DMA intr, it uses bcm2835_dma_wb/wbinv directly. > Now it gets 20.7MB/s DMA transfer rate on class 10 SD card. (depend on = card spec) > It's 30% faster than bus_space_XXX/bus_dmamap_XXX. >=20 >> root@raspberry-pi:~ # dd if=3D/dev/mmcsd0 of=3D/dev/null bs=3D1m = count=3D32 >> 32+0 records in >> 32+0 records out >> 33554432 bytes transferred in 1.617316 secs (20746986 bytes/sec) >=20 > Known issue: > DMA intr might be delayed by slow interrupt handler. > (arm/intr.c:arm_handler_execute specific, should be remapped DMA IRQ = to low number) >=20 >=20 > You can get the pre-build image from my archives: > http://www.peach.ne.jp/archives/rpi/ >=20 > Download and decompress it, then write it to SD. This image requires = SD 8GB or more. > I'm using it as headless server. So, you need a serial console for = seeing full boot log. > If you want the video out, please remove the line of "set = console=3Dcomconsole" in /boot/loader.rc. >=20 > Using config is here: > http://www.peach.ne.jp/archives/rpi/config/RPI-B-test15 >=20 > The source/patch is here: > http://www.peach.ne.jp/archives/rpi/patch/ >=20 > For more info, please read old ML or Japanese blog: > = http://lists.freebsd.org/pipermail/freebsd-arm/2013-January/004555.html > = http://lists.freebsd.org/pipermail/freebsd-arm/2013-January/004541.html > = http://lists.freebsd.org/pipermail/freebsd-arm/2013-January/004507.html > = http://lists.freebsd.org/pipermail/freebsd-arm/2012-December/004421.html > = http://lists.freebsd.org/pipermail/freebsd-arm/2012-December/004331.html > http://shell.peach.ne.jp/aoyama/ >=20 > ---------------------------------------------------------------------- > How to build/install the kernel: >=20 > # fetch -o /usr = http://www.peach.ne.jp/archives/rpi/patch/src-246066-20130130.patch.gz > # fetch -o /usr/src/sys/arm/conf = http://www.peach.ne.jp/archives/rpi/config/RPI-B-test15 > # fetch -o /usr/src/sys/arm/broadcom/bcm2835 = http://www.peach.ne.jp/archives/rpi/patch/bcm2835_asm.S > # fetch -o /usr/src/sys/arm/broadcom/bcm2835 = http://www.peach.ne.jp/archives/rpi/patch/bcm2835_asm.h > # fetch -o /usr/src/sys/arm/broadcom/bcm2835 = http://www.peach.ne.jp/archives/rpi/patch/bcm2835_dma.c > # fetch -o /usr/src/sys/arm/broadcom/bcm2835 = http://www.peach.ne.jp/archives/rpi/patch/bcm2835_dma.h >=20 > # cd /usr/src > # gzcat /usr/src-246066-20130130.patch.gz | patch > # make buildkernel KERNCONF=3DRPI-B-test15 WITH_FDT=3Dyes > (wait about 50 minutes) > # make installkernel KERNCONF=3DRPI-B-test15 > ---------------------------------------------------------------------- >=20 >=20 > Enjoy clang world in Raspberry Pi! > Thank you. > --=20 > Daisuke Aoyama >=20 > _______________________________________________ > freebsd-arm@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"