OpenWrt Forum Archive

Topic: Raspberry Pi 2

The content of this topic has been archived on 14 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I cannot find the url to download the Openwrt of Raspberry Pi 2

http://wiki.openwrt.org/toh/raspberry_pi   

Anyone can give me a url to download openwrt-brcm2708-bcm2709-sdcard-vfat-ext4.img ?

thanks very much

(Last edited by safeoy on 21 Mar 2015, 11:26)

I am also interested to try OpenWrt on RPi2 so a link would be nice.

I compile for Pi2 but get error, i use gcc 4.8

...
if [ -s "/home/dinhchuc/openwrt/trunk/build_dir/target-arm_cortex-a7+vfp_uClibc-0.9.33.2_eabi/linux-brcm2708_bcm2709/linux-3.18.9/patches/series" ]; then (cd "/home/dinhchuc/openwrt/trunk/build_dir/target-arm_cortex-a7+vfp_uClibc-0.9.33.2_eabi/linux-brcm2708_bcm2709/linux-3.18.9"; if quilt --quiltrc=- next >/dev/null 2>&1; then quilt --quiltrc=- push -a; else quilt --quiltrc=- top >/dev/null 2>&1; fi ); fi
Applying patch platform/0114-ntp-Patch-to-fix-false-positives-on-32bit-systems.patch
patching file kernel/time/ntp.c
Hunk #1 FAILED at 634.
1 out of 1 hunk FAILED -- rejects in file kernel/time/ntp.c
Patch platform/0114-ntp-Patch-to-fix-false-positives-on-32bit-systems.patch does not apply (enforce with -f)
make[4]: *** [/home/dinhchuc/openwrt/trunk/build_dir/target-arm_cortex-a7+vfp_uClibc-0.9.33.2_eabi/linux-brcm2708_bcm2709/linux-3.18.9/.quilt_checked] Error 1
make[4]: Leaving directory `/home/dinhchuc/openwrt/trunk/target/linux/brcm2708'
make[3]: *** [compile] Error 2
make[3]: Leaving directory `/home/dinhchuc/openwrt/trunk/target/linux'
make[2]: *** [target/linux/compile] Error 2
make[2]: Leaving directory `/home/dinhchuc/openwrt/trunk'
make[1]: *** [/home/dinhchuc/openwrt/trunk/staging_dir/target-arm_cortex-a7+vfp_uClibc-0.9.33.2_eabi/stamp/.target_compile] Error 2
make[1]: Leaving directory `/home/dinhchuc/openwrt/trunk'
make: *** [world] Error 2
hoatienii wrote:

I compile for Pi2 but get error, i use gcc 4.8

...
if [ -s "/home/dinhchuc/openwrt/trunk/build_dir/target-arm_cortex-a7+vfp_uClibc-0.9.33.2_eabi/linux-brcm2708_bcm2709/linux-3.18.9/patches/series" ]; then (cd "/home/dinhchuc/openwrt/trunk/build_dir/target-arm_cortex-a7+vfp_uClibc-0.9.33.2_eabi/linux-brcm2708_bcm2709/linux-3.18.9"; if quilt --quiltrc=- next >/dev/null 2>&1; then quilt --quiltrc=- push -a; else quilt --quiltrc=- top >/dev/null 2>&1; fi ); fi
Applying patch platform/0114-ntp-Patch-to-fix-false-positives-on-32bit-systems.patch
patching file kernel/time/ntp.c
Hunk #1 FAILED at 634.
1 out of 1 hunk FAILED -- rejects in file kernel/time/ntp.c
Patch platform/0114-ntp-Patch-to-fix-false-positives-on-32bit-systems.patch does not apply (enforce with -f)
make[4]: *** [/home/dinhchuc/openwrt/trunk/build_dir/target-arm_cortex-a7+vfp_uClibc-0.9.33.2_eabi/linux-brcm2708_bcm2709/linux-3.18.9/.quilt_checked] Error 1
make[4]: Leaving directory `/home/dinhchuc/openwrt/trunk/target/linux/brcm2708'
make[3]: *** [compile] Error 2
make[3]: Leaving directory `/home/dinhchuc/openwrt/trunk/target/linux'
make[2]: *** [target/linux/compile] Error 2
make[2]: Leaving directory `/home/dinhchuc/openwrt/trunk'
make[1]: *** [/home/dinhchuc/openwrt/trunk/staging_dir/target-arm_cortex-a7+vfp_uClibc-0.9.33.2_eabi/stamp/.target_compile] Error 2
make[1]: Leaving directory `/home/dinhchuc/openwrt/trunk'
make: *** [world] Error 2

I also got same error information when complie code on Ubuntu12.04.5

I have been trying to sort this out myself having recently gotten an RPi2. Trying to do a full repo build (If I can successfully get it all built I can try throwing up a tarball somewhere as a single snapshot until the OpenWRT heads can get around to adding it to the buildbot) and over time I have ran into a couple errors. Most get sorted by a new git revision shortly thereafter, others are small file edits found after some google searching. This recent one has me stumped though and been stuck on it for a few days with no resolution:

build@openwrt-buildbot:~/openwrt$ make package/ustream-ssl/compile V=s
Checking 'rsync'... ok.
Checking 'xgettext'... ok.
make[1]: Entering directory `/home/build/openwrt'
make[2]: Entering directory `/home/build/openwrt/package/libs/toolchain'
if [ -f /home/build/openwrt/staging_dir/target-arm_cortex-a7+vfp_uClibc-0.9.33.2_eabi/pkginfo/toolchain.default.install.clean ]; then rm -f /home/build/openwrt/staging_dir/target-arm_cortex-a7+vfp_uClibc-0.9.33.2_eabi/pkginfo/toolchain.default.install /home/build/openwrt/staging_dir/target-arm_cortex-a7+vfp_uClibc-0.9.33.2_eabi/pkginfo/toolchain.default.install.clean; fi; echo "libc" >> /home/build/openwrt/staging_dir/target-arm_cortex-a7+vfp_uClibc-0.9.33.2_eabi/pkginfo/toolchain.default.install
if [ -f /home/build/openwrt/staging_dir/target-arm_cortex-a7+vfp_uClibc-0.9.33.2_eabi/pkginfo/toolchain.default.install.clean ]; then rm -f /home/build/openwrt/staging_dir/target-arm_cortex-a7+vfp_uClibc-0.9.33.2_eabi/pkginfo/toolchain.default.install /home/build/openwrt/staging_dir/target-arm_cortex-a7+vfp_uClibc-0.9.33.2_eabi/pkginfo/toolchain.default.install.clean; fi; echo "libgcc" >> /home/build/openwrt/staging_dir/target-arm_cortex-a7+vfp_uClibc-0.9.33.2_eabi/pkginfo/toolchain.default.install
make[2]: Leaving directory `/home/build/openwrt/package/libs/toolchain'
make[2]: Entering directory `/home/build/openwrt/package/libs/libjson-c'
if [ -f /home/build/openwrt/staging_dir/target-arm_cortex-a7+vfp_uClibc-0.9.33.2_eabi/pkginfo/libjson-c.default.install.clean ]; then rm -f /home/build/openwrt/staging_dir/target-arm_cortex-a7+vfp_uClibc-0.9.33.2_eabi/pkginfo/libjson-c.default.install /home/build/openwrt/staging_dir/target-arm_cortex-a7+vfp_uClibc-0.9.33.2_eabi/pkginfo/libjson-c.default.install.clean; fi; echo "libjson-c" >> /home/build/openwrt/staging_dir/target-arm_cortex-a7+vfp_uClibc-0.9.33.2_eabi/pkginfo/libjson-c.default.install
make[2]: Leaving directory `/home/build/openwrt/package/libs/libjson-c'
make[2]: Entering directory `/home/build/openwrt/package/utils/lua'
make[2]: Leaving directory `/home/build/openwrt/package/utils/lua'
make[2]: Entering directory `/home/build/openwrt/package/libs/libubox'
if [ -f /home/build/openwrt/staging_dir/target-arm_cortex-a7+vfp_uClibc-0.9.33.2_eabi/pkginfo/libubox.default.install.clean ]; then rm -f /home/build/openwrt/staging_dir/target-arm_cortex-a7+vfp_uClibc-0.9.33.2_eabi/pkginfo/libubox.default.install /home/build/openwrt/staging_dir/target-arm_cortex-a7+vfp_uClibc-0.9.33.2_eabi/pkginfo/libubox.default.install.clean; fi; echo "libubox" >> /home/build/openwrt/staging_dir/target-arm_cortex-a7+vfp_uClibc-0.9.33.2_eabi/pkginfo/libubox.default.install
if [ -f /home/build/openwrt/staging_dir/target-arm_cortex-a7+vfp_uClibc-0.9.33.2_eabi/pkginfo/libubox.default.install.clean ]; then rm -f /home/build/openwrt/staging_dir/target-arm_cortex-a7+vfp_uClibc-0.9.33.2_eabi/pkginfo/libubox.default.install /home/build/openwrt/staging_dir/target-arm_cortex-a7+vfp_uClibc-0.9.33.2_eabi/pkginfo/libubox.default.install.clean; fi; echo "libblobmsg-json" >> /home/build/openwrt/staging_dir/target-arm_cortex-a7+vfp_uClibc-0.9.33.2_eabi/pkginfo/libubox.default.install
if [ -f /home/build/openwrt/staging_dir/target-arm_cortex-a7+vfp_uClibc-0.9.33.2_eabi/pkginfo/libubox.default.install.clean ]; then rm -f /home/build/openwrt/staging_dir/target-arm_cortex-a7+vfp_uClibc-0.9.33.2_eabi/pkginfo/libubox.default.install /home/build/openwrt/staging_dir/target-arm_cortex-a7+vfp_uClibc-0.9.33.2_eabi/pkginfo/libubox.default.install.clean; fi; echo "jshn" >> /home/build/openwrt/staging_dir/target-arm_cortex-a7+vfp_uClibc-0.9.33.2_eabi/pkginfo/libubox.default.install
if [ -f /home/build/openwrt/staging_dir/target-arm_cortex-a7+vfp_uClibc-0.9.33.2_eabi/pkginfo/libubox.default.install.clean ]; then rm -f /home/build/openwrt/staging_dir/target-arm_cortex-a7+vfp_uClibc-0.9.33.2_eabi/pkginfo/libubox.default.install /home/build/openwrt/staging_dir/target-arm_cortex-a7+vfp_uClibc-0.9.33.2_eabi/pkginfo/libubox.default.install.clean; fi; echo "libjson-script" >> /home/build/openwrt/staging_dir/target-arm_cortex-a7+vfp_uClibc-0.9.33.2_eabi/pkginfo/libubox.default.install
make[2]: Leaving directory `/home/build/openwrt/package/libs/libubox'
make[2]: Entering directory `/home/build/openwrt/package/libs/polarssl'
make[2]: Leaving directory `/home/build/openwrt/package/libs/polarssl'
make[2]: Entering directory `/home/build/openwrt/package/libs/gettext'
make[2]: Leaving directory `/home/build/openwrt/package/libs/gettext'
make[2]: Entering directory `/home/build/openwrt/package/libs/libiconv'
make[2]: Leaving directory `/home/build/openwrt/package/libs/libiconv'
make[2]: Entering directory `/home/build/openwrt/package/libs/libtool'
make[2]: Leaving directory `/home/build/openwrt/package/libs/libtool'
make[2]: Entering directory `/home/build/openwrt/package/libs/cyassl'
make[2]: Leaving directory `/home/build/openwrt/package/libs/cyassl'
make[2]: Entering directory `/home/build/openwrt/package/libs/ocf-crypto-headers'
make[2]: Leaving directory `/home/build/openwrt/package/libs/ocf-crypto-headers'
make[2]: Entering directory `/home/build/openwrt/package/libs/zlib'
make[2]: Leaving directory `/home/build/openwrt/package/libs/zlib'
make[2]: Entering directory `/home/build/openwrt/package/libs/openssl'
make[2]: Leaving directory `/home/build/openwrt/package/libs/openssl'
make[2]: Entering directory `/home/build/openwrt/package/libs/ustream-ssl'
CFLAGS="-Os -pipe -march=armv7-a -mtune=cortex-a7 -mfpu=vfp -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -mfloat-abi=soft -I/home/build/openwrt/staging_dir/target-arm_cortex-a7+vfp_uClibc-0.9.33.2_eabi/usr/include/cyassl  -I/home/build/openwrt/staging_dir/target-arm_cortex-a7+vfp_uClibc-0.9.33.2_eabi/usr/include -I/home/build/openwrt/staging_dir/target-arm_cortex-a7+vfp_uClibc-0.9.33.2_eabi/include -I/home/build/openwrt/staging_dir/toolchain-arm_cortex-a7+vfp_gcc-4.8-linaro_uClibc-0.9.33.2_eabi/usr/include -I/home/build/openwrt/staging_dir/toolchain-arm_cortex-a7+vfp_gcc-4.8-linaro_uClibc-0.9.33.2_eabi/include " CXXFLAGS="-Os -pipe -march=armv7-a -mtune=cortex-a7 -mfpu=vfp -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -mfloat-abi=soft -I/home/build/openwrt/staging_dir/target-arm_cortex-a7+vfp_uClibc-0.9.33.2_eabi/usr/include/cyassl  -I/home/build/openwrt/staging_dir/target-arm_cortex-a7+vfp_uClibc-0.9.33.2_eabi/usr/include -I/home/build/openwrt/staging_dir/target-arm_cortex-a7+vfp_uClibc-0.9.33.2_eabi/include -I/home/build/openwrt/staging_dir/toolchain-arm_cortex-a7+vfp_gcc-4.8-linaro_uClibc-0.9.33.2_eabi/usr/include -I/home/build/openwrt/staging_dir/toolchain-arm_cortex-a7+vfp_gcc-4.8-linaro_uClibc-0.9.33.2_eabi/include " LDFLAGS="-L/home/build/openwrt/staging_dir/target-arm_cortex-a7+vfp_uClibc-0.9.33.2_eabi/usr/lib -L/home/build/openwrt/staging_dir/target-arm_cortex-a7+vfp_uClibc-0.9.33.2_eabi/lib -L/home/build/openwrt/staging_dir/toolchain-arm_cortex-a7+vfp_gcc-4.8-linaro_uClibc-0.9.33.2_eabi/usr/lib -L/home/build/openwrt/staging_dir/toolchain-arm_cortex-a7+vfp_gcc-4.8-linaro_uClibc-0.9.33.2_eabi/lib " make -j1 -C /home/build/openwrt/build_dir/target-arm_cortex-a7+vfp_uClibc-0.9.33.2_eabi/ustream-ssl-cyassl/ustream-ssl-2014-03-30/. AR="arm-openwrt-linux-uclibcgnueabi-gcc-ar" AS="arm-openwrt-linux-uclibcgnueabi-gcc -c -Os -pipe -march=armv7-a -mtune=cortex-a7 -mfpu=vfp -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -mfloat-abi=soft -I/home/build/openwrt/staging_dir/target-arm_cortex-a7+vfp_uClibc-0.9.33.2_eabi/usr/include/cyassl" LD=arm-openwrt-linux-uclibcgnueabi-ld NM="arm-openwrt-linux-uclibcgnueabi-gcc-nm" CC="arm-openwrt-linux-uclibcgnueabi-gcc" GCC="arm-openwrt-linux-uclibcgnueabi-gcc" CXX="arm-openwrt-linux-uclibcgnueabi-g++" RANLIB="arm-openwrt-linux-uclibcgnueabi-gcc-ranlib" STRIP=arm-openwrt-linux-uclibcgnueabi-strip OBJCOPY=arm-openwrt-linux-uclibcgnueabi-objcopy OBJDUMP=arm-openwrt-linux-uclibcgnueabi-objdump SIZE=arm-openwrt-linux-uclibcgnueabi-size CROSS="arm-openwrt-linux-uclibcgnueabi-" ARCH="arm" ;
make[3]: Entering directory `/home/build/openwrt/build_dir/target-arm_cortex-a7+vfp_uClibc-0.9.33.2_eabi/ustream-ssl-cyassl/ustream-ssl-2014-03-30'
make[4]: Entering directory `/home/build/openwrt/build_dir/target-arm_cortex-a7+vfp_uClibc-0.9.33.2_eabi/ustream-ssl-cyassl/ustream-ssl-2014-03-30'
make[5]: Entering directory `/home/build/openwrt/build_dir/target-arm_cortex-a7+vfp_uClibc-0.9.33.2_eabi/ustream-ssl-cyassl/ustream-ssl-2014-03-30'
make[5]: Leaving directory `/home/build/openwrt/build_dir/target-arm_cortex-a7+vfp_uClibc-0.9.33.2_eabi/ustream-ssl-cyassl/ustream-ssl-2014-03-30'
make[5]: Entering directory `/home/build/openwrt/build_dir/target-arm_cortex-a7+vfp_uClibc-0.9.33.2_eabi/ustream-ssl-cyassl/ustream-ssl-2014-03-30'
[ 20%] Building C object CMakeFiles/ustream-ssl.dir/ustream-ssl.c.o
In file included from /home/build/openwrt/build_dir/target-arm_cortex-a7+vfp_uClibc-0.9.33.2_eabi/ustream-ssl-cyassl/ustream-ssl-2014-03-30/ustream-internal.h:27:0,
                 from /home/build/openwrt/build_dir/target-arm_cortex-a7+vfp_uClibc-0.9.33.2_eabi/ustream-ssl-cyassl/ustream-ssl-2014-03-30/ustream-ssl.c:25:
/home/build/openwrt/build_dir/target-arm_cortex-a7+vfp_uClibc-0.9.33.2_eabi/ustream-ssl-cyassl/ustream-ssl-2014-03-30/ustream-openssl.h: In function '__ustream_ssl_set_server_name':
/home/build/openwrt/build_dir/target-arm_cortex-a7+vfp_uClibc-0.9.33.2_eabi/ustream-ssl-cyassl/ustream-ssl-2014-03-30/ustream-openssl.h:44:2: error: implicit declaration of function 'SSL_set_tlsext_host_name' [-Werror=implicit-function-declaration]
  SSL_set_tlsext_host_name(us->ssl, us->server_name);
  ^
cc1: all warnings being treated as errors
make[5]: *** [CMakeFiles/ustream-ssl.dir/ustream-ssl.c.o] Error 1
make[5]: Leaving directory `/home/build/openwrt/build_dir/target-arm_cortex-a7+vfp_uClibc-0.9.33.2_eabi/ustream-ssl-cyassl/ustream-ssl-2014-03-30'
make[4]: *** [CMakeFiles/ustream-ssl.dir/all] Error 2
make[4]: Leaving directory `/home/build/openwrt/build_dir/target-arm_cortex-a7+vfp_uClibc-0.9.33.2_eabi/ustream-ssl-cyassl/ustream-ssl-2014-03-30'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/build/openwrt/build_dir/target-arm_cortex-a7+vfp_uClibc-0.9.33.2_eabi/ustream-ssl-cyassl/ustream-ssl-2014-03-30'
make[2]: *** [/home/build/openwrt/build_dir/target-arm_cortex-a7+vfp_uClibc-0.9.33.2_eabi/ustream-ssl-cyassl/ustream-ssl-2014-03-30/.built] Error 2
make[2]: Leaving directory `/home/build/openwrt/package/libs/ustream-ssl'
make[1]: *** [package/libs/ustream-ssl/compile] Error 2
make[1]: Leaving directory `/home/build/openwrt'
make: *** [package/ustream-ssl/compile] Error 2
build@openwrt-buildbot:~/openwrt$

Got a completed 'full repo' build up here for you guys. Every package and option. Only thing I left out was Telephony options because a number of those packages was giving me headaches. I may continue trying to give those a shot if enough people need them but I don't personally so...

https://mega.co.nz/#!noAiFQ5Z!nQklvwDOa … SU_ZhO_jnY

Hi Vchat20,

I'm just getting started with OpenWRT, looking to use a Pi2 to be a Wireless access point at a local theatre. I want to plug it into the LAN with a Wifi dongle and have patrons connect to it's Wifi dongle (maybe a "TheatreGuest" SSID) and get filtered, throttled, free web access.

I fell at the first hurdle which was to get the .img onto my Pi2. You look to have solved that because it has now booted and is sat there on 192.168.1.1 waiting for me.... Thank You!

Accessing it through the web on that IP doesn't seem to work though. All I have done is use Win32 Disk Image to flash:

openwrt-brcm2708-bcm2709-sdcard-vfat-ext4.img

Onto the SD card and put it in the Pi2. Do I need to copy over folder contents from elsewhere in the RAR too?

Apologies and thank you again!

Mike

The img is basically bare bones and everything else is packaged up ready to install as each person needs. In your case for the web UI you just need to install Luci which is a simple 'opkg install luci' once you get it pointed to a working repo which, again, is not available yet from OpenWRT proper. Either need to host the packages somewhere, add them onto the SD card and set up opkg to use local files (http://wiki.openwrt.org/doc/techref/opk … positories), or use a separate usb disk and set up a local repo there as well.

In my case what I did is use my building VM, resized the root partition (which is a good idea in general and, again, I left it default for people to tweak as they need) using this tutorial: http://elinux.org/RPi_Resize_Flash_Part … _on_Linux, mounted and copied the packages over and set up opkg appropriately to pull locally. A lot of this stuff is really difficult if not impossible to do straight from Windows and I highly recommend using a VM. VMWare Player and a netinst iso of Debian with a barebones install is my personal preference. About as lightweight as you can get.

My Netbook is Ubuntu so can fire that up and have a go. Sure I can crack it!

Thanks again :-)

Hello Vchat20, I updated the network config to enable dhcp and remove static ip address (I could ping google.com after this). Later I tried updating packages and installing 'Luci' but both failed. The link referenced during update is unavailable when I physically tried to connect to it via a web browser. The only link where it takes me to is  https://downloads.openwrt.org/snapshots/trunk/brcm2708/ which has the option of only 'generic'. However the referenced link during upgrade says https://downloads.openwrt.org/snapshots … ackages.gz

https://downloads.openwrt.org/snapshots … ackages.gz

https://downloads.openwrt.org/snapshots … ackages.gz

https://downloads.openwrt.org/snapshots … ackages.gz

https://downloads.openwrt.org/snapshots … ackages.gz

https://downloads.openwrt.org/snapshots … ackages.gz

hoatienii wrote:

I compile for Pi2 but get error, i use gcc 4.8

Hi hoatienii,

Which toolchain did you use exactly? Did you build it on your own or did you install it from pre-built package?

Thanks

How do I get WiFi to work?

The discussion might have continued from here.