Go to previous topic
Go to next topic
Last Post 04 Sep 2008 02:34 AM by  zyzyis@gmail.com
We're almost finishing the porting
 3 Replies
Author Messages
zyzyis@gmail.com
New Member
New Member
Posts:


--
01 Sep 2008 07:08 AM
    The current problem is that I cannot boot our file system from NFS. The error tells that it is not able to
    open an initial console but when I check the /dev directory, there are console and tty files with
    correct major and minor number. Anyone knows how to solve it? One post I found in google is talking
    about x86_64 and x86_32 NFS server machines. Yes, we are using 64bit NFS server and we can't
    find a 32bit machine to have a trial. Is it a real problem? ( I guess NFS should be cross platform and arch).

    Quote:

    Linux version 2.6.19.2 (yin@localhost.localdomain) (gcc version 4.2.1) #146 PREEMPT Mon Sep 1 14:54:40 CEST 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: console=fbcon console=ttymxc0,115200 root=/dev/nfs nfsroot=10.168.245.254:/export/scratch1/yin/rfs ip=dhcp init=/sbin/init
    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 (2692K code, 571K data, 92K init)
    Mount-cache hash table entries: 512
    CPU: Testing write buffer coherency: ok
    NET: Registered protocol family 16
    MXC GPIO hardware
    AIPI VA base: 0xd4000000
    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 1 2008 14:12:29 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
    MXC WatchDog Driver 2.0
    MXC Watchdog # 0 Timer: initial timeout 60 sec
    Serial: IMX driver
    loop: loaded (max 8 devices)
    SMSC LAN83C185: Registered new driver
    FEC ENET Version 0.2
    eth0: ethernet 00:08:ee:fec: PHY @ 0x1f, ID 0x0007c0c3 -- unknown PHY!
    01:f8:56
    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 1945 at 0x01e64000
    Bad eraseblock 2561 at 0x02804000
    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
    mxc input touchscreen loaded
    Time: mx27_hrt clocksource has been installed.
    Sending DHCP requests ., OK
    IP-Config: Got DHCP answer from 0.0.0.0, my address is 10.168.245.253
    IP-Config: Complete:
    device=eth0, addr=10.168.245.253, mask=255.255.255.0, gw=10.168.245.254,
    host=10.168.245.253, domain=domain.com, nis-domain=(none),
    bootserver=0.0.0.0, rootserver=10.168.245.254, rootpath=
    Looking up port of RPC 100003/2 on 10.168.245.254
    Looking up port of RPC 100005/1 on 10.168.245.254
    VFS: Mounted root (nfs filesystem) readonly.
    Freeing init memory: 92K
    Warning: unable to open an initial console.

    zyzyis@gmail.com
    New Member
    New Member
    Posts:


    --
    01 Sep 2008 09:51 AM
    Yes, we finally made it working!

    Here is the booting message:
    Quote:



    Linux version 2.6.19.2 (yin@localhost.localdomain) (gcc version 4.2.1) #172 PREEMPT Mon Sep 1 17:30:21 CEST 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: console=fbcon console=ttymxc0,115200 root=/dev/nfs nfsroot=10.168.245.254:/export/scratch1/yin/rfs ip=dhcp init=/sbin/init
    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
    UART clk_enum 8
    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 (2692K 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
    AIPI VA base: 0xd4000000
    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 1 2008 17:28:02 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:f8:56
    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 1945 at 0x01e64000
    Bad eraseblock 2561 at 0x02804000
    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 10.168.245.253
    IP-Config: Complete:
    device=eth0, addr=10.168.245.253, mask=255.255.255.0, gw=10.168.245.254,
    host=10.168.245.253, domain=*, nis-domain=(none),
    bootserver=0.0.0.0, rootserver=10.168.245.254, rootpath=
    Looking up port of RPC 100003/2 on 10.168.245.254
    Looking up port of RPC 100005/1 on 10.168.245.254
    VFS: Mounted root (nfs filesystem) readonly.
    Freeing init memory: 92K
    init started: BusyBox v1.9.1 (2008-03-13 14:11:30 EDT)
    remounting / read-write ... done.
    mounting /dev ...done.
    mounting /dev/pts ...done.
    mounting /proc ... done.
    mounting /sys ... done.
    cleaning out /tmp ... done.
    creating device nodes ...done.
    hostname: can't open '/etc/hostname': No such file or directory

    10.168.245.253 login:
    htjgdw@hotmail.com
    New Member
    New Member
    Posts:


    --
    03 Sep 2008 08:38 AM
    Congratulation!
    When did you plan to share porting process?
    We are anticipate it!
    zyzyis@gmail.com
    New Member
    New Member
    Posts:


    --
    04 Sep 2008 02:34 AM
    Yes, I'm going to make a patch soon.


    ---