Skip to content

Instantly share code, notes, and snippets.

Paul Shirren shirro

Block or report user

Report or block shirro

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@shirro
shirro / gist:2905469
Created Jun 10, 2012
init_emmc_clock=50000000
View gist:2905469
eMMC: configure to 1 bit bus
eMMC status: 0x1fff0000, control: 0x00000000 0x00000000 0x00000000
eMMC status: 0x1fff0000, control: 0x00000000 0x00000000 0x00000000
mmc0: SDHCI controller on BCM2708_Arasan [platform] using platform's DMA
mmc0: BCM2708 SDHC host at 0x20300000 DMA 2 IRQ 77
eMMC status: 0x1fff0000, control: 0x00000000 0x00000000 0x00000000
sdhci-pltfm: SDHCI platform and OF driver helper
Registered led device: led0
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
View dmesg.txt
Waiting for root device /dev/mmcblk0p2...
eMMC: configure to 1 bit bus
eMMC status: 0x1fff0000, control: 0x00000f00 0x00000000 0x00000000
eMMC status: 0x1fff0000, control: 0x00000f00 0x00000000 0x00000000
desired SD clock: 400000, actual: 400000 (divisor 124)
eMMC status: 0x1fff0000, control: 0x00000f00 0x00007c07 0x00000000
eMMC: configure to 1 bit bus
eMMC status: 0x01ff0000, control: 0x00000f00 0x00007c07 0x00000000
eMMC: configure to 1 bit bus
eMMC status: 0x01ff0000, control: 0x00000f00 0x00007c07 0x00000000
@shirro
shirro / clang-rpi.patch
Created Jun 1, 2012
Raspbian Clang 3.0 diff
View clang-rpi.patch
diff -pruN orig/debian/changelog clang-3.0/debian/changelog
--- orig/debian/changelog 2012-02-25 13:05:54.000000000 +0000
+++ clang-3.0/debian/changelog 2012-06-01 01:21:32.687758804 +0000
@@ -1,3 +1,10 @@
+clang (3.0-6+rpi1) unstable; urgency=low
+
+ * Added modified patch from Ubuntu to target 1176jzfs-s cpu
+ * Added patch from Ubuntu to fix armhf ld path
+
+ -- Paul Shirren <shirro@shirro.com> Fri, 01 Jun 2012 10:51:00 +0930
@shirro
shirro / gist:2761874
Created May 21, 2012
dwc udevadm oops
View gist:2761874
Stuff in dmesg as result of:
udevadm info -a -p $(udevadm info -q path -n /dev/sda)
dwc_otg bcm2708_usb: Invalid offset (0xffffffff)
mode_show(c03a4018) -> platform_dev c03a4010, otg_dev c79fe580
hnpcapable_show(c03a4018) -> platform_dev c03a4010, otg_dev c79fe580
srpcapable_show(c03a4018) -> platform_dev c03a4010, otg_dev c79fe580
hsic_connect_show(c03a4018) -> platform_dev c03a4010, otg_dev c79fe580
inv_sel_hsic_show(c03a4018) -> platform_dev c03a4010, otg_dev c79fe580
busconnected_show(c03a4018) -> platform_dev c03a4010, otg_dev c79fe580
@shirro
shirro / gist:2471526
Created Apr 23, 2012
Oops with symbols #1
View gist:2471526
Unable to handle kernel paging request at virtual address 97368dd0
pgd = c0004000
[97368dd0] *pgd=00000000
Internal error: Oops: 5 [#1]
Modules linked in: fuse snd_bcm2835 snd_pcm snd_timer snd snd_page_alloc sd_mod evdev joydev arc4 rt2500usb rt2x00usb rt2x00lib mac80211 cfg80211 uas
CPU: 0 Not tainted (3.1.9+ #90)
pc : [<c0190354>] lr : [<c022bda0>] psr: 60000193
sp : cba57b2c ip : 00000002 fp : cba57b44
r10: 97368dd2 r9 : cb919cc8 r8 : cba8a660
r7 : cb919c80 r6 : cbb46320 r5 : cac64e20 r4 : cb918900
View gist:2367159
# This is not the way to run a production web server
#
# It is a quick and easy way to get php and a database working
# on a low end machine for educational purposes.
#
# This will require Debian Wheezy for PHP 5.4
# I think that is coming to the Raspberry Pi soon
sudo apt-get install php5-cli php5-sqlite sqlite3
@shirro
shirro / gist:952677
Created May 3, 2011
Redis scripting memoize commands
View gist:952677
-- Enables calling redis('command',...) as redis.command(...)
if type(redis) == 'function'
then redis = (
function()
local redis_call = redis
local mt = {
__call = function (self, ...)
return redis_call(...)
end,
__index = function (self, key)
View gist:951084
# Conditional decrement.
#
# Decrement the value of a key only if the current value is greater than
# a specified value.
require 'rubygems'
require 'redis'
r = Redis.new
cond_decr = <<LUA
You can’t perform that action at this time.