Go Down

Topic: Please upgrade your Yún - latest is 1.3 (Read 56345 times) previous topic - next topic

sonnyyu

The advantage of building an image that includes an addition packages is due to the use of squashfs, all files provided by those packages are actually kept in compressed form in flash. In an other word it will take less space.

sonnyyu

#31
May 05, 2014, 08:37 pm Last Edit: May 05, 2014, 08:39 pm by sonnyyu Reason: 1
At New Yún Image build  directory:
Code: [Select]
~/OpenWrt-yun/docs  has document source code.

Make pdf of it:

Code: [Select]
sudo apt-get install -y texlive-lang-french
sudo apt-get install -y tex4ht tex4ht-common
make docs/compile V=s


openwrt.pdf  is official doc.


domgiles

Is there anyway back...

I had a power failure during the firmware upgrade of the new image.... Nothing all year and the one time I'm in the middle of something useful. I was running of a server instead of a laptop as well and as a result lost power to the board. Now I can't see the Yun.

Is there anyway back or is it a dead board now?

domgiles

Solved it.... rebuild via tftp

noblepepper

Most likely you can revive it. You say you can't see the yun, what do you mean? No webpage or WiFi port in the IDE? No USB port in the IDE? No ssh connection? No USB on a COM or tty? The power is still out so it's dark? ;-)

If you still have USB, load the yunserialterminal sketch, open the serial monitor, press the yun reset button and post the output.


federicofissore

@domgiles did you solve it using the advanced procedure? http://arduino.cc/en/Tutorial/YunUBootReflash

To anyone: since upgrading via webpanel/with sysupgrade DOES NOT touch the most fragile part (u-boot), you can always revive your board using the advanced procedure

domgiles

I didn't get the chance to boot into safe mode... It hung before been given that opportunity. I was forced to follow these instructions.... http://arduino.cc/en/Tutorial/YunUBootReflash

Which worked fine but I'd used a similar approach when building other Linux kernels... It's not an approach I'd whole heartily recommend.

5a2v0

hi i read about this update and i would  to know if i can put the image in a usb stick instead of a micro sd ?

federicofissore

Yes you can. Once you've plugged that it, open the webpanel. If it shows the upgrade box as mentioned in http://arduino.cc/en/Tutorial/YunSysupgrade than you can safely proceed

5a2v0

ok thanks...

i put the zip and the bin (extracted) file in the root of my usb stick.. then i plugged in the usb in Yun and then i plug micro-usb to turn on the Yun....

after yun start i went to http://192.168.1.3 (yun local ip) and i started the upgrade process ... the wifi led start blinking but when it stops i can not found the yun's wifi SSID..

now i have  "L13" e "ON" leds on...arduino's sketch seem doesn't run anymore because the lcd (in the sketch is updated every 1 sec) is "freezed"

maybe i must power off and then power on the board ?

federicofissore

Maybe it got stuck in the uboot phase after reboot. Try uploading YunSerialTerminal and rebooting the yun

5a2v0

#41
May 13, 2014, 02:31 pm Last Edit: May 13, 2014, 02:34 pm by 5a2v0 Reason: 1
before you reply i unplugged the micro usb and plugged in again...
yun start & its wifi become avaiable ! :)

trought my phone i surf to arduino.local (192.168.240.1) and i change arduino psw and wifi configuration to connect it with my router's wifi...the yun restart but got stuck...

i unplugged and plugged in again micro usb and it start but now:

- no arduino's wifi
- it doesn't connect to my router's wifi
- USB led is ALWAYS on (no usb stick or sd card are in) !

EDIT:
after about 5 minutes (why so much?), yun connect itself to my router's wifi with "UNKNOWN" hostname... now i can work with it...

federicofissore


- USB led is ALWAYS on (no usb stick or sd card are in) !


From http://forum.arduino.cc/index.php?topic=235360.0

- Linux side ready visual notification: when linux boot completes, the usb led lights up (it's bright white)

5a2v0

ok sorry ! :P i didn't read this..

one more question:
via ssh i did:

opkg update
opkg install php5 php5-cgi
opkg update
opkg install php5-mod-json
opkg install php5-mod-curl

then in /etc/php.ini i uncomment the json & curl extension
then in /etc/config/uhttpd i uncomment php interpeter

once restarted uhttpd server, i can see that my php webpage that with previous open-wrt version was much quick, become slow...4-5 sec to display the page !!

this is my php page:
Code: [Select]
<html><body>
<?php
$ch 
curl_init();
curl_setopt($chCURLOPT_URL"http://localhost/data/get");
curl_setopt($chCURLOPT_USERPWD"PASSWORD");
curl_setopt($chCURLOPT_RETURNTRANSFER1);
$output curl_exec($ch);
curl_close($ch);
echo 
$output;

$result json_decode($outputtrue);
echo 
'<br/>';

print_r($result);
echo 
'<br/>';

echo 
$result[value]['totale'];
echo 
'<br/>';

echo 
$result[value]['cucina'];
echo 
'<br/>';

echo 
$result[value]['bagni'];
echo 
'<br/>';

echo 
$result[value]['stanze'];
echo 
'<br/>';

echo 
$result[value]['rele Bagni'];
echo 
'<br/>';

echo 
$result[value]['rele Stanze'];
?>

</body></html>

federicofissore

I can't talk about the speed of php, but I would suggest you to use the embedded php bridge client: it's in /usr/lib/python2.7/bridge/php IIRC

Go Up