- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Which file has the ethernet MAC address? What is the variable name? Any suggestions for making this changable for production?
Link Copied
5 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have a script that should allow you to change your MAC address fairly easily. It writes to the last sector of flash which is where the Linux kernel looks for the MAC address.
Which board are you using? I'll test it out on that board for you to make sure it works and then I'll post the script that I use online later- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I use the Altera Cyclone NIOS board, but I also need to implement it on a custom board. Which source file retrieves/specifies where the MAC address is stored?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The file that reads the MAC address from flash is setup.c and it can be found in <linux eclipse plugin directory>/linux-2.6.x/arch/nios2nommu/kernel.
Dennis Scott Microtronix Datacom Ltd.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Ken:
Did you ever post the script? I'm interested in using it with a custom board. Thanks. -John --- Quote Start --- originally posted by ken@Dec 6 2004, 09:39 AM i have a script that should allow you to change your mac address fairly easily. it writes to the last sector of flash which is where the linux kernel looks for the mac address.
which board are you using? i'll test it out on that board for you to make sure it works and then i'll post the script that i use online later
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=3043)
--- quote end ---
--- Quote End ---
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The format of the sector is listed in:
nios2\examples\software\simple_socket_server\network_utilities.c This is actually part of the MicroC/OS-II example, but you should be able to strip out the stuff you need to make your own programming utility.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page