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.

Crash after booting the kernel

I need to get a DM6446 development board going, but it crashes after it boots the kernel.  This is the output in hyperterminal:

U-Boot code: 81080000 -> 81097320  BSS: -> 810A0230 
Saving Environment to Flash...                 
RAM Configuration:i
serial8250.0: tt
Bank #0: 80000000 256 MB mem 0xfec20000 (irq = 4
MY AMD Flash: 16 MB                  
In:    serial            
Out:   serial            
Err:   ser       
filesize=13bf20              
fileaddr=80700000     
TI DaVinci
netmask=255.255.255.0dated 4.0           
hostname=ProtocleaDVPootargs
TI DaVinci EM
nfshost=10.0.0.3nstances.ootd0=0
bootcmd=dhcp;bootm            
Linu
serverip=192.168.1.180ce: v2.00            
bootfile=uImage-dm6446
vpfe vpfe.1: DaVinci
rootpath=/home/andre/workdir/filesys                                   
ipaddr=192.168.1.203register davinci dis
gatewayip=192.168.1.180cal filesystems: mount
nfshost=192.168.1.180yer=c73b1600,layer->v
bootargs=video=davincifb:vid0=0,2500K: vid1=0,2500K:osd=720x576x16,2025K davincinci display video device.=$(videos                           
done   
B
layer=
_enc_mngr.ch0_output=COMPOSITE davinci_enc_mngr.ch0_mod                 
                                 
ethaddr=00:0e:99:02:53:ecriver cannot be loaded
b
videostd=ntsc            

Environment size: 671/65532 bytesKernel Image (uncompres
 CCDC nee
DaVinci EVM # setenv bootfile uImages driver 
00n8 noinitrd rw ip=dage-
DaVinci EVM # saveenv   
Uniform Multi-Pl
Saving Environment to Flash....00alpha200 1.9 MB=0,2500K:osd
Un-Protected 1 sectorsci         
ide: Assu
Erasing Flash... bus speed for P
Erasing sector  4 ... done.us=xx    
Loading: #######
 Erase Operation Completed.########  Entry Point:  8
M
Erased 1 sectorsDIREN          
Writing to Flash...-doneized ATAEN            

Protected 1 sectorsMIO-DMA , BIOS sett
DaVinci EVM # printenv       
   Verifying
bootdelay=3 OK2500K:o
baudrate=115200              
ipaddr=192.168.1.203                   
gatewayip=192.168.1.180ore.c: v2.6:USB HID cor
nfshost=192.168.1.180           
setboot=
bootargs=video=davincifb:vid0=0,2500K: vid1=0,2500K:osd=720x576x16,2025K davinci                     
In:    ser
musb_hdrc musb_hdrc: No DMA interrupt lineigh
_enc_mngr.ch0_output=COMPOSITE davinci_enc_mngr.ch0_mode=ntsc console=ttyS0,11525e000 using DMA, IRQ 12................ done, bnfsroot=:,noey to stop autoboot:
00n8 noinitrd rw ip=dhcp root=/dev/hda1 nfsroot=192.168.1.180:/home/andre/workdi           
musb_hdrc musb_hdrc: new USB bus registered, assigned bus number 1
r/filesys,nolock mem=118M       
davm64     
roo
stdin=seri
 
   
   
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #####
done
Bytes transferred = 2017332 (1ec834 hex)
## Booting image at 80700000 ...
   Image Name:   Linux-2.6.18_pro500-davinci_evm-
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2017268 Bytes =  1.9 MB
   Load Address: 80008000


   Entry Point:  80008000
   Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux.............................................................
........................................................................ done, b
ooting the kernel.

This is where it crashes.  In a different thread it was suggested that it was the bootargs, but I cannot find any fault with them.  I can boot another custom made card on the same virtual machine, so I also know its not the tftp or the NFS.  I succesfully compiled a new kernel and rebuilt the software. Any ideas on what can be wrong?  Here are the environment settings:

filesize=13bf20
fileaddr=80700000
netmask=255.255.255.0
hostname=ProtocleaDVP
nfshost=10.0.0.3
bootcmd=dhcp;bootm
serverip=192.168.1.180
rootpath=/home/andre/workdir/filesys
ipaddr=192.168.1.203
gatewayip=192.168.1.180
nfshost=192.168.1.180
bootargs=video=davincifb:vid0=0,2500K: vid1=0,2500K:osd=720x576x16,2025K davinci
_enc_mngr.ch0_output=COMPOSITE davinci_enc_mngr.ch0_mode=ntsc console=ttyS0,1152
00n8 noinitrd rw ip=dhcp root=/dev/hda1 nfsroot=192.168.1.180:/home/andre/workdi
r/filesys,nolock mem=118M
bootfile=uImage
stdin=serial
stdout=serial
stderr=serial
ethaddr=00:0e:99:02:53:ec
videostd=ntsc

The card also does not  save some of the settings when I use the saveenv command.  The videostd for example should be pal, and whenever I boot the card it defaults back to ntsc.  Any ideas are welcome!

 

 

  • Since the kernel appears to uncompress without any errors and you suggest that it crashes right after this (where you would normally expect to see more debug output detailing the steps of the kernel loading process), it would appear that the problem would be on the serial output settings specified in bootargs (e.g. console=ttyS0,1152
    00n8), getting this wrong would prevent user from seeing any further output.  Please be careful not to confuse the letter 'O' with zeros; in the string "console=ttyS0,115200n8", all should be zeros.  From your log above, this settings appear to be right in some places, but in other places I see "console=ttyS0,11525e000" where you can clearly see an error with the last part of the string. "115200n8"

    Let me know if this solves the issue

     

  • Unfortunately the bootargs seem to be correct.  I have ensured that they are zeros, and as I copy the same line to boot another DaVinci card (custom card) and it works, I don't think the problem lies in the bootargs.  I also boot from the same kernel and that kernel seems to work just fine on the other card.  Is it possible that the development board is broken / corrupted, and what should the default values for the S3 switches be?   My S3 switches is currently set on 10111 11110.

  • you can recompile the uImage((kernel image) with debugging options turned on and see why actually it is hanging.Hope this will help you.

     

    Regard's

    Rohan Tabish

  • Thanks for the idea... but unfortunately I know very little about this kind of development.  How do I recompile the kernel with debugging options? 

  • The following article may help

    http://www.linuxtopia.org/online_books/linux_kernel/kernel_configuration/ch09s07.html

    Please note that not all options may be available in all kernels, but in general... if you run menuconfig (steps outlined in Getting Started Guide) and go to the "kernel hacking" menu, you should see some debugging options.  Personally, I have not had to use these myself.