Search

Technical Discussion Group Forum

This forum is provided for user discussion. While Beacon EmbeddedWorks support staff and engineers participate, Beacon EmbeddedWorks does not guarantee the accuracy of all information within in the Technical Discussion Group (TDG).

The "Articles" forums provide brief Articles written by Beacon EmbeddedWorks engineers that address the most frequently asked technical questions.

To receive email notifications when updates are posted for a Beacon EmbeddedWorks product download, please subscribe to the TDG Forum of interest.

TDG Forum

PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 08 May 2012 10:37 AM by  pking
BSP 2.0-5p1 hangs after loading kernel
 14 Replies
Sort:
You are not authorized to post a reply.
Author Messages
rcagley
New Member
New Member
Posts:6


--
02 May 2012 03:55 PM
    Has anyone been able to build/run the kernel that gets built with the 1021559_LogicPD_Linux_BSP_2.0-5p1 for the DM3730 Torpedo SoM? When I try to run the kernel I just get the below and it stops...

    I'm building with
    ./ltib -b --preconfig config/platform/omap_logic/defconfig
    The one that comes with the kit on the SD card works fine.

    ---
    bootm 0x81000000 0x82000000

    ## Booting kernel from Legacy Image at 81000000 ...
    Image Name: Linux-3.0.0-BSP-dm37x-2.0-5p1
    Image Type: ARM Linux Kernel Image (uncompressed)
    Data Size: 3937980 Bytes = 3.8 MiB
    Load Address: 80008000
    Entry Point: 80008000
    Verifying Checksum ... OK
    ## Loading init Ramdisk from Legacy Image at 82000000 ...
    Image Name: uboot ext2 ramdisk rootfs
    Image Type: ARM Linux RAMDisk Image (gzip compressed)
    Data Size: 14500583 Bytes = 13.8 MiB
    Load Address: 00000000
    Entry Point: 00000000
    Verifying Checksum ... OK
    Loading Kernel Image ... OK
    OK

    Starting kernel ...
    pking
    New Member
    New Member
    Posts:8


    --
    03 May 2012 08:59 AM
    I have compiled kernels based off the stock BSP config, and highly modified (3.0) kernels, all boot fine (the first time).

    However I am experiencing a problem that looks very similar to yours. Are you seeing this on reboot ? I am.

    So I noticed after a boot linux, if you reboot, next boot u-boot hangs in the exact spot you shown. After u-boot says 'Starting Kernel...'.

    I tried 2 different dev units and different builds, it even does it with the stock 'Linux Demo Sdcard'.

    Brand new out of the box devkit, plug in the Linux Demo SD Card, turn it on, watch it boot, it goes to u-boot, times out, boot's linux, you get the login prompt. Login, type reboot, watch it reboot, and it get's to 'Starting Kernel...' and hangs.

    Every time. Anyone got any insight how to fix this ?
    rcagley
    New Member
    New Member
    Posts:6


    --
    03 May 2012 09:31 AM
    pking, what's your build command? Does omap_logic/defconfig work for you? Is there something else you'd recommend I try?

    What rev of the DM3730 Torpedo SoM are you using? I'm using 1017878 Rev B
    richard.laborde@logicpd.com
    Basic Member
    Basic Member
    Posts:247


    --
    03 May 2012 09:32 AM
    If you have loaded a previous version of linux you will probably need to erase the old boot args from uboot. Check the release notes for the correct commands to erase the right part of NAND.
    richard.laborde@logicpd.com
    Basic Member
    Basic Member
    Posts:247


    --
    03 May 2012 09:55 AM
    Update - the reboot process has been tweaked in the latest release - 2.1.0 which is entering our SQA process today. It should be available for download next week. I believe this new version will fix this issue.

    Thanks
    pking
    New Member
    New Member
    Posts:8


    --
    03 May 2012 12:26 PM
    Posted By rcagley on 3 May 2012 9:31 AM
    pking, what''s your build command? Does omap_logic/defconfig work for you? Is there something else you''d recommend I try?

    What rev of the DM3730 Torpedo SoM are you using? I''m using 1017878 Rev B




    Mine is the same 1017878 Rev B.

    I'm using LTIB to compile the kernel. The first time you run LTIB you are presented with 2 platform options:
    "Logic DM3730/03 reference boards"
    or
    "Logic OMAP3530/03&DM3730/03 reference boards"

    So far from my experience if you choose the first one, thing's don't work right. Make sure you selected the second option (OMAP and DM), after that, you technically don't have to change anything, it will build what appears to be really close to the Linux Demo on the sd card and the kernel should boot fine.
    pking
    New Member
    New Member
    Posts:8


    --
    03 May 2012 12:27 PM
    Posted By richardl on 3 May 2012 9:32 AM
    If you have loaded a previous version of linux you will probably need to erase the old boot args from uboot. Check the release notes for the correct commands to erase the right part of NAND.




    Yeah I can do a full nand erase, and boot off of the stock Linux Demo SD card and it hangs on the second reboot so its not the uboot args. I also tried doing this from nand, they both produce the same problem.
    pking
    New Member
    New Member
    Posts:8


    --
    03 May 2012 12:29 PM
    Posted By richardl on 3 May 2012 9:55 AM
    Update - the reboot process has been tweaked in the latest release - 2.1.0 which is entering our SQA process today. It should be available for download next week. I believe this new version will fix this issue.

    Thanks




    Is there any way to just see the patch that fixes the reboot issue or get access to 2.1.0 early ? I'm actually deploying my build next week, and the reboot issue right now is one of those things I have to jot down as hoping we never need to reboot it's going to need a manual power cycle in its current state.
    rcagley
    New Member
    New Member
    Posts:6


    --
    03 May 2012 12:30 PM
    can you give me your ltib build command? I can boot off the uImage from the SD card fine but not off any kernel I build on my own.

    I need to build my own kernel as it doesn't appear the the SD card one has NFS support, and I want to mount my filesystem with NFS.
    pking
    New Member
    New Member
    Posts:8


    --
    03 May 2012 12:38 PM
    Posted By rcagley on 3 May 2012 0:30 PM
    can you give me your ltib build command? I can boot off the uImage from the SD card fine but not off any kernel I build on my own.

    I need to build my own kernel as it doesn''t appear the the SD card one has NFS support, and I want to mount my filesystem with NFS.





    Honestly, from the directory where you extract the BSP, just running './ltib -c' pops ups the ncurses config to modify packages, there is an option in there saying [ * ] Reconfigure kernel, check that, then when you hit exit and save, it will pop up the kernel ncurses menuconfig, customize the kernel, hit exit and save and it runs off compiling everything.

    How are you deploying your kernel ? Are you writing it to nand ? That's most likely where your problem is, I don't think all the default values for the default MTD structure are correct from the BSP pdf.
    rcagley
    New Member
    New Member
    Posts:6


    --
    03 May 2012 12:46 PM
    It's weird, I have no idea what changed but now it seems to work. Just for FYI, I have uboot in NAND, uImage in tftp, and fs in nfs.

    After adding NFS support to the kernel build it comes up fine!
    pking
    New Member
    New Member
    Posts:8


    --
    04 May 2012 05:57 PM
    Posted By richardl on 3 May 2012 9:55 AM
    Update - the reboot process has been tweaked in the latest release - 2.1.0 which is entering our SQA process today. It should be available for download next week. I believe this new version will fix this issue.

    Thanks




    So this reboot issue is becoming a big issue at the moment. Is there an alpha build of 2.1.0 available or a SVN repo I can get it from ?
    pking
    New Member
    New Member
    Posts:8


    --
    07 May 2012 09:08 AM
    Posted By pking on 3 May 2012 9:55 AM
    Posted By richardl on 3 May 2012 9:55 AM
    Update - the reboot process has been tweaked in the latest release - 2.1.0 which is entering our SQA process today. It should be available for download next week. I believe this new version will fix this issue.

    Thanks




    So this reboot issue is becoming a big issue at the moment. Is there an alpha build of 2.1.0 available or a SVN repo I can get it from ?




    Also of another note I just noticed that this bug is actually listed in the Linux BSP Release Notes as:
    --) [DM37LINUX-327] Failure to boot after reset (button reset)
    and
    --) [DM37LINUX-438] Failed to boot with 'reboot' command

    Uggh.
    richard.laborde@logicpd.com
    Basic Member
    Basic Member
    Posts:247


    --
    07 May 2012 01:49 PM
    pking,

    Did someone from the apps team @ Logic PD get you what you need?
    pking
    New Member
    New Member
    Posts:8


    --
    08 May 2012 10:37 AM
    Posted By richardl on 7 May 2012 1:49 PM
    pking,

    Did someone from the apps team @ Logic PD get you what you need?





    Yes thanks.
    You are not authorized to post a reply.