Skip to content

Instantly share code, notes, and snippets.

View divx118's full-sized avatar

Maurice van Kruchten divx118

View GitHub Profile
[ 21.605184] Chromium OS LSM: init_module locking-ignored
obj="/lib/modules/3.14.0/updates/dkms/vboxdrv.ko" pid=10608
cmdline="modprobe vboxdrv"
[ 21.617057] Chromium OS LSM: init_module locking-ignored
obj="/lib/modules/3.14.0/updates/dkms/vboxpci.ko" pid=10609
cmdline="modprobe vboxpci"
[ 21.620848] Chromium OS LSM: init_module locking-ignored
obj="/lib/modules/3.14.0/updates/dkms/vboxnetadp.ko" pid=10610
cmdline="modprobe vboxnetadp"
[ 21.623752] Chromium OS LSM: init_module locking-ignored
@divx118
divx118 / cleanuploop
Created August 6, 2014 17:25
mount ext2/3/4 in chromeos scripts should be in /usr/local/bin First run "/usr/local/bin/mountextfs setup" to setup the udev rule.
#!/bin/sh
while [ "x`cat /proc/mounts|grep /dev/loop )`" != "x" -a "x`cat /proc/mounts|grep /media/removable )`" != "x" ];do
cat /proc/mounts|grep /dev/loop|while read line;do
mountpoint=`echo "$line"|cut -d " " -f 2`
loopdevice=`echo "$line"|cut -d " " -f 1`
# check if our ext2/3/4 device is still mounted
device=`cat /proc/mounts|grep $mountpoint|grep -v $loopdevice`
if [ "x$device" = "x" ];then
umount -d $loopdevice
# Be sure the directory is empty before deleting.
@divx118
divx118 / No chroot running
Created April 10, 2014 16:23
audio cracking
chronos@localhost / $ cras_test_client --dump_server_info
System Volume (0-100): 100
Capture Gain (-17.25 - 30.00): 20.00dB
Output Devices:
ID Name
6 HDA Intel PCH: ALC283 Analog:1,0
5 HDA Intel MID: HDMI 2:0,8
4 HDA Intel MID: HDMI 1:0,7
3 HDA Intel MID: HDMI 0:0,3
1 Silent playback device.
@divx118
divx118 / gist:9289197
Created March 1, 2014 12:39
Xorg.0.log
[ 3.804]
X.Org X Server 1.12.4
Release Date: 2012-08-27
[ 3.804] X Protocol Version 11, Revision 0
[ 3.804] Build Operating System: Linux 3.2.0-58-generic x86_64 Gentoo
[ 3.804] Current Operating System: Linux localhost 3.8.11 #1 SMP Thu Feb 20 00:29:51 PST 2014 x86_64
[ 3.804] Kernel command line: cros_secure console= loglevel=7 init=/sbin/init cros_secure oops=panic panic=-1 root=/dev/dm-0 rootwait ro dm_verity.error_behavior=3 dm_verity.max_bios=-1 dm_verity.dev_wait=1 dm="1 vroot none ro 1,0 2097152 verity payload=PARTUUID=36d4e9de-a997-2042-b788-b5689686594f/PARTNROFF=1 hashtree=PARTUUID=36d4e9de-a997-2042-b788-b5689686594f/PARTNROFF=1 hashstart=2097152 alg=sha1 root_hexdigest=e69706282971df94226cc533a9504436ddcbb5aa salt=8aef43ef22879c237abd450a49b744c2df4dd557044189a347b71a69a4858db4" noinitrd vt.global_cursor_default=0 kern_guid=36d4e9de-a997-2042-b788-b5689686594f add_efi_memmap boot=local noresume noswap i915.modeset=1 tpm_tis.force=1 tpm_tis.interrupts=0 nmi_watchdog=panic,lapi