You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
The text was updated successfully, but these errors were encountered:
Yes, I had seen Resflash and I will give it a try, I was hoping that there might be life left in Flashrd.
On 19/07/2019 09:54, Ján Sáreník wrote:
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<https://stable.rcesoftware.com/resflash/>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#53?email_source=notifications&email_token=ABKRPEAOS2EJDTIKYQVRWLLQAF6K3A5CNFSM4IDR3OB2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2LA4KQ#issuecomment-513150506>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ABKRPEFTPD44C25DW7UJH33QAF6K3ANCNFSM4IDR3OBQ>.
********************************************************************************************************************
This message may contain confidential information. If you are not the intended recipient please inform the
sender that you have received the message in error before deleting it.
Please do not disclose, copy or distribute information in this e-mail or take any action in relation to its contents. To do so is strictly prohibited and may be unlawful. Thank you for your co-operation.
NHSmail is the secure email and directory service available for all NHS staff in England and Scotland. NHSmail is approved for exchanging patient data and other sensitive information with NHSmail and other accredited email services.
For more information and to find out how you can switch, https://portal.nhs.net/help/joiningnhsmail
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 [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
The text was updated successfully, but these errors were encountered: