Re: [linux-sunxi] Re: [RFC] Serial number on sunxi devices

2015-03-19 Thread selsinork
On 17/03/15 07:15, Olliver Schinagl wrote: Hey Iain, On 17-03-15 01:38, Iain Paton wrote: The eeproms are physically present on all boards as far as I can tell, however on every olinuxino I have, they are blank from the factory (i.e. content of every byte is 0xFF). Yeah they are all

Re: [linux-sunxi] Re: [RFC] Serial number on sunxi devices

2015-03-18 Thread Henrik Nordström
ons 2015-03-18 klockan 08:55 +0100 skrev Olliver Schinagl: I'm all for common methods, but you are suggesting to use a single dedicated page purely for the MAC address? Where is it defined which page that is? And what about using the subsequent page for stuff like a crc/checksum and verify

Re: [linux-sunxi] Re: [RFC] Serial number on sunxi devices

2015-03-18 Thread Irgendeiner
Am 18.03.2015, 08:55 Uhr, schrieb Olliver Schinagl oli...@schinagl.nl: Hey Henrik, On 18-03-15 08:51, Henrik Nordström wrote: mån 2015-03-16 klockan 11:13 +0100 skrev Hans de Goede: I see, yes using olinuxino's embedded in factory devices is a valid reason, so I will be happy to take

Re: [linux-sunxi] Re: [RFC] Serial number on sunxi devices

2015-03-18 Thread 'Al Thomas' via linux-sunxi
From: Henrik Nordström hen...@henriknordstrom.net To: linux-sunxi@googlegroups.com Sent: Wednesday, 18 March 2015, 10:17 Subject: Re: [linux-sunxi] Re: [RFC] Serial number on sunxi devices ons 2015-03-18 klockan 10:16 +0100 skrev Irgendeiner: I don't understand why checksums and other

Re: [linux-sunxi] Re: [RFC] Serial number on sunxi devices

2015-03-18 Thread Olliver Schinagl
Hey Henrik, On 18-03-15 08:51, Henrik Nordström wrote: mån 2015-03-16 klockan 11:13 +0100 skrev Hans de Goede: I see, yes using olinuxino's embedded in factory devices is a valid reason, so I will be happy to take patches for reading the MAC from the eeprom, we will need to do some tests to

Re: [linux-sunxi] Re: [RFC] Serial number on sunxi devices

2015-03-18 Thread Tomas Novotny
Hi, On Wed, 18 Mar 2015 09:12:47 +0100, Henrik Nordström hen...@familjen-nordstrom.se wrote: ons 2015-03-18 klockan 08:55 +0100 skrev Olliver Schinagl: I'm all for common methods, but you are suggesting to use a single dedicated page purely for the MAC address? Where is it defined which

Re: [linux-sunxi] Re: [RFC] Serial number on sunxi devices

2015-03-18 Thread Henrik Nordström
ons 2015-03-18 klockan 10:16 +0100 skrev Irgendeiner: I think that for the MAC used, sunxi must make sure that on all supported hardware the MAC planned by the board manufacturer will be used as default. Problem with most boards is that there is no MAC, and if there is one then it's not in a

Re: [linux-sunxi] Re: [RFC] Serial number on sunxi devices

2015-03-18 Thread Henrik Nordström
mån 2015-03-16 klockan 11:13 +0100 skrev Hans de Goede: I see, yes using olinuxino's embedded in factory devices is a valid reason, so I will be happy to take patches for reading the MAC from the eeprom, we will need to do some tests to make sure that we only do this on valid eeproms though,

Re: [linux-sunxi] Re: [RFC] Serial number on sunxi devices

2015-03-18 Thread Paul Kocialkowski
Le mardi 17 mars 2015 à 23:58 +0100, Paul Kocialkowski a écrit : Le mardi 17 mars 2015 à 09:36 +0100, Hans de Goede a écrit : Hi, On 16-03-15 23:02, Paul Kocialkowski wrote: Le lundi 16 mars 2015 à 14:45 +0100, Hans de Goede a écrit : Hi, On 16-03-15 13:31, Olliver Schinagl

Re: [linux-sunxi] Re: [RFC] Serial number on sunxi devices

2015-03-17 Thread Olliver Schinagl
Hey Paul, On 16-03-15 23:09, Paul Kocialkowski wrote: Le lundi 16 mars 2015 à 09:12 +0100, Hans de Goede a écrit : Hi, On 15-03-15 22:38, Paul Kocialkowski wrote: As far as I know, there is currently no mechanism in place to give each device a unique serial number, that would be shown in

Re: [linux-sunxi] Re: [RFC] Serial number on sunxi devices

2015-03-17 Thread Paul Kocialkowski
Le mardi 17 mars 2015 à 08:17 +0100, Olliver Schinagl a écrit : Hey Paul, On 16-03-15 23:09, Paul Kocialkowski wrote: Le lundi 16 mars 2015 à 09:12 +0100, Hans de Goede a écrit : Hi, On 15-03-15 22:38, Paul Kocialkowski wrote: As far as I know, there is currently no mechanism in

Re: [linux-sunxi] Re: [RFC] Serial number on sunxi devices

2015-03-17 Thread Olliver Schinagl
Hey Iain, On 17-03-15 01:38, Iain Paton wrote: On 16/03/15 09:51, Hans de Goede wrote: 2) Are the eeproms prepolulated on ALL olinuxino-s ? If they are not populated from the factory, I see little added value and I think I may end up nacking any patches for this, but first lets hear your

Re: [linux-sunxi] Re: [RFC] Serial number on sunxi devices

2015-03-17 Thread Paul Kocialkowski
Le mardi 17 mars 2015 à 09:36 +0100, Hans de Goede a écrit : Hi, On 16-03-15 23:02, Paul Kocialkowski wrote: Le lundi 16 mars 2015 à 14:45 +0100, Hans de Goede a écrit : Hi, On 16-03-15 13:31, Olliver Schinagl wrote: Hey, On 16-03-15 10:52, Hans de Goede wrote: Hi, Oops,

Re: [linux-sunxi] Re: [RFC] Serial number on sunxi devices

2015-03-16 Thread Paul Kocialkowski
Le lundi 16 mars 2015 à 09:12 +0100, Hans de Goede a écrit : Hi, On 15-03-15 22:38, Paul Kocialkowski wrote: As far as I know, there is currently no mechanism in place to give each device a unique serial number, that would be shown in e.g. /proc/cpuinfo. This can seem not very useful,

Re: [linux-sunxi] Re: [RFC] Serial number on sunxi devices

2015-03-16 Thread Iain Paton
On 16/03/15 09:51, Hans de Goede wrote: 2) Are the eeproms prepolulated on ALL olinuxino-s ? If they are not populated from the factory, I see little added value and I think I may end up nacking any patches for this, but first lets hear your arguments :) The eeproms are physically present on

Re: [linux-sunxi] Re: [RFC] Serial number on sunxi devices

2015-03-16 Thread Paul Kocialkowski
Le lundi 16 mars 2015 à 14:45 +0100, Hans de Goede a écrit : Hi, On 16-03-15 13:31, Olliver Schinagl wrote: Hey, On 16-03-15 10:52, Hans de Goede wrote: Hi, Oops, missed a bit to reply to, see below: On 16-03-15 10:04, Olliver Schinagl wrote: Also, which part of the SID do we

[linux-sunxi] Re: [RFC] Serial number on sunxi devices

2015-03-16 Thread Hans de Goede
Hi, On 16-03-15 13:31, Olliver Schinagl wrote: Hey, On 16-03-15 10:52, Hans de Goede wrote: Hi, Oops, missed a bit to reply to, see below: On 16-03-15 10:04, Olliver Schinagl wrote: Also, which part of the SID do we want in /proc/cpuinfo? The one is bigger then the other, though looking

[linux-sunxi] Re: [RFC] Serial number on sunxi devices

2015-03-16 Thread Olliver Schinagl
Hey, On 16-03-15 10:52, Hans de Goede wrote: Hi, Oops, missed a bit to reply to, see below: On 16-03-15 10:04, Olliver Schinagl wrote: Also, which part of the SID do we want in /proc/cpuinfo? The one is bigger then the other, though looking at http://linux-sunxi.org/SID_Register_Guide

[linux-sunxi] Re: [RFC] Serial number on sunxi devices

2015-03-16 Thread Hans de Goede
Hi, On 16-03-15 11:16, Olliver Schinagl wrote: Hey Hans, snip We will be using Lime2's which all have them, all lime's have them. Obviously there will be a check, to check if there is a valid eeprom with valid data, but for our product it will be required. Since we will be flashing a

[linux-sunxi] Re: [RFC] Serial number on sunxi devices

2015-03-16 Thread Hans de Goede
Hi, On 16-03-15 10:56, Olliver Schinagl wrote: Hey Hans, On 16-03-15 10:51, Hans de Goede wrote: Hi, On 16-03-15 10:04, Olliver Schinagl wrote: Hey all, On 16-03-15 09:12, Hans de Goede wrote: Hi, On 15-03-15 22:38, Paul Kocialkowski wrote: As far as I know, there is currently no

[linux-sunxi] Re: [RFC] Serial number on sunxi devices

2015-03-16 Thread Hans de Goede
Hi, On 16-03-15 10:04, Olliver Schinagl wrote: Hey all, On 16-03-15 09:12, Hans de Goede wrote: Hi, On 15-03-15 22:38, Paul Kocialkowski wrote: As far as I know, there is currently no mechanism in place to give each device a unique serial number, that would be shown in e.g. /proc/cpuinfo.

[linux-sunxi] Re: [RFC] Serial number on sunxi devices

2015-03-16 Thread Hans de Goede
Hi, Oops, missed a bit to reply to, see below: On 16-03-15 10:04, Olliver Schinagl wrote: Also, which part of the SID do we want in /proc/cpuinfo? The one is bigger then the other, though looking at http://linux-sunxi.org/SID_Register_Guide there's a lot of non-uniqueness that can be ignored

[linux-sunxi] Re: [RFC] Serial number on sunxi devices

2015-03-16 Thread Olliver Schinagl
Hey, On 16-03-15 11:21, Hans de Goede wrote: Hi, On 16-03-15 11:16, Olliver Schinagl wrote: Hey Hans, snip We will be using Lime2's which all have them, all lime's have them. Obviously there will be a check, to check if there is a valid eeprom with valid data, but for our product it will

[linux-sunxi] Re: [RFC] Serial number on sunxi devices

2015-03-16 Thread Olliver Schinagl
Hey Hans, On 16-03-15 10:51, Hans de Goede wrote: Hi, On 16-03-15 10:04, Olliver Schinagl wrote: Hey all, On 16-03-15 09:12, Hans de Goede wrote: Hi, On 15-03-15 22:38, Paul Kocialkowski wrote: As far as I know, there is currently no mechanism in place to give each device a unique serial

Re: [linux-sunxi] Re: [RFC] Serial number on sunxi devices

2015-03-16 Thread Paul Kocialkowski
Le lundi 16 mars 2015 à 17:50 -0400, Stefan Monnier a écrit : if necessary truncate the SID somehow. Or hash it, For some reason, I kinda like the idea of having the serial match something directly readable in the hardware instead of something that just looks about random. Furthermore, having

[linux-sunxi] Re: [RFC] Serial number on sunxi devices

2015-03-16 Thread Stefan Monnier
if necessary truncate the SID somehow. Or hash it, Stefan -- You received this message because you are subscribed to the Google Groups linux-sunxi group. To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscr...@googlegroups.com. For

[linux-sunxi] Re: [RFC] Serial number on sunxi devices

2015-03-16 Thread Olliver Schinagl
Hey Hans, On 16-03-15 11:13, Hans de Goede wrote: Hi, On 16-03-15 10:56, Olliver Schinagl wrote: Hey Hans, On 16-03-15 10:51, Hans de Goede wrote: Hi, On 16-03-15 10:04, Olliver Schinagl wrote: Hey all, On 16-03-15 09:12, Hans de Goede wrote: Hi, On 15-03-15 22:38, Paul Kocialkowski

[linux-sunxi] Re: [RFC] Serial number on sunxi devices

2015-03-16 Thread Jens Lucius
Am Sonntag, 15. März 2015 22:39:05 UTC+1 schrieb con...@paulk.fr: Do you have any better idea to do this, or is there some reference that I am missing? Currently the MAC address in U-Boot is generated that way, see: http://lists.denx.de/pipermail/u-boot/2014-June/181879.html -- You

[linux-sunxi] Re: [RFC] Serial number on sunxi devices

2015-03-16 Thread Hans de Goede
Hi, On 15-03-15 22:38, Paul Kocialkowski wrote: As far as I know, there is currently no mechanism in place to give each device a unique serial number, that would be shown in e.g. /proc/cpuinfo. This can seem not very useful, but it would be nice to have that for USB gadget drivers that make use

[linux-sunxi] Re: [RFC] Serial number on sunxi devices

2015-03-16 Thread Olliver Schinagl
Hey all, On 16-03-15 09:12, Hans de Goede wrote: Hi, On 15-03-15 22:38, Paul Kocialkowski wrote: As far as I know, there is currently no mechanism in place to give each device a unique serial number, that would be shown in e.g. /proc/cpuinfo. This can seem not very useful, but it would be