[PATCH] x86 64: Add new device Cordoba Edge Platform

2023-11-12 Thread Xiaojun Liu
Add new device Cordoba Edge Platform
hardware specifications: CPU - Intel Atom C3000
   Ethernet - 2 10Gbps ixgbe SPF+
  2 1Gbps  ixgbe RJ45/SPF
  4 2.5Gbps  igc RJ45
   WiFi - mt7915e
   LED  - 3 multicolor(red|blue|green) LEDs
   
Signed-off-by: Xiaojun Liu mailto:xiaojun@silicom.co.il
--

diff --git a/target/linux/x86/base-files/etc/board.d/01_leds 
b/target/linux/x86/base-files/etc/board.d/01_leds
index efc5460df3..47ea0929e6 100644
--- a/target/linux/x86/base-files/etc/board.d/01_leds
+++ b/target/linux/x86/base-files/etc/board.d/01_leds
@@ -28,6 +28,10 @@ traverse-technologies-geos)
ucidef_set_led_netdev "wlan" "WiFi" "geos:2" "phy0tpt"
ucidef_set_led_default "diag" "DIAG" "geos:3" "1"
;;
+silicom-80500-0214-*)
+ucidef_set_led_netdev "wan" "WAN" "multicolor:fp_center" "wan0"
+ucidef_set_led_netdev "lan" "LAN" "multicolor:fp_right" "br-lan"
+;;
 esac
 board_config_flush
 
diff --git a/target/linux/x86/base-files/etc/board.d/02_network 
b/target/linux/x86/base-files/etc/board.d/02_network
index e00e8c04dd..5174906264 100644
--- a/target/linux/x86/base-files/etc/board.d/02_network
+++ b/target/linux/x86/base-files/etc/board.d/02_network
@@ -75,6 +75,17 @@ traverse-technologies-geos)
macaddr="$(cat /sys/class/net/eth0/address)" 2>/dev/null
[ -n "$macaddr" ] && ucidef_set_interface_macaddr "wan" "$macaddr"
;;
+silicom-80500-0214-*)
+ucidef_set_network_device_path "wan0" 
"pci:00/:00:16.0/:03:00.0"
+ucidef_set_network_device_path "wan1" 
"pci:00/:00:16.0/:03:00.1"
+ucidef_set_network_device_path "media0" 
"pci:00/:00:17.0/:02:00.1"
+ucidef_set_network_device_path "media1" 
"pci:00/:00:17.0/:02:00.0"
+ucidef_set_network_device_path "eth0" 
"pci:00/:00:0c.0/:04:00.0"
+ucidef_set_network_device_path "eth1" 
"pci:00/:00:0e.0/:05:00.0"
+ucidef_set_network_device_path "eth2" 
"pci:00/:00:0f.0/:06:00.0"
+ucidef_set_network_device_path "eth3" 
"pci:00/:00:10.0/:07:00.0"
+ucidef_set_interfaces_lan_wan "eth0 eth1 eth2 eth3" "wan0"
+;;
 esac
 board_config_flush



x86 64 Add new device Cordoba Edge Platform.patch
Description: x86 64 Add new device Cordoba Edge Platform.patch
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [PATCH] x86 64: Add new device Cordoba Edge Platform

2023-11-04 Thread Philip Prindeville
That’s a question for a core maintainer.  I’m just a lowly package maintainer.


> On Oct 29, 2023, at 10:29 PM, Xiaojun Liu  wrote:
> 
> Hi Philip,
> 
> Thank you! Do you know when it will be merged to Openwrt main thread ?
> 
> -Original Message-
> From: Philip Prindeville  
> Sent: Saturday, October 28, 2023 11:09 AM
> To: Xiaojun Liu 
> Cc: openwrt-devel@lists.openwrt.org
> Subject: Re: [PATCH] x86 64: Add new device Cordoba Edge Platform
> 
> LGTM
> 
> 
>> On Oct 23, 2023, at 8:52 PM, Xiaojun Liu  wrote:
>> 
>> Add new device Cordoba Edge Platform
>> Device name:Cordoba Edge Platform
>> hardware specifications: CPU - Intel Atom C3000
>> WiFi - mt7915e
>> 
>> Signed-off-by: Xiaojun Liu mailto:xiaojun@silicom.co.il
>> ---
>> 
>> target/linux/x86/base-files/etc/board.d/02_network | 11 +++
>> target/linux/x86/image/64.mk   | 10 ++
>> 2 files changed, 21 insertions(+)
>> 
>> 
>> diff --git a/target/linux/x86/base-files/etc/board.d/02_network 
>> b/target/linux/x86/base-files/etc/board.d/02_network
>> index e00e8c04dd..be56153695 100644
>> --- a/target/linux/x86/base-files/etc/board.d/02_network
>> +++ b/target/linux/x86/base-files/etc/board.d/02_network
>> @@ -75,6 +75,17 @@ traverse-technologies-geos)
>>macaddr="$(cat /sys/class/net/eth0/address)" 2>/dev/null
>>[ -n "$macaddr" ] && ucidef_set_interface_macaddr "wan" "$macaddr"
>>;;
>> +silicom-80500-0214-e53)
>> +ucidef_set_network_device_path "wan0" 
>> "pci:00/:00:16.0/:03:00.0"
>> +ucidef_set_network_device_path "wan1" 
>> "pci:00/:00:16.0/:03:00.1"
>> +ucidef_set_network_device_path "media0" 
>> "pci:00/:00:17.0/:02:00.0"
>> +ucidef_set_network_device_path "media1" 
>> "pci:00/:00:17.0/:02:00.1"
>> +ucidef_set_network_device_path "eth0" 
>> "pci:00/:00:0c.0/:04:00.0"
>> +ucidef_set_network_device_path "eth1" 
>> "pci:00/:00:0e.0/:05:00.0"
>> +ucidef_set_network_device_path "eth2" 
>> "pci:00/:00:0f.0/:06:00.0"
>> +ucidef_set_network_device_path "eth3" 
>> "pci:00/:00:10.0/:07:00.0"
>> +ucidef_set_interfaces_lan_wan "eth0 eth1 eth2 eth3" "wan0"
>> +;;
>> esac
>> board_config_flush
>> 
>> diff --git a/target/linux/x86/image/64.mk 
>> b/target/linux/x86/image/64.mk index 5ec9978b66..4aeb98 100644
>> --- a/target/linux/x86/image/64.mk
>> +++ b/target/linux/x86/image/64.mk
>> @@ -8,3 +8,13 @@ define Device/generic
>>   GRUB2_VARIANT := generic
>> endef
>> TARGET_DEVICES += generic
>> +
>> +define Device/cordoba
>> +  DEVICE_VENDOR := Cordoba
>> +  DEVICE_MODEL := x86/64
>> +  DEVICE_PACKAGES += \
>> +kmod-igc kmod-ixgbe \
>> +kmod-mt7915-firmware
>> +  GRUB2_VARIANT := generic
>> +endef
>> +TARGET_DEVICES += cordoba
>> 
>> > Platform.patch>___
>> openwrt-devel mailing list
>> openwrt-devel@lists.openwrt.org
>> https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Flist
>> s.openwrt.org%2Fmailman%2Flistinfo%2Fopenwrt-devel=05%7C01%7Cxiao
>> jun.liu%40silicom.co.il%7C72c892dafba644e13de108dbd76352b5%7Cc9e326d8c
>> e4749308612cc99d3c87ad1%7C0%7C0%7C638340593816809713%7CUnknown%7CTWFpb
>> GZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0
>> %3D%7C3000%7C%7C%7C=iJGXzXkBnJaAuGcu3OrZSPxVeE1WvC2h7w4%2F3t2bLj
>> Q%3D=0
> 
> 
> ___
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel



___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [PATCH] x86 64: Add new device Cordoba Edge Platform

2023-11-04 Thread Philip Prindeville


> On Oct 30, 2023, at 11:17 AM, Paul Spooren  wrote:
> 
> Hi,
> 
> We kind of don’t add image just to contain extra drivers. Extra UCI defaults 
> for eth ordering are fine but please don’t add an extra image if it just 
> contains 1-2 extra packages, installable via the ImageBuilder or OPKG.
> 
>> 
>>> On Oct 23, 2023, at 8:52 PM, Xiaojun Liu  wrote:
>>> 
>>> Add new device Cordoba Edge Platform
>>> Device name:Cordoba Edge Platform
>>> hardware specifications: CPU - Intel Atom C3000
>>>WiFi - mt7915e
>>> 
>>> Signed-off-by: Xiaojun Liu mailto:xiaojun@silicom.co.il
>>> ---
>>> 
>>> target/linux/x86/base-files/etc/board.d/02_network | 11 +++
>>> target/linux/x86/image/64.mk   | 10 ++
>>> 2 files changed, 21 insertions(+)
>>> 
>>> 
>>> diff --git a/target/linux/x86/base-files/etc/board.d/02_network 
>>> b/target/linux/x86/base-files/etc/board.d/02_network
>>> index e00e8c04dd..be56153695 100644
>>> --- a/target/linux/x86/base-files/etc/board.d/02_network
>>> +++ b/target/linux/x86/base-files/etc/board.d/02_network
>>> @@ -75,6 +75,17 @@ traverse-technologies-geos)
>>>   macaddr="$(cat /sys/class/net/eth0/address)" 2>/dev/null
>>>   [ -n "$macaddr" ] && ucidef_set_interface_macaddr "wan" "$macaddr"
>>>   ;;
>>> +silicom-80500-0214-e53)
>>> +ucidef_set_network_device_path "wan0" 
>>> "pci:00/:00:16.0/:03:00.0"
>>> +ucidef_set_network_device_path "wan1" 
>>> "pci:00/:00:16.0/:03:00.1"
>>> +ucidef_set_network_device_path "media0" 
>>> "pci:00/:00:17.0/:02:00.0"
>>> +ucidef_set_network_device_path "media1" 
>>> "pci:00/:00:17.0/:02:00.1"
>>> +ucidef_set_network_device_path "eth0" 
>>> "pci:00/:00:0c.0/:04:00.0"
>>> +ucidef_set_network_device_path "eth1" 
>>> "pci:00/:00:0e.0/:05:00.0"
>>> +ucidef_set_network_device_path "eth2" 
>>> "pci:00/:00:0f.0/:06:00.0"
>>> +ucidef_set_network_device_path "eth3" 
>>> "pci:00/:00:10.0/:07:00.0"
>>> +ucidef_set_interfaces_lan_wan "eth0 eth1 eth2 eth3" "wan0"
>>> +;;
>>> esac
>>> board_config_flush
>>> 
>>> diff --git a/target/linux/x86/image/64.mk 
>>> b/target/linux/x86/image/64.mk index 5ec9978b66..4aeb98 100644
>>> --- a/target/linux/x86/image/64.mk
>>> +++ b/target/linux/x86/image/64.mk
>>> @@ -8,3 +8,13 @@ define Device/generic
>>>  GRUB2_VARIANT := generic
>>> endef
>>> TARGET_DEVICES += generic
>>> +
>>> +define Device/cordoba
>>> +  DEVICE_VENDOR := Cordoba
>>> +  DEVICE_MODEL := x86/64
>>> +  DEVICE_PACKAGES += \
>>> +kmod-igc kmod-ixgbe \
>>> +kmod-mt7915-firmware
>>> +  GRUB2_VARIANT := generic
>>> +endef
>>> +TARGET_DEVICES += cordoba
> 
> Please remove those lines in 64.mk.
> 
> Thanks for you work and interest in OpenWrt support for your device.
> 
> Best,
> Paul


I’m not sure I understand why.  Would you want someone to build the image and 
leave out the necessary drivers?  They’re more than just “extra packages”, 
they’re *essential* packages.

We have hundreds of profiles for other architectures, even different profiles 
for different versions of the same base design (like Archer C7).

Why are we so miserly when it comes to x86_64?

-Philip



___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


RE: [PATCH] x86 64: Add new device Cordoba Edge Platform

2023-10-31 Thread Xiaojun Liu
Hi,

Thank you for your guide!
I will resubmit it. 

-Original Message-
From: Paul Spooren  
Sent: Tuesday, October 31, 2023 1:18 AM
To: Xiaojun Liu 
Cc: Philip Prindeville ; openwrt-devel 

Subject: Re: [PATCH] x86 64: Add new device Cordoba Edge Platform

Hi,

We kind of don’t add image just to contain extra drivers. Extra UCI defaults 
for eth ordering are fine but please don’t add an extra image if it just 
contains 1-2 extra packages, installable via the ImageBuilder or OPKG.

> 
>> On Oct 23, 2023, at 8:52 PM, Xiaojun Liu  wrote:
>> 
>> Add new device Cordoba Edge Platform
>> Device name:Cordoba Edge Platform
>> hardware specifications: CPU - Intel Atom C3000
>> WiFi - mt7915e
>> 
>> Signed-off-by: Xiaojun Liu mailto:xiaojun@silicom.co.il
>> ---
>> 
>> target/linux/x86/base-files/etc/board.d/02_network | 11 +++
>> target/linux/x86/image/64.mk   | 10 ++
>> 2 files changed, 21 insertions(+)
>> 
>> 
>> diff --git a/target/linux/x86/base-files/etc/board.d/02_network
>> b/target/linux/x86/base-files/etc/board.d/02_network
>> index e00e8c04dd..be56153695 100644
>> --- a/target/linux/x86/base-files/etc/board.d/02_network
>> +++ b/target/linux/x86/base-files/etc/board.d/02_network
>> @@ -75,6 +75,17 @@ traverse-technologies-geos)
>>macaddr="$(cat /sys/class/net/eth0/address)" 2>/dev/null
>>[ -n "$macaddr" ] && ucidef_set_interface_macaddr "wan" "$macaddr"
>>;;
>> +silicom-80500-0214-e53)
>> +ucidef_set_network_device_path "wan0" 
>> "pci:00/:00:16.0/:03:00.0"
>> +ucidef_set_network_device_path "wan1" 
>> "pci:00/:00:16.0/:03:00.1"
>> +ucidef_set_network_device_path "media0" 
>> "pci:00/:00:17.0/:02:00.0"
>> +ucidef_set_network_device_path "media1" 
>> "pci:00/:00:17.0/:02:00.1"
>> +ucidef_set_network_device_path "eth0" 
>> "pci:00/:00:0c.0/:04:00.0"
>> +ucidef_set_network_device_path "eth1" 
>> "pci:00/:00:0e.0/:05:00.0"
>> +ucidef_set_network_device_path "eth2" 
>> "pci:00/:00:0f.0/:06:00.0"
>> +ucidef_set_network_device_path "eth3" 
>> "pci:00/:00:10.0/:07:00.0"
>> +ucidef_set_interfaces_lan_wan "eth0 eth1 eth2 eth3" "wan0"
>> +;;
>> esac
>> board_config_flush
>> 
>> diff --git a/target/linux/x86/image/64.mk 
>> b/target/linux/x86/image/64.mk index 5ec9978b66..4aeb98 100644
>> --- a/target/linux/x86/image/64.mk
>> +++ b/target/linux/x86/image/64.mk
>> @@ -8,3 +8,13 @@ define Device/generic
>>   GRUB2_VARIANT := generic
>> endef
>> TARGET_DEVICES += generic
>> +
>> +define Device/cordoba
>> +  DEVICE_VENDOR := Cordoba
>> +  DEVICE_MODEL := x86/64
>> +  DEVICE_PACKAGES += \
>> +kmod-igc kmod-ixgbe \
>> +kmod-mt7915-firmware
>> +  GRUB2_VARIANT := generic
>> +endef
>> +TARGET_DEVICES += cordoba

Please remove those lines in 64.mk.

Thanks for you work and interest in OpenWrt support for your device.

Best,
Paul
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [PATCH] x86 64: Add new device Cordoba Edge Platform

2023-10-30 Thread Paul Spooren
Hi,

We kind of don’t add image just to contain extra drivers. Extra UCI defaults 
for eth ordering are fine but please don’t add an extra image if it just 
contains 1-2 extra packages, installable via the ImageBuilder or OPKG.

> 
>> On Oct 23, 2023, at 8:52 PM, Xiaojun Liu  wrote:
>> 
>> Add new device Cordoba Edge Platform
>> Device name:Cordoba Edge Platform
>> hardware specifications: CPU - Intel Atom C3000
>> WiFi - mt7915e
>> 
>> Signed-off-by: Xiaojun Liu mailto:xiaojun@silicom.co.il
>> ---
>> 
>> target/linux/x86/base-files/etc/board.d/02_network | 11 +++
>> target/linux/x86/image/64.mk   | 10 ++
>> 2 files changed, 21 insertions(+)
>> 
>> 
>> diff --git a/target/linux/x86/base-files/etc/board.d/02_network 
>> b/target/linux/x86/base-files/etc/board.d/02_network
>> index e00e8c04dd..be56153695 100644
>> --- a/target/linux/x86/base-files/etc/board.d/02_network
>> +++ b/target/linux/x86/base-files/etc/board.d/02_network
>> @@ -75,6 +75,17 @@ traverse-technologies-geos)
>>macaddr="$(cat /sys/class/net/eth0/address)" 2>/dev/null
>>[ -n "$macaddr" ] && ucidef_set_interface_macaddr "wan" "$macaddr"
>>;;
>> +silicom-80500-0214-e53)
>> +ucidef_set_network_device_path "wan0" 
>> "pci:00/:00:16.0/:03:00.0"
>> +ucidef_set_network_device_path "wan1" 
>> "pci:00/:00:16.0/:03:00.1"
>> +ucidef_set_network_device_path "media0" 
>> "pci:00/:00:17.0/:02:00.0"
>> +ucidef_set_network_device_path "media1" 
>> "pci:00/:00:17.0/:02:00.1"
>> +ucidef_set_network_device_path "eth0" 
>> "pci:00/:00:0c.0/:04:00.0"
>> +ucidef_set_network_device_path "eth1" 
>> "pci:00/:00:0e.0/:05:00.0"
>> +ucidef_set_network_device_path "eth2" 
>> "pci:00/:00:0f.0/:06:00.0"
>> +ucidef_set_network_device_path "eth3" 
>> "pci:00/:00:10.0/:07:00.0"
>> +ucidef_set_interfaces_lan_wan "eth0 eth1 eth2 eth3" "wan0"
>> +;;
>> esac
>> board_config_flush
>> 
>> diff --git a/target/linux/x86/image/64.mk 
>> b/target/linux/x86/image/64.mk index 5ec9978b66..4aeb98 100644
>> --- a/target/linux/x86/image/64.mk
>> +++ b/target/linux/x86/image/64.mk
>> @@ -8,3 +8,13 @@ define Device/generic
>>   GRUB2_VARIANT := generic
>> endef
>> TARGET_DEVICES += generic
>> +
>> +define Device/cordoba
>> +  DEVICE_VENDOR := Cordoba
>> +  DEVICE_MODEL := x86/64
>> +  DEVICE_PACKAGES += \
>> +kmod-igc kmod-ixgbe \
>> +kmod-mt7915-firmware
>> +  GRUB2_VARIANT := generic
>> +endef
>> +TARGET_DEVICES += cordoba

Please remove those lines in 64.mk.

Thanks for you work and interest in OpenWrt support for your device.

Best,
Paul
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


RE: [PATCH] x86 64: Add new device Cordoba Edge Platform

2023-10-29 Thread Xiaojun Liu
Hi Philip,

Thank you! Do you know when it will be merged to Openwrt main thread ?

-Original Message-
From: Philip Prindeville  
Sent: Saturday, October 28, 2023 11:09 AM
To: Xiaojun Liu 
Cc: openwrt-devel@lists.openwrt.org
Subject: Re: [PATCH] x86 64: Add new device Cordoba Edge Platform

LGTM


> On Oct 23, 2023, at 8:52 PM, Xiaojun Liu  wrote:
> 
> Add new device Cordoba Edge Platform
> Device name:Cordoba Edge Platform
> hardware specifications: CPU - Intel Atom C3000
>  WiFi - mt7915e
> 
> Signed-off-by: Xiaojun Liu mailto:xiaojun@silicom.co.il
> ---
> 
> target/linux/x86/base-files/etc/board.d/02_network | 11 +++
> target/linux/x86/image/64.mk   | 10 ++
> 2 files changed, 21 insertions(+)
> 
> 
> diff --git a/target/linux/x86/base-files/etc/board.d/02_network 
> b/target/linux/x86/base-files/etc/board.d/02_network
> index e00e8c04dd..be56153695 100644
> --- a/target/linux/x86/base-files/etc/board.d/02_network
> +++ b/target/linux/x86/base-files/etc/board.d/02_network
> @@ -75,6 +75,17 @@ traverse-technologies-geos)
> macaddr="$(cat /sys/class/net/eth0/address)" 2>/dev/null
> [ -n "$macaddr" ] && ucidef_set_interface_macaddr "wan" "$macaddr"
> ;;
> +silicom-80500-0214-e53)
> +ucidef_set_network_device_path "wan0" 
> "pci:00/:00:16.0/:03:00.0"
> +ucidef_set_network_device_path "wan1" 
> "pci:00/:00:16.0/:03:00.1"
> +ucidef_set_network_device_path "media0" 
> "pci:00/:00:17.0/:02:00.0"
> +ucidef_set_network_device_path "media1" 
> "pci:00/:00:17.0/:02:00.1"
> +ucidef_set_network_device_path "eth0" 
> "pci:00/:00:0c.0/:04:00.0"
> +ucidef_set_network_device_path "eth1" 
> "pci:00/:00:0e.0/:05:00.0"
> +ucidef_set_network_device_path "eth2" 
> "pci:00/:00:0f.0/:06:00.0"
> +ucidef_set_network_device_path "eth3" 
> "pci:00/:00:10.0/:07:00.0"
> +ucidef_set_interfaces_lan_wan "eth0 eth1 eth2 eth3" "wan0"
> +;;
> esac
> board_config_flush
> 
> diff --git a/target/linux/x86/image/64.mk 
> b/target/linux/x86/image/64.mk index 5ec9978b66..4aeb98 100644
> --- a/target/linux/x86/image/64.mk
> +++ b/target/linux/x86/image/64.mk
> @@ -8,3 +8,13 @@ define Device/generic
>GRUB2_VARIANT := generic
> endef
> TARGET_DEVICES += generic
> +
> +define Device/cordoba
> +  DEVICE_VENDOR := Cordoba
> +  DEVICE_MODEL := x86/64
> +  DEVICE_PACKAGES += \
> +kmod-igc kmod-ixgbe \
> +kmod-mt7915-firmware
> +  GRUB2_VARIANT := generic
> +endef
> +TARGET_DEVICES += cordoba
> 
>  Platform.patch>___
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Flist
> s.openwrt.org%2Fmailman%2Flistinfo%2Fopenwrt-devel=05%7C01%7Cxiao
> jun.liu%40silicom.co.il%7C72c892dafba644e13de108dbd76352b5%7Cc9e326d8c
> e4749308612cc99d3c87ad1%7C0%7C0%7C638340593816809713%7CUnknown%7CTWFpb
> GZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0
> %3D%7C3000%7C%7C%7C=iJGXzXkBnJaAuGcu3OrZSPxVeE1WvC2h7w4%2F3t2bLj
> Q%3D=0


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [PATCH] x86 64: Add new device Cordoba Edge Platform

2023-10-27 Thread Philip Prindeville
LGTM


> On Oct 23, 2023, at 8:52 PM, Xiaojun Liu  wrote:
> 
> Add new device Cordoba Edge Platform
> Device name:Cordoba Edge Platform
> hardware specifications: CPU - Intel Atom C3000
>  WiFi - mt7915e
> 
> Signed-off-by: Xiaojun Liu mailto:xiaojun@silicom.co.il
> ---
> 
> target/linux/x86/base-files/etc/board.d/02_network | 11 +++
> target/linux/x86/image/64.mk   | 10 ++
> 2 files changed, 21 insertions(+)
> 
> 
> diff --git a/target/linux/x86/base-files/etc/board.d/02_network 
> b/target/linux/x86/base-files/etc/board.d/02_network
> index e00e8c04dd..be56153695 100644
> --- a/target/linux/x86/base-files/etc/board.d/02_network
> +++ b/target/linux/x86/base-files/etc/board.d/02_network
> @@ -75,6 +75,17 @@ traverse-technologies-geos)
> macaddr="$(cat /sys/class/net/eth0/address)" 2>/dev/null
> [ -n "$macaddr" ] && ucidef_set_interface_macaddr "wan" "$macaddr"
> ;;
> +silicom-80500-0214-e53)
> +ucidef_set_network_device_path "wan0" 
> "pci:00/:00:16.0/:03:00.0"
> +ucidef_set_network_device_path "wan1" 
> "pci:00/:00:16.0/:03:00.1"
> +ucidef_set_network_device_path "media0" 
> "pci:00/:00:17.0/:02:00.0"
> +ucidef_set_network_device_path "media1" 
> "pci:00/:00:17.0/:02:00.1"
> +ucidef_set_network_device_path "eth0" 
> "pci:00/:00:0c.0/:04:00.0"
> +ucidef_set_network_device_path "eth1" 
> "pci:00/:00:0e.0/:05:00.0"
> +ucidef_set_network_device_path "eth2" 
> "pci:00/:00:0f.0/:06:00.0"
> +ucidef_set_network_device_path "eth3" 
> "pci:00/:00:10.0/:07:00.0"
> +ucidef_set_interfaces_lan_wan "eth0 eth1 eth2 eth3" "wan0"
> +;;
> esac
> board_config_flush
> 
> diff --git a/target/linux/x86/image/64.mk b/target/linux/x86/image/64.mk
> index 5ec9978b66..4aeb98 100644
> --- a/target/linux/x86/image/64.mk
> +++ b/target/linux/x86/image/64.mk
> @@ -8,3 +8,13 @@ define Device/generic
>GRUB2_VARIANT := generic
> endef
> TARGET_DEVICES += generic
> +
> +define Device/cordoba
> +  DEVICE_VENDOR := Cordoba
> +  DEVICE_MODEL := x86/64
> +  DEVICE_PACKAGES += \
> +kmod-igc kmod-ixgbe \
> +kmod-mt7915-firmware
> +  GRUB2_VARIANT := generic
> +endef
> +TARGET_DEVICES += cordoba
> 
>  Platform.patch>___
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[PATCH] x86 64: Add new device Cordoba Edge Platform

2023-10-23 Thread Xiaojun Liu
Add new device Cordoba Edge Platform
Device name:Cordoba Edge Platform
hardware specifications: CPU - Intel Atom C3000
 WiFi - mt7915e
    
Signed-off-by: Xiaojun Liu mailto:xiaojun@silicom.co.il
---

target/linux/x86/base-files/etc/board.d/02_network | 11 +++
target/linux/x86/image/64.mk   | 10 ++
2 files changed, 21 insertions(+)


diff --git a/target/linux/x86/base-files/etc/board.d/02_network 
b/target/linux/x86/base-files/etc/board.d/02_network
index e00e8c04dd..be56153695 100644
--- a/target/linux/x86/base-files/etc/board.d/02_network
+++ b/target/linux/x86/base-files/etc/board.d/02_network
@@ -75,6 +75,17 @@ traverse-technologies-geos)
    macaddr="$(cat /sys/class/net/eth0/address)" 2>/dev/null
    [ -n "$macaddr" ] && ucidef_set_interface_macaddr "wan" "$macaddr"
    ;;
+silicom-80500-0214-e53)
+    ucidef_set_network_device_path "wan0" 
"pci:00/:00:16.0/:03:00.0"
+    ucidef_set_network_device_path "wan1" 
"pci:00/:00:16.0/:03:00.1"
+    ucidef_set_network_device_path "media0" 
"pci:00/:00:17.0/:02:00.0"
+    ucidef_set_network_device_path "media1" 
"pci:00/:00:17.0/:02:00.1"
+    ucidef_set_network_device_path "eth0" 
"pci:00/:00:0c.0/:04:00.0"
+    ucidef_set_network_device_path "eth1" 
"pci:00/:00:0e.0/:05:00.0"
+    ucidef_set_network_device_path "eth2" 
"pci:00/:00:0f.0/:06:00.0"
+    ucidef_set_network_device_path "eth3" 
"pci:00/:00:10.0/:07:00.0"
+    ucidef_set_interfaces_lan_wan "eth0 eth1 eth2 eth3" "wan0"
+    ;;
esac
board_config_flush

diff --git a/target/linux/x86/image/64.mk b/target/linux/x86/image/64.mk
index 5ec9978b66..4aeb98 100644
--- a/target/linux/x86/image/64.mk
+++ b/target/linux/x86/image/64.mk
@@ -8,3 +8,13 @@ define Device/generic
   GRUB2_VARIANT := generic
endef
TARGET_DEVICES += generic
+
+define Device/cordoba
+  DEVICE_VENDOR := Cordoba
+  DEVICE_MODEL := x86/64
+  DEVICE_PACKAGES += \
+    kmod-igc kmod-ixgbe \
+    kmod-mt7915-firmware
+  GRUB2_VARIANT := generic
+endef
+TARGET_DEVICES += cordoba



x86 64 Add new device Cordoba Edge Platform.patch
Description: x86 64 Add new device Cordoba Edge Platform.patch
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


RE: Subject: [PATCH] x86 64: Add new device Cordoba Edge Platform

2023-10-23 Thread Xiaojun Liu
Thanks for your reminding!  I will update my patch to fix these issues.

-Original Message-
From: Philip Prindeville  
Sent: Monday, October 23, 2023 1:05 PM
To: Xiaojun Liu 
Cc: openwrt-devel@lists.openwrt.org
Subject: Re: Subject: [PATCH] x86 64: Add new device Cordoba Edge Platform

Doesn't this just have ixgbe and igc NIC's?  And the mt7915e of course.

Don't think we need the amd-xgbe, bnx2, e1000e, e1000, r8169, tg3 drivers.

The BIOS we've been using has some odd enumeration of the PCI bus, so you might 
want to include a patch for target/linux/x86/base-files/etc/board.d/02_network

And bind the PCI addresses to the ethernet device names.



> On Oct 18, 2023, at 8:44 PM, Xiaojun Liu  wrote:
> 
> Add new device Cordoba Edge Platform
> Device name: Cordoba Edge Platform
> hardware specifications: CPU - Intel Atom C3000
>  WiFi - mt7915e
> 
> Signed-off-by: Xiaojun Liu mailto:xiaojun@silicom.co.il
> ---
> target/linux/x86/image/64.mk | 11 +++
> 1 file changed, 11 insertions(+)
> 
> diff --git a/target/linux/x86/image/64.mk 
> b/target/linux/x86/image/64.mk index 5ec9978b66..04ce0be13a 100644
> --- a/target/linux/x86/image/64.mk
> +++ b/target/linux/x86/image/64.mk
> @@ -8,3 +8,14 @@ define Device/generic
>GRUB2_VARIANT := generic
> endef
> TARGET_DEVICES += generic
> +
> +define Device/cordoba
> +  DEVICE_VENDOR := Cordoba
> +  DEVICE_MODEL := x86/64
> +  DEVICE_PACKAGES += \
> +kmod-amazon-ena kmod-amd-xgbe kmod-bnx2 kmod-e1000e kmod-e1000 \
> +kmod-forcedeth kmod-fs-vfat kmod-igb kmod-igc kmod-ixgbe kmod-r8169 \
> +kmod-tg3 kmod-mt7915-firmware
> +  GRUB2_VARIANT := generic
> +endef
> +TARGET_DEVICES += cordoba
> 
> 


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: Subject: [PATCH] x86 64: Add new device Cordoba Edge Platform

2023-10-22 Thread Philip Prindeville
Doesn't this just have ixgbe and igc NIC's?  And the mt7915e of course.

Don't think we need the amd-xgbe, bnx2, e1000e, e1000, r8169, tg3 drivers.

The BIOS we've been using has some odd enumeration of the PCI bus, so you might 
want to include a patch for target/linux/x86/base-files/etc/board.d/02_network

And bind the PCI addresses to the ethernet device names.



> On Oct 18, 2023, at 8:44 PM, Xiaojun Liu  wrote:
> 
> Add new device Cordoba Edge Platform
> Device name: Cordoba Edge Platform
> hardware specifications: CPU - Intel Atom C3000
>  WiFi - mt7915e
> 
> Signed-off-by: Xiaojun Liu mailto:xiaojun@silicom.co.il
> ---
> target/linux/x86/image/64.mk | 11 +++
> 1 file changed, 11 insertions(+)
> 
> diff --git a/target/linux/x86/image/64.mk b/target/linux/x86/image/64.mk
> index 5ec9978b66..04ce0be13a 100644
> --- a/target/linux/x86/image/64.mk
> +++ b/target/linux/x86/image/64.mk
> @@ -8,3 +8,14 @@ define Device/generic
>GRUB2_VARIANT := generic
> endef
> TARGET_DEVICES += generic
> +
> +define Device/cordoba
> +  DEVICE_VENDOR := Cordoba
> +  DEVICE_MODEL := x86/64
> +  DEVICE_PACKAGES += \
> +kmod-amazon-ena kmod-amd-xgbe kmod-bnx2 kmod-e1000e kmod-e1000 \
> +kmod-forcedeth kmod-fs-vfat kmod-igb kmod-igc kmod-ixgbe kmod-r8169 \
> +kmod-tg3 kmod-mt7915-firmware
> +  GRUB2_VARIANT := generic
> +endef
> +TARGET_DEVICES += cordoba
> 
> 


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Subject: [PATCH] x86 64: Add new device Cordoba Edge Platform

2023-10-18 Thread Xiaojun Liu
Add new device Cordoba Edge Platform
Device name: Cordoba Edge Platform
hardware specifications: CPU - Intel Atom C3000
 WiFi - mt7915e

Signed-off-by: Xiaojun Liu mailto:xiaojun@silicom.co.il
---
target/linux/x86/image/64.mk | 11 +++
1 file changed, 11 insertions(+)

diff --git a/target/linux/x86/image/64.mk b/target/linux/x86/image/64.mk
index 5ec9978b66..04ce0be13a 100644
--- a/target/linux/x86/image/64.mk
+++ b/target/linux/x86/image/64.mk
@@ -8,3 +8,14 @@ define Device/generic
   GRUB2_VARIANT := generic
endef
TARGET_DEVICES += generic
+
+define Device/cordoba
+  DEVICE_VENDOR := Cordoba
+  DEVICE_MODEL := x86/64
+  DEVICE_PACKAGES += \
+    kmod-amazon-ena kmod-amd-xgbe kmod-bnx2 kmod-e1000e kmod-e1000 \
+    kmod-forcedeth kmod-fs-vfat kmod-igb kmod-igc kmod-ixgbe kmod-r8169 \
+    kmod-tg3 kmod-mt7915-firmware
+  GRUB2_VARIANT := generic
+endef
+TARGET_DEVICES += cordoba




x86 64 Add new device Cordoba Edge Platform.patch
Description: x86 64 Add new device Cordoba Edge Platform.patch
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel