auto-installer

I developed an application for the Yun. A simple sketch, but a lot of python code, requiring a lot of Yun ‘upgrades’ (package installs, OS to SD, swap partitions, …)

Now I would like to distribute this setup in a way that less technical people can still get it to work.

What I was thinking of (procedure):

  • people get the Yun setup on their network
  • people download setup.hex from website.
  • people use the web interface to program this setup.hex
  • people reset Yun and setup.hex starts:
    – download (linux) script from website
    – execute this script: the goal is that this script does the main “install” (package installs, OS to SD, swap partitions). It will also download a new .ex file that at the end gets programmed.

Questions:

  • anything like this that already exists?
  • any problems you expect?
  • i want the Yun to be the latest version, can this be scripted easily?
  • how to manage different Yun versions? E.g. someone might have bought an old Yun that does not even have the sketch upload version.

Hey NewLine, good to see you back.

The biggest obstacle you have in your procedure is the network. When the network works, then this is the easiest and best procedure. When the network becomes an issue, it is frustrating, and I even I will give up.

I think you should keep your idea, but add a procedure to work without the network.

Jesse

Software Provider:

  1. Expand the Storage

http://www.ibuyopenwrt.com/index.php/11-yun-compatible/expand-the-storage-at-yun/18-expand-the-storage

wget -O simplesd.sh https://www.dropbox.com/s/jl4oytptxrb6q5u/simplesd.sh?dl=0 --no-check-certificate
/bin/ash simplesd.sh
  1. Install and setup software at SD card

  2. Make Clone image of SD

Method a. How to Clone SD Card USB Flash driver for Super Easy Reinstallations (Windows)

http://www.ibuyopenwrt.com/index.php/2-uncategorised/184-how-to-clone-sd-card-usb-flash-driver-for-super-easy-reinstallations

Method b.

Clone Yun OS at Linux Box by dd Command (Linux and Mac)

http://www.ibuyopenwrt.com/index.php/13-yun-compatible/backup-and-recover/25-clone-yun-os-at-linux-box-by-dd-command

Customer:

  1. Convert boot to SD Card/USB Flash

http://www.ibuyopenwrt.com/index.php/2-uncategorised/185-revert-boot-to-sd-card-usb-flash

  1. Restore Clone image into SD

Method a. How to Clone SD Card USB Flash driver for Super Easy Reinstallations (Windows)

http://www.ibuyopenwrt.com/index.php/2-uncategorised/184-how-to-clone-sd-card-usb-flash-driver-for-super-easy-reinstallations

Method b.

Clone Yun OS at Linux Box by dd Command (Linux and Mac)

http://www.ibuyopenwrt.com/index.php/13-yun-compatible/backup-and-recover/25-clone-yun-os-at-linux-box-by-dd-command

3.Plug in SD and boot.

sonnyyu, I do not completely get your point. I think you are suggesting a way where everything is distributed via an SD image? I guess the tricky part for the customer is the first step: I assume he needs to be able to connect to the Yun, ssh to it, etc... ?

I do like the idea that I could just provide an image of the SD card, and do 'minimal' changes on the Yun (boot from SD).

Changing the boot could also be done using a specialized sketch I assume.

Does the OS version on the Yun and the one on the SD card correspond? E.g. could someone have a Yun with OS 1.4 and boot from an SD image having OS 1.5.3?

NewLine: Changing the boot could also be done using a specialized sketch I assume.

The sketch call Linux shell, I perfer go directly.

  1. Convert boot to SD Card/USB Flash

http://www.ibuyopenwrt.com/index.php/2-uncategorised/185-revert-boot-to-sd-card-usb-flash

sonnyyu

NewLine: Does the OS version on the Yun and the one on the SD card correspond? E.g. could someone have a Yun with OS 1.4 and boot from an SD image having OS 1.5.3?

Base on my best knowledge, No need. mismatch should be fine.

NewLine: sonyyu, I do not completely get your point.

No surprise, You did not even get my name right. :confused:

Sonny Yu

sonnyyu: No surprise, You did not even get my name right. :confused:

Sonny Yu

sorry..fixed...thanks for your answers!

Plan B:

Image ( firmware ) Generator:

  • Embedding packages directly into the SquashFS to reduce space requirements on the target
  • Preconfigure images by embedding packages and configuration files directly into SquashFS, and save manpower when flashing many devices
  • Building minimal images. for example without the web interface
  • Learning

Yun based on AR9331 , maximum flash size is 16MB. The newer CPU could support 128MB or 256MB flash memory. Use Image Generator will save a lot of manpower when flashing many devices. And save the cost and space with out Micro SD or USB flash driver.

http://wiki.openwrt.org/doc/howto/obtain.firmware.generate