Live data from Hacker News

The Linux Boot Process: From Power Button to Kernel

0xkato.xyz

21–30 of 96 posts

Re: The Linux Boot Process: From Power Button to Kernel

#21

The topic is interesting but it seems to be targeted for my grandmother.

One of the things we were taught in uni was audience analysis. I think about it a lot. What's expected to already be known? What acronyms or phrases need defining? Etc. This is an art I'm far from perfect at and it seems a lot of tech writers are too

Re: The Linux Boot Process: From Power Button to Kernel

#22
post #11

Earlier quoted context omitted.

It's not a dependency for Linux boot at all. You can do well with serial port alone, as anyone who brought up eg. an ARM SoC in Linux will attest to. Also it's not very interesting either. At simplest, Linux just needs to take a pointer to a beginning of a framebuffer and some metadata, and will write to the framebuffer whenever there's something to update.

Maybe not linux specifically, but POST requires a video device software (BIOS Option ROM or UEFI GOP Drivers) of some sort does it not? That's been my experience with all PCs for 30 years. But maybe there are cases where it doesn't? edit : Apparently it's a desktop motherboard firmware thing. Ubiquitous but not technically a requirement for POSTing a computer.

I've found AM4/AM5 boards will still boot Linux without a discrete or integrated GPU, running a GPUless CPU, not an APU.

Re: The Linux Boot Process: From Power Button to Kernel

#23
post #8

Earlier quoted context omitted.

> When power stabilizes, the CPU resets itself to a tiny, old‑fashioned mode called real mode. Real mode dates back to the original 8086 chip. The rules are simple on purpose. Memory addresses are built from two values the CPU keeps in special fast storage called registers. You combine a segment and an offset like this: physical_address = (segment Your grandmother sounds unusually proficient with this sort of thing.

I dont know, i just don't like the tone. This is a complex subject where the target audience should probably already know what is an hexadecimal number or an interrupt and the explanation of a cpu register ought to be better than: "A register is a tiny slot inside the CPU. It holds a number the CPU is using right now." If the subject interest you, you deserve better.

Agreed. A lot of these articles leave me with more questions than answers.

These blog posts really annoy me because I feel like with 20% more effort you could have something worth reading.

Re: The Linux Boot Process: From Power Button to Kernel

#24
post #14

Funny how those three posts are in hacker news top 5 now. I guess today is the low level appreciation day. * The Linux Boot Process: From Power Button to Kernel * The Journey Before main() * How programs get run: ELF binaries (2015) (lwn.net) edit: format

weekend hackernews best hackernews

Re: The Linux Boot Process: From Power Button to Kernel

#26
fascinating how it's all over the place wrt level of detail. and absolutely unreadable. luckily the layout is simple and reader mode works.

> Hex is base 16

i would argue that someone that understand bases (in the first place), understands what the 16 is, doesn't exist. this is the kind of haphazard approach of this article i'm talking about. even the author's name, 0xkato, is an example of this.

as to the content, i wish it had touched on TPM, PCRs, UEFI secure boot, and ME pre-boot.

i'm forgiving all the actual errors since it is a pretty broad overview.

i'm guessing first-year uni student.

rather amazed a post like this can make it to the #1 spot.

Re: The Linux Boot Process: From Power Button to Kernel

#27
post #11
post #4

Video device initialization is intimately intertwined and a dependency for all this early boot stuff. I was hoping to learn more but it's not even mentioned. Still, neat.

It's not a dependency for Linux boot at all. You can do well with serial port alone, as anyone who brought up eg. an ARM SoC in Linux will attest to. Also it's not very interesting either. At simplest, Linux just needs to take a pointer to a beginning of a framebuffer and some metadata, and will write to the framebuffer whenever there's something to update.

Soekris (rip) had an x86 network device. Four 10/100s and the disk was a CF. Could only serial console that thing - or SSH once it's running. Best router I ever had.

Also, in 2000 when Windows crashed you could get a serial debugger. Wonder if they still do that?

Post reply on HN