Search

Technical Discussion Group Forum

This forum is provided for user discussion. While Beacon EmbeddedWorks support staff and engineers participate, Beacon EmbeddedWorks does not guarantee the accuracy of all information within in the Technical Discussion Group (TDG).

The "Articles" forums provide brief Articles written by Beacon EmbeddedWorks engineers that address the most frequently asked technical questions.

To receive email notifications when updates are posted for a Beacon EmbeddedWorks product download, please subscribe to the TDG Forum of interest.

TDG Forum

PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 05 Apr 2005 11:37 AM by  tozyagcilar
problem with console device (symbolic link missing?)
 7 Replies
Sort:
You are not authorized to post a reply.
Author Messages
JadePhoenix
New Member
New Member
Posts:


--
12 Jul 2004 07:34 AM
    Greetings!

    i've just started with LH79520 eval board and managed to build a kernel+userland using Lineo BDK+logic pd build scripts.

    Host: Fedora 2 Core (2.6.x Linux)
    Running TFTP and NFS server

    I downloaded the vmlinux image using TFTP and NFS and start it.
    It mounts NFS root system but then fails:

    Quote:

    losh> load elf /tftp/198.120.75.6:/vmlinux
    loading from /tftp/198.120.75.6:/vmlinux:
    F.....
    elf file type : 0x0002
    machine type: 0028 version: 1
    prog start addr : 0x40100000
    num prog headers: 2
    num sect headers: 9
    offset : 0x00008000 disk length: 0x00097314 mem len: 0x00097314
    phyaddr: 0x40100000 vaddr : 0x40100000 dl addr: 0x200c0000
    ignoring rest of file... 7063 bytes. done
    running md5sum on the _loaded_ portion of the file:
    c21b95ccb20455b7c0000 len: 00097314
    losh> exec 0x40100000 - ip=198.120.75.7 root=nfs nfsroot=198.120.75.6:/tftpboot/
    198.120.75.7
    kernel cmdline: 'ip=198.120.75.7 root=nfs nfsroot=198.120.75.6:/tftpboot/198.120
    .75.7' at 200c0100
    Uncompressing Linux..............................................
    done, booting the kernel.
    Linux version 2.4.17-rmk2-lineo5 (root@KA-WL-ARMDEV) (gcc version 2.95.3 2001031
    5 (release)) #3 Fri Jul 9 11:58:06 UTC 2004
    Processor: ARM ARM720T revision 3
    Architecture: LogicPD LH79520 Card Engine
    On node 0 totalpages: 8192
    zone(0): 8192 pages.
    zone(1): 0 pages.
    zone(2): 0 pages.
    Kernel command line: console=ttyAM1,115200 ip=198.120.75.7 root=nfs nfsroot=198.
    120.75.6:/tftpboot/198.120.75.7
    setup_timer(): timerLoad=32256
    Console: colour dummy device 80x30
    Calibrating delay loop... 25.70 BogoMIPS
    Memory: 32MB = 32MB total
    Memory: 14288KB available (1204K code, 252K data, 76K init)
    Dentry-cache hash table entries: 4096 (order: 3, 32768 bytes)
    Inode-cache hash table entries: 2048 (order: 2, 16384 byteries: 1024 (order: 0,
    4096 bytes)
    Page-cache hash table entries: 8192 (order: 3, 32768 bytes)
    POSIX conformance testing by UNIFIX
    Linux NET4.0 for Linux 2.4
    Based upon Swansea University Computer Society NET3.039
    Initializing RT netlink socket
    Starting kswapd
    ttyAM0 at MEM 0xfffc0000 (irq = 23) is a AMBA PrimeCell PL011
    ttyAM1 at MEM 0xfffc1000 (irq = 24) is a AMBA PrimeCell PL011
    ttyAM2 at MEM 0xfffc2000 (irq = 25) is a AMBA PrimeCell PL011
    Console: switching to colour frame buffer device 30x40
    LH79520 Watchdog Timer: timer margin 60 sec
    block: 64 slots per queue, batch=16
    RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize
    hd: no drives specified - use hd=cyl,head,sectors on kernel command line
    hd?: check_status: status=0xd0 { Busy DriveReady SeekComplete }
    hda: 183MB, CHS=734/16/32
    Partition check:
    hda:hda: check_status: status=0xd0 { Busy DriveReady SeekComplete }
    hda: check_status: status=0xd0 { Busy DriveReady SeekComplete }
    hda1 hda2
    eth0: SMC91C11xFD(rev:1) at 0xf4800000 IRQ:4 DMA:0 (16-bit) MEM:8192b NOWAIT:1
    eth0: ADDR: 00:08:ee:00:50:74
    NET4: Linux TCP/IP 1.0 for NET4.0
    IP Protocols: ICMP, UDP, TCP
    IP: routing cache hash table of 512 buckets, 4Kbytes
    TCP: Hash tables configured (established 2048 bind 2048)
    IP-Config: Guessing netmask 255.255.255.0
    IP-Config: Complete:
    device=eth0, addr=198.120.75.7, mask=255.255.255.0, gw=255.255.255.255,
    host=198.120.75.7, domain=, nis-domain=(none),
    bootserver=255.255.255.255, rootserver=198.120.75.6, rootpath=
    NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
    NetWinder Floating Point Emulator V0.95 (c) 1998-1999 Rebel.com
    RAMDISK: Couldn't find valid RAM disk image starting at 0.
    Freeing initrd memory: 16384K
    Looking up port of RPC 100003/2 on 198.120.75.6
    Looking up port of RPC 100005/1 on 198.120.75.6
    VFS: Mounted root (nfs filesystem).
    Freeing init memory: 76K
    Warning: unable to open an initial console


    I googled around and found somewhere this error msg means that /dev/console isnt symbolically linked to correct device file.
    I then did

    Quote:

    [root@KA-WL-ARMDEV dev]# ln -s ttyAM0 console
    [root@KA-WL-ARMDEV dev]# ls
    7seg fd gio27 mtdb3 mtdc6 sio0 sio3 sio7 stdin ttyAM0 vcsa
    console gio24 mtdb0 mtdc0 pwm0 sio1 sio4 sio8 stdout ttyAM1
    core gio25 mtdb1 mtdc2 pwm1 sio10 sio5 sio9 touchscreen ttyAM2
    eeprom gio26 mtdb2 mtdc4 ram sio2 sio6 stderr ts vcs


    Now it boots but at prompt it hangs some time (several minutes)
    After pressing keys the following appears:

    Quote:

    getty: ioctl() TIOCSPGRP call failed: Inappr
    198.120.75.7 login:


    I can finally log in and it hangs again.

    Quote:

    sh: can't access tty; job control turned off


    After some time the hanging is gone and normal work is resumed.

    What went wrong in the build process?
    I followed the readme files and some lpd script "fixes" from forum.
    Why arent the symlinks to console not created during deploy?
    Is incorrect tty setup causing the hangs?

    Thanks in advance.

    Best regards
    JadePhoenix
    New Member
    New Member
    Posts:


    --
    14 Jul 2004 07:40 AM
    Hello again...

    i tracked it down the specific package:

    Quote:

    bash# make -f Makefile.bdk deploy
    sh scripts/extract.sh
    Processing package kernel...
    Processing package glibc...
    Processing package elvis_tiny...
    Processing package iproute2...
    Processing package ext2fs...
    Processing package libz...
    Processing package libstdcpp...
    tar: ./usr/lib/libstdc**-3-libc6.1-2-2.10.0.so: Not found in archive
    tar: Error exit delayed from previous errors
    Processing package ncurses...
    Processing package netkit_ftp...
    Processing package flex...
    Processing package ash...
    Processing package tinylogin...
    tar: .(4755,root,root): Not found in archive
    tar: Error exit delayed from previous errors
    Processing package libjpeg...
    Processing package qte...
    Processing package qpe...
    Processing package konqembedded...
    Processing package tcp_wrappers...
    Processing package portmap...
    execute chmod 755 ./etc/rc.d/init.d/S23portmap ; chown root.root ./etc/rc.d/init
    .d/S23portmap ;
    Processing package Device_Files...
    tar: ./dev/zero: Not found in archive
    tar: ./dev/xdb8: Not found in archive

    ... long list of "Not found in archive" omitted for brevity ...

    tar: ./dev/dsp1: Not found in archive
    tar: ./dev/dsp: Not found in archive
    tar: ./dev/console: Not found in archive
    tar: ./dev/audio3: Not found in archive
    tar: ./dev/audio2: Not found in archive
    tar: ./dev/audio1: Not found in archive
    tar: ./dev/audio: Not found in archive
    tar: ./dev/atibm: Not found in archive
    tar: Error exit delayed from previous errors
    Processing package grep...
    Processing package skellinux...
    Processing package util_linux...
    Processing package busybox...
    chmod: ;: No such file or directory
    chmod: chown: No such file or directory
    chmod: root.utmp: No such file or directory
    chmod: ;: No such file or directory
    tar: ./usr/bin/[: Not found in archive
    tar: Error exit delayed from previous errors
    execute chmod 644 ./var/run/utmp ; chown root.utmp ./var/run/utmp ;
    Processing package default_passwd...
    Processing package terminfo...
    Processing package strace...
    Processing package netkit_base...
    Processing package netkit_telnet...
    Processing package modutils...
    Processing package blob...
    Processing package dhcpcd...
    Processing package madplay...
    Processing package pwm_examples...
    /bdk/lh79520/emb-bin/post-fs-build /bdk/lh79520
    post-fs-build: device nodes successfully created in target root filesystem
    /opt/Embedix/tools/bin/arm-linux-nm: /bdk/lh79520/src/linux/vmlinux: no symbols
    post-fs-build: depmod successfully run on target root filesystem
    post-fs-build: symlinks successfully created on target root filesystem
    echo "root filesystem done..."
    root filesystem done...
    sh scripts/deploy.sh
    scripts/deploy.sh: noinitrd: command not found
    Welcome to the Sharp LH79520 deployment script



    I found that package 'Device_files.tar.gz' in /opt/Embedix/bdk/lh.../build/tarfiles

    The input (devices in 'staging area') were created by a script/package named '../rpmdir/BUILD/MAKEDEV-2.3'.

    The tar file contains some valid 'devices' with raw name './dev/stdxxx' and so on.
    Almost all devices which are listed by script as 'missing' are shown by 'tar tf Device_files.tar' with './dev/console-' (console device).
    They do not get created in /dev (as reported by script).

    Whats the point here?

    Regards
    JadePhoenix
    New Member
    New Member
    Posts:


    --
    15 Jul 2004 09:10 AM
    Rehi,

    i traced the missing devices (/dev/console ...) problem further:

    Quote:

    ....
    Executing: %install
    + umask 022
    + cd /bdk/lh79520/build/rpmdir/BUILD
    + cd MAKEDEV-2.3
    + rm -rf /bdk/lh79520/tmp/glibc
    + mkdir -p /bdk/lh79520/tmp/glibc/dev
    + mkdir -p /bdk/lh79520/tmp/glibc/usr/man/man8
    + make ROOT=/bdk/lh79520/tmp/glibc install
    make[1]: Entering directory `/bdk/lh79520/build/rpmdir/BUILD/MAKEDEV-2.3'
    install -m 755 MAKEDEV /bdk/lh79520/tmp/glibc/dev
    install -m 644 MAKEDEV.man /bdk/lh79520/tmp/glibc/usr/man/man8/MAKEDEV.8
    make[1]: Leaving directory `/bdk/lh79520/build/rpmdir/BUILD/MAKEDEV-2.3'
    + cd /bdk/lh79520/tmp/glibc/dev
    + ARCH=arm
    + export ARCH
    + ./MAKEDEV generic-arm
    ./MAKEDEV: warning: can't read /proc/devices
    ./MAKEDEV: warning: can't read /proc/devices
    chown: mem-: Value too large for defined data type
    chown: kmem-: Value too large for defined data type
    chown: null-: Value too large for defined data type
    chown: port-: Value too large for defined data type
    chown: zero-: Value too large for defined data type
    chown: full-: Value too large for defined data type
    chown: random-: Value too large for defined data type
    chown: urandom-: Value too large for defined data type
    chown: tty-: Value too large for defined data type
    ./MAKEDEV: warning: can't read /proc/devices
    chown: ram0-: Value too large for defined data type
    chown: ram1-: Value too large for defined data type
    chown: ram2-: Value too large for defined data type
    ....

    chown: fb6current-: Value too large for defined data type
    chown: fb6autodetect-: Value too large for defined data type
    chown: fb7-: Value too large for defined data type
    chown: fb7current-: Value too large for defined data type
    chown: fb7autodetect-: Value too large for defined data type
    + find /bdk/lh79520/tmp/glibc/ -type f
    + grep -E .*[0-9]($|x)
    + xargs file
    + grep troff
    + cut -d: -f1
    + xargs bzip2 -9
    find: /bdk/lh79520/tmp/glibc/dev/ptyy3-: Value too large for defined data type
    find: /bdk/lh79520/tmp/glibc/dev/tty34-: Value too large for defined data type
    find: /bdk/lh79520/tmp/glibc/dev/ttyq3-: Value too large for defined data type
    find: /bdk/lh79520/tmp/glibc/dev/st0a-: Value too large for defined data type
    ....

    find: /bdk/lh79520/tmp/glibc/dev/ttybd-: Value too large for defined data type
    find: /bdk/lh79520/tmp/glibc/dev/ptydc-: Value too large for defined data type
    find: /bdk/lh79520/tmp/glibc/dev/ttyx7-: Value too large for defined data type
    find: /bdk/lh79520/tmp/glibc/dev/fd1h360-: Value too large for defined data type
    find: /bdk/lh79520/tmp/glibc/dev/fd1u1440-: Value too large for defined data type
    + file /bdk/lh79520/tmp/glibc/dev/MAKEDEV
    + grep -q not stripped
    + rm -f /bdk/lh79520/tmp/glibc/dev/MAKEDEV
    + exit 0
    Processing files: MAKEDEV
    Prereqs: /bin/sh
    ...


    from MAKEDEV 2.3 script:

    Quote:


    ...
    #---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#

    makedev () { # usage: makedev name [bcu] major minor owner group mode
    if [ "$opt_v" ]
    then if [ "$opt_d" ]
    then echo "delete $1"
    else echo "create $1 $2 $3 $4 $5:$6 $7"
    fi
    fi
    if [ ! "$opt_n" ]
    then if [ "$opt_d" ]
    then
    rm -f $1
    else
    rm -f $1-
    mknod $1- $2 $3 $4 &&
    chown $5:$6 $1- &&
    chmod $7 $1- &&
    mv $1- $1
    fi
    fi
    }



    The offending line is: "chown $5:$6 $1- &&"
    Thats why the command chain (chmod, mv - .) stops there.
    If i manually call the command "chmod root:tty console-" i get the dreaded "Value too large for defined data type " error.

    After a bit of google a found that this error is due to large file system support stuff.
    It seems that the BDK supplied "chown" is not compatible to the underlying host filesystem?

    Host: Fedora Core 2

    Regards
    simon
    New Member
    New Member
    Posts:


    --
    15 Jul 2004 06:15 PM
    Hi,

    I also am getting the exact problem. My system is SuSE 9.1. My co-worker is running Debian and he did not have any problems what so ever.

    Has there been any work arounds found yet?

    If i do a make -f Makefile deploy using his correctly generated file I get all my devices in /dev (including /dev/console and /dev/fb0 etc) but i then get other errors that he does not get. We have installed using the same commands. The only difference is our systems.

    Cheers,
    Simon
    JadePhoenix
    New Member
    New Member
    Posts:


    --
    16 Jul 2004 02:07 AM
    Hello!

    It seems there are more of the supplied "host tools" affected.

    I modified the MAKEDEV script to collect more info

    Quote:

    make[1]: Leaving directory `/bdk/lh79520/build/rpmdir/BUILD/MAKEDEV-2.3'
    + cd /bdk/lh79520/tmp/glibc/dev
    + ARCH=arm
    + export ARCH
    + ./MAKEDEV generic-arm
    ./MAKEDEV: warning: can't read /proc/devices
    ./MAKEDEV: warning: can't read /proc/devices
    create mem c 1 1 root:kmem 0640
    create kmem c 1 2 root:kmem 0640
    create null c 1 3 root:root 0666
    create port c 1 4 root:kmem 0640
    create zero c 1 5 root:root 0666
    create core -> /proc/kcore
    create full c 1 7 root:root 0666
    create random c 1 8 root:root 0444
    create urandom c 1 9 root:root 0444
    create tty c 5 0 root:tty 0666
    ./MAKEDEV: warning: can't read /proc/devices
    create ram0 b 1 0 root:disk 0660
    create ram1 b 1 1 root:disk 0660
    create ram2 b 1 2 root:disk 0660
    create ram3 b 1 3 root:disk 0660
    create ram4 b 1 4 root:disk 0660
    create ram5 b 1 5 root:disk 0660
    create ram6 b 1 6 root:disk 0660
    create ram7 b 1 7 root:disk 0660
    create ram8 b 1 8 root:disk 0660
    create ram9 b 1 9 root:disk 0660
    create ram10 b 1 10 root:disk 0660
    create ram11 b 1 11 root:disk 0660
    create ram12 b 1 12 root:disk 0660
    create ram13 b 1 13 root:disk 0660
    create ram14 b 1 14 root:disk 0660
    create ram15 b 1 15 root:disk 0660
    create ram16 b 1 16 root:disk 0660
    ./MAKEDEV: warning: can't read /proc/devices
    create loop0 b 7 0 root:disk 0660
    create loop1 b 7 1 root:disk 0660
    create loop2 b 7 2 root:disk 0660
    create loop3 b 7 3 root:disk 0660
    create loop4 b 7 4 root:disk 0660
    create loop5 b 7 5 root:disk 0660
    create loop6 b 7 6 root:disk 0660
    create loop7 b 7 7 root:disk 0660
    ./MAKEDEV: warning: can't read /proc/devices
    create fd -> /proc/self/fd
    create stdin -> fd/0
    create stdout -> fd/1
    create stderr -> fd/2
    ./MAKEDEV: warning: can't read /proc/devices
    create fd0 b 2 0 root:root 0660
    create fd0d360 b 2 4 root:root 0660
    create fd0h1200 b 2 8 root:root 0660
    ....

    create fd1u1920 b 2 101 root:root 0660
    create fd1u3200 b 2 105 root:root 0660
    create fd1u3520 b 2 109 root:root 0660
    create fd1u3840 b 2 113 root:root 0660
    create fd1u1840 b 2 117 root:root 0660
    create fd1u800 b 2 121 root:root 0660
    create fd1u1600 b 2 125 root:root 0660
    ./MAKEDEV: warning: can't read /proc/devices
    create hda b 3 0 root:disk 0660
    create hda1 b 3 1 root:disk 0660
    create hda2 b 3 2 root:disk 0660
    create hda3 b 3 3 root:disk 0660
    create hda4 b 3 4 root:disk 0660
    create hda5 b 3 5 root:disk 0660

    ...

    create hda19 b 3 19 root:disk 0660
    create hda20 b 3 20 root:disk 0660
    create hdb b 3 64 root:disk 0660
    create hdb1 b 3 65 root:disk 0660
    create hdb2 b 3 66 root:disk 0660
    ...

    create hdb18 b 3 82 root:disk 0660
    create hdb19 b 3 83 root:disk 0660
    create hdb20 b 3 84 root:disk 0660
    create hdc b 22 0 root:disk 0660
    create hdc1 b 22 1 root:disk 0660
    create hdc2 b 22 2 root:disk 0660
    ...

    create hdc18 b 22 18 root:disk 0660
    create hdc19 b 22 19 root:disk 0660
    create hdc20 b 22 20 root:disk 0660
    create hdd b 22 64 root:disk 0660
    create hdd1 b 22 65 root:disk 0660
    create hdd2 b 22 66 root:disk 0660
    ...

    create hdd20 b 22 84 root:disk 0660
    ./MAKEDEV: warning: can't read /proc/devices
    create xda b 13 0 root:disk 0660
    create xda1 b 13 1 root:disk 0660
    create xda2 b 13 2 root:disk 0660
    create xda3 b 13 3 root:disk 0660
    create xda4 b 13 4 root:disk 0660
    create xda5 b 13 5 root:disk 0660
    create xda6 b 13 6 root:disk 0660
    create xda7 b 13 7 root:disk 0660
    create xda8 b 13 8 root:disk 0660
    create xdb b 13 64 root:disk 0660
    create xdb1 b 13 65 root:disk 0660
    create xdb2 b 13 66 root:disk 0660
    create xdb3 b 13 67 root:disk 0660
    create xdb4 b 13 68 root:disk 0660
    create xdb5 b 13 69 root:disk 0660
    create xdb6 b 13 70 root:disk 0660
    create xdb7 b 13 71 root:disk 0660
    create xdb8 b 13 72 root:disk 0660
    ./MAKEDEV: warning: can't read /proc/devices
    create sda b 8 0 root:disk 0660
    create sda1 b 8 1 root:disk 0660
    create sda2 b 8 2 root:disk 0660

    ...

    create sda12 b 8 12 root:disk 0660
    create sda13 b 8 13 root:disk 0660
    create sda14 b 8 14 root:disk 0660
    create sda15 b 8 15 root:disk 0660
    create sdb b 8 16 root:disk 0660
    create sdb1 b 8 17 root:disk 0660
    create sdb2 b 8 18 root:disk 0660
    ...

    create sdb14 b 8 30 root:disk 0660
    create sdb15 b 8 31 root:disk 0660
    create sdc b 8 32 root:disk 0660
    create sdc1 b 8 33 root:disk 0660
    create sdc2 b 8 34 root:disk 0660
    ...

    create sdc15 b 8 47 root:disk 0660
    create sdd b 8 48 root:disk 0660
    create sdd1 b 8 49 root:disk 0660
    create sdd2 b 8 50 root:disk 0660
    ...

    create sdd15 b 8 63 root:disk 0660
    ./MAKEDEV: warning: can't read /proc/devices
    create scd0 b 11 0 root:disk 0660
    create scd1 b 11 1 root:disk 0660
    ./MAKEDEV: warning: can't read /proc/devices
    create st0 c 9 0 root:disk 0660
    create nst0 c 9 128 root:disk 0660
    create st0l c 9 32 root:disk 0660
    create nst0l c 9 160 root:disk 0660
    create st0m c 9 64 root:disk 0660
    create nst0m c 9 192 root:disk 0660
    create st0a c 9 96 root:disk 0660
    create nst0a c 9 224 root:disk 0660
    create st1 c 9 1 root:disk 0660
    create nst1 c 9 129 root:disk 0660
    create st1l c 9 33 root:disk 0660
    create nst1l c 9 161 root:disk 0660
    create st1m c 9 65 root:disk 0660
    create nst1m c 9 193 root:disk 0660
    create st1a c 9 97 root:disk 0660
    create nst1a c 9 225 root:disk 0660
    ./MAKEDEV: warning: can't read /proc/devices
    ./MAKEDEV: warning: can't read /proc/devices
    create ptyp0 c 2 0 root:tty 0666
    create ttyp0 c 3 0 root:tty 0666
    ...

    create ttyte c 3 78 root:tty 0666
    create ptytf c 2 79 root:tty 0666
    create ttytf c 3 79 root:tty 0666
    create ptyu0 c 2 80 root:tty 0666
    create ttyu0 c 3 80 root:tty 0666

    ...
    create ttyac c 3 188 root:tty 0666
    create ptyad c 2 189 root:tty 0666
    create ttyad c 3 189 root:tty 0666
    ./MAKEDEV: Can't reopen pipe to command substitution (fd 5): No child processes
    create ptyae c 2 root tty:0666
    mknod: invalid minor device number `root'
    create ttyae c 3 190 root:tty 0666
    create ptyaf c 2 191 root:tty 0666

    ....

    create ttyee c 3 254 root:tty 0666
    create ptyef c 2 255 root:tty 0666
    create ttyef c 3 255 root:tty 0666
    create ptmx c 5 2 root:tty 0666
    ./MAKEDEV: warning: can't read /proc/devices
    ./MAKEDEV: warning: can't read /proc/devices
    create tty0 c 4 0 root:tty 0622
    create console c 5 1 root:tty 0622
    ./MAKEDEV: device: unknown major number for vcs
    create vcs -> vcs0
    create vcsa -> vcsa0
    create tty1 c 4 1 root:tty 0666
    create tty2 c 4 2 root:tty 0666
    create tty3 c 4 3 root:tty 0666
    create tty4 c 4 4 root:tty 0666
    create tty5 c 4 5 root:tty 0666
    create tty6 c 4 6 root:tty 0666
    create tty7 c 4 7 root:tty 0666
    create tty8 c 4 8 root:tty 0666
    create tty9 c 4 9 root:tty 0666
    create tty10 c 4 10 root:tty 0666
    create tty11 c 4 11 root:tty 0666
    ....

    create tty62 c 4 62 root:tty 0666
    create tty63 c 4 63 root:tty 0666
    ./MAKEDEV: warning: can't read /proc/devices
    create ttyS0 c 4 64 root:uucp 0660
    create ttyS1 c 4 65 root:uucp 0660
    create ttyS2 c 4 66 root:uucp 0660
    create ttyS3 c 4 67 root:uucp 0660
    ./MAKEDEV: warning: can't read /proc/devices
    create ttyLU0 c 204 0 root:tty 0666
    create ttyLU1 c 204 1 root:tty 0666
    ./MAKEDEV: warning: can't read /proc/devices
    create logibm c 10 0 root:root 0660
    create psaux c 10 1 root:root 0660
    create inportbm c 10 2 root:root 0660
    create atibm c 10 3 root:root 0660
    create jbm c 10 4 root:root 0660
    create usbmouse c 10 32 root:root 0660
    ./MAKEDEV: warning: can't read /proc/devices
    create lp0 c 6 0 root:lp 0660
    create lp1 c 6 1 root:lp 0660
    create lp2 c 6 2 root:lp 0660
    ./MAKEDEV: warning: can't read /proc/devices
    create par0 c 6 0 root:lp 0660
    create par1 c 6 1 root:lp 0660
    create par2 c 6 2 root:lp 0660
    ./MAKEDEV: warning: can't read /proc/devices
    create mixer c 14 0 root:root 0666
    create mixer1 c 14 16 root:root 0666
    create mixer2 c 14 32 root:root 0666
    create mixer3 c 14 48 root:root 0666
    create sequencer c 14 1 root:root 0666
    create midi00 c 14 2 root:root 0666
    create midi01 c 14 18 root:root 0666
    create midi02 c 14 34 root:root 0666
    create midi03 c 14 50 root:root 0666
    create dsp c 14 3 root:root 0666
    create dsp1 c 14 19 root:root 0666
    create dsp2 c 14 35 root:root 0666
    create dsp3 c 14 51 root:root 0666
    create audio c 14 4 root:root 0666
    create audio1 c 14 20 root:root 0666
    create audio2 c 14 36 root:root 0666
    create audio3 c 14 52 root:root 0666
    create sndstat c 14 6 root:root 0666
    create mpu401data c 31 0 root:root 0666
    create mpu401stat c 31 1 root:root 0666
    create midi0 c 35 0 root:root 0666
    create rmidi0 c 35 64 root:root 0666
    create smtpe0 c 35 128 root:root 0666
    create midi1 c 35 1 root:root 0666
    create rmidi1 c 35 65 root:root 0666
    create smtpe1 c 35 129 root:root 0666
    create midi2 c 35 2 root:root 0666
    create rmidi2 c 35 66 root:root 0666
    create smtpe2 c 35 130 root:root 0666
    create midi3 c 35 3 root:root 0666
    create rmidi3 c 35 67 root:root 0666
    create smtpe3 c 35 131 root:root 0666
    ./MAKEDEV: warning: can't read /proc/devices
    create fb0 c 29 0 root:tty 0622
    create fb0current c 29 0 root:tty 0622
    create fb0autodetect c 29 1 root:tty 0622
    create fb1 c 29 32 root:tty 0622
    create fb1current c 29 32 root:tty 0622
    create fb1autodetect c 29 33 root:tty 0622
    create fb2 c 29 64 root:tty 0622
    create fb2current c 29 64 root:tty 0622
    create fb2autodetect c 29 65 root:tty 0622
    create fb3 c 29 96 root:tty 0622
    create fb3current c 29 96 root:tty 0622
    create fb3autodetect c 29 97 root:tty 0622
    create fb4 c 29 128 root:tty 0622
    create fb4current c 29 128 root:tty 0622
    create fb4autodetect c 29 129 root:tty 0622
    create fb5 c 29 160 root:tty 0622
    create fb5current c 29 160 root:tty 0622
    create fb5autodetect c 29 161 root:tty 0622
    create fb6 c 29 192 root:tty 0622
    create fb6current c 29 192 root:tty 0622
    create fb6autodetect c 29 193 root:tty 0622
    create fb7 c 29 224 root:tty 0622
    create fb7current c 29 224 root:tty 0622
    create fb7autodetect c 29 225 root:tty 0622


    "find" has same problems

    Quote:

    + find /bdk/lh79520/tmp/glibc/ -type f
    + grep -E .*[0-9]($|x)
    + xargs file
    + grep troff
    + cut -d: -f1
    + xargs bzip2 -9
    find: /bdk/lh79520/tmp/glibc/dev/ptys5: Value too large for defined data type
    find: /bdk/lh79520/tmp/glibc/dev/sda1: Value too large for defined data type
    find: /bdk/lh79520/tmp/glibc/dev/ttya7: Value too large for defined data type
    find: /bdk/lh79520/tmp/glibc/dev/hdb8: Value too large for defined data type
    find: /bdk/lh79520/tmp/glibc/dev/ptyp9: Value too large for defined data type
    find: /bdk/lh79520/tmp/glibc/dev/ttyq8: Value too large for defined data type



    From what i've collected so far it might be due to my host systems partitions are formatted with EXT3 filesystem and kernel is 2.6.6.x (FC2).

    The file entries might have incompatible data types (for instance the TIMESTAMP is 64 bit) which are not understood by older (libc/glibc) compiled programs (thats why the overflow occurs).

    I tried to replace the supplied tools (which reside in /opt/Embedix/bin ... /lib) with the host ones but failed due to incompatible linker signature on dynamic libraries (on windows its called "dll hell" )

    I tried to symlink the affected host tools from /bin to /opt/Embedix/bin (which gets later chrooted to /bin) but it failed with "Too many levels of symbolic links".

    Did i mention that the /chroot approach of the lineo BDK... su**
    JadePhoenix
    New Member
    New Member
    Posts:


    --
    16 Jul 2004 05:13 AM
    Hello again...

    Well i replaced the supplied host tools with the original host tools, e.g.:

    Quote:

    mv /opt/Embedix/bin /opt/Embedix/bin-orig
    ....
    some more (lib, etc, usr, ...)


    and

    Quote:

    cp -r /bin /opt/Embedix/bin
    ...


    The i tried the whole build process again - which looked promising.
    Ncurses needs "mawk" (which isnt supplied on FC2 system) so a did a symlink to gawk.

    Most of the stuff did build but then i failed: RPM
    At the time of making RPM's, the '/opt/Embedix/tools/bin/rpm' version is invoked which chokes badly because of dynamic linker issues (incompatible GLIBC), (i moved (opt/Embedix/lib to /lib-orig before replacing with my host's one)

    Its the dreaded dll hell here. The script commands need the newest GLIBC (2.3) in place while some special tools (like the rpm command) need the old /opt/Embedix/lib tree structure.

    With ldd and strace i could trace some problems...

    I wrote a wrapper test script for the tools rpm invokation like

    Quote:

    #!/bin/sh
    exec /lib-orig/ld-linux.so.2 --library-path /lib-orig /tools/bin/rpm-orig -rcfile /bdk/lh79520/build/rpmdir/rpmrc -bi --buildarch --short-circuit /bdk/lh79520/build/rpmdir/spec


    But it didnt work ... it segfaults somewhere.

    There must be a way to convince the tools to coexist together even with several (incompatible) versions of GLIBC together!
    I cant simply replace the tool's rpm with the host one because if incompatible command switch settings ... maybe its a special (cross compiled??) version.

    I now begin to understand the requirement for RH 7/8 ... but our host machine is P4 3.x GHz with HT cpu, SATA ... with all that nifty features not supported by older kernels.

    If i would have more time i would drop that dreaded embedix stuff and its dependencies and start using some stock (arm.linux) 2.x kernel... and newer toolchain.

    Regards
    JadePhoenix
    New Member
    New Member
    Posts:


    --
    20 Jul 2004 02:40 AM
    Ok i solved the problem ... steps are described here: http://www.logicpd.com/su.../viewtopic.php?p=701
    tozyagcilar
    New Member
    New Member
    Posts:


    --
    05 Apr 2005 11:37 AM
    Hey JadePhoenix,

    I hope you are still following this forum. I am using Fedora Core 3 and I am still having some problems. I dont quite get - from this forum - how you figured out that the incompatible files were related to chown, find and md5sum. I guess I am trying to understand your steps towards the solution so that I can solve my problem.

    Currently they(LogicPD people) came up with a patch (that includes your solutions), but this patch does not work well with FC3 (at least it did not in my case). I am sure all the neccessary libs are getting copied by the patch. I am still getting the "unable to initialize initial console" error.

    Any help is appreciated.

    Thanks.
    You are not authorized to post a reply.