mnakada / atomcam_tools

Hack tool for atomcam and wyzecam.
Other
183 stars 22 forks source link

Cannot open '/openmiko/build/buildroot-2016.02/output/images/initramfs.cpio' #36

Closed archandanime closed 2 years ago

archandanime commented 2 years ago

I cloned the repo and successfully complied the kernel and exit, when I came back, the compilation failed.

  /atomtools/build/buildroot-2016.02/output/build/linux-custom/scripts/gen_initramfs_list.sh: Cannot open '/openmiko/build/buildroot-2016.02/output/images/initramfs.cpio'
/atomtools/build/buildroot-2016.02/output/build/linux-custom/usr/Makefile:67: recipe for target 'usr/initramfs_data.cpio.lzma' failed
make[2]: *** [usr/initramfs_data.cpio.lzma] Error 1
Makefile:795: recipe for target 'usr' failed
make[1]: *** [usr] Error 2
make[1]: *** Waiting for unfinished jobs....
make[1]: *** wait: No child processes.  Stop.
package/pkg-generic.mk:195: recipe for target '/atomtools/build/buildroot-2016.02/output/build/linux-custom/.stamp_built' failed
make: *** [/atomtools/build/buildroot-2016.02/output/build/linux-custom/.stamp_built] Error 2

there's no /openmiko directory, unlike before

root@dd73ff141104:/atomtools/build/buildroot-2016.02# ls /
atomtools  bin  boot  dev  etc  home  lib  lib64  media  mnt  opt  proc  root  run  sbin  src  srv  sys  tmp  usr  var
root@dd73ff141104:/atomtools/build/buildroot-2016.02# ls -lia output/images/
total 133880
369599 drwxr-xr-x 1 root root        72 Jun 14 13:06 .
 38788 drwxr-xr-x 1 root root       100 Jun 25 04:38 ..
369600 -rw-r--r-- 1 root root    773120 Jun 25 04:38 initramfs.cpio
369601 -rw-r--r-- 1 root root 134217728 Jun 14 13:06 rootfs.ext2
369602 -rw-r--r-- 1 root root   2097551 Jun 14 13:04 uImage.lzma
archandanime commented 2 years ago

when I compiled the kernel before that, it couldn't boot because of kernel panic(shown in serial connection) boot log

archandanime commented 2 years ago

I created /openmiko/build/buildroot-2016.02/output/images/ and copied initramfs.cpio to the directory, the compilation succeeded. I'll test if the kernel image works

mnakada commented 2 years ago

@archandanime , I think the reason why the initramfs build is failing is that the Docker environment is out of date.

I modified the makefile of atomcam_tools to check the latest docker image, so please try to get the latest repo and build again.

archandanime commented 2 years ago

thank you very much, it worked!