NetBSD/evbarm on Radxa Rock USB編 その2
なんか、動くようになってました。
変えたところは、USBメモリを刺すポートを隣にしたのと、以下ぐらい? たぶん関係なさそう。
USBメモリをroot deviceとして、USB無線LANアダプタでネットワークも使えています。とはいえ、すごい遅いんですけど。
手持ちのUSB有線LANアダプタが二つあったのですが、認識されるけどパケットが出ていかない、認識する途中でポートから切り離される、など残念な感じでした。
変えたところは、USBメモリを刺すポートを隣にしたのと、以下ぐらい? たぶん関係なさそう。
--- a/arm/rockchip/rockchip_dwctwo.c
+++ b/arm/rockchip/rockchip_dwctwo.c
@@ -83,7 +83,7 @@ static struct dwc2_core_params rkdwc2_params = {
.ts_dline = 0, /* 0 - No (default) */
.reload_ctl = 0, /* 0 - No (default for core < 2.92a) */
.ahbcfg = 0x7, /* INCR16 */
- .uframe_sched = 1, /* True to enable microframe scheduler */
+ .uframe_sched = -1, /* True to enable microframe scheduler */
};
すごい不安定だから、まったく同じカーネルでも起動したりpanicしたり。USBメモリをroot deviceとして、USB無線LANアダプタでネットワークも使えています。とはいえ、すごい遅いんですけど。
手持ちのUSB有線LANアダプタが二つあったのですが、認識されるけどパケットが出ていかない、認識する途中でポートから切り離される、など残念な感じでした。
Loaded initial symtab at 0x8079e878, strtab at 0x807d4668, # entries 13772
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014
The NetBSD Foundation, Inc. All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
NetBSD 7.99.1 (RADXA) #204: Mon Nov 10 18:14:38 UTC 2014
root@aug:/usr/obj/sys/arch/evbarm/compile/RADXA
total memory = 1024 MB
avail memory = 1009 MB
sysctl_createv: sysctl_create(machine_arch) returned 17
kern.module.path=/stand/evbarm/7.99.1/modules
mainbus0 (root)
cpu0 at mainbus0 core 0: 1600 MHz Cortex-A9 r4p0 (Cortex V7A core)
cpu0: DC enabled IC enabled WB disabled EABT branch prediction enabled
cpu0: 32KB/32B 4-way L1 VIPT Instruction cache
cpu0: 32KB/32B 4-way write-back-locking-C L1 PIPT Data cache
cpu0: 64KB/32B 8-way write-through L2 PIPT Unified cache
vfp0 at cpu0: NEON MPE (VFP 3.0+), rounding, NaN propagation, denormals
armperiph0 at mainbus0: mapping registers at 0x1013c000 size 12288 memh feb3c000
arml2cc0 at armperiph0: ARM PL310 r3p2 L2 Cache Controller (disabled)
arml2cc0: cache enabled
armgic0 at armperiph0: Generic Interrupt Controller, 160 sources (149 valid)
armgic0: 32 Priorities, 128 SPIs, 5 PPIs, 16 SGIs
a9tmr0 at armperiph0: A9 Global 64-bit Timer (800 MHz)
a9tmr0: interrupting on irq 27
a9wdt0 at armperiph0: A9 Watchdog Timer, default period is 12 seconds
obio0 at mainbus0: On-board I/O
grf iomux: old 00005554, new ffff5555, renew 00005555
grf iomux: old 00000000, new ffff0004, renew 00000004
grf iomux: old 00001000, new ffff1400, renew 00001400
gpio: 0x2000a000 0x00000100 -> 0x00000108
gpio: 0x2000a004 0x00000104 -> 0x0000010c
com0 at obio0: addr 0x20064000-0x200643ff intr 68 mult 4
: ns16550a, working fifo
com0: console
dwctwo0 at obio0: addr 0x10180000-0x101bffff intr 48 mult 1
: USB controller
dwctwo1 at obio0: addr 0x101c0000-0x101fffff intr 49 mult 1
: USB controller
usb0 at dwctwo0: USB revision 2.0
usb1 at dwctwo1: USB revision 2.0
uhub0 at usb0: vendor 0x0000 DWC2 root hub, class 9/0, rev 2.00/1.00, addr 1
uhub1 at usb1: vendor 0x0000 DWC2 root hub, class 9/0, rev 2.00/1.00, addr 1
uhub2 at uhub1 port 1: Genesys Logic USB2.0 Hub, class 9/0, rev 2.00/85.36, addr 2
uhub2: single transaction translator
ugen0 at uhub2 port 1
ugen0: Realtek 802.11n WLAN Adapter, rev 2.00/2.00, addr 3
urtwn0 at uhub2 port 3
urtwn0: GW-USValue-EZ GW-USValue-EZ, rev 2.00/2.00, addr 4
urtwn0: MAC/BB RTL8188CUS, RF 6052 1T1R, address XX:XX:XX:XX:XX:XX
urtwn0: 1 rx pipe, 2 tx pipes
urtwn0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
urtwn0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
umass0 at uhub2 port 4 configuration 1 interface 0
umass0: SMI Corporation USB DISK, rev 2.00/11.00, addr 5
scsibus0 at umass0: 2 targets, 1 lun per target
sd0 at scsibus0 target 0 lun 0: <S31B0807, USB DISK, 1100> disk removable
sd0: 1983 MB, 3936 cyl, 16 head, 63 sec, 512 bytes/sect x 4061184 sectors
boot device: <unknown>
root device: sd0a
dump device (default sd0b):
file system (default generic): ffs
root on sd0a dumps on sd0b
WARNING: no TOD clock present
WARNING: using filesystem time
WARNING: CHECK AND RESET THE DATE!
warning: no /dev/console
init path (default /sbin/init):
init: copying out path `/sbin/init' 11
/etc/rc.conf is not configured. Multiuser boot aborted.
Enter pathname of shell or RETURN for /bin/sh:
Terminal type is vt100.
We recommend that you create a non-root account and use su(1) for root access.
# uname -a
NetBSD 7.99.1 NetBSD 7.99.1 (RADXA) #204: Mon Nov 10 18:14:38 UTC 2014 root@aug:/usr/obj/sys/arch/evbarm/compile/RADXA evbarm
# mount
root_device on / type ffs (read-only, local)
tmpfs on /dev type tmpfs (union, local)
# mount /dev/sd0a /
/dev/sd0a: file system not clean (fs_clean=0x8); please fsck(8)
/dev/sd0a: lost blocks 0 files 0
# ls
.cshrc bin lib mnt sbin usr
.profile dev libdata rescue stand var
altroot etc libexec root tmp
# ifconfig
urtwn0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
ssid ""
powersave off
address: XX:XX:XX:XX:XX:XX
media: IEEE802.11 autoselect
status: no network
lo0: flags=8048<LOOPBACK,RUNNING,MULTICAST> mtu 33192
# dhclient urtwn0
# urtwn0: link state UP (was UNKNOWN)
# ifconfig
urtwn0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
ssid XXXXXXXX
powersave off
bssid XX:XX:XX:XX:XX:XX chan 6
address: XX:XX:XX:XX:XX:XX
media: IEEE802.11 autoselect (OFDM54 mode 11g)
status: active
inet 192.168.43.193 netmask 0xffffff00 broadcast 192.168.43.255
lo0: flags=8048<LOOPBACK,RUNNING,MULTICAST> mtu 33192
# ping ki.nu
PING ki.nu (218.44.234.234): 64 data bytes
64 bytes from 218.44.234.234: icmp_seq=0 ttl=239 time=301.274847 ms
64 bytes from 218.44.234.234: icmp_seq=1 ttl=239 time=245.764923 ms
64 bytes from 218.44.234.234: icmp_seq=2 ttl=239 time=219.746549 ms
64 bytes from 218.44.234.234: icmp_seq=3 ttl=239 time=122.356646 ms
^C
----ki.nu PING Statistics----
4 packets transmitted, 4 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 122.356646/222.285741/301.274847/74.794880 ms
#
コメント(0件)
- TB-URL http://www.tokuda.net/diary/0852/tb/