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 02:01 PM by
Poky Linux Development supporting iMX31 Lite board
 4 Replies
You are not authorized to post a reply.
Author Messages
New Member
New Member

04 Apr 2008 11:38 AM
    Found this Linux Development site Poky
    They include a zImage and rootfs for for the iMX31 Lite board prebuilt.

    I have it running, just need to change the screen settings it looks like. Haven't tested what all works yet.

    To load this linux was simple.
    Download the zImage and rootfs. For iMX31 Lite they do not use a JFFS2.

    Quick install:
    untar the rootfs to a SD memory card
    load zImage
    just type "exec"

    Detailed install:
    Need to be in linux for the instructions to format the SD card to ext2.

    Format SD memory card to ext2:

    fdisk /dev/mmcblk0 (it will ask you for a command)
    d (this will delete a partition - note that some SD disks may not have a partition to begin with, in this case skip straight to pressing 'n' to create a new one)
    1 (this will delete partition #1)
    n (this will create a new partition)
    p (this will create it as a Primary partition)
    1 (Choses partition 1)
    Enter (to take default start cylinder)
    Enter (to take default end cylinder)
    v (this will verify that the partition has been created)
    t (to change partition type)
    1 (to select partition 1)
    83 (to select ext2)
    w (this will save the table and exit the fdisk program)

    Then from the terminal:

    mkfs.ext2 /dev/mmcblk0p1 (this will format the partition with the ext2 file system)
    mount /dev/mmcblk0p1 /mnt/card

    Copy Rootfs to SD card

    cp poky-image-sato-mx31litekit-pinky-3.1.rootfs.tar.gz /mnt/card
    tar xzf poky-image-sato-mx31litekit-pinky-3.1.rootfs.tar.gz
    rm poky-image-sato-mx31litekit-pinky-3.1.rootfs.tar.gz

    Load zImage to Lite board:
    No console commands are needed. This image will boot from mmcblk0p1 (SD memory card partition 1)
    Start is 0x80100000, found at

    ifconfig sm0 dhcp
    load raw 0x80100000 1721464 /tftp/172.555.555.555:/tftpboot/zImage ( renamed the zImage to zImage)

    I have the kernel running. But haven't done any testing on it. This image comes with an embedded GNOME style desktop. I am mostly interested in this image for the drivers.

    Hopes this helps some people
    New Member
    New Member

    04 Apr 2008 03:40 PM
    Thanks for the link.
    New Member
    New Member

    16 May 2008 04:16 PM
    I tried porting the kernel into poky but it hangs after it says "booting the kernel." Trying the patched LTIB version and if that doesn't work just for loading the kernel I'm probably going to give up for that. The only reason I wanted to try it because of the available clock speeds in DFVS.
    New Member
    New Member

    26 Jun 2008 01:31 PM
    Hi there,

    I have the linux running on my kit. But I have a custom LCD interfaced to the kit. I tried initializing the LCD before booting starts(using video-open). But when it starts booting, the register values are cleared. So, how can I get my LCD working?Is there any way to access the registers after the booting so that I can change the values? or is there any way, I can disable LCD initialization?

    New Member
    New Member

    07 Aug 2008 02:01 PM
    Wow! Thanks for the tip, Poky really saved my week.

    I don't have an SD card at hand, so I am running from an NFS mount on the desktop. Here is how:

    First, upgrade LoLo to version 2.4, in order to be able to pass a command line to Linux.

    Then copy Poky's zImage called "zImage-" to a YAFFS system in NAND's first partition (there are instructions on how to do this all-around).

    Set up the 'host' NFS server with the following line in /etc/exports:

    Where /opt/poky/rootfs is the absolute path where I (carefully) untared Poky's rootfs "poky-image-sato-mx31litekit-pinky-3.1.rootfs.tar.gz"
    NFS options are such that any remote user will act as user #1000 on your system (hopefully you!).

    Now you can boot anytime with the following compound line on LoLo:
    mount yaffs /dev/nand0a /boot;load raw 0x80100000 1721464 /boot/zImage;exec -t "ip= root=/dev/nfs nfsroot= rw noinitrd console=ttymxc0,115200 irqpoll"

    Where is your i.MX31LITE IP address, and is your NFS host address.

    Try several times before giving up on an NFS error, they are common!

    Hopefully at some point you have seen the system come up and a login prompt waits for you:
    OpenedHand Linux (Poky) 3.1 sixcam ttymxc0

    imx31litekit login:

    Just enter as "root", no password!

    Finally, you may want to get rid of all the graphical stuff, specially if you don't have an LCD. That is cleanly solved with the following command:
    root@mx31litekit:~# ipkg -recursive remove libx*
    You are not authorized to post a reply.