Date: Fri, 13 Jun 2014 05:18:16 -0500 From: Jim Thompson <jim@netgate.com> To: Kamil Czekirda <kczekirda@gmail.com> Cc: hackers@freebsd.org Subject: Re: iPXE booting latest PCengines alu board Message-ID: <B5921C3D-8E1D-4358-88B6-B81DB290116B@netgate.com> In-Reply-To: <CADSgWNH4F2WrcFajhs5X2C2ZFo08-5D%2BndtHzvi89tk76ng0fQ@mail.gmail.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> <CADSgWNH4F2WrcFajhs5X2C2ZFo08-5D%2BndtHzvi89tk76ng0fQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Maybe I=E2=80=9Dm misreading something. 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 =20 Waiting for link-up on net0... ok Configuring (net0 00:0d:b9:33:88:64)..... ok iPXE> kernel http://volt.iem.pw.edu.pl/~czekirdk/memdisk iso http://volt.iem.pw.edu.pl/~czekirdk/memdisk... ok=20 iPXE> = http://svnweb.freebsd.org/socsvn/soc2014/kczekirda/pxe-fai-head/tools/mfsb= sd-11.0-CURRENT-r266655-amd64.iso?view=3Dco = http://svnweb.freebsd.org/socsvn/soc2014/kczekirda/pxe-fai-head/tools/mfsb= sd-11.0-CURRENT-r266655-amd64.iso?view=3Dco: command not found iPXE> initrd = http://svmnweb.freebsd.org/socsvn/soc2014/kvzekirda/pxe-fai-head/tools/mfs= bsd-11.0-CURRENT-r266655-amd64.iso?view=3Dco = http://svmnweb.freebsd.org/socsvn/soc2014/kvzekirda/pxe-fai-head/tools/mfs= bsd-11.0-CURRENT-r266655-amd64.iso?view=3Dco... Error 0x3e11613b = (http://ipxe.org/3e11613b) iPXE>=20 > On Jun 13, 2014, at 4:52 AM, Kamil Czekirda <kczekirda@gmail.com> = wrote: >=20 > Please try mfsbsd based on current (r266655): >=20 > = http://svnweb.freebsd.org/socsvn/soc2014/kczekirda/pxe-fai-head/tools/mfsb= sd-11.0-CURRENT-r266655-amd64.iso?view=3Dco >=20 > example: >=20 > 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/mfsb= sd-11.0-CURRENT-r266655-amd64.iso?view=3Dco >=20 > Be careful, in second line I changed raw to iso. >=20 > Regards, > Kamil >=20 > 2014-06-13 11:45 GMT+02:00 Jim Thompson <jim@netgate.com>: >> Doesn=E2=80=99t get very far... >>=20 >> 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=3D0 removable=3D1 >> USB MSC blksize=3D512 sectors=3D15564800 >> USB MSC vendor=3D'PNY' product=3D'USB 2.0 FD' rev=3D'1100' type=3D0 = removable=3D1 >> USB MSC blksize=3D512 sectors=3D15810560 >> All threads complete. >> Scan for option roms >> Running option rom at c000:0003 >>=20 >>=20 >> 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 >>=20 >>=20 >> iPXE (PCI 00:00.0) starting execution...ok >> iPXE initialising devices...ok >>=20 >>=20 >>=20 >> iPXE 1.0.0+ -- Open Source Network Boot Firmware -- http://ipxe.org >> Features: HTTP iSCSI DNS TFTP AoE bzImage ELF MBOOT PXE PXEXT Menu >>=20 >> iPXE> dhcp >> Waiting for link-up on net0................. Down = (http://ipxe.org/38086101) >> Waiting for link-up on net1................. Down = (http://ipxe.org/38086101) >> 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-RELEASE-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 >>=20 >> Note that not even the demo works: >>=20 >> <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 >>=20 >>=20 >>=20 >> iPXE 1.0.0+ -- Open Source Network Boot Firmware -- http://ipxe.org >> Features: HTTP iSCSI DNS TFTP AoE bzImage ELF MBOOT PXE PXEXT Menu >>=20 >> iPXE> chain http://boot.ipxe.org/demo/boot.php >> http://boot.ipxe.org/demo/boot.php... Error 0x3e11623b = (http://ipxe.org/3e11623b) >> 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> >>=20 >> 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 the APU. >>=20 >> For Daniel >> http://dox.ipxe.org/index.html >> http://ipxe.org >>=20 >>=20 >>=20 >>> On Jun 13, 2014, at 3:32 AM, Daniel Braniss <danny@cs.huji.ac.il> = wrote: >>>=20 >>> 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? >>>=20 >>> thanks, >>> danny >>>=20 >>>=20 >>> On Jun 13, 2014, at 12:38 AM, Kamil Czekirda <kczekirda@gmail.com> = wrote: >>>=20 >>>> Hi, >>>>=20 >>>> Please look at my GSoC wiki page: >>>> https://wiki.freebsd.org/SummerOfCode2014/FreeBSD_PXE_preseed >>>>=20 >>>> There is kpxe file, you can chainload it using file option in your = dhcp server. >>>>=20 >>>> It's very simple script: >>>>=20 >>>> #!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-RELEASE-${CPU-= ARCH}.img >>>> kernel http://volt.iem.pw.edu.pl/~czekirdk/memdisk raw >>>> initrd ${img} >>>> boot >>>>=20 >>>> It detects architecture and runs mfsbsd directly from Martin = Matuska website. >>>>=20 >>>> 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. >>>>=20 >>>> I think that in next week will be ready iPXE port for FreeBSD and >>>> simply solutions. >>>>=20 >>>> 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. >>>>=20 >>>> Kamil >>>>=20 >>>> 2014-06-12 17:26 GMT+02:00 Mike Tancsa <mike@sentex.net>: >>>>> On 6/12/2014 10:38 AM, Daniel Braniss wrote: >>>>>>=20 >>>>>> 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 be an >>>>>> interesting weekend :-) >>>>>=20 >>>>>=20 >>>>> If you mean http://www.pcengines.ch/apu.htm, just make sure you = are booting >>>>> a relatively recent FreeBSD version (newer than April I think). = Otherwise, >>>>> it boots just fine like any other bit of hardware over the = network. >>>>>=20 >>>>> ---Mike >>>>>=20 >>>>>=20 >>>>> -- >>>>> ------------------- >>>>> 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/ >>>>>=20 >>>>> _______________________________________________ >>>>> 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" >>>=20 >>> _______________________________________________ >>> 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" >>=20
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B5921C3D-8E1D-4358-88B6-B81DB290116B>