Forums

3) Installing the UBL and the Uboot.

  • Hi Andre,

    Thanks. I am a complete newbie to this.

    The output above "can't open /dev/ttyS0: No such file or directory      process '-/bin/sh' (pid 403) exited. Scheduling for resta"

    is what I see on minicom ( on /dev/ttys1) from the host linux box.

    The leopardboard is on the uart port ( with the audio type jack ) and connected to the host linux box.

    The leopardboard starts up looking for /dev/ttyS0 ? Shouldnt the leopardboard knows where its only uart port is?

    Since my minicom on linux box already can see the output, then the leopardboard is already sending out  "console" output via the correct only uart port that it has. Why is the leopardboard looking for ttyS0??

    I must have missed something very fundamental.

    I expect the boad to boot into a login or command prompt state or telnetable state?

    Thanks for any advice.

    Rgds

    Richard

  • HI Richard, I was having problem trying to install uboot via TFTP so I did it via serial and it works fine, just make sure minicom is close while you do all this.

  • Hi Andre,

    Thanks.

    Have already installed uboot and the new image on target leopardboard with make installbootloader and make install.

    Both went well there were no error messages.

    This is the output of the new image when the Leopard board is booted up.

    Rgds

  • Anyone can help please?

  • no one? :(

  • I dont undertand, if you got everything install with make installbootloader and make install, and if everything is right, can you go on minicom connect to the board and copy and paste everything that happens. because is not clear.

  • Thanks Andre. Below is leopardboax bootup messages as seen from minicom

    ====

    Welcome to minicom 2.3

    OPTIONS: I18n

    Compiled on Sep 25 2009, 23:40:20.

    Port /dev/ttyS1

                  Press CTRL-A Z for help on special keys

    DM35x

    initialization passed!

    Customized by RidgeRun

    TI UBL Version: 1.50

    Booting Catalog Boot Loader

    BootMode = NAND

    Starting NAND Copy...

    Valid magicnum, 0xA1ACED66, found in block 0x00000002.

      DONE

    Jumping to entry point at 0x81080000.

    U-Boot customized by RidgeRun

    U-Boot 2009.11 (Apr 29 2011 - 11:40:57)

    Cores: ARM 216 MHz

    DDR:   171 MHz

    I2C:   ready

    DRAM:  128 MB

    NAND:  256 MiB

    Bad block table found at page 131008, version 0x01

    Bad block table found at page 130944, version 0x01

    nand_read_bbt: Bad block at 0x000000020000

    nand_read_bbt: Bad block at 0x000000040000

    nand_read_bbt: Bad block at 0x000000060000

    nand_read_bbt: Bad block at 0x000000660000

    Net:   dm9000

    Hit any key to stop autoboot:  0

    Loading from nand0, offset 0xc0000

      Image Name:   "RR Linux Kernel"

      Created:      2011-05-16   6:15:28 UTC

      Image Type:   ARM Linux Kernel Image (uncompressed)

      Data Size:    3376616 Bytes =  3.2 MB

      Load Address: 80008000

      Entry Point:  80008000

    Automatic boot of image at addr 0x80700000 ...

    ## Booting kernel from Legacy Image at 80700000 ...

      Image Name:   "RR Linux Kernel"

      Created:      2011-05-16   6:15:28 UTC

      Image Type:   ARM Linux Kernel Image (uncompressed)

      Data Size:    3376616 Bytes =  3.2 MB

      Load Address: 80008000

      Entry Point:  80008000

      Verifying Checksum ... OK

      Loading Kernel Image ... OK

    OK

    Starting kernel ...

    [    0.000000] Linux version 2.6.29-ridgerun-davinci1 (root@optasia-desktop) (gcc version 4.2.4) #1 PREEMPT Fri Apr 29 10:52:59 PHT 2011

    [    0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177

    [    0.000000] CPU: VIVT data cache, VIVT instruction cache

    [    0.000000] Machine: DaVinci DM355 leopard

    [    0.000000] Memory policy: ECC disabled, Data cache writeback

    [    0.000000] DaVinci DM0355 variant 0x0

    [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 29464

    [    0.000000] Kernel command line: console=ttyS0,115200n8 video=davincifb:osd1=0x0x8 root=/dev/mtdblock3 rw mem=116M rootfstype=jffs2 mtdparts=davinci_nand.0:640k(UBOOT),128k(UBOOT_ENV),3840k)

    [    0.000000] PID hash table entries: 512 (order: 9, 2048 bytes)

    [42949372.960000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)

    [42949372.960000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)

    [42949372.980000] Memory: 116MB = 116MB total

    [42949372.980000] Memory: 114076KB available (3056K code, 208K data, 116K init)

    [42949372.980000] Calibrating delay loop... 107.72 BogoMIPS (lpj=538624)

    [42949373.210000] Mount-cache hash table entries: 512

    [42949373.210000] CPU: Testing write buffer coherency: ok

    [42949373.220000] net_namespace: 520 bytes

    [42949373.220000] NET: Registered protocol family 16

    [42949373.220000] MUX: initialized INT_EDMA_CC

    [42949373.220000] MUX: initialized VIN_CINL_EN

    [42949373.250000] DaVinci: 104 gpio irqs

    [42949373.330000] bio: create slab <bio-0> at 0

    [42949373.340000] vpss vpss: dm355_vpss vpss probed

    [42949373.340000] vpss vpss: dm355_vpss vpss probe success

    [42949373.340000] ch0 default output "COMPOSITE", mode "NTSC"

    [42949373.340000] VPBE Encoder Initialized

    [42949373.350000] SCSI subsystem initialized

    [42949373.350000] usbcore: registered new interface driver usbfs

    [42949373.350000] usbcore: registered new interface driver hub

    [42949373.360000] usbcore: registered new device driver usb

    [42949373.370000] Avnetlcd encoder initialized

    [42949373.380000] musb_hdrc: version 6.0, pio, host, debug=0

    [42949373.400000] musb_hdrc: USB Host mode controller at fec64000 using PIO, IRQ 12

    [42949373.400000] musb_hdrc musb_hdrc: MUSB HDRC host driver

    [42949373.400000] musb_hdrc musb_hdrc: new USB bus registered, assigned bus number 1

    [42949373.400000] usb usb1: configuration #1 chosen from 1 choice

    [42949373.400000] hub 1-0:1.0: USB hub found

    [42949373.400000] hub 1-0:1.0: 1 port detected

    [42949373.410000] NET: Registered protocol family 2

    [42949373.410000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)

    [42949373.410000] TCP established hash table entries: 4096 (order: 3, 32768 bytes)

    [42949373.410000] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)

    [42949373.410000] TCP: Hash tables configured (established 4096 bind 4096)

    [42949373.410000] TCP reno registered

    [42949373.410000] NET: Registered protocol family 1

    [42949373.420000] JFFS2 version 2.2. (NAND) (SUMMARY)  �© 2001-2006 Red Hat, Inc.

    [42949373.430000] msgmni has been set to 223

    [42949373.430000] io scheduler noop registered (default)

    [42949373.440000] davincifb davincifb.0: dm_osd0_fb: 720x480x16@0,0 with framebuffer size 1350KB

    [42949373.450000] davincifb davincifb.0: dm_vid0_fb: 0x0x16@0,0 with framebuffer size 675KB

    [42949373.460000] davincifb davincifb.0: dm_osd1_fb: 0x0x8@0,0 with framebuffer size 1350KB

    [42949373.470000] davincifb davincifb.0: dm_vid1_fb: 0x0x16@0,0 with framebuffer size 675KB

    [42949373.480000] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled

    [42949373.480000] serial8250.0: ttyS0 at MMIO 0x1c20000 (irq = 40) is a 16550A

    [42949373.480000] console [ttyS0] enabled

    [42949373.810000] brd: module loaded

    [42949373.840000] loop: module loaded

    [42949373.840000] dm9000 Ethernet Driver, V1.31

    [42949373.970000] Unable to read MAC address: Generating random value ...

    [42949373.970000] The random generated MAC address: 42:de:15:8f:b1:55 will be assigned to your device

    [42949373.980000] eth0 (dm9000): not using net_device_ops yet

    [42949373.990000] eth0: dm9000a at c785c000,c7860016 IRQ 73 MAC: 42:de:15:8f:b1:55 (chip)

    [42949374.000000] Linux video capture interface: v2.00

    [42949374.010000] vpfe-capture vpfe-capture: video device registered

    [42949374.010000] vpfe-capture vpfe-capture: v4l2 int master registered

    [42949374.020000] vpfe_capture: init successful

    [42949374.030000] Trying to register davinci display video device.

    [42949374.030000] layer=c65f7200,layer->video_dev=c65f7364

    [42949374.040000] Trying to register davinci display video device.

    [42949374.040000] layer=c65f7000,layer->video_dev=c65f7164

    [42949374.050000] davinci_init:DaVinci V4L2 Display Driver V1.0 loaded

    [42949374.060000] vpfe-capture vpfe-capture: register slave mt9v113

    [42949374.060000] mt9v113 1-003c: chip id mismatch read 0x0, expecting 0x2280

    [42949374.070000] mt9v113 1-003c: Unable to detect decoder

    [42949374.080000] mt9v113 1-003c: Registered to v4l2 master vpfe-capture!!

    [42949374.090000] Driver 'sd' needs updating - please use bus_type methods

    [42949374.100000] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xda (Micron NAND 256MiB 3,3V 8-bit)

    [42949374.110000] 2 NAND chips detected

    [42949374.110000] Scanning device for bad blocks

    [42949374.120000] Bad eraseblock 3 at 0x000000060000

    [42949374.120000] Bad eraseblock 51 at 0x000000660000

    [42949374.210000] Bad eraseblock 2051 at 0x000010060000

    [42949374.210000] Bad eraseblock 2099 at 0x000010660000

    [42949374.300000] 4 cmdlinepart partitions found on MTD device davinci_nand.0

    [42949374.310000] Creating 4 MTD partitions on "davinci_nand.0":

    [42949374.310000] 0x000000000000-0x0000000a0000 : "UBOOT"

    [42949374.320000] 0x0000000a0000-0x0000000c0000 : "UBOOT_ENV"

    [42949374.330000] 0x0000000c0000-0x000000480000 : "KERNEL"

    [42949374.340000] 0x000000480000-0x000001940000 : "FS"

    [42949374.350000] davinci_nand davinci_nand.0: controller rev. 2.3

    [42949374.360000] Initializing USB Mass Storage driver...

    [42949374.360000] usbcore: registered new interface driver usb-storage

    [42949374.370000] USB Mass Storage support registered.

    [42949374.370000] i2c /dev entries driver

    [42949374.380000] watchdog watchdog: heartbeat 60 sec

    [42949374.390000] davinci_mmc davinci_mmc.0: Using DMA, 4-bit mode

    [42949374.410000] davinci_mmc davinci_mmc.1: Using DMA, 4-bit mode

    [42949374.430000] Advanced Linux Sound Architecture Driver Version 1.0.18a.

    [42949374.440000] No device for DAI tlv320aic3x

    [42949374.440000] No device for DAI davinci-i2s

    [42949374.450000] AIC3X Audio Codec 0.2

    [42949374.450000] asoc: tlv320aic3x <-> davinci-i2s mapping ok

    [42949374.480000] ALSA device list:

    [42949374.490000]   #0: Leopard Board (tlv320aic3x)

    [42949374.490000] TCP cubic registered

    [42949374.500000] NET: Registered protocol family 17

    [42949374.500000] RPC: Registered udp transport module.

    [42949374.510000] RPC: Registered tcp transport module.

    [42949374.520000] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)

    [42949374.810000] VFS: Mounted root (jffs2 filesystem) on device 31:3.

    [42949374.820000] Freeing init memory: 116K

    init started: BusyBox v1.14.2 (2011-04-29 10:58:30 PHT)

    starting pid 268, tty '': '/etc/rcS'

    Error while running '/etc/rc.d/S00mountall'.

    Starting System

    done.

    Welcome to

    __________ .__     .___               __________                

    \______   \|__|  __| _/  ____    ____ \______   \ __ __   ____  

    |       _/|  | / __ |  / ___\ _/ __ \ |       _/|  |  \ /    \

    |    |   \|  |/ /_/ | / /_/  >\  ___/ |    |   \|  |  /|   |  \

    |____|_  /|__|\____ | \___  /  \___  >|____|_  /|____/ |___|  /

           \/          \//_____/       \/        \/             \/

       Embedded Linux Solutions

    For further information see:

    http://www.ridgerun.com

    Build host: optasia-desktop

    Built by: root

    Build date: Mon, 16 May 2011 14:15:20 +0800

    Build tag: leopard

    Configuring network interfaces

    Error while running '/etc/rc.d/S30network'.

    can't open /dev/ttyS0: No such file or directory

    process '-/bin/sh' (pid 324) exited. Scheduling for restart.

    can't open /dev/ttyS0: No such file or directory

    [42949389.030000] JFFS2 warning: (267) jffs2_do_read_inode_internal: Truncating ino #504 to 48386 bytes failed because it only had 8192 bytes to start with!

    process '-/bin/sh' (pid 325) exited. Scheduling for restart.

    can't open /dev/ttyS0: No such file or directory

    process '-/bin/sh' (pid 326) exited. Scheduling for restart.

    can't open /dev/ttyS0: No such file or directory

    process '-/bin/sh' (pid 327) exited. Scheduling for restart.

    can't open /dev/ttyS0: No such file or directory

    process '-/bin/sh' (pid 328) exited. Scheduling for restart.

    can't open /dev/ttyS0: No such file or directory

  • anyone can help ? :(

  • anyone can help?

    anyone managed to load a new image onto the leopardboard and run it??

  • anyone can help?

    have a piece of dead board sitting for a long time :(

  • tried to look for latest install updates...but found the later versions of the sdk all removed and only have the 2009 version?

    whats going on? am i looking at the wrong place or has the sdk been withdrawn?

    Only this version now avail?

    DM355SDK-701905-Linux-x86-Install.bin

  • message me on skype, basicrobots

  • RidgeRun is in the process of releasing the updated SDKs.  We removed the DM355 SDK as it is very old and no longer supported.  Once we get an updated DM355 SDK, we will port it.  This work is currently not scheduled.

    Todd

  • Thanks Todd,

    according to the software install guide the later versions are

           DM355SDK-840402-Linux-x86-Install.bin

           dvsdk_setuplinux_2_00_00_22.bin

           xdctools_setuplinux_3_10_05_61.bin

    and

           DM355SDK-789311-Linux-x86-Install.bin

    These have been removed and the earlier 701905 version remains.

    Does the 701905 version works with the new leopard board we acquired recently?

    Guess the later versions were removed because they were not stable?

    We had tried to create a workabe image out of them without success :(

    We are intenting to port our LPR software onto the leopardboard so as to OCR by parking lots (bay).

    Market is rather large if we can control the cost.

    Please assist.

  • Hi  Richardg,

    I'm having a similar problem with booting the Kernel. When I boot system I  also get  these :

    can't open /dev/ttyS0: No such file or directory                                

    process '-/bin/sh' (pid 1095) exited. Scheduling for restart.                  

    can't open /dev/ttyS0: No such file or directory                                

    process '-/bin/sh' (pid 1096) exited. Scheduling for restart.                  

    can't open /dev/ttyS0: No such file or directory                                

    process '-/bin/sh' (pid 1097) exited. Scheduling for restart.                  

    can't open /dev/ttyS0: No such file or directory        

    Have  you solved  it ? How to do ?

    I'm looking  forward to your reply .

    Thanks.