Need help building kwboot

balanga

Son of Beastie

Reaction score: 140
Messages: 3,059

Can someone help me build kwboot? It's probably very simple for anyone used to building programs...

I have the src and the required header

Running or gcc kwboot.c or cc kwboot.cproduces an a.out but I'm not sure how to make an executable. Running make kwboot fails with a linker error which I don't understand.
 

ljboiler

Well-Known Member

Reaction score: 105
Messages: 350

Actually, a.out is the executable. Just rename it to kwboot and it's ready to go: mv a.out kwboot.

In the future, gcc -o <executable name> <source file> will give you an executable with the name you want without the extra step.
 

Phishfry

Son of Beastie

Reaction score: 1,424
Messages: 4,208

fetch https://github.com/LeMaker/u-boot/raw/master/tools/kwbimage.h
 

Phishfry

Son of Beastie

Reaction score: 1,424
Messages: 4,208

fetch seems to require some authentication.
So how about you use git and pull the whole project down.
git clone https://github.com/LeMaker/u-boot /u-boot

This will download the entire LeMaker u-boot project to a directory on your computer named /u-boot.
You will probably need more than just header files from here.

If you don't have git installed on your computer download it with pkg install git.
 
OP
OP
B

balanga

Son of Beastie

Reaction score: 140
Messages: 3,059

Code:
wget https://github.com/LeMaker/u-boot/raw/master/tools/kwboot.c
wget https://github.com/LeMaker/u-boot/raw/master/tools/kwbimage.h
gcc -o kwboot kwboot.c
 
OP
OP
B

balanga

Son of Beastie

Reaction score: 140
Messages: 3,059

Whilst it builds OK it doesn't actually work as expected... I had to resort to using a Linux version on Ubuntu - :(
 
OP
OP
B

balanga

Son of Beastie

Reaction score: 140
Messages: 3,059

Can anyone suggest how to go about debugging kwboot to see why it doesn't work on FreeBSD?
 
Top