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

romtool (0.4.0, also tried git): v33/v34 split -> build (straight from split) -> no boot (grey screen) #131

Open
rvalles opened this issue Feb 26, 2020 · 2 comments
Labels

Comments

@rvalles
Copy link

rvalles commented Feb 26, 2020

I split a rom that's in the database (A500's 34.5, possibly most common rom ever).
Then I do rebuild it.
Then I try to boot it with an emulated A500. It ends up stuck in grey screen. The original rom I splitted from does of course work.
Same issue with rebuilt 33.180.
But rebuilt 37.175 does work.

Commands and outputs for 34.5 below.

34.5(A500-A200-A1000)]$ romtool build -o ../my.rom -t kick -s 256 index.txt
Header 11114ef9 256
34.5(A500-A200-A1000)]$ romtool info ../my.rom
Header 11114ef9 256
Header 11114ef9 256
size ok
header ok
footer ok
size_field ok
chk_sum ok
kickety_split NOK
magic_reset ok
is_kick ok
check_sum 2fe69ad4
base_addr 00f80000
boot_pc 00f800d2
rom_rev 34.5
exec_rev 34.2
34.5(A500-A200-A1000)]$ romtool scan ../my.rom
@000000b6 +00003276 NT_LIBRARY +120 exec.library exec 34.2 (28 Oct 1987)
@00003276 +00003290 NT_UNKNOWN +5 alert.hook alert.hook
@00003508 +0000445c NT_DEVICE +40 audio.device audio 34.1 (18 Aug 1987)
@00004574 +000047f8 NT_RESOURCE +80 cia.resource cia 34.1 (18 Aug 1987)
@000047fc +00004b5c NT_RESOURCE +70 disk.resource disk 34.1 (18 Aug 1987)
@00004b64 +000051d8 NT_LIBRARY +110 expansion.library expansion 34.1 (18 Aug 1987)
@000053e4 +000108b8 NT_LIBRARY +65 graphics.library graphics 34.1 (18 Aug 1987)
@00013d8c +0001ff94 NT_LIBRARY +10 intuition.library intuition 34.3 (16 Nov 1987)
@000209a4 +00020a0c NT_LIBRARY +31 layers.library layers 34.1 (18 Aug 1987)
@00023da4 +00024288 NT_LIBRARY +0 mathffp.library mathffp 34.1 (18 Aug 1987)
@000242d0 +000243d8 NT_RESOURCE +70 misc.resource misc 34.1 (18 Aug 1987)
@000243dc +00024524 NT_RESOURCE +100 potgo.resource potgo 34.1 (18 Aug 1987)
@00024528 +00024ac8 NT_LIBRARY +70 ramlib.library ramlib 34.1 (18 Aug 1987)
@00024b44 +00024b8e NT_RESOURCE +100 keymap.resource keymap ri 34.1 (18 Aug 1987)
@00024b8e +00024bda NT_DEVICE +60 keyboard.device keyboard ri 34.1 (18 Aug 1987)
@00024bda +00024c26 NT_DEVICE +60 gameport.device gameport ri 34.1 (18 Aug 1987)
@00024c26 +00024c6c NT_DEVICE +40 input.device input ri 34.1 (18 Aug 1987)
@00024c6c +00026234 NT_DEVICE +20 console.device console ri 34.1 (18 Aug 1987)
@000283e0 +0002841a NT_UNKNOWN -60 strap strap 34.4 (9 Dec 1987)
@00028d6c +00029558 NT_DEVICE +50 timer.device timer 34.1 (18 Aug 1987)
@00029564 +0002b05c NT_DEVICE +20 trackdisk.device trackdisk 34.1 (18 Aug 1987)
@0002b060 +0002b380 NT_LIBRARY -40 romboot.library romboot 34.1 (18 Aug 1987)
@0002b47c +0003310c NT_TASK +0 workbench.task wb 34.1 (18 Aug 1987)
@00033e62 +00033e94 NT_LIBRARY +0 dos.library dos 34.3 (9 Dec 1987)

@cnvogelg
Copy link
Owner

cnvogelg commented Mar 3, 2020

To be honest... never tried splitting/building old ROMS...
A quick test of splitting and rebuilding showed and (almost) identical ROM:

> romtool build -a 0xfc0000 -s 256 -o test.rom -f index.txt
> romtool diff amiga-os-130.rom test.rom
0003ffe8: 15 0b -- b3 -- -- -- --  .. .     | 14 b3 -- b4 -- -- -- --  .. .
0003fff0: ff c0 -- -- -- -- -- --  ..       | 00 18 -- -- -- -- -- --  ..

So the footer seems to get mixed up...

When building custom ROMs from the old Kickststarts one thing remains: BCPL-based DOS code in the dos.library might need relocations. The BCPL relocations are available in the split files but currently not implemented in amitools...

@rvalles
Copy link
Author

rvalles commented Mar 4, 2020

Perhaps it'd be best to add a note in the documentation about it only working on kick 36+ or 37+, for now.

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

No branches or pull requests

2 participants