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 04 Oct 2008 12:20 PM by  gabriel.neagoe@gmail.com
Linux 2.6.19.2 Patch for Litekit
 8 Replies
Sort:
You are not authorized to post a reply.
Author Messages
zyzyis@gmail.com
New Member
New Member
Posts:


--
11 Sep 2008 07:14 AM
    Hey all,

    I published the linux patch for the I.MX27 Litekit. Please give me some feedback for both the patch and my website

    http://200dollartablet.bl...r-imx27-litekit.html


    Regards,
    htjgdw@hotmail.com
    New Member
    New Member
    Posts:


    --
    11 Sep 2008 07:31 AM
    Thank you! I'm awaiting it.
    If it works ok, I'll introduce your website for my friends:)
    htjgdw@hotmail.com
    New Member
    New Member
    Posts:


    --
    12 Sep 2008 08:19 AM
    Hi, zyzyis

    I download this patch, but it seems have problem on my PC. My steps is below:

    1. Install MX27 ADS Linux BSP.
    2. Come into the install path, and run ./ltib -c
    Select [*]Leave the sources after building
    Then build success, get the sources in install path/rpm/BUILD/linux-2.6.19.2
    3. Copy the patch into install path/rpm/BUILD/linux-2.6.19.2/
    Then:patch -f -p1 <linux-2.6.19.2.patch
    4. Run ./ltib -c again
    Build fail

    The error log attached:
    [hw@localhost ltib-imx27ads-20070522]$ ./ltib -c
    + '[' -n '' ']'
    + '[' -n '' ']'
    + cd config/platform/imx27ads
    + mconf main.lkc
    #
    # using defaults found in .config
    #


    *** End of configuration.
    *** Check the top-level Makefile for additional configuration options.

    + cp .config defconfig.dev

    Processing platform: Freescale IMX27 ADS reference board
    ==========================================================
    using config/platform/imx27ads/.config
    PKG_KERNEL_WANT_HEADERS has changed, kernel-2.6.19-mx needs a rebuild
    PKG_KERNEL_WANT_CF has changed, kernel-2.6.19-mx needs a rebuild
    PKG_KERNEL_LEAVESRC has changed, kernel-2.6.19-mx needs a rebuild

    Processing: fake-provides
    ===========================

    Processing: kernel-2.6.19-mx
    ==============================

    Cowardly refusing to clobber existing directory:
    /tmp/MX27/ltib-imx27ads-20070522/rpm/BUILD/linux-2.6.19.2
    Remove this by hand if you really want to rebuild this package from scratch

    scbuild/scdeploy already unpacked package

    Processing: kernel-2.6.19-mx
    ==============================
    rpmbuild --dbpath /tmp/MX27/ltib-imx27ads-20070522/rpmdb --define '_unpackaged_files_terminate_build 0' --de fine '_target_cpu arm' --define '__strip strip' --define '_topdir /tmp/MX27/ltib-imx27ads-20070522/rpm' --de fine '_prefix /usr' --define '_tmppath /tmp/MX27/ltib-imx27ads-20070522/tmp' --define '_mandir /usr/share/ma n' --define '_sysconfdir /etc' --define '_localstatedir /var' -bc --short-circuit /tmp/MX27/ltib-imx27ads-2 0070522/tmp/kernel-2.6.19-mx.spec
    Executing(%build): /bin/sh -e /tmp/MX27/ltib-imx27ads-20070522/tmp/rpm-tmp.34338
    + umask 022
    + cd /tmp/MX27/ltib-imx27ads-20070522/rpm/BUILD
    + cd linux-2.6.19.2
    + '[' -n linux-2.6.19.2 ']'
    + rm -f /tmp/MX27/ltib-imx27ads-20070522/rpm/BUILD/linux
    + ln -s linux-2.6.19.2 /tmp/MX27/ltib-imx27ads-20070522/rpm/BUILD/linux
    + KSRC_DIR=/tmp/MX27/ltib-imx27ads-20070522/rpm/BUILD/linux-2.6.19.2
    + : arm
    + : /usr/bin/gcc -B/usr/bin//
    + : linux-2.6.19-mx27ads.config
    + : /tmp/MX27/ltib-imx27ads-20070522/config/platform/imx27ads
    + : /tmp/MX27/ltib-imx27ads-20070522/rpm/BUILD/linux-2.6.19.2
    + cd /tmp/MX27/ltib-imx27ads-20070522/rpm/BUILD/linux-2.6.19.2
    ++ eval echo
    +++ echo
    + KBOUT=
    + KBOUT=.
    + '[' . '!=' . ']'
    + test -d .
    + case $LINTARCH in
    + KTARG=zImage
    + SYSCFG_KTARG=zImage
    + for CFG in '"$PLATFORM_PATH/${PKG_KERNEL_PRECONFIG}.dev"' '"$PLATFORM_PATH/$PKG_KERNEL_PRECONFIG"' '"$KSRC _DIR/arch/$LINTARCH/configs/${PLATFORM}_defconfig"' notfound
    + '[' -f /tmp/MX27/ltib-imx27ads-20070522/config/platform/imx27ads/linux-2.6.19-mx27ads.config.dev ']'
    + cp /tmp/MX27/ltib-imx27ads-20070522/config/platform/imx27ads/linux-2.6.19-mx27ads.config.dev ./.config
    + break
    + '[' '!' -f ./.config ']'
    + grep -q CONFIG_PPCMERGE=y ./.config
    + grep -q CONFIG_PPC_MERGE=y ./.config
    + '[' -n y -o -n '' ']'
    + make ARCH=arm CROSS_COMPILE= 'HOSTCC=/usr/bin/gcc -B/usr/bin//' menuconfig
    HOSTCC scripts/kconfig/lxdialog/checklist.o
    HOSTCC scripts/kconfig/lxdialog/inputbox.o
    HOSTCC scripts/kconfig/lxdialog/menubox.o
    HOSTCC scripts/kconfig/lxdialog/textbox.o
    HOSTCC scripts/kconfig/lxdialog/util.o
    HOSTCC scripts/kconfig/lxdialog/yesno.o
    HOSTCC scripts/kconfig/mconf.o
    HOSTCC scripts/kconfig/zconf.tab.o
    HOSTLD scripts/kconfig/mconf
    scripts/kconfig/mconf arch/arm/Kconfig
    file arch/arm/plat-mxc/Kconfig already scanned?
    make[1]: *** [menuconfig] Error 1
    make: *** [menuconfig] Error 2
    error: Bad exit status from /tmp/MX27/ltib-imx27ads-20070522/tmp/rpm-tmp.34338 (%build)


    RPM build errors:
    Bad exit status from /tmp/MX27/ltib-imx27ads-20070522/tmp/rpm-tmp.34338 (%build)
    Build time for kernel-2.6.19-mx: 5 seconds

    Failed building kernel-2.6.19-mx


    f_buildrpms() returned an error, exiting

    Started: Fri Sep 12 18:06:20 2008
    Ended: Fri Sep 12 18:07:05 2008
    Elapsed: 45 seconds

    These packages failed to build:
    kernel-2.6.19-mx
    Build Failed

    Exiting on error or interrupt
    [hw@localhost ltib-imx27ads-20070522]$ ./ltib -c
    + '[' -n '' ']'
    + '[' -n '' ']'
    + cd config/platform/imx27ads
    + mconf main.lkc
    #
    # using defaults found in .config
    #


    *** End of configuration.
    *** Check the top-level Makefile for additional configuration options.

    + cp .config defconfig.dev

    Processing platform: Freescale IMX27 ADS reference board
    ==========================================================
    using config/platform/imx27ads/.config

    Processing: fake-provides
    ===========================

    Processing: kernel-2.6.19-mx
    ==============================

    Cowardly refusing to clobber existing directory:
    /tmp/MX27/ltib-imx27ads-20070522/rpm/BUILD/linux-2.6.19.2
    Remove this by hand if you really want to rebuild this package from scratch

    scbuild/scdeploy already unpacked package

    Processing: kernel-2.6.19-mx
    ==============================
    rpmbuild --dbpath /tmp/MX27/ltib-imx27ads-20070522/rpmdb --define '_unpackaged_files_terminate_build 0' --de fine '_target_cpu arm' --define '__strip strip' --define '_topdir /tmp/MX27/ltib-imx27ads-20070522/rpm' --de fine '_prefix /usr' --define '_tmppath /tmp/MX27/ltib-imx27ads-20070522/tmp' --define '_mandir /usr/share/ma n' --define '_sysconfdir /etc' --define '_localstatedir /var' -bc --short-circuit /tmp/MX27/ltib-imx27ads-2 0070522/tmp/kernel-2.6.19-mx.spec
    Executing(%build): /bin/sh -e /tmp/MX27/ltib-imx27ads-20070522/tmp/rpm-tmp.10520
    + umask 022
    + cd /tmp/MX27/ltib-imx27ads-20070522/rpm/BUILD
    + cd linux-2.6.19.2
    + '[' -n linux-2.6.19.2 ']'
    + rm -f /tmp/MX27/ltib-imx27ads-20070522/rpm/BUILD/linux
    + ln -s linux-2.6.19.2 /tmp/MX27/ltib-imx27ads-20070522/rpm/BUILD/linux
    + KSRC_DIR=/tmp/MX27/ltib-imx27ads-20070522/rpm/BUILD/linux-2.6.19.2
    + : arm
    + : /usr/bin/gcc -B/usr/bin//
    + : linux-2.6.19-mx27ads.config
    + : /tmp/MX27/ltib-imx27ads-20070522/config/platform/imx27ads
    + : /tmp/MX27/ltib-imx27ads-20070522/rpm/BUILD/linux-2.6.19.2
    + cd /tmp/MX27/ltib-imx27ads-20070522/rpm/BUILD/linux-2.6.19.2
    ++ eval echo
    +++ echo
    + KBOUT=
    + KBOUT=.
    + '[' . '!=' . ']'
    + test -d .
    + case $LINTARCH in
    + KTARG=zImage
    + SYSCFG_KTARG=zImage
    + for CFG in '"$PLATFORM_PATH/${PKG_KERNEL_PRECONFIG}.dev"' '"$PLATFORM_PATH/$PKG_KERNEL_PRECONFIG"' '"$KSRC _DIR/arch/$LINTARCH/configs/${PLATFORM}_defconfig"' notfound
    + '[' -f /tmp/MX27/ltib-imx27ads-20070522/config/platform/imx27ads/linux-2.6.19-mx27ads.config.dev ']'
    + cp /tmp/MX27/ltib-imx27ads-20070522/config/platform/imx27ads/linux-2.6.19-mx27ads.config.dev ./.config
    + break
    + '[' '!' -f ./.config ']'
    + grep -q CONFIG_PPCMERGE=y ./.config
    + grep -q CONFIG_PPC_MERGE=y ./.config
    + '[' -n y -o -n '' ']'
    + make ARCH=arm CROSS_COMPILE= 'HOSTCC=/usr/bin/gcc -B/usr/bin//' menuconfig
    scripts/kconfig/mconf arch/arm/Kconfig
    file arch/arm/plat-mxc/Kconfig already scanned?
    make[1]: *** [menuconfig] Error 1
    make: *** [menuconfig] Error 2
    error: Bad exit status from /tmp/MX27/ltib-imx27ads-20070522/tmp/rpm-tmp.10520 (%build)


    RPM build errors:
    Bad exit status from /tmp/MX27/ltib-imx27ads-20070522/tmp/rpm-tmp.10520 (%build)
    Build time for kernel-2.6.19-mx: 1 seconds

    Failed building kernel-2.6.19-mx


    f_buildrpms() returned an error, exiting

    Started: Fri Sep 12 18:07:53 2008
    Ended: Fri Sep 12 18:08:35 2008
    Elapsed: 42 seconds

    These packages failed to build:
    kernel-2.6.19-mx
    Build Failed

    Exiting on error or interrupt
    [hw@localhost ltib-imx27ads-20070522]$ ./ltib -c
    + '[' -n '' ']'
    + '[' -n '' ']'
    + cd config/platform/imx27ads
    + mconf main.lkc
    #
    # using defaults found in .config
    #


    *** End of configuration.
    *** Check the top-level Makefile for additional configuration options.

    + cp .config defconfig.dev

    Processing platform: Freescale IMX27 ADS reference board
    ==========================================================
    using config/platform/imx27ads/.config
    PKG_KERNEL_WANT_HEADERS has changed, kernel-2.6.19-mx needs a rebuild
    PKG_KERNEL_WANT_CF has changed, kernel-2.6.19-mx needs a rebuild

    Processing: fake-provides
    ===========================

    Processing: kernel-2.6.19-mx
    ==============================

    Cowardly refusing to clobber existing directory:
    /tmp/MX27/ltib-imx27ads-20070522/rpm/BUILD/linux-2.6.19.2
    Remove this by hand if you really want to rebuild this package from scratch

    scbuild/scdeploy already unpacked package

    Processing: kernel-2.6.19-mx
    ==============================
    rpmbuild --dbpath /tmp/MX27/ltib-imx27ads-20070522/rpmdb --define '_unpackaged_files_terminate_build 0' --de fine '_target_cpu arm' --define '__strip strip' --define '_topdir /tmp/MX27/ltib-imx27ads-20070522/rpm' --de fine '_prefix /usr' --define '_tmppath /tmp/MX27/ltib-imx27ads-20070522/tmp' --define '_mandir /usr/share/ma n' --define '_sysconfdir /etc' --define '_localstatedir /var' -bc --short-circuit /tmp/MX27/ltib-imx27ads-2 0070522/tmp/kernel-2.6.19-mx.spec
    Executing(%build): /bin/sh -e /tmp/MX27/ltib-imx27ads-20070522/tmp/rpm-tmp.66147
    + umask 022
    + cd /tmp/MX27/ltib-imx27ads-20070522/rpm/BUILD
    + cd linux-2.6.19.2
    + '[' -n linux-2.6.19.2 ']'
    + rm -f /tmp/MX27/ltib-imx27ads-20070522/rpm/BUILD/linux
    + ln -s linux-2.6.19.2 /tmp/MX27/ltib-imx27ads-20070522/rpm/BUILD/linux
    + KSRC_DIR=/tmp/MX27/ltib-imx27ads-20070522/rpm/BUILD/linux-2.6.19.2
    + : arm
    + : /usr/bin/gcc -B/usr/bin//
    + : linux-2.6.19-mx27ads.config
    + : /tmp/MX27/ltib-imx27ads-20070522/config/platform/imx27ads
    + : /tmp/MX27/ltib-imx27ads-20070522/rpm/BUILD/linux-2.6.19.2
    + cd /tmp/MX27/ltib-imx27ads-20070522/rpm/BUILD/linux-2.6.19.2
    ++ eval echo
    +++ echo
    + KBOUT=
    + KBOUT=.
    + '[' . '!=' . ']'
    + test -d .
    + case $LINTARCH in
    + KTARG=zImage
    + SYSCFG_KTARG=zImage
    + for CFG in '"$PLATFORM_PATH/${PKG_KERNEL_PRECONFIG}.dev"' '"$PLATFORM_PATH/$PKG_KERNEL_PRECONFIG"' '"$KSRC _DIR/arch/$LINTARCH/configs/${PLATFORM}_defconfig"' notfound
    + '[' -f /tmp/MX27/ltib-imx27ads-20070522/config/platform/imx27ads/linux-2.6.19-mx27ads.config.dev ']'
    + cp /tmp/MX27/ltib-imx27ads-20070522/config/platform/imx27ads/linux-2.6.19-mx27ads.config.dev ./.config
    + break
    + '[' '!' -f ./.config ']'
    + grep -q CONFIG_PPCMERGE=y ./.config
    + grep -q CONFIG_PPC_MERGE=y ./.config
    + '[' -n '' -o -n '' ']'
    + yes ''
    + make ARCH=arm CROSS_COMPILE= 'HOSTCC=/usr/bin/gcc -B/usr/bin//' oldconfig
    HOSTCC scripts/kconfig/zconf.tab.o
    HOSTLD scripts/kconfig/conf
    scripts/kconfig/conf -o arch/arm/Kconfig
    file arch/arm/plat-mxc/Kconfig already scanned?
    make[1]: *** [oldconfig] Error 1
    make: *** [oldconfig] Error 2
    error: Bad exit status from /tmp/MX27/ltib-imx27ads-20070522/tmp/rpm-tmp.66147 (%build)


    RPM build errors:
    Bad exit status from /tmp/MX27/ltib-imx27ads-20070522/tmp/rpm-tmp.66147 (%build)
    Build time for kernel-2.6.19-mx: 3 seconds

    Failed building kernel-2.6.19-mx


    f_buildrpms() returned an error, exiting

    Started: Fri Sep 12 18:10:01 2008
    Ended: Fri Sep 12 18:10:13 2008
    Elapsed: 12 seconds

    These packages failed to build:
    kernel-2.6.19-mx
    Build Failed

    Exiting on error or interrupt
    [hw@localhost ltib-imx27ads-20070522]$
    zyzyis@gmail.com
    New Member
    New Member
    Posts:


    --
    13 Sep 2008 01:57 AM
    as I mentioned in the post that the patch is made by diffing from the mainline kernel but the Freescale kernel. I have never tested it on the BSP kernel so maybe you should do the patch on raw kernel.
    htjgdw@hotmail.com
    New Member
    New Member
    Posts:


    --
    13 Sep 2008 08:05 AM
    OK, I see.
    I downloaded linux-2.6.19.2 mainline kernel and patch it. Then compile it using BSP's compiler, get the zImage.
    But I still let linux run on my board. After exec, there is nothing come out like before:)
    Could you show your steps done on your site, so I could according to it:) thank you!

    *****************************************************************
    LogicLoader
    (c) Copyright 2002-2008, Logic Product Development, Inc.
    All Rights Reserved.
    Version 2.4.1-IMX27_10 0001
    *****************************************************************
    losh> ifconfig sm0 192.168.1.20 255.255.255.0 192.168.10.1
    losh> load raw 0xa0208000 1575336 /tftp/192.168.1.10:zImage
    loading from /tftp/192.168.1.10:zImage:
    loading raw binary to 0xa0208000 (ram) len 0018fb68:
    .............................................................................................................................................................

    .....................done
    file loaded
    losh> exec 0xa0208000 "noinitrd console=ttymxc0,115200 root=/dev/nfs nfsroot=192.168.1.10:/tftpboot/ltib/ init=/linuxrc ip=192.168.1.20:192.168.1.10"
    Uncompressing Linux............................................................................................................... done, booting the kernel.
    gabriel.neagoe@gmail.com
    New Member
    New Member
    Posts:


    --
    27 Sep 2008 11:03 AM
    Thank you for the patch. The resulted kernel compiles and loads just fine.

    I have a small problem with loading of linuxrc, after the end of kernel loading. I am stuck after the "Freeing init memory: 92K" message. I verified that the nfs image has a linuxrc (linked to busybox) and it is executable. If there are any thoughts, just let me now.

    mount fatfs /dev/ata0a /cf
    losh> cd /cf
    losh> ifconfig sm0 dhcp
    Starting DHCP on sm0 .
    losh> load raw 0xa00c0000 1577136 zImage
    loading from zImage:
    loading raw binary to 0xa00c0000 (ram) len 001810b0:
    .................................................................................................................................................................................................file loaded
    losh> exec -t -i 0x34e 0xa00c0000 "noinitrd console=ttymxc0,115200 root=/dev/nfs ip=dhcp nfsroot=192.168.1.1:/home/g/LTIB/ltib-imx27ads-20071219/export init=linuxrc"
    ATAG_CORE1, 4096, 255, 4, 1413545986, Uncompressing Linux......................................................................................................... done, booting the kernel.
    Linux version 2.6.19.2 (g@linux-1) (gcc version 4.1.2) #177 PREEMPT Sat Sep 20 21:08:33 EDT 2008
    CPU: ARM926EJ-S [41069264] revision 4 (ARMv5TEJ), cr=00053177
    Machine: Freescale i.MX27ADS
    Memory policy: ECC disabled, Data cache writeback
    CPU0: D VIVT write-back cache
    CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
    CPU0: D cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
    Built 1 zonelists. Total pages: 32512
    Kernel command line: noinitrd console=ttymxc0,115200 root=/dev/nfs ip=dhcp nfsroot=192.168.1.1:/home/g/LTIB/ltib-imx27ads-20071219/export init=linuxrc
    MXC IRQ initialized
    PID hash table entries: 512 (order: 9, 2048 bytes)
    Actual CLOCK_TICK_RATE is 14250000 Hz
    Actual HRT CLOCK_TICK_RATE is 14250000 Hz
    Console: colour dummy device 80x30
    Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
    Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
    Memory: 128MB = 128MB total
    Memory: 126464KB available (2700K code, 572K data, 92K init)
    Mount-cache hash table entries: 512
    CPU: Testing write buffer coherency: ok
    NET: Registered protocol family 16
    MXC GPIO hardware
    Generic PHY: Registered new driver
    CSPI: mxc_spi-1 probed
    CSPI: mxc_spi-2 probed
    MXC I2C driver
    mc13783 Rev 3.3 FinVer 0 detected
    Device spi1.0 probed
    PMIC Character device: successfully loaded
    PMIC RTC successfully probed
    PMIC Light successfully loaded
    PMIC Power successfully probed
    NET: Registered protocol family 2
    IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
    TCP established hash table entries: 4096 (order: 2, 16384 bytes)
    TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
    TCP: Hash tables configured (established 4096 bind 2048)
    TCP reno registered
    MX27: Power management module initialized
    NetWinder Floating Point Emulator V0.97 (double precision)
    JFFS2 version 2.2. (NAND) (C) 2001-2006 Red Hat, Inc.
    yaffs Sep 20 2008 09:13:23 Installing.
    io scheduler noop registered
    io scheduler anticipatory registered
    io scheduler deadline registered
    io scheduler cfq registered (default)
    Console: switching to colour frame buffer device 100x30
    mxc_sdc_fb mxc_sdc_fb.0: fb0: DISP0 BG fb device registered successfully.
    mxc_sdc_fb mxc_sdc_fb.0: fb1: DISP0 FG fb device registered successfully.
    Real TIme clock Driver v1.0
    Serial: IMX driver
    imx-uart.0: ttymxc0 at MMIO 0x1000a000 (irq = 20) is a IMX
    imx-uart.1: ttymxc1 at MMIO 0x1000b000 (irq = 19) is a IMX
    imx-uart.2: ttymxc2 at MMIO 0x1000c000 (irq = 18) is a IMX
    imx-uart.3: ttymxc3 at MMIO 0x1000d000 (irq = 17) is a IMX
    imx-uart.4: ttymxc4 at MMIO 0x1001b000 (irq = 49) is a IMX
    imx-uart.5: ttymxc5 at MMIO 0x1001c000 (irq = 48) is a IMX
    loop: loaded (max 8 devices)
    SMSC LAN83C185: Registered new driver
    FEC ENET Version 0.2
    eth0: ethernet 00:08:ee:01:f7:d6
    fec: PHY @ 0x1f, ID 0x0007c0c3 -- unknown PHY!
    MXC MTD nor Driver 2.0
    mxc_nor_flash.0: Found 1 x16 devices at 0x0 in 16-bit bank
    Intel/Sharp Extended Query Table at 0x0035
    cfi_cmdset_0001: Erase suspend on write enabled
    Searching for RedBoot partition table in mxc_nor_flash.0 at offset 0x1f0000
    No RedBoot partition table detected in mxc_nor_flash.0
    Creating 2 MTD partitions on "mxc_nor_flash.0":
    0x00000000-0x00040000 : "LoLo Bootloader"
    0x00040000-0x00050000 : "Bootloader config"
    MXC MTD nand Driver 2.0
    NAND device: Manufacturer ID: 0x20, Chip ID: 0x76 (ST Micro NAND 64MiB 3,3V 8-bit)
    Scanning device for bad blocks
    Creating 4 MTD partitions on "NAND 64MiB 3,3V 8-bit":
    0x00000000-0x02000000 : "NAND RootFS"
    0x00000000-0x04000000 : "<NULL>"
    0x00000000-0x04000000 : "<NULL>"
    0x00000000-0x04000000 : "<NULL>"
    i2c /dev entries driver
    SSI module loaded successfully
    PMIC Audio driver loading...
    PMIC Battery successfully probed
    PMIC Connectivity driver loading..
    DPTC controller initialized
    SEC: mxc_sec_mod_init() called
    MXC MMC/SD driver
    mxcmci: probe of mxcmci.0 failed with error -22
    mxcmci: probe of mxcmci.1 failed with error -22
    Advanced Linux Sound Architecture Driver Version 1.0.13 (Tue Nov 28 14:07:24 2006 UTC).
    Control ALSA component registered
    ALSA device list:
    #0: MXC Freescale with PMIC
    TCP cubic registered
    NET: Registered protocol family 1
    NET: Registered protocol family 17
    input: mxc_ts as /class/input/input0
    Time: mx27_hrt clocksource has been installed.
    mxc input touchscreen loaded
    Sending DHCP requests ., OK
    IP-Config: Got DHCP answer from 0.0.0.0, my address is 192.168.1.18
    IP-Config: Complete:
    device=eth0, addr=192.168.1.18, mask=255.255.255.0, gw=192.168.1.254,
    host=192.168.1.18, domain=, nis-domain=(none),
    bootserver=0.0.0.0, rootserver=192.168.1.1, rootpath=
    Looking up port of RPC 100003/2 on 192.168.1.1
    Looking up port of RPC 100005/1 on 192.168.1.1
    VFS: Mounted root (nfs filesystem) readonly.
    Freeing init memory: 92K
    htjgdw@hotmail.com
    New Member
    New Member
    Posts:


    --
    30 Sep 2008 01:15 AM
    Hi, bga

    I'm also try to port linux on mx27 with this patch. But I'm not familiar with linux, so haven't succees.
    Could you explain how to do it? If so, I'll be appreciate!
    Thank you!
    htjgdw@hotmail.com
    New Member
    New Member
    Posts:


    --
    04 Oct 2008 09:00 AM
    Hi, bga

    I try to use your command to load and run linux on MX27. At beginning, everything looks Ok. But at the end of linux startup it could not mount nfs root fs. Have you encounter this issue before? Thank you! Below is my startup log:

    *****************************************************************

    LogicLoader

    (c) Copyright 2002-2008, Logic Product Development, Inc.
    All Rights Reserved.
    Version 2.4.1-IMX27_10 0001
    *****************************************************************

    losh> ifconfig sm0 192.168.1.20 255.255.255.0 192.168.10.1
    losh> load raw 0xa00c0000 1575340 /tftp/192.168.1.10:zImage
    loading from /tftp/192.168.1.10:zImage:
    loading raw binary to 0xa00c0000 (ram) len 001809ac:
    .................................................................................................................................................................................efile loaded
    losh> exec -t -i 0x34e 0xa00c0000 "noinitrd console=ttymxc0,115200 root=/dev/nfs ip=192.168.1.20 nfsroot=192.168.1.10:/tftpboot/ltib/rootfs init=linuxrc"
    ATAG_CORE1, 4096, 255, 4, 1413545986, Uncompressing Linux......................................................................................................... done, booting .Linux version 2.6.19.2 (hw@localhost.localdomain) (gcc version 4.1.2) #176 PREEMPT Mon Sep 15 09:57:06 CST 2008
    CPU: ARM926EJ-S [41069264] revision 4 (ARMv5TEJ), cr=00053177
    Machine: Freescale i.MX27ADS
    Memory policy: ECC disabled, Data cache writeback
    CPU0: D VIVT write-back cache
    CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
    CPU0: D cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
    Built 1 zonelists. Total pages: 32512
    Kernel command line: noinitrd console=ttymxc0,115200 root=/dev/nfs ip=192.168.1.20 nfsroot=192.168.1.10:/tftpboot/ltib/rootfs init=linuxrc
    MXC IRQ initialized
    PID hash table entries: 512 (order: 9, 2048 bytes)
    Actual CLOCK_TICK_RATE is 14250000 Hz
    Actual HRT CLOCK_TICK_RATE is 14250000 Hz
    Console: colour dummy device 80x30
    Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
    Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
    Memory: 128MB = 128MB total
    Memory: 126464KB available (2696K code, 572K data, 92K init)
    Mount-cache hash table entries: 512
    CPU: Testing write buffer coherency: ok
    NET: Registered protocol family 16
    MXC GPIO hardware
    Generic PHY: Registered new driver
    CSPI: mxc_spi-1 probed
    CSPI: mxc_spi-2 probed
    MXC I2C driver
    mc13783 Rev 3.3 FinVer 0 detected
    Device spi1.0 probed
    PMIC Character device: successfully loaded
    PMIC RTC successfully probed
    PMIC Light successfully loaded
    PMIC Power successfully probed
    NET: Registered protocol family 2
    IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
    TCP established hash table entries: 4096 (order: 2, 16384 bytes)
    TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
    TCP: Hash tables configured (established 4096 bind 2048)
    TCP reno registered
    MX27: Power management module initialized
    NetWinder Floating Point Emulator V0.97 (double precision)
    JFFS2 version 2.2. (NAND) (C) 2001-2006 Red Hat, Inc.
    yaffs Sep 15 2008 09:52:32 Installing.
    io scheduler noop registered
    io scheduler anticipatory registered
    io scheduler deadline registered
    io scheduler cfq registered (default)
    Console: switching to colour frame buffer device 100x30
    mxc_sdc_fb mxc_sdc_fb.0: fb0: DISP0 BG fb device registered successfully.
    mxc_sdc_fb mxc_sdc_fb.0: fb1: DISP0 FG fb device registered successfully.
    Real TIme clock Driver v1.0
    Serial: IMX driver
    imx-uart.0: ttymxc0 at MMIO 0x1000a000 (irq = 20) is a IMX
    imx-uart.1: ttymxc1 at MMIO 0x1000b000 (irq = 19) is a IMX
    imx-uart.2: ttymxc2 at MMIO 0x1000c000 (irq = 18) is a IMX
    imx-uart.3: ttymxc3 at MMIO 0x1000d000 (irq = 17) is a IMX
    imx-uart.4: ttymxc4 at MMIO 0x1001b000 (irq = 49) is a IMX
    imx-uart.5: ttymxc5 at MMIO 0x1001c000 (irq = 48) is a IMX
    loop: loaded (max 8 devices)
    SMSC LAN83C185: Registered new driver
    FEC ENET Version 0.2
    eth0: ethernet 01:02:03:04:05:06
    fec: PHY @ 0x1f, ID 0x0007c0c3 -- unknown PHY!
    MXC MTD nor Driver 2.0
    mxc_nor_flash.0: Found 1 x16 devices at 0x0 in 16-bit bank
    Intel/Sharp Extended Query Table at 0x0035
    cfi_cmdset_0001: Erase suspend on write enabled
    Searching for RedBoot partition table in mxc_nor_flash.0 at offset 0x1f0000
    No RedBoot partition table detected in mxc_nor_flash.0
    Creating 2 MTD partitions on "mxc_nor_flash.0":
    0x00000000-0x00040000 : "LoLo Bootloader"
    0x00040000-0x00050000 : "Bootloader config"
    MXC MTD nand Driver 2.0
    NAND device: Manufacturer ID: 0x20, Chip ID: 0x76 (ST Micro NAND 64MiB 3,3V 8-bit)
    Scanning device for bad blocks
    Bad eraseblock 0 at 0x00000000
    Creating 4 MTD partitions on "NAND 64MiB 3,3V 8-bit":
    0x00000000-0x02000000 : "NAND RootFS"
    0x00000000-0x04000000 : "<NULL>"
    0x00000000-0x04000000 : "<NULL>"
    0x00000000-0x04000000 : "<NULL>"
    i2c /dev entries driver
    SSI module loaded successfully
    PMIC Audio driver loading...
    PMIC Battery successfully probed
    PMIC Connectivity driver loading..
    DPTC controller initialized
    SEC: mxc_sec_mod_init() called
    MXC MMC/SD driver
    mxcmci: probe of mxcmci.0 failed with error -22
    mxcmci: probe of mxcmci.1 failed with error -22
    Advanced Linux Sound Architecture Driver Version 1.0.13 (Tue Nov 28 14:07:24 2006 UTC).
    Control ALSA component registered
    ALSA device list:
    #0: MXC Freescale with PMIC
    TCP cubic registered
    NET: Registered protocol family 1
    NET: Registered protocol family 17
    Time: mx27_hrt clocksource has been installed.
    input: mxc_ts as /class/input/input0
    mxc input touchscreen loaded
    IP-Config: Guessing netmask 255.255.255.0
    IP-Config: Complete:
    device=eth0, addr=192.168.1.20, mask=255.255.255.0, gw=255.255.255.255,
    host=192.168.1.20, domain=, nis-domain=(none),
    bootserver=255.255.255.255, rootserver=192.168.1.10, rootpath=
    Looking up port of RPC 100003/2 on 192.168.1.10
    portmap: server 192.168.1.10 not responding, timed out
    Root-NFS: Unable to get nfsd port number from server, using default
    Looking up port of RPC 100005/1 on 192.168.1.10
    portmap: server 192.168.1.10 not responding, timed out
    Root-NFS: Unable to get mountd port number from server, using default
    mount: server 192.168.1.10 not responding, timed out
    Root-NFS: Server returned error -5 while mounting /tftpboot/ltib/rootfs
    VFS: Unable to mount root fs via NFS, trying floppy.
    VFS: Cannot open root device "nfs" or unknown-block(2,0)
    Please append a correct "root=" boot option
    Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
    gabriel.neagoe@gmail.com
    New Member
    New Member
    Posts:


    --
    04 Oct 2008 12:20 PM
    It seems that you have a problem with the nfs server.

    On your Linux server, check your exports file, it should have something like this
    /etc/exports
    /tftpboot/ltib/rootfs 192.168.1.0/255.255.255.0(rw)

    /etc/hosts.allow must have something like this
    ALL : 192.168.1.1/255.255.255.0 : ALLOW

    /etc/hosts.deny should be empty

    When done, restart nfs server (on my machine I do a service nfs-server restart).
    You are not authorized to post a reply.