Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jun 14 14:22
    dlech commented #1496
  • Jun 14 10:02
    CarloFlamingo commented #1496
  • Jun 13 18:11
    dlech commented #1496
  • Jun 12 19:45
    CarloFlamingo edited #1496
  • Jun 12 19:41
    CarloFlamingo opened #1496
  • Jun 06 13:43
    RebelOfDeath closed #1495
  • Jun 06 13:42
    RebelOfDeath commented #1495
  • Jun 06 13:27
    dlech commented #1495
  • Jun 06 12:25
    RebelOfDeath commented #1495
  • Jun 05 19:00
    dlech commented #1495
  • Jun 05 18:26
    RebelOfDeath commented #1495
  • Jun 05 16:36
    dlech commented #1495
  • Jun 05 16:21
    RebelOfDeath commented #1495
  • Jun 05 15:30
    dlech commented #1495
  • Jun 05 09:52
    RebelOfDeath commented #1495
  • Jun 04 20:40
    dlech commented #1495
  • Jun 04 20:39
    dlech edited #1495
  • Jun 04 20:37
    RebelOfDeath labeled #1495
  • Jun 04 20:37
    RebelOfDeath opened #1495
  • Jun 03 13:57
    R2D2Hud commented #1494
David Lechner
@dlech
Someone managed to compile a driver for the Edimax v2 at ev3dev/ev3dev#1457
Marc Philip Hermans
@hermans_marc_ph_twitter
Hello slowly but certainly. I have mydongle working thanks everybody for the help.
now I have the following issue:
sudo pip3 install paho-mqtt gives following message:
Could not find a version that satisfies the requirement paho-mqtt( from version: ) No matching distribution found for paho-mqtt. Some advice?
David Lechner
@dlech
pip and PyPI no longer support Python 3.5. Try sudo apt update && sudo apt install python3-paho-mqtt
Marc Philip Hermans
@hermans_marc_ph_twitter
Ok try that this evening! Thank you! Marc
Marc Philip Hermans
@hermans_marc_ph_twitter
Ok everything working! It was quite a wild ride! Everybody thank you for support. What I did to get Edimax EW-7811Un V2 connected and prepare for communiaction over mqtt:

MQTT & EV3DEV with Edimax EW-7811Un V2

  1. download http://rubirobot.ru/files/img/ev3dev-S-rubirobot.img.xz
  2. Flash onto drive with balenaEtcher
    Network registration over SSH did not work
    setup Connection over display for Edimax

Upgrade EV3DEV

  1. sudo apt update
  2. sudo apt upgrade
  3. sudo reboot (sudo shutdown now)
    May take upto 15 min.
    Think about batteries

Install MQTT Broker over SSH on EV

  1. sudo apt-get install mosquitto
  2. systemctl status mosquitto -> not active!
  3. sudo systemctl restart mosquitto
  4. systemctl status mosquitto -> active

Install paho-mqtt

  1. sudo apt update
  2. sudo apt install python3-paho-mqtt
and off you go, everything running!
CoderCharmander
@codercharmander:matrix.org
[m]
Hello, how does the EV3 decide whether the SD card is bootable or not? I'm trying to make an SD card that I can use both in a Raspberry Pi (with a RPi OS install) and ev3dev. What I've tried is copying the files from the ev3dev boot partition to the raspberry pi boot partition, then shrinking the rpi rootfs and creating a new partition for the ev3dev rootfs. With this, the Raspberry Pi 3 boots up to the system just fine, but the EV3 loads the stock firmware so I assume it does not count the card as bootable.
CoderCharmander
@codercharmander:matrix.org
[m]
It works with the official image.
David Lechner
@dlech
It's a bit complicated. There is a boot.scr that starts a newer u-boot bootloader. Then that copy of u-boot will read uEnv.txt. The uEnv.txt file would need to be modified to tell it that the root partition is in a different place compared to usual.
CoderCharmander
@codercharmander:matrix.org
[m]
Looking around that file, I think I should change distro_bootpart from 2 to 3 in CONFIG_EXTRA_ENV_SETTINGS
CoderCharmander
@codercharmander:matrix.org
[m]
Does the boot partition have to be 48 MB?
David Lechner
@dlech
no
CoderCharmander
@codercharmander:matrix.org
[m]
I have replaced that value, compiled u-boot, put it in place, but it still skips to the builtin firmware
David Lechner
@dlech
wow. although you could have just make a uEnv.txt to override the value
if it is loading the stock firmware, then there is probably something wrong with boot.scr
does it work if you flash the official ev3dev image to the SD card?
CoderCharmander
@codercharmander:matrix.org
[m]
Yes it does
David Lechner
@dlech
This is what runs first. so it looks for boot.scr, if it finds that, it runs it, if that fails, it tries booting Linux from a uImage file in the FAT partition, if that fails, it boots from the flash memory.
Maybe the RPi SD card used exFAT instead of FAT32 or something like that?
CoderCharmander
@codercharmander:matrix.org
[m]
It uses FAT32 I think
David Lechner
@dlech
How big is the SD card?
CoderCharmander
@codercharmander:matrix.org
[m]
16gb
David Lechner
@dlech
seems like it should work
if you have a way to get a serial console, that could help debug
CoderCharmander
@codercharmander:matrix.org
[m]
I don't have a serial-USB adapter sadly
I'll probably get one soon though, it's useful for many purposes
CoderCharmander
@codercharmander:matrix.org
[m]
There is a few megabytes of free space at the start of the partition table, is it possible that it might cause problems?
Nevermind, official image also has that and it works
David Lechner
@dlech
IIRC, that is for better alignment of the partitions to make reading/writing faster
CoderCharmander
@codercharmander:matrix.org
[m]
Partition type is set to W95 FAT32 (LBA) and not W95 FAT32
I'll try to change that
Did not work
CoderCharmander
@codercharmander:matrix.org
[m]
WAIT
IT BOOTS IF I REMOVE THE RASPBERRY PI BOOT FILES
??
David Lechner
@dlech
what are the names of the removed files?
CoderCharmander
@codercharmander:matrix.org
[m]
Android/                    bcm2710-rpi-2-b.dtb         fixup4.dat                  overlays/
COPYING.linux               bcm2710-rpi-3-b-plus.dtb    fixup4cd.dat                start.elf
LICENCE.broadcom            bcm2710-rpi-3-b.dtb         fixup4db.dat                start4.elf
LOST.DIR/                   bcm2710-rpi-cm3.dtb         fixup4x.dat                 start4cd.elf
System Volume Information/  bcm2711-rpi-4-b.dtb         fixup_cd.dat                start4db.elf
bcm2708-rpi-b-plus.dtb      bcm2711-rpi-400.dtb         fixup_db.dat                start4x.elf
bcm2708-rpi-b-rev1.dtb      bcm2711-rpi-cm4.dtb         fixup_x.dat                 start_cd.elf
bcm2708-rpi-b.dtb             issue.txt                   start_db.elf
bcm2708-rpi-cm.dtb          bootcode.bin                kernel.img                  start_x.elf
bcm2708-rpi-zero-w.dtb      cmdline.txt                 kernel7.img                 
bcm2708-rpi-zero.dtb        config.txt                  kernel7l.img              
bcm2709-rpi-2-b.dtb         fixup.dat                   kernel8.img
(with boot.scr, uEnv.txt and u-boot.bin removed)
maybe u-boot does not like too much files on a FAT filesystem
Or it has problems with long filenames
CoderCharmander
@codercharmander:matrix.org
[m]
Update: It still boots up with an intentionally long filename
I think I'll debug this further tomorrow
Thank you @dlech so much for the help
David Lechner
@dlech
you are welcome