-
Notifications
You must be signed in to change notification settings - Fork 14
Description
Hi I am trying to follow the wiki article "customized chroot builds" and am getting errors that are beyond me.
-
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!"
-
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 chris@nmedia.net
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