From nobody Mon Jun 27 16:23:54 2022 X-Original-To: soc-status@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 2176C875980 for ; Mon, 27 Jun 2022 16:24:13 +0000 (UTC) (envelope-from kotty.0704@gmail.com) Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LWtMw4Mb4z4kY3 for ; Mon, 27 Jun 2022 16:24:12 +0000 (UTC) (envelope-from kotty.0704@gmail.com) Received: by mail-pj1-x102b.google.com with SMTP id c6-20020a17090abf0600b001eee794a478so2305227pjs.1 for ; Mon, 27 Jun 2022 09:24:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=EhtCcavyUq6EDz+E5io7UdWXBINiz54NSlhI0vHhROM=; b=IYdAe3t6AvmBNMshueyHfO+0iF5a7hEluU9MN/nlJJOeNmQ5ChMcyUFxHm6m3HP+qT W0yn9PpOT78wOR6F/T8AEqfzdv1a+bPeQKL0rZz0dpqq/2Y9MJtxgDhxxyxBoCRWXBRG lOFv6/zvmUDsMBWCB//I+eVgAT2AF4KdgwOyer/EB9VTdsS0nUlyXakKcxpOG16vXY92 Q+YwceGEZ4KVzEVT0OoWB9I5liD7Mi9gFV3ljJw3EZm4SwVTpwWsm8NiVec93shC8SS9 rYGGiKpj4rZHxpL2fBn+YtLHweRcBbSxMZ0KApeSgpTbphgg7kBy4EL5WusncnbYuCYH mwXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=EhtCcavyUq6EDz+E5io7UdWXBINiz54NSlhI0vHhROM=; b=26TVMIKNmXfR/niUkuHW2ez9y7RX/pLk5PXiUNRl/jTkQTdv+26eDVSrguEDlHhjWU v1LjYl18/o0eOcEO0zrNtGUsBUBkcyZzpVZBx+n0b+/MasvN+Wv/R0lhQuaNEPySCA8G 7Ra6EH2limntSW3RFPwRv1/Bikl3IH7y235cdvHiyKWDbb0dyvw7v7TF37flIBmXrJyk 7ud00ZGTH+d8bMTpM/n48pO7MLxx6XbSDd+fXqxsejrnKXyD6ixxmvTVr/ul9+GLtP8h oT9P6G/zMmpXxifHDvi/KQovM+m6rorhi8Bd6sUQUK8amz5Qoz4q22UC6u1g2AUqNGmz LoAg== X-Gm-Message-State: AJIora994iRUZu4W8d3FXwfPgXB0ksaYb8nuFk3rd6GI2k9IQhaMXZMn I3HtvLfl4GQtWAgZfMBH0xJk2h+2WNGnBWH4kzgNVHFqFyk= X-Google-Smtp-Source: AGRyM1t4vBrlca1pNWU+HjOmBmTLWcqSSzrWc25nbmUvFWU8kWpNdBM9fh7fAPTsqC3ctCt8sFV14fsrdKJD00qjEug= X-Received: by 2002:a17:903:1251:b0:168:c11a:13f6 with SMTP id u17-20020a170903125100b00168c11a13f6mr15636459plh.169.1656347050099; Mon, 27 Jun 2022 09:24:10 -0700 (PDT) List-Id: Summer of Code Status Reports and Discussion List-Archive: https://lists.freebsd.org/archives/soc-status List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-soc-status@freebsd.org X-BeenThere: soc-status@freebsd.org MIME-Version: 1.0 References: In-Reply-To: From: =?UTF-8?B?5LuK5LqV6Iiq5LiA?= Date: Tue, 28 Jun 2022 01:23:54 +0900 Message-ID: Subject: [GSoC22 Weekly Status Report #1&2] Implementation of machine-dependent methods: Koichi Imai To: soc-status@freebsd.org Content-Type: multipart/alternative; boundary="0000000000008bc6d805e2705987" X-Rspamd-Queue-Id: 4LWtMw4Mb4z4kY3 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=IYdAe3t6; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of kotty0704@gmail.com designates 2607:f8b0:4864:20::102b as permitted sender) smtp.mailfrom=kotty0704@gmail.com X-Spamd-Result: default: False [-3.57 / 15.00]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_NONE(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-0.75)[-0.752]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.82)[-0.817]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[soc-status@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::102b:from]; MLMMJ_DEST(0.00)[soc-status]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N --0000000000008bc6d805e2705987 Content-Type: text/plain; charset="UTF-8" Hello, My goal for GSoC project is to implement the "Linuxulator on powerpc64". This is to realize the binary compatibility of Linux for FreeBSD. The first step is to support the execution of a test program compiled for Linux that just exits and we need the following to achieve. - syscalls.master file that generate syscall table - linux.h that defines all types and structures - linux_sysvec.c - linux_fetch_syscall_args,linux_set_syscall_args - linux_copyout_strings - linux_copyout_auxargs - linux_exec_setregs - linux_fixup_elf - linux_trans_osrel - execve(), mmap2(), mprotect() syscall So far, I have completed the first 3 dots and am now trying to support the above system calls. Also, some bugs may need to be removed where they have already been implemented. Concurrently, I was also building an environment to run FreeBSD/powerpc64le on qemu. FreeBSD/powerpc64 works fine, but I had a problem that FreeBSD/powerpc64le wouldn't connect to the network. I found that I could connect to the network using libvirt but still looking for an easier way. Koichi --0000000000008bc6d805e2705987 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

My goal for GSoC project is to implement the &= quot;Linuxulator on powerpc64". This is to realize the binary compatib= ility of Linux for FreeBSD.

The first step is to s= upport the execution of a test program compiled for Linux that just exits a= nd we need the following to achieve.
  • syscalls.master file= that generate syscall table
  • linux.h that defines all types and str= uctures
  • linux_sysvec.c
    • linux_fetch_syscall_args,linux_s= et_syscall_args
    • linux_copyout_strings
    • linux_copyout_auxargs=
    • linux_exec_setregs
    • linux_fixup_elf
    • linux_trans_osr= el
  • execve(), mmap2(), mprotect() syscall
So far, I ha= ve completed the first 3 dots and am now trying to support the above system= calls.
Also, some bugs may need to be removed where they have al= ready been implemented.

Concurrently, I was al= so building an environment to run FreeBSD/powerpc64le on qemu.=C2=A0
<= div>FreeBSD/powerpc64 works fine, but I had a problem that FreeBSD/powerpc6= 4le wouldn't connect to the network. I found that I could connect to th= e network using libvirt but still looking for an easier way.

=
Koichi

--0000000000008bc6d805e2705987--