Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need help building with OpenBSD 5.6 ? Project Alive ? #53

Open
Keithsc opened this issue Jul 14, 2019 · 2 comments
Open

Need help building with OpenBSD 5.6 ? Project Alive ? #53

Keithsc opened this issue Jul 14, 2019 · 2 comments

Comments

@Keithsc
Copy link

Keithsc commented Jul 14, 2019

Hi I am trying to follow the wiki article "customized chroot builds" and am getting errors that are beyond me.

  1. I guess I should use syspatch instead of openup and am able to run syspatch in the chroot and the patches are downloaded but then I get "Relinking to create unique kernel... failed!"

  2. When I run "cd ~/flashrd; sudo ./flashrd ~/chrbsd" i get the following error.
    I ran "MAKEDEV all" and devices are created but there's just a bpf0 and bpf1 device.

cd ~/flashrd; sudo ./flashrd ~/chrbsd
flashrd 2.0 [email protected]

Creating ramdisk rootfs
bpf10: unknown device
bpf11: unknown device
bpf12: unknown device
bpf511: unknown device
Disk size 952MB (1951488 sectors)
Creating filesystem on /dev/rvnd1a
Installing bootblocks
Generate initial random seeds
In file included from ./elfrdsetroot//elf32.c:2:
./elfrdsetroot/elfrd_size.c:74:1: warning: control may reach end of non-void function [-Wreturn-type]
}
^
./elfrdsetroot/elfrd_size.c:90:6: warning: implicit declaration of function 'elf32_nlist' is invalid in C99 [-Wimplicit-function-declaration]
if (ELFNAME(nlist)(fd, ELFNAME(wantsyms))) {
^
/usr/include/sys/exec_elf.h:721:20: note: expanded from macro 'ELFNAME'
#define ELFNAME(x) CONCAT(elf,CONCAT(ELFSIZE,CONCAT(,x)))
^
/usr/include/sys/exec_elf.h:720:21: note: expanded from macro 'CONCAT'
#define CONCAT(x,y) __CONCAT(x,y)
^
/usr/include/sys/cdefs.h:63:23: note: expanded from macro '__CONCAT'
#define __CONCAT(x,y) x ## y
^
:31:1: note: expanded from here
elf32_nlist
^
In file included from ./elfrdsetroot//elf32.c:2:
./elfrdsetroot/elfrd_size.c:104:7: warning: format specifies type 'unsigned int' but the argument has type 'uint64_t' (aka 'unsigned long long') [-Wformat]
rd_root_size_off);
^~~~~~~~~~~~~~~~
./elfrdsetroot/elfrd_size.c:109:8: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long long' [-Wformat]
rd_root_size_off - (ph->p_vaddr - ph->p_paddr));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./elfrdsetroot/elfrd_size.c:110:49: warning: format specifies type 'unsigned int' but the argument has type 'uint64_t' (aka 'unsigned long long') [-Wformat]
fprintf(stderr, "rd_root_image_off = 0x%x\n", rd_root_image_off);
~~ ^~~~~~~~~~~~~~~~~
%llx
./elfrdsetroot/elfrd_size.c:307:9: warning: implicitly declaring library function 'strcmp' with type 'int (const char *, const char *)' [-Wimplicit-function-declaration]
if (strcmp(&strtab[soff], sym) != 0 &&
^
./elfrdsetroot/elfrd_size.c:307:9: note: include the header <string.h> or explicitly provide a declaration for 'strcmp'
6 warnings generated.
In file included from ./elfrdsetroot//elf64.c:2:
./elfrdsetroot/elfrd_size.c:74:1: warning: control may reach end of non-void function [-Wreturn-type]
}
^
./elfrdsetroot/elfrd_size.c:90:6: warning: implicit declaration of function 'elf64_nlist' is invalid in C99 [-Wimplicit-function-declaration]
if (ELFNAME(nlist)(fd, ELFNAME(wantsyms))) {
^
/usr/include/sys/exec_elf.h:721:20: note: expanded from macro 'ELFNAME'
#define ELFNAME(x) CONCAT(elf,CONCAT(ELFSIZE,CONCAT(
,x)))
^
/usr/include/sys/exec_elf.h:720:21: note: expanded from macro 'CONCAT'
#define CONCAT(x,y) __CONCAT(x,y)
^
/usr/include/sys/cdefs.h:63:23: note: expanded from macro '__CONCAT'
#define __CONCAT(x,y) x ## y
^
:31:1: note: expanded from here
elf64_nlist
^
In file included from ./elfrdsetroot//elf64.c:2:
./elfrdsetroot/elfrd_size.c:104:7: warning: format specifies type 'unsigned int' but the argument has type 'uint64_t' (aka 'unsigned long long') [-Wformat]
rd_root_size_off);
^~~~~~~~~~~~~~~~
./elfrdsetroot/elfrd_size.c:107:8: warning: format specifies type 'unsigned int' but the argument has type 'Elf64_Addr' (aka 'unsigned long long') [-Wformat]
ph->p_vaddr, ph->p_paddr,
^~~~~~~~~~~
./elfrdsetroot/elfrd_size.c:107:21: warning: format specifies type 'unsigned int' but the argument has type 'Elf64_Addr' (aka 'unsigned long long') [-Wformat]
ph->p_vaddr, ph->p_paddr,
^~~~~~~~~~~
./elfrdsetroot/elfrd_size.c:108:8: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long long' [-Wformat]
(ph->p_vaddr - ph->p_paddr),
^~~~~~~~~~~~~~~~~~~~~~~~~~~
./elfrdsetroot/elfrd_size.c:109:8: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long long' [-Wformat]
rd_root_size_off - (ph->p_vaddr - ph->p_paddr));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./elfrdsetroot/elfrd_size.c:110:49: warning: format specifies type 'unsigned int' but the argument has type 'uint64_t' (aka 'unsigned long long') [-Wformat]
fprintf(stderr, "rd_root_image_off = 0x%x\n", rd_root_image_off);
~~ ^~~~~~~~~~~~~~~~~
%llx
./elfrdsetroot/elfrd_size.c:307:9: warning: implicitly declaring library function 'strcmp' with type 'int (const char *, const char *)' [-Wimplicit-function-declaration]
if (strcmp(&strtab[soff], sym) != 0 &&
^
./elfrdsetroot/elfrd_size.c:307:9: note: include the header <string.h> or explicitly provide a declaration for 'strcmp'
9 warnings generated.
Configuring FLASHRD, FLASHRD.MP kernels
Compiling FLASHRD kernel (make depend) (make)cp: bsd: No such file or directory
% cp bsd /tmp/flashrd.G8G0eb/tmpmnt/bsd failure
% ./mkkern failure
% TMPDIR: /tmp/flashrd.G8G0eb

Any help would be appreciated.
Thanks
Keith

@jsarenik
Copy link

No idea if this project is still alive, but seems not.

In case an unmodified OpenBSD would work for you, have a look at resflash

@Keithsc
Copy link
Author

Keithsc commented Jul 19, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants