Seg Faults...

Posted by: dmallory

Seg Faults... - 30/05/2001 18:56

Working on the codes for the Pioneer remote, I need to install a compiler on my empeg. Using hyperterm and zmodem, I successfully loaded binutils, then tried to upload gcc. I'm repeatedly getting the error below. Any help on why?
Thanks,
Douglas

rz: memory violation at pc=0x40082b14, lr=0x40082b18 (bad address=0x0000
0029, code 2)
pc : [<40082b14>] lr : [<40082b18>]
sp : bffff968 ip : bffff968 fp : bffff998
r10: 4011c128 r9 : 0200d500 r8 : 00000000
r7 : 000000f0 r6 : ffffffff r5 : 00000000 r4 : 020200c0
r3 : 00000021 r2 : 00000000 r1 : 00000000 r0 : 020200c0
Flags: nzCv IRQs on FIQs on Mode USER_32 Segment user
Control: C038517D Table: C038517D DAC: 00000015
Function entered at [<40082a58>] from [<02004434>]
r10 = 00000000 r7 = 02017888 r6 = 02017A18 r5 = 4011AD90
r4 = 0200E2E0
Function entered at [<02003d4c>] from [<020038ec>]
r10 = BFFFFE18 r9 = 0200D500 r8 = 00000000 r7 = 02017888
r6 = 02017880 r5 = 00000000 r4 = 00000000
Function entered at [<02001ac4>] from [<40054040>]
r10 = 4011C128 r9 = 02001AC4 r8 = 0200CFB4 r7 = 02001334
r6 = 4000C2A8 r5 = 00000001 r4 = BFFFFE14
Function entered at [<40053ee4>] from [<02001920>]
r10 = 4001D858 r9 = 00000000 r8 = 00000000 r7 = 00000000
r6 = 020018FC r5 = 00000000 r4 = 4001E5EC
Segmentation fault
empeg:/dlm#

Posted by: Roger

Re: Seg Faults... - 30/05/2001 23:46

Your copy of rz (the zmodem transfer program) appears to be going bang. Have you run out of disk space -- there's only about 16Mb available in the root. Which is not enough space to install gcc.

Personally, I'd just invest a couple of hundred in a new desktop box, and install Linux on that. Oh, wait, I did.



Roger - not necessarily speaking for empeg
Posted by: ChrisTall

Re: Seg Faults... - 02/06/2001 04:16

I installed Frank's debian environment by basically unzipping it into a new directory I made under /drive0. I then copied rz and sz from the empeg install into the same place on Frank's install. Then I changed to the usr/sbin directory in Frank's install and ran chroot. In my case like this:-
./chroot /drive0/debian/root /bin/bash

Then I downloaded the ARM GCC binaries from here, rz'd them to my empeg and used dpkg to install them. You will also need CPP from the interpreters directory to get GCC to install.
You may need Libc6 as well to get your programs to compile. Again I downloaded it, rz'd it and installed it using dpkg. There are couple of sample programs on the developer site I compiled as a test after this and it all worked!

To edit my files on the empeg I managed to install an editor called FTE which does some nice colour codeing when editing C files. So far I have only written very small stuff but I have managed to write to the display and read from the IR device.

I hope this helps you in some small way.

ChrisTall
That really is my name!

Edited by ChrisTall on 02/06/01 01:18 PM.

Posted by: fvgestel

Re: Seg Faults... - 11/06/2001 04:27

You shouldn't use rz/sz in a chrooted environment. I can't get it to work anyway...

Frank van Gestel