Other Parts Discussed in Thread: PMP
Hello Champs,
Customer migrated Processor SDK 6.0 pru driver which supporst single emac.
He modified the device tree file according to doc/devicetree/binding/net/ti-prueth.txt. But the PRU driver will prompted accessing NULL pointer error message.
单emac驱动
am572x-idk.dtb, modify pru as below:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
pruss2_eth: pruss2_eth { compatible = "ti,am57-prueth" ; prus = <&pru2_0>, <&pru2_1>; //firmware-name = "ti-pruss/am57xx-pru0-prueth-fw.elf", firmware-name = "" , "ti-pruss/am57xx-pru1-prueth-fw.elf" ; sram = <&ocmcram1>; interrupt-parent = <&pruss2_intc>; mii-rt = <&pruss2_mii_rt>; interrupts = <20>, <21>; interrupt-names = "rx_red_hp" , "rx_red_lp" ; /*pruss2_emac0: ethernet-mii0 { phy-handle = <&pruss2_eth0_phy>; phy-mode = "mii"; interrupts = <20>, <22>, <23>, <26>; interrupt-names = "rx", "tx", "hsrprp_ptp_tx", "emac_ptp_tx"; //Filled in by bootloader local-mac-address = [00 00 00 00 00 00]; };*/ pruss2_emac1: ethernet-mii1 { phy-handle = <&pruss2_eth1_phy>; phy-mode = "mii" ; interrupts = <21>, <23>, <24>, <27>; interrupt-names = "rx" , "tx" , "hsrprp_ptp_tx" , "emac_ptp_tx" ; /* Filled in by bootloader */ local-mac-address = [00 00 00 00 00 00]; }; }; |
The log is blow:
Thanks.
Rgds
Shine