grub?

Can grub be compiled on Termux? If it can, could it target i386-pc?
16 Replies
TomIO
TomIO3y ago
Is there a particular reason you are unable to use a pre-compiled binary?
llamaalibaba
llamaalibabaOP3y ago
Is there a precompiled binary? There doesn't appear to be one.
TomIO
TomIO3y ago
There's gotta be a pre-compiled i386 version of grub available.
TomIO
TomIO3y ago
TomIO
TomIO3y ago
wait... Idk actually. hmm build script lists i686, depending how old a system you are dealing with that may not work. Ah crap the maintainer is set as orphaned too.
llamaalibaba
llamaalibabaOP3y ago
Can it run in Termux?
TomIO
TomIO3y ago
Well no. Grub is a bootloader. And you are not going to circumvent the Android bootloader from within an unrooted Android system.
llamaalibaba
llamaalibabaOP3y ago
I don't need to replace my bootloader. It can't be unlocked anyways. All I really need to do is have it make an ISO.
TomIO
TomIO3y ago
burning an ISO image is usually done with the dd command. Or with the mkisofs command. Although I'm not sure if you can actually create a functional ISO image in Termux, android may not allow that operation. Also be very careful if you end up trying it with the dd command. It's nicknamed data destroyer for a reason. dd does a bit-for-bit copy of an input to an output, so always triple check any dd command before running it.
llamaalibaba
llamaalibabaOP3y ago
All I need is to do is make an iso with a grub i386-pc bootloader and the compiled kernel my OS.
TomIO
TomIO3y ago
And you don't have any computer to do it with? I can't really find any image writer with a Arm64 build. Rufus does have an Arm build, but it's only shipping a Windows executable.
llamaalibaba
llamaalibabaOP3y ago
I do, but I'm trying to work on my OS remotely, without a computer. I don't need an image writer. All I need to do is create an ISO. I can get the image off my phone as well.
TomIO
TomIO3y ago
Wait, so you are basically trying to connect remotely to a different machine? Are you sure you aren't looking for SSH and/or a Remote Desktop Protocol.
llamaalibaba
llamaalibabaOP3y ago
No. I'm trying to get all the tools to build my OS on my phone. I've made a gcc cross-compiler, installed qemu, and installed a DE.
TomIO
TomIO3y ago
Ah Sorry I wasn't able to help with that. It's 4 am over here, I think I'm just gonna get some sleep.
llamaalibaba
llamaalibabaOP3y ago
Go ahead and sleep Trust me Sleep deprivation is not fun
Want results from more Discord servers?
Add your server