Build environment with openembedded-core, meta-openembedded en bitbake pushed to master HEAD of today.
Problems with Samba, Enigma2-openplugins, faac, iperf, giflib etc solved.
But the last problem is the hardest one.
Kernel modules fails to split for dreambox since bitbake is switched to python 3 and utf-8 is the default and it is not allowed to mix it with other codecs.
Tested some other boxes like et1000.vudou2, ultimo, these build fine.
Error:
File: '/usr/lib/python3.5/codecs.py', lineno: 321, function: decode 0317: 0318: def decode(self, input, final=False): 0319: # decode input (taking the buffer into account) 0320: data = self.buffer + input *** 0321: (result, consumed) = self._buffer_decode(data, self.errors, final) 0322: # keep undecoded input until the next call 0323: self.buffer = data[consumed:] 0324: return result 0325: Exception: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf6 in position 21: invalid start byte ERROR: linux-dreambox-3.2-r14.19.52 do_package: Function failed: split_kernel_module_packages ERROR: Logfile of failure stored in: /home/hains/github/openpli-oe-core/build/tmp/work/dm8000-oe-linux/linux-dreambox/3.2-r14.19.52/temp/log.do_package.2781 ERROR: Task /home/hains/github/openpli-oe-core/meta-dream/recipes-bsp/linux/linux-dreambox_3.2.bb:do_package (/home/hains/github/openpli-oe-core/meta-dream/recipes-bsp/linux/linux-dreambox_3.2.bb:do_package) failed with exit code '1'
As workaround i apply a patch to openpli-oe-core/openembedded-core/meta-/classes/kernel-module-split.bbclass line 53
cmd = "%sobjcopy -j .modinfo -O binary %s %s" % (d.getVar("HOST_PREFIX", True) or "", file, tmpfile) subprocess.call(cmd, shell=True) - f = open(tmpfile) + f = open(tmpfile, encoding="ISO-8859-1") l = f.read().split("\000") f.close() os.close(tf[0]) os.unlink(tmpfile)
Then image for DM8000 build fine and image is bootable and working as before. So far so good, but it isn't of course the real solution.
This patch doesn't break the build for the et10000 BTW.
I know this can be very complicated, but the workaround is quit simple. So perhaps the real solution also.
I tried a lot of things like adding utf-8 to the defconfigs file. But there are so many thus perhaps i missed the one...
Anyone an idea, hint,what's wrong ?