Some checks are pending
Build NFDOS ISO / build (push) Waiting to run
101 lines
3.3 KiB
Markdown
101 lines
3.3 KiB
Markdown
grep -n "^[ ]\+" /home/neo/Público/nfdos/src/Makefile.am
|
|
grep -n "^[ ]\+" /home/neo/Público/nfdos/configure.ac
|
|
file Makefile.am
|
|
file src/Makefile.am
|
|
file configure.ac
|
|
cat -A Makefile.am | grep '\^I'
|
|
cat -A src/Makefile.am | grep '\^I'
|
|
cat -A configure.ac | grep '\^I'
|
|
nl -ba Makefile | sed -n '770,790p'
|
|
grep -n "^[ ]" Makefile | head
|
|
|
|
ajustei assim:
|
|
```
|
|
# Criar disco (se não existir)
|
|
data_disk = nfdos_dir / "nfdos_data.img"
|
|
if not data_disk.exists():
|
|
console.print("[cyan]💽 Criando disco persistente (hipocampo físico)...[/cyan]")
|
|
safe_run(f"dd if=/dev/zero of={data_disk} bs=1M count=512", shell=True)
|
|
else:
|
|
console.print("[green]✔ Disco persistente já existe.[/green]")
|
|
|
|
time.sleep(5)
|
|
|
|
# Testar no QEMU
|
|
bz_image = linux_dir / "arch" / "x86" / "boot" / "bzImage"
|
|
data_disk = nfdos_dir / "nfdos_data.img"
|
|
|
|
if bz_image.exists():
|
|
console.print("\n[bold blue]Iniciando QEMU (modo kernel direto)...[/bold blue]")
|
|
|
|
# 🧠 Monta a linha base do QEMU
|
|
kernel_params = (
|
|
"console=ttyS0 earlyprintk=serial,ttyS0,115200 "
|
|
"keep_bootcon loglevel=8"
|
|
)
|
|
|
|
qemu_cmd = (
|
|
f"qemu-system-x86_64 "
|
|
f"-machine q35,accel=kvm "
|
|
f"-cpu qemu64 "
|
|
f"-kernel {bz_image} "
|
|
f"-initrd {nfdos_dir}/initramfs.cpio.gz "
|
|
f"-append '{kernel_params}' "
|
|
f"-drive file={data_disk},if=virtio,format=raw "
|
|
f"-m 1024 "
|
|
f"-nographic "
|
|
f"-no-reboot"
|
|
)
|
|
|
|
# 🚀 Executa o QEMU
|
|
safe_run(qemu_cmd, shell=True)
|
|
|
|
else:
|
|
console.print("[red]✗ bzImage não encontrado! Compile o kernel primeiro.[/red]")
|
|
```
|
|
creio que agora sim temos uma base solida e limpa.
|
|
o ultimo detalhe ... limpar a tree do neurotron:
|
|
```
|
|
src/_nfdos/kernel/neurotron
|
|
├── aclocal.m4
|
|
├── autom4te.cache
|
|
│ ├── output.0
|
|
│ ├── output.1
|
|
│ ├── requests
|
|
│ ├── traces.0
|
|
│ └── traces.1
|
|
├── config.log
|
|
├── config.status
|
|
├── configure
|
|
├── configure.ac
|
|
├── data # Estamos a usar em algum lado? ou podemos remover?
|
|
│ ├── configs # Estamos a usar em algum lado? ou podemos remover?
|
|
│ └── logs # Estamos a usar em algum lado? ou podemos remover?
|
|
├── install-sh
|
|
├── Makefile
|
|
├── Makefile.am
|
|
├── Makefile.in
|
|
├── MANIFEST.in
|
|
├── missing
|
|
├── neurotron
|
|
├── neurotron.in
|
|
├── pyproject.toml
|
|
├── README.md
|
|
├── Setup.py
|
|
└── src
|
|
└── neurotron
|
|
├── autodiagnostic.py
|
|
├── cortex.py
|
|
├── disk_init.py
|
|
├── hippocampus.py
|
|
├── __init__.py
|
|
├── logbus.py
|
|
├── __main__.py
|
|
├── main_waiting.py # podemos remover
|
|
├── motor.py
|
|
├── neuron.py
|
|
├── neurotron_config.py
|
|
├── perception.py
|
|
└── telemetry_tail.py # podemos remover
|
|
```
|
|
e ja agora aproveitar e adicionar um .gitignore |