RTC DS1307 on Dragonboard 410c

I have format and installed SD card but i got error in this step:

linaro@linaro-alip:/usr/src/linux-4.0.0/kernel$ cp /boot/initrd.img-4.0.0
cp: missing destination file operand after ‘/boot/initrd.img-4.0.0’

can you suggest me how can i solve this problem.

This is because the kernel version has changed to the trailing part of the filename is no longer 4.0.0.

What version numbers for initrd.img do you have in /boot? If there’s only one use that version instead.

I am doing all these in db410c sfter sd card mount and partition.
i got error in this step
make -j4 Image dtbs modules
error is:
include/linux/compiler-gcc.h:107:30: fatal error: linux/compiler-gcc6.h: No such file or directory
#include gcc_header(GNUC)
^
compilation terminated.
scripts/Makefile.build:153: recipe for target ‘scripts/mod/devicetable-offsets.s’ failed
make[2]: *** [scripts/mod/devicetable-offsets.s] Error 1
scripts/Makefile.build:403: recipe for target ‘scripts/mod’ failed
make[1]: *** [scripts/mod] Error 2
make[1]: *** Waiting for unfinished jobs…

Kbuild:42: recipe for target ‘kernel/bounds.s’ failed
make[1]: *** [kernel/bounds.s] Error 1
Makefile:990: recipe for target ‘prepare0’ failed
make: *** [prepare0] Error 2

will you please tell me reason of these error and a way to solve these.

and these is no initrd.img in /kernel/arch/arm64/boot
but I download it from following link and it is in /kernel https://builds.96boards.org/releases/dragonboard410c/linaro/debian/latest/initrd.img
do i need to move this file from /kernel to /kernel/arch/arm64/boot

Regards

So… this error occurs because you are building a very old kernel with a recent compiler. The instructions you are following were written in 2015 and, as @ljking warned you, some of the numbers in it need updating.

In particular you need to substitute this line:

git checkout -b kernel-15.07 ubuntu-qcom-dragonboard410c-15.07

With the one from the release you are trying to build. For example in the notes that accompany the latest release then this line reads:

git checkout -b kernel-18.01 debian-qcom-dragonboard410c-18.01

I think it is also likely that you no longer need the subsequent cherry-pick command (it looks to me like the cherry pick is to grab a bug fix that I suspect we long ago addressed).

thank you
I substitute the line
git checkout -b kernel-18.01 debian-qcom-dragonboard410c-18.01
but cannot complete the command
make -j4 Image dtbs modules
no space left on device
even I mount 8gb sd card in db410c(link) I think it does not use it.
I am using win10, is it any option so that I can rebuild kernel without using host PC?