[uClinux-dev] qemu/m68k

2014-08-14 Thread Waldemar Brodkorb
Hi uClinux hackers, I am trying to build a Linux System for Qemu/m68k to do runtime testing of a uClibc spin-off called uClibc-ng. (http://www.uclibc-ng.org) I am really a newbie regarding MMU-less Linux systems, so don't be to critical ;) My toolchain (gcc 4.8.3, binutils 2.24) seems to work,

Re: [uClinux-dev] qemu/m68k

2014-08-15 Thread Waldemar Brodkorb
Hi Greg, Greg Ungerer wrote, Hi Waldemar, On 15/08/14 00:18, Waldemar Brodkorb wrote: Hi uClinux hackers, I am trying to build a Linux System for Qemu/m68k to do runtime testing of a uClibc spin-off called uClibc-ng. (http://www.uclibc-ng.org) I am really a newbie regarding MMU-less

Re: [uClinux-dev] qemu/m68k

2014-08-21 Thread Waldemar Brodkorb
Hi Greg, Do you have a suggestion why I get a segfault after first executed command? Similar behaviour Thomas Petazzoni have seen, while he was trying to run buildroot in Qemu/m68k. See here: http://lists.busybox.net/pipermail/buildroot/2012-April/052585.html No, I haven't seen that

Re: [uClinux-dev] qemu/m68k

2014-08-25 Thread Waldemar Brodkorb
Hi Greg, Greg Ungerer wrote, Hi Waldemar, On 22/08/14 06:25, Waldemar Brodkorb wrote: Do you have a suggestion why I get a segfault after first executed command? Similar behaviour Thomas Petazzoni have seen, while he was trying to run buildroot in Qemu/m68k. See here: http

Re: [uClinux-dev] qemu/m68k

2014-08-29 Thread Waldemar Brodkorb
Hi, Thanks for the help. After adding the FEC Kernel patch, the error didn't occur anymore. I now have a shell (sash) with simpleinit and can execute my uClibc tests. best regards Waldemar ___ uClinux-dev mailing list uClinux-dev@uclinux.org

Re: [uClinux-dev] m68k compile issue with 4.0.5

2015-06-16 Thread Waldemar Brodkorb
Hi Geert, Geert Uytterhoeven wrote, Hi Waldemar, On Mon, Jun 15, 2015 at 10:23 PM, Waldemar Brodkorb w...@openadk.org wrote: I am trying to build a M68K (Coldfire no-MMU) kernel for Qemu-system-m68k. Any idea what change breaks the compile? I tried a few m68knommu defconfigs, but can't

Re: [uClinux-dev] m68k compile issue with 4.0.5

2015-06-16 Thread Waldemar Brodkorb
Hi Greg, Greg Ungerer wrote, I don't have any compile (or runtime) problems with m5208evb_defconfig on linux-4.0.5 either. That is close to what most people use with qemu. What .config are you using? Are you sure the defconfig creates a bootable image? I still need at least two patches.

Re: [uClinux-dev] [PATCH 1/6] dlopen is used by newer binutils, so check for it

2016-01-04 Thread Waldemar Brodkorb
Hi Greg, Greg Ungerer wrote, > Hi Waldemar, > > On 31/12/15 09:55, Waldemar Brodkorb wrote: > >Add a check for dlopen to configure.ac > > > >Signed-off-by: Waldemar Brodkorb <w...@uclibc-ng.org> > >--- > > configure.ac |1 + > >

[uClinux-dev] [PATCH 0/6] sync with uClibc-ng elf2flt

2015-12-30 Thread Waldemar Brodkorb
Sync part of the patches from http://cgit.uclibc-ng.org/cgi/cgit/elf2flt.git/ required to support H8/300 and Xtensa. Tested with GDB simulator for H8/300 and Qemu for Xtensa. Waldemar Brodkorb (3): dlopen is used by newer binutils, so check for it recent binutils for h8/300 no longer use

[uClinux-dev] [PATCH 5/6] R_H8_DIR24 fix

2015-12-30 Thread Waldemar Brodkorb
From: Yoshinori Sato <ys...@users.souceforge.jp> R_H8_DIR24A8 / R_H8_DIR24R8 keep all byte. Signed-off-by: Yoshinori Sato <ys...@users.sourceforge.jp> Signed-off-by: Waldemar Brodkorb <w...@uclibc-ng.org> --- elf2flt.c |4 ++-- 1 file changed, 2 insertions(+), 2 deleti

[uClinux-dev] [PATCH 2/6] recent binutils for h8/300 no longer use prefix

2015-12-30 Thread Waldemar Brodkorb
Remove SYMBOL_PREFIX for h8/300. Signed-off-by: Waldemar Brodkorb <w...@uclibc-ng.org> Signed-off-by: Yoshinori Sato <ys...@users.souceforge.jp> --- configure.ac |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index adf5883..5c

[uClinux-dev] [PATCH 1/6] dlopen is used by newer binutils, so check for it

2015-12-30 Thread Waldemar Brodkorb
Add a check for dlopen to configure.ac Signed-off-by: Waldemar Brodkorb <w...@uclibc-ng.org> --- configure.ac |1 + 1 file changed, 1 insertion(+) diff --git a/configure.ac b/configure.ac index 4e7df5a..adf5883 100644 --- a/configure.ac +++ b/configure.ac @@ -192,6 +192,7 @@ dnl re

[uClinux-dev] [PATCH 4/6] H8/300 relocation fix

2015-12-30 Thread Waldemar Brodkorb
From: Yoshinori Sato <ys...@users.souceforge.jp> Add new relocation R_H8_DISP32A16. hi-byte clear on R_H8_DIR32 R_H8_DIR24A8 R_H8_DIR24R8 R_H8_DIR32A16 R_H8_DISP32A16 Signed-off-by: Yoshinori Sato <ys...@users.sourceforge.jp> Signed-off-by: Waldemar Brodkorb <w...@uclibc-ng.org&

[uClinux-dev] [PATCH 3/6] h8300 address space is 24bit.

2015-12-30 Thread Waldemar Brodkorb
From: Yoshinori Sato <ys...@users.souceforge.jp> Signed-off-by: Yoshinori Sato <ys...@users.sourceforge.jp> Signed-off-by: Waldemar Brodkorb <w...@uclibc-ng.org> --- flthdr.c |8 1 file changed, 8 insertions(+) diff --git a/flthdr.c b/flthdr.c index 8a8b9

Re: [uClinux-dev] BINFMT_FLAT: reloc outside program

2016-06-08 Thread Waldemar Brodkorb
Hi Greg, Greg Ungerer wrote, > Thanks for that. When I get a spare minute I will dig into it > and see if I can make any sense of that. It is obviously way out > of the expected range. Any spare minute to check what is wrong here? best regards Waldemar

Re: [uClinux-dev] qemu coldfire SIGILL with pthread app

2016-06-08 Thread Waldemar Brodkorb
Hi Greg, Greg Ungerer wrote, > Hi Waldemar, > > Sorry for the slow response. The uclinux-dev email list seems > very unreliable at the moment. I never got your last response, > but I can see it in the archives: > > http://mailman.uclinux.org/pipermail/uclinux-dev/2016-May/052747.html Oh, that

Re: [uClinux-dev] qemu coldfire SIGILL with pthread app

2016-05-27 Thread Waldemar Brodkorb
Hi Greg, Greg Ungerer wrote, > Hi Waldemar, > > On 26/05/16 22:05, Waldemar Brodkorb wrote: > > Greg Ungerer wrote, > >> On 20/05/16 14:20, Waldemar Brodkorb wrote: > >>> Greg Ungerer wrote, > >>>> On 16/05/16 19:54, Waldemar Brodkorb wrote:

Re: [uClinux-dev] qemu coldfire SIGILL with pthread app

2016-05-26 Thread Waldemar Brodkorb
Hi Greg, Greg Ungerer wrote, > Hi Waldemar, > > On 20/05/16 14:20, Waldemar Brodkorb wrote: > > Greg Ungerer wrote, > >> On 16/05/16 19:54, Waldemar Brodkorb wrote: > >>> I compile and test the thread test app from here on > >>> Qemu coldfi

[uClinux-dev] [PATCH v2] allow to build arm flat binaries

2016-03-13 Thread Waldemar Brodkorb
Add patchset from ptxdist which is required to produce working ARM flat binaries. Tested with busybox on Kinetis K70. Signed-off-by: Waldemar Brodkorb <w...@openadk.org> --- v1 -> v2: - segfault problem fixed, r_mem pointer should be initialized - v1 was successfully tested by Thomas

Re: [uClinux-dev] Problem executing syslogd (busybox)

2016-03-12 Thread Waldemar Brodkorb
Ted Victorio wrote, > The syslogd (busybox) compiled successfully; however, executing syslogd gave > this result: > > /> syslogd: exec /proc/self/exe: No such file or directory > > Please advise. Thank you very much. Is /proc mounted on your system? best regards Waldemar

[uClinux-dev] [PATCH] allow to build arm flat binaries

2016-03-12 Thread Waldemar Brodkorb
Add patchset from ptxdist which is required to produce working ARM flat binaries. Tested with busybox on Kinetis K70. Signed-off-by: Waldemar Brodkorb <w...@openadk.org> --- After this patch is upstream, I want to send an update patch to buildroot to use your repository. Then I will take m

[uClinux-dev] BINFMT_FLAT: reloc outside program

2016-04-05 Thread Waldemar Brodkorb
Hi uClinux/elf2flt devs, How can I debug an issue with the following error while executing: ~ # ./hello BINFMT_FLAT: reloc outside program 0xb589 (0 - 0x125a4/0x8b0c), killing hello! SEGV The target is an ARM Cortex-M4 device. The error is only happening when libpthread from uClibc-ng is

Re: [uClinux-dev] BINFMT_FLAT: reloc outside program

2016-04-22 Thread Waldemar Brodkorb
Hi Greg, Greg Ungerer wrote, > > How could I generate the information for you? Do you have > > a kernel patch I would need to apply? I can bootup a kernel > > and execute code, I just can't type anything into the serial > > Attached is a kernel patch that modifies binfmt_flat to print > out the

Re: [uClinux-dev] toolchain for c++ on coldfire

2016-04-29 Thread Waldemar Brodkorb
Hi Greg, Greg Ungerer wrote, > Hi Waldemar, > > On 29/04/16 05:10, Waldemar Brodkorb wrote: > > Hi Greg, > > Greg Ungerer wrote, > > > >> Hi Angelo, > >> > >> On 20/04/16 04:14, angelo wrote: > >>> infinite thanks. > >&g

Re: [uClinux-dev] qemu coldfire SIGILL with pthread app

2016-05-19 Thread Waldemar Brodkorb
Hi Greg, Greg Ungerer wrote, > Hi Waldemar, > > On 16/05/16 19:54, Waldemar Brodkorb wrote: > >I compile and test the thread test app from here on > >Qemu coldfire emulation: > >http://debug.openadk.org/arm-pthreads/hello.c > > > >Sometimes it w

Re: [uClinux-dev] BINFMT_FLAT: reloc outside program

2016-05-10 Thread Waldemar Brodkorb
Hi Greg, Greg Ungerer wrote, > Hi Waldemar, > > > I disabled CONFIG_BINFMT_SHARED_FLAT in the kernel. > > And now I get: > > ~ # /hello > > [ 90.83] BINFMT_FLAT: reloc[405] outside program 0xed87 (0 > > - 0x123b0/0x8944), killing hello! > > SEGV > > > > Compiling with > >

[uClinux-dev] qemu coldfire SIGILL with pthread app

2016-05-16 Thread Waldemar Brodkorb
Hi, I compile and test the thread test app from here on Qemu coldfire emulation: http://debug.openadk.org/arm-pthreads/hello.c Sometimes it works, sometimes I get SIGILL. Here is the strace output when I get SIGILL: ~ # strace -f /test ioctl(0, TCGETS, {B115200 opost isig icanon echo ...}) = 0

Re: [uClinux-dev] BINFMT_FLAT: reloc outside program

2016-05-05 Thread Waldemar Brodkorb
Hi Greg, Greg Ungerer wrote, > Attached is a kernel patch that modifies binfmt_flat to print > out the reloc number along with the reloc error. That way we can > map that back to the reloc entry number printed out in the verbose > output from elf2flt at compile time. The stm32 is now working,

Re: [uClinux-dev] BINFMT_FLAT: reloc outside program

2016-05-05 Thread Waldemar Brodkorb
Hi Greg, Waldemar Brodkorb wrote, > Hi Greg, > Greg Ungerer wrote, > > > Attached is a kernel patch that modifies binfmt_flat to print > > out the reloc number along with the reloc error. That way we can > > map that back to the reloc entry number printed out in

Re: [uClinux-dev] BINFMT_FLAT: reloc outside program

2016-04-16 Thread Waldemar Brodkorb
Hi Greg, Greg Ungerer wrote, > Hi Waldemar, > > On 07/04/16 19:35, Waldemar Brodkorb wrote: > > Hi Greg, > > Greg Ungerer wrote, > > > >>> You can find readelf, objdump -x, objdump -D and the source of > >>> hello.c here: > >>>

Re: [uClinux-dev] toolchain for c++ on coldfire

2016-04-28 Thread Waldemar Brodkorb
Hi Greg, Greg Ungerer wrote, > Hi Angelo, > > On 20/04/16 04:14, angelo wrote: > > infinite thanks. > > > > Do you maybe have also the > > gcc-5.3.0-fix-libgcc-build.patch ? > > Yep, attached. Can you explain why this patch is required and why the atomic code failes to compile? Do you mind to

Re: [uClinux-dev] BINFMT_FLAT: reloc outside program

2016-08-15 Thread Waldemar Brodkorb
Hi Greg, Greg Ungerer wrote, > Hi Waldemar, > > On 23/04/16 08:50, Waldemar Brodkorb wrote: > >Hi Greg, > >Greg Ungerer wrote, > > > >>>How could I generate the information for you? Do you have > >>>a kernel patch I would need to apply? I can

Re: [uClinux-dev] qemu coldfire SIGILL with pthread app

2016-08-15 Thread Waldemar Brodkorb
Hi Greg, Greg Ungerer wrote, > Hi Waldemar, > > On this specific issue of simple flat binaries not working on m68k. > This fixes the issue: > > http://marc.info/?l=linux-m68k=146976701216533=2 > > I can run your hello binary now with no problems after this is > applied. Thanks for fixing

[uClinux-dev] regression for m68k/coldfire

2017-02-02 Thread Waldemar Brodkorb
Hi, your commit 80cca775cdc4f8555612d2943a2872076b33e0ff breaks Linux booting in qemu-system-m68k: qemu-system-m68k -nographic -M mcf5208evb -cpu m5208 -kernel qemu-m68k-mcf5208-initramfspiggyback-kernel [0.00] Linux version 4.9.6-1 (wbx@vopenadk) (gcc version 5.4.0 (GCC) ) #2 Thu Feb

Re: [uClinux-dev] regression for m68k/coldfire

2017-02-03 Thread Waldemar Brodkorb
Hi, Laurent Vivier wrote, > Le 03/02/2017 à 01:35, John Paul Adrian Glaubitz a écrit : > > On 02/03/2017 01:10 AM, Greg Ungerer wrote: > >> This is a limitation in the FEC support in QEMU. > >> This works on real ColdFire hardware (which do support the > >> FEC MIB stats registers from offset

Re: [uClinux-dev] issue with flat binaries on sh2 big endian target

2017-02-09 Thread Waldemar Brodkorb
Hi, ping? Any help is appreciated, Waldemar > Am 19.12.2016 um 20:42 schrieb Waldemar Brodkorb <w...@openadk.org>: > > Hi, > > I try to run a simple hello world program on a Numato Mimasv2 > FPGA board with J2 bitstream. It is a slightly modified sh2 > architect

Re: [uClinux-dev] [PATCH v2] allow to build arm flat binaries

2016-08-18 Thread Waldemar Brodkorb
Hi Greg, Greg Ungerer wrote, > Hi Waldemar, > > On 19/03/16 13:53, Greg Ungerer wrote: > > Hi Waldemar, > > > > On 14/03/16 15:01, Waldemar Brodkorb wrote: > >> Add patchset from ptxdist which is required to produce working > >> ARM flat

Re: [uClinux-dev] qemu coldfire SIGILL with pthread app

2016-08-18 Thread Waldemar Brodkorb
Hi Greg, Greg Ungerer wrote, > Hi Waldemar, > > On 16/08/16 03:21, Waldemar Brodkorb wrote: > >Hi Greg, > >Greg Ungerer wrote, > >>Hi Waldemar, > >> > >>On this specific issue of simple flat binaries not working on m68k. > >>This f

Re: [uClinux-dev] BINFMT_FLAT: reloc outside program

2016-08-24 Thread Waldemar Brodkorb
Hi Greg, Greg Ungerer wrote, > Hi Waldemar, > > On 06/05/16 05:06, Waldemar Brodkorb wrote: > >Hi Greg, > >Waldemar Brodkorb wrote, > > > >>Hi Greg, > >>Greg Ungerer wrote, > >> > >>>Attached is a kernel patch that modifies b

Re: [uClinux-dev] [PATCH v2] allow to build arm flat binaries

2016-08-24 Thread Waldemar Brodkorb
Hi, Greg Ungerer wrote, > Hi Waldemar, > > On 19/08/16 08:48, Waldemar Brodkorb wrote: > > Hi Greg, > > Greg Ungerer wrote, > > > >> Hi Waldemar, > >> > >> On 19/03/16 13:53, Greg Ungerer wrote: > >>> Hi Waldemar, > >>&

Re: [uClinux-dev] BINFMT_FLAT: reloc outside program

2016-08-24 Thread Waldemar Brodkorb
Hi Greg, Greg Ungerer wrote, > Hi Waldemar, > > Waldemar Brodkorb wbx at openadk.org wrote: > > Greg Ungerer wrote, > >> Hi Waldemar, > >> On 23/04/16 08:50, Waldemar Brodkorb wrote: > >> >Hi Greg, > >> >Greg Ungerer wrote, > >> &

Re: [uClinux-dev] [PATCH v2] allow to build arm flat binaries

2016-08-27 Thread Waldemar Brodkorb
Greg Ungerer wrote, > Hi Waldemar, > > On 25/08/16 07:35, Waldemar Brodkorb wrote: > > Hi, > > Greg Ungerer wrote, > > > >> Hi Waldemar, > >> > >> On 19/08/16 08:48, Waldemar Brodkorb wrote: > >>> Hi Greg, > >>> Greg

Re: [uClinux-dev] BINFMT_FLAT: reloc outside program

2016-08-27 Thread Waldemar Brodkorb
Hi Greg, Greg Ungerer wrote, > Hi Waldemar, > > On 25/08/16 07:34, Waldemar Brodkorb wrote: > > Hi Greg, > > Greg Ungerer wrote, > > > >> Hi Waldemar, > >> > >> Waldemar Brodkorb wbx at openadk.org wrote: > >>> Greg Ungerer wrot

Re: [uClinux-dev] Cortex-M7: Enable FPU and Cache Support (STM32F7xx)

2017-01-02 Thread Waldemar Brodkorb
Hi Alex, A. Brand wrote, > Hi together, > > normally i work bare metal on Cortex-M devices. But with devices such as the > Cortex-M7 with more than 200MHz, i think of using uclinux for my coming IoT > applications.  > > How is the actual status of the Cortex-M7 Support? My first Target will be

[uClinux-dev] issue with flat binaries on sh2 big endian target

2016-12-19 Thread Waldemar Brodkorb
6.2.0 so that libgcc isn't compiled as position independent code. best regards Waldemar >From 123fe2e98cce5c82d81d2a350529a1ea712a4058 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb <w...@openadk.org> Date: Sat, 26 Mar 2016 10:26:56 +0100 Subject: [PATCH] fix sh2 toolchain building S