Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Jan 2021 22:57:11 +0000
From:      tech-lists <tech-lists@zyxst.net>
To:        freebsd-current@freebsd.org
Subject:   Re: Getting /usr/src to match specific git hash?
Message-ID:  <YA9Mx6xvoq171%2BMu@desktop>
In-Reply-To: <20210124.130805.532159532765637026.yasu@utahime.org>
References:  <20210124035852.GA73653@troutmask.apl.washington.edu> <20210124.130805.532159532765637026.yasu@utahime.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--r/ZhGAND02hHtMOF
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Jan 24, 2021 at 01:08:05PM +0900, Yasuhiro Kimura wrote:
>From: Steve Kargl <sgk@troutmask.apl.washington.edu>
>Subject: Getting /usr/src to match specific git hash?
>Date: Sat, 23 Jan 2021 19:58:52 -0800
>
>> Suppose one has an empty /usr/src.
>>
>> Suppose further that one had to re-install a 32-bit
>> i386-*-freebsd with the 24 Dec 2020 image available
>> from freebsd.org.
>>
>> uname -a for the booted kernel shows
>>
>> % uname -a
>> FreeBSD mobile 13.0-CURRENT FreeBSD 13.0-CURRENT #0 \
>> 3cc0c0d66a0-c255241(main)-dirty: Thu Dec 24 05:43:23 UTC 2020 \
>> root@releng1.nyi.freebsd.org:/usr/obj/usr/src/i386.i386/sys/GENERIC i386
>>
>> How does one use git to pull the exact sources that match
>> this specifc kernel?
>
>cd /usr
>git clone https://git.freebsd.org/src.git
>cd src
>git checkout 3cc0c0d66a0

I have the exact same issue. The installation I have is:

13.0-CURRENT #0 2ed50808d2b-c254384(main): Thu Nov 12 10:03:35 UTC 2020

The method described doesn't work for me for some reason:

[...]
root@rpi4:/usr # git clone https://git.freebsd.org/src.git   =20
Cloning into 'src'...
remote: Enumerating objects: 377505, done.
remote: Counting objects: 100% (377505/377505), done.
remote: Compressing objects: 100% (26583/26583), done.
remote: Total 3831969 (delta 371848), reused 350922 (delta 350922), pack-re=
used 3454464
Receiving objects: 100% (3831969/3831969), 1.14 GiB | 6.28 MiB/s, done.
Resolving deltas: 100% (3034679/3034679), done.
Updating files: 100% (85162/85162), done.
root@rpi4:/usr # cd src
root@rpi4:/usr/src # git checkout 2ed50808d2b                    =20
error: pathspec '2ed50808d2b' did not match any file(s) known to git

thanks,
--=20
J.

--r/ZhGAND02hHtMOF
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEE8n3tWhxW11Ccvv9/s8o7QhFzNAUFAmAPTL0ACgkQs8o7QhFz
NAVnSxAAg3I5sS3aP9eLpvBLegdL1Ffh+x3kQTSJaxKwa6R8vnTnMdhRjQl5+K1J
TAvgmtXGwBbFAIPYqZJ0BAYifhJwnK2R7/Hn39Edlz9rZScq7//Dv2pr9b7ZOtxJ
gNyPtxeAfwr01vk86UECixgtl7GMMBRdXl4jUhWwoVG2eJh7fBXNl8fm1/GLVxpN
l9ZkQY5Af3T08V0nNgUqooxlzTSIWR9pn3Jjcr0kxhYAZ1a6QZTrXODXNpoJGujl
vv7Tl96OMMZjqvEaQH4DSJ8TBnLYUGZ8l/vsj0BhKsEQQOtrm43weMQoJnyWViZN
oU8hS90kcCL7eKFygAg+/oi4gm7di+nr53O/NCyG7CJs+b7jzWsAEX7hV6hvQvyP
NxcG0wEyryX8z99AaMedoXCF628qiyGB+rUfVX8HcmUsR6tAHxAv/H2Fcl9+Ou57
aVBqxDla3tXc6u0/Nm0O8DN4B8QJ2XFzIzu+0h1P/gEYDCyte7UW4hztU9qh9FDy
KWr+0sMrJ1rOg+MCTyNoc8izl/EdyV2e07bTPY5IhTR3EDRsMKyt0O4jRxSLNCkV
n5la3FJpEs9ggmu4kWN3laOrRqEUzJeDlqHTacMsxIqPVrhbszL/x2qIhTdMs9rN
IDnViLFA0dFl8WPspxqAzLOwyNvU9H9p8rYx5e2AJcFuaqALjvg=
=ikLn
-----END PGP SIGNATURE-----

--r/ZhGAND02hHtMOF--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?YA9Mx6xvoq171%2BMu>