<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
On 07/28/15 01:27, Wojtek Sawaściuk wrote:<br>
<blockquote cite="mid:55B6B066.8090905@no-ip.pl" type="cite">
<pre wrap="">Hello,
What is current status of support for Ubiquity's EdgeRouter POE (this
one with 2+3switch ports) ?
I can't flash it with sysupgrade using openwrt-15.05-rc3-octeon-er:
"Sysupgrade is not yet supported on cavium,octeon-3860.
Image check 'platform_check_image' failed."</pre>
</blockquote>
<tt><span style="color:#000000;background-color:#ffffff;">I suspect
</span></tt><tt><span
style="color:#000000;background-color:#ffffff;"> r45462 (and
related r45496) broke sysupgrade on EdgeRouter devices. it fills
/tmp/sysinfo/board_name with "cavium,octeon-3860" while
sysupgrade expects i</span></tt><tt>t to be "er" or "erlite".
This is because </tt> <tt> </tt> <tt> </tt><tt><span
style="color:#000000;background-color:#ffffff;">octeon only has
a few generic dts files, nothing board specific, so there is no
useable board name in /proc/device-tree/compatible.</span></tt><tt><br>
</tt><tt> </tt><tt><br>
</tt><tt>I worked around this by putting this in</tt><tt><span
style="color:#000000;background-color:#ffffff;">
target/linux/octeon/base-files/lib/preinit/11_sysinfo:</span></tt><tt><br>
</tt><tt> </tt> <tt><br>
</tt><tt> </tt> <tt><br>
</tt><tt> </tt> <tt> </tt><tt> </tt>
<div> <tt><span style="color:#000000;background-color:#ffffff;">#!/bin/sh
</span></tt><tt><br>
</tt> <tt><br>
</tt><tt>verify_sysinfo() { </tt><tt><br>
</tt><tt> if [ -f /tmp/sysinfo/board_name ]; then </tt><tt><br>
</tt> <tt><br>
</tt><tt> name=$(cat /tmp/sysinfo/board_name) </tt><tt><br>
</tt> <tt><br>
</tt><tt> case "$name" in </tt><tt><br>
</tt><tt> er|erlite|erpro) </tt><tt><br>
</tt><tt> continue </tt><tt><br>
</tt><tt> ;; </tt><tt><br>
</tt><tt> *) </tt><tt><br>
</tt><tt> rm
/tmp/sysinfo/board_name </tt><tt><br>
</tt><tt> ;; </tt><tt><br>
</tt><tt> esac </tt><tt><br>
</tt><tt> fi </tt><tt><br>
</tt><tt>} </tt><tt><br>
</tt> <tt><br>
</tt><tt>boot_hook_add preinit_main verify_sysinfo</tt><tt><br>
</tt> <tt><br>
</tt></div>
<tt> </tt> <tt> </tt><tt>A real fix for this is still needed
though.</tt><tt><br>
</tt><tt><br>
</tt><br>
<tt></tt>
<blockquote cite="mid:55B6B066.8090905@no-ip.pl" type="cite">
<pre wrap="">
I can with openwrt-15.05-rc3-octeon-erlite but system detects only eth0
and eth1, not switch interface (same status with BarierBraker).
</pre>
</blockquote>
<tt>I only have ERL devices without switch, so can't help you with
that, sorry.</tt><br>
<br>
<tt>Kind regards,</tt><tt><br>
</tt><tt>Stijn</tt>
</body>
</html>