Created
April 9, 2014 08:02
-
-
Save Kazu-zamasu/10238840 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@clanton:/opt/cln/galileo# cat /etc/inittab | |
grst:5:respawn:/opt/cln/galileo/galileo_sketch_reset -v | |
clld:5:respawn:/etc/init.d/clloader.sh | |
root@clanton:/opt/cln/galileo# ls -all | |
total 76 | |
drwxr-sr-x 2 root root 4096 Sep 30 2013 . | |
drwxr-s--- 3 root root 4096 Sep 30 2013 .. | |
-rwxrwxrwx 1 root root 48584 Sep 30 2013 clloader | |
-rwxr-xr-x 1 root root 5700 Sep 30 2013 galileo_sketch_reset | |
-rwxr-x--- 1 root root 58 Sep 30 2013 galileo_sketch_reset_script.sh | |
-rwxr-x--- 1 root root 782 Sep 30 2013 sketch-setup.sh | |
-rwxr-x--- 1 root root 536 Sep 30 2013 start_spi_upgrade.sh | |
root@clanton:/opt/cln/galileo# file ./clloader | |
./clloader: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), BuildID[sha1]=0x84c4ef3ab6b74379da0b4d36b1357c4ba1a02aa2, stripped | |
root@clanton:/opt/cln/galileo# file ./galileo_sketch_reset | |
./galileo_sketch_reset: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), BuildID[sha1]=0x55970b25a1eaa0761b8569cf10713256611d88eb, stripped | |
root@clanton:/opt/cln/galileo# cat /etc/init.d/clloader.sh | |
#!/bin/sh | |
while true; do | |
/opt/cln/galileo/clloader --escape --binary --zmodem --disable-timeouts < /dev/ttyGS0 > /dev/ttyGS0 | |
sleep 20 | |
done | |
root@clanton:/opt/cln/galileo# ldd ./clloader | |
linux-gate.so.1 => (0xb7774000) | |
libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xb774d000) | |
libc.so.0 => not found | |
libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb75fc000) | |
/lib/ld-uClibc.so.0 => /lib/ld-linux.so.2 (0xb7775000) | |
root@clanton:/opt/cln/galileo# ldd ./galileo_sketch_reset | |
linux-gate.so.1 => (0xb777e000) | |
libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xb7757000) | |
libc.so.0 => not found | |
libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb7606000) | |
/lib/ld-uClibc.so.0 => /lib/ld-linux.so.2 (0xb777f000) | |
以下 libc.so.0に/lib/i386-linux-gnu/libc.so.6をはってみる。 | |
root@clanton:/opt/cln/galileo# ln -sf /lib/i386-linux-gnu/libc.so.6 /lib/i386-linux-gnu/libc.so.0 | |
root@clanton:/opt/cln/galileo# ldd ./galileo_sketch_reset | |
linux-gate.so.1 => (0xb76fe000) | |
libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xb76d7000) | |
libc.so.0 => /lib/i386-linux-gnu/libc.so.0 (0xb7587000) | |
/lib/ld-uClibc.so.0 => /lib/ld-linux.so.2 (0xb76ff000) | |
root@clanton:/opt/cln/galileo# ldd ./clloader | |
linux-gate.so.1 => (0xb776f000) | |
libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xb7748000) | |
libc.so.0 => /lib/i386-linux-gnu/libc.so.0 (0xb75f8000) | |
/lib/ld-uClibc.so.0 => /lib/ld-linux.so.2 (0xb7770000) | |
そもそも、ttyGS0が無いからダメ・・・ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment