RetroBSD

2.11BSD operating system for microcontrollers
It is currently Thu Jun 27, 2019 2:18 am

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Thu Jan 07, 2016 5:55 pm 
User avatar

Joined: Fri Jan 23, 2015 12:41 pm
Posts: 3
I'm trying to build LiteBSD on Debian8/amd64 (tried Debian8/i386 too) using a self compiled toolchain like described in the wiki which compiles RetroBSD without problems.
Code:
for b in WIFIRE.pic32 SDZL.pic32 MEBII.pic32 HMZ144.pic32 Whitecat.pic32 SNADPIC.pic32; do bmake kernel BOARD=$b; done
bmake -CWIFIRE.pic32
/opt/mips-gcc-4.8.1/bin/mips-elf-cpp -I. -I../.. -DWIFIRE -DPIC32MZ -DBUTTON2=0x14 -DBUTTON1=0x15 -DWF_ERROR_CHECKING -DWF_INT=4 -DSD_LED=0x7f -DCONS_MINOR=3 -DCONS_MAJOR=17 -DINET -DPROCFS -DFDESC -DKERNFS -DUNION -DFFS -DFIFO -DHZ=100 -DCPU_KHZ=200000 -DBUFPAGES=18 -DNBUF=18 -DNMBCLUSTERS=32 -DNKMEMCLUSTERS=64 -DDEBUG -DDIAGNOSTIC -DDEVPAGER -DVNODEPAGER -DSWAPPAGER -DKERNEL -DTIMEZONE=480 -DDST=1 -DMAXUSERS=2 -DLOCORE ../../mips/pic32/locore.s |  /opt/mips-gcc-4.8.1/bin/mips-elf-as -g -mips32r2 -EL -o locore.o
../../mips/pic32/locore.s: Assembler messages:
../../mips/pic32/locore.s:1541: Error: Macro used $at after ".set noat"
../../mips/pic32/locore.s:1542: Error: Macro used $at after ".set noat"
../../mips/pic32/locore.s:1543: Error: Macro used $at after ".set noat"

What does this mean?
What am I doing wrong?
Summary: ...---...


P.S.:
This is my 2nd post with this cry for help, the 1st one disappeared after correcting a typo...
I'll never try to fix typos again!
;-)

_________________
"Logic, my dear Zoe, merely enables one to be wrong with authority." -- The 2nd Doctor


Top
 Profile  
 
PostPosted: Thu Jan 07, 2016 9:46 pm 
User avatar

Joined: Fri Mar 06, 2015 9:13 pm
Posts: 37
Location: Barcelona, SP
Try with the gnu mips cross compiler from here:

https://github.com/sergev/LiteBSD/releases/download/tools/gcc-4.8.1-mips-linux.tgz

and then export these parameters maybe on your .profile will be nice...

Code:
# Exports for LiteBSD build
export BSDSRC="/<somewhere>/LiteBSD"
export MIPS_GCC_ROOT="/<extracted-toolchain-path>"
export MAKESYSPATH="$BSDSRC/share/mk-pic32"


Hope it helps

_________________
Dennis MacAlistair Ritchie (Sep.09.1941 - Oct.12.2011)


Top
 Profile  
 
PostPosted: Thu Jan 07, 2016 10:16 pm 
Contributor
User avatar

Joined: Sun Oct 20, 2013 3:15 am
Posts: 322
I also strongly recommend using Debian/i386.
And even though I use a custom toolchain, I don't recommend it. So I'll second Mikeloto's suggestion to use the compiled toolchain.

_________________
@__briancallahan on Twitter


Top
 Profile  
 
PostPosted: Fri Jun 03, 2016 7:38 pm 
User avatar

Joined: Fri Jan 23, 2015 12:41 pm
Posts: 3
The downloaded toolchain lives in /opt/tmp...
Code:
$ uname -a
Linux defiant 3.16.0-4-686-pae #1 SMP Debian 3.16.7-ckt20-1+deb8u1 (2015-12-14) i686 GNU/Linux
(yeti@defiant:1)/opt/LiteBSD.git$ cat /etc/debian_version
8.2
(yeti@defiant:1)/opt/LiteBSD.git$ export BSDSRC="/opt/LiteBSD.git" MIPS_GCC_ROOT="/opt/tmp/mips-gcc-4.8.1" MAKESYSPATH="/opt/LiteBSD.git/share/mk-pic32"
(yeti@defiant:1)/opt/LiteBSD.git$ bmake clean
### output not pasted in here
(yeti@defiant:1)/opt/LiteBSD.git$ ( cd sys/compile && for i in * ; do ( cd "$i" && bmake clean ) ; done )
rm -f eddep *vmunix.elf vmunix.gdb tags *.o locore.i [a-z]*.s  Errs errs linterrs makelinks
bash: cd: Makefile: Ist kein Verzeichnis
rm -f eddep *vmunix.elf vmunix.gdb tags *.o locore.i [a-z]*.s  Errs errs linterrs makelinks
rm -f eddep *vmunix.elf vmunix.gdb tags *.o locore.i [a-z]*.s  Errs errs linterrs makelinks
rm -f eddep *vmunix.elf vmunix.gdb tags *.o locore.i [a-z]*.s  Errs errs linterrs makelinks
rm -f eddep *vmunix.elf vmunix.gdb tags *.o locore.i [a-z]*.s  Errs errs linterrs makelinks
rm -f eddep *vmunix.elf vmunix.gdb tags *.o locore.i [a-z]*.s  Errs errs linterrs makelinks
(yeti@defiant:1)/opt/LiteBSD.git$ bmake kernel
bmake -Csys/compile all
for b in WIFIRE.pic32 SDZL.pic32 MEBII.pic32 HMZ144.pic32 Whitecat.pic32 SNADPIC.pic32; do bmake kernel BOARD=$b; done
bmake -CWIFIRE.pic32
/opt/tmp/mips-gcc-4.8.1/bin/mips-elf-cpp -I. -I../.. -DWIFIRE -DPIC32MZ -DBUTTON2=0x14 -DBUTTON1=0x15 -DWF_ERROR_CHECKING -DWF_INT=4 -DSD_LED=0x7f -DCONS_MINOR=3 -DCONS_MAJOR=17 -DINET -DPROCFS -DFDESC -DKERNFS -DUNION -DFFS -DFIFO -DHZ=100 -DCPU_KHZ=200000 -DBUFPAGES=18 -DNBUF=18 -DNMBCLUSTERS=32 -DNKMEMCLUSTERS=64 -DDEBUG -DDIAGNOSTIC -DDEVPAGER -DVNODEPAGER -DSWAPPAGER -DKERNEL -DTIMEZONE=480 -DDST=1 -DMAXUSERS=2 -DLOCORE ../../mips/pic32/locore.s |  /opt/tmp/mips-gcc-4.8.1/bin/mips-elf-as -g -mips32r2 -EL -o locore.o
../../mips/pic32/locore.s: Assembler messages:
../../mips/pic32/locore.s:1541: Error: Macro used $at after ".set noat"
../../mips/pic32/locore.s:1542: Error: Macro used $at after ".set noat"
../../mips/pic32/locore.s:1543: Error: Macro used $at after ".set noat"
(((...)))

Same problem like on Debian/amd64 with the self built toolchain.

I can compile RetroBSD with the self built toolchain on Debian7 (armhf) and Debian8 (amd64, armhf, i386). I remeber building RetroBSD without problems on Debian6 (amd64, i386) and Debian7 (amd64, i386) but atm I only have Debian8 on i386 and amd64.
Self built toolchains for other CPUs/MCUs on these systems (amd64, armhf, i386) work as expected too. I only have a problem with LiteBSD... something really stupid (pebcak still not 100% excluded) or really strange must be going on here...

_________________
"Logic, my dear Zoe, merely enables one to be wrong with authority." -- The 2nd Doctor


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron




Powered by phpBB® Forum Software © phpBB Group

BSD Daemon used with permission