Patch B2G kernel to allow static MAC addresses on Panda Boards

RESOLVED FIXED

Status

Release Engineering
Platform Support
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: dividehex, Assigned: tzimmermann)

Tracking

other
ARM
Gonk (Firefox OS)
Dependency tree / graph

Firefox Tracking Flags

(blocking-kilimanjaro:?)

Details

(Reporter)

Description

5 years ago
Currently, the AOSP kernel we are using for B2G builds generates a random MAC address due to the fact that panda boards do not have an EEPROM and therefore does not have a factory set MAC address. AOSP and the linux kernel all handle this the same with by generating random MACs.  We will need to solve this before B2G on panda tests goes into prodution.

There are 2 approaches to getting static MACs.
First, patch the kernel net driver to allow for the mac address to be passed by via kernel boot params.  This creates a dependency on the boot loader being able to pass those.  Linaros u-boot loader will be able to pass this but not the current uboot loader being used with b2g.

The second approach, which Linaro takes, is to patch the kernel to generate a MAC address from the CPU DIE ID.  This is also the same way Linaro U-boot handles this issue.

Here are the patches to Linaro's solution.
http://android.git.linaro.org/gitweb?p=kernel/panda.git;a=commit;h=c6457e678d77a4767d81a3b65f5414c393ac959a
http://android.git.linaro.org/gitweb?p=kernel/panda.git;a=commit;h=6ddbfc74955d0269cb8ca676995bb54c5e0c459a
http://android.git.linaro.org/gitweb?p=kernel/panda.git;a=commit;h=ff3c6d41588d2c204c8bb8405761d221893ae2e4
(Reporter)

Updated

5 years ago
blocking-kilimanjaro: --- → ?
Blocks: 778249
Blocks: 778248
FYI: I'm working on this as part of https://bugzilla.mozilla.org/show_bug.cgi?id=778248.
Status: NEW → ASSIGNED
This change has been merged as part of https://bugzilla.mozilla.org/show_bug.cgi?id=778248.
Status: ASSIGNED → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
Product: mozilla.org → Release Engineering
You need to log in before you can comment on or make changes to this bug.