Daniele°
the bpb is already bigger than that
depends on what the bootloader needs to do
BinaryByter
depends on what the bootloader needs to do
Do you know what a bootloader is?
BinaryByter
Daniele°
Do you know what a bootloader is?
You know many arch exists?
Anonymous
You know many arch exists?
Daniele°
on avr Need only One assembly command
Daniele°
But depends on what the bootloader needs to do
Anonymous
Did you know that vbextreme is really passionate about mathematics?
Daniele°
😂
Anonymous
Calculus in particular, he can tell you if an integral is converging or not just by looking at that
Daniele°
I not like mathematics
Daniele°
but i like a p***y, and you?
BinaryByter
You know many arch exists?
doesnt make the task of writing a bl in 10bytes easier tbh
Anonymous
but i like a p***y, and you?
oh ok you are like a pussy
BinaryByter
unless you are grub and decide that lighting crts on fire is fine
Mat
but i like a p***y, and you?
Don't use such words, thank you. And this coversation is going kinda ot
Daniele°
doesnt make the task of writing a bl in 10bytes easier tbh
on avr mcu start execute code at specific address and enable a bootloader section. In her address you can call main function and exit to bootloader mode and have end ti write bootloader
Daniele°
On avr is very easy
Wim
I'd love seeing him try, then again if i'd put my code location at the location the cpu expects, he'll call that a bootloader already, surely initialising an mcu is quite different from a bootchain where you'd need to call external storage to load a kernel
BinaryByter
On avr is very easy
How do you call the main function without loading akernel from disk?
Nomid Íkorni-Sciurus
'call a main function' stop doing as if it was that easy
doesn't it need to go through the libc __init procedure or something like that?
Wim
On intel just set the jump at the end of addressable memory, same thing as what your bios does to get started
Nomid Íkorni-Sciurus
No
I have read somewhere that the main() method we write isn't the actual entry point of the application
Daniele°
BinaryByter
No
How do you load the kernel then?
Daniele°
How do you load the kernel then?
You can load from flash, from nand, from network
Wim
No?
He doesn't know the difference of firmware and os
BinaryByter
You can load from flash, from nand, from network
Oh! thank you for the information! I'm sure that doing that in less than 10b is a piece of cake
Daniele°
Is a firmware or is an os?
Wim
uClinux what's this?
Still your start jump won't load it unless its internal, when it is internal its firmware, like romdos for example, but in that case you don't do bootstrapping
Daniele°
not in 10 bytes 😂
Wim
If uboot initializes linux, uboot is bootstrapping
Daniele°
The combination of the boot loader, the kernel image and the root file system image can be also called the firmware
Wim
Is it totally rom or not? In my opinion its not wholly firmware although its all stored in rom while the general rule of firmware always was everything thats executed from rom
Wim
Still this goes beyond your claims
Wim
You don't bootstrap a system sub 10 bytes, even if you'd recover a running image on atmels, it'll still need more
Wim
You are however trying to prove you can use less bytes on avrs because you don't agree c is not a macro assembler
Wim
Thats quite far fetched
Wim
but you might like SystemC
Wim
Its like vhdl and verilog but in c
Wim
Still, thats miles apart from an assembler nor does it verify your claims
Wim
generally all mcu bootloaders are very small
Correct, thats because they are meant to be used for specific appliances, not as generic computers
Wim
Actually running linux on them is quite stupid since you'd require far more advanced dies for doing the same easy shit
Wim
I can see your industrial failing background aproach, and given the stupid questions they ask i wouldn't say they're the brightest either, but how does any of that relate to your claim of c being a macro assembler and your disability to write bootcode in it compact enough to be used in a legacy bios bss?
Wim
You went from there to avrs that can jump to firmware like any cpu does on startup, to ubooting uclinux on them; thats way beyond c emitting ml inefficiently enough not to be able to call it a macro assembler
Daniele°
If you'd just open a debugger
Compiler is change in the years
Wim
they had asked for a bootloader <100 bytes, not even specifying the language
No, they said i do an x86 bootloader in 200 bytes, go try that in C
Wim
Compiler is change in the years
How does that relate to your debugger?
Wim
@BinaryByter restate your question to him, please?
Daniele°
😂
Wim
Taken you don't believe me thats what they were asking, let them ask again
Daniele°
No, they said i do an x86 bootloader in 200 bytes, go try that in C
If you can in assembly, probably you can in C
Wim
C won't be able to as its not assembly, thats the whole point