Re: Fwd: Debian on Linux-SH4

John Paul Adrian Glaubitz <[email protected]> Tue, 11 Jan 2022 12:31:51 +0100
Newsgroups gmane.linux.ports.sh.devel,gmane.linux.debian.ports.superh
Message-ID <[email protected]>
Hi Robert!

On 1/11/22 12:23, Robert Święcki wrote:
> Recently I tried to create a working modern disk image for Linux-SH4.
> There were many problems, but I finally managed to pull it off.
> 
> If anyone needs a working Debian (unstable/experimental) + kernel
> 5.15.0 - here're the images/kernels/scripts

You could also create a Debian unstable environment for the sh4 architecture
using debootstrap:

suse-laptop:/tmp # debootstrap --no-check-gpg --arch=sh4 --foreign unstable debian-sh4-root http://ftp.ports.debian.org/debian-ports
I: Retrieving InRelease 
I: Retrieving Packages 
I: Validating Packages 
I: Resolving dependencies of required packages...
(...)
I: Extracting login...
I: Extracting logsave...
I: Extracting mawk...
I: Extracting mount...
I: Extracting ncurses-bin...
I: Extracting passwd...
I: Extracting perl-base...
I: Extracting sed...
I: Extracting sysvinit-utils...
I: Extracting tar...
I: Extracting util-linux...
I: Extracting zlib1g...
suse-laptop:/tmp #

Then run "./debootstrap/debootstrap --second-stage" on the target system.

If your qemu-user is properly set up to use binfmt (which is currently not the case on my
system), you can omit the "--foreign" option and get a ready-to-boot chroot for Debian sh4.

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - [email protected]
`. `'   Freie Universitaet Berlin - [email protected]
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913