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.

Problem in installing JPEG Viewer on DM355

i am installing JPEG viewer as per the steps mentioned at  http://wiki.davincidsp.com/index.php/JPEG_Viewer

I am stuck at the first  step of compiling libexif . Here is the log:

 

root@10.20.21.15:/opt/libexif-0.6.18# ./configure
./configure: line 1707: config.log: Read-only file system
cat: closing standard output: Read-only file system
cat: closing standard output: Read-only file system
./configure: line 1922: confdefs.h: Read-only file system
./configure: line 1927: confdefs.h: Read-only file system
./configure: line 1932: confdefs.h: Read-only file system
./configure: line 1937: confdefs.h: Read-only file system
./configure: line 1942: confdefs.h: Read-only file system
checking for a BSD-compatible install... ./configure: line 2164: conftest.one: Read-only file system
./configure: line 2165: conftest.two: Read-only file system
mkdir: cannot create directory `conftest.dir': Read-only file system
/bin/install: installing multiple files, but last argument, `/opt/libexif-0.6.18/conftest.dir' is not a directory
Try `/bin/install --help' for more information.
./install-sh -c
checking whether build environment is sane... ./configure: line 2213: conftest.file: Read-only file system
configure: error: ls -t appears to fail.  Make sure there is not a broken
alias in your environment
configure: error: newly created file is older than distributed files!
Check your system clock
cat: closing standard output: Read-only file system
sort: close failed: -: Read-only file system
cat: closing standard output: Read-only file system
sort: close failed: -: Read-only file system
root@10.20.21.15:/opt/libexif-0.6.18# ls
ABOUT-NLS    auto-m4        contrib                    libtool
AUTHORS      binary         depcomp                    ltmain.sh
COPYING      config.guess   doc                        m4m
ChangeLog    config.h       install-sh                 missing
INSTALL      config.h.in    libexif                    mkinstalldirs
Makefile     config.log     libexif-uninstalled.pc     po
Makefile.am  config.rpath   libexif-uninstalled.pc.in  stamp-h1
Makefile.in  config.status  libexif.pc                 test
NEWS         config.sub     libexif.pc.in
README       configure      libexif.spec
aclocal.m4   configure.ac   libexif.spec.in
root@10.20.21.15:/opt/libexif-0.6.18# chmod 777 configure
chmod: changing permissions of `configure': Read-only file system

 

How can I make the installation ? 

 

Thanks

 

  • Perhaps this might help, this is the boot log I get, I just noticed the line 'Read Only File System' . :

     

    Loading from NAND 1GiB 3,3V 8-bit, offset 0x400000
       Image Name:   Linux-2.6.10_mvl401
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    1585240 Bytes =  1.5 MB
       Load Address: 80008000
       Entry Point:  80008000
    ## Booting image at 80700000 ...
       Image Name:   Linux-2.6.10_mvl401
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    1585240 Bytes =  1.5 MB
       Load Address: 80008000
       Entry Point:  80008000
       Verifying Checksum ... OK
    OK

    Starting kernel ...

    Linux version 2.6.10_mvl401 (a0270758@gtmatrix) (gcc version 3.4.3 (MontaVista 3.4.3-25.0.104.0600975 2006-07-06)) #1 Wed Oct 17 15:44:12 EDT 2007
    CPU: ARM926EJ-Sid(wb) [41069265] revision 5 (ARMv5TEJ)
    CPU0: D VIVT write-back cache
    CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
    CPU0: D cache: 8192 bytes, associativity 4, 32 byte lines, 64 sets
    Machine: DaVinci DM355 EVM
    Memory policy: ECC disabled, Data cache writeback
    DM0350
    Built 1 zonelists
    Kernel command line: console=ttyS0,115200n8 noinitrd rw ip=10.20.21.15:10.20.21.12:10.20.1.1:255.255.0.0:::off root=/dev/nfs nfsroot=10.20.21.12:/home/dhd/wc
    PID hash table entries: 512 (order: 9, 8192 bytes)
    Console: colour dummy device 80x30
    Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
    Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
    Memory: 116MB = 116MB total
    Memory: 114176KB available (2762K code, 585K data, 164K init)
    Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
    CPU: Testing write buffer coherency: ok
    spawn_desched_task(00000000)
    desched cpu_callback 3/00000000
    ksoftirqd started up.
    desched cpu_callback 2/00000000
    desched thread 0 started up.
    NET: Registered protocol family 16
    Registering platform device 'serial8250.0'. Parent at platform
    Registering platform device 'nand_davinci.0'. Parent at platform
    Registering platform device 'dm9000.0'. Parent at platform
    Registering platform device 'mmc.0'. Parent at platform
    Registering platform device 'mmc.1'. Parent at platform
    DaVinci I2C DEBUG: 15:42:09 Oct 17 2007
    Registering platform device 'i2c'. Parent at platform
    SCSI subsystem initialized
    usbcore: registered new driver usbfs
    usbcore: registered new driver hub
    musb_hdrc: version 2.2a/db-0.4.8 [pio] [host] [debug=0]
    Registering platform device 'musb_hdrc'. Parent at platform
    musb_hdrc: USB Host mode controller at c7800000 using PIO, IRQ 12
    musb_hdrc musb_hdrc: new USB bus registered, assigned bus number 1
    hub 1-0:1.0: USB hub found
    hub 1-0:1.0: 1 port detected
    arch/arm/mach-davinci/spi_platform_init.c:dm355_spi_board_init:123 dm355_spi_board_init
    arch/arm/mach-davinci/spi_platform_init.c:dm355_spi_board_init:129 REG BOARD  ret 0
    Registering platform device 'dm_spi.0'. Parent at platform
    arch/arm/mach-davinci/spi_platform_init.c:dm355_spi_board_init:136 REGISTER DEVICE ret 0
    NetWinder Floating Point Emulator V0.97 (double precision)
    JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc.
    yaffs Oct 17 2007 15:41:45 Installing.
    Initializing Cryptographic API
    Registering platform device 'dm355fb.0'. Parent at platform
    Console: switching to colour frame buffer device 90x30
    watchdog: TI DaVinci Watchdog Timer: timer margin 64 sec
    Registering platform device 'davinci_pwm0.0'. Parent at platform
    Registering platform device 'davinci_pwm1.1'. Parent at platform
    Registering platform device 'davinci_pwm2.2'. Parent at platform
    Registering platform device 'davinci_pwm3.3'. Parent at platform
    Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
    Registering platform device 'serial8250'. Parent at platform
    ttyS0 at MMIO 0x1c20000 (irq = 40) is a 16550A
    ttyS1 at MMIO 0x1c20400 (irq = 41) is a 16550A
    ttyS2 at MMIO 0x1e06000 (irq = 14) is a 16550A
    io scheduler noop registered
    io scheduler anticipatory registered
    RAMDISK driver initialized: 1 RAM disks of 32768K size 1024 blocksize
    loop: loaded (max 8 devices)
    dm9000 Ethernet Driver
    eth0: dm9000 at c7862000,c7864002 IRQ 45 MAC: 00:0e:99:02:c4:1a
    i2c /dev entries driver
    Linux video capture interface: v1.00
    Registering platform device 'vpfe.1'. Parent at platform
    vpfe vpfe.1: DaVinci v4l2 capture driver V1.0 loaded
    ipipe major#: 253, minor# 0
    Registering platform device 'dm355_ipipe.2'. Parent at platform
    ipipe driver registered
    af major#: 252, minor# 0
    Registering platform device 'dm355_af.2'. Parent at platform
    aew major#: 251, minor# 0
    Registering platform device 'dm355_aew.2'. Parent at platform
    elevator: using anticipatory as default io scheduler
    at25xxA_spi_eeprom init
    nand_davinci nand_davinci.0: Using 4-bit hardware ECC
    NAND device: Manufacturer ID: 0x2c, Chip ID: 0xd3 (Micron NAND 1GiB 3,3V 8-bit)
    2 NAND chips detected
    nand_bbt: ECC error while reading bad block table
    nand_bbt: ECC error while reading bad block table
    Creating 5 MTD partitions on "nand_davinci.0":
    0x00000000-0x003c0000 : "bootloader"
    0x003c0000-0x00400000 : "params"
    0x00400000-0x00800000 : "kernel"
    0x00800000-0x20800000 : "filesystem1"
    0x20800000-0x80000000 : "filesystem2"
    nand_davinci nand_davinci.0: hardware revision: 2.3
    scan_boardinfo:<NULL>:-1067858964
     modias <NULL> irq 2000000 max_speed 65535 bus_num 0 chip_select 0 mode -1068867824
    drivers/spi/spi.cat25xxA_spi_eeprom device register Succeeded
    dm_spi.0: dm355 SPI Controller driver at 0xc7866000 (irq = 42)
    Initializing USB Mass Storage driver...
    usbcore: registered new driver usb-storage
    USB Mass Storage support registered.
    usbcore: registered new driver usbhid
    drivers/usb/input/hid-core.c: v2.0:USB HID core driver
    mice: PS/2 mouse device common for all mice
    mmc mmc.0: Supporting 4-bit mode
    mmc mmc.0: Using DMA mode
    mmc mmc.1: Supporting 4-bit mode
    mmc mmc.1: Using DMA mode
    Registering platform device 'davinci-audio.0'. Parent at platform
    NET: Registered protocol family 2
    IP: routing cache hash table of 512 buckets, 4Kbytes
    TCP: Hash tables configured (established 8192 bind 16384)
    Initializing XFRM netlink socket
    NET: Registered protocol family 1
    NET: Registered protocol family 10
    IPv6 over IPv4 tunneling driver
    NET: Registered protocol family 17
    eth0: link down
    IP-Config: Complete:
          device=eth0, addr=10.20.21.15, mask=255.255.0.0, gw=10.20.1.1,
         host=10.20.21.15, domain=, nis-domain=(none),
         bootserver=10.20.21.12, rootserver=10.20.21.12, rootpath=
    Looking up port of RPC 100003/2 on 10.20.21.12
    Looking up port of RPC 100005/1 on 10.20.21.12
    VFS: Mounted root (nfs filesystem).
    Freeing init memory: 164K
    eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
    INIT: version 2.85 booting
    Mounting a tmpfs over /dev...done.
    Creating initial device nodes...done.
    Activating swap...done.
    Remounting root filesystem...done.
    Calculating module dependencies
    WARNING: Couldn't open directory /lib/modules/2.6.10_mvl401: No such file or directory
    FATAL: Could not open /lib/modules/2.6.10_mvl401/modules.dep.temp for writing: No such file or directory
    Loading modules:
    Checking all file systems: fsck
    fsck 1.35 (28-Feb-2004)
    Mounting local filesystems: mount nothing was mounted
    Cleaning: /tmp /var/lock /var/run find: ./usb: Permission denied
    done.
    Setting up networking (ifupdown) ..
    rm: cannot remove `/etc/network/run': Read-only file system
    Starting network interfaces: /sbin/ifup: failed to open statefile /etc/network/run/ifstate: Read-only file system
     failed (1: ).
    Starting hotplug subsystem:
       pci    
       pci      [success]
       usb    
       usb      [success]
       isapnp 
       isapnp   [success]
       ide    
       ide      [success]
       input  
       input    [success]
       scsi   
       scsi     [success]
    done.
    Starting portmap daemon: portmap/etc/rc.d/rcS.d/S41portmap: line 70: /var/run/portmap.pid: Read-only file system
    .
    /etc/init.d/rcS: line 48: /etc/nologin: Read-only file system
    cp: cannot stat `/etc/nologin': No such file or directory
    chmod: changing permissions of `/var/run/utmp': Read-only file system
    done.
    Setting pseudo-terminal access permissions...done.
    Updating /etc/motd.../etc/init.d/rcS: line 80: /etc/motd.tmp: Read-only file system
    /etc/init.d/rcS: line 81: /etc/motd.tmp: Read-only file system
    mv: cannot stat `/etc/motd.tmp': No such file or directory
    done.
    /etc/init.d/rcS: line 89: /var/log/dmesg: Read-only file system
    INIT: Entering runlevel: 3
    Starting NFS common utilities: statd/etc/rc.d/rc3.d/S19nfs-common: line 70: /var/run/rpc.statd.pid: Read-only file system
     failed (1: ).
    Starting internet superserver: inetd.
    Starting MontaVista target tools daemon: mvltdmvltd version 2.1 MontaVista Software,Inc.
    mvltd[1031]: started on port 34577
    /etc/rc.d/rc3.d/S90mvltd: line 70: /var/run/mvltd.pid: Read-only file system
    .
    MontaVista(R) Linux(R) Professional Edition 4.0.1 (0600980)

    10.20.21.15 login:   

  • sounds like a permission problem.  I believe the entire target file system should have root permission if you follow the Getting Started Guide....

  • I have followed all the instructions. In the exportfs file, I have set the file system to rw permission. Could any other thing have caused this problem .

    I found a forum where someone suggested that changing the etc\fstab file might help. There, the default statement is 'error remount-ro' .  I thought this might have been a problem so I set it to 'error continue' but even that didn't help.

    So I'm still stuck [:(]

     

  • Hi

    I successfully solved the permissions problem. Installed the libexif as per instructions.

    But there is a problem with fbida. If I run make, I get the following error:

      LD      exiftran

    /usr/lib/gcc/armv5tl-montavista-linuxeabi/3.4.3/../../../../armv5tl-montavista-linuxeabi/bin/ld: skipping incompatible /usr/local/lib/libexif.so when searchf
    /usr/lib/gcc/armv5tl-montavista-linuxeabi/3.4.3/../../../../armv5tl-montavista-linuxeabi/bin/ld: skipping incompatible /usr/local/lib/libexif.a when searchif
    /usr/lib/gcc/armv5tl-montavista-linuxeabi/3.4.3/../../../../armv5tl-montavista-linuxeabi/bin/ld: cannot find -lexif

    collect2: ld returned 1 exit status
    make: *** [exiftran] Error 1

    (The last words of error are not visible because of screen size.)

    I had set /etc/ld.so.cofig file to the directory of libexif installation , i.e. : /usr/local/lib  and run ldconfig. I also checked that the files were actually present in the folder.

     

    What can the problem be ?

  • Problem solved !

    It was a version problem , downloaded the correct libexif version

  • I successfuly installed the jpeg viewer. and updated the ld.so.conf file.

    However I get the following error while running fbi:

    fbi: error while loading shared libraries : libexif.so.12 : cannot open shared object file: No such file or directory

    Is it because I skipped the part : 'Setting up your virtual terminal' ? Is it mandatory. I tried following the steps that were mentioned but there was some kind of error

     

    I also found that dm355 comes with an inbuilt jpeg demo. How do i install the jpegdec on the board. ? Running $ make clean and $ make on the host in jpegdec directory gives an error. (something like no such file or directory) Is there something that needs to be done before this?

    I am unable to post log now , but will do so if you want it.

     

    Thanks a lot

    Trying to make my first image display on the screen  !