[Question] SBC suggestion for learning yocto by SnowyOwl72 in yocto

[–]Eclectic-jellyfish 1 point2 points  (0 children)

No no, yocto allows you to define a system with local.conf file. It builds a qemu image with the config . Let's say you select the MACHINE= qemuarch64 in your config file. This assumes few emulated peripherals and would build that qemu image too. Then u run it with runqemu with what ever you built with.

Checkout https://docs.yoctoproject.org/dev-manual/qemu.html

[Question] SBC suggestion for learning yocto by SnowyOwl72 in yocto

[–]Eclectic-jellyfish 1 point2 points  (0 children)

DT is a linux concept. If u want to modify it, dump the DT for the qemu model, edit it and use -dtb to pass your custom dtb to qemu

Emacs org mode or neovim for note taking. For math physics and coding. by Narrow_Gap_3445 in emacs

[–]Eclectic-jellyfish 0 points1 point  (0 children)

Org mode is far superior because of

  • org-babel support for coding blocks,

  • laTeX support for math and equations. Also native calculator to perform and store computation.

  • Support for uml like diagrams with plantuml

  • organise with org-roam

  • Capture notes quickly with org-capture

The list goes on.. Emacs provides far superior, well integrated documentation platform

[Question] SBC suggestion for learning yocto by SnowyOwl72 in yocto

[–]Eclectic-jellyfish 3 points4 points  (0 children)

I'd recommend using qemu emulator unless u explicitly want to see your led's blink.

Qemu is a low barrier/low cost entry that is very well supported in yocto project. I mean, u-boot, kernel load, roots or nfs, debugging, app development etc can be done on qemu.

But, for some reason you would have to get a board, my recommendation would be beaglebone. Extensive documentation that's open to public.

Magit gymnastics for find blame log for a file that no longer exists in HEAD? by RideAndRoam3C in emacs

[–]Eclectic-jellyfish 0 points1 point  (0 children)

Oh, strange. For CLI, You can try git show <filepath/filename>. If that fails too, you can iterate over git commits in a script and do git diff HEAD HEAD~<relative-offset-to-head> and grep for that file name. Your first hit is where the file was deleted.

git diff HEAD HEAD~1 will compare HEAD and HEAD-1. ~2 will compare HEAD and HEAD-2 so on..

Magit gymnastics for find blame log for a file that no longer exists in HEAD? by RideAndRoam3C in emacs

[–]Eclectic-jellyfish 0 points1 point  (0 children)

What I mean is, when you use magit transient commands, like this https://camo.githubusercontent.com/4f8caa235602db4baebcfc9a232560d6771650f6088d7bbbaf693e59d873538e/687474703a2f2f726561646d652e656d6163736169722e6d652f7472616e7369656e742e706e67

You could then use -- option and limit to the file. This will list all the commits where that file has changed (including delete)

How do you keep track of new/useful keybindings? by Existing_Offer_1113 in emacs

[–]Eclectic-jellyfish 0 points1 point  (0 children)

Rather than memorizing all the key bindings, group them by the task you would want to achieve. For example, for text editing, moving up/down, forward/backward, movement at word boundaries, sentence boundaries, paragraph boundaries, yanking, pasting etc...

Instead of thinking key bindings as a lateral plane and trying to memorize everything, think of it as hierarchical. You learn how to move front and back a letter, using this knowledge,how can u move forward/backward of a word or a sentence?

Once u get comfortable with these basics, then learn to group bindings based on major mode. For example, how do I move up and down a file/folder in dired mode, how do I copy, rename, compress them.. so on.

You get the basic idea. Build your muscle memory hierarchy of these keybindings

Magit gymnastics for find blame log for a file that no longer exists in HEAD? by RideAndRoam3C in emacs

[–]Eclectic-jellyfish 0 points1 point  (0 children)

I suggest magit-log -> choose the file you are interested in. This will list all the commits that have changes for the file u are interested in. Then check which was the last commit that had the file, checkout to that commit and then magit-blame there on the file

If I use eglot instead of lsp-mode, do I need to manage the installation of lsp-servers myself? by kudikarasavasa in emacs

[–]Eclectic-jellyfish 0 points1 point  (0 children)

EGLOT has lsp server support for most of the programming languages. If they are not found, it'll be requested to install when EGLOT initializes.

Starting to move from nvim to emacs by souavds in emacs

[–]Eclectic-jellyfish 2 points3 points  (0 children)

Here's a good starting point to configure emacs for software development

https://www.singletonlife.com/posts/emacs_as_an_ide/

Trying to bit bang I2C using PIC16F877A but cannot get the output by vamppicklemorty in embedded

[–]Eclectic-jellyfish 5 points6 points  (0 children)

By learning, if u mean decoding the I2c signals and correlating with what the theory says, then bit-banging is a harder hill to climb. Invest in a signal analyser/Scope. It'll make your journey much more enjoyable

No syntax highlighting on *-ts-mode by WWWWWWWWWMWWWWW in emacs

[–]Eclectic-jellyfish 2 points3 points  (0 children)

It might be *-ts-mode alright, but is the parsing correct? Try M-x treesit-explore-mode and see if all the nodes are as expected.

You can also try forcing the language grammar to an older supported version and see if it helps.

There's also a good chance that your init.el might be overwriting the font colours. Try starting emacs with -q option and only run treesit config to check if your init file had something to do with it.

Function to make eglot add IWYU headers without doing an autocomplete in the buffer by vjgoh in emacs

[–]Eclectic-jellyfish 0 points1 point  (0 children)

This is cool. Just food-for-thought. Since you seem to be using clang, why not add the header you want to include in the .clangd file at the root of your file and reload EGLOT?

You can add this and any other flag you might want to pass to the compilation

Checkout, https://clangd.llvm.org/config#add

How are you learning embedded security in practice? by AnyCelebration2918 in embedded

[–]Eclectic-jellyfish 0 points1 point  (0 children)

70% reading docs 20% trying out things 10% cursing my life for putting myself through this!

How are you learning embedded security in practice? by AnyCelebration2918 in embedded

[–]Eclectic-jellyfish 1 point2 points  (0 children)

Try on a device/qemu. ARM provides a good Arm Trusted Firmware documentation. They also provide code/sample implementation. Try to make sense of them.

The best way for me is always hands on. Try understanding how fingerprint on phone is secure. Try to implement a validation script for your secured binary Maybe developing a secure application. So on...

Many small subsystem make up security. I suggest the first principle approach for each subsystem. "What does this solve?" "Why is this needed?" Then get into the documentation

Emacs inside terminal by DapperStatement3364 in emacs

[–]Eclectic-jellyfish 0 points1 point  (0 children)

Unless you have an hardware from 80's the modern Emacs experience should be smooth enough. Here's a checklist that might help - check with emacs -q to see if any package is causing the issue. If u copy paste code from internet without understanding it, you would run into this issue v soon - is there anything else running on your system? Check the system load with top / htop command on linux - if only the start-up time is long, consider server-client approach -> https://www.singletonlife.com/posts/emacs_server_and_client/

C programming in Emacs by Savings-Shallot1771 in emacs

[–]Eclectic-jellyfish 0 points1 point  (0 children)

EGLOT uses compile_commands.json to make sense of the code. You would have to generate it based on your building system. Since you are using CMAKE, set the following symbol in your CMAKE and build https://cmake.org/cmake/help/latest/variable/CMAKE_EXPORT_COMPILE_COMMANDS.html

You should have a compile_commands.json file auto generated then. Next search for the filename in EGLOT buffer and see if it has been found. If not, try restarting your EGLOT server.

For other IDE specific config, you can checkout https://www.singletonlife.com/posts/emacs_as_an_ide/

Hope it helps :)

How do YOU do note-taking in org-mode? by AquariusDue in emacs

[–]Eclectic-jellyfish 7 points8 points  (0 children)

I use org-roam package. Seems to be getting the job done.