A new kernel for oxnas

This forum is for all other ARMv5 devices

Re: A new kernel for oxnas

Postby Geoff » Sun Aug 24, 2014 8:06 pm

Tom, I solved this for myself by creating the directory ~/.distcc/bin and running the following bash commands within it:

Code: Select all
for x in gcc-4.7.2 populate gcc-ar ranlib addr2line gcc-nm readelf ar gcc-ranlib size as gcov strings c++ gfortran strip cc gprof c++filt ld cpp ld.bfd ct-ng.config ldd elfedit nm g++ objcopy gcc objdump; do
cat <<- _echo_ > arm-unknown-linux-gnueabi-${x}
        #!/bin/sh
        distcc ${x} "\$@"
_echo_
chmod 755 arm-unknown-linux-gnueabi-${x}
done
Geoff
 
Posts: 228
Joined: Wed Mar 09, 2011 5:14 pm

Re: A new kernel for oxnas

Postby Socaltom » Sun Aug 24, 2014 8:47 pm

ok, I got past that, now I have a new problem. Now what?
Thanks
Tom

Code: Select all
[root@PogoServer linux-oxnas-master]# make ARCH=arm -j8 zImage ox820.dtb
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  HOSTCC  scripts/kallsyms
  CC      scripts/mod/devicetable-offsets.s
  HOSTCC  scripts/mod/modpost.o
  GEN     scripts/mod/devicetable-offsets.h
  HOSTCC  scripts/mod/file2alias.o
  HOSTLD  scripts/mod/modpost
make[1]: *** No rule to make target 'arch/arm/boot/dts/ox820.dtb'.  Stop.
/usr/src/linux-oxnas-master/arch/arm/Makefile:312: recipe for target 'ox820.dtb' failed
make: *** [ox820.dtb] Error 2
Owned by me
Pink Pogo V2, Black Pogo V3, Zyxel NAS 325 v1,
Adminstrator for
Goflex net, Black V3, Black V2
Socaltom
 
Posts: 567
Joined: Thu Apr 07, 2011 2:21 pm
Location: The left side

Re: A new kernel for oxnas

Postby celemine1gig » Sun Aug 24, 2014 8:50 pm

Have a look at the directory "../arch/arm/boot/dts/".
The dts-file is no longer named ox820.dts.
That is why you get that error. Take the correct input name and it should work. ;)
celemine1gig
 
Posts: 54
Joined: Fri Apr 26, 2013 7:55 pm

Re: A new kernel for oxnas

Postby Socaltom » Sun Aug 24, 2014 9:44 pm

I''m getting closer.
the dts file is ox820-pogoplug-pro.dts ( it calls ox820.dtsi) so I just need to call the ox820-pogoplug-pro.dtb on the command line.
However, ive had to create a few softlinks to get the cross compilers working. I'm stumped at this one. It calling for this file

armv5tel-unknown-linux-gnueabi-ld

And this is what I have

armv5tel-unknown-linux-gnueabi-c++
armv5tel-unknown-linux-gnueabi-g++
armv5tel-unknown-linux-gnueabi-gcc
armv5tel-unknown-linux-gnueabi-gcc-4.8.2
armv5tel-unknown-linux-gnueabi-gcc-ar
armv5tel-unknown-linux-gnueabi-gcc-nm
armv5tel-unknown-linux-gnueabi-gcc-ranlib

I tried linking ( ln -s) the 4.8.2 and the ranlib to the ld but they weren't right. Any advice?
Tom
Owned by me
Pink Pogo V2, Black Pogo V3, Zyxel NAS 325 v1,
Adminstrator for
Goflex net, Black V3, Black V2
Socaltom
 
Posts: 567
Joined: Thu Apr 07, 2011 2:21 pm
Location: The left side

Re: A new kernel for oxnas

Postby Socaltom » Sun Aug 24, 2014 10:11 pm

ok,
I got past that by linking the "armv5tel-*-ld" to "ld"
Now I'm having problems with armv5tel-*-gcc".
I tried replacing the -gcc with -gcc.4.8.2, but I got the same result.
Tom

anyone want to do this for me? I just need straight up pogoplug-pro with ext3 support.
Thanks
Tom


Code: Select all
  CC      block/blk-map.o
  CC      fs/dcache.o
armv5tel-unknown-linux-gnueabi-gcc: internal compiler error: Killed (program cc1)
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://github.com/archlinuxarm/PKGBUILDs/issues> for instructions.
scripts/Makefile.build:308: recipe for target 'net/core/sock.o' failed
make[2]: *** [net/core/sock.o] Error 4
scripts/Makefile.build:455: recipe for target 'net/core' failed
make[1]: *** [net/core] Error 2
Makefile:816: recipe for target 'net' failed
make: *** [net] Error 2
make: *** Waiting for unfinished jobs....
  CC      fs/inode.o
  CC      block/blk-exec.o
  CC      mm/readahead.o
  CC      crypto/shash.o
  CC      fs/attr.o
  CC      block/blk-merge.o
  CC      kernel/sysctl_binary.o
  CC      mm/swap.o
Owned by me
Pink Pogo V2, Black Pogo V3, Zyxel NAS 325 v1,
Adminstrator for
Goflex net, Black V3, Black V2
Socaltom
 
Posts: 567
Joined: Thu Apr 07, 2011 2:21 pm
Location: The left side

Re: A new kernel for oxnas

Postby celemine1gig » Sun Aug 24, 2014 10:24 pm

Ehem, you softlinked the standard (amd64?) ld linker to the supposed armv5-ld?

How do you think this should work? You are compiling for arm, so you need an appropriate linker for arm, too.
If the armv5-...-ld is missing, then you probably didn't install it (yet)?

I don't know about arch, but Ubuntu/Debian provide easily useable cross-compiling tools and I would guess that arch does so, too. ;)
celemine1gig
 
Posts: 54
Joined: Fri Apr 26, 2013 7:55 pm

Re: A new kernel for oxnas

Postby Socaltom » Sun Aug 24, 2014 10:58 pm

celemine1gig wrote:Ehem, you softlinked the standard (amd64?) ld linker to the supposed armv5-ld?

How do you think this should work? You are compiling for arm, so you need an appropriate linker for arm, too.
If the armv5-...-ld is missing, then you probably didn't install it (yet)?

I don't know about arch, but Ubuntu/Debian provide easily useable cross-compiling tools and I would guess that arch does so, too. ;)

No, this is all being done on a PPV2, so I linked to the armv5-id, it just wasn't labeled armv5tel-unknown-linux......-ld,
it was just labeled "ld".

After I linked that, it progressed just fine until the armv5.....gcc belched.
Tom
Owned by me
Pink Pogo V2, Black Pogo V3, Zyxel NAS 325 v1,
Adminstrator for
Goflex net, Black V3, Black V2
Socaltom
 
Posts: 567
Joined: Thu Apr 07, 2011 2:21 pm
Location: The left side

Re: A new kernel for oxnas

Postby bodhi » Mon Aug 25, 2014 1:28 am

@Tom,

Why not just compile natively on PogoV2. Don't cross compile. That's what I always do on a GoFlex Net for Debian kernel.

-bodhi
bodhi
 
Posts: 224
Joined: Sat Aug 13, 2011 10:06 am

Re: A new kernel for oxnas

Postby celemine1gig » Mon Aug 25, 2014 8:11 am

OK, next time just say that you are compiling natively.

BTW, the "ARCH=arm" part also is not needed when compiling natively. All autodetected. That is why I assumed you were cross compiling. ;)
celemine1gig
 
Posts: 54
Joined: Fri Apr 26, 2013 7:55 pm

Re: A new kernel for oxnas

Postby Socaltom » Mon Aug 25, 2014 12:14 pm

celemine1gig wrote:OK, next time just say that you are compiling natively.

BTW, the "ARCH=arm" part also is not needed when compiling natively. All autodetected. That is why I assumed you were cross compiling. ;)

Well this was first attempt. I've found in life I learn more by failing than getting right the first time. I learned a lot on thus effort!
Tom
Owned by me
Pink Pogo V2, Black Pogo V3, Zyxel NAS 325 v1,
Adminstrator for
Goflex net, Black V3, Black V2
Socaltom
 
Posts: 567
Joined: Thu Apr 07, 2011 2:21 pm
Location: The left side

PreviousNext

Return to Community Supported

Who is online

Users browsing this forum: No registered users and 3 guests