Re: EFI booting from external USB pen drive

2018-07-06 Thread Rodney W. Grimes
> On 2018-07-06 04:17, Warner Losh wrote:
> > On Thu, Jul 5, 2018 at 7:11 PM, Rodney W. Grimes <
> > freebsd-...@pdx.rh.cn85.dnsmgr.net> wrote:
> > 
> >> > On 5 Jul 2018, at 18:18, Rodney W. Grimes wrote:
> >> >
> >> > > [ Charset UTF-8 unsupported, converting... ]
> >> > >> On 5 Jul 2018, at 17:19, Warner Losh wrote:
> >> > >>
> >> > >>> FAT12 isn't good for UEFI. Use FAT16 or FAT32.
> >> > >>
> >> > >> We use it for the default image we built and the wiki suggests it as
> >> > >> well at https://wiki.freebsd.org/UEFI#CD.2FDVD_Boot_under_UEFI
> >> > >
> >> > > IIRC FreeBSD recently cnahged to FAT16 or 32 on these
> >> > > as the size got pushed up to be larger than what FAT12
> >> > > can access.
> >> >
> >> > https://svnweb.freebsd.org/base/head/stand/efi/boot1/
> >> generate-fat.sh?annotate=332561#l45
> >> >
> >> > nope.
> >> 
> >> That is not the code we build release images with,
> >> that is Warners tests for the boot loader.
> >> 
> > 
> > No, that's the actual code that generates boot1.efiffat.
> > 
> > Warner
> 
>   Yup, and EFI have no problem at all with this.
>   FAT12 can work with all EFI implementation, the problem is the size of 
> the FAT12 part that sometimes causes problems.
>   Rod, you are refering to the arm images which do not uses makefs or 
> generate-fat.sh but using md device and newfs_msdos.

Yes, your right Emmanuel, thanks.  I thought that was the last
place fat12 was in use, but I see there is this ugly bit of evil
still around.

-- 
Rod Grimes rgri...@freebsd.org
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: EFI booting from external USB pen drive

2018-07-06 Thread Emmanuel Vadot

On 2018-07-06 09:34, Bjoern A. Zeeb wrote:

On 6 Jul 2018, at 6:34, Emmanuel Vadot wrote:

 FAT12 can work with all EFI implementation, the problem is the size 
of the FAT12 part that sometimes causes problems.


Ok, now that we are all on the same page, changing it to newfs_msdos
-F 32  did not make a change to my problem of the boot menu changing
to the blank screen and immediately returning to itself.

/bz


 What boot menu and what blank screen ?

--
Emmanuel Vadot  
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: EFI booting from external USB pen drive

2018-07-06 Thread Bjoern A. Zeeb

On 6 Jul 2018, at 6:34, Emmanuel Vadot wrote:

 FAT12 can work with all EFI implementation, the problem is the size 
of the FAT12 part that sometimes causes problems.


Ok, now that we are all on the same page, changing it to newfs_msdos -F 
32  did not make a change to my problem of the boot menu changing to the 
blank screen and immediately returning to itself.


/bz
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: EFI booting from external USB pen drive

2018-07-06 Thread Emmanuel Vadot

On 2018-07-06 04:17, Warner Losh wrote:

On Thu, Jul 5, 2018 at 7:11 PM, Rodney W. Grimes <
freebsd-...@pdx.rh.cn85.dnsmgr.net> wrote:


> On 5 Jul 2018, at 18:18, Rodney W. Grimes wrote:
>
> > [ Charset UTF-8 unsupported, converting... ]
> >> On 5 Jul 2018, at 17:19, Warner Losh wrote:
> >>
> >>> FAT12 isn't good for UEFI. Use FAT16 or FAT32.
> >>
> >> We use it for the default image we built and the wiki suggests it as
> >> well at https://wiki.freebsd.org/UEFI#CD.2FDVD_Boot_under_UEFI
> >
> > IIRC FreeBSD recently cnahged to FAT16 or 32 on these
> > as the size got pushed up to be larger than what FAT12
> > can access.
>
> https://svnweb.freebsd.org/base/head/stand/efi/boot1/
generate-fat.sh?annotate=332561#l45
>
> nope.

That is not the code we build release images with,
that is Warners tests for the boot loader.



No, that's the actual code that generates boot1.efiffat.

Warner


 Yup, and EFI have no problem at all with this.
 FAT12 can work with all EFI implementation, the problem is the size of 
the FAT12 part that sometimes causes problems.
 Rod, you are refering to the arm images which do not uses makefs or 
generate-fat.sh but using md device and newfs_msdos.


--
Emmanuel Vadot  
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: EFI booting from external USB pen drive

2018-07-05 Thread Warner Losh
On Thu, Jul 5, 2018 at 7:11 PM, Rodney W. Grimes <
freebsd-...@pdx.rh.cn85.dnsmgr.net> wrote:

> > On 5 Jul 2018, at 18:18, Rodney W. Grimes wrote:
> >
> > > [ Charset UTF-8 unsupported, converting... ]
> > >> On 5 Jul 2018, at 17:19, Warner Losh wrote:
> > >>
> > >>> FAT12 isn't good for UEFI. Use FAT16 or FAT32.
> > >>
> > >> We use it for the default image we built and the wiki suggests it as
> > >> well at https://wiki.freebsd.org/UEFI#CD.2FDVD_Boot_under_UEFI
> > >
> > > IIRC FreeBSD recently cnahged to FAT16 or 32 on these
> > > as the size got pushed up to be larger than what FAT12
> > > can access.
> >
> > https://svnweb.freebsd.org/base/head/stand/efi/boot1/
> generate-fat.sh?annotate=332561#l45
> >
> > nope.
>
> That is not the code we build release images with,
> that is Warners tests for the boot loader.
>

No, that's the actual code that generates boot1.efiffat.

Warner
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: EFI booting from external USB pen drive

2018-07-05 Thread Rodney W. Grimes
> On 5 Jul 2018, at 18:18, Rodney W. Grimes wrote:
> 
> > [ Charset UTF-8 unsupported, converting... ]
> >> On 5 Jul 2018, at 17:19, Warner Losh wrote:
> >>
> >>> FAT12 isn't good for UEFI. Use FAT16 or FAT32.
> >>
> >> We use it for the default image we built and the wiki suggests it as
> >> well at https://wiki.freebsd.org/UEFI#CD.2FDVD_Boot_under_UEFI
> >
> > IIRC FreeBSD recently cnahged to FAT16 or 32 on these
> > as the size got pushed up to be larger than what FAT12
> > can access.
> 
> https://svnweb.freebsd.org/base/head/stand/efi/boot1/generate-fat.sh?annotate=332561#l45
> 
> nope.

That is not the code we build release images with,
that is Warners tests for the boot loader.


-- 
Rod Grimes rgri...@freebsd.org
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: EFI booting from external USB pen drive

2018-07-05 Thread Warner Losh
On Thu, Jul 5, 2018 at 3:31 PM, Bjoern A. Zeeb <
bzeeb-li...@lists.zabbadoz.net> wrote:

> On 5 Jul 2018, at 18:18, Rodney W. Grimes wrote:
>
> [ Charset UTF-8 unsupported, converting... ]
>>
>>> On 5 Jul 2018, at 17:19, Warner Losh wrote:
>>>
>>> FAT12 isn't good for UEFI. Use FAT16 or FAT32.

>>>
>>> We use it for the default image we built and the wiki suggests it as
>>> well at https://wiki.freebsd.org/UEFI#CD.2FDVD_Boot_under_UEFI
>>>
>>
>> IIRC FreeBSD recently cnahged to FAT16 or 32 on these
>> as the size got pushed up to be larger than what FAT12
>> can access.
>>
>
> https://svnweb.freebsd.org/base/head/stand/efi/boot1/generat
> e-fat.sh?annotate=332561#l45
>
> nope.
>

Yea, this should die a firey death in a fire, burned with flames, and the
ashes stirred into a paste that's tossed overboard into the ocean :)

But before that glorious day, I have a few last niggles to fix in
loader.efi.

Warner
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: EFI booting from external USB pen drive

2018-07-05 Thread Bjoern A. Zeeb

On 5 Jul 2018, at 18:18, Rodney W. Grimes wrote:


[ Charset UTF-8 unsupported, converting... ]

On 5 Jul 2018, at 17:19, Warner Losh wrote:


FAT12 isn't good for UEFI. Use FAT16 or FAT32.


We use it for the default image we built and the wiki suggests it as
well at https://wiki.freebsd.org/UEFI#CD.2FDVD_Boot_under_UEFI


IIRC FreeBSD recently cnahged to FAT16 or 32 on these
as the size got pushed up to be larger than what FAT12
can access.


https://svnweb.freebsd.org/base/head/stand/efi/boot1/generate-fat.sh?annotate=332561#l45

nope.
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: EFI booting from external USB pen drive

2018-07-05 Thread Warner Losh
On Thu, Jul 5, 2018, 12:55 PM Bjoern A. Zeeb 
wrote:

> On 5 Jul 2018, at 17:19, Warner Losh wrote:
>
> > FAT12 isn't good for UEFI. Use FAT16 or FAT32.
>
> We use it for the default image we built and the wiki suggests it as
> well at https://wiki.freebsd.org/UEFI#CD.2FDVD_Boot_under_UEFI
>
> I wonder where this “default” came from?
>

The original UEFI port... they didn't check the standard's recommendations.
It worked then, but experience has shown FAT12 doesn't work everywhere.

Warner

>
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: EFI booting from external USB pen drive

2018-07-05 Thread Rodney W. Grimes
[ Charset UTF-8 unsupported, converting... ]
> On 5 Jul 2018, at 17:19, Warner Losh wrote:
> 
> > FAT12 isn't good for UEFI. Use FAT16 or FAT32.
> 
> We use it for the default image we built and the wiki suggests it as 
> well at https://wiki.freebsd.org/UEFI#CD.2FDVD_Boot_under_UEFI

IIRC FreeBSD recently cnahged to FAT16 or 32 on these
as the size got pushed up to be larger than what FAT12
can access.

> I wonder where this ?default? came from?
> 
> /bz

-- 
Rod Grimes rgri...@freebsd.org
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: EFI booting from external USB pen drive

2018-07-05 Thread Bjoern A. Zeeb

On 5 Jul 2018, at 17:19, Warner Losh wrote:


FAT12 isn't good for UEFI. Use FAT16 or FAT32.


We use it for the default image we built and the wiki suggests it as 
well at https://wiki.freebsd.org/UEFI#CD.2FDVD_Boot_under_UEFI


I wonder where this “default” came from?

/bz


___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: EFI booting from external USB pen drive

2018-07-05 Thread Warner Losh
FAT12 isn't good for UEFI. Use FAT16 or FAT32.

Warner

On Thu, Jul 5, 2018, 9:32 AM Bjoern A. Zeeb 
wrote:

> Hi,
>
> while I can boot memstick images just fine (which are created using
> makefs/mkimg), doing the same thing using gpart/newfs_msdos -F 12/.. I
> am not able to get anything that boots.
>
> On a Thinkpad (secure boot is off) from the “boot device chooser from
> ‘BIOS’” I get a quick blank screen and am back at the chooser.
> I’ve tried the gpart “thinkpad hack” as well as trying an MBR (why
> that should work I don’t know but the memstick one does) and GPT
> options of various kinds.
>
>
> Anyone successfully done this lately?
>
>
> /bz
> ___
> freebsd-current@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
>
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: EFI booting from external USB pen drive

2018-07-05 Thread David Mimms
Bjoern,

I had this problem earlier this week while using 
FreeBSD-12.0-CURRENT-amd64-20180628-r335760-memstick.img on my ThinkPad P50.

I had used `dd` to place the img file on a partition (e.g. /dev/sdb1) of the 
USB pen drive and it wouldn't boot properly.

After I used `dd` to place the img on the entire device (e.g. /dev/sdb), I 
noticed that it had its own partition scheme with three partitions, and that 
booted just fine.

DM


On Thursday, July 5, 2018 10:30:51 AM -04 Bjoern A. Zeeb wrote:
> Hi,
> 
> while I can boot memstick images just fine (which are created using 
> makefs/mkimg), doing the same thing using gpart/newfs_msdos -F 12/.. I 
> am not able to get anything that boots.
> 
> On a Thinkpad (secure boot is off) from the “boot device chooser from 
> ‘BIOS’” I get a quick blank screen and am back at the chooser.  
> I’ve tried the gpart “thinkpad hack” as well as trying an MBR (why 
> that should work I don’t know but the memstick one does) and GPT 
> options of various kinds.
> 
> 
> Anyone successfully done this lately?
> 
> 
> /bz
> ___
> freebsd-current@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
> 




___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: EFI booting from external USB pen drive

2018-07-05 Thread Emmanuel Vadot

On 2018-07-05 16:30, Bjoern A. Zeeb wrote:

Hi,

while I can boot memstick images just fine (which are created using
makefs/mkimg), doing the same thing using gpart/newfs_msdos -F 12/.. I
am not able to get anything that boots.


 What is the size for the fat12 partition ? Everything over ~30MB will 
fail.

 Go to fat16/fat32 with a size of 150MB just to be sure.


On a Thinkpad (secure boot is off) from the “boot device chooser from
‘BIOS’” I get a quick blank screen and am back at the chooser.  I’ve
tried the gpart “thinkpad hack” as well as trying an MBR (why that
should work I don’t know but the memstick one does) and GPT options of
various kinds.


Anyone successfully done this lately?


/bz
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to 
"freebsd-current-unsubscr...@freebsd.org"


--
Emmanuel Vadot  
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"