Re: uefi boot on Apple Mac

2014-09-20 Thread Huang Wen Hui
I finally make MacBookPro 11,3 UEFI boot successfully:
1. copy boot1.efi to /EFI/boot/BOOTx64.efi in EFI partition
2. Create a small UFS partition in internal SSD, and installworld and
installkernel.
3. Without USB stick, then system really can boot, although the loader
still stop at:
Start @ 0x802d9000...
4. I can ssh log in and found that culprit is XHCI USB controller does not
work in UEFI mode.
5. Xorg and nvidia driver also works.
6. verbose boot log can be found at:
http://sw.gddsn.org.cn/freebsd/uefi-messages.txt

Cheers,
Huang Wen Hui


2014-08-10 16:44 GMT+08:00 Anders Bolt Evensen :

> If you're interested, you can try out the following ISO:
> https://www.dropbox.com/s/srbunx0agrokcs3/freebsd-
> current-uefi-bios-amd64.iso
>
> The image was built on Friday 8th of August for the amd64 platform.
>
> I tested out the EFI part on VirtualBox (UEFI 2.X) and my MacBook Pro 17
> inch from 2011 (EFI 1.10), and as far as EFI goes, I successfully booted
> the image on both my Mac and VirtualBox (however, booting the image from
> BIOS using my Mac was a different story).
>
> So, as I said, as far as (U)EFI goes, the image should work on UEFI 2.X
> based PC's and EFI 1.10 based Macs.
>
> On 12/07/14 19:22, Nathan Whitehorn wrote:
>
>> I'd point out that, as of last week, the standard -CURRENT ISOs (and
>> generate-release.sh script) make EFI-bootable media by default. All the
>> snapshots should have this done already, for instance.
>> -Nathan
>>
> I wasn't aware of that, but thanks for the info. :)
>
>
>> On 07/12/14 03:09, Anders Bolt-Evensen wrote:
>>
>>> I also got a message like that when I booted from a USB stick on a
>>> MacBookPro8,3 (17 inch, late 2011).
>>>
>>> I fixed it by creating a custom ISO image and burned that onto a DVD
>>> using an external DVD drive.
>>> The UEFI installer boots fine from this external DVD drive.
>>>
>>> Here is how I did it:
>>>
>>> Genereste an ISO with the FreeBSD-CURRENT kernel, mount the ISO and copy
>>> all files from the root directory in the ISO and unmount
>>> > cd /usr/src/release
>>> > sh ./generate-release.sh # You may have to run “make buildworld”
>>> and be connected to the internet to install required ports.
>>> > mount -t cd9660 /scratch/R/release/FreeBSD-something-disc1.iso
>>> /mnt
>>> > mkdir freebsd_generic_installer
>>> #Files copied to the directory in the next command will be copied to
>>> a new ISO in step 3
>>> > cp -R /mnt/ freebsd_generic_installer/
>>> > umount /mnt
>>> 2. Create a FAT filesystem image and place the loader in it in the
>>> default path that UEFI will look for (the following steps are copied from
>>> https://wiki.freebsd.org/UEFI#CD.2FDVD_Boot_under_UEFI):
>>> > dd if=/dev/zero of=efiboot.img bs=4k count=100
>>> > mdconfig -a -t vnode -f efiboot.img
>>> > newfs_msdos -F 12 -m 0xf8 /dev/md0
>>> > mount -t msdosfs /dev/md0 /mnt
>>> > mkdir -p /mnt/efi/boot
>>> > cp loader.efi /mnt/efi/boot/bootx64.efi
>>> > umount /mnt
>>> > mdconfig -d -u 0
>>>
>>> 3. Create the custom ISO image. Please make sure that the entry in
>>> freebsd_generic_installer/etc/fstab matches the label you choose in the
>>> command below.
>>> > makefs -t cd9660 -o bootimage='i386;efiboot.img' -o no-emul-boot
>>> -o rockridge -o label=“FREEBSD_UEFI_INSTALL" -o publisher="test"
>>> uefi-test.iso freebsd_generic_installer/
>>>
>>> To get the example in the command above to work, please make sure that
>>> the entry in freebsd_generic_installer/etc/fstab reads
>>> "/dev/iso9660/FREEBSD_UEFI_INSTALL/cd9660ro0 0"
>>>
>>> 4. Burn the image to DVD, reboot your system and choose “EFI Boot”. Note
>>> that unless you are using a EFI console like rEFIt or rEFInd, you may have
>>> to kind of wait a couple of minutes while the kernel is loading before
>>> anything appears on the screen.
>>>
>>>
>>> On 04/07/14 16:34, Huang Wen Hui wrote:
>>>
 Hi,
 On my MacbookPro11,3, I got this error message:

 http://sw.gddsn.org.cn/freebsd/uefi.jpg

 cheers,

 Huang WenHui

 2014-07-04 22:13 GMT+08:00 Ed Maste :

  On 24 May 2014 19:39, Rafael Espíndola 
> wrote:
>
>> Yes, I got that in the mac laptops I tried, it worked on a Mac Pro. It
>> might be the frame buffer corruption that Ed Maste was mentioning.
>>
> I purchased a new MacBook Air yesterday (model identifier
> MacBookAir6,2).  UEFI boot and vt(4) worked correctly.  (My image
> included Rafael's patch; I haven't tried a boot without.)
>
> I also committed a change to display the framebuffer parameters
> (address, dimensions, etc.) on boot, in order to help identify the
> source of this issue.  If you have a moment can you build a new USB
> stick image and give it a try?
>
> -Ed
>
>  ___
 freebsd-current@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-

Re: uefi boot on Apple Mac

2014-08-10 Thread Anders Bolt Evensen

If you're interested, you can try out the following ISO:
https://www.dropbox.com/s/srbunx0agrokcs3/freebsd-current-uefi-bios-amd64.iso

The image was built on Friday 8th of August for the amd64 platform.

I tested out the EFI part on VirtualBox (UEFI 2.X) and my MacBook Pro 17 
inch from 2011 (EFI 1.10), and as far as EFI goes, I successfully booted 
the image on both my Mac and VirtualBox (however, booting the image from 
BIOS using my Mac was a different story).


So, as I said, as far as (U)EFI goes, the image should work on UEFI 2.X 
based PC's and EFI 1.10 based Macs.


On 12/07/14 19:22, Nathan Whitehorn wrote:
I'd point out that, as of last week, the standard -CURRENT ISOs (and 
generate-release.sh script) make EFI-bootable media by default. All 
the snapshots should have this done already, for instance.

-Nathan

I wasn't aware of that, but thanks for the info. :)



On 07/12/14 03:09, Anders Bolt-Evensen wrote:
I also got a message like that when I booted from a USB stick on a 
MacBookPro8,3 (17 inch, late 2011).


I fixed it by creating a custom ISO image and burned that onto a DVD 
using an external DVD drive.

The UEFI installer boots fine from this external DVD drive.

Here is how I did it:

Genereste an ISO with the FreeBSD-CURRENT kernel, mount the ISO and 
copy all files from the root directory in the ISO and unmount

> cd /usr/src/release
> sh ./generate-release.sh # You may have to run “make 
buildworld” and be connected to the internet to install required ports.
> mount -t cd9660 /scratch/R/release/FreeBSD-something-disc1.iso 
/mnt

> mkdir freebsd_generic_installer
#Files copied to the directory in the next command will be copied 
to a new ISO in step 3

> cp -R /mnt/ freebsd_generic_installer/
> umount /mnt
2. Create a FAT filesystem image and place the loader in it in the 
default path that UEFI will look for (the following steps are copied 
from https://wiki.freebsd.org/UEFI#CD.2FDVD_Boot_under_UEFI):

> dd if=/dev/zero of=efiboot.img bs=4k count=100
> mdconfig -a -t vnode -f efiboot.img
> newfs_msdos -F 12 -m 0xf8 /dev/md0
> mount -t msdosfs /dev/md0 /mnt
> mkdir -p /mnt/efi/boot
> cp loader.efi /mnt/efi/boot/bootx64.efi
> umount /mnt
> mdconfig -d -u 0

3. Create the custom ISO image. Please make sure that the entry in 
freebsd_generic_installer/etc/fstab matches the label you choose in 
the command below.
> makefs -t cd9660 -o bootimage='i386;efiboot.img' -o 
no-emul-boot -o rockridge -o label=“FREEBSD_UEFI_INSTALL" -o 
publisher="test" uefi-test.iso freebsd_generic_installer/


To get the example in the command above to work, please make sure 
that the entry in freebsd_generic_installer/etc/fstab reads

"/dev/iso9660/FREEBSD_UEFI_INSTALL/cd9660ro0 0"

4. Burn the image to DVD, reboot your system and choose “EFI Boot”. 
Note that unless you are using a EFI console like rEFIt or rEFInd, 
you may have to kind of wait a couple of minutes while the kernel is 
loading before anything appears on the screen.



On 04/07/14 16:34, Huang Wen Hui wrote:

Hi,
On my MacbookPro11,3, I got this error message:

http://sw.gddsn.org.cn/freebsd/uefi.jpg

cheers,

Huang WenHui

2014-07-04 22:13 GMT+08:00 Ed Maste :

On 24 May 2014 19:39, Rafael Espíndola  
wrote:
Yes, I got that in the mac laptops I tried, it worked on a Mac 
Pro. It

might be the frame buffer corruption that Ed Maste was mentioning.

I purchased a new MacBook Air yesterday (model identifier
MacBookAir6,2).  UEFI boot and vt(4) worked correctly.  (My image
included Rafael's patch; I haven't tried a boot without.)

I also committed a change to display the framebuffer parameters
(address, dimensions, etc.) on boot, in order to help identify the
source of this issue.  If you have a moment can you build a new USB
stick image and give it a try?

-Ed


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


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






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

Re: uefi boot on Apple Mac

2014-07-12 Thread Nathan Whitehorn
I'd point out that, as of last week, the standard -CURRENT ISOs (and 
generate-release.sh script) make EFI-bootable media by default. All the 
snapshots should have this done already, for instance.

-Nathan

On 07/12/14 03:09, Anders Bolt-Evensen wrote:
I also got a message like that when I booted from a USB stick on a 
MacBookPro8,3 (17 inch, late 2011).


I fixed it by creating a custom ISO image and burned that onto a DVD 
using an external DVD drive.

The UEFI installer boots fine from this external DVD drive.

Here is how I did it:

Genereste an ISO with the FreeBSD-CURRENT kernel, mount the ISO and 
copy all files from the root directory in the ISO and unmount

> cd /usr/src/release
> sh ./generate-release.sh # You may have to run “make buildworld” 
and be connected to the internet to install required ports.

> mount -t cd9660 /scratch/R/release/FreeBSD-something-disc1.iso /mnt
> mkdir freebsd_generic_installer
#Files copied to the directory in the next command will be copied 
to a new ISO in step 3

> cp -R /mnt/ freebsd_generic_installer/
> umount /mnt
2. Create a FAT filesystem image and place the loader in it in the 
default path that UEFI will look for (the following steps are copied 
from https://wiki.freebsd.org/UEFI#CD.2FDVD_Boot_under_UEFI):

> dd if=/dev/zero of=efiboot.img bs=4k count=100
> mdconfig -a -t vnode -f efiboot.img
> newfs_msdos -F 12 -m 0xf8 /dev/md0
> mount -t msdosfs /dev/md0 /mnt
> mkdir -p /mnt/efi/boot
> cp loader.efi /mnt/efi/boot/bootx64.efi
> umount /mnt
> mdconfig -d -u 0

3. Create the custom ISO image. Please make sure that the entry in 
freebsd_generic_installer/etc/fstab matches the label you choose in 
the command below.
> makefs -t cd9660 -o bootimage='i386;efiboot.img' -o no-emul-boot 
-o rockridge -o label=“FREEBSD_UEFI_INSTALL" -o publisher="test" 
uefi-test.iso freebsd_generic_installer/


To get the example in the command above to work, please make sure that 
the entry in freebsd_generic_installer/etc/fstab reads

"/dev/iso9660/FREEBSD_UEFI_INSTALL/cd9660ro0 0"

4. Burn the image to DVD, reboot your system and choose “EFI Boot”. 
Note that unless you are using a EFI console like rEFIt or rEFInd, you 
may have to kind of wait a couple of minutes while the kernel is 
loading before anything appears on the screen.



On 04/07/14 16:34, Huang Wen Hui wrote:

Hi,
On my MacbookPro11,3, I got this error message:

http://sw.gddsn.org.cn/freebsd/uefi.jpg

cheers,

Huang WenHui

2014-07-04 22:13 GMT+08:00 Ed Maste :

On 24 May 2014 19:39, Rafael Espíndola  
wrote:

Yes, I got that in the mac laptops I tried, it worked on a Mac Pro. It
might be the frame buffer corruption that Ed Maste was mentioning.

I purchased a new MacBook Air yesterday (model identifier
MacBookAir6,2).  UEFI boot and vt(4) worked correctly.  (My image
included Rafael's patch; I haven't tried a boot without.)

I also committed a change to display the framebuffer parameters
(address, dimensions, etc.) on boot, in order to help identify the
source of this issue.  If you have a moment can you build a new USB
stick image and give it a try?

-Ed


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


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




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

Re: uefi boot on Apple Mac

2014-07-12 Thread Adam McDougall
I could boot from USB but the console stops after printing the
resolution.  I tried on a macbookpro of unknown age (not brand new, not
very old) and a newer Air.  I could tell by the way my USB key blinked
that it actually finished booting and went to the installer, and would
shut down properly when I hit the power button.  I modified my USB key
to enable a vt100 serial console on /dev/cuaU0 in /etc/ttys and used a
USB serial console where I could login and run bsdinstall if I wanted.
I was able to finish a bootable uefi install to a second USB key but
the console on all of these installs stops after printing the
resolution.  It was not clear to me if it that means it just doesn't
support the screen or what.  X claimed it could not find a console.

On 07/12/2014 10:24, Huang Wen Hui wrote:
> As loader.efi and kernel not change at all from USB to CD, I am confuse why
> you can boot from CD.
> Anyway, I try to boot from CD as you suggest, but I got the same result as
> before:(
> 
> 
> 2014-07-12 18:09 GMT+08:00 Anders Bolt-Evensen :
> 
>> I also got a message like that when I booted from a USB stick on a
>> MacBookPro8,3 (17 inch, late 2011).
>>
>> I fixed it by creating a custom ISO image and burned that onto a DVD using
>> an external DVD drive.
>> The UEFI installer boots fine from this external DVD drive.
>>
>> Here is how I did it:
>>
>> Genereste an ISO with the FreeBSD-CURRENT kernel, mount the ISO and copy
>> all files from the root directory in the ISO and unmount
>> > cd /usr/src/release
>> > sh ./generate-release.sh # You may have to run “make buildworld” and
>> be connected to the internet to install required ports.
>> > mount -t cd9660 /scratch/R/release/FreeBSD-something-disc1.iso /mnt
>> > mkdir freebsd_generic_installer
>> #Files copied to the directory in the next command will be copied to a
>> new ISO in step 3
>> > cp -R /mnt/ freebsd_generic_installer/
>> > umount /mnt
>> 2. Create a FAT filesystem image and place the loader in it in the default
>> path that UEFI will look for (the following steps are copied from
>> https://wiki.freebsd.org/UEFI#CD.2FDVD_Boot_under_UEFI):
>> > dd if=/dev/zero of=efiboot.img bs=4k count=100
>> > mdconfig -a -t vnode -f efiboot.img
>> > newfs_msdos -F 12 -m 0xf8 /dev/md0
>> > mount -t msdosfs /dev/md0 /mnt
>> > mkdir -p /mnt/efi/boot
>> > cp loader.efi /mnt/efi/boot/bootx64.efi
>> > umount /mnt
>> > mdconfig -d -u 0
>>
>> 3. Create the custom ISO image. Please make sure that the entry in
>> freebsd_generic_installer/etc/fstab matches the label you choose in the
>> command below.
>> > makefs -t cd9660 -o bootimage='i386;efiboot.img' -o no-emul-boot -o
>> rockridge -o label=“FREEBSD_UEFI_INSTALL" -o publisher="test" uefi-test.iso
>> freebsd_generic_installer/
>>
>> To get the example in the command above to work, please make sure that the
>> entry in freebsd_generic_installer/etc/fstab reads
>> "/dev/iso9660/FREEBSD_UEFI_INSTALL/cd9660ro0 0"
>>
>> 4. Burn the image to DVD, reboot your system and choose “EFI Boot”. Note
>> that unless you are using a EFI console like rEFIt or rEFInd, you may have
>> to kind of wait a couple of minutes while the kernel is loading before
>> anything appears on the screen.
>>
>>
>>
>> On 04/07/14 16:34, Huang Wen Hui wrote:
>>
>>> Hi,
>>> On my MacbookPro11,3, I got this error message:
>>>
>>> http://sw.gddsn.org.cn/freebsd/uefi.jpg
>>>
>>> cheers,
>>>
>>> Huang WenHui
>>>
>>> 2014-07-04 22:13 GMT+08:00 Ed Maste :
>>>
>>>  On 24 May 2014 19:39, Rafael Espíndola 
 wrote:

> Yes, I got that in the mac laptops I tried, it worked on a Mac Pro. It
> might be the frame buffer corruption that Ed Maste was mentioning.
>
 I purchased a new MacBook Air yesterday (model identifier
 MacBookAir6,2).  UEFI boot and vt(4) worked correctly.  (My image
 included Rafael's patch; I haven't tried a boot without.)

 I also committed a change to display the framebuffer parameters
 (address, dimensions, etc.) on boot, in order to help identify the
 source of this issue.  If you have a moment can you build a new USB
 stick image and give it a try?

 -Ed

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

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

Re: uefi boot on Apple Mac

2014-07-12 Thread Huang Wen Hui
As loader.efi and kernel not change at all from USB to CD, I am confuse why
you can boot from CD.
Anyway, I try to boot from CD as you suggest, but I got the same result as
before:(


2014-07-12 18:09 GMT+08:00 Anders Bolt-Evensen :

> I also got a message like that when I booted from a USB stick on a
> MacBookPro8,3 (17 inch, late 2011).
>
> I fixed it by creating a custom ISO image and burned that onto a DVD using
> an external DVD drive.
> The UEFI installer boots fine from this external DVD drive.
>
> Here is how I did it:
>
> Genereste an ISO with the FreeBSD-CURRENT kernel, mount the ISO and copy
> all files from the root directory in the ISO and unmount
> > cd /usr/src/release
> > sh ./generate-release.sh # You may have to run “make buildworld” and
> be connected to the internet to install required ports.
> > mount -t cd9660 /scratch/R/release/FreeBSD-something-disc1.iso /mnt
> > mkdir freebsd_generic_installer
> #Files copied to the directory in the next command will be copied to a
> new ISO in step 3
> > cp -R /mnt/ freebsd_generic_installer/
> > umount /mnt
> 2. Create a FAT filesystem image and place the loader in it in the default
> path that UEFI will look for (the following steps are copied from
> https://wiki.freebsd.org/UEFI#CD.2FDVD_Boot_under_UEFI):
> > dd if=/dev/zero of=efiboot.img bs=4k count=100
> > mdconfig -a -t vnode -f efiboot.img
> > newfs_msdos -F 12 -m 0xf8 /dev/md0
> > mount -t msdosfs /dev/md0 /mnt
> > mkdir -p /mnt/efi/boot
> > cp loader.efi /mnt/efi/boot/bootx64.efi
> > umount /mnt
> > mdconfig -d -u 0
>
> 3. Create the custom ISO image. Please make sure that the entry in
> freebsd_generic_installer/etc/fstab matches the label you choose in the
> command below.
> > makefs -t cd9660 -o bootimage='i386;efiboot.img' -o no-emul-boot -o
> rockridge -o label=“FREEBSD_UEFI_INSTALL" -o publisher="test" uefi-test.iso
> freebsd_generic_installer/
>
> To get the example in the command above to work, please make sure that the
> entry in freebsd_generic_installer/etc/fstab reads
> "/dev/iso9660/FREEBSD_UEFI_INSTALL/cd9660ro0 0"
>
> 4. Burn the image to DVD, reboot your system and choose “EFI Boot”. Note
> that unless you are using a EFI console like rEFIt or rEFInd, you may have
> to kind of wait a couple of minutes while the kernel is loading before
> anything appears on the screen.
>
>
>
> On 04/07/14 16:34, Huang Wen Hui wrote:
>
>> Hi,
>> On my MacbookPro11,3, I got this error message:
>>
>> http://sw.gddsn.org.cn/freebsd/uefi.jpg
>>
>> cheers,
>>
>> Huang WenHui
>>
>> 2014-07-04 22:13 GMT+08:00 Ed Maste :
>>
>>  On 24 May 2014 19:39, Rafael Espíndola 
>>> wrote:
>>>
 Yes, I got that in the mac laptops I tried, it worked on a Mac Pro. It
 might be the frame buffer corruption that Ed Maste was mentioning.

>>> I purchased a new MacBook Air yesterday (model identifier
>>> MacBookAir6,2).  UEFI boot and vt(4) worked correctly.  (My image
>>> included Rafael's patch; I haven't tried a boot without.)
>>>
>>> I also committed a change to display the framebuffer parameters
>>> (address, dimensions, etc.) on boot, in order to help identify the
>>> source of this issue.  If you have a moment can you build a new USB
>>> stick image and give it a try?
>>>
>>> -Ed
>>>
>>>  ___
>> freebsd-current@freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-current
>> To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org
>> "
>>
>
>
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Re: uefi boot on Apple Mac

2014-07-12 Thread Anders Bolt-Evensen
I also got a message like that when I booted from a USB stick on a 
MacBookPro8,3 (17 inch, late 2011).


I fixed it by creating a custom ISO image and burned that onto a DVD 
using an external DVD drive.

The UEFI installer boots fine from this external DVD drive.

Here is how I did it:

Genereste an ISO with the FreeBSD-CURRENT kernel, mount the ISO and copy 
all files from the root directory in the ISO and unmount

> cd /usr/src/release
> sh ./generate-release.sh # You may have to run “make buildworld” 
and be connected to the internet to install required ports.

> mount -t cd9660 /scratch/R/release/FreeBSD-something-disc1.iso /mnt
> mkdir freebsd_generic_installer
#Files copied to the directory in the next command will be copied 
to a new ISO in step 3

> cp -R /mnt/ freebsd_generic_installer/
> umount /mnt
2. Create a FAT filesystem image and place the loader in it in the 
default path that UEFI will look for (the following steps are copied 
from https://wiki.freebsd.org/UEFI#CD.2FDVD_Boot_under_UEFI):

> dd if=/dev/zero of=efiboot.img bs=4k count=100
> mdconfig -a -t vnode -f efiboot.img
> newfs_msdos -F 12 -m 0xf8 /dev/md0
> mount -t msdosfs /dev/md0 /mnt
> mkdir -p /mnt/efi/boot
> cp loader.efi /mnt/efi/boot/bootx64.efi
> umount /mnt
> mdconfig -d -u 0

3. Create the custom ISO image. Please make sure that the entry in 
freebsd_generic_installer/etc/fstab matches the label you choose in the 
command below.
> makefs -t cd9660 -o bootimage='i386;efiboot.img' -o no-emul-boot 
-o rockridge -o label=“FREEBSD_UEFI_INSTALL" -o publisher="test" 
uefi-test.iso freebsd_generic_installer/


To get the example in the command above to work, please make sure that 
the entry in freebsd_generic_installer/etc/fstab reads

"/dev/iso9660/FREEBSD_UEFI_INSTALL/cd9660ro0 0"

4. Burn the image to DVD, reboot your system and choose “EFI Boot”. Note 
that unless you are using a EFI console like rEFIt or rEFInd, you may 
have to kind of wait a couple of minutes while the kernel is loading 
before anything appears on the screen.



On 04/07/14 16:34, Huang Wen Hui wrote:

Hi,
On my MacbookPro11,3, I got this error message:

http://sw.gddsn.org.cn/freebsd/uefi.jpg

cheers,

Huang WenHui

2014-07-04 22:13 GMT+08:00 Ed Maste :


On 24 May 2014 19:39, Rafael Espíndola  wrote:

Yes, I got that in the mac laptops I tried, it worked on a Mac Pro. It
might be the frame buffer corruption that Ed Maste was mentioning.

I purchased a new MacBook Air yesterday (model identifier
MacBookAir6,2).  UEFI boot and vt(4) worked correctly.  (My image
included Rafael's patch; I haven't tried a boot without.)

I also committed a change to display the framebuffer parameters
(address, dimensions, etc.) on boot, in order to help identify the
source of this issue.  If you have a moment can you build a new USB
stick image and give it a try?

-Ed


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


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

Re: uefi boot on Apple Mac

2014-07-07 Thread Aleksandr Rybalko
On Mon, 7 Jul 2014 08:18:37 +0800
Huang Wen Hui  wrote:

> I got the same result from Fedora-20:
> 
> [liveuser@localhost ~]$ dmesg|grep efifb
> [2.665017] efifb: probing for efifb
> [2.667915] efifb: framebuffer at 0x8002, mapped to
> 0xc9000b98, using 28800k, total 28800k
> [2.667916] efifb: mode is 2880x1800x32, linelength=16384, pages=1
> [2.667916] efifb: scrolling: redraw
> [2.667917] efifb: Truecolor: size=8:8:8:8, shift=24:16:8:0
> 
> stride(4096) *4 = linelength

No, stride >= line_width * bytes_per_pixel. It is just step size in
bytes, to skip into next line. (sometime it contain gaps related to
blank parts of screen, sometime related to round screen line to page
size).
So if it have mode - 2880x1800x32, it have to be 
2880 * (32 / 8) = 11520 or
11520 + (4096 - 1) & 0x_f000 = 12288 (0x03000, 3 4k_pages)


> 28800k=stride(4096) *4*1800=0x1c2
> 
> 
> 2014-07-07 2:59 GMT+08:00 Adrian Chadd :
> 
> > The linux UEFI peeps have the same problem(s):
> >
> > http://mjg59.dreamwidth.org/10014.html
> >
> > Look for "stride".
> >
> >
> > -a
> >
> >
> > On 6 July 2014 06:40, Aleksandr Rybalko  wrote:
> > > On Fri, 4 Jul 2014 22:34:30 +0800
> > > Huang Wen Hui  wrote:
> > >
> > >> Hi,
> > >> On my MacbookPro11,3, I got this error message:
> > >>
> > >> http://sw.gddsn.org.cn/freebsd/uefi.jpg
> > >
> > > Hmmm, really weird.
> > > Looks like wrong info about UEFI framebuffer.
> > > Picture said:
> > > 1. 2880 x 1800
> > > 2. 4 bytes per pixel (masks cover whole 32bit)
> > > 3. but same time stride eq to 4096 (but have to be (width *
> > bytes_per_pixel) 4 * 2880)
> > >
> > >>
> > >> cheers,
> > >>
> > >> Huang WenHui
> > >>
> > >> 2014-07-04 22:13 GMT+08:00 Ed Maste :
> > >>
> > >> > On 24 May 2014 19:39, Rafael Esp'indola 
> > wrote:
> > >> > >
> > >> > > Yes, I got that in the mac laptops I tried, it worked on a Mac Pro.
> > It
> > >> > > might be the frame buffer corruption that Ed Maste was mentioning.
> > >> >
> > >> > I purchased a new MacBook Air yesterday (model identifier
> > >> > MacBookAir6,2).  UEFI boot and vt(4) worked correctly.  (My image
> > >> > included Rafael's patch; I haven't tried a boot without.)
> > >> >
> > >> > I also committed a change to display the framebuffer parameters
> > >> > (address, dimensions, etc.) on boot, in order to help identify the
> > >> > source of this issue.  If you have a moment can you build a new USB
> > >> > stick image and give it a try?
> > >> >
> > >> > -Ed
> > >> >
> > >> ___
> > >> freebsd-current@freebsd.org mailing list
> > >> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> > >> To unsubscribe, send any mail to "
> > freebsd-current-unsubscr...@freebsd.org"
> > >
> > > Thanks.
> > > WBW
> > > --
> > > Aleksandr Rybalko 
> > > ___
> > > freebsd-current@freebsd.org mailing list
> > > http://lists.freebsd.org/mailman/listinfo/freebsd-current
> > > To unsubscribe, send any mail to "
> > freebsd-current-unsubscr...@freebsd.org"
> >


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


Re: uefi boot on Apple Mac

2014-07-06 Thread Huang Wen Hui
I got the same result from Fedora-20:

[liveuser@localhost ~]$ dmesg|grep efifb
[2.665017] efifb: probing for efifb
[2.667915] efifb: framebuffer at 0x8002, mapped to
0xc9000b98, using 28800k, total 28800k
[2.667916] efifb: mode is 2880x1800x32, linelength=16384, pages=1
[2.667916] efifb: scrolling: redraw
[2.667917] efifb: Truecolor: size=8:8:8:8, shift=24:16:8:0

stride(4096) *4 = linelength
28800k=stride(4096) *4*1800=0x1c2


2014-07-07 2:59 GMT+08:00 Adrian Chadd :

> The linux UEFI peeps have the same problem(s):
>
> http://mjg59.dreamwidth.org/10014.html
>
> Look for "stride".
>
>
> -a
>
>
> On 6 July 2014 06:40, Aleksandr Rybalko  wrote:
> > On Fri, 4 Jul 2014 22:34:30 +0800
> > Huang Wen Hui  wrote:
> >
> >> Hi,
> >> On my MacbookPro11,3, I got this error message:
> >>
> >> http://sw.gddsn.org.cn/freebsd/uefi.jpg
> >
> > Hmmm, really weird.
> > Looks like wrong info about UEFI framebuffer.
> > Picture said:
> > 1. 2880 x 1800
> > 2. 4 bytes per pixel (masks cover whole 32bit)
> > 3. but same time stride eq to 4096 (but have to be (width *
> bytes_per_pixel) 4 * 2880)
> >
> >>
> >> cheers,
> >>
> >> Huang WenHui
> >>
> >> 2014-07-04 22:13 GMT+08:00 Ed Maste :
> >>
> >> > On 24 May 2014 19:39, Rafael Esp'indola 
> wrote:
> >> > >
> >> > > Yes, I got that in the mac laptops I tried, it worked on a Mac Pro.
> It
> >> > > might be the frame buffer corruption that Ed Maste was mentioning.
> >> >
> >> > I purchased a new MacBook Air yesterday (model identifier
> >> > MacBookAir6,2).  UEFI boot and vt(4) worked correctly.  (My image
> >> > included Rafael's patch; I haven't tried a boot without.)
> >> >
> >> > I also committed a change to display the framebuffer parameters
> >> > (address, dimensions, etc.) on boot, in order to help identify the
> >> > source of this issue.  If you have a moment can you build a new USB
> >> > stick image and give it a try?
> >> >
> >> > -Ed
> >> >
> >> ___
> >> freebsd-current@freebsd.org mailing list
> >> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> >> To unsubscribe, send any mail to "
> freebsd-current-unsubscr...@freebsd.org"
> >
> > Thanks.
> > WBW
> > --
> > Aleksandr Rybalko 
> > ___
> > freebsd-current@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-current
> > To unsubscribe, send any mail to "
> freebsd-current-unsubscr...@freebsd.org"
>
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: uefi boot on Apple Mac

2014-07-06 Thread Adrian Chadd
The linux UEFI peeps have the same problem(s):

http://mjg59.dreamwidth.org/10014.html

Look for "stride".


-a


On 6 July 2014 06:40, Aleksandr Rybalko  wrote:
> On Fri, 4 Jul 2014 22:34:30 +0800
> Huang Wen Hui  wrote:
>
>> Hi,
>> On my MacbookPro11,3, I got this error message:
>>
>> http://sw.gddsn.org.cn/freebsd/uefi.jpg
>
> Hmmm, really weird.
> Looks like wrong info about UEFI framebuffer.
> Picture said:
> 1. 2880 x 1800
> 2. 4 bytes per pixel (masks cover whole 32bit)
> 3. but same time stride eq to 4096 (but have to be (width * bytes_per_pixel) 
> 4 * 2880)
>
>>
>> cheers,
>>
>> Huang WenHui
>>
>> 2014-07-04 22:13 GMT+08:00 Ed Maste :
>>
>> > On 24 May 2014 19:39, Rafael Esp'indola  wrote:
>> > >
>> > > Yes, I got that in the mac laptops I tried, it worked on a Mac Pro. It
>> > > might be the frame buffer corruption that Ed Maste was mentioning.
>> >
>> > I purchased a new MacBook Air yesterday (model identifier
>> > MacBookAir6,2).  UEFI boot and vt(4) worked correctly.  (My image
>> > included Rafael's patch; I haven't tried a boot without.)
>> >
>> > I also committed a change to display the framebuffer parameters
>> > (address, dimensions, etc.) on boot, in order to help identify the
>> > source of this issue.  If you have a moment can you build a new USB
>> > stick image and give it a try?
>> >
>> > -Ed
>> >
>> ___
>> freebsd-current@freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-current
>> To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
>
> Thanks.
> WBW
> --
> Aleksandr Rybalko 
> ___
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: uefi boot on Apple Mac

2014-07-06 Thread Aleksandr Rybalko
On Fri, 4 Jul 2014 22:34:30 +0800
Huang Wen Hui  wrote:

> Hi,
> On my MacbookPro11,3, I got this error message:
> 
> http://sw.gddsn.org.cn/freebsd/uefi.jpg

Hmmm, really weird.
Looks like wrong info about UEFI framebuffer.
Picture said:
1. 2880 x 1800
2. 4 bytes per pixel (masks cover whole 32bit)
3. but same time stride eq to 4096 (but have to be (width * bytes_per_pixel) 4 
* 2880)

> 
> cheers,
> 
> Huang WenHui
> 
> 2014-07-04 22:13 GMT+08:00 Ed Maste :
> 
> > On 24 May 2014 19:39, Rafael Esp'indola  wrote:
> > >
> > > Yes, I got that in the mac laptops I tried, it worked on a Mac Pro. It
> > > might be the frame buffer corruption that Ed Maste was mentioning.
> >
> > I purchased a new MacBook Air yesterday (model identifier
> > MacBookAir6,2).  UEFI boot and vt(4) worked correctly.  (My image
> > included Rafael's patch; I haven't tried a boot without.)
> >
> > I also committed a change to display the framebuffer parameters
> > (address, dimensions, etc.) on boot, in order to help identify the
> > source of this issue.  If you have a moment can you build a new USB
> > stick image and give it a try?
> >
> > -Ed
> >
> ___
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Thanks.
WBW
-- 
Aleksandr Rybalko 
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: uefi boot on Apple Mac

2014-07-04 Thread Huang Wen Hui
Hi,
On my MacbookPro11,3, I got this error message:

http://sw.gddsn.org.cn/freebsd/uefi.jpg

cheers,

Huang WenHui

2014-07-04 22:13 GMT+08:00 Ed Maste :

> On 24 May 2014 19:39, Rafael Espíndola  wrote:
> >
> > Yes, I got that in the mac laptops I tried, it worked on a Mac Pro. It
> > might be the frame buffer corruption that Ed Maste was mentioning.
>
> I purchased a new MacBook Air yesterday (model identifier
> MacBookAir6,2).  UEFI boot and vt(4) worked correctly.  (My image
> included Rafael's patch; I haven't tried a boot without.)
>
> I also committed a change to display the framebuffer parameters
> (address, dimensions, etc.) on boot, in order to help identify the
> source of this issue.  If you have a moment can you build a new USB
> stick image and give it a try?
>
> -Ed
>
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Re: uefi boot on Apple Mac

2014-07-04 Thread Ed Maste
On 24 May 2014 19:39, Rafael Espíndola  wrote:
>
> Yes, I got that in the mac laptops I tried, it worked on a Mac Pro. It
> might be the frame buffer corruption that Ed Maste was mentioning.

I purchased a new MacBook Air yesterday (model identifier
MacBookAir6,2).  UEFI boot and vt(4) worked correctly.  (My image
included Rafael's patch; I haven't tried a boot without.)

I also committed a change to display the framebuffer parameters
(address, dimensions, etc.) on boot, in order to help identify the
source of this issue.  If you have a moment can you build a new USB
stick image and give it a try?

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

Re: uefi boot on Apple Mac

2014-05-24 Thread Rafael Espíndola
On 24 May 2014 19:30, Huang Wen Hui  wrote:
> Hi,
> I try this patch, but no lucky, loader stop at:
>
> Start @ 0x802d6ef0 ...

Yes, I got that in the mac laptops I tried, it worked on a Mac Pro. It
might be the frame buffer corruption that Ed Maste was mentioning.

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


Re: uefi boot on Apple Mac

2014-05-24 Thread Huang Wen Hui
Hi,
I try this patch, but no lucky, loader stop at:

Start @ 0x802d6ef0 ...

Cheers,

Huang WenHui



2014-05-22 23:33 GMT+08:00 Rafael Espíndola :

> I just emailed a patch. The issue I was having was just that the text
> was not being displayed.
>
> On 22 May 2014 09:37, Anders Bolt-Evensen  wrote:
> > MacBookPro8,3 doesn't work with uefi boot either.
> > At least mine doesn't.
> >
> > On 19.05.14 02:36, Huang Wen Hui wrote:
> >>
> >> Hi,
> >> I test uefi boot on  Macs, some success, include:
> >> iMac13,2 , MacbookPro 2012, Macmini5,3.
> >>
> >> But have problem on MacbookPro 2013,  loader stop at:
> >>
> >> Start @ 0x802d6ef0 ...
> >>
> >> Any ideas?
> >>
> >> Cheers,
> >> Huang Wenhui
> >> ___
> >> freebsd-current@freebsd.org mailing list
> >> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> >> To unsubscribe, send any mail to "
> freebsd-current-unsubscr...@freebsd.org"
> >
> >
> > ___
> > freebsd-current@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-current
> > To unsubscribe, send any mail to "
> freebsd-current-unsubscr...@freebsd.org"
> ___
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
>
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Re: uefi boot on Apple Mac

2014-05-22 Thread Rafael Espíndola
I just emailed a patch. The issue I was having was just that the text
was not being displayed.

On 22 May 2014 09:37, Anders Bolt-Evensen  wrote:
> MacBookPro8,3 doesn't work with uefi boot either.
> At least mine doesn't.
>
> On 19.05.14 02:36, Huang Wen Hui wrote:
>>
>> Hi,
>> I test uefi boot on  Macs, some success, include:
>> iMac13,2 , MacbookPro 2012, Macmini5,3.
>>
>> But have problem on MacbookPro 2013,  loader stop at:
>>
>> Start @ 0x802d6ef0 ...
>>
>> Any ideas?
>>
>> Cheers,
>> Huang Wenhui
>> ___
>> freebsd-current@freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-current
>> To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
>
>
> ___
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: uefi boot on Apple Mac

2014-05-22 Thread Anders Bolt-Evensen

MacBookPro8,3 doesn't work with uefi boot either.
At least mine doesn't.

On 19.05.14 02:36, Huang Wen Hui wrote:

Hi,
I test uefi boot on  Macs, some success, include:
iMac13,2 , MacbookPro 2012, Macmini5,3.

But have problem on MacbookPro 2013,  loader stop at:

Start @ 0x802d6ef0 ...

Any ideas?

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


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


uefi boot on Apple Mac

2014-05-18 Thread Huang Wen Hui
Hi,
I test uefi boot on  Macs, some success, include:
iMac13,2 , MacbookPro 2012, Macmini5,3.

But have problem on MacbookPro 2013,  loader stop at:

Start @ 0x802d6ef0 ...

Any ideas?

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