Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Please follow the following steps to enable Ethernet of demo boards.

1. Please modify compiler-conditional in dts file of u-boot (boot/uboot/arch/arm/dts/pentagram-common.dts) as shown below:

a. For demo board V1 and V2

...

b. For demo board V3

...

2. Go to kernel folder, run ‘make menuconfig’. Then, use arrow and Enter key to select <Device Drivers> → <Network device support> → <Ethernet driver support> and then enable <Sunplus devices> as below:

...

32. This step is only for demo board V3. Skip this step if you are using V1 or V2.

...

where “Dual NIC Mode” is selected. You will have two Ethernet ports, eth0 and eth1, in Linux.

43. Save settings of ‘menuconfig' and go to top folder to run 'make all’ to build image.

54. Appendix

Besides selecting mode in ‘menuconfig’, Sunplus Ethernet driver also supports dynamic (run-time) mode-switching. That’s, even after Linux boots up, you can use ‘sysfs’ to switch operation mode. Just simply write a ‘mode’ character to ‘sysfs’. ‘mode’ character is defined as:

...