Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

iPXE booting latest PCengines alu board

216 views
Skip to first unread message

Daniel Braniss

unread,
Jun 12, 2014, 10:38:36 AM6/12/14
to
Hi all,
while I try to learn about iPXE, I am wondering if someone already
managed to boot FreeBSD via the network, else it’s going to be an
interesting weekend :-)

thanks,
danny

_______________________________________________
freebsd...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hacke...@freebsd.org"

Mike Tancsa

unread,
Jun 12, 2014, 11:26:24 AM6/12/14
to
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’s going to be an
> interesting weekend :-)

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.

---Mike


--
-------------------
Mike Tancsa, tel +1 519 651 3400
Sentex Communications, mi...@sentex.net
Providing Internet services since 1994 www.sentex.net
Cambridge, Ontario Canada http://www.tancsa.com/

Kamil Czekirda

unread,
Jun 12, 2014, 5:38:33 PM6/12/14
to
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-RELEASE-${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 website.

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

Daniel Braniss

unread,
Jun 13, 2014, 4:24:57 AM6/13/14
to

On Jun 12, 2014, at 6:26 PM, Mike Tancsa <mi...@sentex.net> wrote:

> 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’s going to be an
>> interesting weekend :-)
>
> 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.


no, it does not :-(, the bios has iPXE not PXE - notice the little i)
after hitting ^B i managed some progress:

iPXE> kernel tftp://132.65.116.7/tftpboot/freebsd/pxeboot-9.3
tftp://132.65.116.7/tftpboot/freebsd/pxeboot-9.3... ok
iPXE> boot
PXE Loader 1.00

Building the boot loader arguments
Relocating the loader and the BTX
Starting the BTX loader
pxe_open: server addr: 132.65.60.52
pxe_open: server path: /vol/binary/bsd/amd64/7.0
pxe_open: gateway ip: 132.65.80.1
Loading /boot/defaults/loader.conf
/boot/kernel/kernel text=0x798197 data=0xf5fe8+0x7c998 syms=[0x8+0xb2a10+0x8+0x98f34]
/boot/kernel/zfs.ko size 0xf5a28 at 0xc57000
/boot/kernel/ispfw.ko size 0xbe288 at 0xd4d000
/

???????????????????????????????????????????
? ?
? ? , ,
? ? /( )`
? Welcome to FreeBSD! ? \ \___ / |
? ? /- _ `-/ '
? ? (/\/ \ \ /\
? 1. Boot FreeBSD [default] ? / / | ` \
? 2. Boot FreeBSD with ACPI enabled ? O O ) / |
? 3. Boot FreeBSD in Safe Mode ? `-^--'`< '
? 4. Boot FreeBSD in single user mode ? (_.) _ ) /
? 5. Boot FreeBSD with verbose logging ? `.___/` /
? 6. Escape to loader prompt ? `-----' /
? 7. Reboot ? <----. __ / __ \
? ? <----|====O)))==) \) /====|
? ? <----' `--' `.__,' \
? ? | |
? ? \ / /\
? Select option, [Enter] for default ? ______( (_ / \______/
? or [Space] to pause timer 8 ? ,' ,-----' |
??????????????????????????????????????????? `--{__________)


GDB: no debug ports present
KDB: debugger backends: ddb
KDB: current backend: ddb
Copyright (c) 1992-2008 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 7.0-RC1 #41: Sun Dec 30 15:19:13 IST 2007
danny@sunfire:/r+d/obj/sunfire/r+d/7.0/src/sys/HUJI
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: AMD G-T40E Processor (1000.00-MHz K8-class CPU)
Origin = "AuthenticAMD" Id = 0x500f20 Stepping = 0
Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT>
Features2=0x802209<SSE3,MON,SSSE3,CX16,<b23>>
AMD Features=0x2e500800<SYSCALL,NX,MMX+,FFXSR,<b26>,RDTSCP,LM>
AMD Features2=0x35ff<LAHF,CMP,SVM,ExtAPIC,CR8,<b5>,<b6>,<b7>,Prefetch,<b10>,<b12>,<b13>>
Cores per package: 2
usable memory = 4246466560 (4049 MB)
avail memory = 4093575168 (3903 MB)
ACPI APIC Table: <CORE COREBOOT>
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs

kbd0 at atkbd0
atkbd: unable to get the current command byte value.
atkbd0: [GIANT-LOCKED]
atkbd0: [ITHREAD]
psm0: unable to get the current command byte value.
ppc0: cannot reserve I/O port range

and here it hung.
ok, so this is a very old kernel, which got selected by default,
(just shows how old the default is :-), but when I set it to boot
9.3-BETA2 via the latest pxeboot it hangs just after initialising
the BTX.

I have since managed to boot it via a local disk, the same kernel BTW,
so at least that is ok.


thanks,
danny
PS: I left the original ip’s - hopefully the firewall is working ok :-)

Daniel Braniss

unread,
Jun 13, 2014, 4:32:44 AM6/13/14
to
Hi Kamil,
Nice work! though I’m 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 <kcze...@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-RELEASE-${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 website.
>
> 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 <mi...@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’s going to be an
>>> interesting weekend :-)
>>
>>
>> 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.
>>
>> ---Mike
>>
>>
>> --
>> -------------------
>> Mike Tancsa, tel +1 519 651 3400
>> Sentex Communications, mi...@sentex.net
>> Providing Internet services since 1994 www.sentex.net
>> Cambridge, Ontario Canada http://www.tancsa.com/
>>

Kamil Czekirda

unread,
Jun 13, 2014, 5:44:01 AM6/13/14
to
I suggest official documentation:

http://ipxe.org/docs

There is many good solutions for iPXE, but I havn't seen good for FreeBSD.

It will my work this summer.

Jim Thompson

unread,
Jun 13, 2014, 5:45:05 AM6/13/14
to
Doesn’t 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=1001
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=0xf7f08420)
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=0xf7f08520)
EHCI init on dev 00:16.2 (regs=0xf7f08620)
Searching bootorder for: /rom@img/setup
Searching bootorder for: /rom@img/memtest
OHCI init on dev 00:12.0 (regs=0xf7f04000)
OHCI init on dev 00:13.0 (regs=0xf7f05000)
OHCI init on dev 00:14.5 (regs=0xf7f06000)
OHCI init on dev 00:16.0 (regs=0xf7f07000)
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='Multiple' product='Card Reader' rev='1.00' type=0 removable=1
USB MSC blksize=512 sectors=15564800
USB MSC vendor='PNY' product='USB 2.0 FD' rev='1100' type=0 removable=1
USB MSC blksize=512 sectors=15810560
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=1
pmm call arg1=0
+7E0DA5C0pmm call arg1=1
pmm call arg1=0
+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/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 = 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 = 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 = f000e3fe int15 = f000f859 int1e = f0007244
new: int13 = 9b80000a int15 = 9b8003ba int1e = f0007244
Loading boot sector... booting…
\ <— hangs here

Note that not even the demo works:

<power cycle… 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/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 = 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’s possible that the console isn’t being properly set, of course.
It’s also possible that 10-RELEASE isn’t new enough for the APU.

For Daniel
http://dox.ipxe.org/index.html
http://ipxe.org

Kamil Czekirda

unread,
Jun 13, 2014, 5:52:27 AM6/13/14
to

Jim Thompson

unread,
Jun 13, 2014, 6:18:16 AM6/13/14
to

Daniel Braniss

unread,
Jun 13, 2014, 6:19:46 AM6/13/14
to
something missing in the line above

Daniel Braniss

unread,
Jun 13, 2014, 6:23:11 AM6/13/14
to
just for the record, the board (apu) is booting - and working - from a local disk just fine!
I just need it to boot from the network so I can do some developing.

danny

Daniel Braniss

unread,
Jun 13, 2014, 6:31:46 AM6/13/14
to

On Jun 13, 2014, at 12:45 PM, Jim Thompson <j...@netgate.com> wrote:

>
> For Daniel
> http://dox.ipxe.org/index.html
> http://ipxe.org


been there, but too much to read between the lines :-)

thanks,
danny
PS: changing alu to apu in subject

Jim Thompson

unread,
Jun 13, 2014, 6:34:31 AM6/13/14
to

> On Jun 13, 2014, at 5:19 AM, Daniel Braniss <da...@cs.huji.ac.il> wrote:
>
>
> On Jun 13, 2014, at 12:52 PM, Kamil Czekirda <kcze...@gmail.com> wrote:
>
>> Please try mfsbsd based on current (r266655):
>>
>> http://svnweb.freebsd.org/socsvn/soc2014/kczekirda/pxe-fai-head/tools/mfsbsd-11.0-CURRENT-r266655-amd64.iso?view=co
>>
>> 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=co
>
> something missing in the line above
>

yeah, and it’s not obvious.

fetch-ed the kernel and iso to a local freebsd 10-CURRENT machine (nuc2)

iPXE> kernel tftp://nuc2/memdisk
tftp://nuc2/memdisk... ok
iPXE> kernel tftp://nuc2/memdisk iso
tftp://nuc2/memdisk... ok
iPXE> initrd tftp://nuc2/mfsbsd.iso
tftp://nuc2/mfsbsd.iso... 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 0x01b76000, length 0x0248a000
command line: iso
El Torito BVD sanity check failed.
El Torito boot catalog sanity check failed.


MEMDISK: Image seems to have fractional end cylinder

MEMDISK: Image appears to be truncated
Disk is hd96, 9354 K, C/H/S = 65535/255/15 (El Torito/El Torito), EDD on, rw
Using safe INT 15h access to high memory
Code 1860, meminfo 168, cmdline 4, stack 512
Total size needed = 2544 bytes, allocating 3K


Old dos memory at 0x9c400 (map says 0x9fc00), loading at 0x9b800

1588: 0x69d8 15E801: 0x3c00 0x00b7


INT 13 08: Failure, assuming this is the only drive

Drive probing gives drive shift limit: 0xe1


old: int13 = f000e3fe int15 = f000f859 int1e = f0007244

new: int13 = 9b80000a int15 = 9b8003fd int1e = f0007244
Loading boot sector... booting...

Kamil Czekirda

unread,
Jun 13, 2014, 10:07:56 AM6/13/14
to
Please use iso raw option, it helps sometimes:

iPXE> kernel tftp://nuc2/memdisk


iPXE> kernel tftp://nuc2/memdisk iso

iPXE> initrd tftp://nuc2/mfsbsd.iso
iPXE> boot

I suggest leave tftp protocol and download iso with http server.

Jim Thompson

unread,
Jun 13, 2014, 1:43:15 PM6/13/14
to
iPXE> ifconf
Configuring (net0 00:0d:b9:33:88:64)...... ok
iPXE> route
net0: 172.21.0.90/255.255.255.0 gw 172.21.0.1
iPXE> kernel http://nuc2/memdisk
http://nuc2/memdisk... ok
iPXE> kernel http://nuc2/memdisk iso
http://nuc2/memdisk... ok
iPXE> initrd http://nuc2/mfsbsd.iso
http://nuc2/mfsbsd.iso... 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 0x01b7d000, length 0x02483000

command line: iso
El Torito BVD sanity check failed.
El Torito boot catalog sanity check failed.
MEMDISK: Image seems to have fractional end cylinder
MEMDISK: Image appears to be truncated
Disk is hd96, 9347 K, C/H/S = 65535/255/15 (El Torito/El Torito), EDD on, rw

Using safe INT 15h access to high memory
Code 1860, meminfo 168, cmdline 4, stack 512
Total size needed = 2544 bytes, allocating 3K
Old dos memory at 0x9c400 (map says 0x9fc00), loading at 0x9b800
1588: 0x69f4 15E801: 0x3c00 0x00b7

INT 13 08: Failure, assuming this is the only drive
Drive probing gives drive shift limit: 0xe1
old: int13 = f000e3fe int15 = f000f859 int1e = f0007244
new: int13 = 9b80000a int15 = 9b8003fd int1e = f0007244
Loading boot sector... booting…
(no output)

adding -h gets things a bit further. I still think we’re fighting a serial console issue.
Maybe mfsbsd need rebuilding. (?)

iPXE> dhcp
Configuring (net0 00:0d:b9:33:88:64)...... ok
iPXE> route

net0: 172.21.0.90/255.255.255.0 gw 172.21.0.1
iPXE> kernel http://nuc2/memdisk iso -h
http://nuc2/memdisk... ok
iPXE> initrd http://nuc2/mfsbsd.iso
http://nuc2/mfsbsd.iso... 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 0x01b84000, length 0x0247c000
command line: iso -h


MEMDISK: Image seems to have fractional end cylinder
MEMDISK: Image appears to be truncated

Disk is hd96, 9340 K, C/H/S = 65535/255/15 (El Torito/El Torito), EDD on, rw


Using safe INT 15h access to high memory

Code 1860, meminfo 168, cmdline 7, stack 512
Total size needed = 2547 bytes, allocating 3K


Old dos memory at 0x9c400 (map says 0x9fc00), loading at 0x9b800

1588: 0x6a10 15E801: 0x3c00 0x00b8


INT 13 08: Failure, assuming this is the only drive
Drive probing gives drive shift limit: 0xe1
old: int13 = f000e3fe int15 = f000f859 int1e = f0007244
new: int13 = 9b80000a int15 = 9b8003fd int1e = f0007244
Loading boot sector... booting...

CD Loader 1.2

Building the boot loader arguments

Looking up /BOOT/LOADER... Found


Relocating the loader and the BTX
Starting the BTX loader

(no output)

Mike Tancsa

unread,
Jun 13, 2014, 2:49:36 PM6/13/14
to
On 6/13/2014 4:24 AM, Daniel Braniss wrote:
>
> On Jun 12, 2014, at 6:26 PM, Mike Tancsa <mi...@sentex.net
> <mailto:mi...@sentex.net>> wrote:
>> If you mean http://www.pcengines.ch/apu.htm, just make sure you are
>> booting a relatively recent FreeBSD version (newer than April I
>
> no, it does not :-(, the bios has iPXE not PXE - notice the little i)
> after hitting ^B i managed some progress:
> FreeBSD 7.0-RC1 #41: Sun Dec 30 15:19:13 IST 2007

When I said newer than April, I meant newer than April 2014. You really
need to boot 7.0 ??

I am netbooting RELENG_10 just fine

# head -20 /var/run/dmesg.boot
Copyright (c) 1992-2014 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 10.0-STABLE #1 r262980M: Mon Mar 10 16:54:07 EDT 2014

mdta...@ich10.sentex.ca:/home/pxe10/usr/obj/home/pxe10/usr/src/sys/GENERIC
i386
FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610
CPU: AMD G-T40E Processor (1000.02-MHz 686-class CPU)
Origin = "AuthenticAMD" Id = 0x500f20 Family = 0x14 Model = 0x2
Stepping = 0

Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT>
Features2=0x802209<SSE3,MON,SSSE3,CX16,POPCNT>
AMD Features=0x2e500800<SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM>
AMD
Features2=0x35ff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,IBS,SKINIT,WDT>
TSC: P-state invariant, performance statistics
real memory = 3741364224 (3568 MB)
avail memory = 3652464640 (3483 MB)
Event timer "LAPIC" quality 400
ACPI APIC Table: <CORE COREBOOT>
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
FreeBSD/SMP: 1 package(s) x 2 core(s)




Searching bootorder for: /rom@genroms/pxeboot.rom
Press F12 for boot menu.

drive 0x000fd910: PCHS=0/0/0 translation=lba LCHS=957/64/63 s=3862528
drive 0x000fd940: PCHS=16383/16/63 translation=lba LCHS=1024/255/63
s=61865984
Space available for UMB: 000c1000-000ee000
Returned 49152 bytes of ZoneHigh
e820 map has 6 items:
0: 0000000000000000 - 000000000009fc00 = 1 RAM
1: 000000000009fc00 - 00000000000a0000 = 2 RESERVED
2: 00000000000f0000 - 0000000000100000 = 2 RESERVED
3: 0000000000100000 - 000000007e16ac00 = 1 RAM
4: 000000007e16ac00 - 000000007efffc00 = 2 RESERVED
5: 00000000f8000000 - 00000000f9000000 = 2 RESERVED
enter handle_19:
NULL
Booting from ROM...
Booting from c000:0358
iPXE (PCI 00:00.0) starting execution...ok
iPXE initialising devices...ok



iPXE 1.0.0+ (b757) -- Open Source Network Boot Firmware -- http://ipxe.org
Features: HTTP iSCSI DNS TFTP AoE bzImage ELF MBOOT PXE PXEXT Menu

net0: 00:0d:b9:33:11:c4 using rtl8168 on PCI01:00.0 (open)
[Link:down, TX:0 TXE:0 RX:0 RXE:0]
[Link status: Down (http://ipxe.org/38086101)]
Waiting for link-up on net0... failed: Down (http://ipxe.org/38086101)
net1: 00:0d:b9:33:11:c5 using rtl8168 on PCI02:00.0 (open)
[Link:up, TX:0 TXE:0 RX:0 RXE:0]
DHCP (net1 00:0d:b9:33:11:c5)........... ok
net1: 192.168.43.213/255.255.255.0 gw 192.168.43.1
Nothing to boot: No such file or directory (http://ipxe.org/2d03e13b)
net2: 00:0d:b9:33:11:c6 using rtl8168 on PCI03:00.0 (open)
[Link:up, TX:0 TXE:0 RX:0 RXE:0]
DHCP (net2 00:0d:b9:33:11:c6)...... ok
net1: 192.168.43.213/255.255.255.0 gw 192.168.43.1 (inaccessible)
net2: 10.255.255.75/255.255.255.0 gw 10.255.255.1
Next server: 10.255.255.1
Filename: pxe10/boot/pxeboot
Root path: /home/pxe10
tftp://10.255.255.1/pxe10/boot/pxeboot... ok
PXE Loader 1.00

Building the boot loader arguments
Relocating the loader and the BTX
Starting the BTX loader
/boot/kernel/kernel text=0xf09688 data=0xd02e8+0xe61e8
syms=[0x4+0xd2850+0x4+0x15704b]
|
______ ____ _____ _____
| ____| | _ \ / ____| __ \
| |___ _ __ ___ ___ | |_) | (___ | | | |
| ___| '__/ _ \/ _ \| _ < \___ \| | | |
| | | | | __/ __/| |_) |____) | |__| |
| | | | | | || | | |
|_| |_| \___|\___||____/|_____/|_____/ ``` `
s` `.....---.......--.``` -/
+------------Welcome to FreeBSD-----------+ +o .--` /y:` +.
| | yo`:. :o `+-
| 1. Boot Multi User [Enter] | y/ -/` -o/
| 2. Boot [S]ingle User | .- ::/sy+:.
| 3. [Esc]ape to loader prompt | / `-- /
| 4. Reboot | `: :`
| | `: :`
| Options: | / /
| 5. Configure Boot [O]ptions... | .- -.
| | -- -.
| | `:` `:`
| | .-- `--.
| | .---.....----.
+-----------------------------------------+


Booting...
Copyright (c) 1992-2014 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 10.0-STABLE #3 r267161: Fri Jun 6 13:55:58 EDT 2014

mdta...@ich10.sentex.ca:/home/pxe10/usr/obj/home/pxe10/usr/src/sys/GENERIC
i386
FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512
CPU: AMD G-T40E Processor (1000.02-MHz 686-class CPU)
Origin = "AuthenticAMD" Id = 0x500f20 Family = 0x14 Model = 0x2
Stepping = 0

Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT>
Features2=0x802209<SSE3,MON,SSSE3,CX16,POPCNT>
AMD Features=0x2e500800<SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM>
AMD
Features2=0x35ff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,IBS,SKINIT,WDT>
TSC: P-state invariant, performance statistics
real memory = 2114293760 (2016 MB)
avail memory = 2052497408 (1957 MB)
Event timer "LAPIC" quality 400
ACPI APIC Table: <CORE COREBOOT>
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
FreeBSD/SMP: 1 package(s) x 2 core(s)
cpu0 (BSP): APIC ID: 0
cpu1 (AP): APIC ID: 1
random device not loaded; using insecure entropy
ioapic0 <Version 2.1> irqs 0-23 on motherboard
kbd0 at kbdmux0
random: <Software, Yarrow> initialized
module_register_init: MOD_LOAD (vesa, 0xc0f67220, 0) error 19
acpi0: <CORE COREBOOT> on motherboard
acpi0: Power Button (fixed)
cpu0: <ACPI CPU> on acpi0
cpu1: <ACPI CPU> on acpi0
atrtc0: <AT realtime clock> port 0x70-0x71 irq 8 on acpi0
Event timer "RTC" frequency 32768 Hz quality 0
attimer0: <AT timer> port 0x40-0x43 irq 0 on acpi0
Timecounter "i8254" frequency 1193182 Hz quality 0
Event timer "i8254" frequency 1193182 Hz quality 100
Timecounter "ACPI-fast" frequency 3579545 Hz quality 900
acpi_timer0: <32-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0
hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on acpi0
Timecounter "HPET" frequency 14318180 Hz quality 950
Event timer "HPET" frequency 14318180 Hz quality 550
Event timer "HPET1" frequency 14318180 Hz quality 450
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib1: <ACPI PCI-PCI bridge> at device 4.0 on pci0
pci1: <ACPI PCI bus> on pcib1
re0: <RealTek 8168/8111 B/C/CP/D/DP/E/F/G PCIe Gigabit Ethernet> port
0x1000-0x10ff mem 0xfe500000-0xfe500fff,0xfe400000-0xfe403fff at device
0.0 on pci1
re0: Using 1 MSI-X message
re0: ASPM disabled
re0: Chip rev. 0x2c000000
re0: MAC rev. 0x00200000
miibus0: <MII bus> on re0
rgephy0: <RTL8169S/8110S/8211 1000BASE-T media interface> PHY 1 on miibus0
rgephy0: none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX,
100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT, 1000baseT-master,
1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow,
1000baseT-FDX-flow-master, auto, auto-flow
re0: Ethernet address: 00:0d:b9:33:11:c4
pcib2: <ACPI PCI-PCI bridge> at device 5.0 on pci0
pci2: <ACPI PCI bus> on pcib2
re1: <RealTek 8168/8111 B/C/CP/D/DP/E/F/G PCIe Gigabit Ethernet> port
0x2000-0x20ff mem 0xfe700000-0xfe700fff,0xfe600000-0xfe603fff at device
0.0 on pci2
re1: Using 1 MSI-X message
re1: ASPM disabled
re1: Chip rev. 0x2c000000
re1: MAC rev. 0x00200000
miibus1: <MII bus> on re1
rgephy1: <RTL8169S/8110S/8211 1000BASE-T media interface> PHY 1 on miibus1
rgephy1: none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX,
100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT, 1000baseT-master,
1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow,
1000baseT-FDX-flow-master, auto, auto-flow
re1: Ethernet address: 00:0d:b9:33:11:c5
pcib3: <ACPI PCI-PCI bridge> at device 6.0 on pci0
pci3: <ACPI PCI bus> on pcib3
re2: <RealTek 8168/8111 B/C/CP/D/DP/E/F/G PCIe Gigabit Ethernet> port
0x3000-0x30ff mem 0xfe900000-0xfe900fff,0xfe800000-0xfe803fff at device
0.0 on pci3
re2: Using 1 MSI-X message
re2: ASPM disabled
re2: Chip rev. 0x2c000000
re2: MAC rev. 0x00200000
miibus2: <MII bus> on re2
rgephy2: <RTL8169S/8110S/8211 1000BASE-T media interface> PHY 1 on miibus2
rgephy2: none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX,
100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT, 1000baseT-master,
1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow,
1000baseT-FDX-flow-master, auto, auto-flow
re2: Ethernet address: 00:0d:b9:33:11:c6
pcib4: <ACPI PCI-PCI bridge> at device 7.0 on pci0
pci4: <ACPI PCI bus> on pcib4
ath0: <Atheros 9280> mem 0xfea00000-0xfea0ffff at device 0.0 on pci4
ath0: [HT] enabling HT modes
ath0: [HT] 1 stream STBC receive enabled
ath0: [HT] 1 stream STBC transmit enabled
ath0: [HT] 2 RX streams; 2 TX streams
ath0: AR9280 mac 128.2 RF5133 phy 13.0
ath0: 2GHz radio: 0x0000; 5GHz radio: 0x00c0
ahci0: <AMD SB7x0/SB8x0/SB9x0 AHCI SATA controller> port
0x4020-0x4027,0x4040-0x4043,0x4028-0x402f,0x4044-0x4047,0x4000-0x400f
mem 0xfeb04000-0xfeb043ff at device 17.0 on pci0
ahci0: AHCI v1.20 with 4 6Gbps ports, Port Multiplier supported
ahcich0: <AHCI channel> at channel 0 on ahci0
ahcich1: <AHCI channel> at channel 1 on ahci0
ahcich2: <AHCI channel> at channel 2 on ahci0
ahcich3: <AHCI channel> at channel 3 on ahci0
ohci0: <AMD SB7x0/SB8x0/SB9x0 USB controller> mem 0xfeb00000-0xfeb00fff
at device 18.0 on pci0
usbus0 on ohci0
ehci0: <AMD SB7x0/SB8x0/SB9x0 USB 2.0 controller> mem
0xfeb04400-0xfeb044ff at device 18.2 on pci0
usbus1: EHCI version 1.0
usbus1 on ehci0
ohci1: <AMD SB7x0/SB8x0/SB9x0 USB controller> mem 0xfeb01000-0xfeb01fff
at device 19.0 on pci0

....

---Mike


--
-------------------
Mike Tancsa, tel +1 519 651 3400
Sentex Communications, mi...@sentex.net
Providing Internet services since 1994 www.sentex.net
Cambridge, Ontario Canada http://www.tancsa.com/

Daniel Braniss

unread,
Jun 14, 2014, 3:06:17 AM6/14/14
to

On Jun 13, 2014, at 9:49 PM, Mike Tancsa <mi...@sentex.net> wrote:

> On 6/13/2014 4:24 AM, Daniel Braniss wrote:
>>
>> On Jun 12, 2014, at 6:26 PM, Mike Tancsa <mi...@sentex.net
>> <mailto:mi...@sentex.net>> wrote:
>>> If you mean http://www.pcengines.ch/apu.htm, just make sure you are
>>> booting a relatively recent FreeBSD version (newer than April I
>>
>> no, it does not :-(, the bios has iPXE not PXE - notice the little i)
>> after hitting ^B i managed some progress:
>> FreeBSD 7.0-RC1 #41: Sun Dec 30 15:19:13 IST 2007
>
> When I said newer than April, I meant newer than April 2014. You really need to boot 7.0 ??
you should have read the end of that message :-)
...
and here it hung.
ok, so this is a very old kernel, which got selected by default,
(just shows how old the default is :-), but when I set it to boot
9.3-BETA2 via the latest pxeboot it hangs just after initialising
the BTX.

can you send me your ipxe script, maybe I can figure out
what i’m doing wrong?
thanks,
danny

Daniel Braniss

unread,
Jun 17, 2014, 7:05:00 AM6/17/14
to
After convincing DHCP to work nicely, I managed to boot freebsd via pxeboot,
stiil have one problem:
if the ifs server is on the same network as the host, pxe (PXE_UDP_WRITE)
is not sending out anything out on the wire.
if a gateway is needed, then all is ok.
any ideas?

Julian Elischer

unread,
Jun 17, 2014, 2:26:08 PM6/17/14
to
On 6/17/14, 7:05 PM, Daniel Braniss wrote:
> if a gateway is needed, then all is ok.
> any ideas?
you are giving it the wrong netmask?

Daniel Braniss

unread,
Jun 18, 2014, 1:40:16 AM6/18/14
to

On Jun 17, 2014, at 9:26 PM, Julian Elischer <jul...@freebsd.org> wrote:

> On 6/17/14, 7:05 PM, Daniel Braniss wrote:
>> if a gateway is needed, then all is ok.
>> any ideas?
> you are giving it the wrong netmask?
>
no.
BTW, the same setup is being used for PXE, and works (and has been working since way back :-),
it seems our pxe/pxeboot work fine with ‘standard’ PXE, but fails with iPXE. I tracked it down to
the rpc doing a sendutp and !PXE returning status = 1, fail, and I see no traffic on the wire, there should have
been an ARP request.
just a shot in the dark, but it seems PXE handles correctly the routing (send to gateway or local net)
while iPXE does not.

thanks,
danny
0 new messages