Bug 226430 - Can't netboot Orange Pi PC (Allwinner H3)
Summary: Can't netboot Orange Pi PC (Allwinner H3)
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: arm (show other bugs)
Version: CURRENT
Hardware: arm Any
: --- Affects Only Me
Assignee: freebsd-arm (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-07 19:17 UTC by Val Packett
Modified: 2018-10-12 08:28 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Val Packett 2018-03-07 19:17:48 UTC
Trying ubldr:

dhcp
env set serverip 192.168.1.2
tftp ${fdt_addr_r} dtb/sun8i-h3-orangepi-pc.dtb
fdt addr ${fdt_addr_r}
env set loaderdev net
env set rootpath ${serverip}:/solitude-tank/greg/Netboot/OrangePCFBSD12
tftp ${kernel_addr_r} ubldr.bin
go ${kernel_addr_r}

Result:

FreeBSD/armv6 U-Boot loader, Revision 1.2                                                      
(Mon Feb 19 00:23:06 MSK 2018 greg@ruunvald.lan)
[…]
Booting from net0:
net_probe: no network devices found, maybe not enumerated yet..?
netboot: couldn't probe uboot_eth0
net_open: netif_open() failed
net_probe: no network devices found, maybe not enumerated yet..?
netboot: couldn't probe uboot_eth0
net_open: netif_open() failed
[…same stuff repeats a few more times…]

Trying EFI:

dhcp
env set serverip 192.168.1.2
tftp ${fdt_addr_r} dtb/sun8i-h3-orangepi-pc.dtb
fdt addr ${fdt_addr_r}
env set bootargs boot.nfsroot.server=${serverip} boot.nfsroot.path=/solitude-tank/greg/Netboot/OrangePCFBSD12
tftp ${kernel_addr_r} loader.efi
bootefi ${kernel_addr_r} ${fdt_addr_r}

Result:

## Starting EFI application at 42000000 ...
[…]
FreeBSD/arm EFI loader, Revision 1.1
(Mon Feb 19 00:23:06 MSK 2018 greg@ruunvald.lan)
\

(hangs forever on the slash)
Comment 1 Emmanuel Vadot freebsd_committer freebsd_triage 2018-03-09 01:46:32 UTC
For ubldr it's known and it will not be solved.
ubldr need u-boot api and since u-boot change it's driver model all net api function doesn't work anymore.

For efi I've never tested with nfs, I only use tftp.
The only quirk it needs (but it doesn't seems to be your bug here) is commenting line 231 of efinet.c (https://svnweb.freebsd.org/base/head/stand/efi/libefi/efinet.c?revision=325834&view=markup#l231).
Comment 2 Val Packett 2018-10-12 08:28:55 UTC
Netboot with EFI works now, possibly was a configuration error somewhere