Bug 6304

Summary: Minnowboard UEFI + Grub won't net boot a kernel image
Product: [Hardware Platforms] MinnowBoard MAX Firmware Reporter: Bill Mills <wmills>
Component: minnowboard-uefi-firmwareAssignee: chao zhang <chao.b.zhang>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: Medium+ CC: scott.a.garman, sjolley.yp.pm, warthog9, wmills
Version: unspecified   
Target Milestone: Production Release   
Hardware: MinnowBoard   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know
Attachments:
Description Flags
Wireshark packet capture of net boot getting stuck
none
Minnow UEFI+Grub won't renew DHCP lease (pcap file)
none
dhcpd.conf file I am using none

Description Bill Mills 2014-05-09 20:41:14 UTC
Created attachment 1940 [details]
Wireshark packet capture of net boot getting stuck

Firmware loads UEFI application from IPv4 DHCP+TFTP just fine
Even very large loads appear fine.  (I tried 32MB and 256MB of extra pad).

However, when GRUB EFI is loaded via TFTP it fails to load a kernel image.
It is able to load small files like config files just fine.

The images and step by step instructions are in [1].
Several pcap traces are available in [2].
I have attached one here directly.
They can be viewed in wireshark or other pcap capable tools.

At a grub prompt type a command like:
   linux (tftp)minnow01/bzImage-minnow.bin

The transfer gets stuck, often at packet 51 but sometimes later packets.
I have never seen it get past packet 100.

[1] also contains a standalone version of grub that is much bigger and contains a kernel and initramfs.  This works fine as all the transfer is done in one stream by the firmware w/o pauses.

[1] http://arago-project.org/files/short-term/misc/make-netbootia32.tar.bz2
[2] http://arago-project.org/files/short-term/misc/minnow-uefi-grub-boot-w-kernel-load-hang.tar.bz2
Comment 1 Bill Mills 2014-05-11 00:38:12 UTC
Created attachment 1941 [details]
Minnow UEFI+Grub won't renew DHCP lease (pcap file)
Comment 2 Bill Mills 2014-05-11 00:48:29 UTC
Created attachment 1942 [details]
dhcpd.conf file I am using
Comment 3 Bill Mills 2014-05-11 00:51:43 UTC
This may be another symptom related to the same bug.
I net booted Grub, got a Grub shell prompt and let it sit there.
At about 330 seconds it tries to renew the DHCP lease.
The server ACK the request but the client(minnow) acts like it does not see the packet
The client retries the request 3 times (getting an ignored ACK each time) and gives up.

At 528 seconds the client has given up its leased ip address and is asking for a new lease.  Again the server responds but the client ignores it.
Again the client tries 3 times and gives up.

At ~ 630 seconds I try the grub command:
   source (tftp)/xyz
It tries silently for 10 seconds or so and then gives me the prompt back w/o and error message.
No packets actually made it out of the client for this command.
(I suspect internal logic is dropping them due to lack of ip addr.)

A wireshark packet capture is attached.

I no longer belive this is my DHCP server config error.
I have eliminated the dynamic-bootp option which I thought might have been causing it.
dhcpd.conf file attached.
Comment 4 John 'Warthog9' Hawley 2015-01-26 22:27:06 UTC
MinnowBoard v1 has reached new feature EOL, FW development is done as are new hardware features.  If you feel EXCEEDINGLY strongly about an issue please re-open it for discussion but be aware that we are recommending individuals migrate to the MAX platform.