Hy
For my Project, i need to store a serial number into my R3.
With my prévious Board ( Mochabin), i had this command line to read the serial number :
hexdump -C /dev/mtd1ro | head | grep "MCB" | cut -d"=" -f2 | cut -d'|' -f1
I know that in the R3, there is no serial number.
but i can see mdt0ro, mtd1ro,mtd2ro and mtd3ro :
# ls /dev | grep 'mtd'
mtd0
mtd0ro
mtd1
mtd1ro
mtd2
mtd2ro
mtd3
mtd3ro
mtdblock0
mtdblock1
mtdblock2
mtdblock3
# hexdump -C /dev/mtd0ro | head
^C
# hexdump -C /dev/mtd1ro | head
00000000 01 00 64 aa 78 56 34 12 00 00 00 00 00 00 00 00 |..d.xV4.........|
00000010 47 d4 08 6d 4c fe 98 46 9b 95 29 50 cb bd 5a 00 |G..mL..F..)P..Z.|
00000020 88 00 00 00 00 00 00 00 61 90 00 00 00 00 00 00 |........a.......|
00000030 00 00 00 00 00 00 00 00 d6 d0 ee a7 fc ea d5 4b |...............K|
00000040 97 82 99 34 f2 34 b6 e4 e9 90 00 00 00 00 00 00 |...4.4..........|
00000050 68 cd 08 00 00 00 00 00 00 00 00 00 00 00 00 00 |h...............|
00000060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000070 51 5e 09 00 00 00 00 00 00 00 00 00 00 00 00 00 |Q^..............|
00000080 00 00 00 00 00 00 00 00 f4 03 00 aa f5 03 01 aa |................|
00000090 f6 03 02 aa f7 03 03 aa 80 ff 03 10 00 c0 1e d5 |................|
# hexdump -C /dev/mtd2ro | head
00000000 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
*
00300000
# hexdump -C /dev/mtd3ro | head
00000000 53 50 49 4e 41 4e 44 21 01 00 00 00 10 00 00 00 |SPINAND!........|
00000010 00 08 00 00 40 00 00 00 40 00 0c 00 00 00 20 30 |....@...@..... 0|
00000020 01 00 00 00 ff 00 00 00 00 00 00 00 00 00 00 00 |................|
00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000040 00 00 00 00 00 00 00 00 00 00 00 00 00 00 9a 5e |...............^|
00000050 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
*
00000800 4d 4d 4d 01 38 00 00 00 46 49 4c 45 5f 49 4e 46 |MMM.8...FILE_INF|
00000810 4f 00 00 00 01 00 00 00 01 00 02 01 00 0d 20 00 |O............. .|
00000820 70 1a 03 00 70 22 03 00 00 03 00 00 20 00 00 00 |p...p"...... ...|
I was wondering if i can use a space in one of mtd to store a custom serial number?
Thanks by advance for your help and answers