Skip to contentSkip to conversation

BR 2015.02: questions re builds for a B3?

Buildroot g4 at novadsp.com 3 participants 8 messages May 25, 2015

lore
Share & tools
lore
#0 lore raw

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--------------------------------
----------

Quoted 1 line
Quoted 1 line
Quoted 1 line

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>

#1 lore raw
Quoted 10 lines · On Mon, May 25, 2015 at 5:45 PM, <[email protected]> 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.

Quoted 8 lines

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.

Quoted 14 lines

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?

Quoted 8 lines

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

Quoted 57 lines

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------------------------------------------

Quoted 1 line
Quoted 1 line
Quoted 1 line

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

#2 lore raw

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

Quoted 4 lines

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

#3 lore raw
Quoted 1 line · On Mon, May 25, 2015 at 7:01 PM, <[email protected]> wrote:

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

You're welcome :-)

Quoted 5 lines
Quoted 4 lines

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

Quoted 7 lines

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.

Quoted 8 lines

Then make again to pull+build ...

BR,

Jerry

#4 lore raw

Yegor,

Quoted 6 lines
Quoted 2 lines

'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!

#5 lore raw
Quoted 10 lines · On Mon, May 25, 2015 at 8:45 PM, <[email protected]> wrote:

Yegor,

Quoted 6 lines
Quoted 2 lines

'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

#6 lore raw

Hi Yegor

Quoted 8 lines

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

Quoted 9 lines

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

#7 lore raw
In reply to g4 at novadsp.com

Hello,

Quoted 4 lines · 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.).

Quoted 4 lines

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.

Quoted 3 lines

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

Quoted 2 lines

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/.

Quoted 10 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line

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.

Quoted 8 lines

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

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