Network Problem on Skyeye running uClinux

82 views
Skip to first unread message

jeffrey....@gmail.com

unread,
Jan 30, 2014, 7:55:03 AM1/30/14
to skyeye-s...@googlegroups.com
Hi everybody,

I want to run uClinux on Skyeye on my Ubuntu System.

Therefore, I followed the instructions on http://sourceforge.net/apps/trac/skyeye/wiki/uClinux.

The good news: uClinux on Skyeye 1.2.5 under Ubuntu 12.10 runs, if (all) the network-related lines in the skyeye.config file are commented (i.e., there is no network module present). I can run uClinux, add own applications, etc.

The bad news: When I uncomment the network line (net: type=rtl8019, mac= ...) in the skyeye.config file, the following error message occurs:

failed to setup_module (name:net, type:rtl8019)
*** stack smashing detected ***: skyeye terminated

(for detailed output, see below, modifying the skyeye.config file to "type:cs8900a" doesn't help, still the same problem)

Apparently, there seems to be a problem with the network module. I also tried to use Skyeye version 1.3.4-rc1, basically the same thing happens.

Searching on Google for the same error message ("failed to setup_module (name:net, type:rtl8019)") gave me the following 2 hits, though the problems don't seem to be exactly the same:

https://groups.google.com/forum/#!topic/skyeye-simulator/xmf6U1FQFOw
-> didn't really help

http://sourceforge.net/p/skyeye/bugs/32/
-> says that issue is fixed in Skyeye 1.2.8, but as I mentioned, I have the same problem in Skyeye version 1.3.4-rc1.


Some details on the software that I use:

Host System is Ubuntu 12.10
Skyeye version 1.2.5 (I installed the official Ubuntu package over apt-get)
GCC: from arm-linux-tools-20061213.tar.gz -> gcc version 3.4.4
uClinux -> uClinux-dist-20070130, basic configuration:
 Vendor         : (GDB)
 Product        : (ARMulator)
 Kernel Version : (linux-2.6.x)
 Libc Version   : (uClibc)

If you need more info on anything, just let me know.

Again, it seems to me that the problem is somewhere in the networking setup (which is bad, since basically the only thing I really need in uClinux is just that).

Anybody having any thoughts on that? Thanks in advance!

Jeff





The detailed output:

/> skyeye -e linux
Your elf file is little endian.
arch: arm
cpu info: armv3, arm7tdmi, 41007700, fff8ff00, 0
mach info: name at91, mach_init addr 0x8061680
ethmod num=1, mac addr=0:4:3:2:1:f, hostip=10.0.0.1
failed to setup_module (name:net, type:rtl8019)
*** stack smashing detected ***: skyeye terminated
======= Backtrace: =========
/lib/i386-linux-gnu/libc.so.6(__fortify_fail+0x45)[0xb7643eb5]
/lib/i386-linux-gnu/libc.so.6(+0x104e6a)[0xb7643e6a]
skyeye[0x804c2da]
skyeye[0x804b2fc]
skyeye[0x804b570]
skyeye[0x804b70e]
skyeye[0x804a870]
/lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0xb75584d3]
skyeye[0x804aa45]
======= Memory map: ========
08048000-080ef000 r-xp 00000000 08:01 2243489    /usr/bin/skyeye
080ef000-080f0000 r--p 000a6000 08:01 2243489    /usr/bin/skyeye
080f0000-080f5000 rw-p 000a7000 08:01 2243489    /usr/bin/skyeye
080f5000-08110000 rw-p 00000000 00:00 0
094da000-094fb000 rw-p 00000000 00:00 0          [heap]
b750d000-b7529000 r-xp 00000000 08:01 2491287    /lib/i386-linux-gnu/libgcc_s.so.1
b7529000-b752a000 r--p 0001b000 08:01 2491287    /lib/i386-linux-gnu/libgcc_s.so.1
b752a000-b752b000 rw-p 0001c000 08:01 2491287    /lib/i386-linux-gnu/libgcc_s.so.1
b753d000-b753f000 rw-p 00000000 00:00 0
b753f000-b76e3000 r-xp 00000000 08:01 2495033    /lib/i386-linux-gnu/libc-2.15.so
b76e3000-b76e5000 r--p 001a4000 08:01 2495033    /lib/i386-linux-gnu/libc-2.15.so
b76e5000-b76e6000 rw-p 001a6000 08:01 2495033    /lib/i386-linux-gnu/libc-2.15.so
b76e6000-b76e9000 rw-p 00000000 00:00 0
b76e9000-b7713000 r-xp 00000000 08:01 2490496    /lib/i386-linux-gnu/libm-2.15.so
b7713000-b7714000 r--p 00029000 08:01 2490496    /lib/i386-linux-gnu/libm-2.15.so
b7714000-b7715000 rw-p 0002a000 08:01 2490496    /lib/i386-linux-gnu/libm-2.15.so
b7724000-b7729000 rw-p 00000000 00:00 0
b7729000-b772a000 r-xp 00000000 00:00 0          [vdso]
b772a000-b774a000 r-xp 00000000 08:01 2490491    /lib/i386-linux-gnu/ld-2.15.so
b774a000-b774b000 r--p 0001f000 08:01 2490491    /lib/i386-linux-gnu/ld-2.15.so
b774b000-b774c000 rw-p 00020000 08:01 2490491    /lib/i386-linux-gnu/ld-2.15.so
bfacf000-bfaf0000 rw-p 00000000 00:00 0          [stack]
tapif_init: icotl TUNSETIFF errorAborted (core dumped)

Li Ming

unread,
Jan 30, 2014, 7:50:43 PM1/30/14
to skyeye-s...@googlegroups.com
try sudo to see if it helps

> sudo ./skyeye -e linux


2014-01-30 <jeffrey....@gmail.com>:

--
您收到此邮件是因为您订阅了 Google 网上论坛的“skyeye-simulator”论坛。
要退订此论坛并停止接收此论坛的电子邮件,请发送电子邮件到 skyeye-simulat...@googlegroups.com
要向此网上论坛发帖,请发送电子邮件至 skyeye-s...@googlegroups.com
通过以下网址访问此论坛:http://groups.google.com/group/skyeye-simulator。
要查看更多选项,请访问 https://groups.google.com/groups/opt_out。

jeffrey....@gmail.com

unread,
Jan 31, 2014, 6:39:15 AM1/31/14
to skyeye-s...@googlegroups.com
Hi,
thanks for your response.

Strange. When I start skyeye as su, I get the following output:

> sudo skyeye -e linux

Your elf file is little endian.
arch: arm
cpu info: armv3, arm7tdmi, 41007700, fff8ff00, 0
mach info: name at91, mach_init addr 0x8061680
ethmod num=1, mac addr=0:4:3:2:1:f, hostip=10.0.0.1
*** stack smashing detected ***: skyeye terminated
======= Backtrace: =========
/lib/i386-linux-gnu/libc.so.6(__fortify_fail+0x45)[0xb7616eb5]
/lib/i386-linux-gnu/libc.so.6(+0x104e6a)[0xb7616e6a]

skyeye[0x804c2da]
skyeye[0x804b2fc]
skyeye[0x804b570]
skyeye[0x804b70e]
skyeye[0x804a870]
/lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0xb752b4d3]

skyeye[0x804aa45]
======= Memory map: ========
08048000-080ef000 r-xp 00000000 08:01 2243489    /usr/bin/skyeye
080ef000-080f0000 r--p 000a6000 08:01 2243489    /usr/bin/skyeye
080f0000-080f5000 rw-p 000a7000 08:01 2243489    /usr/bin/skyeye
080f5000-08110000 rw-p 00000000 00:00 0
099ac000-099cd000 rw-p 00000000 00:00 0          [heap]
b74e1000-b74fd000 r-xp 00000000 08:01 2491287    /lib/i386-linux-gnu/libgcc_s.so.1
b74fd000-b74fe000 r--p 0001b000 08:01 2491287    /lib/i386-linux-gnu/libgcc_s.so.1
b74fe000-b74ff000 rw-p 0001c000 08:01 2491287    /lib/i386-linux-gnu/libgcc_s.so.1
b7510000-b7512000 rw-p 00000000 00:00 0
b7512000-b76b6000 r-xp 00000000 08:01 2495033    /lib/i386-linux-gnu/libc-2.15.so
b76b6000-b76b8000 r--p 001a4000 08:01 2495033    /lib/i386-linux-gnu/libc-2.15.so
b76b8000-b76b9000 rw-p 001a6000 08:01 2495033    /lib/i386-linux-gnu/libc-2.15.so
b76b9000-b76bc000 rw-p 00000000 00:00 0
b76bc000-b76e6000 r-xp 00000000 08:01 2490496    /lib/i386-linux-gnu/libm-2.15.so
b76e6000-b76e7000 r--p 00029000 08:01 2490496    /lib/i386-linux-gnu/libm-2.15.so
b76e7000-b76e8000 rw-p 0002a000 08:01 2490496    /lib/i386-linux-gnu/libm-2.15.so
b76f6000-b76fb000 rw-p 00000000 00:00 0
b76fb000-b76fc000 r-xp 00000000 00:00 0          [vdso]
b76fc000-b771c000 r-xp 00000000 08:01 2490491    /lib/i386-linux-gnu/ld-2.15.so
b771c000-b771d000 r--p 0001f000 08:01 2490491    /lib/i386-linux-gnu/ld-2.15.so
b771d000-b771e000 rw-p 00020000 08:01 2490491    /lib/i386-linux-gnu/ld-2.15.so
bf90a000-bf92b000 rw-p 00000000 00:00 0          [stack]

There's no more
"failed to setup_module (name:net, type:rtl8019)" and
"tapif_init: icotl TUNSETIFF errorAborted (core dumped)",
but all the other lines are almost the same, just some addresses in the 'Backtrace' and 'Memory Map' have changed.

And still, Skyeye starts running uClinux without problems when I remove the networking line in the skyeye.config file.

For Skyeye 1.3.4-rc1, the problem is basically the same.

From what I guess, there must still be some issue with the networking module. In the uClinux 'make menuconfig' menu, I did not change anything in the 'Customize Kernel Settings' or 'Customize Vendor/User Settings', but left the standard values. Should I have chosen there some networking options there?

Jeff
Reply all
Reply to author
Forward
0 new messages