Skip to content

Instantly share code, notes, and snippets.

View bradfa's full-sized avatar
⚔️

Andrew Bradford bradfa

⚔️
View GitHub Profile
@bradfa
bradfa / format_sd.sh
Last active August 2, 2016 15:20
BeagleBone format_sd Script
#!/bin/bash
# Format an SD card for use in a TI development kit to boot u-boot and Linux.
# The layout is a small 32 MB FAT partition and a larger (remainder of device)
# ext4 partition. The FAT partition starts at 1 MB and the ext4 partition
# immediately follows.
# Stop execution on any error condition
set -e
@bradfa
bradfa / gist:1497690
Created December 19, 2011 15:31
BeagleBone Debian Squeeze boot with 3.1-arago kernel
U-Boot 2011.09-00012-ge0ff075-dirty (Dec 14 2011 - 09:51:05)
I2C: ready
DRAM: 256 MiB
WARNING: Caches not enabled
No daughter card present
NAND: HW ECC Hamming Code selected
nand_get_flash_type: unknown NAND device: Manufacturer ID: 0x11, Chip ID:
0x11
No NAND device found!!!
@bradfa
bradfa / format_sd.sh
Created December 19, 2011 16:53
Format SD card with /dev/sdX style card reader
#!/bin/sh
if [ ! "$1" = "/dev/sda" ] ; then
DRIVE=$1
if [ -b "$DRIVE" ] ; then
dd if=/dev/zero of=$DRIVE bs=1024 count=1024
SIZE=`fdisk -l $DRIVE | grep Disk | awk '{print $5}'`
echo DISK SIZE - $SIZE bytes
CYLINDERS=`echo $SIZE/128/32/512 | bc`
echo CYLINDERS - $CYLINDERS
@bradfa
bradfa / gist:1523407
Created December 27, 2011 11:54
BeagleBone boot time
[ 1.392442] Freeing init memory: 228K
INIT: version 2.88 booting
Using makefile-style concurrent boot in runlevel S.
Starting the hotplug events dispatcher: udevd[ 2.020579] udev[576]: starting4
.
Synthesizing the initial hotplug events...done.
Waiting for /dev to be fully populated...done.
Activating swap...done.
Checking root file system...fsck from util-linux-ng 2.17.2
rootfs: clean, 16344/481440 files, 156578/1922048 blocks
@bradfa
bradfa / multistrap-armel.conf
Created December 27, 2011 11:59
BeagleBone Multistrap Configuration
[General]
arch=armel
directory=/opt/armel-debian-squeeze/
unpack=true
bootstrap=Debian
aptsources=Debian
omitdebsrc=true
cleanup=false
noauth=false
@bradfa
bradfa / fstab
Created February 19, 2012 19:53
BeagleBoard-xM Debian 6 armel /etc files
/proc proc defaults 0 0
@bradfa
bradfa / multistrap.config
Created February 19, 2012 19:55
BeagleBoard-xM Debian 6 armel multistrap.config
[General]
arch=armel
directory=./debian-armel/
unpack=true
bootstrap=Debian
aptsources=Debian
omitdebsrc=true
cleanup=false
noauth=false
@bradfa
bradfa / uEnv.txt
Created February 19, 2012 19:59
BeagleBoard-xM u-boot v2011.12 for Debian 6 NFS boot
console=ttyO2,115200n8
usbethaddr=00:00:11:11:22:22
autoload=no
nfsargs=setenv bootargs root=/dev/nfs rw nfsroot=${serverip}:/opt/beagleroot,nolock console=${console} ip=dhcp rootdelay=1
setupnet=dcache off;usb start;dhcp;setenv serverip 192.168.1.5
uenvcmd=run setupnet;run nfsargs;tftpboot ${loadaddr} ${serverip}:${bootfile};bootm ${loadaddr}
@bradfa
bradfa / 0001-board-am335xevm.c-Add-BeagleBone-LED-configuration.patch
Created March 1, 2012 15:16
0001-board-am335xevm.c-Add-BeagleBone-LED-configuration.patch
From f53cecf219fee81d349fa5fa562d538cae1abf8b Mon Sep 17 00:00:00 2001
From: Andrew Bradford <andrew.bradford@omni-id.com>
Date: Thu, 1 Mar 2012 10:06:05 -0500
Subject: [PATCH] board-am335xevm.c: Add BeagleBone LED configuration
Blinks USR0 (D2) as heartbeat.
Blinks USR1 (D3) on MMC access.
---
arch/arm/mach-omap2/board-am335xevm.c | 60 +++++++++++++++++++++++++++++++++
1 files changed, 60 insertions(+), 0 deletions(-)
@bradfa
bradfa / bootlog.txt
Created March 21, 2012 15:47
BeagleBone boot with Debian Squeeze and Linux 3.2.11 on UART1
U-Boot SPL 2011.09-00036-ga61c346-dirty (Mar 14 2012 - 11:13:20)
Texas Instruments Revision detection unimplemented
OMAP SD/MMC: 0
reading u-boot.img
reading u-boot.img
U-Boot 2011.09-00036-ga61c346-dirty (Mar 14 2012 - 11:13:20)
I2C: ready