Date: Wed, 30 Jan 2013 10:24:42 +0100 From: Mats Mellstrand <mats@exmandato.se> To: Daisuke Aoyama <aoyama@peach.ne.jp> Cc: freebsd-arm@freebsd.org Subject: Re: FreeBSD/armv6z/clang on Raspberry Pi 512MB (with U-Boot + ubldr) Message-ID: <722ED669-A682-4F25-A65B-1E2FF8CFAA4D@exmandato.se> In-Reply-To: <D867259F89CF44409C2359527D0263D4@ad.peach.ne.jp> References: <B5F827FF91C94FF2AFEE00194A2BB2C5@ad.peach.ne.jp> <B508111FCE534B2CBA61F4D1EC1078D3@ad.peach.ne.jp> <D3ABE3919EA74D668DB060952B5CD8C0@ad.peach.ne.jp> <2659960079254C38ACD2F1DCBB7A1A19@ad.peach.ne.jp> <E48DEAF481F74C69A1BC7A01F2B8E74A@ad.peach.ne.jp> <D867259F89CF44409C2359527D0263D4@ad.peach.ne.jp>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <aoyama@peach.ne.jp> 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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?722ED669-A682-4F25-A65B-1E2FF8CFAA4D>