Project

General

Profile

Kernel Hang

Added by Andrew Holt over 12 years ago

Hi,

I have a MityDSPL138 in the industrial IO board. I have built a new kernel, (2.6.34-rc1) It hangs when I try to boot.

I can boot the board from another copy of the kernel, both from flash & by tftp

Here are the u-boot settings:

U-Boot > printe
bootdelay=3
baudrate=115200
flashuboot=tftp 0xc0700000 mityomap/u-boot-ubl.bin; sf probe 0; sf erase 0x10000 0x80000; sf write 0xc0700000 0x10000 ${filesize}
flashkernel=tftp 0xc0700000 mityomap/uImage; sf probe 0; sf erase 0x100000 0x280000; sf write 0xc0700000 0x100000 ${filesize}
flashubl=tftp 0xc0700000 mityomap/UBL_SPI_MEM.ais; sf probe 0; sf erase 0 0x10000; sf write 0xc0700000 0 0x10000
flashrootfs=tftp 0xc2000000 mityomap/mityomap-base-mityomapl138.jffs2; nand erase 0 0x08000000; nand write.jffs2 0xc2000000 0 ${filesize}
autoload=no
mtdids=nand0=nand
mtdparts=mtdparts=nand:128M(rootfs),-(userfs)
bootargsbase=mem=96M console=ttyS1,115200n8
flashargs=setenv bootargs ${bootargsbase} ${mtdparts} root=/dev/mtdblock0 rw,noatime rootfstype=jffs2
bootfile=uImage
filesize=204104
fileaddr=C0700000
netmask=255.255.255.0
ipaddr=192.168.0.126
serverip=192.168.0.36
dnsip=192.168.0.36
bootcmd=sf probe 0;sf read 0xc0700000 0x100000 0x2138f0; bootm 0xc0700000
bootargs=mem=96M console=ttyS1,115200n8 root=/dev/mmcblk0p1 rw rootwait
stdin=serial
stdout=serial
stderr=serial
ethaddr=00:50:c2:bf:8c:4f
ver=U-Boot 2009.11 (Mar 31 2011 - 19:39:18)

Environment size: 1149/65532 bytes
U-Boot >

And to boot the system:

U-Boot > tftp uImage-20111110
Using device
TFTP from server 192.168.0.36; our IP address is 192.168.0.126
Filename 'uImage-20111110'.
Load address: 0xc0700000
Loading: ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ###############################
done
Bytes transferred = 1818040 (1bbdb8 hex)
U-Boot > bootm
  1. Booting kernel from Legacy Image at c0700000 ...
    Image Name: Linux-2.6.34-rc1-14795-g2e70fb6-
    Image Type: ARM Linux Kernel Image (uncompressed)
    Data Size: 1817976 Bytes = 1.7 MB
    Load Address: c0008000
    Entry Point: c0008000
    Verifying Checksum ... OK
    Loading Kernel Image ... OK
    OK

Starting kernel ...

And that's it. It does nothing else.


Replies (6)

RE: Kernel Hang - Added by Michael Williamson over 12 years ago

Hi Andrew,

Can you please identify where you got the kernel (is it from support.criticallink.com, arago, the TI PSP, or mainline?) and what commit point you are working with? You might also want to include the .config file so that we might be able to reproduce the hang.

I looked for g2e70fb6 in our repository commit log and nothing popped up... my guess is you have local changes on top of a public kernel point?

Thanks.

-Mike

RE: Kernel Hang - Added by Thomas Catalino over 12 years ago

Mike -

Andrew provided this information to me prior to posting on the forum:

I built a kernel, following the instructions at http://support.criticallink.com/redmine/projects/arm9-platforms/wiki/Installing_Open_Embedded

With the following commands:

 
git clone git://support.criticallink.com/home/git/linux-davinci.git linux-davinci
cd linux-davinci/
git checkout -b devel origin/devel
. /usr/local/angstrom/arm/environment-setup
unset CPATH
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- distclean
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- mityomapl138_defconfig
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- uImage

Tom

RE: Kernel Hang - Added by Andrew Holt over 12 years ago

Hi,

I built the kernel as per the instructions here: http://support.criticallink.com/redmine/projects/arm9-platforms/wiki/Linux_Kernel

I have made no local changes, I can't get the vanilla one to work :)

.config attached

config (42.9 KB) config

RE: Kernel Hang - Added by Michael Williamson over 12 years ago

Ok,

Sorry guys. I need to update the instructions on that page. The devel branch is no longer maintained, and you should always reference new work off of the master. The proper instructions, for the Industrial I/O board, should be something like:

git clone git://support.criticallink.com/home/git/linux-davinci.git linux-davinci
cd linux-davinci/
git checkout -b my_work origin/master  # the devel branch is OBE, and should be removed
. /usr/local/angstrom/arm/environment-setup
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- distclean
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- industrialio_defconfig
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- uImage

-Mike

RE: Kernel Hang - Added by Michael Williamson over 12 years ago

Note the change to the _defconfig file, BTW. (industrialio_defconfig, not mityomapl138_defconfig).

RE: Kernel Hang - Added by Andrew Holt over 12 years ago

Hi,

That did it !

I now have a working kernel, that I have built. Onward now to getting the DSP stuff to work :)

Many thanks,
Andrew

    (1-6/6)
    Go to top
    Add picture from clipboard (Maximum size: 1 GB)