Smaller git downloads
September 25, 2016 —
BarryK
This is a very useful bit of information. A couple of weeks ago, I downloaded a project from a git repository, and it was 5.5GB, which used up the rest of my monthly data allowance (which is only 12GB, from Virgin Mobile, 4G wireless, using the Optus network).
Now, I want to compile the Linux kernel on my Odroid XU4, and followed the instructionss here:
https://blogs.s-osg.org/install-ubuntu-run-mainline-kernel-odroid-xu4/
Which is:
# git clone git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git linux_odroid
...it started to download, but I did a CTRL-C when I realised it is 5GB.
So, I did a bit of reading, found this:
http://ask.systutorials.com/956/how-to-clone-snapshot-remote-repository-at-specific-branch
The solution:
# git clone git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git linux_odroid --depth 1
Which is only 59MB.
Comments
That was fairly easy. These were my steps:I got exynox_defconfig out of arch/arm/configs, then:
# make exynos_defconfig
# make menuconfig
# make savedefconfig
...this creates 'defconfig'
# make -j4 bzImage modules dtbs
...get arch/arm/boot/zImage
...get arch/arm/boot/dts/exynos5422_xu4.dtb
# make modules_install
...installs to /lib/firmware and /lib/modules
# make headers_install
...installs to use/include (in the kernel source tree).
It booted, got the desktop, but no wireless or sound. Hardly any modules got built, will give it another run-through.
http://forum.odroid.com/viewtopic.php?f=95&t=18034&start=200#p154047
Repo here, and I have downloaded the zip file (169MB):
https://github.com/mihailescu2m/linux/tree/odroidxu4-4.8.y
Works, but right-off I see that no sound or wifi.
Well, the is wifi. Interface wlan0 exists, but when try to scan, reports "wlan0: Interface doesn't support scanning".
Modules 'rtl8xxxu' and 'rtl8192cu' have both loaded. The former is intended to replace the latter:
>https://wireless.wiki.kernel.org/en/users/drivers/rtl819x
So, I experimented, blacklisting each in turn, makes no difference.
Tags: linux