Re: CTF: UEFI HTTP boot support

2020-06-17 Thread Warner Losh
On Wed, Jun 17, 2020 at 9:30 PM Rodney W. Grimes < freebsd-...@gndrsh.dnsmgr.net> wrote: > > This is what we have running in AWS right now, kinda proof of concept but > > it's not that difficult to generalize: > > > > [root@ip-172-31-10-188 /usr/local/etc/freeswitch]# mdconfig -lv > > md0

Re: CTF: UEFI HTTP boot support

2020-06-17 Thread Rodney W. Grimes
> This is what we have running in AWS right now, kinda proof of concept but > it's not that difficult to generalize: > > [root@ip-172-31-10-188 /usr/local/etc/freeswitch]# mdconfig -lv > md0 preload 160M - > > [root@ip-172-31-10-188 /usr/local/etc/freeswitch]# df > Filesystem

Re: Building modules gives error: "invalid output constraint '=@cce' in asm"

2020-06-17 Thread Rajesh Kumar
HI Andriy Gapon, Thanks. It works. On Wed, Jun 17, 2020 at 11:53 AM Andriy Gapon wrote: > On 17/06/2020 04:53, Rajesh Kumar wrote: > > Then, I am trying to compile the driver modules and hit the > > compilation error. I haven't done "install world" as I don't want the > base > > 12.0 to be

Re: CTF: UEFI HTTP boot support

2020-06-17 Thread Simon J. Gerraty
Warner Losh wrote: > > loader.conf says > > > > rootfs_load="yes" > > rootfs_name="contents.izo" > > rootfs_type="md_image" > > vfs.root.mountfrom="cd9660:/dev/md0.uzip" > > > > contents.izo is uzip'd contents.iso which file(1) > > describes as ISO 9660 CD-ROM filesystem data '' > > > > That's

Re: CTF: UEFI HTTP boot support

2020-06-17 Thread Maxim Sobolev
This is what we have running in AWS right now, kinda proof of concept but it's not that difficult to generalize: [root@ip-172-31-10-188 /usr/local/etc/freeswitch]# mdconfig -lv md0 preload 160M - [root@ip-172-31-10-188 /usr/local/etc/freeswitch]# df Filesystem

Re: CTF: UEFI HTTP boot support

2020-06-17 Thread Miguel C
On Wed, Jun 17, 2020 at 9:28 PM Dave Cottlehuber wrote: > On Wed, 17 Jun 2020, at 17:52, Rodney W. Grimes wrote: > > > Rodney W. Grimes wrote: > > > > > The "fake cd drive" is in the kernel, loader just copies the iso > into > > > > > memory like any other module, and by the time that's done

Re: CTF: UEFI HTTP boot support

2020-06-17 Thread Miguel C
On Wed, Jun 17, 2020 at 7:00 PM Rodney W. Grimes < freebsd-...@gndrsh.dnsmgr.net> wrote: > > On Tue., Jun. 16, 2020, 8:35 a.m. Rodney W. Grimes, < > > freebsd-...@gndrsh.dnsmgr.net> wrote: > > > > > > I've been trying out FreeBSD with raspberry Pi4 (4GB) and wanted to > see > > > > what the state

Re: CTF: UEFI HTTP boot support

2020-06-17 Thread Rebecca Cran
On 6/17/20 2:11 PM, Rodney W. Grimes wrote: Does freeBSD have any way to access these "Virtual Disk" or Virtual CD images once we leave the world of the loader? I believe we do not, as these are BIOS/UEFI devices that require calls into the UEFI code, which, IIRC is gone once we exit the loader

Re: CTF: UEFI HTTP boot support

2020-06-17 Thread Dave Cottlehuber
On Wed, 17 Jun 2020, at 17:52, Rodney W. Grimes wrote: > > Rodney W. Grimes wrote: > > > > The "fake cd drive" is in the kernel, loader just copies the iso into > > > > memory like any other module, and by the time that's done you just > > > > reboot into the newly installed system, which again

Re: magic file update?

2020-06-17 Thread Xin Li
On 6/17/20 8:08 AM, Antoine Brodin wrote: > On Wed, Jun 17, 2020 at 4:00 PM Michael Butler > wrote: >> >> I'm seeing this message repeatedly during port builds. Should I be >> concerned? >> >> file: File 5.39 supports only version 16 magic files. >> `/usr/share/misc/magic.mgc' is version 14 >

Re: CTF: UEFI HTTP boot support

2020-06-17 Thread Rodney W. Grimes
> > > On Jun 17, 2020, at 12:12 PM, Warner Losh wrote: > > > > I missed the start of this thread, so maybe I'm missing a key detail. > > However, I thought UEFI didn't have a RAM-disk, per se, but that we could > > load memory areas and pass that into the kernel using freebsd-only methods. >

Re: CTF: UEFI HTTP boot support

2020-06-17 Thread Rebecca Cran
> On Jun 17, 2020, at 12:12 PM, Warner Losh wrote: > > I missed the start of this thread, so maybe I'm missing a key detail. > However, I thought UEFI didn't have a RAM-disk, per se, but that we could > load memory areas and pass that into the kernel using freebsd-only methods. > But UEFI is

Re: CTF: UEFI HTTP boot support

2020-06-17 Thread Warner Losh
On Wed, Jun 17, 2020 at 12:56 PM Simon J. Gerraty wrote: > Warner Losh wrote: > > > loader.conf says > > > > > > rootfs_load="yes" > > > rootfs_name="contents.izo" > > > rootfs_type="md_image" > > > vfs.root.mountfrom="cd9660:/dev/md0.uzip" > > > > > > contents.izo is uzip'd contents.iso which

Re: CTF: UEFI HTTP boot support

2020-06-17 Thread Warner Losh
On Wed, Jun 17, 2020 at 12:19 PM Rodney W. Grimes < freebsd-...@gndrsh.dnsmgr.net> wrote: > > On Wed, Jun 17, 2020 at 11:53 AM Rodney W. Grimes < > > freebsd-...@gndrsh.dnsmgr.net> wrote: > > > > > > Rodney W. Grimes wrote: > > > > > > The "fake cd drive" is in the kernel, loader just copies the

Re: CTF: UEFI HTTP boot support

2020-06-17 Thread Rodney W. Grimes
> On Wed, Jun 17, 2020 at 11:53 AM Rodney W. Grimes < > freebsd-...@gndrsh.dnsmgr.net> wrote: > > > > Rodney W. Grimes wrote: > > > > > The "fake cd drive" is in the kernel, loader just copies the iso into > > > > > memory like any other module, and by the time that's done you just > > > > >

Re: CTF: UEFI HTTP boot support

2020-06-17 Thread Warner Losh
On Wed, Jun 17, 2020 at 12:06 PM Rebecca Cran wrote: > > > On Jun 17, 2020, at 11:40 AM, Rodney W. Grimes < > freebsd-...@gndrsh.dnsmgr.net> wrote: > > > > Does FreeBSD kernel have a driver that can talk to the UEFI ramdisk? > > I’m fairly sure UEFI generates it as a standard CD drive. > I

Re: CTF: UEFI HTTP boot support

2020-06-17 Thread Warner Losh
On Wed, Jun 17, 2020 at 11:53 AM Rodney W. Grimes < freebsd-...@gndrsh.dnsmgr.net> wrote: > > Rodney W. Grimes wrote: > > > > The "fake cd drive" is in the kernel, loader just copies the iso into > > > > memory like any other module, and by the time that's done you just > > > > reboot into the

Re: CTF: UEFI HTTP boot support

2020-06-17 Thread Rebecca Cran
> On Jun 17, 2020, at 11:40 AM, Rodney W. Grimes > wrote: > > Does FreeBSD kernel have a driver that can talk to the UEFI ramdisk? I’m fairly sure UEFI generates it as a standard CD drive. — Rebecca Cran ___ freebsd-current@freebsd.org mailing

Re: CTF: UEFI HTTP boot support

2020-06-17 Thread Rodney W. Grimes
> On Tue., Jun. 16, 2020, 8:35 a.m. Rodney W. Grimes, < > freebsd-...@gndrsh.dnsmgr.net> wrote: > > > > I've been trying out FreeBSD with raspberry Pi4 (4GB) and wanted to see > > > what the state of HTTP BOOT is in FreeBSD, so I bumped into this! > > > > > > I'm curious if it should be possible

magic file update?

2020-06-17 Thread Michael Butler
I'm seeing this message repeatedly during port builds. Should I be concerned? file: File 5.39 supports only version 16 magic files. `/usr/share/misc/magic.mgc' is version 14 imb ___ freebsd-current@freebsd.org mailing list

Re: CTF: UEFI HTTP boot support

2020-06-17 Thread Rodney W. Grimes
> Rodney W. Grimes wrote: > > > The "fake cd drive" is in the kernel, loader just copies the iso into > > > memory like any other module, and by the time that's done you just > > > reboot into the newly installed system, which again uses > > > > > > vfs.root.mountfrom="cd9660:/dev/md0.uzip" > >

Re: CTF: UEFI HTTP boot support

2020-06-17 Thread Rodney W. Grimes
> On 6/16/20 5:17 AM, Miguel C wrote: > > > I've been trying out FreeBSD with raspberry Pi4 (4GB) and wanted to see > > what the state of HTTP BOOT is in FreeBSD, so I bumped into this! > > > > I'm curious if it should be possible to point to a img/iso directly (I > > tried to use the img.xz

Re: magic file update?

2020-06-17 Thread Antoine Brodin
On Wed, Jun 17, 2020 at 4:00 PM Michael Butler wrote: > > I'm seeing this message repeatedly during port builds. Should I be > concerned? > > file: File 5.39 supports only version 16 magic files. > `/usr/share/misc/magic.mgc' is version 14 Hi, FILES and FILESDIR are overwritten in

Re: Building modules gives error: "invalid output constraint '=@cce' in asm"

2020-06-17 Thread Andriy Gapon
On 17/06/2020 04:53, Rajesh Kumar wrote: > Then, I am trying to compile the driver modules and hit the > compilation error. I haven't done "install world" as I don't want the base > 12.0 to be disturbed. You should do `make buildenv` and then do the module build in the subshell. This way you