feat: aarch64 port - Raspberry Pi 4/400 SD boot (SDHCI, ext2 root + first-boot grow), USB hubs, PCI INTx routing, SMP, DMA fences
This commit is contained in:
1 parent
8c09ccef66
commit
808e1d66fd
66 files changed
+3690
-196
No files matched your search
@@ -16,6 +16,8 @@ namespace Fs {
|
||||
|
||||
namespace {
|
||||
|
||||
constexpr const char* RootLabel = "MONTAUKROOT";
|
||||
|
||||
bool StringsEqual(const char* lhs, const char* rhs) {
|
||||
if (lhs == nullptr || rhs == nullptr) return false;
|
||||
|
||||
@@ -118,9 +120,15 @@ namespace Fs {
|
||||
Vfs::RegisterDrive(0, &g_ramdiskDriver);
|
||||
}
|
||||
|
||||
// When no ramdisk, disk partitions start at drive 0 so init.elf is found there.
|
||||
// Without a ramdisk the root is a disk partition: the one labelled
|
||||
// RootLabel (scripts/mk-rpi4-sd.sh makes it), else the first partition
|
||||
// mounted, so init.elf is found at 0:/os either way.
|
||||
Fat32::RegisterProbe();
|
||||
Ext2::RegisterProbe();
|
||||
if (!hasRamdisk && FsProbe::MountRootByLabel(RootLabel) < 0) {
|
||||
Kt::KernelLogStream(Kt::WARNING, "Fs")
|
||||
<< "No ramdisk and no " << RootLabel << " partition; using the first one found";
|
||||
}
|
||||
FsProbe::MountPartitions(hasRamdisk ? 1 : 0);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user