[Buildroot] 2023.02 : pty_allocate: openpty: No such file or directory

Peter Korsgaard peter at korsgaard.com
Mon Mar 27 19:12:18 UTC 2023


>>>>> "Zvi" == Zvi Vered <veredz72 at gmail.com> writes:

 > Hi Peter,
 > I tried the file *rootfs.cpio.uboot*  created by buildroot.
 > *It works !  *
 > dropbear is not killed and there are not /dev/null messages.

Ok, good!

 > I want to add a few files to this rootfs and then pack it again to
 > *rootfs.cpio.uboot*
 > So I extracted rootfs.cpio with:

 > cpio -idv < /tmp/rootfs.cpio
 > *** Added few files to /root ****
 > ls | cpio -ov > /tmp/rootfs.cpio
 > gzip -f /tmp/rootfs.cpio
 > ./u-boot/u-boot-xlnx/tools/mkimage -A arm64 -T ramdisk -C gzip -n 'zynqmp'
 > -d /tmp/rootfs.cpio.gz /tmp/rootfs.cpio.gz.uboot

 > Is this the right sequence ?
 > I  tried the new rootfs.cpio.gz.uboot. Boot hangs.

You need to do such things as root (or run under fakeroot) to ensure
correct permissions and device nodes, but the real way to make
modifications of the rootfs is explained in the Buildroot manual:

https://buildroot.org/downloads/manual/manual.html#rootfs-custom

 > Thank you very much for your help,

You are welcome.

-- 
Bye, Peter Korsgaard



More information about the buildroot mailing list