Open
Conversation
Signed-off-by: Tiago Natel de Moura <tiago.natel@neoway.com.br>
Signed-off-by: Tiago Natel de Moura <tiago.natel@neoway.com.br>
Signed-off-by: Tiago Natel de Moura <tiago.natel@neoway.com.br>
Signed-off-by: Tiago Natel de Moura <tiago.natel@neoway.com.br>
Member
|
This is great! Baremetal debugging is a really nice idea. I liked it. |
Contributor
Author
|
The |
Member
|
Not actually. Some errors in Makefile and/or make.sh. I'll try again later and do a review. |
Contributor
Author
|
Maybe related to nash version... Some incompatible changes happened recently.. |
Member
|
cd ./scripts/.nash/lib && git clone git@github.com:NeowayLabs/nashlib.git
Cloning into 'nashlib'...
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
make: *** [Makefile:31: scripts/bin/nash] Error 128
diff --git a/xxx/Makefile b/xxx/Makefile
index 3588020..577453c 100644
--- a/xxx/Makefile
+++ b/xxx/Makefile
@@ -23 +23 @@ scripts/BootProg:
- cd scripts && git clone git@github.com:alexfru/BootProg.git
+ cd scripts && git clone https://github.com/alexfru/BootProg.git
@@ -31 +31 @@ $(NASHBIN):
- cd $(NASHPATH)/lib && git clone git@github.com:NeowayLabs/nashlib.git
+ cd $(NASHPATH)/lib && git clone https://github.com/NeowayLabs/nashlib.git
cd scripts/BootProg && smlrcc mkimg144.c -o mkimg144
cd scripts/BootProg && nasm -f bin flp144.asm -o flp144.bin
NASHPATH=./scripts/.nash ./scripts/bin/nash ./make.sh baremetal
./make.sh:3:0: Failed to import path 'nashlib/sed'. The locations below have been tried:
"./nashlib/sed", "./nashlib/sed.sh", "./scripts/.nash/lib/nashlib/sed", "./scripts/.nash/lib/nashlib/sed.sh"
make: *** [Makefile:37: baremetal] Error 1 |
Contributor
Author
|
Did you installed last nash version? |
Member
|
nash-git-r578.bca7991-1 from AUR, but I removed it and built a clone repo. Same error. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
/cc @geyslan
I copied my
termimplementation from EnzOS and theprintfimplementation of libc from SmallerC to run the example debugger (#1 still unnamed as xxx) in bare metal. The script to build was part copy-pasted from other project of my own too.Below is an screenshot of qemu:
The code of
regs.cis the same (with exception that printf I'm using do not support tabs, then registers are separated by spaces).Why I'm doing this? Because it would be very cool if we could build the debugger to run in a host OS (linux and so on) and on bare metal also.
But we'll need to find a good project layout and abstractions to make it work. Some way to separate system-dependent and system-independent code.
The code is a mess... It was only a hack/PoC and do not need a review from your side.