[lowrisc-dev] Re: make cpio error

Dinesh Thirumurthy dinesh.thirumurthy at gmail.com
Mon Jan 7 11:31:34 GMT 2019


Hi,

On a make cpio, I get errors.

www.debianmirror.de does not have the versions of packages requested.
The make cpio errors are at
https://github.com/hakrdinesh/e/blob/master/nexys/cpio2.err

The complete log is at
https://github.com/hakrdinesh/e/blob/master/nexys/cpio2.out

I am using an unmodified source repo: master branch, latest commit from a
github fork which is even with lowrisc:master.

dt at marina:~/l/lowrisc-chip/debian-riscv64$ git remote -v
origin    https://github.com/hakrdt/debian-riscv64.git (fetch)
origin    https://github.com/hakrdt/debian-riscv64.git (push)
dt at marina:~/l/lowrisc-chip/debian-riscv64$ git branch -a
* (HEAD detached at 8ece323)
  master
  remotes/origin/HEAD -> origin/master
  remotes/origin/jtag
  remotes/origin/jtag-v0.6
  remotes/origin/kc705_mii
  remotes/origin/master
  remotes/origin/refresh-v0.6
  remotes/origin/spi_flash
dt at marina:~/l/lowrisc-chip/debian-riscv64$ git log | head
commit 8ece3232ddc5057fd9db0e256b94ae946c6fa251
Merge: 49e61e6 118cd38
Author: Dr Jonathan Kimmitt <jrrk2 at cam.ac.uk>
Date:   Sun Sep 23 15:07:31 2018 +0100

    Merge debian bootstrap scripts

commit 49e61e65b82acdff8a76dc855f205435f1328019
Merge: 953ca12 c52ebb4
Author: Dr Jonathan Kimmitt <jrrk2 at cam.ac.uk>
dt at marina:~/l/lowrisc-chip/debian-riscv64$

Thanks very much.

Regards,
Dinesh



On Mon, Jan 7, 2019 at 3:59 PM Dinesh Thirumurthy <
dinesh.thirumurthy at gmail.com> wrote:

> Thanks Jonathan, Manuel, Karsten, Aurelein.
>
> Wishing all a Happy 2019!
>
> On make cpio: I error out at
>
> dt at marina:~/l/lowrisc-chip/debian-riscv64$ sh -x work/mybootstrap.sh
> + sudo rm -rf work/debian-riscv64-chroot
> + sudo mkdir -p work/debian-riscv64-chroot/usr/bin
> + sudo cp /home/dt/l/lowrisc-chip/qemu/riscv64-linux-user/qemu-riscv64
> work/debian-riscv64-chroot/usr/bin/qemu-riscv64-static
> + sudo debootstrap --foreign --arch=riscv64 --variant=minbase
> --keyring=/etc/apt/trusted.gpg --include=gnupg sid
> work/debian-riscv64-chroot http://ftp.ports.debian.org/debian-ports
> I: Retrieving InRelease
> I: Checking Release signature
> E: Release signed by unknown key (key id DA1B2CEA81DCBC61)
> + exit 1
>
> I believe this key is needed. So, adding that key with key id
> DA1B2CEA81DCBC61 helps,
>
> dt at marina:~/l/lowrisc-chip/debian-riscv64/work$ git diff
> diff --git a/work/makefile.inc b/work/makefile.inc
> index 257a02f..cf88906 100644
> --- a/work/makefile.inc
> +++ b/work/makefile.inc
> @@ -9,7 +9,7 @@ chroot: ../rootfs.tar.xz
>         make -C ../qemu -j 4
>
>  ../rootfs.tar.xz: work/mybootstrap.sh
> ../qemu/riscv64-linux-user/qemu-riscv64
> -       sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com
> 06AED62430CB581C 8B48AD6246925553 7638D0442B90D010 04EE7237B7D453EC
> +       sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com
> 06AED62430CB581C 8B48AD6246925553 7638D0442B90D010 04EE7237B7D453EC
> DA1B2CEA81DCBC61
>         sh work/mybootstrap.sh
>         sudo tar cJf - -C ${CHROOT_PATH} . > $@
>
> dt at marina:~/l/lowrisc-chip/debian-riscv64/work$
>
> Thanks.
>
> Regards,
> Dinesh
>
>
> On Fri, Jan 4, 2019 at 5:50 PM Dr Jonathan Kimmitt <jrrk2 at cam.ac.uk>
> wrote:
>
>> Dear Dinesh,
>>
>> The Debian RISCV developers (Manuel Montecelo, Karsten Merker and
>> Aurelien Jarno) have worked their
>>
>> magic and updated the repositories to a consistent working set (merging
>> in the latest glibc amongst other things)
>>
>> and I have updated the lowRISC installation scripts if you want to update
>> from git and try it again (it worked for me).
>> On 28/12/2018 11:17, Dinesh Thirumurthy wrote:
>>
>> Thanks Jonathan.
>>
>> Regards,
>> Dinesh
>>
>>
>> On Fri, Dec 28, 2018 at 4:42 PM Dr Jonathan Kimmitt <jrrk2 at cam.ac.uk>
>> wrote:
>>
>>> Those manual hacks shouldn't be necessary any more. The Debian guys will
>>> fix up
>>>
>>> the repository when they get back from Christmas/New Year holidays. You
>>> can consult
>>>
>>> the archives of the lowrisc mailing list to find information on the
>>> provenance of the unstable Debian port.
>>> On 28/12/2018 11:03, Dinesh Thirumurthy wrote:
>>>
>>> Hi,
>>>
>>> Thanks Jonathan. I will look at the prebuilt rootfs.
>>>
>>> The complete debootstrap log is at:
>>> https://github.com/hakrdinesh/e/blob/master/nexys/debootstrap.log
>>>
>>> I believe during make cpio:
>>>
>>> work/mybootstrap.sh is trying to get older revisions of 3 libraries.
>>>
>>> From what is currently present at:
>>> http://www.debianmirror.de/debian-ports/pool-riscv64/main/libf/libffi/
>>> http://www.debianmirror.de/debian-ports/pool-riscv64/main/s/systemd/
>>>
>>> The following change should hopefully remove the missing files problem.
>>>
>>> diff --git a/work/mybootstrap.sh b/work/mybootstrap.sh
>>> index 3e82e4a..6789798 100644
>>> --- a/work/mybootstrap.sh
>>> +++ b/work/mybootstrap.sh
>>> @@ -15,10 +15,10 @@ sudo chroot work/debian-riscv64-chroot
>>> /debootstrap/debootstrap --second-stage
>>>  sudo mkdir -p -m 777 work/debian-riscv64-chroot/tmp
>>>  #Fetch the last few unreleased packages
>>>  cd work/debian-riscv64-chroot/tmp
>>> -wget
>>> http://www.debianmirror.de/debian-ports/pool-riscv64/main/s/systemd/libudev1_238-2_riscv64.deb
>>> -wget
>>> http://www.debianmirror.de/debian-ports/pool-riscv64/main/s/systemd/libsystemd0_238-2_riscv64.deb
>>> +wget
>>> http://www.debianmirror.de/debian-ports/pool-riscv64/main/s/systemd/libudev1_240-2_riscv64.deb
>>> +wget
>>> http://www.debianmirror.de/debian-ports/pool-riscv64/main/s/systemd/libsystemd0_240-2_riscv64.deb
>>>  ##wget
>>> http://www.debianmirror.de/debian-ports/pool-riscv64/main/d/db5.3/libdb5.3_5.3.28-13.1~riscv64_riscv64.deb
>>> -wget
>>> http://www.debianmirror.de/debian-ports/pool-riscv64/main/libf/libffi/libffi7_3.3~rc0-2~riscv64_riscv64.deb
>>> +wget
>>> http://www.debianmirror.de/debian-ports/pool-riscv64/main/libf/libffi/libffi7_3.3~rc0-7_riscv64.deb
>>>  cd ../../..
>>>  #Install the unreleased packages
>>>  sudo chroot work/debian-riscv64-chroot dpkg -i `ls -1
>>> work/debian-riscv64-chroot/tmp | sed 's=^=tmp/='`
>>> dt at marina:~/l/lowrisc-chip/debian-riscv64$
>>>
>>> Thanks.
>>>
>>> Also, I ran into missing files, which I let make ignore for now.
>>>
>>> dt at marina:~/l/lowrisc-chip/debian-riscv64$ git diff
>>> diff --git a/work/makefile.inc b/work/makefile.inc
>>> index 257a02f..dce5675 100644
>>> --- a/work/makefile.inc
>>> +++ b/work/makefile.inc
>>> @@ -17,9 +17,9 @@ init: ../rootfs.tar.xz work/busyboxinit.sh
>>>         rm -rf bin etc dev home lib proc sbin sys tmp usr mnt nfs root
>>> run init
>>>         mkdir -p bin etc dev home lib proc sbin sys tmp usr mnt nfs root
>>> run usr/bin usr/lib usr/sbin usr/share/perl5 usr/share/udhcpc
>>> lib/riscv64-linux-gnu usr/lib/riscv64-linux-gnu # usr/share/sysvinit
>>>         cp -p work/usr-share-udhcpc-default.script
>>> usr/share/udhcpc/default.script
>>> -       cp -p ${CHROOT_PATH}/sbin/mount.nfs ./sbin
>>> +       -cp -p ${CHROOT_PATH}/sbin/mount.nfs ./sbin
>>>         cp -p ${CHROOT_PATH}/sbin/switch_root ./sbin
>>> -       cp -p ${CHROOT_PATH}/bin/busybox ./bin
>>> +       -cp -p ${CHROOT_PATH}/bin/busybox ./bin
>>>         cp -p ${CHROOT_PATH}/lib/ld-linux-riscv64-lp64d.so.1 ./lib
>>>         cp -p ${CHROOT_PATH}/lib/riscv64-linux-gnu/libblkid.so.1
>>> ./lib/riscv64-linux-gnu
>>>         cp -p ${CHROOT_PATH}/lib/riscv64-linux-gnu/libcom_err.so.2
>>> ./lib/riscv64-linux-gnu
>>> @@ -37,7 +37,7 @@ init: ../rootfs.tar.xz work/busyboxinit.sh
>>>         cp -p ${CHROOT_PATH}/lib/riscv64-linux-gnu/libresolv.so.2
>>> ./lib/riscv64-linux-gnu
>>>         cp -p ${CHROOT_PATH}/lib/riscv64-linux-gnu/librt.so.1
>>> ./lib/riscv64-linux-gnu
>>>         cp -p ${CHROOT_PATH}/lib/riscv64-linux-gnu/libselinux.so.1
>>> ./lib/riscv64-linux-gnu
>>> -       cp -p ${CHROOT_PATH}/lib/riscv64-linux-gnu/libtirpc.so.1
>>> ./lib/riscv64-linux-gnu
>>> +       -cp -p ${CHROOT_PATH}/lib/riscv64-linux-gnu/libtirpc.so.1
>>> ./lib/riscv64-linux-gnu
>>>         cp -p ${CHROOT_PATH}/lib/riscv64-linux-gnu/libuuid.so.1
>>> ./lib/riscv64-linux-gnu
>>>         cp work/busyboxinit.sh init
>>>         chmod +x init
>>>
>>> The files were mount.nfs, busybox, libtirp.so.1
>>>
>>> Apologies for the continuous complaints, just sharing the hiccups as I
>>> try various commands in the documentation.
>>>
>>> Regards,
>>> Dinesh
>>>
>>>
>>> On Fri, Dec 28, 2018 at 2:14 PM Dr Jonathan Kimmitt <jrrk2 at cam.ac.uk>
>>> wrote:
>>>
>>>> As discussed in the archives of this mailing list and in the lowrisc
>>>> documentation,
>>>>
>>>> The Debian build procedure can occasionally fail because it is based on
>>>> the unstable distribution.
>>>>
>>>> In this case the workaround is to use the pre-build archives from
>>>> github, as discussed in the
>>>>
>>>> quickstart page. Meanwhile I will attempt to reproduce your result and
>>>> see if omitting some optional
>>>>
>>>> package or changing the instructions will solve the problem.
>>>>
>>>> pre-build rootfs is here:
>>>>
>>>> https://github.com/lowRISC/lowrisc-chip/releases/download/v0.6-rc4/rootfs.tar.xz
>>>>
>>>> On 28/12/2018 07:43, Dinesh Thirumurthy wrote:
>>>> > Hi,
>>>> >
>>>> > Complete outpiut of 'make cpio' is at
>>>> > https://github.com/hakrdinesh/e/blob/master/nexys/cpio.out
>>>> >
>>>> > Thank you.
>>>> >
>>>> > Regards,
>>>> > Dinesh
>>>> >
>>>> >
>>>> >
>>>> >
>>>> > On Fri, Dec 28, 2018 at 12:38 PM Dinesh Thirumurthy <
>>>> > dinesh.thirumurthy at gmail.com> wrote:
>>>> >
>>>> >> Hi,
>>>> >>
>>>> >> Following instructions at
>>>> >> https://www.lowrisc.org/docs/download-install-debian/
>>>> >> On running make cpio
>>>> >> I get this error:
>>>> >>
>>>> >> sudo tar cJf - -C work/debian-riscv64-chroot . > ../rootfs.tar.xz
>>>> >> rm -rf bin etc dev home lib proc sbin sys tmp usr mnt nfs root run
>>>> init
>>>> >> mkdir -p bin etc dev home lib proc sbin sys tmp usr mnt nfs root run
>>>> >> usr/bin usr/lib usr/sbin usr/share/perl5 usr/share/udhcpc
>>>> >> lib/riscv64-linux-gnu usr/lib/riscv64-linux-gnu # usr/share/sysvinit
>>>> >> cp -p work/usr-share-udhcpc-default.script
>>>> usr/share/udhcpc/default.script
>>>> >> cp -p work/debian-riscv64-chroot/sbin/mount.nfs ./sbin
>>>> >> cp: cannot stat 'work/debian-riscv64-chroot/sbin/mount.nfs': No such
>>>> file
>>>> >> or directory
>>>> >> work/makefile.inc:17: recipe for target 'init' failed
>>>> >> make: *** [init] Error 1
>>>> >> dt at marina:~/l/lowrisc-chip/debian-riscv64$ ls
>>>> >> work/debian-riscv64-chroot/sbin/
>>>> >> agetty      cfdisk      e2image      fsck         fsfreeze
>>>>  isosize
>>>> >> mkfs         mkfs.minix        raw
>>>> start-stop-daemon.REAL
>>>> >> tune2fs
>>>> >> badblocks   chcpu       e2label      fsck.cramfs  fstab-decode
>>>>  killall5
>>>> >> mkfs.bfs     mkhomedir_helper  resize2fs          sulogin
>>>> >> unix_chkpwd
>>>> >> blkdiscard  ctrlaltdel  e2mmpstatus  fsck.ext2    fstrim
>>>>  ldconfig
>>>> >> mkfs.cramfs  mkswap            runuser            swaplabel
>>>> >> unix_update
>>>> >> blkid       debugfs     e2undo       fsck.ext3    getty
>>>> logsave
>>>> >> mkfs.ext2    pam_tally         sfdisk             swapoff
>>>> >> wipefs
>>>> >> blkzone     dumpe2fs    fdisk        fsck.ext4    hwclock
>>>> losetup
>>>> >> mkfs.ext3    pam_tally2        shadowconfig       swapon
>>>> >> zramctl
>>>> >> blockdev    e2fsck      findfs       fsck.minix   installkernel
>>>> mke2fs
>>>> >> mkfs.ext4    pivot_root        start-stop-daemon  switch_root
>>>> >> dt at marina:~/l/lowrisc-chip/debian-riscv64$
>>>> >>
>>>> >> How do I fix/overcome this?
>>>> >>
>>>> >> Thanks.
>>>> >>
>>>> >> Regards,
>>>> >> Dinesh
>>>> >>
>>>> >>
>>>>
>>>


More information about the lowrisc-dev mailing list