Code Monkey home page Code Monkey logo

Comments (12)

dlech avatar dlech commented on July 30, 2024

What kernel version are you using? (uname -r)

from ev3dev-lang.

AleksiAhtiainen avatar AleksiAhtiainen commented on July 30, 2024

Sorry, forgot to mention that. I just upgraded everything via apt-get update + upgrade + dist-upgrade last night, uname -r:
3.16.1-7-ev3dev

from ev3dev-lang.

dlech avatar dlech commented on July 30, 2024

It did not upgrade the kernel. Try apt-get install linux-image-ev3dev. The latest version is 3.16.7-ckt4-ev3dev1.

from ev3dev-lang.

BertLindeman avatar BertLindeman commented on July 30, 2024

I just upgraded everything via apt-get update + upgrade + dist-upgrade last night, uname -r:
3.16.1-7-ev3dev

Did you do a reboot after the kernel upgrade?

from ev3dev-lang.

dlech avatar dlech commented on July 30, 2024

Yes, you need to reboot after kernel upgrade.

from ev3dev-lang.

AleksiAhtiainen avatar AleksiAhtiainen commented on July 30, 2024

Yes, I rebooted.

I started from the ev3dev-jessie-2014-12-01 image.

I think I also saw 3.16.7-ckt4-ev3dev1 mentioned during the about 3 hour upgrade process. At one point I was asked about some kernel config file whether I want to keep some local changes or not, and after checking out the diff I decided to keep the local changes.

According to sudo apt-get install linux-image-ev3dev "linux-image-ev3dev is already the newest version."

from ev3dev-lang.

dlech avatar dlech commented on July 30, 2024

I guess I am a bit overdue for a new test image if it takes that long for the initial package updates.

Just to confirm the linux-image-ev3dev version, running dpkg -s linux-image-ev3dev should look like this:

Package: linux-image-ev3dev
Status: install ok installed
Priority: optional
Section: kernel
Installed-Size: 26
Maintainer: David Lechner <[email protected]>
Architecture: armel
Source: linux-latest-ev3dev
Version: 16
Provides: linux-latest-modules-3.16.7-ckt4-ev3dev1
Depends: linux-image-3.16.7-ckt4-ev3dev1, rtl8188eu-modules-3.16.7-ckt4-ev3dev1, rtl8192cu-modules-3.16.7-ckt4-ev3dev1
Description: Linux kernel for ev3dev (meta-package)
 This package depends on the latest Linux kernel and modules from the ev3dev
 project for use on the LEGO Mindstorms EV3.

Then, if you run sudo flash-kernel, it should say:

flash-kernel: installing version 3.16.7-ckt4-ev3dev1
Generating kernel u-boot image... done.
Taking backup of uImage.
Installing new uImage.
Generating initramfs u-boot image... done.
Taking backup of uInitrd.
Installing new uInitrd.
Generating boot script u-boot image... done.
Taking backup of boot.scr.
Installing new boot.scr.

If the kernel version is correct here, then after a reboot, you will have the up-to-date kernel.

from ev3dev-lang.

AleksiAhtiainen avatar AleksiAhtiainen commented on July 30, 2024

dpkg -s linux-image-ev3dev gives the same output as in your sample.

During apt-get upgrade, flash-kernel is interrupted with a warning, and I probably didn't notice the error message yesterday:

Installing new boot.scr.
W: Operation was interrupted before it could finish

But also: Running flash-kernel manually doesn't give any warning (same output as yours, except for some locale complaints), but I still don't have the new kernel after reboot:

root@ev3dev:/boot# flash-kernel
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LC_CTYPE = "UTF-8",
    LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
    LC_ALL = (unset),
    LC_CTYPE = "UTF-8",
    LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
flash-kernel: installing version 3.16.7-ckt4-ev3dev1
Generating kernel u-boot image... done.
Taking backup of uImage.
Installing new uImage.
Generating initramfs u-boot image... done.
Taking backup of uInitrd.
Installing new uInitrd.
Generating boot script u-boot image... done.
Taking backup of boot.scr.
Installing new boot.scr.
root@ev3dev:/boot# reboot
...
alah@ev3dev:~$ uname -r
3.16.1-7-ev3dev

from ev3dev-lang.

AleksiAhtiainen avatar AleksiAhtiainen commented on July 30, 2024

Even when running flash-kernel separately, it runs surprisingly fast. So I doubt it is doing anything. Taking backup of boot.scr. and Installing new boot.scr. don't seem to take any time at all.

No error messages are printed, though.

from ev3dev-lang.

AleksiAhtiainen avatar AleksiAhtiainen commented on July 30, 2024

Thank you for all the help so far!

It seems like the -ckt4 just does not load for me, and the system loads the older kernel from backup.

Is there any way to debug the reason for that?

I did try purging and reinstalling the linux-image-3.16.7-ckt4-ev3dev1, but it does not help. Booting without WLAN USB adapter connected does not help. I am running from a 32GB SD card, with the filesystem grown to the full size, could that be the reason?

Is there some easy way to try downgrading to "ckt3" or some other bit older kernel version?

from ev3dev-lang.

dlech avatar dlech commented on July 30, 2024

Someone else reported this problem today in ev3dev/ev3dev#267. Since the problem is a general ev3dev problem and not specific to ev3dev-lang, I am continuing the discussion there and suggest that this issue be closed as invalid since there is not actually a problem with ev3dev-lang or the javascript bindings. Please see ev3dev/ev3dev#267 for why I think that the kernel upgrade is not taking effect.

from ev3dev-lang.

AleksiAhtiainen avatar AleksiAhtiainen commented on July 30, 2024

The solution at ev3dev/ev3dev#267 worked for me.

Now the JS example also works as expected. I first assumed it is reading some motor sensor, and not from the sensor inputs. The example required me to connect some sensor to one of the input ports in addition to the motor in one of the output ports.

from ev3dev-lang.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.