Compiling for Rpi 3B+

Resolved-- The issue below is with 4.9 kernel reqires changing to newer 4.19 kernel. --

I feel like I am missing something obvious, looking at the instructions you can select a target(profile) but there does not seem to be reference to what architecture you want to use, in the profile you select. I would like to compile for 32bit on the rpi 3b+ as there is an issue with the 64bit(see https://bugs.openwrt.org/index.php?do=details&task_id=1879 & https://github.com/Ysurac/openmptcprouter/issues/142).
The openmptcprouter conversation show this gets resolved using a 32bit version.
I do have the same setup running on a rpi 1b+ with no issues.
Many Thanks

Those links are nearly a year old. Can you confirm that the supposed 64-bit issue STILL exists?

Those bugs are against kernel 4.9 which is ancient. Master is on 4.19 now for most targets

Fixing the bug in 64-bit kernels (if it hasn't already been fixed) is a better approach than "eh screw it i'll just keep building 32"

Sure I’ll get copies of the logs.
It was marked on the other that they still needed to be patched so I thought it was WIP.

In this instance I had two USB 3G/GSM sticks attached with no issues for about a day, when plugging in the ethernet cable to the RPi 3B+ the following error occured and the ethernet did not inialise with its stactic IP/was non reachable.

ERROR::assign_and_init_hc:1397: assign_and_init_hc: Failed to allocatedmemory to handle non-dword aligned buffer case
smsc95xx 1-1.1:1.0 eth0: failed to read reg index 0x00000118: -32

I plan to retest with ethernet and only one usb stick + provide the list of packages installed.

Pakages installed

base-files	194.2-r7808-ef686b7292	
brcm2708-gpu-fw	2018-11-29-b428bdd819..3e4	
brcmfmac-firmware-43430-sdio	2017-09-06-a61ac5cf-1	
brcmfmac-firmware-usb	2017-09-06-a61ac5cf-1	
busybox	1.28.4-3	
conntrack	2017-09-27-eefe649c-1	
dnsmasq	2.80-1.4	
dropbear	2017.75-7.1	
e2fsprogs	1.44.1-1	
firewall	2018-08-13-1c4d5bcd-1	
fstools	2019-03-28-ff1ded63-5	
fwtool	1	
hostapd-common	2018-05-21-62566bc2-6	
ip-tiny	4.16.0-8	
ip6tables	1.6.2-1	
ipset	6.38-1	
iptables	1.6.2-1	
iptables-mod-conntrack-extra	1.6.2-1	
iptables-mod-ipopt	1.6.2-1	
iw	4.14-1	
iwinfo	2018-07-31-65b8333f-1	
jshn	2018-07-25-c83a84af-2	
jsonfilter	2018-02-04-c7e938d6-1	
kernel	4.9.184-1-b1251da7f4b..85c	
kmod-brcmfmac	4.9.184+2017-11-01-10	
kmod-brcmutil	4.9.184+2017-11-01-10	
kmod-cfg80211	4.9.184+2017-11-01-10	
kmod-fs-vfat	4.9.184-1	
kmod-hid	4.9.184-1	
kmod-hid-generic	4.9.184-1	
kmod-input-core	4.9.184-1	
kmod-input-evdev	4.9.184-1	
kmod-ip6tables	4.9.184-1	
kmod-ipt-conntrack	4.9.184-1	
kmod-ipt-conntrack-extra	4.9.184-1	
kmod-ipt-core	4.9.184-1	
kmod-ipt-ipopt	4.9.184-1	
kmod-ipt-ipset	4.9.184-1	
kmod-ipt-nat	4.9.184-1	
kmod-lib-crc-ccitt	4.9.184-1	
kmod-mii	4.9.184-1	
kmod-mmc	4.9.184-1	
kmod-nf-conntrack	4.9.184-1	
kmod-nf-conntrack-netlink	4.9.184-1	
kmod-nf-conntrack6	4.9.184-1	
kmod-nf-ipt	4.9.184-1	
kmod-nf-ipt6	4.9.184-1	
kmod-nf-nat	4.9.184-1	
kmod-nf-reject	4.9.184-1	
kmod-nf-reject6	4.9.184-1	
kmod-nfnetlink	4.9.184-1	
kmod-nls-base	4.9.184-1	
kmod-nls-cp437	4.9.184-1	
kmod-nls-iso8859-1	4.9.184-1	
kmod-nls-utf8	4.9.184-1	
kmod-ppp	4.9.184-1	
kmod-pppoe	4.9.184-1	
kmod-pppox	4.9.184-1	
kmod-slhc	4.9.184-1	
kmod-sound-arm-bcm2835	4.9.184-1	
kmod-sound-core	4.9.184-1	
kmod-usb-core	4.9.184-1	
kmod-usb-ehci	4.9.184-1	
kmod-usb-hid	4.9.184-1	
kmod-usb-net	4.9.184-1	
kmod-usb-net-cdc-ether	4.9.184-1	
kmod-usb-net-cdc-ncm	4.9.184-1	
kmod-usb-net-huawei-cdc-ncm	4.9.184-1	
kmod-usb-net-rndis	4.9.184-1	
kmod-usb-serial	4.9.184-1	
kmod-usb-serial-option	4.9.184-1	
kmod-usb-serial-wwan	4.9.184-1	
kmod-usb-wdm	4.9.184-1	
kmod-usb2	4.9.184-1	
libblkid	2.32-2	
libblobmsg-json	2018-07-25-c83a84af-2	
libc	1.1.19-1	
libcomerr	1.44.1-1	
libext2fs	1.44.1-1	
libf2fs	1.10.0-1	
libgcc	7.3.0-1	
libgd	2.2.5-1	
libip4tc	1.6.2-1	
libip6tc	1.6.2-1	
libipset	6.38-1	
libiwinfo	2018-07-31-65b8333f-1	
libiwinfo-lua	2018-07-31-65b8333f-1	
libjpeg	9a-1	
libjson-c	0.12.1-2	
libjson-script	2018-07-25-c83a84af-2	
liblua	5.1.5-1	
liblucihttp	2019-06-05-91c01c3c-1	
liblucihttp-lua	2019-06-05-91c01c3c-1	
libmnl	1.0.4-1	
libnetfilter-conntrack	2017-07-25-e8704326-1	
libnetfilter-cthelper	1.0.0-1	
libnetfilter-cttimeout	1.0.0-1	
libnetfilter-queue	2017-06-27-601abd1c-1	
libnfnetlink	1.0.1-1	
libnl-tiny	0.1-5	
libopenssl	1.0.2s-1	
libpng	1.6.34-1	
libpthread	1.1.19-1	
librt	1.1.19-1	
libsmartcols	2.32-2	
libss	1.44.1-1	
libubox	2018-07-25-c83a84af-2	
libubus	2018-10-06-221ce7e7-1	
libubus-lua	2018-10-06-221ce7e7-1	
libuci	2019-05-17-f199b961-1	
libuci-lua	2019-05-17-f199b961-1	
libuclient	2018-11-24-3ba74ebc-1	
libusb-1.0	1.0.22-1	
libuuid	2.32-2	
libxtables	1.6.2-1	
logd	2018-02-14-128bc35f-2	
lua	5.1.5-1	
luci	git-19.170.32094-4d6d8bc-1	
luci-app-firewall	git-19.170.32094-4d6d8bc-1	
luci-app-mwan3	git-19.190.55614-35357e4-1	
luci-app-vnstat	git-19.190.55614-35357e4-1	
luci-base	git-19.170.32094-4d6d8bc-1	
luci-lib-ip	git-19.170.32094-4d6d8bc-1	
luci-lib-jsonc	git-19.170.32094-4d6d8bc-1	
luci-lib-nixio	git-19.170.32094-4d6d8bc-1	
luci-mod-admin-full	git-19.170.32094-4d6d8bc-1	
luci-proto-ipv6	git-19.170.32094-4d6d8bc-1	
luci-proto-ppp	git-19.170.32094-4d6d8bc-1	
luci-theme-bootstrap	git-19.170.32094-4d6d8bc-1	
mailsend	1.17b15-2	
mkf2fs	1.10.0-1	
mtd	23	
mwan3	2.6.18-1	
netifd	2019-01-31-a2aba5c7-2.1	
odhcp6c	2018-07-14-67ae6a71-15	
odhcpd-ipv6only	1.15-3	
openwrt-keyring	2018-05-18-103a32e9-1	
opkg	2019-01-18-7708a01a-1	
partx-utils	2.32-2	
ppp	2.4.7-12	
ppp-mod-pppoe	2.4.7-12	
procd	2018-03-28-dfb68f85-1	
rpcd	2018-11-28-3aa81d0d-2	
rpcd-mod-rrdns	20170710	
sudo	1.8.21p2-1	
ubox	2018-02-14-128bc35f-2	
ubus	2018-10-06-221ce7e7-1	
ubusd	2018-10-06-221ce7e7-1	
uci	2019-05-17-f199b961-1	
uclient-fetch	2018-11-24-3ba74ebc-1	
uhttpd	2018-11-28-cdfc902a-3	
usb-modeswitch	2017-12-19-f40f84c2-1	
usbutils	007-9	
usign	2015-07-04-ef641914-1	
vnstat	1.18-1	
vnstati	1.18-1	
wireless-regdb	2017-10-20-4343d359	
wpad-mini	2018-05-21-62566bc2-6	
zlib	1.2.11-2

@Entropy512 The RPi image is still a 4.9 kernel.

[    0.000000] Linux version 4.9.184 (buildbot@dbab1e23488d) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r7808-ef686b7292) ) #0 SMP Thu Jun 27 12:18:52 2019

This is the downloadable image from the openwrt.org site.
OpenWrt 18.06.4 r7808-ef686b7292 / LuCI openwrt-18.06 branch (git-19.170.32094-4d6d8bc)
https://downloads.openwrt.org/releases/18.06.4/targets/brcm2708/bcm2710/openwrt-18.06.4-brcm2708-bcm2710-rpi-3-ext4-factory.img.gz

Then why is the topic of this thread "compiling" for the RPi 3B+, when your concerns are related to images built from source that is more than a year old?

1 Like

The date on https://downloads.openwrt.org/releases/18.06.4/targets/brcm2708/bcm2710/ is the 1st July 2019 to which I thought they where latest builds.
Being noob to compling my own images I know nothing and was reading the build directions from openwrt.org and could not see any directions on defining 32or64bit compling.

Thank you for the above I will try to work the above.

18.04.x releases branched more than a year ago and newer builds from that branch only contain critical security fixes compared to older builds.

Right, I take it the 19.xx is being worked on(In Development) and the repositorys of prebuilt images will get updated at later a date? As the mid 2019 update is only security patches not incoperating and stable upgrades as they will be released as part of 19.xx build?

If it's labeled 18.04.x, it's only security patches.

If it's git master, it's the latest and greatest.

IIRC 19.x branched recently but I'm not sure exactly where that is. Critical functionality I need happens to not be fully merged yet and thus I don't think it'll be part of the 19.x release, so I live on git master.

Right many thanks for explaining this to me.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.