Skip to contentSkip to conversation

arm: am57xx: Set serial# variable

PATCH In review Sam Protsenko 3 participants 4 messages Feb 13, 2017 – Feb 17, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: am57xx: Set serial# variable

serial# variable is used to correctly display device ID in "fastboot devices". It also can be used further for displaying device ID in "adb devices" (should be passed as "androidboot.serialno" to kernel cmdline, via "bootargs" variable).

Serial number generating algorithm is described at [1].

[1] http://lists.denx.de/pipermail/u-boot/2015-March/207462.html

---
 board/ti/am57xx/board.c | 2 ++
 1 file changed, 2 insertions(+)
board/ti/am57xx/board.c +2 -0
index 5f2d4dfab8..1611514417 100644
@@ -487,6 +487,8 @@ int board_late_init(void)
 	palmas_i2c_write_u8(TPS65903X_CHIP_P1, TPS65903X_PRIMARY_SECONDARY_PAD2,
 			    val);
 
+	omap_die_id_serial();
+
 	return 0;
 }
 
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/1 arm: am57xx: Set serial# variable

Quoted 10 lines · Sam Protsenko

serial# variable is used to correctly display device ID in "fastboot devices". It also can be used further for displaying device ID in "adb devices" (should be passed as "androidboot.serialno" to kernel cmdline, via "bootargs" variable).

Serial number generating algorithm is described at [1].

[1] http://lists.denx.de/pipermail/u-boot/2015-March/207462.html

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170213/dc588862/attachment.sig>
#2 lore raw

PATCH 1/1 arm: am57xx: Set serial# variable

In reply to Sam Protsenko
Quoted 10 lines · Sam Protsenko

serial# variable is used to correctly display device ID in "fastboot devices". It also can be used further for displaying device ID in "adb devices" (should be passed as "androidboot.serialno" to kernel cmdline, via "bootargs" variable).

Serial number generating algorithm is described at [1].

[1] http://lists.denx.de/pipermail/u-boot/2015-March/207462.html

Thanks and regards,
Lokesh

#3 lore raw
In reply to Sam Protsenko
Quoted 5 lines · Semen Protsenko

serial# variable is used to correctly display device ID in "fastboot devices". It also can be used further for displaying device ID in "adb devices" (should be passed as "androidboot.serialno" to kernel cmdline, via "bootargs" variable).

Quoted 7 lines

Serial number generating algorithm is described at [1].

[1] http://lists.denx.de/pipermail/u-boot/2015-March/207462.html

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170217/dfbe56dd/attachment.sig>