Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Seiderer <ps.report@gmx.net>
To: buildroot@busybox.net
Subject: [Buildroot] buildroot 2019.11.1 rpi-0-w error
Date: Fri, 28 Feb 2020 15:18:09 +0100	[thread overview]
Message-ID: <20200228151809.400146ec@gmx.net> (raw)
In-Reply-To: <CAPm8-H4w3DyfbsA2sDgR8Ekuo_6ew+45XMoZn8zDrFaDAvK5oA@mail.gmail.com>

Hello Laurentiu-Cristian,

On Fri, 28 Feb 2020 15:51:44 +0200, Laurentiu-Cristian Duca <laurentiu.duca@gmail.com> wrote:

> Hi,
>
> On 2/28/20, Peter Seiderer <ps.report@gmx.net> wrote:
> >
> >
> > On Fri, 28 Feb 2020 14:03:45 +0200, Laurentiu-Cristian Duca
> > <laurentiu.duca@gmail.com> wrote:
> >
> >> Hi,
> >>
> >>   I am facing the following error in buildroot 2019.11.1
> >> when configuring buildroot for rpi-0-w
> >> with this settings:
> >>
> >> make menuconfig
> >> Kernel
> >>     Defconfig name (bcm2835)
> >>     In-tree Device Tree Source file names (bcm2835-rpi-zero-w)
> >>
> >> make
> >> >>>   Executing post-image script board/raspberrypi0w/post-image.sh
> >> INFO: cmd: "mkdir -p
> >> "/home/laur/lucru/raspberry-pi/buildroot/buildroot-2019.11.rpi/output/build/genimage.tmp""
> >> (stderr):
> >> INFO: cmd: "rm -rf
> >> "/home/laur/lucru/raspberry-pi/buildroot/buildroot-2019.11.rpi/output/build/genimage.tmp"/*"
> >> (stderr):
> >> INFO: cmd: "mkdir -p
> >> "/home/laur/lucru/raspberry-pi/buildroot/buildroot-2019.11.rpi/output/build/genimage.tmp""
> >> (stderr):
> >> INFO: cmd: "cp -a "/tmp/tmp.iaBv2bX7fQ"
> >> "/home/laur/lucru/raspberry-pi/buildroot/buildroot-2019.11.rpi/output/build/genimage.tmp/root""
> >> (stderr):
> >> INFO: cmd: "find
> >> '/home/laur/lucru/raspberry-pi/buildroot/buildroot-2019.11.rpi/output/build/genimage.tmp/root'
> >> -depth -type d -printf '%P\0' | xargs -0 -I {} touch -r
> >> '/tmp/tmp.iaBv2bX7fQ/{}'
> >> '/home/laur/lucru/raspberry-pi/buildroot/buildroot-2019.11.rpi/output/build/genimage.tmp/root/{}'"
> >> (stderr):
> >> ERROR: file(bcm2708-rpi-zero-w.dtb):
> >> stat(/home/laur/lucru/raspberry-pi/buildroot/buildroot-2019.11.rpi/output/images/bcm2708-rpi-zero-w.dtb)
> >> failed: No such file or directory
> >> ERROR: vfat(boot.vfat): could not setup bcm2708-rpi-zero-w.dtb
> >>
> >>   If I rename bcm2835-rpi-zero-w.dtb to bcm2708-rpi-zero-w.dtb in
> >> output/images,
> >> the build succeeds but linux does not boot.
> >>
> >
> > According to configs/raspberrypi0w_defconfig the DTS name should
> > be 'bcm2708-rpi-zero-w' (or 'bcm2708-rpi-0-w' prior to [1], [2])
> > and the defconfig name should be 'bcmrpi'?
> >
> > Does the plain raspberrypi0w_defconfig work for you?
>   Yes, it works. But only works with rpi linux.
> I wanted to use linux mainline kernel compiled separately
> and that is why I tried to use
> bcm2835-rpi-zero-w.dts because mainline kernel does not have bcm2708...dts

Then do not forget to change board/raspberrypi/genimage-raspberrypi0w.cfg:

--- a/board/raspberrypi/genimage-raspberrypi0w.cfg
+++ b/board/raspberrypi/genimage-raspberrypi0w.cfg
@@ -1,7 +1,7 @@
 image boot.vfat {
   vfat {
     files = {
-      "bcm2708-rpi-zero-w.dtb",
+      "bcm2835-rpi-zero-w.dtb",
       "rpi-firmware/bootcode.bin",
       "rpi-firmware/cmdline.txt",
       "rpi-firmware/config.txt",

And according to [3], [4] you need to add kernel and DTB file to /boot/config.txt,
e.g.:

kernel=zImage
device_tree=bcm2835-rpi-zero-w.dtb


[3] https://www.collabora.com/news-and-blog/blog/2019/03/12/quick-hack-raspberry-pi-meets-linux-kernel-mainline/
[4] https://wiki.gentoo.org/wiki/Raspberry_Pi/Mainline_Kernel

>
> Thanks
>
> >
> > Which linux kernel do you use (in doubt send your .config or defconfig
> > file)?
> >
> > Regards,
> > Peter
> >
> > [1]
> > https://git.buildroot.net/buildroot/commit/?id=42d22f3bdba41da8e6b6ace2c78af2b3e34d7491
> > [2]
> > https://git.buildroot.net/buildroot/commit/?id=fcecfb66d1fb749426306dbea50fdeb37d4706d8
> >
> >>   Any ideas?
> >>
> >> Thanks
> >> _______________________________________________
> >> buildroot mailing list
> >> buildroot at busybox.net
> >> http://lists.busybox.net/mailman/listinfo/buildroot
> >
> >

      reply	other threads:[~2020-02-28 14:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-28 12:03 [Buildroot] buildroot 2019.11.1 rpi-0-w error Laurentiu-Cristian Duca
2020-02-28 12:52 ` Peter Seiderer
2020-02-28 13:51   ` Laurentiu-Cristian Duca
2020-02-28 14:18     ` Peter Seiderer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200228151809.400146ec@gmx.net \
    --to=ps.report@gmx.net \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox