This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

ti-processor-sdk-linux-omapl138-lcdk-04.00.00.04-Linux-x86用于TL138/6748/1808F-EasyEVM-A2

Other Parts Discussed in Thread: OMAP-L138

1. 我在bantu16.04(64bit)按照官网安装ti-processor-sdk-linux-omapl138-lcdk-04.00.00.04-Linux-x86-Install.bin

2.  把uboot, kernel, filesystem写入SD卡能够正常启动能够进入嵌入式开发版

3.  然后设置启动模式为SD启动, 只是在uboot中配置为tftp和nfs方式

4. 能够通过tftp下载并启动内核,但是在挂载NFS文件系统之前报错:

libphy: PHY davinci_mdio-0:07 not found
net eth0: could not connect to phy davinci_mdio-0:07
IP-Config: Failed to open eth0
IP-Config: No network devices available

我的uboot配置参数如下(由于没有开发板没有自动获取mac地址,所以自己设置为:  setenv  ethaddr 00:0c:29:bc:7e:9a):

setenv uboot_macaddr 1
setenv ethaddr 00:0c:29:bc:7e:9a
setenv serverip 192.168.2.192
setenv ipaddr 192.168.2.191

bootcmd=tftp c0700000 zImage;bootz c0700000

bootargs=eth=00:0c:29:bc:7e:9a nfsroot=192.168.2.192:/opt/omapl138/linux-sdk/targetNFS, nolock rw console=ttyS2,115200n8 ip=dhcp root=/dev/nfs



  • 上述问题补充:

    1.  开发板型号:  TL138/6748/1808F-EasyEVM-A2

    2.  开发版启动模式模式为SD卡启动

    3.  当kernel和filesystem在S卡上时,能进入系统.

    4.  但是在uboot中配置为tftp下载kernel和nfs挂载文件系统时, 能够通过tftp下载并启动内核,但是在挂载NFS文件系统之前报错:

    libphy: PHY davinci_mdio-0:07 not found
    net eth0: could not connect to phy davinci_mdio-0:07
    IP-Config: Failed to open eth0
    IP-Config: No network devices available

  • boot命令后的完整启动信息:

    => boot
    Using DaVinci-EMAC device
    TFTP from server 192.168.2.192; our IP address is 192.168.2.191
    Filename 'zImage'.
    Load address: 0xc0700000
    Loading: #################################################################
             #################################################################
             ################################
             288.1 KiB/s
    done
    Bytes transferred = 2367360 (241f80 hex)

    Starting kernel ...

    Uncompressing Linux... done, booting the kernel.
    Booting Linux on physical CPU 0x0
    Linux version 4.9.28-geed43d1050 (gtbldadm@ubuntu-16) (gcc version 6.2.1 20161016 (Linaro GCC 6.2-2016.11) ) #1 PREEMPT Wed Jun 28 17:47:16 EDT 2017
    CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f
    CPU: VIVT data cache, VIVT instruction cache
    Machine: AM18x/OMAP-L138 Hawkboard
    da8xx_rproc_reserve_cma: 'rproc_mem=nn@address' badly specified
        'nn' and 'address' must both be non-zero
    cma: Reserved 16 MiB at 0xc6c00000
    Memory policy: Data cache writethrough
    DaVinci da850/omap-l138/am18x variant 0x1
    Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32480
    Kernel command line: eth=00:0c:29:bc:7e:9a nfsroot=192.168.2.192:/opt/omapl138/linux-sdk/targetNFS, nolock rw console=ttyS2,115200n8 ip=dhcp root=/dev/nfs
    PID hash table entries: 512 (order: -1, 2048 bytes)
    Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
    Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
    Memory: 106592K/131072K available (4529K kernel code, 308K rwdata, 1500K rodata, 228K init, 162K bss, 8096K reserved, 16384K cma-reserved)
    Virtual kernel memory layout:
        vector  : 0xffff0000 - 0xffff1000   (   4 kB)
        fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
        vmalloc : 0xc8800000 - 0xff800000   ( 880 MB)
        lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
        modules : 0xbf000000 - 0xc0000000   (  16 MB)
          .text : 0xc0008000 - 0xc0474b38   (4531 kB)
          .init : 0xc05ed000 - 0xc0626000   ( 228 kB)
          .data : 0xc0626000 - 0xc0673110   ( 309 kB)
           .bss : 0xc0673110 - 0xc069bc08   ( 163 kB)
    SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    Preemptible hierarchical RCU implementation.
            Build-time adjustment of leaf fanout to 32.
    NR_IRQS:245
    clocksource: timer0_1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
    sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
    Console: colour dummy device 80x30
    Calibrating delay loop... 227.32 BogoMIPS (lpj=1136640)
    pid_max: default: 32768 minimum: 301
    Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
    Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
    CPU: Testing write buffer coherency: ok
    Setting up static identity map for 0xc0008400 - 0xc0008458
    devtmpfs: initialized
    VFP support v0.3: not present
    clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    futex hash table entries: 256 (order: -1, 3072 bytes)
    pinctrl core: initialized pinctrl subsystem
    NET: Registered protocol family 16
    DMA: preallocated 256 KiB pool for atomic coherent allocations
    cpuidle: using governor ladder
    cpuidle: using governor menu
    EMAC: MII PHY configured
    mux: initialized GPIO3_12
    mux: Setting register GPIO3_12
    mux:    PINMUX7 (0x0000001c) = 0x00110110 -> 0x00118110
    mux: initialized GPIO3_13
    mux: Setting register GPIO3_13
    mux:    PINMUX7 (0x0000001c) = 0x00118110 -> 0x00118810
    mux: initialized GPIO2_4
    mux: Setting register GPIO2_4
    mux:    PINMUX6 (0x00000018) = 0x00000000 -> 0x00008000
    mux: initialized GPIO6_13
    mux: Setting register GPIO6_13
    mux:    PINMUX13 (0x00000034) = 0x00000000 -> 0x00000800
    da8xx_register_rproc: memory not reserved for DSP, not registering DSP device
    omapl138_hawk_init: dsp/rproc registration failed: -12
    edma edma.0: Legacy memcpy is enabled, things might not work
    edma edma.0: TI EDMA DMA engine driver
    edma edma.1: Legacy memcpy is enabled, things might not work
    edma edma.1: TI EDMA DMA engine driver
    clocksource: Switched to clocksource timer0_1
    NET: Registered protocol family 2
    TCP established hash table entries: 1024 (order: 0, 4096 bytes)
    TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
    TCP: Hash tables configured (established 1024 bind 1024)
    UDP hash table entries: 256 (order: 0, 4096 bytes)
    UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    NET: Registered protocol family 1
    RPC: Registered named UNIX socket transport module.
    RPC: Registered udp transport module.
    RPC: Registered tcp transport module.
    RPC: Registered tcp NFSv4.1 backchannel transport module.
    workingset: timestamp_bits=14 max_order=15 bucket_order=1
    Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
    io scheduler noop registered (default)
    Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled
    serial8250.0: ttyS0 at MMIO 0x1c42000 (irq = 25, base_baud = 14250000) is a 16550A
    serial8250.1: ttyS1 at MMIO 0x1d0c000 (irq = 53, base_baud = 8250000) is a 16550A
    serial8250.2: ttyS2 at MMIO 0x1d0d000 (irq = 61, base_baud = 8250000) is a 16550A
    console [ttyS2] enabled
    brd: module loaded
    libphy: Fixed MDIO Bus: probed
    davinci_mdio davinci_mdio.0: davinci mdio revision 1.5
    davinci_mdio davinci_mdio.0: detected phy mask fffffffe
    libphy: davinci_mdio.0: probed
    davinci_mdio davinci_mdio.0: phy[0]: device davinci_mdio-0:00, driver SMSC LAN8710/LAN8720
    i2c /dev entries driver
    davinci_mmc da830-mmc.0: cannot find GPIO chip davinci_gpio.1
    davinci_mmc da830-mmc.0: cannot find GPIO chip davinci_gpio.1
    davinci_mmc da830-mmc.0: Using DMA, 4-bit mode
    NET: Registered protocol family 10
    sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
    NET: Registered protocol family 17
    console [netcon0] enabled
    netconsole: network logging started
    davinci_emac davinci_emac.1: using random MAC addr: 0a:ed:9e:24:43:89
    hctosys: unable to open rtc device (rtc0)
    libphy: PHY davinci_mdio-0:07 not found
    net eth0: could not connect to phy davinci_mdio-0:07
    IP-Config: Failed to open eth0
    IP-Config: No network devices available
    mmc0: host does not support reading read-only switch, assuming write-enable
    mmc0: new high speed SDHC card at address 59b4
    mmcblk0: mmc0:59b4 SS08G 7.41 GiB
     mmcblk0: p1 p2

    /* 此处等待了一段时间 */

    random: fast init done
    VFS: Unable to mount root fs via NFS, trying floppy.
    VFS: Cannot open root device "nfs" or unknown-block(2,0): error -6
    Please append a correct "root=" boot option; here are the available partitions:
    0100           32768 ram0  (driver?)
    b300         7764992 mmcblk0  driver: mmcblk
      b301           71680 mmcblk0p1 cd4e1bc4-01
      b302         7675904 mmcblk0p2 cd4e1bc4-02                          
    Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block

  • 你这开发板用的不是tii的吧,建议跟板子厂家确认一下是否能用ti的sdk?

  • 谢谢了。从原理上来说,如果是同一个zImage,从SD卡启动,以及tftp下载启动,这两种启动方式有什么区别吗?

  • 现在我采用SD卡启动内核,然后通过NFS挂载filesystem, 能够到登录的地方,omap-lcdk login : 这个地方,但是输入root不能登录,报Login incorrect错误。

    而同样的filesystem写入SD卡,从SD读取文件系统, 同样到omap-lcdk login : 这个地方,输入root是能够登录进入系统的。

  • 没什么区别,操作方法不同,结果是一样的

  • 文件系统不一样  设计的登录用户不一样