Skip to content

Add upgrade instructions - #236

Closed
WasabiFan wants to merge 6 commits into
masterfrom
add-upgrade-instructions
Closed

WasabiFan wants to merge 6 commits into
masterfrom
add-upgrade-instructions

Conversation

@WasabiFan

Copy link
Copy Markdown
Member

This is an extension of the work by @rikblok to incorporate more detailed information that @dlech suggested in #218. Thanks @rikblok for getting this started!

I tried to make it a balance between "baby steps"-style walkthrough and tl;dr summary. If you want to read the whole thing, you can, otherwise you can just find the heading you want and copy-paste the appropriate command(s).

Preview at http://wasabifan.github.io/ev3dev.github.io/docs/tutorials/upgrading-ev3dev-from-command-line/.

Note: I didn't bother opening up the Brickman desktop test and instead opted to just get a screenshot from one of my running EV3s. It's a bit different from the rest of our screenshots (the IP address and status icons) but other than that it should be functionally the same, including size and color.

rikblok and others added 5 commits August 26, 2016 17:46
I couldn't find all this information in one place and thought it might be useful.
Thanks for the review, Wasabi Fan, I've incorporated your suggestions!
Before starting the upgrade process, you will need to have ev3dev download a list of the most recent versions of available software. To do this, run the following command:


sudo apt-get update

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be better if we just listed this with the upgrade commands. If it is separate, people will miss it and wonder why upgrade is failing.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One of the feedback items that you had on the original implementation of this PR was that you wanted an explanation of what this command does. I can copy the command into both of the other sections, but where would I then put the explanation?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would make sense to explain all three command (update, upgrade, dist-upgrade) at the end of the "Upgrading all packages" section.

update: fetches the list of packages from the package repository servers
upgrade: upgrades all packages that do not require installing new packages or removing existing packages
dist-upgrade: upgrades packages that require installing new dependencies or removing conflicting packages

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The problem is that the "update" description, as well as the command, is applicable to both sections. I could only include the description in one of the two sections, but then the other would be lacking it.

@dlech

dlech commented Sep 9, 2016

Copy link
Copy Markdown
Member

@WasabiFan, I think our main point of contention here is that I am approaching this from the point of view that this page should be about upgrading software packages in general, but you are approaching it from the point of view that this page is about upgrading the kernel.

We need to pick one or the other and make the page a bit more focused on what specifically we are trying to accomplish.

@dlech

dlech commented Sep 9, 2016

Copy link
Copy Markdown
Member

And to be honest, most people just want to know "what commands do I have to type in to make it work" they don't want to know the why and the how of it all. This page really could be just 2 paragraphs or so.

Perhaps we need a separate section on the website for the detailed explanations for those that want to learn more about linux. Then we can just leave the tutorials as simple step-by-step instructions without all of the explanations getting in the way.

@WasabiFan

Copy link
Copy Markdown
Member Author

I think our main point of contention here is that I am approaching this from the point of view that this page should be about upgrading software packages in general, but you are approaching it from the point of view that this page is about upgrading the kernel.

Yeah, that seems right.

We need to pick one or the other and make the page a bit more focused on what specifically we are trying to accomplish.

Agreed. My goal was to make a page so that we can say something like "You need to upgrade your kernel. To do so, see [here]." I'm afraid of straying too far into the technicalities to make that not straghtforward; in my mind, I am trying to minimize the boilerplate required every time we realize that someone needs to upgrade.

And to be honest, most people just want to know "what commands do I have to type in to make it work" they don't want to know the why and the how of it all. This page really could be just 2 paragraphs or so.

I think that's what #218 was, more or less.

Perhaps we need a separate section on the website for the detailed explanations for those that want to learn more about linux. Then we can just leave the tutorials as simple step-by-step instructions without all of the explanations getting in the way.

I like that idea, although I would want to make sure that there is a clear distinction between those sections and that we aren't duplicating significant content between them.

@WasabiFan

Copy link
Copy Markdown
Member Author

And actually, after thinking a bit more, I'd be pretty happy with a set of pages called a "Technical series" (or something similar) which would explain things like packages, sysfs access, etc. for people who want to learn about the technical background.

@dlech

dlech commented Sep 9, 2016

Copy link
Copy Markdown
Member

OK. How about this? We'll start a new discussion for the "technical series" (to be continued...)

As for this PR, what if we make it "upgrading ev3dev" instead of "upgrading ev3dev from the command line". The idea is there are 3 ways to "upgrade ev3dev"...

  1. flash a new image
  2. upgrade everything (remember that the ev3dev-config package can to this too)
  3. just upgrade the kernel package

So basically, take what you have here, cut down the explanations to a bare minimum and add a section at the beginning on re-flashing and the pros (probably faster) and cons (wipes out any personal files).

@WasabiFan

Copy link
Copy Markdown
Member Author

Sounds good. What do you think should be done about the image releases? We generally tell people to install the latest nightly; does that mean that this guide should also recommend that (at least temporarily) or do you expect to release a new official image soon?

@dlech

dlech commented Sep 9, 2016

Copy link
Copy Markdown
Member

I think that if someone is looking to upgrade the kernel, then 90% of the time, the nightly is what they need (unless we stop using oss.jfrog/artifactory and start posting everything on github again).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants