Open coolcoder613eb opened 7 months ago
2.2.0 uses the same package repository as 2.0.x: http://toaruos.org/msk/2.0.x/
There is no centralized source repository for ports, and building them is not an automated process.
Some are on my Github: https://github.com/klange?tab=repositories
Others are in the toaruos
org: https://github.com/orgs/toaruos/repositories
Some others are built directly from upstream source packages without modifications.
I am not able to access those packages from x86_64 or aarch64 ToaruOS in QEMU on my M1 Mac.
There are multiple mirrors configured for the package repository. If you are unable to reach any of them, you likely have a network configuration which the OS can not handle. If you are using the 2.2.0 release builds, you should try a newer CI build, as one particularly notable DNS resolver issue was only fixed after that release.
Is it possible to run ToaruOS on my raspberry pi 4? I have booted it on hardware before, most recently on a Thinkpad T430.
Builds for the RPi4 are available, but they still lack necessary input device drivers for the OS to be useful.
I usually boot from USB on my rpi, is that supported? Also, is there a command-line only version of ToaruOS?
I usually boot from USB on my rpi, is that supported?
The RPi4 build of the OS is provided as a kernel8.img
file. Loading that is up to you. I do not actively provide any support for the RPi4 build as it remains experimental.
Also, is there a command-line only version of ToaruOS?
The bootloader on the x86-64 CD provides options for booting to VGA text mode, headless (a login session is started on a serial port), and to boot into the graphical environment with a full-screen terminal.
Headless configurations can also be attained for the aarch64 builds when running in QEMU by changing the provided command line (the -append
argument to QEMU - change the start=live-session
parameter to start=--headless
and a login session will run on the first serial port). The RPi build has a hardcoded command-line that starts the desktop.
Can you please share your VM configuration, and also the results of ifconfig
within the OS?
Also the contents of /etc/resolv.conf
in the OS.
Command:
qemu-system-x86_64 -cdrom image-2.iso -vga cirrus -smp 4 -m 3G -netdev user,id=net -device e1000,netdev=net
/etc/resolv.conf:
nameserver 10.0.2.3
Ifconfig:
ping 8.8.8.8
works.
Does it take ~2s for the "timed out" error to be printed?
Yes
You can try updating /etc/resolv.conf
to point to an external DNS resolver directly. It sounds like the local DNS on your host system is not responding to the queries the VM is making.
Working now, thanks. How can I make it persistent?
Maybe you should store some kind of filesystem overlay, that gets extracted on top of the ramdisk, and saved on shutdown?
/etc/resolv.conf
is populated by dhclient
on startup. You can override the address QEMU's DHCP response gives by adding ,dns=...
to your -netdev
argument.
-vga cirrus
I wanted to ask if you have a particular reason for using the Cirrus card? I have no special support for it, but I do have support for the default Bochs VBE. I also look for QEMU's Bochs VBE PCI ID to trigger loading of the vmmouse driver, which gives seamless mouse support.
I used cirrus because the maximum resolution is 1024x768, which will comfortably fit in a window. Otherwise, I have to use QEMU fullscreen.
Is there a port of flex
?
Or can I build a cross-compiler to ToaruOS?
(BTW, I am on IRC #toaruos)
I used cirrus because the maximum resolution is 1024x768, which will comfortably fit in a window. Otherwise, I have to use QEMU fullscreen.
You can configure the display resolution in the bootloader menu (and with the Bochs VBE card, also after boot with the set-resolution
tool), but that also should not matter if you are using VGA text mode. By the way, you can press v
in the bootloader menu to switch it to text mode early.
You can also supply the QEMU command-line option -fw_cfg name=opt/org.toaruos.bootmode,string=vga
to have the bootloader skip the menu and go straight to VGA text mode.
Is there a port of flex? Or can I build a cross-compiler to ToaruOS?
There is no native port of flex
. The Docker images linked in the README include a cross-compiler toolchain.
(BTW, I am on IRC #toaruos)
I do not actively use IRC any more.
(btw, while investigating your original issue, I discovered that the CDN I use to host the main package repository changed their infrastructure and broke two things; they started setting an oversized header, which broke the original request for the manifest file, and they also are incorrectly handling redundant /
s in paths, which caused all packages to 404; I have fixed the latter with a change to the manifest files, but the former required accepting larger response headers in the fetch
tool)
Is there a package repository for 2.2.0 x86_64 and aarch64? Can I build it myself?