rdb,
After coming back home, I just decided to see what is going on with the files.
I could successfully identify normal library files such as ‘libpandagles.so’ file;
hl1oap@hl1oap-ubuntu-10:/media/BEAGLE-EXT3/usr/local/panda3d/lib$ readelf -l libpandagles.so
Elf file type is DYN (Shared object file)
Entry point 0x1118
There are 7 program headers, starting at offset 52
Program Headers:
Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align
EXIDX 0x0012dc 0x000012dc 0x000012dc 0x00020 0x00020 R 0x4
LOAD 0x000000 0x00000000 0x00000000 0x01300 0x01300 R E 0x8000
LOAD 0x001dd0 0x00009dd0 0x00009dd0 0x00298 0x002f4 RW 0x8000
DYNAMIC 0x001de0 0x00009de0 0x00009de0 0x00220 0x00220 RW 0x4
NOTE 0x000114 0x00000114 0x00000114 0x00024 0x00024 R 0x4
GNU_STACK 0x000000 0x00000000 0x00000000 0x00000 0x00000 RW 0x4
GNU_RELRO 0x001dd0 0x00009dd0 0x00009dd0 0x00230 0x00230 R 0x1
Section to Segment mapping:
Segment Sections...
00 .ARM.exidx
01 .note.gnu.build-id .hash .gnu.hash .dynsym .dynstr .gnu.version .gnu.version_r .rel.dyn .rel.plt .init .plt .text .fini .ARM.extab .ARM.exidx .eh_frame
02 .init_array .fini_array .jcr .dynamic .got .data .bss
03 .dynamic
04 .note.gnu.build-id
05
06 .init_array .fini_array .jcr .dynamic
However, those listed files were not recognized with the readelf tool.
hl1oap@hl1oap-ubuntu-10:/media/BEAGLE-EXT3/usr/local/panda3d/lib$ readelf -l libpanda.so
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
readelf: Error: libpanda.so: Failed to read file header
hl1oap@hl1oap-ubuntu-10:/media/BEAGLE-EXT3/usr/local/panda3d/lib$
While the normal elf file’s first part dump looks like this,
hl1oap@hl1oap-ubuntu-10:/media/BEAGLE-EXT3/usr/local/panda3d/lib$ hexdump -C libpandagles.so | head
00000000 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00 |.ELF............|
00000010 03 00 28 00 01 00 00 00 18 11 00 00 34 00 00 00 |..(.........4...|
00000020 98 3d 14 00 02 00 00 05 34 00 20 00 07 00 28 00 |.=......4. ...(.|
00000030 26 00 23 00 01 00 00 70 dc 12 00 00 dc 12 00 00 |&.#....p........|
00000040 dc 12 00 00 20 00 00 00 20 00 00 00 04 00 00 00 |.... ... .......|
00000050 04 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 |................|
00000060 00 00 00 00 00 13 00 00 00 13 00 00 05 00 00 00 |................|
00000070 00 80 00 00 01 00 00 00 d0 1d 00 00 d0 9d 00 00 |................|
00000080 d0 9d 00 00 98 02 00 00 f4 02 00 00 06 00 00 00 |................|
00000090 00 80 00 00 02 00 00 00 e0 1d 00 00 e0 9d 00 00 |................|
hl1oap@hl1oap-ubuntu-10:/media/BEAGLE-EXT3/usr/local/panda3d/lib$
those corrupted files look like this.
hl1oap@hl1oap-ubuntu-10:/media/BEAGLE-EXT3/usr/local/panda3d/lib$ hexdump -C libegg.so | head
00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
00200000 36 43 32 34 37 37 31 46 32 36 44 35 31 41 38 39 |6C24771F26D51A89|
00200010 30 37 38 36 44 41 35 31 36 44 42 43 32 44 31 36 |0786DA516DBC2D16|
00200020 31 36 38 30 42 31 33 34 46 31 37 31 35 42 33 32 |1680B134F1715B32|
00200030 46 37 33 34 45 36 36 37 36 35 30 33 39 38 45 43 |F734E667650398EC|
00200040 32 32 34 31 41 46 37 38 38 37 37 42 42 33 44 36 |2241AF78877BB3D6|
00200050 31 44 38 33 44 30 31 35 38 44 44 45 38 39 34 38 |1D83D0158DDE8948|
00200060 36 32 45 45 36 45 31 42 45 45 32 37 38 37 32 34 |62EE6E1BEE278724|
00200070 45 41 37 42 33 34 43 37 34 46 30 41 35 44 36 42 |EA7B34C74F0A5D6B|
hl1oap@hl1oap-ubuntu-10:/media/BEAGLE-EXT3/usr/local/panda3d/lib$ hexdump -C libpnmimagetypes.so | head
00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
001858d0
hl1oap@hl1oap-ubuntu-10:/media/BEAGLE-EXT3/usr/local/panda3d/lib$ hexdump -C libdistort.so | head
00000000 70 79 73 75 70 70 6f 72 74 20 2d 0a 00 00 00 00 |pysupport -.....|
00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
00001000 f2 9b 01 00 0c 00 01 02 2e 00 00 00 f1 9b 01 00 |................|
00001010 f4 0f 02 02 2e 2e 00 00 00 00 00 00 00 00 00 00 |................|
00001020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
00002000 f3 9b 01 00 0c 00 01 02 2e 00 00 00 f1 9b 01 00 |................|
00002010 0c 00 02 02 2e 2e 00 00 f4 9b 01 00 10 00 07 02 |................|
00002020 6f 72 69 67 69 6e 73 00 f8 9b 01 00 10 00 08 01 |origins.........|
hl1oap@hl1oap-ubuntu-10:/media/BEAGLE-EXT3/usr/local/panda3d/lib$ hexdump -C libeffects.so | head
00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
0002d0b0
hl1oap@hl1oap-ubuntu-10:/media/BEAGLE-EXT3/usr/local/panda3d/lib$ hexdump -C libpanda.so | head
00000000 df 9e 01 00 0c 00 01 02 2e 00 00 00 f1 9b 01 00 |................|
00000010 0c 00 02 02 2e 2e 00 00 e1 9e 01 00 34 00 0a 01 |............4...|
00000020 73 73 68 5f 63 6f 6e 66 69 67 67 2d 6e 65 77 00 |ssh_configg-new.|
00000030 e1 9e 01 00 1c 00 13 01 73 73 68 5f 63 6f 6e 66 |........ssh_conf|
00000040 69 67 2e 64 70 6b 67 2d 6e 65 77 00 e0 9e 01 00 |ig.dpkg-new.....|
00000050 b4 0f 06 01 6d 6f 64 75 6c 69 00 00 00 00 00 00 |....moduli......|
00000060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
00001000 23 20 54 69 6d 65 20 54 79 70 65 20 54 65 73 74 |# Time Type Test|
00001010 73 20 54 72 69 65 73 20 53 69 7a 65 20 47 65 6e |s Tries Size Gen|
hl1oap@hl1oap-ubuntu-10:/media/BEAGLE-EXT3/usr/local/panda3d/lib$ hexdump -C libp3openal_audio.so | head
00000000 67 6d 65 6e 75 63 61 63 68 65 20 6c 61 6e 67 75 |gmenucache langu|
00000010 61 67 65 2d 70 61 63 6b 2d 6b 6f 2d 62 61 73 65 |age-pack-ko-base|
00000020 0a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
0012af20
hl1oap@hl1oap-ubuntu-10:/media/BEAGLE-EXT3/usr/local/panda3d/lib$ hexdump -C librecorder.so | head
00000000 0c c8 06 00 0d c8 06 00 0e c8 06 00 0f c8 06 00 |................|
00000010 10 c8 06 00 11 c8 06 00 12 c8 06 00 13 c8 06 00 |................|
00000020 14 c8 06 00 15 c8 06 00 16 c8 06 00 17 c8 06 00 |................|
00000030 18 c8 06 00 19 c8 06 00 1a c8 06 00 1b c8 06 00 |................|
00000040 1c c8 06 00 1d c8 06 00 1e c8 06 00 1f c8 06 00 |................|
00000050 20 c8 06 00 21 c8 06 00 22 c8 06 00 23 c8 06 00 | ...!..."...#...|
00000060 24 c8 06 00 25 c8 06 00 26 c8 06 00 27 c8 06 00 |$...%...&...'...|
00000070 28 c8 06 00 29 c8 06 00 2a c8 06 00 2b c8 06 00 |(...)...*...+...|
00000080 2c c8 06 00 2d c8 06 00 2e c8 06 00 2f c8 06 00 |,...-......./...|
00000090 30 c8 06 00 31 c8 06 00 32 c8 06 00 33 c8 06 00 |0...1...2...3...|
hl1oap@hl1oap-ubuntu-10:/media/BEAGLE-EXT3/usr/local/panda3d/lib$ hexdump -C libcftalk.so | head
00000000 6c 64 63 6f 6e 66 69 67 20 2d 0a 00 00 00 00 00 |ldconfig -......|
00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
00001000 2f 64 65 76 2f 72 6f 6f 74 20 2f 20 65 78 74 33 |/dev/root / ext3|
00001010 20 72 77 20 30 20 30 0a 70 72 6f 63 20 2f 70 72 | rw 0 0.proc /pr|
00001020 6f 63 20 70 72 6f 63 20 72 77 20 30 20 30 0a 6e |oc proc rw 0 0.n|
00001030 6f 6e 65 20 2f 70 72 6f 63 2f 73 79 73 2f 66 73 |one /proc/sys/fs|
00001040 2f 62 69 6e 66 6d 74 5f 6d 69 73 63 20 62 69 6e |/binfmt_misc bin|
00001050 66 6d 74 5f 6d 69 73 63 20 72 77 2c 6e 6f 65 78 |fmt_misc rw,noex|
00001060 65 63 2c 6e 6f 73 75 69 64 2c 6e 6f 64 65 76 20 |ec,nosuid,nodev |
hl1oap@hl1oap-ubuntu-10:/media/BEAGLE-EXT3/usr/local/panda3d/lib$
So, my guess is that those files were totally corrupted for some reason. And, I am very much suspicious if the filesystem on the SD card were corrupted. I could see sometimes kernel error messages complaining the I/O error when I turn the board on for a long time to compile.
=> I just re-compiled all the eight libraries individually(it took less time than I expected.) and they seem O.K. I could at least parse the file header with readelf tool, at this moment.
Now, I have to visit my friend’s lab again to test the result.
I will let you know the result.