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.

啟動ETHERNET/IP的問題

Other Parts Discussed in Thread: AM3359, TPS65910

各位好,

我是使用AM3359 ICE2的開發版及ti-processor-sdk-linux-rt-am335x-evm-06.01.00.08

我的狀況是:掛載pruss.ko及pru_rproc.ko後,在 /sys/class/remoteproc沒有創建出remoteproc0,remoteproc1的資料夾

且在/lib/firmware下,有am335x-pru0-fw和am335x-pru1-fw

請問我是否有什麼地方遺漏忘記處理了?

下面是開機過程的log

謝謝~~~

Kerry

MMC: OMAP SD/MMC: 0
Loading Environment from FAT... OK
Net: eth0: ethernet@4a100000
Hit any key to stop autoboot: 2 1 0
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
** Invalid partition 2 **
** Invalid partition 2 **
Booting from nand ...

no devices available

no devices available
Booting from network ...
link up on port 0, speed 100, full duplex
BOOTP broadcast 1
BOOTP broadcast 2
BOOTP broadcast 3
DHCP client bound to address 172.16.28.220 (1010 ms)
link up on port 0, speed 100, full duplex
Using ethernet@4a100000 device
TFTP from server 172.16.26.60; our IP address is 172.16.28.220
Filename 'zImage'.
Load address: 0x82000000
Loading: *#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
########################################
581.1 KiB/s
done
Bytes transferred = 4194816 (400200 hex)
link up on port 0, speed 100, full duplex
Using ethernet@4a100000 device
TFTP from server 172.16.26.60; our IP address is 172.16.28.220
Filename 'am335x-icev2.dtb'.
Load address: 0x88000000
Loading: *########
541 KiB/s
done
Bytes transferred = 37124 (9104 hex)
## Flattened Device Tree blob at 88000000
Booting using the fdt blob at 0x88000000
Loading Device Tree to 8df2d000, end 8df39103 ... OK

Starting kernel ...

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.19.59-rt24-g4203cb8c96 (kerry@kerry) (gcc version 8.3.0 (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36))) #1 PREEMPT RT Thu Aug 27 08:37:00 CST 2020
[ 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 AM3359 ICE-V2 - dual CPSW
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] efi: Getting EFI parameters from FDT:
[ 0.000000] efi: UEFI not found.
[ 0.000000] cma: Reserved 48 MiB at 0x8a800000
[ 0.000000] CPU: All CPU(s) started in SVC mode.
[ 0.000000] AM335X ES2.1 (sgx neon)
[ 0.000000] random: get_random_bytes called from start_kernel+0xa4/0x444 with crng_init=0
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 64960
[ 0.000000] Kernel command line: console=ttyO3,115200n8 root=/dev/nfs nfsroot=172.16.26.60:/home/am335x-rootfs,v3 nfsrootdebug rw ip=dhcp
[ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Memory: 197304K/262144K available (8192K kernel code, 322K rwdata, 2668K rodata, 1024K init, 259K bss, 15688K 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 : 0xd0800000 - 0xff800000 ( 752 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xd0000000 ( 256 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0x(ptrval) - 0x(ptrval) (9184 kB)
[ 0.000000] .init : 0x(ptrval) - 0x(ptrval) (1024 kB)
[ 0.000000] .data : 0x(ptrval) - 0x(ptrval) ( 323 kB)
[ 0.000000] .bss : 0x(ptrval) - 0x(ptrval) ( 260 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] rcu: Preemptible hierarchical RCU implementation.
[ 0.000000] rcu: RCU priority boosting: priority 1 delay 500 ms.
[ 0.000000] No expedited grace period (rcu_normal_after_boot).
[ 0.000000] Tasks RCU enabled.
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] IRQ: Found an INTC at 0x(ptrval) (revision 5.0) with 128 interrupts
[ 0.000000] OMAP clockevent source: timer2 at 24000000 Hz
[ 0.000018] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[ 0.000035] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000044] OMAP clocksource: timer1 at 24000000 Hz
[ 0.000271] timer_probe: no matching timers found
[ 0.000508] Console: colour dummy device 80x30
[ 0.000706] WARNING: Your 'console=ttyO3' has been replaced by 'ttyS3'
[ 0.000710] This ensures that you still see kernel messages. Please
[ 0.000713] update your kernel commandline.
[ 0.000755] Calibrating delay loop... 597.60 BogoMIPS (lpj=2988032)
[ 0.058708] pid_max: default: 32768 minimum: 301
[ 0.058985] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.058998] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.060194] CPU: Testing write buffer coherency: ok
[ 0.060265] CPU0: Spectre v2: using BPIALL workaround
[ 0.061576] Setting up static identity map for 0x80100000 - 0x80100060
[ 0.061960] rcu: Hierarchical SRCU implementation.
[ 0.062937] EFI services will not be available.
[ 0.064899] devtmpfs: initialized
[ 0.079638] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 0.080249] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.080282] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.084722] pinctrl core: initialized pinctrl subsystem
[ 0.085775] DMI not present or invalid.
[ 0.086434] NET: Registered protocol family 16
[ 0.090538] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.115849] l4_wkup_cm:clk:0010:0: failed to disable
[ 0.179287] OMAP GPIO hardware version 0.1
[ 0.183384] GPIO line 100 (PR1_MII_CTRL) hogged as output/high
[ 0.183429] GPIO line 106 (MUX_MII_CTL1) hogged as output/high
[ 0.193730] No ATAGs?
[ 0.193754] hw-breakpoint: debug architecture 0x4 unsupported.
[ 0.217331] edma 49000000.edma: TI EDMA DMA engine driver
[ 0.222609] SCSI subsystem initialized
[ 0.223272] media: Linux media interface: v0.10
[ 0.223344] videodev: Linux video capture interface: v2.00
[ 0.223499] pps_core: LinuxPPS API ver. 1 registered
[ 0.223512] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.223549] PTP clock support registered
[ 0.223602] EDAC MC: Ver: 3.0.0
[ 0.225181] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
[ 0.226042] Advanced Linux Sound Architecture Driver Initialized.
[ 0.227784] clocksource: Switched to clocksource timer1
[ 0.241731] NET: Registered protocol family 2
[ 0.243074] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 7168 bytes)
[ 0.243130] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.243188] TCP bind hash table entries: 2048 (order: 3, 49152 bytes)
[ 0.243324] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.243479] UDP hash table entries: 256 (order: 2, 16384 bytes)
[ 0.243537] UDP-Lite hash table entries: 256 (order: 2, 16384 bytes)
[ 0.243810] NET: Registered protocol family 1
[ 0.244656] RPC: Registered named UNIX socket transport module.
[ 0.244675] RPC: Registered udp transport module.
[ 0.244685] RPC: Registered tcp transport module.
[ 0.244695] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.245935] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
[ 0.248113] Initialise system trusted keyrings
[ 0.248445] workingset: timestamp_bits=14 max_order=16 bucket_order=2
[ 0.257378] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.258885] NFS: Registering the id_resolver key type
[ 0.258952] Key type id_resolver registered
[ 0.258965] Key type id_legacy registered
[ 0.259049] ntfs: driver 2.1.32 [Flags: R/O].
[ 0.262508] Key type asymmetric registered
[ 0.262532] Asymmetric key parser 'x509' registered
[ 0.262635] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
[ 0.262653] io scheduler noop registered
[ 0.262665] io scheduler deadline registered
[ 0.263052] io scheduler cfq registered (default)
[ 0.263069] io scheduler mq-deadline registered
[ 0.263081] io scheduler kyber registered
[ 0.265556] pinctrl-single 44e10800.pinmux: 142 pins, size 568
[ 0.350497] Serial: 8250/16550 driver, 10 ports, IRQ sharing enabled
[ 0.356124] 481a6000.serial: ttyS3 at MMIO 0x481a6000 (irq = 30, base_baud = 3000000) is a 8250
[ 0.992936] console [ttyS3] enabled
[ 0.999607] omap_rng 48310000.rng: Random Number Generator ver. 20
[ 1.008072] random: fast init done
[ 1.011841] random: crng init done
[ 1.033756] brd: module loaded
[ 1.048208] loop: module loaded
[ 1.055821] m25p80 spi0.0: unrecognized JEDEC id bytes: 00, 00, 00
[ 1.063502] libphy: Fixed MDIO Bus: probed
[ 1.137904] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6, bus freq 1000000
[ 1.145624] libphy: 4a101000.mdio: probed
[ 1.152345] davinci_mdio 4a101000.mdio: phy[1]: device 4a101000.mdio:01, driver TI TLK10X 10/100 Mbps PHY
[ 1.162039] davinci_mdio 4a101000.mdio: phy[3]: device 4a101000.mdio:03, driver TI TLK10X 10/100 Mbps PHY
[ 1.172793] cpsw 4a100000.ethernet: Detected MACID = 2c:6b:7d:b5:24:6d
[ 1.179565] cpsw 4a100000.ethernet: initialized cpsw ale version 1.4
[ 1.185958] cpsw 4a100000.ethernet: ALE Table size 1024
[ 1.191259] cpsw 4a100000.ethernet: cpts: overflow check period 500 (jiffies)
[ 1.199785] cpsw 4a100000.ethernet: cpsw: Detected MACID = 2c:6b:7d:b5:24:6f
[ 1.209268] i2c /dev entries driver
[ 1.214588] sdhci: Secure Digital Host Controller Interface driver
[ 1.220881] sdhci: Copyright(c) Pierre Ossman
[ 1.227478] sdhci-pltfm: SDHCI platform and OF driver helper
[ 1.242080] NET: Registered protocol family 10
[ 1.249198] Segment Routing with IPv6
[ 1.253012] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 1.260051] NET: Registered protocol family 17
[ 1.264902] Key type dns_resolver registered
[ 1.269616] omap_voltage_late_init: Voltage driver support not added
[ 1.277309] Loading compiled-in X.509 certificates
[ 1.328126] tps65910 0-002d: No interrupt support, no core IRQ
[ 1.336749] vrtc: supplied by vbat
[ 1.344138] vio: supplied by vbat
[ 1.349161] vdd1: supplied by vbat
[ 1.354574] vdd2: supplied by vbat
[ 1.361661] vdig1: supplied by vbat
[ 1.366701] vdig2: supplied by vbat
[ 1.371784] vpll: supplied by vbat
[ 1.376730] vdac: supplied by vbat
[ 1.381709] vaux1: supplied by vbat
[ 1.386756] vaux2: supplied by vbat
[ 1.391809] vaux33: supplied by vbat
[ 1.396928] vmmc: supplied by vbat
[ 1.401924] vbb: supplied by vbat
[ 1.407526] pca953x 0-0041: 0-0041 supply vcc not found, using dummy regulator
[ 1.414916] pca953x 0-0041: Linked as a consumer to regulator.0
[ 1.422471] ssd1307fb 0-003c: Linked as a consumer to regulator.1
[ 1.454748] Console: switching to mono frame buffer device 12x2
[ 1.487830] ssd1307fb 0-003c: fb0: Solomon SSD1307 framebuffer device registered, using 192 bytes of video memory
[ 1.498273] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[ 1.505928] omap_hsmmc 48060000.mmc: Linked as a consumer to regulator.15
[ 1.539398] hctosys: unable to open rtc device (rtc0)
[ 1.560621] net eth0: initializing cpsw version 1.12 (0)
[ 1.581675] mmc0: host does not support reading read-only switch, assuming write-enable
[ 1.592935] mmc0: new high speed SDHC card at address 5048
[ 1.599851] mmcblk0: mmc0:5048 SD08G 7.42 GiB
[ 1.607279] mmcblk0: p1
[ 1.668505] TI TLK10X 10/100 Mbps PHY 4a101000.mdio:01: attached PHY driver [TI TLK10X 10/100 Mbps PHY] (mii_bus:phy_addr=4a101000.mdio:01, irq=POLL)
[ 1.686800] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 1.693374] net eth1: initializing cpsw version 1.12 (0)
[ 1.798495] TI TLK10X 10/100 Mbps PHY 4a101000.mdio:03: attached PHY driver [TI TLK10X 10/100 Mbps PHY] (mii_bus:phy_addr=4a101000.mdio:03, irq=POLL)
[ 1.814407] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[ 3.768761] cpsw 4a100000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[ 3.797909] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 3.828015] Sending DHCP requests ., OK
[ 3.871839] IP-Config: Got DHCP answer from 172.16.0.251, my address is 172.16.28.220
[ 3.879772] IP-Config: Complete:
[ 3.883032] device=eth0, hwaddr=2c:6b:7d:b5:24:6d, ipaddr=172.16.28.220, mask=255.255.128.0, gw=172.16.0.254
[ 3.893347] host=172.16.28.220, domain=, nis-domain=(none)
[ 3.899301] bootserver=0.0.0.0, rootserver=172.16.26.60, rootpath=
[ 3.899310] nameserver0=172.16.1.252, nameserver1=172.16.1.248
[ 3.912257] ntpserver0=172.16.18.28
[ 3.918649] ALSA device list:
[ 3.921649] No soundcards found.
[ 3.943645] VFS: Mounted root (nfs filesystem) on device 0:14.
[ 3.951158] devtmpfs: mounted
[ 3.956340] Freeing unused kernel memory: 1024K
[ 3.961568] Run /sbin/init as init process
INIT: version 2.88 booting
Error, no support currently for 1 bpp frame buffers
Trying to change pixel format...
Switched to a 32 bpp 8,8,8 frame buffer
hwclock: can't open '/dev/misc/rtc': No such file or directory
Sun Oct 20 19:38:33 UTC 2019
hwclock: can't open '/dev/misc/rtc': No such file or directory
INIT: Entering runlevel: 5
NOT configuring network interfaces: / is an NFS mount
udhcpc: started, v1.29.3
udhcpc: sending discover
udhcpc: sending select for 172.16.28.96
udhcpc: lease of 172.16.28.96 obtained, lease time 21600
/etc/udhcpc.d/50default: Adding DNS 172.16.1.252
/etc/udhcpc.d/50default: Adding DNS 172.16.1.248
hwclock: can't open '/dev/misc/rtc': No such file or directory
Starting syslogd/klogd: done

root@am335x-evm:~# insmod /lib/modules/4.19.59-rt24-g4203cb8c96/kernel/drivers/soc/ti/pruss.ko
root@am335x-evm:~# insmod /lib/modules/4.19.59-rt24-g4203cb8c96/kernel/drivers/remoteproc/remoteproc.ko
root@am335x-evm:~# insmod /lib/modules/4.19.59-rt24-g4203cb8c96/kernel/drivers/irqchip/irq-pruss-intc.ko
root@am335x-evm:~# insmod /lib/modules/4.19.59-rt24-g4203cb8c96/kernel/drivers/remoteproc/pru_rproc.ko

root@am335x-evm:~# cd /sys/class/remoteproc/

root@am335x-evm:~# ls -al
drwxr-xr-x 2 root root 0 Oct 20 19:39 .
drwxr-xr-x 52 root root 0 Oct 20 19:39 ..
root@am335x-evm:~#