Skip to content

Instantly share code, notes, and snippets.

View ctuffli's full-sized avatar

Chuck Tuffli ctuffli

View GitHub Profile
@ctuffli
ctuffli / gist:e33e7e8276052ab9d8ff826ed937ffa8
Created October 25, 2017 18:44
Emulate bash dirs in powershell
function dirs { Get-Location; Get-Location -Stack }
@ctuffli
ctuffli / gist:10dafd96f0a1dbd0fad3bfbb5550b292
Created February 6, 2017 00:55
FreeBSD parallel kernel build with clang38
make -j8 buildkernel CC=/usr/local/bin/clang38 KERNCONF=CAMNVM MAKEOBJDIRPREFIX=/home/ctuffli/dev/freebsd/obj
@ctuffli
ctuffli / gist:d269367348e6a47d934adfee1377c69f
Created October 6, 2016 06:10
FreeBSD Oracle Java + gradlew
JAVA_HOME=/compat/linux/jvm/jdk1.8.0_101
_JAVA_OPTIONS=-Duser.home=/home/ctuffli
@ctuffli
ctuffli / notes
Last active December 15, 2019 13:00 — forked from pvalkone/gist:9292589
FreeBSD IPMI SOL setup A1SAi-2750F
BIOS Setup
----------
1) Boot into the BIOS setup utility (press F2 or DEL) and open Advanced > Serial Port Console Redirection.
2) Disable COM1 and EMS console redirection and enable SOL redirection.
3) Set the SOL console redirection settings as follows:
Aptio Setup Utility - Copyright (C) 2012 American Megatrends, Inc.
Advanced
/----------------------------------------------------+-------------------------\
diff --git a/sys/cam/ctl/ctl.c b/sys/cam/ctl/ctl.c
index 7a36509..d2595b5 100644
--- a/sys/cam/ctl/ctl.c
+++ b/sys/cam/ctl/ctl.c
@@ -9353,8 +9353,16 @@ ctl_inquiry_std(struct ctl_scsiio *ctsio)
if (lun != NULL)
inq_ptr->device = (SID_QUAL_LU_CONNECTED << 5) |
lun->be_lun->lun_type;
- else
- inq_ptr->device = (SID_QUAL_LU_OFFLINE << 5) | T_DIRECT;
@ctuffli
ctuffli / CAM_DIR_NONE-scsi_ctl.c.patch
Created March 5, 2012 22:41
CTL not setting CAM_DIR_NONE
diff --git a/sys/cam/ctl/scsi_ctl.c b/sys/cam/ctl/scsi_ctl.c
index 1d547d5..e60d70e 100644
--- a/sys/cam/ctl/scsi_ctl.c
+++ b/sys/cam/ctl/scsi_ctl.c
@@ -729,7 +816,7 @@ ctlfestart(struct cam_periph *periph, union ccb *start_ccb)
/*
* We're done, send status back.
*/
- flags |= CAM_SEND_STATUS;
+ flags |= CAM_DIR_NONE | CAM_SEND_STATUS;