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.

[DM365] Help to run kernel 2.6.32 of DVSDK 3.10 on DM365 DVEVM

Other Parts Discussed in Thread: TVP7002, TVP5146

I'm working on DM365 DVEVM

and I had trouble to run Demos of DVSDK 2_10

So, I tried to upgrade to DVSDK 3_10

and, all of the compilation with kernel were good
--------------------------------------------------------------------
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- davinci_dm365_defconfig
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- uImage
---------------------------------------------------------------------------------------------------

so I flashed the new kernel image to DM365 DVEVM with this command
----------------------------------------------------------------------------------------------------
tftp 0x80700000 uImage
nand erase 0x400000 0x200000
nand write 0x80700000 0x400000 0x200000
-----------------------------------------------------------------------

but booting is failed with this message
--------------------------------------------------------------------------
Loading from NAND 1GiB 3,3V 8-bit, offset 0x400000
  Image Name4 :  Linux-2.6.32-rc2-davinci1
  Image Type      :  ARM Linux Kernel Image (uncompressed)
  Data Size :           2112288 Bytes = 2MB
  Load Address : 80008000
  Entry Point       :  80008000
## Booting kernel from Legacy Image at 80700000 ...
  Image Name :  Linux-2.6.32-rc2-davinci1
  Image Type   :  ARM Linux Kernel Image (uncompressed)
  Data Size       :  2112288 Bytes = 2 MB
  Load Address : 80008000
  Entry Point      :  80008000
  Verifying Checksum ... Bad Data CRC
ERROR: can't get kernel image!
--------------------------------------------------------------------------

Kernel doesn't work like that

Did I do something wrong?

---------------------------------------------------------------------------
Additional Question.

I know about Arago-project have complete images

but I'm wondering why the image name of kernel is .bin ?

Usually image name of kernel is zImage or uImage, but they have kernel images with .bin

and I have broke my DM365 DVEVM after flashing with that .bin image file.

It took about 3 months to repair it from USA.

so I'm very afraid to flash with that .bin kernel image.

  • I did it myself

    probably the size of the image was wrong while erasing and writing NAND.

    I changed 0x200000 to 0x210000

    and I could see the process of kernel starting.

    but I got new problem.

    I can see so much error messages about Bad eraseblock 27~15444 while booting kernel.

    I tried 0x300000 first, I think that's why the error occured.

    How could I fix that-?

    and

    I tried to run demo like this
    ------------------------------------------------------------
    ./loadmodules_hd.sh
    CMEMK module: built on Mar 28 2010 at 04:46:01
      Reference Linux version 2.6.32
      File /opt/DM365/dvsdk/dvsdk_3_10_00_12/linuxutils_2_25_01_06/packages/ti/sdo/c
    allocated heap buffer 0xc9000000 of size 0x134000
    CMEM Range Overlaps Kernel Physical - allowing overlap
    CMEM phys_start (0x1000) overlaps kernel (0x80000000 -> 0x84c00000)
    cmemk initialized
    IRQK module: built on Mar 28 2010 at 04:46:08
      Revference Linux version 2.6.32
      File /opt/DM365/dvsdk/dvsdk_3_10_00_12/linuxutils_2_25_01_06/packages/ti/sdo/c

    ./interface
    Demo interface started at level 0.

    and I can see just black screen not camera video.

    and I tried 'decode' and 'encode' demos like this
    -----------------------------------------------------------------------
    ./encode -v test.264 -y 3 -o
    Encode demo started
    EVM: switch to tvp7002 HD video input
    [messages about size values like that]
    Error : Failed to create capture device
    encode: linux/Fifo.c:177: Fifo_put: Assertion 'ptr' failed.
    Aborted
    ----------------------------------------------------------------------
    ./encode -v test.264 -s test.g711 -x
    Encode demo started.
    vpfe-capture vpfe-capture: IPIPE Chained
    vpfe-capture vpfe-capture: Resizer present
    EVM: switch to tvp5146 SD video input
    Error: Failed to detect video standard, video input connected?
    Error: Failed to create video encoder: h264enc
    ---------------------------------------------------------------------------
    ./encoder -v test.mpeg4 -r 352x240 -o
    Encode demo started.
    blah~blah~blah~
    Finally I can see the camera video on the screen.
    ----------------------------------------------------------------------------
    ./encode -v test.mpeg4 -b 1000000 -k -y 2
    It tries to show me the slow video with the messages like video and sound rates.
    -----------------------------------------------------------------------------
    ./encodedecode -r 352x240 -v h264 -t 20 -k
    It works pretty well
    -------------------------------------------------------------
    ./encodedecode -y 2 -v mpeg4 -o
    It also works pretty well
    -----------------------------------------------------------

    You guys can see that something works and something doesn't work.

    Can somebody tell me what the difference is-?