Yun bricked after try to install LininoIO?

Home Page Template Forums Linino Yun bricked after try to install LininoIO?

This topic contains 13 replies, has 4 voices, and was last updated by  vytybaqu 1 week, 4 days ago.

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #2810

    Toni
    Participant

    Hello

    I got an Arduino Yun, and I wanted to use it to read from sensors and send the data via wifi to a node server using johnny-five.

    This is the process that I have followed to install johnny-five following the instruction in nino-io:

    Until here everything was Ok.

    Then I followed the steps to install lininoIO:

    In the YunSerialTerminal I did:

    But after that, I can’t access via SSH to my Yun through the “YunSerialTerminal”, I can’t see anything.

    I have lost the Yun Password after sysupgrade and I can’t recover it introducing it again through the “passwd” instruction in the “YunSerialTerminal”, and consequently I can’t access the yun via puTTY either.

    The USB LED, never lights now, and the RX LEDis always blinking.

    When I reset the Yun through the YunSerialTerminal the restart doesn’t finish. I have attached the reset. With this reset I can’t get failsave mode to reset the Yun to factory mode.

    U-Boot 1.1.4-linino-g335e76c8-dirty (Mar  5 2015 - 09:56:20)
    
    Linino Board (ar9331) U-boot
    DRAM:  64 MB
    Top of RAM usable for U-Boot at: 84000000
    Reserving 217k for U-Boot at: 83fc8000
    Reserving 192k for malloc() at: 83f98000
    Reserving 44 Bytes for Board Info at: 83f97fd4
    Reserving 36 Bytes for Global Data at: 83f97fb0
    Reserving 128k for boot params() at: 83f77fb0
    Stack Pointer at: 83f77f98
    Now running in RAM - U-Boot at: 83fc8000
    Flash Manuf Id 0xef, DeviceId0 0x40, DeviceId1 0x18
    flash size 16777216, sector count = 256
    Flash: 16 MB
    In:    serial
    Out:   serial
    Err:   serial
    Net:   eth0: b4:21:8a:00:00:00
    eth1: b4:21:8a:00:00:01
    eth0, eth1
    autoboot in 4 seconds (stop with 'lin')...
    ## Booting image at 9fea0000 ...
       Image Name:   MIPS OpenWrt Linux-3.3.8
       Created:      2015-02-03  14:03:09 UTC
       Image Type:   MIPS Linux Kernel Image (lzma compressed)
       Data Size:    1129750 Bytes =  1.1 MB
       Load Address: 80060000
       Entry Point:  80060000
       Verifying Checksum at 0x9fea0040 ...OK
       Uncompressing Kernel Image ... OK
    No initrd
    ## Transferring control to Linux (at address 80060000) ...
    ## Giving linux memsize in bytes, 67108864
    
    Starting kernel ...
    
    [    0.000000] Linux version 3.3.8 (build@build-base) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #1 Tue Feb 3 15:02:42 CET 2015
    [    0.000000] bootconsole [early0] enabled
    [    0.000000] CPU revision is: 00019374 (MIPS 24Kc)
    [    0.000000] SoC: Atheros AR9330 rev 1
    [    0.000000] Clocks: CPU:400.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:25.000MHz
    [    0.000000] Determined physical RAM map:
    [    0.000000]  memory: 04000000 @ 00000000 (usable)
    [    0.000000] User-defined physical RAM map:
    [    0.000000]  memory: 04000000 @ 00000000 (usable)
    [    0.000000] Initrd not found or empty - disabling initrd
    [    0.000000] Zone PFN ranges:
    [    0.000000]   Normal   0x00000000 -> 0x00004000
    [    0.000000] Movable zone start PFN for each node
    [    0.000000] Early memory PFN ranges
    [    0.000000]     0: 0x00000000 -> 0x00004000
    [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
    [    0.000000] Kernel command line:  console=spicons board=linino-yun mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env),14656k(rootfs),1280k(kernel),64k(nvram),64k(art),15936k@0x50000(firmware) mem=64M rootfstype=squashfs,jffs2 noinitrd rootfstype=squashfs,jffs2 noinitrd
    [    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
    [    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
    [    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
    [    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
    [    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
    [    0.000000] Writing ErrCtl register=00000000
    [    0.000000] Readback ErrCtl register=00000000
    [    0.000000] Memory: 61004k/65536k available (2416k kernel code, 4532k reserved, 686k data, 216k init, 0k highmem)
    [    0.000000] SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    [    0.000000] NR_IRQS:256
    [    0.000000] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104)
    [    0.080000] pid_max: default: 32768 minimum: 301
    [    0.080000] Mount-cache hash table entries: 512
    [    0.080000] NET: Registered protocol family 16
    [    0.090000] gpiochip_add: registered GPIOs 0 to 29 on device: ath79
    [    0.090000] MIPS: machine is Arduino Yun
    [    0.530000] mach-linino: setting GPIO
    [    0.530000] Setting GPIO OE 21
    [    0.540000] Setting GPIO OE2 22
    [    0.540000] Setting GPIO UART-ENA 23
    [    0.540000] mach-linino: enabling GPIO SPI Controller
    [    0.550000] bio: create slab <bio-0> at 0
    [    0.560000] Switching to clocksource MIPS
    [    0.570000] NET: Registered protocol family 2
    [    0.570000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.570000] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
    [    0.570000] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.570000] TCP: Hash tables configured (established 2048 bind 2048)
    [    0.570000] TCP reno registered
    [    0.570000] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [    0.580000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [    0.580000] NET: Registered protocol family 1
    [    0.600000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    0.600000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
    [    0.610000] msgmni has been set to 119
    [    0.610000] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
    [    0.610000] io scheduler noop registered
    [    0.620000] io scheduler deadline registered (default)
    [    0.620000] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
    [    0.630000] ar933x-uart: ttyATH0 at MMIO 0x18020000 (irq = 11) is a AR933X UART
    [    0.630000] console [spicons0] enabled, bootconsole disabled

    So I think my Yun is bricked.

    Some Idea to fix it?

    Thanks

    • This topic was modified 4 years, 3 months ago by  Toni.
    #2812

    Toni
    Participant

    At the end I could finish the install:

    * run-avrdude /etc/linino/bathos-one.hex
    * reboot && exit

    The problem was that after the “sysupgrade” the board sets the board to linino defaults for the Name = “linino” and Password = ‘doghunter’. therefore I could access via ssh and finish the installation.

    Now my problem is that I can’t access the board via the serial port (COM), In the Arduino IDE in tools –> port –> doesn’t appear.

    Some Idea how to fix that?

    Thanks

    #2816

    Alessandro Coda
    Keymaster

    Hi,
    are you able to connect via ssh to the yun using username=root password=doghunter?
    if you are able to do this you can run the command
    lininoio -f stop
    in order to set the ttyATH0 for the console.
    Can you post also the uboot environment? From the uboot console give the command printenev

    Let me know if it works.

    One point that it is not clear. Do you want to use lininoio, or jonny-five and firmata?

    #2837

    Toni
    Participant

    Hello.
    Thanks for your reply.

    I uploaded the Blink example and I recovered the COM port in the Arduino IDE.

    But I tried to upload the YunSerialTerminal example through the COM port and access the board, but when I opened the serial monitor I can’t see nothing. I don’t know If it’s related with the fact that I have installed LininoIO and if I have to do something to access. Also the USB LED doesn’t light even though I can see the port in the IDE, and the RX LED is always blinking.

    I’ll answer your questions in order:

    1- Are you able to connect via ssh to the yun using username=root password=doghunter?

    Yes. I configured again the name and password of my Yun, and I can access it by SSH.

    2- if you are able to do this you can run the command lininoio -f stop in order to set the ttyATH0 for the console.

    I can do this, but I don’t understand very well what I get doing so. I’m new programing this kind of boards and with linux. so For example: Before installing LininoIO I could upload the YunSerialTerminal via serial PORT (COM) and open the serial monitor to access the board. Now after installing LininoIO I can’t. And now my question is: Running the command lininoio -f stop Could I access again to the board again through YunSerialTerminal ?
    What are exactly the functions of lininoio (start/stop)?

    3- Can you post also the uboot environment? From the uboot console give the command printenv

    linino> printenv

    bootcmd=bootm 0x9fea0000
    bootdelay=4
    ethaddr=0xb4:0x21:0x8a:0x00:0x00:0x10
    ipaddr=192.168.1.2
    serverip=192.168.1.1
    ethact=eth0
    baudrate=250000
    bootargs=console=spicons board=linino-yun mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env),14656k(rootfs),1280k(kernel),64k(nvram),64k(art),15936k@0x50000(firmware) mem=64M rootfstype=squashfs,jffs2 noinitrd
    stdin=serial
    stdout=serial
    stderr=serial

    Environment size: 390/65532 bytes
    linino>

    4- One point that it is not clear. Do you want to use lininoio, or jonny-five and firmata?

    My first idea was write code in Javascript and I saw that Johnny-five was compatible with a lot of boards including Arduino Yun. I saw that it was possible to install Johnny-five installing the nino-io pluging, but it was necessary to install LininoOS.
    The steps to follow in the nino-io web wasn’t very clear and I supossed that was necessary to install lininoIO to running Johnny-five. Was it necessary?
    Could you explain me what would be the difference between use lininoio or jonny-five and firmata to program the board.
    Are they compatible? I mean, Could I install both together? If so What Are steps that remain at this point to install Johnny-five?

    Sorry for the long message and lot of questions

    Thanks

    • This reply was modified 4 years, 3 months ago by  Toni.
    • This reply was modified 4 years, 3 months ago by  Toni.
    #2840

    Alessandro Coda
    Keymaster

    The LininoIO branch start as default with lininoIO enabled it means that on the mcu side you have installed bathos-mucio. Thisi is not your case.
    This firmware export on linux side all the mcu peripheral: adc,gpio,pwm,etc
    The protocol between linux MPU and MCU is running on uart so the linux console is exported to the user passing through SPI (connecting the two micro).
    If you look at /etc/inittab and the console environment on uboot you see ttySPI0 and spicons respectively. This is the default configuration when lininoio is enabled.
    If you stop lininoio, the script change /etc/inittab to use ttyATH0 and console to point to ttyATH0 and installing on the mcu side the YunSerialTerminal.
    This is why I asked you to run the command lininoio -f stop, in order to make the settings compatible.
    In the latest build we added some additional script that avoid to the user to have this inconsistency.

    #2841

    Toni
    Participant

    Hello

    I tried via SSh to run ‘lininoio -f stop’, but it didn’t work the answer was:

    root@ofcyun:~# lininoio -f stop
    STATUS : ENABLED
    USAGE : lininoio <start/stop>

    ‘lininoio -f stop’ doesn’t work, so I tried with ‘lininoio stop’ and I get this messsage

    root@ofcyun:~# lininoio stop
    WARNING ! Please be sure to run lininoio when connected by means of SSH to your board, otherwise you could damage your board !
    Do you want to proceed ? [y/n] n
    Terminating the script for now…

    I didn’t proceed because of the message advise. if I stop lininoio and I want to access the board via SSH can I damage it?

    • This reply was modified 4 years, 3 months ago by  Toni.
    #2843

    Alessandro Coda
    Keymaster

    The message says that you need to launch the command lininoio -f stop from an ssh session, because since the firmware on the mcu will change, if you run the command on the console you’ll be reset during the mcu programming.

    #2844

    Toni
    Participant

    Thanks for your reply

    Are there some way I can edit the /etc/inittab file, without having access to the Arduino Yun via Wifi, Ethernet and YunSerialTerminal?

    I tried to make a proof and edited the file commenting the last line:

    
    ::sysinit:/etc/init.d/rcS S boot
    ::shutdown:/etc/init.d/rcS K shutdown
    #ttySPI0::respawn:/bin/ash --login
    

    And now I have neither Wifi nor Ethernet access. The only acces I have is the Serial port COM.

    Until now I have tried this:

    1- WLAN RST by at least 30 seconds

    Nothing happened.

    I have installed in my Yun LininoOS and LininoIO, even though LininoOS is a version of OpenWRT I don’t know if pressing at least 30 seconds works in the same way or simply by the fact of commenting the inittab file this option is lost,

    2- FAILSAVE MODE

    I tried the (failsave mode) option from U-boot.I uploaded YunSerialTerminal and press YUN RST and the result is this:

    
    U-Boot 1.1.4-linino-g335e76c8-dirty (Mar  5 2015 - 09:56:20)
    
    Linino Board (ar9331) U-boot
    DRAM:  64 MB
    Top of RAM usable for U-Boot at: 84000000
    Reserving 217k for U-Boot at: 83fc8000
    Reserving 192k for malloc() at: 83f98000
    Reserving 44 Bytes for Board Info at: 83f97fd4
    Reserving 36 Bytes for Global Data at: 83f97fb0
    Reserving 128k for boot params() at: 83f77fb0
    Stack Pointer at: 83f77f98
    Now running in RAM - U-Boot at: 83fc8000
    Flash Manuf Id 0xef, DeviceId0 0x40, DeviceId1 0x18
    flash size 16777216, sector count = 256
    Flash: 16 MB
    In:    serial
    Out:   serial
    Err:   serial
    Net:   eth0: b4:21:8a:00:00:00
    eth1: b4:21:8a:00:00:01
    eth0, eth1
    autoboot in 4 seconds (stop with 'lin')...
    ## Booting image at 9fea0000 ...
       Image Name:   MIPS OpenWrt Linux-3.3.8
       Created:      2015-02-03  14:03:09 UTC
       Image Type:   MIPS Linux Kernel Image (lzma compressed)
       Data Size:    1129750 Bytes =  1.1 MB
       Load Address: 80060000
       Entry Point:  80060000
       Verifying Checksum at 0x9fea0040 ...OK
       Uncompressing Kernel Image ... OK
    No initrd
    ## Transferring control to Linux (at address 80060000) ...
    ## Giving linux memsize in bytes, 67108864
    
    Starting kernel ...
    
    [    0.000000] Linux version 3.3.8 (build@build-base) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #1 Tue Feb 3 15:02:42 CET 2015
    [    0.000000] bootconsole [early0] enabled
    [    0.000000] CPU revision is: 00019374 (MIPS 24Kc)
    [    0.000000] SoC: Atheros AR9330 rev 1
    [    0.000000] Clocks: CPU:400.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:25.000MHz
    [    0.000000] Determined physical RAM map:
    [    0.000000]  memory: 04000000 @ 00000000 (usable)
    [    0.000000] User-defined physical RAM map:
    [    0.000000]  memory: 04000000 @ 00000000 (usable)
    [    0.000000] Initrd not found or empty - disabling initrd
    [    0.000000] Zone PFN ranges:
    [    0.000000]   Normal   0x00000000 -> 0x00004000
    [    0.000000] Movable zone start PFN for each node
    [    0.000000] Early memory PFN ranges
    [    0.000000]     0: 0x00000000 -> 0x00004000
    [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
    [    0.000000] Kernel command line:  console=spicons board=linino-yun mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env),14656k(rootfs),1280k(kernel),64k(nvram),64k(art),15936k@0x50000(firmware) mem=64M rootfstype=squashfs,jffs2 noinitrd rootfstype=squashfs,jffs2 noinitrd
    [    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
    [    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
    [    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
    [    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
    [    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
    [    0.000000] Writing ErrCtl register=00000000
    [    0.000000] Readback ErrCtl register=00000000
    [    0.000000] Memory: 61004k/65536k available (2416k kernel code, 4532k reserved, 686k data, 216k init, 0k highmem)
    [    0.000000] SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    [    0.000000] NR_IRQS:256
    [    0.000000] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104)
    [    0.080000] pid_max: default: 32768 minimum: 301
    [    0.080000] Mount-cache hash table entries: 512
    [    0.080000] NET: Registered protocol family 16
    [    0.090000] gpiochip_add: registered GPIOs 0 to 29 on device: ath79
    [    0.090000] MIPS: machine is Arduino Yun
    [    0.530000] mach-linino: setting GPIO
    [    0.530000] Setting GPIO OE 21
    [    0.540000] Setting GPIO OE2 22
    [    0.540000] Setting GPIO UART-ENA 23
    [    0.540000] mach-linino: enabling GPIO SPI Controller
    [    0.550000] bio: create slab <bio-0> at 0
    [    0.560000] Switching to clocksource MIPS
    [    0.570000] NET: Registered protocol family 2
    [    0.570000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.570000] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
    [    0.570000] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.570000] TCP: Hash tables configured (established 2048 bind 2048)
    [    0.570000] TCP reno registered
    [    0.570000] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [    0.580000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [    0.580000] NET: Registered protocol family 1
    [    0.600000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    0.600000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
    [    0.610000] msgmni has been set to 119
    [    0.610000] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
    [    0.610000] io scheduler noop registered
    [    0.620000] io scheduler deadline registered (default)
    [    0.620000] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
    [    0.630000] ar933x-uart: ttyATH0 at MMIO 0x18020000 (irq = 11) is a AR933X UART
    [    0.630000] console [spicons0] enabled, bootconsole disabled
    

    As you can see I never get the option of enter failsave mode.

    Are there another way to revive the Yun or edit the /etc/inittab?

    Thanks

    • This reply was modified 4 years, 3 months ago by  Toni.
    • This reply was modified 4 years, 3 months ago by  Toni.
    • This reply was modified 4 years, 3 months ago by  Toni.
    • This reply was modified 4 years, 3 months ago by  Toni.
    #3058

    arishy
    Participant

    Hi Toni,

    You will not believe what I did. I did EXACTLY the few steps you did upgrading my YUN and ended exactly in your situation. I will explain later why I did your way !!!

    Now I am stuck with almost bricked YUN. Did you ever solv your situation ???

    #3059

    Toni
    Participant

    Hi

    The solution is this link:

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

    #3060

    arishy
    Participant

    Thank you for the reply….
    I should have told you the reasons in my last email.
    The SD reader is broken so I cannot put the image on an sd card. Also I tried to use the USB flash but linux could NOT see it.( believe me I spent several days try to solve this one)

    Now you see my Dilemma ?? can you please help

    #3061

    Toni
    Participant

    Try with another microSD. Probably isn’t the reader.
    If it’s the reader probably you’ll have to try with another Yun.

    #3062

    arishy
    Participant

    No , the reader itself is totally broken.
    I am trying now the Tftp in safe mode…….. Yes I am on suicidal track !!!
    Thank you again for your prompt responses

    #3113

    vytybaqu
    Participant

    Love to comment on Google it.

Viewing 14 posts - 1 through 14 (of 14 total)

You must be logged in to reply to this topic.

Net NEUTRALITY
X