Cross-compiling ppc bootcode

Joshua Piccari joshua.piccari at gmail.com
Tue Sep 28 07:08:10 UTC 2010


Hi all,

I've been trying to cross-compile a nanobsd build for a RouterBoard rb800.
I've run into some trouble with the bootcode however. Here is the error I
get:

/var/tmp//ccC6sQLy.s: Assembler messages:
/var/tmp//ccC6sQLy.s: 12: Error: no such instruction: 'lis %r1,stack at ha'
/var/tmp//ccC6sQLy.s: 13: Error: no such instruction: 'addi %r1,%r1,stack at l'
/var/tmp//ccC6sQLy.s: 14: Error: no such instruction: 'addi %r1,%r1,8192'
/var/tmp//ccC6sQLy.s: 16: Error: no such instruction: 'b ofw_init'
*** Error cod 1

Stop in /usr/src/sys/boot/powerpc/boot1.chrp.
*** Error code 1

Stop in /usr/src/sys/boot/powerpc.


Is there any way to cross-compile the ppc boot code from amd64? Is there
another option for obtaining the bootcode necessary to boot my rb800? And
has anybody attempted (and had success) with the RouterBoard ppc-based
boards?

Any help would be greatly appreciated!

-- 
Joshua Piccari
/dv/


More information about the freebsd-ppc mailing list