summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJi Luo <ji.luo@nxp.com>2020-11-04 20:29:01 +0800
committerJi Luo <ji.luo@nxp.com>2020-11-06 10:50:42 +0800
commit501690cb93c4df30700c1bf40f0f2eaed2444503 (patch)
tree67f4778aaa27c655542f14e39412ed06c886e0db
parent2062183df063e0653e9e88a690764647702af7dd (diff)
MA-18214-1 Hard code the BT mac address for imx8mp
imx8mp has serial number as all zeros, hard code the BT mac address for such case instead of setting it by property. Test: BT on imx8mp. Change-Id: I99f5b49164e1fa40c7fc6ecb639c71fa89158852 Signed-off-by: Ji Luo <ji.luo@nxp.com>
-rw-r--r--common/image-android.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/common/image-android.c b/common/image-android.c
index 632074ddff..affa2e31f0 100644
--- a/common/image-android.c
+++ b/common/image-android.c
@@ -80,8 +80,13 @@ static void append_kernel_cmdline(char *commandline)
" androidboot.btmacaddr=%c%c:%c%c:%c%c:%c%c:%c%c:%c%c",
bd_addr[0],bd_addr[1],bd_addr[2],bd_addr[3],bd_addr[4],bd_addr[5],
bd_addr[6],bd_addr[7],bd_addr[8],bd_addr[9],bd_addr[10],bd_addr[11]);
- strncat(commandline, newbootargs, COMMANDLINE_LENGTH - strlen(commandline));
+ } else {
+ /* Some boards have serial number as all zeros (imx8mp),
+ * hard code the bt mac address for such case. */
+ sprintf(newbootargs, " androidboot.btmacaddr=22:22:67:C6:69:73");
}
+
+ strncat(commandline, newbootargs, COMMANDLINE_LENGTH - strlen(commandline));
#endif
/* append soc type into bootargs */