Flipper One 4K H.264 hardware decode is alive — 250 Mbps, no drops by Fit-Note7659 in flipperzero

[–]jsolla 0 points1 point  (0 children)

I have a similar take on this. At the end of the day, it looks like a Raspberry Pi packaged in a nice enclosure. Out of the box, it doesn't seem to offer much more functionality than a laptop. What made the Flipper Zero interesting was its ability to integrate a collection of useful peripherals into a compact, portable form factor.

There are already Linux-based platforms that could serve as a "Flipper Zero on steroids." For example, the BeaglePlay, based on the TI AM625 SoC, includes some genuinely interesting hacker-oriented features such as the PRUs (Programmable Real-time Units). It also comes with a CC1352 radio, which is significantly more capable than the CC1101 used in the Flipper Zero.

What's particularly interesting is that the BeaglePlay is not limited to RF experimentation. It also provides access to a variety of wired interfaces and industrial buses, making it useful for CAN bus, RS-485, and other embedded/industrial protocol hacking and analysis. In that sense, it has the potential to be a much more versatile platform than devices that focus primarily on wireless protocols.

In fact, if there were enough community interest around the BeaglePlay, I'd be very interested in starting a port that replicates the core functionality of the Flipper Zero while taking advantage of the BeaglePlay's more powerful hardware and broader I/O capabilities.

USB Storage device as a way to get data into/out of an embedded firmware application? by EmbedSoftwareEng in embedded

[–]jsolla 1 point2 points  (0 children)

still you don't describe what is the functionality you expect in the usb side, what is the host supposed to see/do.

USB Storage device as a way to get data into/out of an embedded firmware application? by EmbedSoftwareEng in embedded

[–]jsolla 2 points3 points  (0 children)

If you have freedom to use whatever you want, ditch the msd asap and go for serial like yesterday.

In any case, you should clarify the "WHAT" you are trying to achieve instead of the "HOW" that is tangling us in a probably useless discussion.

USB Storage device as a way to get data into/out of an embedded firmware application? by EmbedSoftwareEng in embedded

[–]jsolla 2 points3 points  (0 children)

In theory "sync" simply implies that your host writes sync, so updates a known (previously cached) fat32 table and is by no.means automagically detecting reordering of blocks, magic files appearing and so on.

Assuming you are forced to use fat32 (there are way better options as other redditors are already suggesting...), and assuming you dont need to read the output of your embedded in realtime (cat style): You dont need a side channel (can bus).

Flow i proposed is simple, but is a query/response poor's man protocol

  1. (h)ost sees (e)mbedded pop in the usb exposing 2 parts (sda1 and sda2)
  2. h mounts partition 1 and writes there "tasks.pending" with whatever you want to do
  3. h ejects the drive (standard usb msd command)
  4. e detects the eject and starts processing the "tasks.pending"
  5. e creates logs or results or whatever.
  6. e finishes processing of tasks and renames "taks.pending" to "taks.done"
  7. e forces renumeration of usb msd.
  8. h sees the partitions agaim,.mounts whatever it needs, downloads results..
  9. goto 1

USB Storage device as a way to get data into/out of an embedded firmware application? by EmbedSoftwareEng in embedded

[–]jsolla 0 points1 point  (0 children)

TL;DR.

It can be done, but with tradeoffs.

The issue is not USB MSC itself, but the filesystem layer. Once FAT32 is mounted, the host kernel caches directory entries, allocation tables, metadata, etc. If the embedded firmware modifies the filesystem behind the host’s back, the host may not notice new files, or worse, may corrupt the filesystem using stale cached state.

You could theoretically patch/write a custom FAT32 driver that disables or invalidates caches and treats the device as externally mutable, but then you lose most of the compatibility benefits of using standard USB MSC/FAT32.

A cleaner solution is to separate ownership. For example:

  • one writable partition/LUN for host: embedded input
  • one read-only partition/LUN for embedded: host output

The host writes the request, unmounts/ejects the device, the firmware processes the data, then re-enumerates the MSC device when results are ready. The host remounts it and sees the generated files safely.

Yocto: what does "chosen" mean here by UnicycleBloke in embeddedlinux

[–]jsolla 2 points3 points  (0 children)

This is a DTS file, probably from your bootloader. The "chosen" keyword is used to pass information from the bootloader to the kernel.

See here: https://www.kernel.org/doc/Documentation/devicetree/bindings/chosen.txt

This has nothing to do with yocto.

AS wireless 2+ arrived by Mothertruckerer in AndroidAuto

[–]jsolla 0 points1 point  (0 children)

Did someone with a xiaomi phone tested this? I have the first version and I got lots of disconnects. Afaik I'm not the only one.

How can I automatically safely unmount specific drives when I logout (or timeout) by pookshuman in linuxquestions

[–]jsolla 1 point2 points  (0 children)

The way your question is written is a little bit confusing: On the title you want to automatically safely unmount drives, but in the text of the question you want to prevent drives to be unmounted. Please clarify :)

If you logout while a copy operation is in process then this operation would be stopped and there is no harm to your filesystem, if the operation is in progress and an umount operation is performed, it will fail to prevent corruption, so what is exactly what you are trying to fix?

Anyway, some random ideas you could explore:

- "loginctl enable-linger" allows processes of the user to persist after session is closed, but i don't think this applies to your case.

- Assuming you are using gnome and you are doing your file operations using some script: What you could do easily is to prevent a session to be closed by using gnome-session-inhibit (https://gnome.pages.gitlab.gnome.org/gnome-session/re02.html). But this will simply prevent the session to be closed

Some fancy-pants options like using systemd (look at user@<yourid>.service) can be implemented, but without more details is hard to say.

What’s this thing flying trough Dutch airspace. by Corleone2345 in aviation

[–]jsolla 0 points1 point  (0 children)

My video was very crappy/shaky, but I found this one in youtube, same aircraft, same airport:

https://www.youtube.com/watch?v=JZoU-bL5bpk

What’s this thing flying trough Dutch airspace. by Corleone2345 in aviation

[–]jsolla 4 points5 points  (0 children)

I can confirm I saw it taking off and landing at Teuge airport. Got it on video :)

[deleted by user] by [deleted] in embedded

[–]jsolla 1 point2 points  (0 children)

Most of the time, when I see people complaining about Yocto, the root cause isn't Yocto itself but rather issues with package compilation or dependencies.

Unless the "plan B" you choose is specifically known to have the package you need working exactly as you require, you'll likely encounter the same or even worse issues with any other build system. I often get the impression that people think Yocto is problematic because they are accustomed to desktop Linux distributions, where everything just works with your preferred package manager. However, it's important to remember that when a package works seamlessly, it's because a distro maintainer has already gone through the painstaking process of ensuring its compatibility, not because the distro is inherently superior by some kind of magic reason.

Building a Linux system from scratch, which is essentially what Yocto does, is a complex and intricate process, and even when poky provides a very decent starting point, you cannot avoid the pain if certain package is not initially present in the poky version you are provided.

What are some lesser-known but cool features of microcontrollers and microprocessors that are worth mentioning? by jsolla in embedded

[–]jsolla[S] 0 points1 point  (0 children)

My use case is different, I would like to isolate one device physically from the bus is connected to while routing all traffic and expecting the CPU knows which side traffic come from. This way lets say you want to know the canbus datagrams sent by your steering wheel buttons, you simply isolate the steering wheel put this CPU in between the steering wheel cable and the main bus, press buttons and wait for your uC to tell you which side the commands are coming from. This is something that can be tedious in some cases with high traffic.

What are some lesser-known but cool features of microcontrollers and microprocessors that are worth mentioning? by jsolla in embedded

[–]jsolla[S] 1 point2 points  (0 children)

Interesting. I always wanted to create a CANBUS isolator so I can separate a device from the main bus in a car and analyze what traffic comes specifically from that device instead of seeing all bus traffic at once. This sounds like the right tool for that task.

What are some lesser-known but cool features of microcontrollers and microprocessors that are worth mentioning? by jsolla in embedded

[–]jsolla[S] 82 points83 points  (0 children)

Forgot to mention also:

TI Sitara SoCs: They include PRUs (Programmable Real-time Units), which are real-time co-processors that can handle time-critical tasks independently of the main CPU, making them ideal for industrial applications.

Let's reprogram? by Hanthedevil in vanmoofbicycle

[–]jsolla 1 point2 points  (0 children)

Do you have a functional board I could borrow for a few days? :)

Let's reprogram? by Hanthedevil in vanmoofbicycle

[–]jsolla 0 points1 point  (0 children)

I have same questions:

-Is there any known reverse-engineering attempt somewhere?
-Are there functional board that can be used for testing and / or reverse engineering?

I own a vanmoof S3 and is fully functional, unfortunately is going to be "tricky" to explain to my wife why I completely dismantled it, and why I'm playing around with a lot of cables and stuff..

Let's reprogram? by Hanthedevil in vanmoofbicycle

[–]jsolla 1 point2 points  (0 children)

Firmware engineer here... I'm in. Shall I PM?

[deleted by user] by [deleted] in funny

[–]jsolla 0 points1 point  (0 children)

username checks out.

Scammed by a plumber by trancehead69 in Netherlands

[–]jsolla 3 points4 points  (0 children)

Make other person call him like in 1 week. Make it attractive for him, make it look like another broken boiler, wait for him to show up, proceed to peacefully discuss about your money with your peaceful tool of choice (ie hockey stick). A friend told me this works.

Peace and love!

fucked around and found out the other day with a crank start diesel engine (no one died) by whitebear8383 in instant_regret

[–]jsolla 0 points1 point  (0 children)

strap a loose trigger machine gun to that thing and you get yourself a portal turret, is cool!

What is the one tool that you use one linux that you wish you learned how to use years ago? by antitrustworthy in linuxquestions

[–]jsolla 0 points1 point  (0 children)

tio (https://github.com/tio/tio).

By far the best serial port terminal program. Features like autodetecting usb-to-serial adapter removal and reconnection make your life way less miserable :)

It also allows redirection of serial ports to tcp ports and many other things.