Load kernel in 0x84000000 address

Booting the kernel works, but by manually specifying the address.
This commit is contained in:
Rodrigo Arias 2024-01-18 18:19:29 +01:00
parent 5e2f6fcd0e
commit c6a304ca7d
2 changed files with 7 additions and 1 deletions

View File

@ -11,3 +11,9 @@ Then run the boot script:
``` ```
$ ./boot.sh $ ./boot.sh
``` ```
In u-boot use the following to boot:
```
=> booti 0x84000000 - ${fdtcontroladdr}
```

View File

@ -64,7 +64,7 @@ exec qemu-system-riscv64 \
-device virtio-keyboard \ -device virtio-keyboard \
-drive "file=$NIX_DISK_IMAGE,if=none,id=hd0" \ -drive "file=$NIX_DISK_IMAGE,if=none,id=hd0" \
-device virtio-blk-device,drive=hd0 \ -device virtio-blk-device,drive=hd0 \
-device loader,addr=0x40000000,file=$system/kernel \ -device loader,addr=0x84000000,file=$system/kernel \
-kernel $system/kernel \ -kernel $system/kernel \
-initrd $system/initrd \ -initrd $system/initrd \
-append "$(cat $system/kernel-params) init=$system/init regInfo=/nix/store/x3zpwfbk2wkiisxhgi7zwsfwbdfxk0w1-closure-info-riscv64-unknown-linux-gnu/registration console=ttyS0,115200n8 loglevel=7 $QEMU_KERNEL_PARAMS" -append "$(cat $system/kernel-params) init=$system/init regInfo=/nix/store/x3zpwfbk2wkiisxhgi7zwsfwbdfxk0w1-closure-info-riscv64-unknown-linux-gnu/registration console=ttyS0,115200n8 loglevel=7 $QEMU_KERNEL_PARAMS"