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 Nov 2007 11:34 AM by  OradFarez
Using LogicLoader to boot Linux
 12 Replies
Sort:
You are not authorized to post a reply.
Author Messages
TomCooksey
New Member
New Member
Posts:


--
21 Jun 2007 03:19 PM
    I noticed that the more recent LogicLoader updates for the i.MX31 LITEKIT indicate it is able to boot Linux.

    I've updated my LogicLoader to the latest (2.3.5-IMX31_10) version. However, it doesn't seem to recognize the "-t" option to the exec command, regardless of what I do, I get the following:


    Can't parse '-t'
    error: exec: bad argument 1: -t


    Have I got my wires crossed here? Is Linux only supported by LogicLoader on other boards? I haven't actually got a Linux kernel to boot yet (:-)) but I wanted to just try the command.

    I know there's a second stage bootloader I can use to boot Linux but I thought it was worth giving LogicLoader a go first.


    Cheers!
    TomCooksey
    New Member
    New Member
    Posts:


    --
    02 Jul 2007 12:14 PM
    BUMP?
    paulc@logicpd.com
    New Member
    New Member
    Posts:


    --
    27 Jul 2007 02:49 PM
    The following has been known to work, but as you've observed the -t support isn't in all releases.

    echo "LOLOifconfig sm0 10.0.1.2 255.255.255.0 10.0.1.1;load raw 0x81000000 0x200000 /tftp/10.0.1.1:zImage.mx31;exec -t -i 447 -a 0x80000100 0x81000000 - \"console=ttymxc0 root=/dev/nfs nfsroot=10.0.1.1:/opt/L2618-1_mx31/ltib/rootfs rw init=/linuxrc ip=10.0.1.2::10.0.1.1:255.255.255.0 noalign\";exit;" /dev/config
    lwalkera
    New Member
    New Member
    Posts:


    --
    27 Jul 2007 03:09 PM
    titinger@digigram.com
    New Member
    New Member
    Posts:


    --
    06 Sep 2007 06:35 AM
    Hello,

    I'm not familiar with Lolo, so sorry for the newbie questions to follow :

    - question 1 : is there any means to prevent Lolo to execute the config script in /dev/config ? I entered the script given by Paul in this thread (with the ip addresses and path matching my setup, of course), and since Lolo never shows up anymore, nore displays an error message. My NFS config may not yet work on sever side, i need to check that.

    - question 2: could anyone kindly give the steps to burn the rootfs.ext2.gz ramdisk image generated by ltib into the flash, and what kernel options to give to set root (what is the device name) ?

    thanks for any help you can provide

    Marc.
    titinger@digigram.com
    New Member
    New Member
    Posts:


    --
    06 Sep 2007 07:26 AM
    I found the answer to my first question from the FAQ's at Logicpd's site :
    press the 'q' key while reseting, to bring up Lolo and skip the script.
    paulc@logicpd.com
    New Member
    New Member
    Posts:


    --
    20 Sep 2007 05:59 PM
    *******************************************************************************
    * Instructions for building/booting Linux on a Logic i.MX31 Zoom Kit *
    * *
    * v0.1 - 07_31_07 - Initial release *
    * *
    * Logic Product Development *
    *******************************************************************************

    Overall steps:
    1. Copy the rootfs to the /src/nfs/imx31_rootfs
    2. Boot using NFS to write rootfs to NAND flash
    3. Rebuild for NAND rootfs

    *******************Build Steps***************

    mount -t iso9660 -o loop logic.iso /mnt/logic (of course you can write it to CD)
    cd /mnt/logic
    ./install (you will asked some install dir)
    cd (install_dir)
    ./ltib

    Clean all:
    ./ltib --mode distclean

    Compile & build:
    ./ltib -l -s -f

    *******************Rebuild Steps***************

    ./ltib --mode distclean
    rm -rf rpm
    ./ltib -l -s -f

    zImage can be found in the rootfs/boot/zImage

    *******************Boot Steps***************
    Assumptions:

    - Development host running nfs and tftp server
    - Logic Kit connected to development host over ethernet
    - Development host IP: 10.10.10.1
    - DHCP server available to assign IP to Logic Kit or assign manually in LoLo (not shown)

    1. Create nfs and jffs2 images with ltib (modified for LPD board support).
    Configure jffs2 for a 16kB erase block size.

    2. Copy loader_nfs, loader_nand and zImage to tftp area.
    cp rootfs/boot/zImage /srv/tftp
    cp loader_nfs /srv/tftp
    cp loader_nand /srv/tftp

    3. Copy ltib rootfs to nfs area.
    cp -a rootfs /srv/nfs

    4. Start a terminal emulator (eg. minicom) at 115.2kbps to communicate with LogicLoader.
    Enter the following commands:
    losh> ifconfig sm0 dhcp
    losh> load elf /tftp/10.10.10.1:loader_nfs
    losh> load raw 0x81000000 1664580 /tftp/10.10.10.1:zImage (make sure for the proper file size)
    losh> exec 0x800d0430 -

    5. Erase nand flash:
    imx31# flash_eraseall /dev/mtd/2

    6. Write rootfs to flash:
    imx31# nandwrite /dev/mtd/2 /home/rootfs.jffs2 -p (make sure for 16kB jffs2 erase block size!)

    7. Reboot the board and now boot using the nand rootfs:
    losh> ifconfig sm0 dhcp
    losh> load elf /tftp/10.10.10.1:loader_nand
    losh> load raw 0x81000000 1664580 /tftp/10.10.10.1:zImage (make sure for proper file size)
    losh> exec 0x800d0430 -

    Notes:

    loader_nand: nand flash will be root fs will
    COMMAND_LINE "console=ttymxc0 root=/dev/mtdblock2 rootfstype=jffs2 init=/linuxrc ip=10.10.10.2:10.10.10.1:10.10.10.1:255.255.255.0:imx31box"

    loader_nfs: nfs will be the root fs
    COMMAND_LINE "console=ttymxc0 root=/dev/nfs nfsroot=10.10.10.1:/srv/nfs/imx31_rootfs rw init=/linuxrc ip=10.10.10.2:10.10.10.1:10.10.10.1:255.255.255.0:imx31box"


    Patch instructions:

    copy the patch file into the /opt/freescale/pkgs directory and untar the other the user home.

    Patch should have 6.4" Display support (untested by PC)
    OradFarez
    New Member
    New Member
    Posts:


    --
    20 Sep 2007 06:18 PM
    I'm glad to see that LogicPD is stepping up to the challenge of getting a stable Linux kernel running on their system. I just have a couple of quick question that this leaves unclear:

    Which release from freescale is this applied to? (3?, 4?)
    Is this patch file you speak of something that LogicPD provides? The loader files must be custom too? I don't see anything in the download section yet, but you did just post this.

    Thank you!
    dsanders16@gmail.com
    New Member
    New Member
    Posts:


    --
    19 Oct 2007 09:41 AM
    Where or how did you create the loader_nfs and loader_nand?
    paulc@logicpd.com
    New Member
    New Member
    Posts:


    --
    24 Oct 2007 03:23 PM
    you can use: http://mx31.lbox.ca/download/bootloader.tar.gz

    or use the lolo -t option works great but it's a new feature so not in most versions.
    spannring
    New Member
    New Member
    Posts:


    --
    25 Oct 2007 09:45 AM
    Any ideas when a version of lolo will be released that supports the -t option? The latest version I've found in the downloads web page is still 2.3.5 from last May.
    prashm_77@yahoo.com
    New Member
    New Member
    Posts:


    --
    06 Nov 2007 09:05 PM
    Posted By paulc@logicpd.com on 16 Oct 2007 1:31 AM
    *******************************************************************************
    * Instructions for building/booting Linux on a Logic i.MX31 Zoom Kit *
    * *
    * v0.1 - 07_31_07 - Initial release *
    * *
    * Logic Product Development *
    *******************************************************************************

    Overall steps:
    1. Copy the rootfs to the /src/nfs/imx31_rootfs
    2. Boot using NFS to write rootfs to NAND flash
    3. Rebuild for NAND rootfs

    *******************Build Steps***************

    mount -t iso9660 -o loop logic.iso /mnt/logic (of course you can write it to CD)
    cd /mnt/logic
    ./install (you will asked some install dir)
    cd (install_dir)
    ./ltib

    Clean all:
    ./ltib --mode distclean

    Compile & build:
    ./ltib -l -s -f

    *******************Rebuild Steps***************

    ./ltib --mode distclean
    rm -rf rpm
    ./ltib -l -s -f

    zImage can be found in the rootfs/boot/zImage

    *******************Boot Steps***************
    Assumptions:

    - Development host running nfs and tftp server
    - Logic Kit connected to development host over ethernet
    - Development host IP: 10.10.10.1
    - DHCP server available to assign IP to Logic Kit or assign manually in LoLo (not shown)

    1. Create nfs and jffs2 images with ltib (modified for LPD board support).
    Configure jffs2 for a 16kB erase block size.

    2. Copy loader_nfs, loader_nand and zImage to tftp area.
    cp rootfs/boot/zImage /srv/tftp
    cp loader_nfs /srv/tftp
    cp loader_nand /srv/tftp

    3. Copy ltib rootfs to nfs area.
    cp -a rootfs /srv/nfs

    4. Start a terminal emulator (eg. minicom) at 115.2kbps to communicate with LogicLoader.
    Enter the following commands:
    losh> ifconfig sm0 dhcp
    losh> load elf /tftp/10.10.10.1:loader_nfs
    losh> load raw 0x81000000 1664580 /tftp/10.10.10.1:zImage (make sure for the proper file size)
    losh> exec 0x800d0430 -

    5. Erase nand flash:
    imx31# flash_eraseall /dev/mtd/2

    6. Write rootfs to flash:
    imx31# nandwrite /dev/mtd/2 /home/rootfs.jffs2 -p (make sure for 16kB jffs2 erase block size!)

    7. Reboot the board and now boot using the nand rootfs:
    losh> ifconfig sm0 dhcp
    losh> load elf /tftp/10.10.10.1:loader_nand
    losh> load raw 0x81000000 1664580 /tftp/10.10.10.1:zImage (make sure for proper file size)
    losh> exec 0x800d0430 -

    Notes:

    loader_nand: nand flash will be root fs will
    COMMAND_LINE "console=ttymxc0 root=/dev/mtdblock2 rootfstype=jffs2 init=/linuxrc ip=10.10.10.2:10.10.10.1:10.10.10.1:255.255.255.0:imx31box"

    loader_nfs: nfs will be the root fs
    COMMAND_LINE "console=ttymxc0 root=/dev/nfs nfsroot=10.10.10.1:/srv/nfs/imx31_rootfs rw init=/linuxrc ip=10.10.10.2:10.10.10.1:10.10.10.1:255.255.255.0:imx31box"


    Patch instructions:

    copy the patch file into the /opt/freescale/pkgs directory and untar the other the user home.

    Patch should have 6.4" Display support (untested by PC)







    hai,

    I followed the steps given but at step 4 the board is rebooting itself, it is not booting the zImage. what may be the problem?

    Thanks in advance.
    OradFarez
    New Member
    New Member
    Posts:


    --
    07 Nov 2007 11:34 AM
    Try this as your last command in step 4:

    exec 0x800d03a8 -
    You are not authorized to post a reply.