Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues compileing #15

Open
lindoran opened this issue Jan 5, 2025 · 16 comments
Open

Issues compileing #15

lindoran opened this issue Jan 5, 2025 · 16 comments

Comments

@lindoran
Copy link

lindoran commented Jan 5, 2025

trying to compile this -- keep getting:

make[2]: dfs: No such file or directory

is this a tool or a part of an emulator. google is turning up a bunch of useful information, but not much in the way of
what I am looking for ...

Is this a part of another project?

any help would be appreciated

@dominicbeesley
Copy link
Owner

It's a tool for creating BBC Micro DFS disc images. It's another of my repos https://github.com/dominicbeesley/dfs-0.4

Let me know if (probably when) you run into problems with my rather hairy build system for beeb6809...

@lindoran
Copy link
Author

lindoran commented Jan 6, 2025 via email

@dominicbeesley
Copy link
Owner

Hi Dave, I think that is looking for a tool that isn't even in a repo yet. It might be worth trying to build with

$ make all_sbc09

The game it is trying to build will only run on my Blitter board which I'm fairly sure you won't have as I've only given out a couple of them. Are you signed up on stardot.org.uk - it might be worth dropping me a PM on there and we could discuss what you're trying to get out of this rather convoluted repo. It's a real mess and needs unpicking into more manageable chunks. I put this up to collaborate on some stuff but never got round to tidying it up or documenting it - a bit of an embarrassment really!

The targets are:

@lindoran
Copy link
Author

Was able to get this to work on my little HB63C09M SBC! I was wondering, what is the license on this? Can I clone and fork the repo to my own repo so people building my SBC can just download the ROM's?

Everything in my project is open source including the hardware:

https://github.com/lindoran/HB63C09

How I got it working, was I built out the Arduino based IO controller firmware's 6850 Wrapper to support 6850 style interrupt handling, generation and commands. Nothing fancy and it still doesn't support hardware flow control (because the Arduino doesn't ), but it does have a large buffer (64 x larger than the 6850's 1 byte register) -- even with the flow control off it's not dropping anything.

Screenshot_20250111_201306
Screenshot_20250111_201351
Screenshot_20250111_201817

@phillipeaton
Copy link

phillipeaton commented Jan 12, 2025

Thanks for posting your success! At some point I'm hoping to get this BBC BASIC running on my Vectrex (which is based on 6809 and to which I've added a hardware serial port and created a similar custom Vectrex MAME driver with the addition of a 6850 ACIA).

I'm currently running Camel Forth on Vectrex, running BASIC interactively would also be fun to try, especially if I can interface with the Vectrex built-in BIOS routines using a built-in assembler, which I also do with Forth.

@lindoran
Copy link
Author

Yes absolutely! Really all I did here was to repurpose hoglets existing 6850 MOS and modified my 6850 wrapper to work accordingly. The only really big change was I modified the top of memory so that it would see the full 40k available to the programmer and moved the IO buffers accordingly. After that it just worked. I see there's a few forks already - so I'm just wondering if it's ok to fork this so I can modify the build chain to work with my project. It's a fantastic bbc basic works on the 6809!

@dominicbeesley
Copy link
Owner

All sounds great. I'll add a licence file tomorrow if there isn't one but it will be MIT. I can't work out how to do it from my phone. Do feel free to fork and get in touch if you've got stuff to merge back!

@lindoran
Copy link
Author

lindoran commented Jan 12, 2025 via email

@lindoran lindoran changed the title dfs? Issues compileing Jan 18, 2025
@lindoran
Copy link
Author

ok -- so i forked the repo and I found that when you build it, if you just download a fresh version and try to build all_sbc09 it does not work.

you get the following error:

Image

for some reason you have to do a build or build all and let it fail. it changes some files (which don't get cleaned up by make clean btw)

Image

The files above are modified permanently by running make ... I wasn't able to track down what is modifying them ... in all but not all_sbc09

afterwards you can run make all_sbc09 and it will build successfully

here is everything I needed to compile it on a fresh system:

packages you need to install for sure:

bison
flex
make
gcc
gpp (maybe)
g++ (maybe)
make-guile
automake
build-essential
perl (if not installed)
libfreezethaw-perl
libswitch-perl

gh repo clone ZornsLemma/basictool (make / install)

cd src
./build.sh
cd ..
sudo cp basictool /usr/local/bin

gh repo clone dominicbeesley/dfs-0.4 (make / install maybe ... i was playing around with stuff you may not need this for sbc)
autoreconf --install
./configure
make
sudo make install

using tools version to compile:

cd /tools/asm6809-2.12-dom-warn-error/
chmod +x configure
./configure
make

installing the tools version (out of date assembler with bugs )

make install

leaving tools version in place ( if you've installed new but don't want to over write )

don't run make install

change 2 files:
Makefile.defs in the root directory of the repo
change the line with AS= to AS=$(TOP)/tools/asm6809-2.12-dom-warn-error/src/asm6809 -R

change Makefile in /rom-dev/HOSTFS:

the line with asm6809 replace asm6809 with $(AS)

run make in the root of the repo (it will fail -- files are missing)
run all_sbc09 (it should build correctly)

OR..if you installed asm6809 newest version to your system:

simply change Makefile.defs
AS=asm6809 -R to AS=asm6809 -B

I think the initial bug that was the issue is resolved now... but as I don't understand the issue requiring the specialized compiler ... there you have it.

run make (it should fail -- won't prob work for a "successful" build all -- but I can't build that the whole way anyway as files are missing)
run make all_sbc09 it should compile.

I know that is a lot but i spent several hours trying to get the issues locked down.. let me know if there is anything I can help with... i am going to try to clean up the make all_sbc09 so it builds better. -- I was just wondering if anybody knows what is building in the all footprint that is not in the all_sbc09 footprint.

@dominicbeesley
Copy link
Owner

I'll try and get time to fix all this up - the build system for this whole thing is a bit of a mess!

@lindoran
Copy link
Author

lindoran commented Jan 18, 2025 via email

@lindoran
Copy link
Author

Just wanted to let you know -- I think i fixed the build chain. if you want I can do a pull request. I don't know if it breaks anything you are working on. Also added port for my board.

If you would like to see the changes:

master...lindoran:beeb6809:master

@dominicbeesley
Copy link
Owner

Thanks and sorry for the delay in getting round to this. I've merged in most of your changes, plus I've removed a lot of the stuff that was copying to ~/hostfs as that was just me being lazy syncing my live filesystem.

@lindoran
Copy link
Author

lindoran commented Feb 6, 2025 via email

@lindoran lindoran closed this as completed Feb 7, 2025
@lindoran
Copy link
Author

lindoran commented Feb 8, 2025

Re - opening issue because this might be useful info for compiling ~ working on a compile guide for the SBC branch so we can then close this once that's done.

@lindoran lindoran reopened this Feb 8, 2025
@lindoran
Copy link
Author

lindoran commented Feb 9, 2025

Did a pull request for the build guide :

#18

Let me know :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants