Page 1 of 3
Trying to build image for Raspberry Pi2
Posted: Fri Dec 04, 2015 7:29 am
by caeci11ius
Hi everyone,
I'm trying to build an image for a raspberry pi 2 (using "make custom"), which is a supported platform in Chaos Calmer. Not having much luck, the build keeps bombing out. Suspect it's due to this following bit, which occurs right at the beginning:
Code: Select all
if [ ! -e "../dl/linux-.tar.xz" ] ; then ../scripts/download.pl ../dl linux-.tar.xz @KERNEL/linux/kernel/v. ; fi ;
Use of uninitialized value $ENV{"TOPDIR"} in concatenation (.) or string at ../scripts/download.pl line 32.
--2015-12-04 22:06:36-- http://mirror2.openwrt.org/sources/linux-.tar.xz
Resolving mirror2.openwrt.org (mirror2.openwrt.org)... 46.4.11.11
Connecting to mirror2.openwrt.org (mirror2.openwrt.org)|46.4.11.11|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2015-12-04 22:06:37 ERROR 404: Not Found.
Download failed.
Looks like we're trying to grab some kernel source but aren't appending a version to it? Bug in the build script? Alternatively, platform not compatible with Gargoyle?
Re: Trying to build image for Raspberry Pi2
Posted: Fri Dec 04, 2015 9:23 pm
by caeci11ius
Suppose it might help reproduce the problem if I provide more info on how I configured the image...
OK so here goes. First run "make custom". Once the menu configuration starts, I've been selecting:
Target System (Broadcom BCM2708/BCM2709)
Subtarget (BCM2709 based boards)
Target Profile (Raspberry Pi 2)
In "Kernel Modules", i'm also selecting the two ASIX USB network drivers as I will be using one of two ASIX USB network cards I've got with this image for a second network card. I.e.
Kernel modules ---> USB Support --->
-*- kmod-usb-net
<*> kmod-usb-net-asix
<*> kmod-usb-net-asix-ax88179
And that's about it.
Re: Trying to build image for Raspberry Pi2
Posted: Sat Jan 02, 2016 7:58 pm
by caeci11ius
Decided to go back to this while I'm off over xmas. Build now succeeds, and I can flash to an SD and boot the pi. Can connect fine with SSH, but the Web GUI isn't starting. Any ideas where I might look to fix that?
Edit (a bit later) - is there perhaps a dependency I needed to include manually in the build in order to start the web interface? Have had a look through and it seems all the gargoyle stuff is included by default (as I'd have expected).
Dmesg output looks ok - no errors in there that would indicate something went wrong...happy to include if it might be helpful to someone.
Re: Trying to build image for Raspberry Pi2
Posted: Sun Jan 03, 2016 11:27 pm
by Slyon
I'm interested in making it working for a Raspberry Pi1 Model B!
Do you have some hints about building the image?
Thank you!
Re: Trying to build image for Raspberry Pi2
Posted: Sun Jan 03, 2016 11:47 pm
by Lantis
Can you post the .config you used?
Re: Trying to build image for Raspberry Pi2
Posted: Wed Jan 06, 2016 12:34 am
by caeci11ius
Config (and a copy of the built image from the other day) available here:
https://drive.google.com/folderview?id= ... sp=sharing
I think I may have overwritten the original .config in some subsequent tests, but I'm confident that one is the same as the one I used to build the image. I'd have made sure, but am having my original error with fetching source today - pasted output below. If you want to try out the built image, you can flash it to the Pi2's SD card as per the usual process. It boots just fine, but you'll only get SSH access - Web UI doesn't work as per messages above.
Code: Select all
make[1]: Entering directory '/home/andrew/gargoyle/custom-src/nf-patch-build'
if [ ! -e "../dl/linux-.tar.xz" ] ; then ../scripts/download.pl ../dl linux-.tar.xz @KERNEL/linux/kernel/v. ; fi ;
Use of uninitialized value $ENV{"TOPDIR"} in concatenation (.) or string at ../scripts/download.pl line 32.
--2016-01-06 15:23:51-- http://mirror2.openwrt.org/sources/linux-.tar.xz
Resolving mirror2.openwrt.org (mirror2.openwrt.org)... 46.4.11.11
Connecting to mirror2.openwrt.org (mirror2.openwrt.org)|46.4.11.11|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2016-01-06 15:23:52 ERROR 404: Not Found.
Download failed.
--2016-01-06 15:23:52-- http://downloads.openwrt.org/sources/linux-.tar.xz
Resolving downloads.openwrt.org (downloads.openwrt.org)... 78.24.191.177
Connecting to downloads.openwrt.org (downloads.openwrt.org)|78.24.191.177|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2016-01-06 15:23:53 ERROR 404: Not Found.
Download failed.
No more mirrors to try - giving up.
Makefile:39: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/andrew/gargoyle/custom-src/nf-patch-build'
Re: Trying to build image for Raspberry Pi2
Posted: Thu Jan 21, 2016 4:03 am
by Slyon
Are you sure that isn't working because of that error?
In your config Gargoyle Webshell isn't selected as far as i can see.
Isn't required for the web interface?
That's a diff between
your file [green,at right] and a standard configuration of
Gargoyle [red, at left] for a broadcom modem:
I still have problem of dependency compiling mine because of missing packages.. Where is best to get them?
Thanks
Re: Trying to build image for Raspberry Pi2
Posted: Thu Jan 21, 2016 4:39 am
by Lantis
lol yea that will ruin it.
at the very least, gargoyle and gargoyle i18n, and one of the languages are required.
Which dependencies are missing?
Re: Trying to build image for Raspberry Pi2
Posted: Thu Jan 21, 2016 10:23 am
by caeci11ius
Thanks for the heads-up guys, will try rebuilding making sure I include all of that.
The 404 error I flagged is odd though...looking at a directory listing on the server in question, it would seem the script is trying to fetch one of the following files but hasn't completed the name:
linux-atm-2.5.2.tar.gz 22-Dec-2011 05:17 1082256
linux-atm_2.4.1.orig.tar.gz 16-Dec-2009 14:24 711714
linux-atm_2.5.1.orig.tar.gz 28-Mar-2010 20:47 1308638
linux-libc-headers-2.6.12.0.tar.bz2 06-Jul-2005 17:02 2539721
linux-uvc-r132.tar.gz 14-Jan-2008 04:08 43183
linux-uvc-r151.tar.bz2 14-Jan-2008 04:10 37247
linux-uvc-r215.tar.bz2 05-Aug-2008 05:37 39088
linux-uvc-r244.tar.bz2 27-Sep-2008 14:17 39679
linux-uvc-r261.tar.bz2 22-Dec-2008 00:14 40263
There's nothing in there called simply linux-.tar.xz ... or anything with a .xz extension for that matter...
Re: Trying to build image for Raspberry Pi2
Posted: Thu Jan 21, 2016 12:20 pm
by Slyon
I'm doing some trying and guess in my spare time.
At the moment i've succeed to build a Gargoyle 1.8 image for the rarspberry pi1 but without webshell (my fault!

)
When i try to compile with the 1.9 branch (default custom config like the one of the OP) i get always this error:
Code: Select all
ERROR: module '/home/stockmind/gargoyle/custom-src/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx/linux-3.10.49/net/ipv4/netfilter/*weburl*.ko' is missing.
modules/netfilter.mk:685: recipe for target '/home/stockmind/gargoyle/custom-src/bin/ar71xx/packages/base/kmod-ipt-weburl_3.10.49-1-f5225c31f0a1147c9a2e94da5cbc457e_ar71xx.ipk' failed
make[4]: *** [/home/stockmind/gargoyle/custom-src/bin/ar71xx/packages/base/kmod-ipt-weburl_3.10.49-1-f5225c31f0a1147c9a2e94da5cbc457e_ar71xx.ipk] Error 1
make[4]: Leaving directory '/home/stockmind/gargoyle/custom-src/package/kernel/linux'
package/Makefile:175: recipe for target 'package/kernel/linux/compile' failed
make[3]: *** [package/kernel/linux/compile] Error 2
make[3]: Leaving directory '/home/stockmind/gargoyle/custom-src'
package/Makefile:172: recipe for target '/home/stockmind/gargoyle/custom-src/staging_dir/target-mips_34kc_uClibc-0.9.33.2/stamp/.package_compile' failed
make[2]: *** [/home/stockmind/gargoyle/custom-src/staging_dir/target-mips_34kc_uClibc-0.9.33.2/stamp/.package_compile] Error 2
make[2]: Leaving directory '/home/stockmind/gargoyle/custom-src'
/home/stockmind/gargoyle/custom-src/include/toplevel.mk:171: set di istruzioni per l'obiettivo "world" non riuscito
make[1]: *** [world] Errore 2
make[1]: uscita dalla directory "/home/stockmind/gargoyle/custom-src"
cp: impossibile eseguire stat di "bin/ar71xx/uboot-ar71xx-nbg460n_550n_550nh:": File o directory non esistente
He's trying to build something for the "ar71xx" and failing to find files because they are all for the brcm...
Anyone got this error trying steps of the OP but selecting Raspberry Pi 1 in make custom?