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.

AM3358: 如何在am3358+PROCESSOR-SDK-LINUX-AM335X 01_00_00_03上实现双网卡

Part Number: AM3358
Other Parts Discussed in Thread: TFP410, TPS65217, AM3352

您好,

我用的两个phy芯片是AR8031,rgmii接口

修改设备树文件am335x-bone-common.dtsi内容如下:

cpsw_default: cpsw_default {
        pinctrl-single,pins = <
            /* Slave 1 */
            0x114 (PIN_OUTPUT_PULLDOWN | MUX_MODE2)    /* mii1_txen.rgmii1_tctl */
            0x118 (PIN_INPUT_PULLDOWN | MUX_MODE2)    /* mii1_rxdv.rgmii1_rctl */
            0x11c (PIN_OUTPUT_PULLDOWN | MUX_MODE2)    /* mii1_txd3.rgmii1_td3 */
            0x120 (PIN_OUTPUT_PULLDOWN | MUX_MODE2)    /* mii1_txd2.rgmii1_td2 */
            0x124 (PIN_OUTPUT_PULLDOWN | MUX_MODE2)    /* mii1_txd1.rgmii1_td1 */
            0x128 (PIN_OUTPUT_PULLDOWN | MUX_MODE2)    /* mii1_txd0.rgmii1_td0 */
            0x12c (PIN_OUTPUT_PULLDOWN | MUX_MODE2)    /* mii1_txclk.rgmii1_tclk */
            0x130 (PIN_INPUT_PULLDOWN | MUX_MODE2)    /* mii1_rxclk.rgmii1_rclk */
            0x134 (PIN_INPUT_PULLDOWN | MUX_MODE2)    /* mii1_rxd3.rgmii1_rd3 */
            0x138 (PIN_INPUT_PULLDOWN | MUX_MODE2)    /* mii1_rxd2.rgmii1_rd2 */
            0x13c (PIN_INPUT_PULLDOWN | MUX_MODE2)    /* mii1_rxd1.rgmii1_rd1 */
            0x140 (PIN_INPUT_PULLDOWN | MUX_MODE2)    /* mii1_rxd0.rgmii1_rd0 */

            /* Slave 2 */
            0x40 (PIN_OUTPUT_PULLDOWN | MUX_MODE2)    /* gpmc_a0.rgmii2_tctl */
            0x44 (PIN_INPUT_PULLDOWN | MUX_MODE2)    /* gpmc_a1.rgmii2_rctl */
            0x48 (PIN_OUTPUT_PULLDOWN | MUX_MODE2)    /* gpmc_a2.rgmii2_td3 */
            0x4c (PIN_OUTPUT_PULLDOWN | MUX_MODE2)    /* gpmc_a3.rgmii2_td2 */
            0x50 (PIN_OUTPUT_PULLDOWN | MUX_MODE2)    /* gpmc_a4.rgmii2_td1 */
            0x54 (PIN_OUTPUT_PULLDOWN | MUX_MODE2)    /* gpmc_a5.rgmii2_td0 */
            0x58 (PIN_OUTPUT_PULLDOWN | MUX_MODE2)    /* gpmc_a6.rgmii2_tclk */
            0x5c (PIN_INPUT_PULLDOWN | MUX_MODE2)    /* gpmc_a7.rgmii2_rclk */
            0x60 (PIN_INPUT_PULLDOWN | MUX_MODE2)    /* gpmc_a8.rgmii2_rd3 */
            0x64 (PIN_INPUT_PULLDOWN | MUX_MODE2)    /* gpmc_a9.rgmii2_rd2 */
            0x68 (PIN_INPUT_PULLDOWN | MUX_MODE2)    /* gpmc_a10.rgmii2_rd1 */
            0x6c (PIN_INPUT_PULLDOWN | MUX_MODE2)    /* gpmc_a11.rgmii2_rd0 */
        >;
    };

    cpsw_sleep: cpsw_sleep {
        pinctrl-single,pins = <
            /* Slave 1 reset value */
            0x114 (PIN_INPUT_PULLDOWN | MUX_MODE7)
            0x118 (PIN_INPUT_PULLDOWN | MUX_MODE7)
            0x11c (PIN_INPUT_PULLDOWN | MUX_MODE7)
            0x120 (PIN_INPUT_PULLDOWN | MUX_MODE7)
            0x124 (PIN_INPUT_PULLDOWN | MUX_MODE7)
            0x128 (PIN_INPUT_PULLDOWN | MUX_MODE7)
            0x12c (PIN_INPUT_PULLDOWN | MUX_MODE7)
            0x130 (PIN_INPUT_PULLDOWN | MUX_MODE7)
            0x134 (PIN_INPUT_PULLDOWN | MUX_MODE7)
            0x138 (PIN_INPUT_PULLDOWN | MUX_MODE7)
            0x13c (PIN_INPUT_PULLDOWN | MUX_MODE7)
            0x140 (PIN_INPUT_PULLDOWN | MUX_MODE7)

            /* Slave 2 reset value*/
            0x40 (PIN_INPUT_PULLDOWN | MUX_MODE7)
            0x44 (PIN_INPUT_PULLDOWN | MUX_MODE7)
            0x48 (PIN_INPUT_PULLDOWN | MUX_MODE7)
            0x4c (PIN_INPUT_PULLDOWN | MUX_MODE7)
            0x50 (PIN_INPUT_PULLDOWN | MUX_MODE7)
            0x54 (PIN_INPUT_PULLDOWN | MUX_MODE7)
            0x58 (PIN_INPUT_PULLDOWN | MUX_MODE7)
            0x5c (PIN_INPUT_PULLDOWN | MUX_MODE7)
            0x60 (PIN_INPUT_PULLDOWN | MUX_MODE7)
            0x64 (PIN_INPUT_PULLDOWN | MUX_MODE7)
            0x68 (PIN_INPUT_PULLDOWN | MUX_MODE7)
            0x6c (PIN_INPUT_PULLDOWN | MUX_MODE7)
        >;
    };

&cpsw_emac0 {
    phy_id = <&davinci_mdio>, <4>;
    phy-mode = "rgmii";
    dual_emac_res_vlan = <4>;
};

&cpsw_emac1 {
    phy_id = <&davinci_mdio>, <5>;
    phy-mode = "rgmii";
    dual_emac_res_vlan = <5>;
};

&mac {
    pinctrl-names = "default", "sleep";
    pinctrl-0 = <&cpsw_default>;
    pinctrl-1 = <&cpsw_sleep>;
    dual_emac = <1>;
    status = "okay";
};

&davinci_mdio {
    pinctrl-names = "default", "sleep";
    pinctrl-0 = <&davinci_mdio_default>;
    pinctrl-1 = <&davinci_mdio_sleep>;
    status = "okay";
};

--------------------------------------------------------------------------------------------------------------------------------

启动log如下:

U-Boot SPL 2014.07-gfb6ab76 (Jul 06 2015 - 16:00:22)
reading args
spl_load_image_fat_os: error reading image args, err - -1
reading u-boot.img
reading u-boot.img


U-Boot 2014.07-gfb6ab76 (Jul 06 2015 - 16:00:22)

I2C:   ready
DRAM:  512 MiB
NAND:  0 MiB
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
reading uboot.env

** Unable to read "uboot.env" from mmc0:1 **
Using default environment

Net:   <ethaddr> not set. Validating first E-fuse MAC
Phy not found
cpsw, usb_ether
Hit any key to stop autoboot:  0
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
reading uEnv.txt
** Unable to read file uEnv.txt **
4340120 bytes read in 263 ms (15.7 MiB/s)
32587 bytes read in 22 ms (1.4 MiB/s)
Kernel image @ 0x82000000 [ 0x000000 - 0x423998 ]
## Flattened Device Tree blob at 88000000
   Booting using the fdt blob at 0x88000000
   Loading Device Tree to 8fff5000, end 8fffff4a ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 3.14.43-g875c69b (qjrobot@qjrobot-PC) (gcc version 4.9.2 20140811 (prerelease) (crosstool-NG linaro-1.13.1-4.9-2014.08 - Linaro GCC 4.9-2014.08) ) #3 Thu Jun 17 13:59:28 CST 2021
[    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine model: TI AM335x BeagleBone
[    0.000000] cma: CMA: reserved 24 MiB at 9e000000
[    0.000000] Memory policy: Data cache writeback
[    0.000000] CPU: All CPU(s) started in SVC mode.
[    0.000000] AM335X ES2.1 (sgx neon )
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 129792
[    0.000000] Kernel command line: console=ttyO0,115200n8 root=/dev/mmcblk0p2 ro rootfstype=ext4 rootwait
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 485044K/523264K available (5983K kernel code, 303K rwdata, 2148K rodata, 261K init, 232K bss, 38220K reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xe0800000 - 0xff000000   ( 488 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc07f90d4   (8133 kB)
[    0.000000]       .init : 0xc07fa000 - 0xc083b5c4   ( 262 kB)
[    0.000000]       .data : 0xc083c000 - 0xc0887d20   ( 304 kB)
[    0.000000]        .bss : 0xc0887d20 - 0xc08c1e28   ( 233 kB)
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
[    0.000000] Total of 128 interrupts on 1 active controller
[    0.000000] OMAP clockevent source: timer2 at 24000000 Hz
[    0.000010] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956969942ns
[    0.000026] OMAP clocksource: timer1 at 24000000 Hz
[    0.000235] Console: colour dummy device 80x30
[    0.000254] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
[    0.000259] This ensures that you still see kernel messages. Please
[    0.000264] update your kernel commandline.
[    0.000281] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)
[    0.089545] pid_max: default: 32768 minimum: 301
[    0.089629] Security Framework initialized
[    0.089677] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.089686] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.095225] CPU: Testing write buffer coherency: ok
[    0.095557] Setting up static identity map for 0x805dd470 - 0x805dd4c8
[    0.096339] devtmpfs: initialized
[    0.097828] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[    0.103583] omap_hwmod: tptc0 using broken dt data from edma
[    0.103651] omap_hwmod: tptc1 using broken dt data from edma
[    0.103709] omap_hwmod: tptc2 using broken dt data from edma
[    0.107641] omap_hwmod: debugss: _wait_target_disable failed
[    0.162169] pinctrl core: initialized pinctrl subsystem
[    0.163019] regulator-dummy: no parameters
[    0.165004] NET: Registered protocol family 16
[    0.166651] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.168727] cpuidle: using governor ladder
[    0.168741] cpuidle: using governor menu
[    0.173893] syscon 44e10000.control_module: regmap [mem 0x44e10000-0x44e107fb] registered
[    0.175085] platform 49000000.edma: alias fck already exists
[    0.175104] platform 49000000.edma: alias fck already exists
[    0.175115] platform 49000000.edma: alias fck already exists
[    0.176030] OMAP GPIO hardware version 0.1
[    0.186896] No ATAGs?
[    0.186916] hw-breakpoint: debug architecture 0x4 unsupported.
[    0.207855] bio: create slab <bio-0> at 0
[    0.220661] edma-dma-engine edma-dma-engine.0: TI EDMA DMA engine driver
[    0.221480] vmmcsd_fixed: 3300 mV
[    0.223883] vgaarb: loaded
[    0.224304] i2c-core: driver [palmas] using legacy suspend method
[    0.224313] i2c-core: driver [palmas] using legacy resume method
[    0.224888] SCSI subsystem initialized
[    0.226091] usbcore: registered new interface driver usbfs
[    0.226245] usbcore: registered new interface driver hub
[    0.226409] usbcore: registered new device driver usb
[    0.227217] omap_i2c 44e0b000.i2c: could not find pctldev for node /pinmux@44e10800/pinmux_i2c0_pins, deferring probe
[    0.227240] platform 44e0b000.i2c: Driver omap_i2c requests probe deferral
[    0.227557] pps_core: LinuxPPS API ver. 1 registered
[    0.227566] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.227666] PTP clock support registered
[    0.229245] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
[    0.230059] Advanced Linux Sound Architecture Driver Initialized.
[    0.231392] Switched to clocksource timer1
[    0.246984] NET: Registered protocol family 2
[    0.247701] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.247750] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.247787] TCP: Hash tables configured (established 4096 bind 4096)
[    0.247843] TCP: reno registered
[    0.247853] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.247868] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.248018] NET: Registered protocol family 1
[    0.248353] RPC: Registered named UNIX socket transport module.
[    0.248364] RPC: Registered udp transport module.
[    0.248369] RPC: Registered tcp transport module.
[    0.248374] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.249274] hw perfevents: enabled with ARMv7 Cortex-A8 PMU driver, 5 counters available
[    0.251604] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.388499] VFS: Disk quotas dquot_6.5.2
[    0.388558] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.388988] NFS: Registering the id_resolver key type
[    0.389054] Key type id_resolver registered
[    0.389061] Key type id_legacy registered
[    0.389090] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.389237] msgmni has been set to 995
[    0.390408] NET: Registered protocol family 38
[    0.390443] io scheduler noop registered
[    0.390450] io scheduler deadline registered
[    0.390474] io scheduler cfq registered (default)
[    0.391999] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
[    0.396552] Serial: 8250/16550 driver, 10 ports, IRQ sharing enabled
[    0.400889] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 88, base_baud = 3000000) is a 8250
[    1.023529] console [ttyS0] enabled
[    1.028553] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
[    1.035583] [drm] Initialized drm 1.1.0 20060810
[    1.048816] brd: module loaded
[    1.056362] loop: module loaded
[    1.059854] (hci_tty): inside hci_tty_init
[    1.064398] (hci_tty): allocated 250, 0
[    1.070648] mtdoops: mtd device (mtddev=name/number) must be supplied
[    1.080204] usbcore: registered new interface driver asix
[    1.085829] usbcore: registered new interface driver ax88179_178a
[    1.092113] usbcore: registered new interface driver cdc_ether
[    1.098141] usbcore: registered new interface driver smsc95xx
[    1.104041] usbcore: registered new interface driver net1080
[    1.109867] usbcore: registered new interface driver cdc_subset
[    1.115932] usbcore: registered new interface driver zaurus
[    1.121729] usbcore: registered new interface driver cdc_ncm
[    1.127848] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.134432] ehci-pci: EHCI PCI platform driver
[    1.139062] ehci-omap: OMAP-EHCI Host Controller driver
[    1.144719] usbcore: registered new interface driver cdc_wdm
[    1.150575] usbcore: registered new interface driver usb-storage
[    1.157499] mousedev: PS/2 mouse device common for all mice
[    1.164686] i2c-core: driver [rtc-ds1307] using legacy suspend method
[    1.171158] i2c-core: driver [rtc-ds1307] using legacy resume method
[    1.178289] omap_rtc 44e3e000.rtc: rtc core: registered 44e3e000.rtc as rtc0
[    1.186116] i2c /dev entries driver
[    1.189753] Driver for 1-wire Dallas network protocol.
[    1.196998] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[    1.283485] ledtrig-cpu: registered to indicate activity on CPUs
[    1.289780] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
[    1.296777] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
[    1.303845] usbcore: registered new interface driver usbhid
[    1.309444] usbhid: USB HID core driver
[    1.313573] platform 44d00000.wkup_m3: Driver wkup_m3 requests probe deferral
[    1.323772] oprofile: using arm/armv7
[    1.327790] TCP: cubic registered
[    1.331136] Initializing XFRM netlink socket
[    1.335499] NET: Registered protocol family 17
[    1.339999] NET: Registered protocol family 15
[    1.344614] Key type dns_resolver registered
[    1.349049] mmc0: host does not support reading read-only switch. assuming write-enable.
[    1.357698] cpu cpu0: of_pm_voltdm_notifier_register: Failed to get cpu0 regulator/voltdm: -517
[    1.366475] cpu cpu0: cpu0 clock notifier not ready, retry
[    1.372104] platform cpufreq-cpu0.0: Driver cpufreq-cpu0 requests probe deferral
[    1.379639] mmc0: new high speed SDHC card at address aaaa
[    1.385765] PM: bootloader does not support rtc-only!
[    1.390849] ThumbEE CPU extension supported.
[    1.395788] mmcblk0: mmc0:aaaa SC16G 14.8 GiB
[    1.400972] Registering SWP/SWPB emulation handler
[    1.405957]  mmcblk0: p1 p2
[    1.411057] regulator-dummy: disabling
[    1.418664] Error: Driver 'tfp410' is already registered, aborting...
[    1.425483] slave hdmi: could not get i2c
[    1.429597] platform hdmi: Driver slave requests probe deferral
[    1.436196] platform 4830e000.lcdc: Driver tilcdc requests probe deferral
[    1.447327] DCDC1: at 1500 mV
[    1.451432] vdd_mpu: 925 <--> 1375 mV at 1325 mV
[    1.457131] vdd_core: 925 <--> 1150 mV at 1125 mV
[    1.462902] LDO1: at 1800 mV
[    1.466825] LDO2: at 3300 mV
[    1.470740] LDO3: 1800 mV
[    1.474434] LDO4: at 3300 mV
[    1.478420] tps65217 0-0024: TPS65217 ID 0xe version 1.2
[    1.483812] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[    1.489924]  remoteproc0: wkup_m3 is available
[    1.494424]  remoteproc0: Note: remoteproc is still under development and considered experimental.
[    1.503438]  remoteproc0: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
[    1.514367]  remoteproc0: Direct firmware load failed with error -2
[    1.520666]  remoteproc0: Falling back to user helper
[    1.525806] cpu cpu0: of_pm_voltdm_notifier_register: Fail calculating voltage latency[950000<->1325000]:-22
[    1.538698] dummy 0-0034: Error -121 writing to cec:0xff
[    1.544327] tda998x 0-0070: Error -121 writing to REG_CURPAGE
[    1.550152] tda998x 0-0070: Error -121 reading from 0xa
[    1.555462] tda998x 0-0070: Error -121 writing to 0xa
[    1.611449] tda998x 0-0070: Error -121 reading from 0xa
[    1.616741] tda998x 0-0070: Error -121 writing to 0xa
[    1.681446] tda998x 0-0070: Error -121 reading from 0x1
[    1.686737] tda998x 0-0070: Error -121 writing to 0x1
[    1.691864] tda998x 0-0070: Error -121 reading from 0x1
[    1.697155] tda998x 0-0070: Error -121 writing to 0x1
[    1.702281] tda998x 0-0070: Error -121 writing to REG_CURPAGE
[    1.708095] tda998x 0-0070: Error -121 writing to 0x200
[    1.713396] tda998x 0-0070: Error -121 writing to 0x201
[    1.718686] tda998x 0-0070: Error -121 writing to 0x202
[    1.723987] tda998x 0-0070: Error -121 writing to 0x203
[    1.729278] tda998x 0-0070: Error -121 writing to 0x204
[    1.734578] tda998x 0-0070: Error -121 writing to 0x205
[    1.739868] tda998x 0-0070: Error -121 writing to 0x20e
[    1.745169] tda998x 0-0070: Error -121 writing to 0x211
[    1.750459] tda998x 0-0070: Error -121 writing to 0x207
[    1.755759] tda998x 0-0070: Error -121 writing to 0x208
[    1.761049] tda998x 0-0070: Error -121 writing to 0x209
[    1.766350] tda998x 0-0070: Error -121 writing to 0x20a
[    1.771650] tda998x 0-0070: Error -121 writing to 0x206
[    1.776940] tda998x 0-0070: Error -121 writing to REG_CURPAGE
[    1.782763] tda998x 0-0070: Error -121 writing to 0x27
[    1.787966] tda998x 0-0070: Error -121 reading from 0x0
[    1.793267] tda998x 0-0070: Error -121 reading from 0x2
[    1.798907] tilcdc 4830e000.lcdc: no encoders/connectors found
[    1.804835] tilcdc 4830e000.lcdc: failed to initialize mode setting
[    1.812533] pinctrl-single 44e10800.pinmux: pin 44e10854.0 already requested by leds; cannot claim for 4a100000.ethernet
[    1.823504] pinctrl-single 44e10800.pinmux: pin-21 (4a100000.ethernet) status -22
[    1.831020] pinctrl-single 44e10800.pinmux: could not request pin 21 (44e10854.0) from group cpsw_default  on device pinctrl-single
[    1.842916] cpsw 4a100000.ethernet: Error applying setting, reverse things back
[    1.911456] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
[    1.917593] davinci_mdio 4a101000.mdio: detected phy mask ffffffcf
[    1.925250] libphy: 4a101000.mdio: probed
[    1.929292] davinci_mdio 4a101000.mdio: phy[4]: device 4a101000.mdio:04, driver Atheros 8031 ethernet
[    1.938592] davinci_mdio 4a101000.mdio: phy[5]: device 4a101000.mdio:05, driver Atheros 8031 ethernet
[    1.948737] cpsw 4a100000.ethernet: Detected MACID = 2c:6b:7d:4e:99:bb
[    1.956660] cpsw 4a100000.ethernet: cpsw: Detected MACID = 2c:6b:7d:4e:99:bd
[    1.965416] omap_rtc 44e3e000.rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
[    1.977369] ALSA device list:
[    1.980368]   No soundcards found.
[    1.989698] EXT4-fs (mmcblk0p2): INFO: recovery required on readonly filesystem
[    1.997105] EXT4-fs (mmcblk0p2): write access will be enabled during recovery
[    2.184617] EXT4-fs (mmcblk0p2): recovery complete
[    2.191369] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    2.199604] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    2.211937] devtmpfs: mounted
[    2.215367] Freeing unused kernel memory: 260K (c07fa000 - c083b000)
INIT: version 2.88 booting
Error opening /dev/fb0: No such file or directory
Starting udev
[    2.982115] udevd[852]: starting version 182
[    3.398243] 47401300.usb-phy supply vcc not found, using dummy regulator
[    3.532869] 47401b00.usb-phy supply vcc not found, using dummy regulator
[    3.745598] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
Starting Bootlog daemon: bootlogd: cannot allocate pseudo tty: No such file or directory
bootlogd.
[    4.128474]  remoteproc0: powering up wkup_m3
[    4.156085]  remoteproc0: Booting fw image am335x-pm-firmware.elf, size 154412
[    4.244232] PM: CM3 Firmware Version = 0x190
[    4.280749] random: dd urandom read with 97 bits of entropy available
[    4.314125]  remoteproc0: remote processor wkup_m3 is now up
[    4.400820] davinci_evm sound: hdmi-hifi <-> 48038000.mcasp mapping ok
[    5.419783] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    5.714741] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 1
[    5.805050] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    5.811952] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    5.819206] usb usb1: Product: MUSB HDRC host driver
[    5.824202] usb usb1: Manufacturer: Linux 3.14.43-g875c69b musb-hcd
[    5.830493] usb usb1: SerialNumber: musb-hdrc.1.auto
[    5.884271] random: nonblocking pool is initialized
[    5.986625] hub 1-0:1.0: USB hub found
[    6.002655] hub 1-0:1.0: 1 port detected
[    6.208397] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.

udevadm settle - timeout of 3 seconds reached, the event queue contains:
  /sys/devices/ocp/48060000.mmc/mmc_host/mmc0/mmc0:aaaa/block/mmcblk0/mmcblk0p1 (809)
  /sys/devices/ocp/48060000.mmc/mmc_host/mmc0/mmc0:aaaa/block/mmcblk0/mmcblk0p2 (810)
ALSA: Restoring mixer settings...
No state is present for card Black
Found hardware: "TI_BeagleBone_B" "" "" "" ""
Hardware is initialized using a generic method
No state is present for card Black
Mon Jul  6 21:02:00 UTC 2015
INIT: Entering runlevel: 5
Configuring network interfaces... [    7.024971] net eth0: initializing cpsw version 1.12 (0)
[    7.111919] net eth0: phy found : id is : 0x4dd074
udhcpc (v1.22.1) started
Sending discover...
[   10.112295] libphy: 4a101000.mdio:04 - Link is Up - 100/Full
Sending discover...
Sending discover...
No lease, forking to background
done.
Starting system message bus: dbus.
UIM SYSFS Node Not Found
Starting Dropbear SSH server: dropbear.
Starting telnet daemon.
Starting rpcbind daemon...rpcbind: cannot create socket for udp6
rpcbind: cannot create socket for tcp6
done.
creating NFS state directory: done
starting statd: done
Starting syslogd/klogd: done
Starting thttpd.
Starting Lighttpd Web Server: lighttpd.
2015-07-06 21:02:11: (/home/gtbldadm/ti/oe-layersetup/build-CORTEX_1/arago-tmp-external-linaro-toolchain/work/cortexa8t2hf-vfp-neon-linux-gnueabi/lighttpd/1.4.33-r1/lighttpd-1.4.33/src/log.c.166) server started
/
Starting Matrix GUI application.
Enabling thermal zones...
/etc/rc5.d/S98thermal-zone-init: line 7: /sys/class/thermal/thermal_zone*/mode: No such file or directory
***************************************************************
***************************************************************
NOTICE: This file system contains the followin GPLv3 packages:
        autoconf
        binutils
        cpp-symlinks
        cpp
        g++-symlinks
        g++
        gcc-symlinks
        gcc
        gdbserver
        gstreamer1.0-libav
        libgmp10
        libmpc3
        libmpfr4
        make

If you do not wish to distribute GPLv3 components please remove
the above packages prior to distribution.  This can be done using
the opkg remove command.  i.e.:
    opkg remove <package>
Where <package> is the name printed in the list above

NOTE: If the package is a dependency of another package you
      will be notified of the dependent packages.  You should
      use the --force-removal-of-dependent-packages option to
      also remove the dependent packages as well
***************************************************************
***************************************************************
Stopping Bootlog daemon: bootlogd.

 _____                    _____           _         _   
|  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_
|     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
|__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|  
              |___|                    |___|            

Arago Project http://arago-project.org am335x-evm /dev/ttyO0

Arago 2015.05 am335x-evm /dev/ttyO0

am335x-evm login:

------------------------------------------------------------------------------------------------------------------

目前遇到的问题是无法ping通pc机,硬件方面的问题可以排除掉,想问我在软件配置方面有没有问题?

期待您的回复,谢谢!

  • phy是能被识别的。

    软件配置方面暂时没看出什么问题。

    详细可阅读 Dual Standalone EMAC mode

    software-dl.ti.com/.../CPSW.html

    可否将以下指令的结果贴出来一下。

    ethtool eth0/eth1

    ethtool -S eth0/eth1

  • root@am335x-evm:~# ./ethtool eth0
    Settings for eth0:
    Supported ports: [ TP AUI BNC MII FIBRE ]
    Supported link modes: 10baseT/Half 10baseT/Full
    100baseT/Half 100baseT/Full
    1000baseT/Full
    Supported pause frame use: No
    Supports auto-negotiation: Yes
    Advertised link modes: 10baseT/Half 10baseT/Full
    100baseT/Half 100baseT/Full
    1000baseT/Full
    Advertised pause frame use: No
    Advertised auto-negotiation: Yes
    Link partner advertised link modes: 10baseT/Half 10baseT/Full
    100baseT/Half 100baseT/Full
    Link partner advertised pause frame use: Symmetric
    Link partner advertised auto-negotiation: Yes
    Speed: 100Mb/s
    Duplex: Full
    Port: MII
    PHYAD: 4
    Transceiver: external
    Auto-negotiation: on
    Supports Wake-on: g
    Wake-on: d
    Current message level: 0x00000000 (0)

    Link detected: yes
    root@am335x-evm:~# ./ethtool -S eth0
    NIC statistics:
    Good Rx Frames: 0
    Broadcast Rx Frames: 0
    Multicast Rx Frames: 0
    Pause Rx Frames: 0
    Rx CRC Errors: 0
    Rx Align/Code Errors: 0
    Oversize Rx Frames: 0
    Rx Jabbers: 0
    Undersize (Short) Rx Frames: 0
    Rx Fragments: 0
    Rx Octets: 0
    Good Tx Frames: 17
    Broadcast Tx Frames: 17
    Multicast Tx Frames: 0
    Pause Tx Frames: 0
    Deferred Tx Frames: 0
    Collisions: 0
    Single Collision Tx Frames: 0
    Multiple Collision Tx Frames: 0
    Excessive Collisions: 0
    Late Collisions: 0
    Tx Underrun: 0
    Carrier Sense Errors: 0
    Tx Octets: 5036
    Rx + Tx 64 Octet Frames: 3
    Rx + Tx 65-127 Octet Frames: 0
    Rx + Tx 128-255 Octet Frames: 0
    Rx + Tx 256-511 Octet Frames: 14
    Rx + Tx 512-1023 Octet Frames: 0
    Rx + Tx 1024-Up Octet Frames: 0
    Net Octets: 5036
    Rx Start of Frame Overruns: 0
    Rx Middle of Frame Overruns: 0
    Rx DMA Overruns: 0
    Rx DMA chan: head_enqueue: 1
    Rx DMA chan: tail_enqueue: 63
    Rx DMA chan: pad_enqueue: 0
    Rx DMA chan: misqueued: 0
    Rx DMA chan: desc_alloc_fail: 0
    Rx DMA chan: pad_alloc_fail: 0
    Rx DMA chan: runt_receive_buf: 0
    Rx DMA chan: runt_transmit_buf: 0
    Rx DMA chan: empty_dequeue: 0
    Rx DMA chan: busy_dequeue: 0
    Rx DMA chan: good_dequeue: 0
    Rx DMA chan: requeue: 0
    Rx DMA chan: teardown_dequeue: 0
    Tx DMA chan: head_enqueue: 17
    Tx DMA chan: tail_enqueue: 0
    Tx DMA chan: pad_enqueue: 0
    Tx DMA chan: misqueued: 0
    Tx DMA chan: desc_alloc_fail: 0
    Tx DMA chan: pad_alloc_fail: 0
    Tx DMA chan: runt_receive_buf: 0
    Tx DMA chan: runt_transmit_buf: 3
    Tx DMA chan: empty_dequeue: 17
    Tx DMA chan: busy_dequeue: 0
    Tx DMA chan: good_dequeue: 17
    Tx DMA chan: requeue: 17
    Tx DMA chan: teardown_dequeue: 0

  • Speed: 100Mb/s
    Duplex: Full
    Port: MII
    PHYAD: 4
    Transceiver: external
    Auto-negotiation: on
    Supports Wake-on: g
    Wake-on: d
    Current message level: 0x00000000 (0)

    Link detected: yes

    从打印信息来看网口link成功了。

    ping主机的时候有没有修改成同一网段进行测试?

  • 是同一网段的

  • 我用linux4.9是可以ping通的,但是3.14就不行

  • 前面贴出来的测试结果都是在3.14版本下测试的是吗?

    看link状态没有问题,两个版本对比看一下测试结果是否有什么不同,或者再抓包看一下。

    可能需要咨询一下产品线工程师。

  • 上面贴出来的是3.14的测试结果和boot log

  • 以下是4.9内核 SDK版本

    PROCESSOR-SDK-LINUX-AM335X  04_03_00_05的启动log,替换了设备树文件

    -----------------------------------------------------------------------------------

    U-Boot SPL 2017.01-gc68ed086bd (Mar 26 2018 - 15:08:11)
    Trying to boot from MMC1
    reading uboot.env

    ** Unable to read "uboot.env" from mmc0:1 **
    Using default environment

    reading u-boot.img
    reading u-boot.img
    reading u-boot.img
    reading u-boot.img


    U-Boot 2017.01-gc68ed086bd (Mar 26 2018 - 15:08:11 -0400)

    CPU  : AM335X-GP rev 2.1
    Model: TI AM335x BeagleBone Black
    DRAM:  512 MiB
    NAND:  0 MiB
    MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
    reading uboot.env

    ** Unable to read "uboot.env" from mmc0:1 **
    Using default environment

    <ethaddr> not set. Validating first E-fuse MAC
    Net:   Could not get PHY for cpsw: addr 0
    cpsw, usb_ether
    Hit any key to stop autoboot:  0
    switch to partitions #0, OK
    mmc0 is current device
    SD/MMC found on device 0
    reading boot.scr
    ** Unable to read file boot.scr **
    reading uEnv.txt
    ** Unable to read file uEnv.txt **
    switch to partitions #0, OK
    mmc0 is current device
    Scanning mmc 0:1...
    switch to partitions #0, OK
    mmc0 is current device
    SD/MMC found on device 0
    3627816 bytes read in 325 ms (10.6 MiB/s)
    38186 bytes read in 19 ms (1.9 MiB/s)
    ## Flattened Device Tree blob at 88000000
       Booting using the fdt blob at 0x88000000
       Loading Device Tree to 8fff3000, end 8ffff529 ... OK

    Starting kernel ...

    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Linux version 4.9.69-g9ce43c71ae (gtbldadm@ubuntu-16) (gcc version 6.2.1 20161016 (Linaro GCC 6.2-2016.11) ) #1 PREEMPT Mon Mar 26 12:11:28 EDT 2018
    [    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
    [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [    0.000000] OF: fdt:Machine model: TI AM335x BeagleBone Black
    [    0.000000] efi: Getting EFI parameters from FDT:
    [    0.000000] efi: UEFI not found.
    [    0.000000] cma: Reserved 48 MiB at 0x9d000000
    [    0.000000] Memory policy: Data cache writeback
    [    0.000000] CPU: All CPU(s) started in SVC mode.
    [    0.000000] AM335X ES2.1 (sgx neon)
    [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 129920
    [    0.000000] Kernel command line: console=ttyO0,115200n8 root=PARTUUID=2f6a26a9-02 rw rootfstype=ext4 rootwait
    [    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
    [    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
    [    0.000000] Memory: 457972K/524288K available (7168K kernel code, 281K rwdata, 2424K rodata, 1024K init, 280K bss, 17164K reserved, 49152K cma-reserved, 0K highmem)
    [    0.000000] Virtual kernel memory layout:
    [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    [    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    [    0.000000]     vmalloc : 0xe0800000 - 0xff800000   ( 496 MB)
    [    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
    [    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    [    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
    [    0.000000]       .text : 0xc0008000 - 0xc0800000   (8160 kB)
    [    0.000000]       .init : 0xc0b00000 - 0xc0c00000   (1024 kB)
    [    0.000000]       .data : 0xc0c00000 - 0xc0c46750   ( 282 kB)
    [    0.000000]        .bss : 0xc0c46750 - 0xc0c8c9b4   ( 281 kB)
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    [    0.000000] Preemptible hierarchical RCU implementation.
    [    0.000000]  Build-time adjustment of leaf fanout to 32.
    [    0.000000] NR_IRQS:16 nr_irqs:16 16
    [    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
    [    0.000000] OMAP clockevent source: timer2 at 24000000 Hz
    [    0.000014] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
    [    0.000033] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
    [    0.000041] OMAP clocksource: timer1 at 24000000 Hz
    [    0.000187] clocksource_probe: no matching clocksources found
    [    0.000341] Console: colour dummy device 80x30
    [    0.000364] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
    [    0.000370] This ensures that you still see kernel messages. Please
    [    0.000375] update your kernel commandline.
    [    0.000395] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)
    [    0.089238] pid_max: default: 32768 minimum: 301
    [    0.089357] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.089366] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.090069] CPU: Testing write buffer coherency: ok
    [    0.090410] Setting up static identity map for 0x80100000 - 0x80100060
    [    0.091158] EFI services will not be available.
    [    0.092305] devtmpfs: initialized
    [    0.102401] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [    0.102724] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [    0.102747] futex hash table entries: 256 (order: -1, 3072 bytes)
    [    0.106015] pinctrl core: initialized pinctrl subsystem
    [    0.107138] NET: Registered protocol family 16
    [    0.108781] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [    0.121884] omap_hwmod: debugss: _wait_target_disable failed
    [    0.199232] cpuidle: using governor ladder
    [    0.229217] cpuidle: using governor menu
    [    0.234578] OMAP GPIO hardware version 0.1
    [    0.248144] No ATAGs?
    [    0.248168] hw-breakpoint: debug architecture 0x4 unsupported.
    [    0.286466] edma 49000000.edma: TI EDMA DMA engine driver
    [    0.289459] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c0_pins, deferring probe
    [    0.289514] omap_i2c 4819c000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c2_pins, deferring probe
    [    0.289633] media: Linux media interface: v0.10
    [    0.289694] Linux video capture interface: v2.00
    [    0.289732] pps_core: LinuxPPS API ver. 1 registered
    [    0.289738] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.289760] PTP clock support registered
    [    0.289798] EDAC MC: Ver: 3.0.0
    [    0.290777] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
    [    0.291074] Advanced Linux Sound Architecture Driver Initialized.
    [    0.292203] clocksource: Switched to clocksource timer1
    [    0.301226] NET: Registered protocol family 2
    [    0.301913] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
    [    0.301958] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
    [    0.301996] TCP: Hash tables configured (established 4096 bind 4096)
    [    0.302060] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [    0.302077] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [    0.302256] NET: Registered protocol family 1
    [    0.302657] RPC: Registered named UNIX socket transport module.
    [    0.302668] RPC: Registered udp transport module.
    [    0.302674] RPC: Registered tcp transport module.
    [    0.302679] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.303502] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
    [    0.305597] workingset: timestamp_bits=14 max_order=17 bucket_order=3
    [    0.312151] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    0.313205] NFS: Registering the id_resolver key type
    [    0.313244] Key type id_resolver registered
    [    0.313251] Key type id_legacy registered
    [    0.313293] ntfs: driver 2.1.32 [Flags: R/O].
    [    0.315005] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
    [    0.315023] io scheduler noop registered
    [    0.315029] io scheduler deadline registered
    [    0.315166] io scheduler cfq registered (default)
    [    0.316335] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
    [    0.370810] Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled
    [    0.374230] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 158, base_baud = 3000000) is a 8250
    [    0.969056] console [ttyS0] enabled
    [    0.974151] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
    [    0.980907] [drm] Initialized
    [    0.996274] brd: module loaded
    [    1.005127] loop: module loaded
    [    1.010194] libphy: Fixed MDIO Bus: probed
    [    1.082287] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
    [    1.088426] davinci_mdio 4a101000.mdio: detected phy mask ffffffcf
    [    1.096017] libphy: 4a101000.mdio: probed
    [    1.100061] davinci_mdio 4a101000.mdio: phy[4]: device 4a101000.mdio:04, driver Atheros 8031 ethernet
    [    1.109413] davinci_mdio 4a101000.mdio: phy[5]: device 4a101000.mdio:05, driver Atheros 8031 ethernet
    [    1.119389] cpsw 4a100000.ethernet: Detected MACID = 2c:6b:7d:4e:99:bb
    [    1.126231] cpsw 4a100000.ethernet: device node lookup for pps timer failed
    [    1.133307] cpsw 4a100000.ethernet: cpts: overflow check period 500 (jiffies)
    [    1.141472] cpsw 4a100000.ethernet: cpsw: Detected MACID = 2c:6b:7d:4e:99:bd
    [    1.150037] mousedev: PS/2 mouse device common for all mice
    [    1.156050] i2c /dev entries driver
    [    1.161094] cpuidle: enable-method property 'ti,am3352' found operations
    [    1.168805] omap_hsmmc 48060000.mmc: Got CD GPIO
    [    1.292639] pinctrl-single 44e10800.pinmux: pin PIN21 already requested by 4a100000.ethernet; cannot claim for leds
    [    1.303345] pinctrl-single 44e10800.pinmux: pin-21 (leds) status -22
    [    1.309886] pinctrl-single 44e10800.pinmux: could not request pin 21 (PIN21) from group user_leds_s0  on device pinctrl-single
    [    1.321418] leds-gpio leds: Error applying setting, reverse things back
    [    1.329159] leds-gpio: probe of leds failed with error -22
    [    1.336969] ledtrig-cpu: registered to indicate activity on CPUs
    [    1.344717] pinctrl-single 44e10800.pinmux: pin PIN27 already requested by 4a100000.ethernet; cannot claim for 48038000.mcasp
    [    1.356289] pinctrl-single 44e10800.pinmux: pin-27 (48038000.mcasp) status -22
    [    1.363663] pinctrl-single 44e10800.pinmux: could not request pin 27 (PIN27) from group mcasp0_pins  on device pinctrl-single
    [    1.375127] davinci-mcasp 48038000.mcasp: Error applying setting, reverse things back
    [    1.383076] mmc0: host does not support reading read-only switch, assuming write-enable
    [    1.392270] mmc0: new high speed SDHC card at address aaaa
    [    1.398230] davinci-mcasp: probe of 48038000.mcasp failed with error -22
    [    1.405222] mmcblk0: mmc0:aaaa SC16G 14.8 GiB
    [    1.410549]  mmcblk0: p1 p2
    [    1.415084] NET: Registered protocol family 10
    [    1.420830] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
    [    1.427629] NET: Registered protocol family 17
    [    1.432474] Key type dns_resolver registered
    [    1.436974] omap_voltage_late_init: Voltage driver support not added
    [    1.476628] random: fast init done
    [    1.483498] tps65217 0-0024: TPS65217 ID 0xe version 1.2
    [    1.489349] at24 0-0050: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
    [    1.497510] tda998x 0-0070: Error -121 writing to cec:0xff
    [    1.503154] tda998x 0-0070: set_page 000a err -121
    [    1.572293] tda998x 0-0070: set_page 000a err -121
    [    1.642265] tda998x 0-0070: set_page 0001 err -121
    [    1.647129] tda998x 0-0070: set_page 0001 err -121
    [    1.651988] tda998x 0-0070: set_page 0200 err -121
    [    1.656862] tda998x 0-0070: set_page 0201 err -121
    [    1.661720] tda998x 0-0070: set_page 0202 err -121
    [    1.666592] tda998x 0-0070: set_page 0203 err -121
    [    1.671450] tda998x 0-0070: set_page 0204 err -121
    [    1.676321] tda998x 0-0070: set_page 0205 err -121
    [    1.681178] tda998x 0-0070: set_page 020e err -121
    [    1.686049] tda998x 0-0070: set_page 0211 err -121
    [    1.690908] tda998x 0-0070: set_page 0207 err -121
    [    1.695778] tda998x 0-0070: set_page 0208 err -121
    [    1.700637] tda998x 0-0070: set_page 0209 err -121
    [    1.705508] tda998x 0-0070: set_page 020a err -121
    [    1.710366] tda998x 0-0070: set_page 0206 err -121
    [    1.715237] tda998x 0-0070: set_page 0027 err -121
    [    1.720095] tda998x 0-0070: set_page 0000 err -121
    [    1.724966] tda998x 0-0070: set_page 0002 err -121
    [    1.729902] tilcdc 4830e000.lcdc: failed to bind 0-0070 (ops tda998x_ops): -6
    [    1.737267] tilcdc 4830e000.lcdc: master bind failed: -6
    [    1.742803] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
    [    2.802235] omap_i2c 4819c000.i2c: controller timed out
    [    3.922225] omap_i2c 4819c000.i2c: controller timed out
    [    5.042220] omap_i2c 4819c000.i2c: controller timed out
    [    6.162219] omap_i2c 4819c000.i2c: controller timed out
    [    6.193779] omap_i2c 4819c000.i2c: bus 2 rev0.11 at 100 kHz
    [    6.201398] hctosys: unable to open rtc device (rtc0)
    [    6.207082] ALSA device list:
    [    6.210071]   No soundcards found.
    [    6.871445] EXT4-fs (mmcblk0p2): recovery complete
    [    6.879737] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
    [    6.888062] VFS: Mounted root (ext4 filesystem) on device 179:2.
    [    6.903731] devtmpfs: mounted
    [    6.910860] Freeing unused kernel memory: 1024K
    [    7.152637] systemd[1]: System time before build time, advancing clock.
    [    7.201580] systemd[1]: systemd 230 running in system mode. (+PAM -AUDIT -SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP -GCRYPT -GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD -IDN)
    [    7.220768] systemd[1]: Detected architecture arm.

    Welcome to Arago 2017.12!

    [    7.265618] systemd[1]: Set hostname to <am335x-evm>.
    [    7.544531] systemd[1]: [/lib/systemd/system/gadget-init.service:15] Unknown lvalue 'ExecStopPre' in section 'Service'
    [    7.822521] systemd[1]: Created slice User and Session Slice.
    [  OK  ] Created slice User and Session Slice.
    [    7.860836] systemd[1]: Listening on Process Core Dump Socket.
    [  OK  ] Listening on Process Core Dump Socket.
    [    7.893113] systemd[1]: Listening on udev Kernel Socket.
    [  OK  ] Listening on udev Kernel Socket.
    [    7.922911] systemd[1]: Listening on Journal Socket.
    [  OK  ] Listening on Journal Socket.
    [    7.952907] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
    [  OK  ] Started Forward Password Requests to Wall Directory Watch.
    [    7.993643] systemd[1]: Created slice System Slice.
    [  OK  ] Created slice System Slice.
             Starting alignment.service...
             Starting Create Static Device Nodes in /dev...
             Starting Setup Virtual Console...
    [  OK  ] Created slice system-getty.slice.
    [  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
    [  OK  ] Listening on Journal Socket (/dev/log).
             Mounting Debug File System...
             Starting Load Kernel Modules...
    [  OK  ] Reached target Swap.
    [    8.342045] cryptodev: loading out-of-tree module taints kernel.
    [    8.350232] cryptodev: driver 1.8 loaded.
    [  OK  ] Reached target Remote File Systems.
    [  OK  ] Reached target Slices.
    [    8.393516] usbcore: registered new interface driver usbfs
    [    8.399122] usbcore: registered new interface driver hub
    [    8.404685] usbcore: registered new device driver usb
             Starting Remount Root and Kernel File Systems...
    [    8.423879] usbcore: registered new interface driver usbserial
    [  OK  ] Started Dispatch Password Requests to Console Directory Watch.
    [    8.447934] usbcore: registered new interface driver ftdi_sio
    [    8.470593] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
    [  OK  ] Reached target Paths.
    [    8.503228] usbserial: USB Serial support registered for FTDI USB Serial Device
    [  OK  ] Listening on Syslog Socket.
             Starting Journal Service...
    [  OK  ] Listening on Network Service Netlink Socket.
    [  OK  ] Listening on udev Control Socket.
             Mounting Temporary Directory...
             Mounting POSIX Message Queue File System...
    [  OK  ] Created slice system-serial\x2dgetty.slice.
    [  OK  ] Mounted Debug File System.
    [  OK  ] Mounted POSIX Message Queue File System.
    [  OK  ] Mounted Temporary Directory.
    [  OK  ] Started Journal Service.
    [  OK  ] Started alignment.service.
    [  OK  ] Started Create Static Device Nodes in /dev.
    [  OK  ] Started Setup Virtual Console.
    [  OK  ] Started Load Kernel Modules.
    [  OK  ] Started Remount Root and Kernel File Systems.
             Starting udev Coldplug all Devices...
             Mounting Configuration File System...
             Starting Apply Kernel Variables...
             Starting udev Kernel Device Manager...
    [  OK  ] Reached target Local File Systems (Pre).
             Mounting /media/ram...
             Mounting /var/volatile...
             Starting Flush Journal to Persistent Storage...
    [  OK  ] Mounted Configuration File System.
    [  OK  ] Mounted /var/volatile.
    [  OK  ] Mounted /media/ram.
    [  OK  ] Started Apply Kernel Variables.
    [  OK  ] Started udev Kernel Device Manager.
    [    9.616987] systemd-journald[101]: Received request to flush runtime journal from PID 1
             Starting Load/Save Random Seed...
    [  OK  ] Reached target Local File Systems.
    [  OK  ] Started Flush Journal to Persistent Storage.
    [  OK  ] Started Load/Save Random Seed.
             Starting Create Volatile Files and Directories...
    [  OK  ] Started Create Volatile Files and Directories.
             Starting Network Time Synchronization...
             Starting Update UTMP about System Boot/Shutdown...
    [  OK  ] Started Update UTMP about System Boot/Shutdown.
    [  OK  ] Started Network Time Synchronization.
    [  OK  ] Reached target System Time Synchronized.
    [   10.898400] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [   10.981115] omap_rtc 44e3e000.rtc: rtc core: registered 44e3e000.rtc as rtc0
    [  OK  ] Started udev Coldplug all Devices.
    [  OK  ] Found device /dev/ttyS0.
    [  OK  ] Reached target System Initialization.
    [  OK  ] Listening on dropbear.socket.
    [  OK  ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
    [  OK  ] Listening on RPCbind Server Activation Socket.
    [  OK  ] Started Daily Cleanup of Temporary Directories.
    [  OK  ] Reached target Timers.
    [  OK  ] Listening on D-Bus System Message Bus Socket.
    [  OK  ] Reached target Sockets.
    [  OK  ] Reached target Basic System.
    [  OK  ] Started Kernel Logging Service.
             Starting Print notice about GPLv3 packages...
    [  OK  ] Started System Logging Service.
    [  OK  ] Started D-Bus System Message Bus.
    [   11.880900] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
    [   12.071123] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
    [   12.107572] omap-aes 53500000.aes: will run requests pump with realtime priority
    [   12.177973] remoteproc remoteproc0: wkup_m3 is available
    [   12.233601] remoteproc remoteproc0: powering up wkup_m3
    [   12.256140] PM: Cannot get wkup_m3_ipc handle
    [   12.260025] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf, size 224268
    [   12.260286] remoteproc remoteproc0: remote processor wkup_m3 is now up
    [   12.260309] wkup_m3_ipc 44e11324.wkup_m3_ipc: CM3 Firmware Version = 0x192
             Starting Network Service...
    [  OK  ] Started Job spooling tools.
             Starting uim-sysfs.service...
    [   12.837394] PM: bootloader does not support rtc-only!
    [   12.852903] [drm] Initialized pvr 1.14.3699939 20110701 on minor 0
             Starting Telephony service...
             Starting Avahi mDNS/DNS-SD Stack...
             Starting Login Service...
    [  OK  ] Started Periodic Command Scheduler.
    [  OK  ] Found device /dev/ttyS3.
    [  OK  ] Started Network Service.
    [   13.879124] Bluetooth: Core ver 2.22
    [   14.016962] net eth1: initializing cpsw version 1.12 (0)
    [   14.016974] cpsw 4a100000.ethernet: initialized cpsw ale version 1.4
    [   14.016979] cpsw 4a100000.ethernet: ALE Table size 1024
    [   14.112960] Atheros 8031 ethernet 4a101000.mdio:05: attached PHY driver [Atheros 8031 ethernet] (mii_bus:phy_addr=4a101000.mdio:05, irq=-1)
    [   14.133753] cpts ptp bc clkid 0
    [   14.137936] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
    [   14.304938] net eth0: initializing cpsw version 1.12 (0)
    [   14.452903] Atheros 8031 ethernet 4a101000.mdio:04: attached PHY driver [Atheros 8031 ethernet] (mii_bus:phy_addr=4a101000.mdio:04, irq=-1)
    [   14.546511] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    [  OK  ] Started Telephony service.
    [   15.253629] NET: Registered protocol family 31
    [   15.258114] Bluetooth: HCI device and connection manager initialized
    [   15.405524] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
    [   15.603650] Bluetooth: HCI socket layer initialized
    [   15.608576] Bluetooth: L2CAP socket layer initialized
    [   15.754369] Bluetooth: SCO socket layer initialized
    [  OK  ] Started Avahi mDNS/DNS-SD Stack.
    [  OK  ] Started Login Service.
    [  OK  ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.
    [  OK  ] Reached target Network.
             Starting Lightning Fast Webserver With Light System Requirements...
             Starting Permit User Sessions...
    [[   16.563499] cpsw 4a100000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
    [   16.571606] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
      OK  ] Started strongSwan IPsec IKEv1/IKEv2 daemon using ipsec.conf.
             Starting Simple Network Management Protocol (SNMP) Daemon....
             Starting Enable and configure wl18xx bluetooth stack...
             Starting Network Name Resolution...
             Starting Wait for Network to be Configured...
    [  OK  ] Started Lightning Fast Webserver With Light System Requirements.
    [  OK  ] Started Permit User Sessions.
    [  OK  ] Started Enable and configure wl18xx bluetooth stack.
    [  OK  ] Started Network Name Resolution.
    [  OK  ] Found device /dev/mmcblk0p1.
             Starting Start USB gadget...
    [  OK  ] Started Getty on tty1.
    [  OK  ] Started Serial Getty on ttyS0.
    [   17.789233] NET: Registered protocol family 15
    [  OK  ] Started Serial Getty on ttyS3.
    [   18.400432] udc-core: couldn't find an available UDC - added [g_multi] to list of pending drivers
    [   18.943869] Initializing XFRM netlink socket
    [   19.292344] random: crng init done
    [  OK  ] Started Simple Network Management Protocol (SNMP) Daemon..
    [FAILED] Failed to start Start USB gadget.
    See 'systemctl status gadget-init.service' for details.
    [  OK  ] Started uim-sysfs.service.
    [   20.810609] 47401300.usb-phy supply vcc not found, using dummy regulator
    [   20.841822] 47401b00.usb-phy supply vcc not found, using dummy regulator
    [   21.074066] using random self ethernet address
    [   21.094582] using random host ethernet address
    [   21.145579] using host ethernet address: 2C:6B:7D:4E:99:BD[   21.150985] using random self ethernet address
    [   21.296202] using random host ethernet address
    [   21.348672] ti-pruss 4a300000.pruss: creating PRU cores and other child platform devices
    [   21.361884] using host ethernet address: 2C:6B:7D:4E:99:BD[   21.394800] irq: no irq domain found for /ocp/pruss_soc_bus@4a326000/pruss@4a300000/intc@4a320000 !
    [   21.408223] irq: no irq domain found for /ocp/pruss_soc_bus@4a326000/pruss@4a300000/intc@4a320000 !
    [   21.708536] usb0: HOST MAC 2c:6b:7d:4e:99:bd
    [   21.759398] usb0: MAC fa:28:de:35:28:ac
    [   21.894526] remoteproc remoteproc1: 4a334000.pru0 is available
    [   21.921751] Mass Storage Function, version: 2009/09/11
    [   21.921766] LUN: removable file: (no medium)
    [   21.921966] LUN: removable read only file: /dev/mmcblk0p1
    [   21.921969] Number of LUNs=1
    [   21.927524] g_multi gadget: Multifunction Composite Gadget
    [   21.927534] g_multi gadget: g_multi ready
    [   21.953777] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
    [   21.953814] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 1
    [   21.975106] hub 1-0:1.0: USB hub found
    [   21.975175] hub 1-0:1.0: 1 port detected
    [   22.250295] pru-rproc 4a334000.pru0: PRU rproc node /ocp/pruss_soc_bus@4a326000/pruss@4a300000/pru@4a334000 probed successfully
    [   22.355099] remoteproc remoteproc2: 4a338000.pru1 is available
    [   22.361050] pru-rproc 4a338000.pru1: PRU rproc node /ocp/pruss_soc_bus@4a326000/pruss@4a300000/pru@4a338000 probed successfully
    [   22.502525] IPv6: ADDRCONF(NETDEV_UP): usb0: link is not ready

     _____                    _____           _         _   
    |  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_
    |     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
    |__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|  
                  |___|                    |___|            

    Arago Project http://arago-project.org am335x-evm ttyS0

    Arago 2017.12 am335x-evm ttyS0

    am335x-evm login: [   24.319757] PVR_K: UM DDK-(3699939) and KM DDK-(3699939) match. [ OK ]
    ***************************************************************
    ***************************************************************
    NOTICE: This file system contains the following GPLv3 packages:
            autoconf
            binutils
            cifs-utils
            cpio
            cpp-symlinks
            cpp
            dosfstools
            findutils
            g++-symlinks
            g++
            gawk-dev
            gawk
            gcc-symlinks
            gcc
            gdb
            gdbserver
            glmark2
            gstreamer1.0-libav
            gzip
            hidapi
            libcairo-perf-utils
            libgmp10
            libidn11
            libmavconn
            libmpc3
            libmpfr4
            libreadline-dev
            libreadline6
            m4-dev
            m4
            make
            mavlink
            mavros-extras
            mavros-msgs
            mavros
            nettle
            socketcan-interface
            swig-dev
            swig
            which

    If you do not wish to distribute GPLv3 components please remove
    the above packages prior to distribution.  This can be done using
    the opkg remove command.  i.e.:
        opkg remove <package>
    Where <package> is the name printed in the list above

    NOTE: If the package is a dependency of another package you
          will be notified of the dependent packages.  You should
          use the --force-removal-of-dependent-packages option to
          also remove the dependent packages as well
    ***************************************************************
    ***************************************************************

     _____                    _____           _         _   
    |  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_
    |     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
    |__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|  
                  |___|                    |___|            

    Arago Project http://arago-project.org am335x-evm ttyS0

    Arago 2017.12 am335x-evm ttyS0

    am335x-evm login:

  • 以下是4.9内核ping通的信息:


    root@am335x-evm:~# ifconfig eth0 192.168.1.100
    root@am335x-evm:~# ping 192.168.1.10
    PING 192.168.1.10 (192.168.1.10): 56 data bytes
    64 bytes from 192.168.1.10: seq=0 ttl=64 time=6.557 ms
    64 bytes from 192.168.1.10: seq=1 ttl=64 time=2.934 ms
    64 bytes from 192.168.1.10: seq=2 ttl=64 time=3.028 ms
    64 bytes from 192.168.1.10: seq=3 ttl=64 time=2.860 ms
    64 bytes from 192.168.1.10: seq=4 ttl=64 time=2.927 ms
    64 bytes from 192.168.1.10: seq=5 ttl=64 time=2.861 ms
    64 bytes from 192.168.1.10: seq=6 ttl=64 time=2.905 ms
    64 bytes from 192.168.1.10: seq=7 ttl=64 time=2.678 ms
    64 bytes from 192.168.1.10: seq=8 ttl=64 time=2.844 ms
    64 bytes from 192.168.1.10: seq=9 ttl=64 time=2.943 ms
    ^C
    --- 192.168.1.10 ping statistics ---
    10 packets transmitted, 10 packets received, 0% packet loss
    round-trip min/avg/max = 2.678/3.253/6.557 ms
    root@am335x-evm:~# ./ethtool eth0
    Settings for eth0:
            Supported ports: [ TP MII ]
            Supported link modes:   10baseT/Half 10baseT/Full
                                    100baseT/Half 100baseT/Full
                                    1000baseT/Full
            Supported pause frame use: No
            Supports auto-negotiation: Yes
            Advertised link modes:  10baseT/Half 10baseT/Full
                                    100baseT/Half 100baseT/Full
                                    1000baseT/Full
            Advertised pause frame use: No
            Advertised auto-negotiation: Yes
            Link partner advertised link modes:  10baseT/Half 10baseT/Full
                                                 100baseT/Half 100baseT/Full
            Link partner advertised pause frame use: Symmetric
            Link partner advertised auto-negotiation: Yes
            Speed: 100Mb/s
            Duplex: Full
            Port: MII
            PHYAD: 4
            Transceiver: external
            Auto-negotiation: on
            Supports Wake-on: g
            Wake-on: d
            Current message level: 0x00000000 (0)
                                   
            Link detected: yes
    root@am335x-evm:~# ./ethtool -S eth0
    NIC statistics:
         Good Rx Frames: 173
         Broadcast Rx Frames: 94
         Multicast Rx Frames: 67
         Pause Rx Frames: 0
         Rx CRC Errors: 0
         Rx Align/Code Errors: 0
         Oversize Rx Frames: 0
         Rx Jabbers: 0
         Undersize (Short) Rx Frames: 0
         Rx Fragments: 0
         Rx Octets: 18947
         Good Tx Frames: 71
         Broadcast Tx Frames: 8
         Multicast Tx Frames: 52
         Pause Tx Frames: 0
         Deferred Tx Frames: 0
         Collisions: 0
         Single Collision Tx Frames: 0
         Multiple Collision Tx Frames: 0
         Excessive Collisions: 0
         Late Collisions: 0
         Tx Underrun: 0
         Carrier Sense Errors: 0
         Tx Octets: 12282
         Rx + Tx 64 Octet Frames: 10
         Rx + Tx 65-127 Octet Frames: 176
         Rx + Tx 128-255 Octet Frames: 40
         Rx + Tx 256-511 Octet Frames: 18
         Rx + Tx 512-1023 Octet Frames: 0
         Rx + Tx 1024-Up Octet Frames: 0
         Net Octets: 31229
         Rx Start of Frame Overruns: 0
         Rx Middle of Frame Overruns: 0
         Rx DMA Overruns: 0
         Rx DMA chan 0: head_enqueue: 1
         Rx DMA chan 0: tail_enqueue: 258
         Rx DMA chan 0: pad_enqueue: 0
         Rx DMA chan 0: misqueued: 0
         Rx DMA chan 0: desc_alloc_fail: 0
         Rx DMA chan 0: pad_alloc_fail: 0
         Rx DMA chan 0: runt_receive_buf: 0
         Rx DMA chan 0: runt_transmit_bu: 0
         Rx DMA chan 0: empty_dequeue: 0
         Rx DMA chan 0: busy_dequeue: 106
         Rx DMA chan 0: good_dequeue: 131
         Rx DMA chan 0: requeue: 0
         Rx DMA chan 0: teardown_dequeue: 0
         Tx DMA chan 0: head_enqueue: 71
         Tx DMA chan 0: tail_enqueue: 0
         Tx DMA chan 0: pad_enqueue: 0
         Tx DMA chan 0: misqueued: 0
         Tx DMA chan 0: desc_alloc_fail: 0
         Tx DMA chan 0: pad_alloc_fail: 0
         Tx DMA chan 0: runt_receive_buf: 0
         Tx DMA chan 0: runt_transmit_bu: 4
         Tx DMA chan 0: empty_dequeue: 71
         Tx DMA chan 0: busy_dequeue: 0
         Tx DMA chan 0: good_dequeue: 71
         Tx DMA chan 0: requeue: 0
         Tx DMA chan 0: teardown_dequeue: 0

  • 感谢提供信息,我需要咨询一下产品线工程师再给您回复。

  • 抱歉目前不清楚是什么原因造成的,我们一般建议使用最新的SDK进行开发。

  • 好的,非常感谢,我们改用别的版本。

  • 请问TI是否有提供xenomai补丁的linux内核版本,如果有,在哪里能下到?

  • TI没有提供该补丁的内核版本,您可能需要去第三方网站下载。

  • 您好,再请教您一个问题,我是否可以把“PROCESSOR-SDK-LINUX-AM335X  04_03_00_05“包中的linux4.9的内核代码替换为“github.com/.../4.9-xenomai“,我之前试过是可以启动的,但是不知道会不会有其他问题。

  • 抱歉,不清楚是否会有其他问题,我们只支持TI提供的SDK。