View Single Post
Old 05-11-2016, 09:59 AM   #93
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
A little arm-qemu-static chroot test:
PHP Code:
mint17-32 K1 # mount
---<snip>---
/
media/sf_SHARE/kindle/lenny.ext3 on /mnt/lenny type ext3 (rw)
---<
snip>---
mint17-32 K1 # du -sk Angstrom-gumstix-directfb-image-uclibc-ipk-2007.9-test-20080513-gumstix-custom-basix.rootfs.jffs2 
10700    Angstrom-gumstix-directfb-image-uclibc-ipk-2007.9-test-20080513-gumstix-custom-basix.rootfs.jffs2
mint17
-32 K1 # modprobe mtdram total_size=10700 erase_size=128
mint17-32 K1 # modprobe mtdblock
mint17-32 K1 # dd if=Angstrom-gumstix-directfb-image-uclibc-ipk-2007.9-test-20080513-gumstix-custom-basix.rootfs.jffs2 of=/dev/mtdblock0
21395+1 records in
21395
+1 records out
10954556 bytes 
(11 MBcopied0.119878 s91.4 MB/s
int17
-32 K1 # mount -t jffs2 /dev/mtdblock0 /mnt/uclibc
mint17-32 K1 # ls /mnt/uclibc
bin  boot  dev  etc  home  lib  media  mnt  proc  sbin  sys  tmp  usr  var
mint17-32 K1 # rm -rf uclibc/*
mint17-32 K1 # cp -a /mnt/uclibc/* uclibc
mint17-32 K1 # ls uclibc
bin  boot  dev  etc  home  lib  media  mnt  proc  sbin  sys  tmp  usr  var
mint17-32 K1 # file uclibc/bin/bash
uclibc/bin/bashERRORcannot open 'uclibc/bin/bash' (No such file or directory)
mint17-32 K1 # cd uclibc/bin
mint17-32 bin # ls -al bash
lscannot access bashNo such file or directory
mint17
-32 bin # ln -s busybox bash
mint17-32 bin # ls -al bash
lrwxrwxrwx 1 root root 7 May 11 10:03 bash -> busybox
mint17
-32 bin # cd ../..
mint17-32 K1 # file uclibc/bin/bash
uclibc/bin/bashsymbolic link to 'busybox' 
mint17-32 K1 # file uclibc/bin/busybox
uclibc/bin/busyboxELF 32-bit LSB  executableARMEABI4 version 1 (SYSV), dynamically linked (uses shared libs), stripped
mint17
-32 K1 # uclibc/bin/bash
/lib/ld-uClibc.so.0No such file or directory
mint17
-32 K1 # chroot uclibc
chrootfailed to run command '/bin/bash'No such file or directory
mint17
-32 K1 # file /mnt/lenny/bin/bash
/mnt/lenny/bin/bashELF 32-bit LSB  executableARMEABI4 version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.14stripped
mint17
-32 K1 # /mnt/lenny/bin/bash
/lib/ld-linux.so.3No such file or directory
mint17
-32 K1 # chroot uclibc
chrootfailed to run command '/bin/bash'No such file or directory
mint17
-32 K1 # chroot /mnt/lenny
mint17-32:/# gcc -v
Using built-in specs.
Targetarm-linux-gnueabi
Configured with
: ../src/configure ---with-pkgversion='Debian 4.3.2-1.1' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --disable-libssp --disable-sjlj-exceptions --enable-checking=release --build=arm-linux-gnueabi --host=arm-linux-gnueabi --target=arm-linux-gnueabi
Thread modelposix
gcc version 4.3.2 
(Debian 4.3.2-1.1
mint17-32:/
The error messages above show that the arm-uclinux rootfs is looking for different libs than the arm-debian lenny rootfs. That lenny.ext3 was built using instructions provided by twobob. The gumstix arm-uclibc rootfs image was from here. It has been quite awhile since I mounted a jffs2 image, so it took some googling. What would we do without Google?

I have been looking for arm-debian-woody (no success so far) to try using for building K1 apps.

I can only do a build in folders (or loop mounts) that I can chroot into, and no luck with that uclibc rootfs so far.

EDIT: I can chroot into this one now. I forgot to copy arm-qemu-static to /usr/bin. It works after doing that. I can also chroot into debian lenny, but all those other uclibc-based images I cannot chroot into (even though they contain /usr/bin/arm-qemu-static). However, this chroot has no network access, and it has no ipkg or opkg (but it does have dpkg), and the gumstix apps (like gcc) are in .ipk packages, so need manual unpacking and installing.

Last edited by geekmaster; 05-12-2016 at 12:45 AM.
geekmaster is offline   Reply With Quote