1
0
mirror of git://projects.qi-hardware.com/xburst-tools.git synced 2024-12-23 17:59:32 +02:00

Re: [PATCH 7/8] qi-add-gta02-indentity-part-parsing.patch

Andy,

On Tuesday 03 February 2009 18:12:50 Andy Green wrote:
> Now everything else is in place, we are able to mount
> the GTA02 "identity" partition and extract the USB Ethernet
> MAC Address from it, and add it to the kernel commandline.
>
> This causes the Ethernet gadget to use the same MAC address
> each boot, simplifying DHCP server situation.  The MAC
> address in the identity partition is globally unique from
> the factory.

Because of this patch I can no longer load g_ether module with host_addr= and
dev_addr= parameters.

The module is always loaded using factory mac for HOST and random mac for DEV.

That messes up my setup a bit, as I use NetworkManager 0.7 on FreeRunner
itself (and it expects DEV mac to be the same each time).

Would it be a problem to also include g_ether.dev_addr?

Attached patch solves my problem.

Rob
This commit is contained in:
Robert Piasek 2009-02-20 02:34:36 +00:00 committed by Andy Green
parent c9033e2d91
commit 0395c03c9d

View File

@ -606,6 +606,10 @@ char * append_device_specific_cmdline_gta02(char * cmdline)
cmdline += strlen(strcpy(cmdline, " g_ether.host_addr="));
cmdline += strlen(strcpy(cmdline, &mac[2]));
*cmdline += ' ' ;
cmdline += strlen(strcpy(cmdline, " g_ether.dev_addr="));
cmdline += strlen(strcpy(cmdline, &mac[2]));
*cmdline += ' ' ;
bail:
this_kernel = real_kernel;