[Skyeye-developer] skyeye can run program with share library ?
walimis
wlm@student.dlut.edu.cn
Wed, 19 May 2004 15:21:14 +0800
skyeye-developer:
=09Today I built a initrd image with share libraries including=
ld-2.3.2.so and libc-2.3.2.so. I compiled a program that was=
dynamically linked with these share libraries.
# more test.c
main()
{
printf("hello world!\n");
}
#arm-linux-gcc -o test test.c
#file test
test: ELF 32-bit LSB executable, ARM, version 1 (ARM), for=
GNU/Linux 2.4.3, dynamically linked (uses shared libs),=
stripped
Then I run skyeye with this initrd.img. Here is result:
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License,=
and you are
welcome to change it and/or distribute copies of it under certain=
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty"=
for details.
***************************************************************
************ SkyEye is Simulator based on GDB *************
***************************************************************
This SkyEye was configured as "--host=3Di686-pc-linux-gnu=
--target=3Darm-elf"...
cpu info: armv4, arm720t, 41807200, ffffff00, 1
mach info: name ep7312, mach_init addr 0x8161bc0
lcd info: turn on lcd!
SKYEYE: use arm7100 mmu ops
Loaded ROM ./initrd.img.test
Connected to the simulator.
Loading section .init, size 0xf000 vma 0xc0028000
Loading section .text, size 0x1277ac vma 0xc0037000
Loading section __ex_table, size 0x9c0 vma 0xc015e7b0
Loading section .data, size 0x26ff0 vma 0xc0160000
Start address 0xc0028000
Transfer rate: 11471584 bits in <1 sec.
Linux version 2.6.0 (root@debian) (gcc version 3.3.2) #22 Wed May=
19 07:50:35 CST 2004
CPU: ARM720T [41807200] revision 0 (ARMv4T)
Machine: Cirrus Logic 7212/7312
Warning: bad configuration page, trying to continue
Ignoring unrecognised tag 0x00000000
Memory policy: ECC disabled, Data cache write back
On node 0 totalpages: 4096
DMA zone: 4096 pages, LIFO batch:1
Normal zone: 0 pages, LIFO batch:1
HighMem zone: 0 pages, LIFO batch:1
Building zonelist for node : 0
Kernel command line: root=3D/dev/ram0 console=3DttyCL0=
initrd=3D0xc0200000,0x00500000 rw
PID hash table entries: 128 (order 7: 1024 bytes)
Console: colour dummy device 80x30
Memory: 16MB =3D 16MB total
Memory: 9568KB available (1181K code, 222K data, 60K init)
Calibrating delay loop... 26.00 BogoMIPS
Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
checking if image is initramfs...it isn't (ungzip failed); looks=
like an initrd
Freeing initrd memory: 5120K
CPU: Testing write buffer coherency: ok
POSIX conformance testing by UNIFIX
NET: Registered protocol family 16
CLPS711xFB: could use on-board SRAM?
NetWinder Floating Point Emulator V0.97 (double precision)
Serial: CLPS711x driver $Revision: 1.42 $
ttyCL0 at I/O 0x100 (irq =3D 12) is a CLPS711x
ttyCL1 at I/O 0x1100 (irq =3D 28) is a CLPS711x
RAMDISK driver initialized: 16 RAM disks of 5120K size 1024=
blocksize
Using anticipatory io scheduler
physmap flash device: 4000000 at 8000000
CFI: Found no Physically mapped flash device at location zero
mice: PS/2 mouse device common for all mice
NET: Registered protocol family 2
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 1024 bind 2048)
NET: Registered protocol family 1
RAMDISK: ext2 filesystem found at block 0
RAMDISK: Loading 5120 blocks [1 disk] into ram disk... done.
VFS: Mounted root (ext2 filesystem).
Freeing init memory: 60K
Welcome to
_ _____ __ __ _ _
/ \ / __ \ / \_/ \ | | |_|
/ _ \ | | | | / /\ /\ \ | | _ ____ _ _ _ _
/ /_\ \ | |__| | / / \_/ \ \| | | | _ \| | | |\ \/ /
/ /___\ \ | |__\ \ | | | || |___ | | |_| | |_| |/ \
/_/ \_\| | \_\|_| |_||_____||_|_| |_|\____|\_/\_/
ARMLinux for Skyeye
For further information please check:
http://www.skyeye.org/
bash-2.05b# cd /bin
bash-2.05b# ls
addgroup date ftpd mknod rm =
test_uc_s
adduser dd grep mktemp rmdir =
touch
ash delgroup gunzip more rpm true
/bash deluser gzip mount sed =
umount
busybox df hostname mv sh =
uname
cat dmesg kill netstat sleep =
uncompress
chgrp echo ln pidof su =
usleep
chmod egrep login ping sync vi
chown false ls ps tar zcat
cp fgrep mkdir pwd test
bash-2.05b# ./test
hello world!
bash-2.05b# ls -lh test
-rwxr-xr-x 1 0 0 3.0k May 19 2004 test
bash-2.05b# ls -lh /lib
-rwxr-xr-x 1 0 0 127.9k May 18 2004=
ld-2.3.2.so
lrwxrwxrwx 1 0 0 11 May 19 2004=
ld-linux.so.2 -> ld-2.3.2.so
-rwxr-xr-x 1 0 0 1.5M May 18 2004=
libc-2.3.2.so
lrwxrwxrwx 1 0 0 9 May 19 2004 libc.so=
-> libc.so.6
lrwxrwxrwx 1 0 0 13 May 19 2004 libc.so.6=
-> libc-2.3.2.so
drwxr-xr-x 3 0 0 1.0k Apr 29 2004 modules
bash-2.05b#
=09But it seemed that skyeye can run programs dynamically linked !=
I wonder whether skyeye can run more complicated program. I will=
do more tests later.
Best Regards
=09=09=09=09
=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1walimis
=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1wlm@student.dlut.edu.cn
=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A12004-05-19=A1=A1=A1=A1
=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1
=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1