Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
11 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
4445cc0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Be alerted that NetBSD/sparc64 also defines
__sparc__
, to set SIGSEGV_FAULT_ADDRESS_ALIGNMENT & co. just for the 32-bit version you need to add check for:!defined(__sparc64__)
.4445cc0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bruno will not read it here. You have to alert him over at the savannah gnu server.
https://git.savannah.gnu.org/git/libsigsegv.git
This is just a fork.
4445cc0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please forward it to him? He might did it on the purpose, but I would need to dig into sparc 32 vs 64-bit version..
4445cc0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bhaible ^
4445cc0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done via mailinglist, thanks
4445cc0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Kamil for the note.
I did receive all 5 comments by mail; apparently Github extracted the email address from the git commit and then matched it with my Github user account, so they knew I am OK to receive mail.
Do you know a way to run NetBSD/sparc64 in qemu? I succeeded for NetBSD/sparc with the installation image from https://cdn.netbsd.org/pub/NetBSD/iso/7.1/NetBSD-7.1-sparc.iso. But for sparc64, the installer installed a system, and when rebooted
mount
root_device on / type ffs (read-only, local)
If you cannot provide such instructions, maybe you are in a position to execute libsigsegv tarballs on a NetBSD/sparc64 machine. What is the result when you take https://ftp.gnu.org/gnu/libsigsegv/libsigsegv-2.11.tar.gz and run "./configure; make; make check"?
4445cc0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@utkarsh009 integrated sparc64 into Anita as far as I'm aware, he might have more insight how to run it in an emulator.
4445cc0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bhaible The problem with root device detection was recently fixed by martin@ . It should have worked with current. Maybe the changes were not pushed to 7.1 (if that is what you used for sparc64 as well). In any case, the problem was related to the way openbios generates its device tree, so there should have been a conflict between the devices wd1 and wd0, which is not the case here. So, you might as well try using the first partition on the device wd0 (i.e. wd0a) as the root partition during installation and see if that helps. Anyways, I'll try it out myself and let you know.
4445cc0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bhaible I just tested http://nycdn.netbsd.org/pub/NetBSD-daily/netbsd-8/201709170600Z/images/NetBSD-8.0_BETA-sparc64.iso on lyta. Like I already said, use wd0a as the root partition.
use
for installing it initially. When asked to partition the disk, choose 'set the partition sizes manually'. After that, select 'partition size ok'. It will automatically allocate the total space minus 128 MB (which is for swap) to wd0a and set it as /. This should do the trick for now.
As for rebooting, it's a bug and crashes the emulator (not sure how you managed to do that). We don't use reboot in anita. Instead we just kill the process after issuing halt, so it doesn't affect it. You can use anita for your testing purpose too. Just use
Hope this helps. For any further queries, feel free to contact me here as well as my email id: uanand009@gmail.com
Regards,
Utkarsh Anand
4445cc0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@utkarsh009 Thanks for the hint. This image at http://nycdn.netbsd.org/pub/NetBSD-daily/netbsd-8/201709170600Z/images/NetBSD-8.0_BETA-sparc64.iso works fine for me, using qemu-2.10.0 and manual disk partitioning.
With it, I could find that
Workaround pushed: http://git.savannah.gnu.org/gitweb/?p=libsigsegv.git;a=commitdiff;h=8d59eced2b0d6e97d8bedd4cba221ae6e8ff7390