Go to advanced search

by robiwan
Tue Oct 30, 2018 2:23 pm
Forum: C/C++
Topic: Problems cross-compiling for Zero with gcc
Replies: 5
Views: 3061

Re: Problems cross-compiling for Zero with gcc

I went back and setup a crosstool-ng project with: [l.X] arm-unknown-linux-gnueabihf OS : linux-4.9.128 Companion libs : gmp-6.1.2 mpfr-4.0.1 mpc-1.1.0 isl-0.20 cloog-0.18.4 expat-2.2.6 ncurses-6.1 libiconv-1.15 gettext-0.19.8.1 Binutils : binutils-2.31.1 Compiler : gcc-6.4.0 Languages : C,C++ C lib...
by robiwan
Mon Oct 29, 2018 3:32 pm
Forum: C/C++
Topic: Problems cross-compiling for Zero with gcc
Replies: 5
Views: 3061

Re: Problems cross-compiling for Zero with gcc

Ok, starting with the armv6-rpi-linux-gnueabi sample, small changes I got it to work. However, I didn't get the opportunity to setup the exact version of glibc and gcc in crosstool-ng to 2.24 and 6.3.0 (which is that of debian stretch) with menuconfig...
by robiwan
Mon Oct 29, 2018 7:06 am
Forum: C/C++
Topic: Problems cross-compiling for Zero with gcc
Replies: 5
Views: 3061

Re: Problems cross-compiling for Zero with gcc

Mind you, I do use the toolchain from here: http://thebugfreeblog.blogspot.com/2017/11/raspbian-stretch-and-cross-toolchain.html as there is no official toolchain release more recent than 4.9.3, and it does state that it is built for armv7-a. I'm trying crosstool-ng now to setup my own armv6 toolcha...
by robiwan
Sun Oct 28, 2018 3:56 pm
Forum: C/C++
Topic: Problems cross-compiling for Zero with gcc
Replies: 5
Views: 3061

Problems cross-compiling for Zero with gcc

Hi, I'm trying to use gcc 6.3.0 to cross-compile to the Pi Zero, however even a simple hello-world binary is not executable (SIGSEGV even before main is executed). Using gcc 6.3.0 to compile ON the Pi Zero works fine. I'm cross-compiling with -marm -march=armv6 -mfpu=vfp -mfloat-abi=hard, and I can ...
by robiwan
Fri Sep 28, 2018 4:21 pm
Forum: General discussion
Topic: RPi 3 totally dead
Replies: 1
Views: 237

RPi 3 totally dead

Hi, I just want to put this here too see if it is a common problem: I have a RPi3 (not B+), which I worked with a couple of months ago, now I wanted to get back to working on it again, but there is... nothing. No LED lits up (yes, the adapter works fine). It is just... well.. dead :cry: Regards /Rob...
by robiwan
Tue Feb 13, 2018 3:56 am
Forum: Linux Kernel
Topic: Problems getting at workable updated kernel (RPi Zero) [solved]
Replies: 1
Views: 5974

Re: Problems getting at workable updated kernel (RPi Zero)

Turns out the kernel built was for ARMv7 not v6, so when explicitly giving KERNEL=kernel on the command line when building:

Code: Select all

KERNEL=kernel ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make -j5 zImage modules dtbs
everything came together :)
by robiwan
Mon Feb 12, 2018 2:41 pm
Forum: Device Tree
Topic: [Custom Kernel] after compilation dtb modules are missing
Replies: 20
Views: 9421

Re: [Custom Kernel] after compilation dtb modules are missing

I have the same exact problem, running: make dtbs only yields: CHK include/config/kernel.release CHK include/generated/uapi/linux/version.h CHK scripts/mod/devicetable-offsets.h CHK include/generated/utsrelease.h CHK include/generated/bounds.h CHK include/generated/timeconst.h CHK include/generated/...
by robiwan
Mon Feb 12, 2018 2:32 pm
Forum: Linux Kernel
Topic: Problems getting at workable updated kernel (RPi Zero) [solved]
Replies: 1
Views: 5974

Problems getting at workable updated kernel (RPi Zero) [solved]

I have a couple of patches I need to test on the RPiZ, so I checked out the latest firmware (which had 4.14.18), took the /proc/config.gz from that working confgurationi and then I cross-built a new kernel (4.14.15) following the instructions here . But I can't even get the new kernel to boot. I'm a...
by robiwan
Tue Feb 06, 2018 8:37 am
Forum: Raspbian
Topic: Install newly built module (Exec format error) on Zero
Replies: 5
Views: 1977

Re: Install newly built module (Exec format error) on Zero

Ok, now I get "modprobe: ERROR: could not insert 'usb_f_uac2': Invalid argument" instead, modinfo shows: filename: /lib/modules/4.9.68-rt60/kernel/drivers/usb/gadget/function/usb_f_uac2.ko author: Jaswinder Singh author: Yadwinder Singh license: GPL alias: usbfunc:uac2 srcversion: A6A97728F9F78CDC65...
by robiwan
Tue Feb 06, 2018 4:57 am
Forum: Raspbian
Topic: Install newly built module (Exec format error) on Zero
Replies: 5
Views: 1977

Re: Install newly built module (Exec format error) on Zero

Ok, I checked out 3781db07c79e7e4c5273c902f9c4718795866a1c (Linux 4.9.68) and patched it with https://cdn.kernel.org/pub/linux/kernel/projects/rt/4.9/older/patch-4.9.68-rt60.patch.gz config'd the kernel to build usb_f_uac2.ko, but still I get "Exec format error" trying to modprobe the module :( modi...
by robiwan
Mon Feb 05, 2018 9:01 pm
Forum: Raspbian
Topic: Install newly built module (Exec format error) on Zero
Replies: 5
Views: 1977

Re: Install newly built module (Exec format error) on Zero

filename: /lib/modules/4.9.68-rt60/kernel/drivers/usb/gadget/function/usb_f_uac2.ko author: Jaswinder Singh author: Yadwinder Singh license: GPL alias: usbfunc:uac2 srcversion: A6A97728F9F78CDC65694F9 depends: libcomposite,udc-core,snd-pcm,snd intree: Y vermagic: 4.9.79+ mod_unload modversions ARMv6...
by robiwan
Mon Feb 05, 2018 5:43 pm
Forum: Raspbian
Topic: Install newly built module (Exec format error) on Zero
Replies: 5
Views: 1977

Re: Install newly built module (Exec format error) on Zero

Btw. How would I go about checking out the exact kernel version 4.9.68 ? I haven't found any tags related to a patch number.
by robiwan
Mon Feb 05, 2018 4:07 pm
Forum: Raspbian
Topic: Install newly built module (Exec format error) on Zero
Replies: 5
Views: 1977

Install newly built module (Exec format error) on Zero

OS: Raspbian Stretch Lite with RT patches (https://github.com/guysoft/RealtimePi) I'm trying to use my own built usb_f_uac2 module, I have cross-built acc. to instructions https://www.raspberrypi.org/documentation/linux/kernel/building.md , but I get the following trying to modprobe the module: modp...

Go to advanced search