This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Creating a Root File System for Linux on OMAP35x

Other Parts Discussed in Thread: ASH

Hi All,

I have been trying to following this tutorial Creating a Root File System for Linux on OMAP35x located here. Everything was going to plan until I got to the section titled "Configure the New Target Root File System"

My target directory is empty after executing the install command 

make CONFIG_PREFIX=/home/$USER/target install

I don't get the following directory in target. In fact there is nothing in there

drwxr-xr-x 2 root root 4096 Nov 21 10:20 bin
lrwxrwxrwx 1 root root 11 Nov 21 10:20 linuxrc -> bin/busybox
drwxr-xr-x 2 root root 4096 Nov 21 10:20 sbin
drwxr-xr-x 4 root root 4096 Nov 21 10:20 usr

Please advise what can be done here. 

 
  • Did you get any error while building busybox ?
    Can you post the log when you did "make" and "make CONFIG_PREFIX=/home/$USER/target install" ?
  • Hi Titus,

    Thanks for your response to my question. Please find below information requested.

    1) Did you get any error while building busybox ? Not that I can pick on

    root@genesis:/home/onio/build/busybox-1.2.2.1# make
    HOSTLINK scripts/usage
    /home/onio/build/busybox-1.2.2.1/scripts/usage.c: In function ‘main’:
    /home/onio/build/busybox-1.2.2.1/scripts/usage.c:12:2: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
    write(1, usage_messages, sizeof(usage_messages));
    ^
    GEN .depend
    CC applets/applets.o
    /home/onio/build/busybox-1.2.2.1/applets/applets.c:21:2: warning: #warning Static linking against glibc produces buggy executables [-Wcpp]

    /* other entries removed for brevity */

    libraries from the glibc version used for linking
    /home/onio/build/busybox-1.2.2.1/libbb/libbb.a(xconnect.o): In function `bb_lookup_port':
    xconnect.c:(.text.bb_lookup_port+0x78): warning: Using 'getservbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    /home/onio/build/busybox-1.2.2.1/libpwdgrp/libpwdgrp.a(getgrnam.o): In function `getgrnam':
    pwd_grp.c:(.text.getgrnam+0x18): warning: Using 'getgrnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    STRIP busybox
    DOC busybox.pod
    DOC BusyBox.txt
    DOC BusyBox.1
    DOC BusyBox.html
    root@genesis:/home/onio/build/busybox-1.2.2.1#

    ########################

    2) Can you post the log when you did "make" and "make CONFIG_PREFIX=/home/$USER/target install" ?

    root@genesis:/home/onio/build/busybox-1.2.2.1# make CONFIG_PREFIX=/home/onio/target install
    ./_install/bin/ash -> busybox
    ./_install/bin/cat -> busybox
    ./_install/bin/chmod -> busybox
    ./_install/bin/cp -> busybox
    ./_install/bin/dmesg -> busybox
    ./_install/bin/echo -> busybox
    ./_install/bin/egrep -> busybox
    ./_install/bin/false -> busybox
    ./_install/bin/fgrep -> busybox
    ./_install/bin/grep -> busybox
    ./_install/bin/hostname -> busybox
    ./_install/bin/kill -> busybox
    ./_install/bin/ln -> busybox
    ./_install/bin/login -> busybox
    ./_install/bin/ls -> busybox
    ./_install/bin/mkdir -> busybox
    ./_install/bin/mknod -> busybox
    ./_install/bin/more -> busybox
    ./_install/bin/mount -> busybox
    ./_install/bin/mv -> busybox
    ./_install/bin/pidof -> busybox
    ./_install/bin/ping -> busybox
    ./_install/bin/ps -> busybox
    ./_install/bin/pwd -> busybox
    ./_install/bin/rm -> busybox
    ./_install/bin/sed -> busybox
    ./_install/bin/sync -> busybox
    ./_install/bin/touch -> busybox
    ./_install/bin/true -> busybox
    ./_install/bin/umount -> busybox
    ./_install/bin/uname -> busybox
    ./_install/bin/vi -> busybox
    ./_install/linuxrc -> bin/busybox
    ./_install/sbin/getty -> ../bin/busybox
    ./_install/sbin/halt -> ../bin/busybox
    ./_install/sbin/ifconfig -> ../bin/busybox
    ./_install/sbin/init -> ../bin/busybox
    ./_install/sbin/insmod -> ../bin/busybox
    ./_install/sbin/klogd -> ../bin/busybox
    ./_install/sbin/lsmod -> ../bin/busybox
    ./_install/sbin/mdev -> ../bin/busybox
    ./_install/sbin/mkswap -> ../bin/busybox
    ./_install/sbin/modprobe -> ../bin/busybox
    ./_install/sbin/poweroff -> ../bin/busybox
    ./_install/sbin/reboot -> ../bin/busybox
    ./_install/sbin/rmmod -> ../bin/busybox
    ./_install/sbin/start-stop-daemon -> ../bin/busybox
    ./_install/sbin/swapoff -> ../bin/busybox
    ./_install/sbin/swapon -> ../bin/busybox
    ./_install/sbin/syslogd -> ../bin/busybox
    ./_install/usr/bin/[ -> ../../bin/busybox
    ./_install/usr/bin/[[ -> ../../bin/busybox
    ./_install/usr/bin/awk -> ../../bin/busybox
    ./_install/usr/bin/basename -> ../../bin/busybox
    ./_install/usr/bin/clear -> ../../bin/busybox
    ./_install/usr/bin/cut -> ../../bin/busybox
    ./_install/usr/bin/find -> ../../bin/busybox
    ./_install/usr/bin/head -> ../../bin/busybox
    ./_install/usr/bin/hostid -> ../../bin/busybox
    ./_install/usr/bin/killall -> ../../bin/busybox
    ./_install/usr/bin/mesg -> ../../bin/busybox
    ./_install/usr/bin/mkfifo -> ../../bin/busybox
    ./_install/usr/bin/reset -> ../../bin/busybox
    ./_install/usr/bin/tail -> ../../bin/busybox
    ./_install/usr/bin/telnet -> ../../bin/busybox
    ./_install/usr/bin/test -> ../../bin/busybox
    ./_install/usr/bin/yes -> ../../bin/busybox
    ./_install/usr/sbin/telnetd -> ../../bin/busybox


    --------------------------------------------------
    You will probably need to make your busybox binary
    setuid root to ensure all configured applets will
    work properly.
    --------------------------------------------------

    root@genesis:/home/onio/build/busybox-1.2.2.1#
  • Can you try to see this folder "_install in the following location ?
    "/home/onio/build/busybox-1.2.2.1/_install"

    It seems, binaries get installed in the busybox current location itself named "install" or "_install"
    Can you please check ?

    Also provide the screen shot of the busybox folder ( root@genesis:/home/onio/build/busybox-1.2.2.1# ls ).
  • Hi Titus,

    As requested, please find below

    Can you try to see this folder "_install in the following location ?

    "/home/onio/build/busybox-1.2.2.1/_install" Yes

    It seems, binaries get installed in the busybox current location itself named "install" or "_install"

    Can you please check ?

    root@genesis:/home/onio/build/busybox-1.2.2.1/_install# ls

    bin  linuxrc  sbin  usr

    Also provide the screen shot of the busybox folder ( root@genesis:/home/onio/build/busybox-1.2.2.1# ls ).

    Thanks

  • It looks like, all the compiled binaries has been installed in "_install" folder, so you can take all the binary from that folder.
    Then proceed with next step. (Configure the New Target Root File System)
  • Hi Titus,
    Sorry for delay in responding. Yes I can move on from here.

    Regards
  • Thanks for your update, please let me know if you have problem.