Page 1 of 1

Same MAC Address

PostPosted: Fri Mar 21, 2014 4:48 am
by alanb2121
I have to MatrixTV's and see they both have the same MAC address. I assume the OS is not getting the MAC value from the hardware? What is the best way to change the MAC address?

Thanks

Re: Same MAC Address

PostPosted: Fri Mar 21, 2014 6:05 am
by updatelee
MAC in hardware is all the same... easy to change though

ifconfig eth0 hw ether 00:28:C7:0A:42:A2

UDL

Re: Same MAC Address

PostPosted: Mon Mar 24, 2014 6:38 am
by alanb2121
But how do you make it persistent through boots?

Re: Same MAC Address

PostPosted: Mon Mar 24, 2014 11:25 am
by updatelee
Put it in the network startup script.

UDL

Re: Same MAC Address

PostPosted: Tue Mar 25, 2014 5:21 am
by alanb2121
Thanks, so what is the script called? Where is it located?

Re: Same MAC Address

PostPosted: Tue Mar 25, 2014 7:23 am
by updatelee
unsure, cant rem. I dont use matrixtv anymore. its in /etc either init.d or system or something to that effect.

try

grep -r eth0 /etc/*

see what comes up, it'll look like ifup or ifconfig

UDL

Re: Same MAC Address

PostPosted: Wed Mar 26, 2014 5:11 am
by alanb2121
I wasn't able to find anywhere where I could set the MAC address using an exisitng conf file. In the end I added the following line to /usr/bin/licd_pre.sh

/sbin/ifconfig eth0 hw ether 00:00:00:00:00:05

I'm not familiar enough with Systemd so this seemed like a good alternative.

Really the MAC address on the NIC should be unique for each MatrixTV. I assume TBS are using a cheap no brand NIC interface.

Re: Same MAC Address

PostPosted: Wed Mar 26, 2014 6:13 am
by updatelee
They are using an ar8035 nic.

There is a way to set it perminitly in u-boot but I've never bothered.

UDL

Re: Same MAC Address

PostPosted: Wed Mar 26, 2014 10:49 am
by steven
Hi All

Really sorry for this ,Please write an email to our support#tbsdtv,we will assign a MAC address to you like our DVB cards.
And then you can use this command in u-boot
such as
imxotp blow --force 22 0xABC02A1B The last four byte
imxotp blow --force 23 0x0022 The first two byte

After write ,you can not change it any more,so please enter the right MAC address. :)

Thanks

Kind Regards

steven