SAM9M10-G45-EK / Angstrom rootfs - eth0 won't take static IP

Moderator: nferre

Alistair.Gadd
Posts: 9
Joined: Sat Jan 19, 2013 11:57 am

SAM9M10-G45-EK / Angstrom rootfs - eth0 won't take static IP

Fri Jul 12, 2013 12:12 pm

I have followed the Linux4sam procedure for SD card boot without U-Boot for the SAM9M10-G45-EK evaluation board and have it running. I used at91bootloader ver 3.5.4 to create BOOT.BIN and used the "linux-2.6.30-at91-exp.4-at91sam9m10g45ek.bin" kernel as IMAGE.BIN stored to the FAT16 partition. I put the "Angstrom-x11-at91sam9m10-image-glibc-ipk-2009.X-stable-at91sam9m10g45ek.rootfs.jffs2" rootfs into the ext2 partition using the method described in the FAQ at the end of the "SD Card" section.

I boot Linux, log in and change "/etc/network/interfaces" to the following:
# Wired or wireless interfaces
auto eth0
iface eth0 inet static
address 192.168.1.31
netmask 255.255.254.0
gateway 10.159.244.1
#iface eth0 inet dhcp
#iface eth1 inet dhcp

But on ifdown / ifup or reboot, cold or warm, I never get it to take that address, it always ends up with one out of my DHCP server's pool (192.168.1.100-199).
Has anybody else had this problem, or might know what's going on? I've asked the technical support guys at Atmel to help, and they say that the "AT91Bootstrap 3.5.4-00007-g7162da9-dirty (Tue Jul 9 18:22:23 CEST 2013)" at91bootstrap fixes it, but I've tried it and still get the problem.
Please help - Regards,
Alistair.
blue_z
Location: USA
Posts: 1761
Joined: Thu Apr 19, 2007 10:15 pm

Re: SAM9M10-G45-EK / Angstrom rootfs - eth0 won't take stati

Sat Jul 13, 2013 3:46 am

I'm not familiar with Angstrom initialization, but are you sure iface, address etc. should be on separate lines?
How would the parser of that file know to which interface that address belongs?

A workaround might be to have the DHCP server provide a "reserved" IP address (instead of a dynamic one) to your board. The DHCP server would use the board's MAC address to determine which (preassigned) reserved IP address to use.

Regards

Return to “SAM9-based”

Who is online

Users browsing this forum: rosalynfb11 and 2 guests