Grabbing the NetBSD sources

Stable release

grab the kernel sources

cd /var/tmp/

#mirror=ftp.ee.netbsd.org
mirror=ftp.fr.netbsd.org

#srcsets=http://$mirror/pub/NetBSD/NetBSD-9.0/source/sets
srcsets=http://$mirror/pub/NetBSD-daily/netbsd-9/latest/source/sets

wget $srcsets/syssrc.tgz
wget $srcsets/src.tgz
wget $srcsets/sharesrc.tgz
wget $srcsets/gnusrc.tgz

note for older releases, you need to point to archives

ftp -a ftp://$mirror/pub/NetBSD-archive/NetBSD-$ver/source/sets/syssrc.tgz
ftp -a ftp://$mirror/pub/NetBSD-archive/NetBSD-$ver/source/sets/src.tgz
ftp -a ftp://$mirror/pub/NetBSD-archive/NetBSD-$ver/source/sets/sharesrc.tgz
ftp -a ftp://$mirror/pub/NetBSD-archive/NetBSD-$ver/source/sets/gnusrc.tgz

extract on netbsd

progress -zf src.tgz tar xf - -C /
progress -zf sharesrc.tgz tar xf - -C /
progress -zf gnusrc.tgz tar xf - -C /

or on linux

bsdtar xzf syssrc.tgz -C /usr/src/
bsdtar xzf src.tgz -C /usr/src/
bsdtar xzf sharesrc.tgz -C /usr/src/
bsdtar xzf gnusrc.tgz -C /usr/src/

Current

cd /usr/
export CVSROOT="anoncvs@anoncvs.fr.NetBSD.org:/cvsroot"
export CVS_RSH="ssh"
cvs -q -z9 checkout src

cd /usr/src/
cvs -q -z9 up -dP

Ready to go

netbsd

cd /usr/src/

linux

cd /var/tmp/usr/src/

Resources

https://www.netbsd.org/docs/pkgsrc/tools.html

https://www.netbsd.org/docs/guide/en/chap-build.html

https://www.netbsd.org/docs/guide/en/chap-kernel.html


HOME | GUIDES | BENCHMARKS | html