Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] BR 2015.02: questions re builds for a B3?
@ 2015-05-25 15:45 g4 at novadsp.com
  2015-05-25 15:55 ` Yegor Yefremov
  2015-05-25 19:05 ` Thomas Petazzoni
  0 siblings, 2 replies; 8+ messages in thread
From: g4 at novadsp.com @ 2015-05-25 15:45 UTC (permalink / raw)
  To: buildroot

There might be some really dumb questions in this so apologies in advance. 

 

Aside from problems with the default uEnv.txt I can build a booting system
using 2015.02. For which many thanks.  I've currently got 3 problems. Any
help here much appreciated.

 

1. How to point BR to use a newer kernel (TI 3.14.43 in this case)? Which
menuconfig setting(s) need to be changed and what would the resulting
.config look like?

 

If I simply replace the commit hash when I makeconfig with the branch number
I get the (painful!) result in the appended snippet below

 

2. If I configure the default kernel (3.12.10 ish) to build (specifically)
USB gadget modules, modprobe and friends do not work on the target. The .ko
modules are in the expected folder but somewhere a step is getting missed.
Any thoughts?

 

3. If I even need to do this by hand, how do I set up
/etc/network/interfaces to use etho? Does this need a custom script or can
it be added to some default file somewhere? Or, can I create an interfaces
file in $BUILDROOT /board/beaglebone?

 

4. Is there an officially sanctioned way to get a complete log of all build
steps? Redirection to stdout/stderr is a bit brittle. And I'd prefer to
avoid hacking remake or pymake

 

5. More generally, which .config files need to be backed up? I get
$BUILDROOT but how about for the kernel?

 

Thanks very much for any help here.

 

The extraordinarily maddening error follows. The problem here is that if I
rerun make the entire repo is cloned once more. Is this intentional? How can
it be stopped. My broadband is slow so a 3 hour clone is a complete pain..

----------------------------------------snip--------------------------------
----------

>>> linux linux-3.14.41-ti-r63 Downloading

Doing full clone

Cloning into bare repository 'linux-linux-3.14.41-ti-r63'...

remote: Counting objects: 4862708, done.

remote: Compressing objects: 100% (721124/721124), done.

remote: Total 4862708 (delta 4114542), reused 4854896 (delta 4107066)
Receiving objects: 100% (4862708/4862708), 942.31 MiB | 294.00 KiB/s, done.

Resolving deltas: 100% (4114542/4114542), done.

Checking connectivity... done.

fatal: Not a valid object name

--2015-05-21 17:48:58--
http://sources.buildroot.net/linux-linux-3.14.41-ti-r63.tar.gz

Resolving sources.buildroot.net (sources.buildroot.net)... 176.9.16.109
Connecting to sources.buildroot.net
(sources.buildroot.net)|176.9.16.109|:80... connected.

HTTP request sent, awaiting response... 404 Not Found

2015-05-21 17:48:59 ERROR 404: Not Found.

 

make: ***
[/home/xxx/buildroot/output/build/linux-linux-3.14.41-ti-r63/.stamp_download
ed] Error 1

----------------------------------------/snip-------------------------------
-----------

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20150525/e4aeb76d/attachment.html>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] BR 2015.02: questions re builds for a B3?
  2015-05-25 15:45 [Buildroot] BR 2015.02: questions re builds for a B3? g4 at novadsp.com
@ 2015-05-25 15:55 ` Yegor Yefremov
  2015-05-25 17:01   ` g4 at novadsp.com
  2015-05-25 19:05 ` Thomas Petazzoni
  1 sibling, 1 reply; 8+ messages in thread
From: Yegor Yefremov @ 2015-05-25 15:55 UTC (permalink / raw)
  To: buildroot

On Mon, May 25, 2015 at 5:45 PM,  <g4@novadsp.com> wrote:
> There might be some really dumb questions in this so apologies in advance.
>
>
>
> Aside from problems with the default uEnv.txt I can build a booting system
> using 2015.02. For which many thanks.  I?ve currently got 3 problems. Any
> help here much appreciated.
>
>
>
> 1. How to point BR to use a newer kernel (TI 3.14.43 in this case)? Which
> menuconfig setting(s) need to be changed and what would the resulting
> .config look like?
>
>
>
> If I simply replace the commit hash when I makeconfig with the branch number
> I get the (painful!) result in the appended snippet below

What about just using upstream kernel? Select 4.0.4,
omap2plus_defconfig and am335x-boneblack.dtb and you're done.

> 2. If I configure the default kernel (3.12.10 ish) to build (specifically)
> USB gadget modules, modprobe and friends do not work on the target. The .ko
> modules are in the expected folder but somewhere a step is getting missed.
> Any thoughts?
>
>
>
> 3. If I even need to do this by hand, how do I set up
> /etc/network/interfaces to use etho? Does this need a custom script or can
> it be added to some default file somewhere? Or, can I create an interfaces
> file in $BUILDROOT /board/beaglebone?
>
>
>
> 4. Is there an officially sanctioned way to get a complete log of all build
> steps? Redirection to stdout/stderr is a bit brittle. And I?d prefer to
> avoid hacking remake or pymake
>
>
>
> 5. More generally, which .config files need to be backed up? I get
> $BUILDROOT but how about for the kernel?

http://nightly.buildroot.org/manual.html#outside-br-custom

> Thanks very much for any help here.
>
>
>
> The extraordinarily maddening error follows. The problem here is that if I
> rerun make the entire repo is cloned once more. Is this intentional? How can
> it be stopped. My broadband is slow so a 3 hour clone is a complete pain?.
>
> ----------------------------------------snip------------------------------------------
>
>>>> linux linux-3.14.41-ti-r63 Downloading
>
> Doing full clone
>
> Cloning into bare repository 'linux-linux-3.14.41-ti-r63'...
>
> remote: Counting objects: 4862708, done.
>
> remote: Compressing objects: 100% (721124/721124), done.
>
> remote: Total 4862708 (delta 4114542), reused 4854896 (delta 4107066)
> Receiving objects: 100% (4862708/4862708), 942.31 MiB | 294.00 KiB/s, done.
>
> Resolving deltas: 100% (4114542/4114542), done.
>
> Checking connectivity... done.
>
> fatal: Not a valid object name
>
> --2015-05-21 17:48:58--
> http://sources.buildroot.net/linux-linux-3.14.41-ti-r63.tar.gz
>
> Resolving sources.buildroot.net (sources.buildroot.net)... 176.9.16.109
> Connecting to sources.buildroot.net
> (sources.buildroot.net)|176.9.16.109|:80... connected.
>
> HTTP request sent, awaiting response... 404 Not Found
>
> 2015-05-21 17:48:59 ERROR 404: Not Found.
>
>
>
> make: ***
> [/home/xxx/buildroot/output/build/linux-linux-3.14.41-ti-r63/.stamp_downloaded]
> Error 1
>
> ----------------------------------------/snip------------------------------------------
>
>
>
>
>
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] BR 2015.02: questions re builds for a B3?
  2015-05-25 15:55 ` Yegor Yefremov
@ 2015-05-25 17:01   ` g4 at novadsp.com
  2015-05-25 18:15     ` Yegor Yefremov
  0 siblings, 1 reply; 8+ messages in thread
From: g4 at novadsp.com @ 2015-05-25 17:01 UTC (permalink / raw)
  To: buildroot

Hi Yegor. Thanks and TIA for your patience, which might get tested :)

> 
> What about just using upstream kernel? Select 4.0.4, omap2plus_defconfig
> and am335x-boneblack.dtb and you're done.
> 

So I:

'make menuconfig' for BR. 
Kernel >> custom repo version >> change hash to 4.0.4
set BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE to 

'output/build/linux-4.0.4/arch/arm/configs/omap2plus_defconfig' ?

Then make again to pull+build ...

BR,

Jerry

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] BR 2015.02: questions re builds for a B3?
  2015-05-25 17:01   ` g4 at novadsp.com
@ 2015-05-25 18:15     ` Yegor Yefremov
  2015-05-25 18:45       ` g4 at novadsp.com
  0 siblings, 1 reply; 8+ messages in thread
From: Yegor Yefremov @ 2015-05-25 18:15 UTC (permalink / raw)
  To: buildroot

On Mon, May 25, 2015 at 7:01 PM,  <g4@novadsp.com> wrote:
> Hi Yegor. Thanks and TIA for your patience, which might get tested :)

You're welcome :-)

>>
>> What about just using upstream kernel? Select 4.0.4, omap2plus_defconfig
>> and am335x-boneblack.dtb and you're done.
>>
>
> So I:
>
> 'make menuconfig' for BR.
> Kernel >> custom repo version >> change hash to 4.0.4
> set BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE to
>
> 'output/build/linux-4.0.4/arch/arm/configs/omap2plus_defconfig' ?

BR2_LINUX_KERNEL_DEFCONFIG should just be omap2plus_defconfig, because
it is in-tree defconfig file.

> Then make again to pull+build ...
>
> BR,
>
> Jerry
>
>
>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] BR 2015.02: questions re builds for a B3?
  2015-05-25 18:15     ` Yegor Yefremov
@ 2015-05-25 18:45       ` g4 at novadsp.com
  2015-05-25 18:51         ` Yegor Yefremov
  0 siblings, 1 reply; 8+ messages in thread
From: g4 at novadsp.com @ 2015-05-25 18:45 UTC (permalink / raw)
  To: buildroot

Yegor,

> >
> > 'output/build/linux-4.0.4/arch/arm/configs/omap2plus_defconfig' ?
> 
> BR2_LINUX_KERNEL_DEFCONFIG should just be omap2plus_defconfig,
> because it is in-tree defconfig file.
> 

Got it. Thanks again. If you have any ideas on the next problem please do chime in!

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] BR 2015.02: questions re builds for a B3?
  2015-05-25 18:45       ` g4 at novadsp.com
@ 2015-05-25 18:51         ` Yegor Yefremov
  2015-05-25 19:02           ` g4 at novadsp.com
  0 siblings, 1 reply; 8+ messages in thread
From: Yegor Yefremov @ 2015-05-25 18:51 UTC (permalink / raw)
  To: buildroot

On Mon, May 25, 2015 at 8:45 PM,  <g4@novadsp.com> wrote:
> Yegor,
>
>> >
>> > 'output/build/linux-4.0.4/arch/arm/configs/omap2plus_defconfig' ?
>>
>> BR2_LINUX_KERNEL_DEFCONFIG should just be omap2plus_defconfig,
>> because it is in-tree defconfig file.
>>
>
> Got it. Thanks again. If you have any ideas on the next problem please do chime in!

Great.

Have you read about BR2_EXTERNAL mechanism (the link I've sent you in
my first mail)? You just need to create your own repo with following
folders:

board/mycompany/bbb
configs
package

in board/mycompany/bbb you create following folders like

board/mycompany/bbb/fs-overlay/etc/network/

there you place your custom interfaces file.

You kernel config can be saved in board/mycompany/bbb and you BR
defconfig goes to configs folder.

Yegor

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] BR 2015.02: questions re builds for a B3?
  2015-05-25 18:51         ` Yegor Yefremov
@ 2015-05-25 19:02           ` g4 at novadsp.com
  0 siblings, 0 replies; 8+ messages in thread
From: g4 at novadsp.com @ 2015-05-25 19:02 UTC (permalink / raw)
  To: buildroot

Hi Yegor

> Have you read about BR2_EXTERNAL mechanism (the link I've sent you in my
> first mail)? You just need to create your own repo with following
> folders:
> 
> board/mycompany/bbb
> configs
> package
> 
> in board/mycompany/bbb you create following folders like
> 
> board/mycompany/bbb/fs-overlay/etc/network/
> 
> there you place your custom interfaces file.
> 
> You kernel config can be saved in board/mycompany/bbb and you BR
> defconfig goes to configs folder.
> 

OK.  Got that too. 

Have you got an example .config you'd care to post that shows the relevant paths? 
Part of my problem here is knowing/discovering which entries need to be qualified and which do not

Ta x3

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] BR 2015.02: questions re builds for a B3?
  2015-05-25 15:45 [Buildroot] BR 2015.02: questions re builds for a B3? g4 at novadsp.com
  2015-05-25 15:55 ` Yegor Yefremov
@ 2015-05-25 19:05 ` Thomas Petazzoni
  1 sibling, 0 replies; 8+ messages in thread
From: Thomas Petazzoni @ 2015-05-25 19:05 UTC (permalink / raw)
  To: buildroot

Hello,

On Mon, 25 May 2015 16:45:40 +0100, g4 at novadsp.com wrote:

> 2. If I configure the default kernel (3.12.10 ish) to build (specifically)
> USB gadget modules, modprobe and friends do not work on the target. The .ko
> modules are in the expected folder but somewhere a step is getting missed.
> Any thoughts?

Insufficient details. There is nothing we can say if all you provide
is "do not work". Please give more details (what happens when you
modprobe, what is your kernel configuration, etc.).

> 3. If I even need to do this by hand, how do I set up
> /etc/network/interfaces to use etho? Does this need a custom script or can
> it be added to some default file somewhere? Or, can I create an interfaces
> file in $BUILDROOT /board/beaglebone?

Please read
http://buildroot.org/downloads/manual/manual.html#rootfs-custom.

> 4. Is there an officially sanctioned way to get a complete log of all build
> steps? Redirection to stdout/stderr is a bit brittle. And I'd prefer to
> avoid hacking remake or pymake

I typically use:

	make 2>&1 | tee build.log

> 5. More generally, which .config files need to be backed up? I get
> $BUILDROOT but how about for the kernel?

Please read
http://buildroot.org/downloads/manual/manual.html#customize-store-package-config/.

> >>> linux linux-3.14.41-ti-r63 Downloading
> 
> Doing full clone
> 
> Cloning into bare repository 'linux-linux-3.14.41-ti-r63'...
> 
> remote: Counting objects: 4862708, done.
> 
> remote: Compressing objects: 100% (721124/721124), done.
> 
> remote: Total 4862708 (delta 4114542), reused 4854896 (delta 4107066)
> Receiving objects: 100% (4862708/4862708), 942.31 MiB | 294.00 KiB/s, done.
> 
> Resolving deltas: 100% (4114542/4114542), done.
> 
> Checking connectivity... done.
> 
> fatal: Not a valid object name

This means that the Git tag you're pointing to simply for the
Linux kernel doesn't exist.

Best regards,

Thomas Petazzoni
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-05-25 19:05 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-25 15:45 [Buildroot] BR 2015.02: questions re builds for a B3? g4 at novadsp.com
2015-05-25 15:55 ` Yegor Yefremov
2015-05-25 17:01   ` g4 at novadsp.com
2015-05-25 18:15     ` Yegor Yefremov
2015-05-25 18:45       ` g4 at novadsp.com
2015-05-25 18:51         ` Yegor Yefremov
2015-05-25 19:02           ` g4 at novadsp.com
2015-05-25 19:05 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox