The officially official Devuan Forum!

You are not logged in.

#1 2024-11-28 18:24:58

really
Member
Registered: 2024-11-28
Posts: 3  

how to implement Linux commands for building core boot image

I don't have much experience/knowledge set-  of Linux Commands.

I am trying to build a Core Boot Image to install (hardware flash ROM)  onto G505S  AMD A10 as described on

http://dangerousprototypes.com/docs/Len … 5S_hacking

and each stage brings up Linux commands,  I do not know about.  Or where to use them in the file structure.

Stuck  Now at

" NOTE : please remove gcc-ada / gnat from your OS if it is there, because it may cause the Ada-related build problems and our AMD platforms do not need any Ada code." 

Synaptic Package Manager does not who this to be present.
When I do a search in the file structure, there are a lot of files/folders with gcc on them. 

After this, I am to get a large file from  github, that does not seem to download, but opes to list many commands, which are problematic to paste into the Terminal.  That is, too many commands to paste at one time.  (??) and last I tried, gave a list of errors.
which I guess means I needed to remove gcc-ada / gnat.  (??)

Thanks for reading this, and perhaps helping.

Merry Holidays, and have a good Thanksgiving.

Offline

#2 2024-11-28 21:26:11

stargate-sg1-cheyenne-mtn
Member
Registered: 2023-11-27
Posts: 216  

Re: how to implement Linux commands for building core boot image

definitely a steep learning curve there.


Be Excellent to each other and Party On!
https://www.youtube.com/watch?v=rph_1DODXDU
https://en.wikipedia.org/wiki/Bill_%26_Ted%27s_Excellent_Adventure
Do unto others as you would have them do instantaneously back to you!

Offline

#3 2024-11-28 22:54:27

GlennW
Member
From: Brisbane, Australia
Registered: 2019-07-18
Posts: 649  

Re: how to implement Linux commands for building core boot image

Hi, gnat is a GNU Ada Compiler (gnat),

gnat-12 in my Daedalus package list.

search for
[

locate gnat-

The information in your error is a warning.

Just a thought... happy holidays!


pic from 1993, new guitar day.

Offline

#4 2024-11-29 03:53:41

stargate-sg1-cheyenne-mtn
Member
Registered: 2023-11-27
Posts: 216  

Re: how to implement Linux commands for building core boot image

quote

Ada code facilitates such massive software
projects as the Space Station and the Paris Metro. It has proven to
be extraordinarily robust in decades' worth of daily field tests
under the most rigorous conditions in which millions of lives have
been at stake."

from

~$ apt info gnat
Package: gnat
Version: 12.2
Priority: optional
Section: devel
Maintainer: Ludovic Brenta <lbrenta@debian.org>
Installed-Size: 14.3 kB
Depends: gnat-12
Suggests: ada-reference-manual-2012
Tag: devel::compiler, devel::lang:ada, implemented-in::ada,
 implemented-in::c, interface::commandline, role::dummy, role::program,
 scope::utility, suite::gnu, works-with::software:source
Download-Size: 4,716 B
APT-Sources: http://deb.devuan.org/merged daedalus/main amd64 Packages
Description: GNU Ada compiler
 GNAT is a full-featured Ada 2012 compiler.  A quote from
 http://www.adaic.org says: "Easily reused and maintained, readable
 and user friendly, Ada code facilitates such massive software
 projects as the Space Station and the Paris Metro. It has proven to
 be extraordinarily robust in decades' worth of daily field tests
 under the most rigorous conditions in which millions of lives have
 been at stake."  Ada is the language for real-world, mission-critical
 programming.
 .
 At the same time, Ada's radical type safety helps novice programmers
 avoid many common mistakes and deliver their software on time (see
 http://www.adaic.org/atwork/trains.html).
 .
 This empty package depends on the default version of the Ada compiler
 for Debian, which is part of the GNU Compiler Collection. Its
 enforces the same version for all Ada compilations, as described in
 the Debian Ada Policy.

seems dangerous to let the ai-bots hack away at such critical code. shazbot.


Be Excellent to each other and Party On!
https://www.youtube.com/watch?v=rph_1DODXDU
https://en.wikipedia.org/wiki/Bill_%26_Ted%27s_Excellent_Adventure
Do unto others as you would have them do instantaneously back to you!

Offline

#5 2024-11-29 04:01:44

golinux
Administrator
Registered: 2016-11-25
Posts: 3,338  

Re: how to implement Linux commands for building core boot image

Ada's radical type safety helps novice programmers avoid many common mistakes and deliver their software on time

Time is money after all . . . roll

Offline

#6 2024-11-29 04:35:13

stargate-sg1-cheyenne-mtn
Member
Registered: 2023-11-27
Posts: 216  

Re: how to implement Linux commands for building core boot image

really, is really real, or just part of the matrix?   :rolleyes:   :wavingarmswildly:


Be Excellent to each other and Party On!
https://www.youtube.com/watch?v=rph_1DODXDU
https://en.wikipedia.org/wiki/Bill_%26_Ted%27s_Excellent_Adventure
Do unto others as you would have them do instantaneously back to you!

Offline

#7 2024-11-29 04:44:41

stargate-sg1-cheyenne-mtn
Member
Registered: 2023-11-27
Posts: 216  

Re: how to implement Linux commands for building core boot image

so the systemd guy worked for military-industrial-complex-contractor-redhat...
and now works for military-industrial-complex-contractor-microsoft...
and what he works on is part of this thing where millions of lives are in the balance:

Ada code facilitates such massive software
projects as the Space Station and the Paris Metro. It has proven to
be extraordinarily robust in decades' worth of daily field tests
under the most rigorous conditions in which millions of lives have
been at stake."

is it just me or does anyone else think this will end badly?   :rolleyes:   :wavingarmswildly:


Be Excellent to each other and Party On!
https://www.youtube.com/watch?v=rph_1DODXDU
https://en.wikipedia.org/wiki/Bill_%26_Ted%27s_Excellent_Adventure
Do unto others as you would have them do instantaneously back to you!

Offline

#8 2024-11-29 15:58:38

golinux
Administrator
Registered: 2016-11-25
Posts: 3,338  

Re: how to implement Linux commands for building core boot image

. . .

This is the way the world ends
This is the way the world ends
This is the way the world ends
Not with a bang but a whimper.

Offline

#9 2024-11-29 16:29:13

trinidad
Member
From: Waterford WI
Registered: 2022-11-15
Posts: 23  
Website

Re: how to implement Linux commands for building core boot image

T. S. Eliot was a seriously confused and rather unoriginal writer compared to Kipling, Conrad, Lawrence, Graves, Yeats, and even Joyce. However, it remains to be seen whether or not deathless feet will dance over the graves of fools and poets.

TC

Offline

#10 2024-11-29 16:33:46

greenjeans
Member
Registered: 2017-04-07
Posts: 606  
Website

Re: how to implement Linux commands for building core boot image

The world is not going to end any time soon my friends, take heart.

Tho’ much is taken, much abides; and tho’
We are not now that strength which in old days
Moved earth and heaven, that which we are, we are;
One equal temper of heroic hearts,
Made weak by time and fate, but strong in will
To strive, to seek, to find, and not to yield.


https://sourceforge.net/projects/vuu-do/ New 1.09 isos uploaded 11/27/2024
Vuu-do GNU/Linux, minimal Devuan-based openbox systems to build on, maximal versions if you prefer your linux fully-loaded.
New Devuan-mate-mini isos too!
Please donate to support Devuan and init freedom! https://devuan.org/os/donate

Offline

#11 2024-11-29 17:20:01

golinux
Administrator
Registered: 2016-11-25
Posts: 3,338  

Re: how to implement Linux commands for building core boot image

The "world" is in our minds which have always been captured by those with an agenda due to our own stupidity. But this venue is not the place to go down that rabbit hole . . . wink

@trinidad . . . it is a light that those poets are mentioned by someone on this forum. Thank you!

Offline

#12 2024-11-29 17:23:27

chris2be8
Member
Registered: 2018-08-11
Posts: 309  

Re: how to implement Linux commands for building core boot image

The first command the OP (really) should learn is man (short for manual) which tells you what a command does. info is similar but "enhanced" which makes it a bit harder to learn.

The first thing to do when someone/something recommends a command you don't know is to read the man page to see what it should do.

Start with:
man less (less is the pager man uses to display man pages).
man man
man apropos (this lets you search man pages for a given string).

As time passes you will build up a useful knowledge base of UNIX/Linux commands.

Last edited by chris2be8 (2024-11-29 17:24:33)

Offline

#13 2024-11-29 18:43:22

greenjeans
Member
Registered: 2017-04-07
Posts: 606  
Website

Re: how to implement Linux commands for building core boot image

Yep, the man pages rock. I would add that at the bottom of many of them, there is a line that says "See also (various other man pages). And it is very worthwhile to do so.

I have found solutions by perusing and cross-referencing various man pages, that I could not find anywhere on the internet.


https://sourceforge.net/projects/vuu-do/ New 1.09 isos uploaded 11/27/2024
Vuu-do GNU/Linux, minimal Devuan-based openbox systems to build on, maximal versions if you prefer your linux fully-loaded.
New Devuan-mate-mini isos too!
Please donate to support Devuan and init freedom! https://devuan.org/os/donate

Offline

#14 2024-11-30 11:54:24

yeti
Member
From: I'm not here: U R halucinating
Registered: 2017-02-23
Posts: 337  

Re: how to implement Linux commands for building core boot image

greenjeans wrote:

Yep, the man pages rock.

...via w3mman even more!

Offline

#15 2024-12-07 17:55:01

really
Member
Registered: 2024-11-28
Posts: 3  

Re: how to implement Linux commands for building core boot image

I only need to use a few commands to finish building a the coreboot image. 

The specific point in the documentation.

NOTE : please remove gcc-ada / gnat from your OS if it is there, because it may cause the Ada-related build problems and our AMD platforms do not need any Ada code.

I can CD  etc/apt  and delete the folder gnat, but I do not know if it solves the issue.  There is a gnat folder there.

The package manager does not show gnat, because the package manager is not for snapd. 

To reliably remove a snapd command system from devuan, I would not expect to be documented, to the point I can be sure it is not interfering with building the Coreboot image. 

Doing man, whether based upon Debian or Devuan is not reliably a way to do a hybrid un-install,

Somehow, I felt this would be an easy problem for those familiar with Devuan could produce a bit of help. 

So most likely,  you guys don't know the answer off the top of your head, but think I need to spend several months studying CLI of probably Debian.   A study of a hybrid problem between Devuan and Debian snapd still being a matter of a lot of testing.

I did not feel it was an unreasonable request.

Offline

#16 2024-12-07 22:06:42

GlennW
Member
From: Brisbane, Australia
Registered: 2019-07-18
Posts: 649  

Re: how to implement Linux commands for building core boot image

hi, I don't use snap(d) or coreboot, that's why I use Devuan.

But a quick search gave this up...

3.1. Removing Existing Snap Packages

Let’s now proceed to remove the Snap packages, or snaps, in the following order:

$ snap remove firefox
$ snap remove gtk-common-themes
$ snap remove gnome-3-38-2004
$ snap remove snapd-desktop-integration
$ snap remove snap-store
$ snap remove core20
$ snap remove bare
$ snap remove snapd

Before moving on to the next step, let’s ensure that the snaps list is empty:

$ snap list
No snaps are installed yet. Try 'snap install hello-world'.

If there were any snaps left, we could go back to listing them, and try to remove them with snap remove.

ref. https://www.baeldung.com/linux/snap-remove-disable

snapd is on my ubuntu-studio 24.10 release...

I hope this helps.


pic from 1993, new guitar day.

Offline

#17 Yesterday 06:15:53

stargate-sg1-cheyenne-mtn
Member
Registered: 2023-11-27
Posts: 216  

Re: how to implement Linux commands for building core boot image

from the link provided in the OP:

Build tools preparation

1) on Devuan (Debian without SystemD):

sudo apt-get install bison coreutils curl flex gcc g++ libncurses-dev libnss3-dev libssl-dev m4 make p7zip-full patch pkg-config unzip wget xxd zlib1g-dev git

you can always email Mike Banon to confirm that a clean fresh install of Devuan was used for this project(and that no "snaps" were present and/or used/utilized in this endeavour).

********************************************************************

edited to add a link to a possibly related reddit(6 years old though):

https://www.reddit.com/r/coreboot/comments/bhf96e/lenovo_g505s_good_stepbystep_guide_on_how_to/?rdt=41619

Last edited by stargate-sg1-cheyenne-mtn (Yesterday 06:20:12)


Be Excellent to each other and Party On!
https://www.youtube.com/watch?v=rph_1DODXDU
https://en.wikipedia.org/wiki/Bill_%26_Ted%27s_Excellent_Adventure
Do unto others as you would have them do instantaneously back to you!

Offline

#18 Yesterday 19:58:37

really
Member
Registered: 2024-11-28
Posts: 3  

Re: how to implement Linux commands for building core boot image

stargate-sg1-cheyenne-mtn  thank you for your reply. 

I did run the script before I posted. 

Now when I look in computer  etc/apt/  ??  There is not a folder called gat. 

Now I presume that gat was installed during an update..  or maybe your command was different.  I did not look.  But whatever

It was my understanding that snapd was different than all the snap commands that was meant to install/un-install Apps.  That snapd was part of the part of the basic structure of Debian.   Shows what little I know.   

now onto my next dilemma.   When I try to download a folder  that resided in git.  Opens a long list terminal commands, where only a few are to be entered at a time. The copy does not so easily work??

I would have rather downloaded whole file, and hooked into a single command and running it.  Gotta read more.  If I don't solve it.  I will be back to annoy more.

I have contacted Mike Bannon on several occasions.  He is quite nice.  I am mystified why he did not just leave a completed image for coreboot for each of the three types of processors.  Leaving me to just connect up the wires.

Last edited by really (Yesterday 20:02:28)

Offline

Board footer