Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Jun 2014 11:52:27 +0200
From:      Kamil Czekirda <kczekirda@gmail.com>
To:        Jim Thompson <jim@netgate.com>
Cc:        hackers@freebsd.org
Subject:   Re: iPXE booting latest PCengines alu board
Message-ID:  <CADSgWNH4F2WrcFajhs5X2C2ZFo08-5D%2BndtHzvi89tk76ng0fQ@mail.gmail.com>
In-Reply-To: <71ECD01F-5DC0-45D2-8C84-AA6C3D9903CA@netgate.com>
References:  <9D14C4BD-8A13-43FC-ACDA-0315A58CEBC6@cs.huji.ac.il> <5399C6A0.9010506@sentex.net> <CADSgWNGqgSZ7kCCb8x_U2RqquUs8WDnOBq8vp=20wfi8nxG3TQ@mail.gmail.com> <17B3B28C-A9D7-4FD2-ACEB-CFE4738C4D49@cs.huji.ac.il> <71ECD01F-5DC0-45D2-8C84-AA6C3D9903CA@netgate.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Please try mfsbsd based on current (r266655):

http://svnweb.freebsd.org/socsvn/soc2014/kczekirda/pxe-fai-head/tools/mfsbs=
d-11.0-CURRENT-r266655-amd64.iso?view=3Dco

example:

iPXE> dhcp
iPXE> kernel http://volt.iem.pw.edu.pl/~czekirdk/memdisk iso
iPXE> http://svnweb.freebsd.org/socsvn/soc2014/kczekirda/pxe-fai-head/tools=
/mfsbsd-11.0-CURRENT-r266655-amd64.iso?view=3Dco

Be careful, in second line I changed raw to iso.

Regards,
Kamil

2014-06-13 11:45 GMT+02:00 Jim Thompson <jim@netgate.com>:
> Doesn=E2=80=99t get very far...
>
> PC Engines APU BIOS build date: Apr  5 2014
> Reading data from file [bootorder]
> SeaBIOS (version ?-20140405_120742-frink)
> SeaBIOS (version ?-20140405_120742-frink)
> Found coreboot cbmem console @ 7e150400
> Found mainboard PC Engines APU
> Relocating init from 0x000e8e71 to 0x7e1065e0 (size 39259)
> Found CBFS header at 0xfffffb90
> found file "bootorder" in cbmem
> CPU Mhz=3D1001
> Found 27 PCI devices (max PCI bus is 05)
> Copying PIR from 0x7e160400 to 0x000f27a0
> Copying MPTABLE from 0x7e161400/7e161410 to 0x000f25b0 with length 1ec
> Copying ACPI RSDP from 0x7e162400 to 0x000f2590
> Copying SMBIOS entry point from 0x7e16d800 to 0x000f2570
> Using pmtimer, ioport 0x808
> Scan for VGA option rom
> EHCI init on dev 00:12.2 (regs=3D0xf7f08420)
> Found 1 lpt ports
> Found 2 serial ports
> AHCI controller at 11.0, iobase f7f08000, irq 11
> EHCI init on dev 00:13.2 (regs=3D0xf7f08520)
> EHCI init on dev 00:16.2 (regs=3D0xf7f08620)
> Searching bootorder for: /rom@img/setup
> Searching bootorder for: /rom@img/memtest
> OHCI init on dev 00:12.0 (regs=3D0xf7f04000)
> OHCI init on dev 00:13.0 (regs=3D0xf7f05000)
> OHCI init on dev 00:14.5 (regs=3D0xf7f06000)
> OHCI init on dev 00:16.0 (regs=3D0xf7f07000)
> Searching bootorder for: /pci@i0cf8/usb@12,2/storage@1/*@0/*@0,0
> Searching bootorder for: /pci@i0cf8/usb@12,2/usb-*@1
> Searching bootorder for: /pci@i0cf8/usb@16,2/storage@1/*@0/*@0,0
> Searching bootorder for: /pci@i0cf8/usb@16,2/usb-*@1
> USB MSC vendor=3D'Multiple' product=3D'Card  Reader' rev=3D'1.00' type=3D=
0 removable=3D1
> USB MSC blksize=3D512 sectors=3D15564800
> USB MSC vendor=3D'PNY' product=3D'USB 2.0 FD' rev=3D'1100' type=3D0 remov=
able=3D1
> USB MSC blksize=3D512 sectors=3D15810560
> All threads complete.
> Scan for option roms
> Running option rom at c000:0003
>
>
> iPXE (http://ipxe.org) 00:00.0 C000 PCI2.10 PnP PMMpmm call arg1=3D1
> pmm call arg1=3D0
> +7E0DA5C0pmm call arg1=3D1
> pmm call arg1=3D0
> +7E03A5C0 C000
>
>
> iPXE (PCI 00:00.0) starting execution...ok
> iPXE initialising devices...ok
>
>
>
> iPXE 1.0.0+ -- Open Source Network Boot Firmware -- http://ipxe.org
> Features: HTTP iSCSI DNS TFTP AoE bzImage ELF MBOOT PXE PXEXT Menu
>
> iPXE> dhcp
> Waiting for link-up on net0................. Down (http://ipxe.org/380861=
01)
> Waiting for link-up on net1................. Down (http://ipxe.org/380861=
01)
> iPXE> dhcp
> Configuring (net0 00:0d:b9:33:88:64)...... ok
> iPXE> kernel http://volt.iem.pw.edu.pl/~czekirdk/memdisk raw
> http://volt.iem.pw.edu.pl/~czekirdk/memdisk... ok
> iPXE> initrd http://mfsbsd.vx.sk/files/images/10/amd64/mfsbsd-10.0-RELEAS=
E-amd64.img
> http://mfsbsd.vx.sk/files/images/10/amd64/mfsbsd-10.0-RELEASE-amd64.img..=
. ok
> iPXE> boot
> MEMDISK 6.02 2013-10-13  Copyright 2001-2013 H. Peter Anvin et al
> e820: 0000000000000000 000000000009fc00 1
> e820: 000000000009fc00 0000000000000400 2
> e820: 00000000000f0000 0000000000010000 2
> e820: 0000000000100000 000000007e010000 1
> e820: 000000007e110000 0000000000ef0000 2
> e820: 00000000f8000000 0000000001000000 2
> Ramdisk at 0x01700000, length 0x02900000
> command line: raw
> MEMDISK: Image seems to have fractional end cylinder
> Disk is hd0, 41984 K, C/H/S =3D 5/255/63 (MBR/MBR), EDD on, rw
> Using raw access to high memory
> Code 1744, meminfo 168, cmdline 4, stack 512
> Total size needed =3D 2428 bytes, allocating 3K
> Old dos memory at 0x9c400 (map says 0x9fc00), loading at 0x9b800
> 1588: 0x5800  15E801: 0x3c00 0x0070
> INT 13 08: Failure, assuming this is the only drive
> Drive probing gives drive shift limit: 0x81
> old: int13 =3D f000e3fe  int15 =3D f000f859  int1e =3D f0007244
> new: int13 =3D 9b80000a  int15 =3D 9b8003ba  int1e =3D f0007244
> Loading boot sector... booting=E2=80=A6
> \   <=E2=80=94 hangs here
>
> Note that not even the demo works:
>
> <power cycle=E2=80=A6 not going to cut-n-paste it all again>
> iPXE (PCI 00:00.0) starting execution...ok
> iPXE initialising devices...ok
>
>
>
> iPXE 1.0.0+ -- Open Source Network Boot Firmware -- http://ipxe.org
> Features: HTTP iSCSI DNS TFTP AoE bzImage ELF MBOOT PXE PXEXT Menu
>
> iPXE> chain http://boot.ipxe.org/demo/boot.php
> http://boot.ipxe.org/demo/boot.php... Error 0x3e11623b (http://ipxe.org/3=
e11623b)
> iPXE> dhcp
> Configuring (net0 00:0d:b9:33:88:64)...... ok
> iPXE> route
> net0: 172.21.0.89/255.255.255.0 gw 172.21.0.1
> iPXE> show dns
> net0.dhcp/dns:ipv4 =3D 172.21.0.1
> iPXE> chain http://boot.ipxe.org/demo/boot.php
> http://boot.ipxe.org/demo/boot.php... ok
> vmlinuz-2.6.17-14mdv... ok
> initrd.img... ok
> <no further output>
>
> It=E2=80=99s possible that the console isn=E2=80=99t being properly set, =
of course.
> It=E2=80=99s also possible that 10-RELEASE isn=E2=80=99t new enough for t=
he APU.
>
> For Daniel
> http://dox.ipxe.org/index.html
> http://ipxe.org
>
>
>
>> On Jun 13, 2014, at 3:32 AM, Daniel Braniss <danny@cs.huji.ac.il> wrote:
>>
>> Hi Kamil,
>> Nice work! though I=E2=80=99m not that ambitious.
>> I need to be able to load pxeboot and that seems to
>> need some magic. BTW, do you know where there is
>> some good docs on iPXE?
>>
>> thanks,
>>       danny
>>
>>
>> On Jun 13, 2014, at 12:38 AM, Kamil Czekirda <kczekirda@gmail.com> wrote=
:
>>
>>> Hi,
>>>
>>> Please look at my GSoC wiki page:
>>> https://wiki.freebsd.org/SummerOfCode2014/FreeBSD_PXE_preseed
>>>
>>> There is kpxe file, you can chainload it using file option in your dhcp=
 server.
>>>
>>> It's very simple script:
>>>
>>> #!ipxe
>>> dhcp
>>> cpuid --ext 29 && set CPU-ARCH amd64 || set CPU-ARCH i386
>>> set img http://mfsbsd.vx.sk/files/images/10/${CPU-ARCH}/mfsbsd-10.0-REL=
EASE-${CPU-ARCH}.img
>>> kernel http://volt.iem.pw.edu.pl/~czekirdk/memdisk raw
>>> initrd ${img}
>>> boot
>>>
>>> It detects architecture and runs mfsbsd directly from Martin Matuska we=
bsite.
>>>
>>> It's simpliest way to boot different iso or img image of FreeBSD. It
>>> will be nice to have local mirror and make menu with different
>>> releases. I'll prepare menu, but I need few days, I'll inform you.
>>>
>>> I think that in next week will be ready iPXE port for FreeBSD and
>>> simply solutions.
>>>
>>> I have many scripts to boot ubuntu, debian, etc. and I can help you
>>> with it. It's simple to run FreeBSD from nfs server too. Ask if you
>>> have problems.
>>>
>>> Kamil
>>>
>>> 2014-06-12 17:26 GMT+02:00 Mike Tancsa <mike@sentex.net>:
>>>> On 6/12/2014 10:38 AM, Daniel Braniss wrote:
>>>>>
>>>>> Hi all,
>>>>> while I try to learn about iPXE, I am wondering if someone already
>>>>> managed to boot FreeBSD via the network, else it=E2=80=99s going to b=
e an
>>>>> interesting weekend :-)
>>>>
>>>>
>>>> If you mean http://www.pcengines.ch/apu.htm, just make sure you are bo=
oting
>>>> a relatively recent FreeBSD version (newer than April I think). Otherw=
ise,
>>>> it boots just fine like any other bit of hardware over the network.
>>>>
>>>>       ---Mike
>>>>
>>>>
>>>> --
>>>> -------------------
>>>> Mike Tancsa, tel +1 519 651 3400
>>>> Sentex Communications, mike@sentex.net
>>>> Providing Internet services since 1994 www.sentex.net
>>>> Cambridge, Ontario Canada   http://www.tancsa.com/
>>>>
>>>> _______________________________________________
>>>> freebsd-hackers@freebsd.org mailing list
>>>> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
>>>> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.=
org"
>>
>> _______________________________________________
>> freebsd-hackers@freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
>> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.or=
g"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADSgWNH4F2WrcFajhs5X2C2ZFo08-5D%2BndtHzvi89tk76ng0fQ>