Bug 6304 - Minnowboard UEFI + Grub won't net boot a kernel image
Summary: Minnowboard UEFI + Grub won't net boot a kernel image
Status: RESOLVED WONTFIX
Alias: None
Product: MinnowBoard MAX Firmware
Classification: Hardware Platforms
Component: minnowboard-uefi-firmware (show other bugs)
Version: unspecified
Hardware: MinnowBoard Multiple
: Medium+ normal
Target Milestone: Production Release
Assignee: chao zhang
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2014-05-09 20:41 UTC by Bill Mills
Modified: 2015-01-26 22:27 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments
Wireshark packet capture of net boot getting stuck (575.61 KB, application/vnd.tcpdump.pcap)
2014-05-09 20:41 UTC, Bill Mills
no flags Details
Minnow UEFI+Grub won't renew DHCP lease (pcap file) (538.98 KB, application/octet-stream)
2014-05-11 00:38 UTC, Bill Mills
no flags Details
dhcpd.conf file I am using (845 bytes, application/octet-stream)
2014-05-11 00:48 UTC, Bill Mills
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.