Skip to content

Instantly share code, notes, and snippets.

View robinsmidsrod's full-sized avatar

Robin Smidsrød robinsmidsrod

View GitHub Profile
ar: creating bin/blib.a
[VERSION] bin/version.undionly.kpxe.o
[LD] bin/undionly.kpxe.tmp
[HOSTCC] util/zbin
[BIN] bin/undionly.kpxe.bin
[ZINFO] bin/undionly.kpxe.zinfo
[ZBIN] bin/undionly.kpxe.zbin
COPY [0,0xe85) to [0,0xe85)
PACK [0xe90,0xf7e) to [0xe90,0xf6d)
PAYL at 0xf6d
@robinsmidsrod
robinsmidsrod / RTL8153.txt
Last active August 29, 2015 14:17
Realtek RTL8153 USB NIC + VIA USB 3.0 3-port Hub hopefully suitable for network booting with iPXE ECM driver
Bus 004 Device 003: ID 0bda:8153 Realtek Semiconductor Corp.
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 3.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 9
@robinsmidsrod
robinsmidsrod / dmesg.txt
Last active August 29, 2015 14:17
dmesg output of inserting Realtek RTL8153 USB NIC (with hub)
[ 1213.798444] usb 4-4: USB disconnect, device number 4
[ 1213.798453] usb 4-4.3: USB disconnect, device number 5
[ 1213.798599] usb 4-4.3: Failed to set U1 timeout to 0x0,error code -19
[ 1213.798606] usb 4-4.3: Set SEL for device-initiated U1 failed.
[ 1213.798610] usb 4-4.3: Set SEL for device-initiated U2 failed.
[ 1213.799563] usb 4-4: Set SEL for device-initiated U1 failed.
[ 1213.799574] usb 4-4: Set SEL for device-initiated U2 failed.
[ 1213.926461] usb 3-4: USB disconnect, device number 3
[ 1217.959509] usb 4-4: new SuperSpeed USB device number 6 using xhci_hcd
[ 1218.208070] usb 4-4: New USB device found, idVendor=2109, idProduct=0812
@robinsmidsrod
robinsmidsrod / gist:54e33e3c202ecf353f2b
Last active August 29, 2015 14:18
Performance improvements to iPXE util/parserom.pl
robin@core:~/ipxe/src$ time find . -type f -name \*.c | sort | \
xargs util/parserom.pl --exclude-category usb --exclude-driver rtl818x >/dev/null
real 0m0.917s
user 0m0.404s
sys 0m0.064s
robin@core:~/ipxe/src$ time find . -type f -name \*.c | sort | \
while read name; do util/parserom.pl --exclude-category usb --exclude-driver rtl818x "$name" >/dev/null; done
@robinsmidsrod
robinsmidsrod / parserom_rewrite_fixes.diff
Last active August 29, 2015 14:18
Somewhat working Makefile for new iPXE PR: https://github.com/ipxe/ipxe/pull/35
diff --git a/src/Makefile.housekeeping b/src/Makefile.housekeeping
index f54008c..3589ce7 100644
--- a/src/Makefile.housekeeping
+++ b/src/Makefile.housekeeping
@@ -765,7 +765,7 @@ define deps_template_parts
-Wno-error -M $(1) -MG -MP | \
sed 's/\.o\s*:/_DEPS +=/' > $(BIN)/deps/$(1).d
$(Q)$(if $(findstring drivers/,$(1)),\
- $(PERL) $(PARSEROM) $(1) >> $(BIN)/deps/$(1).d)
+ $(PERL) $(PARSEROM) --exclude-driver-class usb --exclude-driver rtl818x $(1) >> $(BIN)/deps/$(1).d)
@robinsmidsrod
robinsmidsrod / keybase.md
Last active August 29, 2015 14:19
Keybase proof

Keybase proof

I hereby claim:

  • I am robinsmidsrod on github.
  • I am robinsmidsrod (https://keybase.io/robinsmidsrod) on keybase.
  • I have a public key whose fingerprint is EE11 59C3 E7DB D09B 57FD 11AD 1C0C 0454 3FE2 9F6E

To claim this, I am signing this object:

@robinsmidsrod
robinsmidsrod / ipxe.diff
Created April 17, 2015 17:01
diff for Detroilen
diff --git a/COPYING b/COPYING
old mode 100644
new mode 100755
diff --git a/COPYING.GPLv2 b/COPYING.GPLv2
old mode 100644
new mode 100755
diff --git a/COPYING.UBDL b/COPYING.UBDL
old mode 100644
new mode 100755
diff --git a/README b/README
diff --git a/src/Makefile.housekeeping b/src/Makefile.housekeeping
index ad7d14d..51d71f1 100644
--- a/src/Makefile.housekeeping
+++ b/src/Makefile.housekeeping
@@ -881,7 +881,7 @@ VERYCLEANUP += $(ROM_SRCS_LIST)
#
ROMDEFS = $(BIN)/.rom.defs
$(ROMDEFS) : $(ROM_SRCS) $(ROM_SRCS_LIST) $(PARSEROM) $(MAKEDEPS)
- $$(QM)$(ECHO) " [PARSEROM]"
+ $(QM)$(ECHO) " [PARSEROM]"
@robinsmidsrod
robinsmidsrod / makefile_exclude_usb.diff
Last active August 29, 2015 14:19
UPDATE: This patch is no longer required. Upgrade to the latest master branch of iPXE and the USB keyboard issue is fixed. ORIGINAL: This patch is a hack and will totally disable all USB support in iPXE for all builds. This patch will disable support for any USB NIC in all builds, even the USB-specific ones.
diff --git a/src/Makefile.housekeeping b/src/Makefile.housekeeping
index ad7d14d..42715ed 100644
--- a/src/Makefile.housekeeping
+++ b/src/Makefile.housekeeping
@@ -881,8 +881,8 @@ VERYCLEANUP += $(ROM_SRCS_LIST)
#
ROMDEFS = $(BIN)/.rom.defs
$(ROMDEFS) : $(ROM_SRCS) $(ROM_SRCS_LIST) $(PARSEROM) $(MAKEDEPS)
- $$(QM)$(ECHO) " [PARSEROM]"
- $(Q)$(PERL) $(PARSEROM) $(ROM_SRCS) > $@
@robinsmidsrod
robinsmidsrod / -
Last active August 29, 2015 14:19
Output from: find . -type f -name \*.c | sort | xargs util/parserom.pl | grep DRIVERS
DRIVERS_net += undi
DRIVERS_xen += hvm
DRIVERS_infiniband += arbel
DRIVERS_infiniband += hermon
DRIVERS_infiniband += linda
DRIVERS_infiniband += qib7322
DRIVERS_net += 3c509
DRIVERS_net += 3c509-eisa
DRIVERS_net += 3c515
DRIVERS_net += 3c529