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 07 Aug 2008 01:32 AM by  embedded@ferrin.org
Loading zImage into imx27 litekit
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages
ssancha
New Member
New Member
Posts:


--
16 Jul 2008 04:45 AM
    Hi

    I'm trying to load a zImage linux kernel into a imx27 litekits board, with LoLo, using tftp.

    The command

    losh> load raw 0x400C0000 0x200000 /tftp/10.0.0.100:zImage

    returns

    loading from /tftp/10.0.0.100:zImage:
    ...done
    load failed
    error: load: address space invalid (dest 0x400c0000 len 0x00200000)

    I have tried with several different destination addresses, but the result is always the same. What am I doing wrong?

    Thanks
    ssancha
    New Member
    New Member
    Posts:


    --
    16 Jul 2008 07:34 AM
    Ok, I managed to load the image with

    losh> load raw 0xa0208000 1674100 /tftp/10.0.0.100:zImage

    Then, when I try to execute it:

    losh> exec 0xa0208000 "console=ttymxc0,115200 root=/dev/nfs ip=10.0.0.101:10.0.0.100:10.0.0.100:255.255.255.0:litekit:eth0 nfsroot=10.0.0.100:/rootfs init=/sbin/init"

    I get

    Uncompressing Linux................. done, booting the kernel.

    And nothing else shows. I'm not sure whether Linux is actually running or not. Maybe the kernel parameters are being passed on, so the console is not being redirected to the serial port. Also, if try to ping to 10.0.0.101 from the PC I get no response, but the problem might be the same.
    embedded@ferrin.org
    New Member
    New Member
    Posts:


    --
    07 Aug 2008 01:32 AM
    Posted By ssancha on 29 Nov 2007 7:35 AM

    ...Then, when I try to execute it:

    losh> exec 0xa0208000 "console=ttymxc0,115200 root=/dev/nfs ip=10.0.0.101:10.0.0.100:10.0.0.100:255.255.255.0:litekit:eth0 nfsroot=10.0.0.100:/rootfs init=/sbin/init"

    I get

    Uncompressing Linux................. done, booting the kernel.

    And nothing else shows. I''m not sure whether Linux is actually running or not. Maybe the kernel parameters are being passed on, so the console is not being redirected to the serial port. Also, if try to ping to 10.0.0.101 from the PC I get no response, but the problem might be the same.




    Try upgrading LoLo to version 2.4, then you get exec option "-t", this is a briefed version of what you get:


    *******************************************
    LogicLoader
    Version 2.4.0-IMX31_10 0001
    *******************************************
    losh> help exec
    usage:
    exec [-t] [-a atag_addr] [-i arch_id] [addr -] [kernel command line]

    disable cache & ints, then jump to a loaded OS, or to [addr]

    example: exec -t -a 0xc0000100 -i 1236 "root=/dev/mtdblock2 rootfstype=yaffs"

    Works for me on iMX31LITE devkit, now I am struggling to build a stable kernel...
    You are not authorized to post a reply.