본문 바로가기

로봇청소기

로보킹 무선랜카드 연결 및 정보 추가

USB 무선랜카드를 다시 구매했습니다.

이래저래 검색을 해보니, RTL8188CU 칩셋도 RTL8192CU 칩셋과 동일한 드라이버를 사용하는것 같드라구요.

그래서 구매한게 바로 ipTIME의 N100 mini 제품이며 RTL8188CU 칩셋을 사용한 제품입니다.

 

다음과 같이 로보킹에 연결을 하고.. ( 매우 작죠? 로보킹의 더러움은.. 자체 필터링들 하시길.. ㅋㅋ)

 

 

 

와웅.. 연결이 매우 잘됩니다. 괜히 구하기도 힘든 RTL8192CU 찾는다고 쓸데없이 고생한거 같네요.. ㅜ ㅜ

 

 

제가 앞에 올렸던 글에 누락되어 있는 내용인데요. 로보터스 포럼에 보시면(http://www.roboter-forum.com/showthread.php?10009-LG-Hombot-3-0-%28VR6260-VR6270-VR6340%29-WLAN-Steuerung-per-Weboberfl%E4che&p=107354&viewfull=1#post107354 )

 

Add Nameserver 부분을 추가할 수 있는 내용이 있습니다.

wificonn.sh 파일에서 IP 설정하는 부분에 다음 스크립트를 추가하시면 됩니다.

 

echo "nameserver 로보킹IP" > /usr/etc/resolv.conf

 

위와 같이 스크립트 추가해서 적용하면, SSH(Telnet) 접속이 가능해집니다.

 

접속 계정: root

접속 패스워드: most9981

 

 

 

 

대략..  로보터스 포럼에서 제공하고 있는 수정 패치를 적용하면,

로보킹에서 구동되고 있는 임베디드 리눅스 환경에서,

USB 랜카드를 활성화 시키도록 수정해주고, 임의적으로 만든 lg.srv 라는 웹서버 프로세스를

구동시킴으로써, 로보킹을 무선랜을 통해 웹으로 컨트롤 가능하게 해주는 역할을 합니다.

 

아무튼.. 텔넷 접속을 통해 다음과 같은 내용들을 확인할 수 있었습니다.

저로써는.. 머.. 이렇게 조회를 해봐야.. 활용할 수 있는게 없지만..

 

참고삼아 보시기를.. ㅎㅎ

 

 

로보킹 VR6270LVM Infomations

 

 

 

 

# 설치 된 리눅스 정보 확인하기
most2120# grep . /etc/*-release
Release date = Wed Jan 30 08:29:06 2008 UTC
Release user = r01009
Release host = shlx1
Release dir  = /home/r01009/0130_nonradio_install/ltib-imx31modular-20080102
CVS tag      = none
Release tag  = none
App version  = 6.4.1
CVS version  = 1.228.2.7.2.1

 

most2120# cat /proc/version
Linux version 2.6.33.7.2-rt30 (dwlee@android-develop1) (gcc version 4.3.3 (GCC) ) #475 PREEMPT RT Mon Jun 4 12:09:47 KST 2012

 

most2120# uname -a
Linux most2120 2.6.33.7.2-rt30 #475 PREEMPT RT Mon Jun 4 12:09:47 KST 2012 armv6l unknown

 

most2120# uname -r
2.6.33.7.2-rt30

 

most2120# cat /etc/issue
Freescale Semiconductor, Inc.
i.MX31 Applications Development System

 

most2120# cat /etc/issue.net

        Welcome to Freescale Semiconductor Embedded Linux Environment


# OS Kernel Architecture 확인하기
most2120# uname -m
armv6l


# 로보킹 CPU 정보 확인
most2120# cat /proc/cpuinfo
Processor       : ARMv6-compatible processor rev 7 (v6l)
BogoMIPS        : 699.59
Features        : swp half fastmult vfp edsp java
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xb76
CPU revision    : 7

Hardware        : RK_HIT_V2
Revision        : 0000
Serial          : 0000000000000000


# 로보킹 메모리 정보 확인
most2120# cat /proc/meminfo
MemTotal:         109428 kB
MemFree:           33456 kB
Buffers:            4260 kB
Cached:            16392 kB
SwapCached:            0 kB
Active:            48796 kB
Inactive:          16984 kB
Active(anon):      45256 kB
Inactive(anon):     3220 kB
Active(file):       3540 kB
Inactive(file):    13764 kB
Unevictable:          20 kB
Mlocked:              20 kB
SwapTotal:             0 kB
SwapFree:              0 kB
Dirty:                 0 kB
Writeback:             0 kB
AnonPages:         45164 kB
Mapped:             7664 kB
Shmem:              3348 kB
Slab:               4400 kB
SReclaimable:       1252 kB
SUnreclaim:         3148 kB
KernelStack:         808 kB
PageTables:         1128 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:       54712 kB
Committed_AS:     385936 kB
VmallocTotal:     401408 kB
VmallocUsed:        6376 kB
VmallocChunk:     389116 kB


# 로보킹 디스크 정보 확인
most2120# cat /proc/diskstats
  31       0 mtdblock0 0 0 0 0 0 0 0 0 0 0 0
  31       1 mtdblock1 0 0 0 0 0 0 0 0 0 0 0
  31       2 mtdblock2 91 4119 8420 1770 0 0 0 0 0 1770 1770
  31       3 mtdblock3 0 0 0 0 0 0 0 0 0 0 0
  31       4 mtdblock4 0 0 0 0 0 0 0 0 0 0 0


# 로보킹 파티션 정보 확인
most2120# cat /proc/partitions
major minor  #blocks  name

  31        0        256 mtdblock0
  31        1       3840 mtdblock1
  31        2      20480 mtdblock2
  31        3      57344 mtdblock3
  31        4      49152 mtdblock4

 

# 로보킹 디스크 사용량 확인
most2120# df -k
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/mtdblock/2           6528      6528         0 100% /
tmpfs                    54712      3372     51340   6% /dev
rwfs                     54712         0     54712   0% /mnt/rwfs
rwfs                       512         8       504   2% /var
rwfs                     54712         0     54712   0% /mnt/rwfs
tmpds1                   54712         0     54712   0% /tmp
/dev/ubi0_0              50364     30868     16928  65% /usr
/dev/ubi1_0              42900      5076     35632  12% /usr/data
rwfs                     54712         0     54712   0% /mnt/rwfs
tmpds1                   54712         0     54712   0% /tmp
tmpds2                   54712         4     54708   0% /usr/tmp
mnts                     54712         0     54712   0% /tmp
mnts                     54712         4     54708   0% /usr/tmp


# 로보킹 리눅스 모듈 확인
most2120# lsmod
Module                  Size  Used by
pedropatch              1943  0
8192cu                427646  0


# 로보킹 부팅 시, 읽어들이 하드웨어 정보 확인
most2120# dmesg
Linux version 2.6.33.7.2-rt30 (dwlee@android-develop1, At revision 93.) (gcc version 4.3.3 (GCC) ) #475 PREEMPT RT Mon Jun 4 12:09:47 KST 2012
CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387f
CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
Machine: RK_HIT_V2
Ignoring unrecognised tag 0x00000000
Memory policy: ECC disabled, Data cache writeback
On node 0 totalpages: 28672
free_area_init_node: node 0, pgdat c040b678, node_mem_map c0442000
  Normal zone: 224 pages used for memmap
  Normal zone: 0 pages reserved
  Normal zone: 28448 pages, LIFO batch:7
k_alloc: 0xc0000000 ~ 0xc7000000, 112MB
v_alloc: 0xc7800000 ~ 0xe0000000, 392MB
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 28448
Kernel command line: noinitrd console=ttyS0,115200 root=/dev/mtdblock2 rootfstype=squashfs
PID hash table entries: 512 (order: -1, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 112MB = 112MB total
Memory: 109184KB available (3840K code, 387K data, 96K init, 0K highmem)
Real-Time Preemption Support (C) 2004-2007 Ingo Molnar
Experimental preemptable hierarchical RCU implementation.
NR_IRQS:256
Trying to install chained interrupt handler for IRQ3
Trying to install chained interrupt handler for IRQ13
Trying to install chained interrupt handler for IRQ50
timer: src ch(0), freq:3000000, mult:349525333
timer: evt ch(1), freq:1000000, HZ:100, mult:4294967
serial init:port=0 baud=115200 parity=0 data=3 stop=0 clk=461538 quot=4 trigger=4
console [ttyS0] enabled
Calibrating delay loop... 699.59 BogoMIPS (lpj=3497984)
Security Framework initialized
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
ODT status = 2
nxp2120-dtk : done board initialize ...
plat: add device serial (array:2)
plat: add device usb ehci
plat: add device i2c bus (array:2)
plat: add device dm9000 net
plat: add device v4l2 camera
bio: create slab <bio-0> at 0
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Advanced Linux Sound Architecture Driver Version 1.0.21.
Switching to clocksource timer_source
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 4, 114688 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
UDP hash table entries: 64 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 64 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
squashfs: version 4.0 (2009/01/31) Phillip Lougher
yaffs Jun  4 2012 12:08:47 Installing.
msgmni has been set to 213
alg: No test for cipher_null (cipher_null-generic)
alg: No test for ecb(cipher_null) (ecb-cipher_null)
alg: No test for digest_null (digest_null-generic)
alg: No test for compress_null (compress_null-generic)
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
GPLED device is registered and ready to use.
hz = 10
nx-uart.0: ttyS0 at MMIO 0xc0016000 (irq = 10) is a UART0
UART port init line=0
nx-uart.1: ttyS1 at MMIO 0xc0016080 (irq = 34) is a UART1
UART port init line=1
index=0 buf_base = fee00000 dma_phys = 86938000
index=1 buf_base = fee08000 dma_phys = 86980000
usbcore: registered new interface driver ub
Searching NAND device ...
NAND ecc: Software
NAND device: Manufacturer ID: 0xad, Chip ID: 0xf1 (Hynix NAND 128MiB 3,3V 8-bit)
Scanning device for bad blocks
cmdlinepart partition parsing not available
Creating 5 MTD partitions on "nx-nand":
0x000000000000-0x000000040000 : "Bootloader"
0x000000040000-0x000000400000 : "nand.kernel"
0x000000400000-0x000001800000 : "nand.rootfs"
0x000001800000-0x000005000000 : "nand.userfs"
0x000005000000-0x000008000000 : "nand.data"
Using static partition definition
dm9000 Ethernet Driver, V1.31
dm9000 dm9000.0: read wrong id 0x2d2d2d2d
dm9000 dm9000.0: read wrong id 0x2d2d2d2d
dm9000 dm9000.0: read wrong id 0x2d2d2d2d
dm9000 dm9000.0: read wrong id 0x2d2d2d2d
dm9000 dm9000.0: read wrong id 0x2d2d2d2d
dm9000 dm9000.0: read wrong id 0x2d2d2d2d
dm9000 dm9000.0: read wrong id 0x2d2d2d2d
dm9000 dm9000.0: read wrong id 0x2d2d2d2d
dm9000 dm9000.0: wrong id: 0x2d2d2d2d
dm9000 dm9000.0: not found (-19).
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
nx-ehci: usb host EHCI version 0x00000110
nx-ehci nx-ehci.0: Nexell EHCI
nx-ehci nx-ehci.0: new USB bus registered, assigned bus number 1
nx-ehci nx-ehci.0: irq 51, io mem 0xc000d000
nx-ehci nx-ehci.0: USB 0.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
nx-i2c.0:   341796 hz [pclk=87500000, src=256, scale= 1][irq]
nx-i2c.1:   341796 hz [pclk=87500000, src=256, scale= 1][irq]
Linux video capture interface: v2.00
nx-vip: controller 0 registered successfully
PixelPlus POA030 driver initialized
POA030_i2c_probe client->addr=6E
cpuidle: using governor ladder
cpuidle: using governor menu
WM8960 I2C Codec 0-001a: No platform data supplied
usb 1-1: new high speed USB device using nx-ehci and address 2
No device for DAI nx-i2s
I2S audio clock enable = c
asoc: WM8960 <-> nx-i2s mapping ok
ALSA device list:
  #0: most-wm8960 (WM8960)
TCP cubic registered
NET: Registered protocol family 17
NET: Registered protocol family 15
lib80211: common routines for IEEE802.11 drivers
lib80211_crypt: registered algorithm 'NULL'
VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
Freeing init memory: 96K
serial init:port=0 baud=115200 parity=0 data=3 stop=0 clk=461538 quot=4 trigger=4
serial init:port=0 baud=115200 parity=0 data=3 stop=0 clk=461538 quot=4 trigger=4
UBIFS error (pid 358): ubifs_get_sb: cannot open "/dev/ubi0_0", error -22
UBI: attaching mtd3 to ubi0
UBI: physical eraseblock size:   131072 bytes (128 KiB)
UBI: logical eraseblock size:    129024 bytes
UBI: smallest flash I/O unit:    2048
UBI: sub-page size:              512
UBI: VID header offset:          512 (aligned 512)
UBI: data offset:                2048
UBI: attached mtd3 to ubi0
UBI: MTD device name:            "nand.userfs"
UBI: MTD device size:            56 MiB
UBI: number of good PEBs:        448
UBI: number of bad PEBs:         0
UBI: max. allowed volumes:       128
UBI: wear-leveling threshold:    4096
UBI: number of internal volumes: 1
UBI: number of user volumes:     1
UBI: available PEBs:             0
UBI: total number of reserved PEBs: 448
UBI: number of PEBs reserved for bad PEB handling: 4
UBI: max/mean erase counter: 11/5
UBI: image sequence number: 0
UBI: background thread "ubi_bgt0d" started, PID 367
UBI: attaching mtd4 to ubi1
UBI: physical eraseblock size:   131072 bytes (128 KiB)
UBI: logical eraseblock size:    129024 bytes
UBI: smallest flash I/O unit:    2048
UBI: sub-page size:              512
UBI: VID header offset:          512 (aligned 512)
UBI: data offset:                2048
UBI: attached mtd4 to ubi1
UBI: MTD device name:            "nand.data"
UBI: MTD device size:            48 MiB
UBI: number of good PEBs:        384
UBI: number of bad PEBs:         0
UBI: max. allowed volumes:       128
UBI: wear-leveling threshold:    4096
UBI: number of internal volumes: 1
UBI: number of user volumes:     1
UBI: available PEBs:             0
UBI: total number of reserved PEBs: 384
UBI: number of PEBs reserved for bad PEB handling: 3
UBI: max/mean erase counter: 1833/1287
UBI: image sequence number: 0
UBI: background thread "ubi_bgt1d" started, PID 371
UBIFS: recovery needed
UBIFS: recovery completed
UBIFS: mounted UBI device 0, volume 0, name "user"
UBIFS: file system size:   55609344 bytes (54306 KiB, 53 MiB, 431 LEBs)
UBIFS: journal size:       2838528 bytes (2772 KiB, 2 MiB, 22 LEBs)
UBIFS: media format:       w4/r0 (latest is w4/r0)
UBIFS: default compressor: lzo
UBIFS: reserved for root:  2626566 bytes (2565 KiB)
UBIFS: recovery needed
UBIFS: recovery completed
UBIFS: mounted UBI device 1, volume 0, name "data"
UBIFS: file system size:   47480832 bytes (46368 KiB, 45 MiB, 368 LEBs)
UBIFS: journal size:       2322432 bytes (2268 KiB, 2 MiB, 18 LEBs)
UBIFS: media format:       w4/r0 (latest is w4/r0)
UBIFS: default compressor: lzo
UBIFS: reserved for root:  2242636 bytes (2190 KiB)
rtusb init --->
usbcore: registered new interface driver rt2870
usbcore: deregistering interface driver rt2870
- rtusb exit
rtusb init --->
usbcore: registered new interface driver rt2870
usbcore: deregistering interface driver rt2870
- rtusb exit
rtusb init rt2870 --->
usbcore: registered new interface driver rt2870
usbcore: deregistering interface driver rt2870
- rtusb exit
usbcore: registered new interface driver rtl8192cu
PCM OUTPUT BUFFER UNDERRUN
PCM INPUT BUFFER OVERRUN
serial init:port=1 baud=9600 parity=0 data=3 stop=0 clk=461538 quot=48 trigger=4
serial init:port=1 baud=460800 parity=0 data=3 stop=0 clk=461538 quot=1 trigger=0
PEDROPATCH: found symbol nx_vip_open at 0xc0227808 (size=0xa0, offset= 0x0)
PEDROPATCH: found symbol2 nx_vip_set_active_camera at 0xc0227178 (size=0x28, offset= 0x0)
PEDROPATCH:found  nx_vip1 at 0xc0438da8:
00 00 00 00 6e 78 2d 76 69 70 30 00 00 00 00 00  ....nx-vip0.....
00 00 00 00 00 00 00 00 c0 8d 43 c0 c0 8d 43 c0  ..........C...C.
c8 8d 43 c0 c8 8d 43 c0 00 00 00 00 d4 8d 43 c0  ..C...C.......C.
d4 8d 43 c0 dc 8d 43 c0 dc 8d 43 c0 00 00 00 00  ..C...C...C.....
00 00 00 00 ec 8d 43 c0 ec 8d 43 c0 60 47 3e c0  ......C...C.`G>.
00 00 00 00 00 48 8f c7 00 00 00 00 02 00 00 00  .....H..........
58 54 40 c0 00 00 00 00 00 00 00 00 00 00 00 00  XT@.............
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00     ...............
PEDROPATCH: current cam config width:0 height:0 planes:0 format:0
PEDROPATCH: loaded! The next steps are:
mknod /dev/camclone c 222 0
dd if=/dev/camclone bs=153600 count=1 > img.yuv
on a host pc: convert -size 320x240 -depth 8 -sampling-factor 4:2:2 -interlace plane img.yuv img.jpgserial init:port=1 baud=460800 parity=0 data=3 stop=0 clk=461538 quot=1 trigger=0
serial init:port=1 baud=230400 parity=0 data=3 stop=0 clk=461538 quot=2 trigger=0
nx-vip: alloc boot mem vir=c8000000, phys=87000000
nx-vip: start vip 0
Error: i2c-1, msg len:-11,3, try:10, ret:-11
Error: i2c-1, msg len:-11,3, try:10, ret:-11
Error: i2c-1, msg len:-11,3, try:10, ret:-11
Error: i2c-1, msg len:-11,3, try:10, ret:-11
Error: i2c-1, msg len:-11,3, try:10, ret:-11
Error: i2c-1, msg len:-11,3, try:10, ret:-11
Error: i2c-1, msg len:-11,3, try:10, ret:-11
Error: i2c-1, msg len:-11,3, try:10, ret:-11
Error: i2c-1, msg len:-11,3, try:10, ret:-11

 


# 로보킹 top 화면

Mem: 76096K used, 33332K free, 0K shrd, 4260K buff, 16464K cached
Load average: 0.18 0.31 0.14
  PID USER     STATUS   VSZ  PPID %CPU %MEM COMMAND
  468 root     SW     78936   466 12.3 72.0 rpmain_13865.ax
   11 root     SW         0     2  2.3  0.0 sirq-hrtimer/0
  599 root     RW      2784   598  0.7  2.5 top
  476 root     SW     60460   466  0.3 55.1 rpmain_13865.ax
  459 root     SW      3780     1  0.3  3.4 lg.srv  <-- 웹서버 프로세스 입니다.
  198 root     SW         0     2  0.3  0.0 irq/51-ehci_hcd
  597 root     SW       636   447  0.1  0.5 dropbear
    9 root     SW         0     2  0.1  0.0 sirq-tasklet/0
  469 root     SW         0     2  0.1  0.0 irq/34-nx-uart
  490 root     SW     85448   466  0.0 77.9 rpmain_13865.ax
  500 root     SW     76860   466  0.0 70.1 rpmain_13865.ax
  491 root     SW     70272   466  0.0 64.1 rpmain_13865.ax
  513 root     SW     70256     1  0.0 64.1 rpmain_13865.ax
  477 root     SW     60464   466  0.0 55.1 rpmain_13865.ax
  501 root     SW     60464   466  0.0 55.1 rpmain_13865.ax
  480 root     SW     53852   466  0.0 49.1 rpmain_13865.ax
  487 root     SW     53480   466  0.0 48.7 rpmain_13865.ax
  499 root     SW     52796   466  0.0 48.1 rpmain_13865.ax
  479 root     SW     52788   466  0.0 48.1 rpmain_13865.ax
  489 root     SW     52728   466  0.0 48.1 rpmain_13865.ax
  478 root     SW     52664   466  0.0 48.0 rpmain_13865.ax

 

 

추가적인 내용은 다음 포스트에서 이어.. 질까요? ^^;;