Bug 16105 - Unable to see My Apps or App Gallery contents if running TinySC
: Unable to see My Apps or App Gallery contents if running TinySC
Status: RESOLVED FIXED
Product: SB Touch
Classification: Unclassified
Component: SqueezeNetwork
: 7.5.0
: PC All
: P1 normal with 7 votes (vote)
: 7.5.1
Assigned To: Michael Herger
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-04-21 13:38 UTC by Mickey Gee
Modified: 2010-06-15 05:17 UTC (History)
5 users (show)

See Also:
Category: ---


Attachments
messages log file when this happens - SN says "wrong username/password" (129.99 KB, text/plain)
2010-05-10 09:30 UTC, Michael Herger
Details
Store built-in NIC's mac address in /etc/macaddress (663 bytes, patch)
2010-05-17 06:59 UTC, Michael Herger
Details | Diff
fall back to reading /etc/macaddress if /proc/cpuinfo returns invalid Serial (1007 bytes, patch)
2010-05-17 07:01 UTC, Michael Herger
Details | Diff
fall back to reading /etc/macaddress if /proc/cpuinfo returns invalid Serial (1007 bytes, patch)
2010-05-17 07:07 UTC, Michael Herger
Details | Diff
fall back to reading /etc/macaddress if /proc/cpuinfo returns invalid Serial (v3) (1007 bytes, patch)
2010-05-17 07:12 UTC, Michael Herger
Details | Diff
fall back to reading /etc/macaddress if /proc/cpuinfo returns invalid Serial (v4) (1.13 KB, patch)
2010-05-17 07:14 UTC, Michael Herger
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mickey Gee 2010-04-21 13:38:18 UTC
According to this forums thread, 

http://forums.slimdevices.com/showthread.php?t=77465

the My Apps or App Gallery menu items are blank when running TinySC. These menu items are populated if not running TinySC on the same Fab4.

Thread discusses workarounds for this issue.

Possibly a UK-only issue.
Comment 1 Chris Owens 2010-05-10 09:26:45 UTC
Michael to attach his log file.  Other log files would be helpful!
Comment 2 Michael Herger 2010-05-10 09:30:22 UTC
Created attachment 6827 [details]
messages log file when this happens - SN says "wrong username/password"

...as seen by a German user (http://forums.slimdevices.com/showthread.php?t=77378)
Comment 3 Michael Herger 2010-05-17 03:38:13 UTC
Investigating this issue with data I got from two German users, I found thousands of errors related to invalid mac addresses (00:04:20:00:00:00) being used to log a device in to mysb.com, starting early April. 

Could anybody seeing this issue please follow these few steps to help us understand what's going on here? You'll need a SSH client (eg. putty - http://www.chiark.greenend.org.uk/~s.../download.html) to do so - if you're not familiar typing a few commands on a command line, then just ignore this posting.

- enable SSH on your Touch (Settings/Advanced/Remote Login)
- use your SSH client to connect to your touch
- run the following command: "cat /proc/cpuinfo"
- from its output copy the "Serial" line and post it here

Thanks!
Comment 4 marlo 2010-05-17 03:51:26 UTC
Serial          : 1708090008000000
Comment 5 Michael Herger 2010-05-17 04:28:12 UTC
The putty link should have been:
http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
Comment 6 Michael Herger 2010-05-17 06:59:04 UTC
Created attachment 6844 [details]
Store built-in NIC's mac address in /etc/macaddress
Comment 7 Michael Herger 2010-05-17 07:01:38 UTC
Created attachment 6845 [details]
fall back to reading /etc/macaddress if /proc/cpuinfo returns invalid Serial

There seem to be devices with none-unique Serial values of 1708090008000000, resulting in attempts to log in to mysb.com with an invalid MAC address of 00:04:20:00:00:00. If we detect such a case, then fall back to reading the value stored in /etc/macaddress.
Comment 8 Michael Herger 2010-05-17 07:07:26 UTC
Created attachment 6846 [details]
fall back to reading /etc/macaddress if /proc/cpuinfo returns invalid Serial

fix check for invalid serial value
Comment 9 Michael Herger 2010-05-17 07:12:05 UTC
Created attachment 6847 [details]
fall back to reading /etc/macaddress if /proc/cpuinfo returns invalid Serial (v3)

Another attempt to attach the correct patch...
Comment 10 Michael Herger 2010-05-17 07:14:04 UTC
Created attachment 6848 [details]
fall back to reading /etc/macaddress if /proc/cpuinfo returns invalid Serial (v4)
Comment 11 Stein David 2010-05-17 10:38:44 UTC
cat /sys/class/net/eth0/address
Comment 12 SVN Bot 2010-05-17 12:49:00 UTC
 == Auto-comment from SVN commit #30777 to the slim repo by mherger ==
 == http://svn.slimdevices.com/slim?view=revision&revision=30777 ==

Bug: 16105
Description: The way we were determining the device's MAC address from embedded SBS was broken in newer production batches. The incorrect MAC address lead to the embedded SBS not being able to log in to mysb.com. This prevented the Apps Gallery, Internet Radio directories etc. from working correctly.

Change our method to no longer rely on /proc/cpuinfo to get the devices' mac address, but read /sys/class/net/eth0/address instead.
Comment 13 Michael Herger 2010-05-17 13:25:13 UTC
Thanks marlo/David! This issue should be fixed in tomorrow's 7.5.1 firmware build, r8775 or later
Comment 14 Digital Mitch 2010-06-02 02:55:03 UTC
This works for me as well and has also fixed a side issue (last.fm not scrobbling).

I haven't tested but suspect that it also clears up tinySBS having wrong time and synchronisation of alarms between tinySB and mySB.com).

Question of process: the bug is not listed in the release notes with the Beta download, when should that happen?
Comment 15 Mickey Gee 2010-06-03 12:05:46 UTC
I'll add this to release notes. Thanks for helping!
Comment 16 Digital Mitch 2010-06-15 05:14:20 UTC
Mickey Gee - think you missed it ;-)
Comment 17 Digital Mitch 2010-06-15 05:17:38 UTC
correction - half marks.

it is listed in http://wiki.slimdevices.com/index.php/Release_Notes

but missing from http://svn.slimdevices.com/repos/slim/7.5/tags/7.5.1/server/Changelog7.html