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.

DM368 IPNC Mac address

Hi, all.

I'm using Appro DM368-IPNC and i have a problem with it.

AS I know, when I  give a bootargs it passes through the linux kernel and kernel set some argue with it.

so if I put mac address on u-boot param, it should set same value on kernel. but it doesn't even address also.

there's my u-boot env and kernel ifconfig.

DM368 IPNC :>pri
bootdelay=4
baudrate=115200
ethaddr=00:0C:0C:A0:04:22
dnsip=211.47.128.1
setboot=setenv bootargs $(bootargs)
bootfile=uImage
bootcmd=nboot 0x80700000 0 0x500000;bootm 0x80700000
bootargs=mem=48M console=ttyS1,115200n8 root=/dev/mtdblock3 rootfstype=cramfs ip=dhcp eth=$(ethaddr)
stdin=serial
stdout=serial
stderr=serial
ver=U-Boot 1.3.4 (Apr 20 2010 - 11:42:44) DM368-IPNC-1.0.0
filesize=1F472C
fileaddr=80700000

gatewayip=219.36.28.254
netmask=255.255.255.0
ipaddr=219.36.28.207
serverip=219.36.28.206

kernel

# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:E0:0A:DD:00:00 
          inet addr:192.168.1.168  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:49 errors:0 dropped:0 overruns:0 frame:0
          TX packets:32 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:11865 (11.5 KiB)  TX bytes:6362 (6.2 KiB)
          Interrupt:52 Base address:0x7000

 

could please explain how MAC addr set? and if I want to put specific MAC address on kernel what should I do?

Thank you.

  • Please set the ethaddr in bootargs as the exact one like "bootargs=mem=48M console=ttyS1,115200n8 root=/dev/mtdblock3 rootfstype=cramfs ip=dhcp eth=00:0C:0C:A0:04:22"

     

    Dont use $(ethAddr) as we have seen that it does not pick the correct address from ethaddr env variable

     

    Regards,

     

    Raghu


  • Thank you, Raghu.

    I works perfectly. but still I'm wondering where kernel get a  HWaddr 00:E0:0A:DD:00:00  .

    Is that a default kernel mac address? where I can find it?

    I grep those number, but i couldn't find.

    Thank you.