Skip to contentSkip to conversation

wandboard: Use HTTP for accessing Linux kernel and U-Boot git repos

PATCH New Alexey Brodkin 2 participants 6 messages Jun 28, 2016 – Jul 4, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 wandboard: Use HTTP for accessing Linux kernel and U-Boot git repos

Quite often these days Git ports are blocked by firewalls [this is especially true in corporate environment] so switching to common HTTP(s) is a safe and pretty convenient move.

Cc Stephan Hoffmann <[email protected]>
Cc Thomas Petazzoni <[email protected]>
Cc Sergio Prado <[email protected]>
Cc Peter Korsgaard <[email protected]>
---
 configs/wandboard_defconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
configs/wandboard_defconfig +2 -2
index cf71eb2..d616d0e 100644
@@ -12,7 +12,7 @@ BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
 BR2_TARGET_UBOOT_USE_DEFCONFIG=y
 BR2_TARGET_UBOOT_BOARD_DEFCONFIG="wandboard"
 BR2_TARGET_UBOOT_CUSTOM_GIT=y
-BR2_TARGET_UBOOT_CUSTOM_REPO_URL="git://git.denx.de/u-boot.git"
+BR2_TARGET_UBOOT_CUSTOM_REPO_URL="http://git.denx.de/u-boot.git"
 BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="33711bdd4a4dce942fb5ae85a68899a8357bdd94"
 BR2_TARGET_UBOOT_FORMAT_CUSTOM=y
 BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="u-boot.img"
@@ -23,7 +23,7 @@ BR2_TARGET_UBOOT_ENVIMAGE_SOURCE="board/wandboard/uboot-env.txt"
 BR2_TARGET_UBOOT_ENVIMAGE_SIZE="0x2000"
 BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_CUSTOM_GIT=y
-BR2_LINUX_KERNEL_CUSTOM_REPO_URL="git://github.com/wandboard-org/linux.git"
+BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://github.com/wandboard-org/linux"
 BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="e2213f9a98dd7413ee5a9ca40cf60e8cb8292f4a"
 BR2_LINUX_KERNEL_DEFCONFIG="wandboard"
 BR2_LINUX_KERNEL_DTS_SUPPORT=y
Signature · 1 line
2.5.5
#1 lore raw

PATCH 1/1 wandboard: Use HTTP for accessing Linux kernel and U-Boot git repos

Quoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Alexey" == Alexey Brodkin <[email protected]> writes:

Quite often these days Git ports are blocked by firewalls [this is especially true in corporate environment] so switching to common HTTP(s) is a safe and pretty convenient move.

Quoted 8 lines
Cc Stephan Hoffmann <[email protected]>
Cc Thomas Petazzoni <[email protected]>
Cc Sergio Prado <[email protected]>
Cc Peter Korsgaard <[email protected]>
---
 configs/wandboard_defconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Committed, thanks.

configs/wandboard_defconfig BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y · line 15

Quoted 2 lines
configs/wandboard_defconfig +1 -1
-BR2_TARGET_UBOOT_CUSTOM_REPO_URL="git://git.denx.de/u-boot.git"
+BR2_TARGET_UBOOT_CUSTOM_REPO_URL="http://git.denx.de/u-boot.git"

This is actually just the 2015.07 release:

git describe 33711bdd4a4dce942fb5ae85a68899a8357bdd94 v2015.07

So I've changed it to use the release tarball instead.

Signature · 2 lines
Venlig hilsen,
Peter Korsgaard 
#2 lore raw

PATCH 1/1 wandboard: Use HTTP for accessing Linux kernel and U-Boot git repos

Hi Peter,

Quoted 24 lines · Peter Korsgaard
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

"Alexey" == Alexey Brodkin <[email protected]> writes:

?> Quite often these days Git ports are blocked by firewalls ?> [this is especially true in corporate environment] so switching ?> to common HTTP(s) is a safe and pretty convenient move.

?> Signed-off-by: Alexey Brodkin <[email protected]> ?> Cc: Stephan Hoffmann <[email protected]>
?> Cc: Thomas Petazzoni <[email protected]> ?> Cc: Sergio Prado <[email protected]> ?> Cc: Peter Korsgaard <[email protected]>
?> ---
?>??configs/wandboard_defconfig | 4 ++--
?>??1 file changed, 2 insertions(+), 2 deletions(-)

Committed, thanks.

?> -BR2_TARGET_UBOOT_CUSTOM_REPO_URL="git://git.denx.de/u-boot.git" ?> +BR2_TARGET_UBOOT_CUSTOM_REPO_URL="http://git.denx.de/u-boot.git"

Quoted 6 lines

This is actually just the 2015.07 release:

git describe 33711bdd4a4dce942fb5ae85a68899a8357bdd94 v2015.07

So I've changed it to use the release tarball instead.

Thanks for that.

Now I'm trying to get Wandboard working from the most recent upstream kernel and U-Boot. If it all works I'll update that defconfig again :)

-Alexey

#3 lore raw

PATCH 1/1 wandboard: Use HTTP for accessing Linux kernel and U-Boot git repos

Quoted 8 lines
Quoted 3 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Alexey" == Alexey Brodkin <[email protected]> writes:

So I've changed it to use the release tarball instead.

Thanks for that.

Now I'm trying to get Wandboard working from the most recent upstream kernel and U-Boot. If it all works I'll update that defconfig again :)

Great, thanks!

Signature · 2 lines
Venlig hilsen,
Peter Korsgaard 
#4 lore raw

PATCH 1/1 wandboard: Use HTTP for accessing Linux kernel and U-Boot git repos

Hi Peter,

Quoted 6 lines · Peter Korsgaard
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

"Alexey" == Alexey Brodkin <[email protected]> writes:

Quoted 8 lines

?>> So I've changed it to use the release tarball instead.

?> Thanks for that.

?> Now I'm trying to get Wandboard working from the most recent upstream ?> kernel and U-Boot. If it all works I'll update that defconfig again :)

Great, thanks!

So I wanted to do another fixup to Wandboard very similar to what I did for Cubieboard but looks like it requires patching of U-Boot.

What happens with the most recent U-Boot (I think I tried 2016.05 and 2016.07-rc2) in Buildroot U-Boot's image happens to be a little bit too large.

Wandboard's SD-card layout is as follows:
1. SPL with offset 1k
2. U-Boot itself with offset 69k
3. U-Boot's environment with offset 384k

And because of u-boot.img being?323032 bytes long it simply doesn't fit in those 315kB left before U-Boot env. That's what I see in my build console:
-------------------------->8----------------------- hdimage(sdcard.img): part u-boot-env overlaps with previous partition Makefile:672: recipe for target 'target-post-image' failed make[1]: *** [target-post-image] Error 1
Makefile:16: recipe for target '_all' failed
make: *** [_all] Error 2 -------------------------->8-----------------------

Note here we cannot fix the issue with changes in "board/wandboard/genimage.cfg" because U-Boot's environment position is hardcoded in U-Boot's "include/configs/wandboard.h", see?http://git.denx.de/?p=u-boot.git;a=blob;f=include/configs/wandboard.h#l184

Let me discuss this problem on U-Boot's mailing list first and then we either backport upstream patch or we'll cook something out if the tree.

Interesting enough if I compile U-Boot for WB form the same sources but with ARM toolchian available in my Fedora 23 host distro u-boot.img becomes a little bit more compact and squeezes in its "partition" in SD-card image.

-Alexey?

#5 lore raw

PATCH 1/1 wandboard: Use HTTP for accessing Linux kernel and U-Boot git repos

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Alexey" == Alexey Brodkin <[email protected]> writes:

Hi,

Quoted 10 lines

So I wanted to do another fixup to Wandboard very similar to what I did for Cubieboard but looks like it requires patching of U-Boot.

What happens with the most recent U-Boot (I think I tried 2016.05 and 2016.07-rc2) in Buildroot U-Boot's image happens to be a little bit too large.

Wandboard's SD-card layout is as follows:
1. SPL with offset 1k
2. U-Boot itself with offset 69k
3. U-Boot's environment with offset 384k

:/

Quoted 2 lines

And because of u-boot.img being?323032 bytes long it simply doesn't fit in those 315kB left before U-Boot env. That's what I see in my build console:

--------------------------> 8-----------------------

Quoted 5 lines

hdimage(sdcard.img): part u-boot-env overlaps with previous partition Makefile:672: recipe for target 'target-post-image' failed make[1]: *** [target-post-image] Error 1
Makefile:16: recipe for target '_all' failed
make: *** [_all] Error 2

--------------------------> 8-----------------------

Quoted 6 lines

Note here we cannot fix the issue with changes in "board/wandboard/genimage.cfg" because U-Boot's environment position is hardcoded in U-Boot's "include/configs/wandboard.h", see?http://git.denx.de/?p=u-boot.git;a=blob;f=include/configs/wandboard.h#l184

Let me discuss this problem on U-Boot's mailing list first and then we either backport upstream patch or we'll cook something out if the tree.

Yes, please - It really sounds like an upstream issue.

Quoted 3 lines

Interesting enough if I compile U-Boot for WB form the same sources but with ARM toolchian available in my Fedora 23 host distro u-boot.img becomes a little bit more compact and squeezes in its "partition" in SD-card image.

Ok, but presumably it is still a very tight fit, so if newer u-boot versions becomes just a little bit more bloated it will break there as well.

Signature · 2 lines
Venlig hilsen,
Peter Korsgaard