Skip to content

Instantly share code, notes, and snippets.

voodoo@a3-imx6q-wandboard-2gb:~$ sudo ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:1f:7b:b4:02:62
inet addr:192.168.1.32 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::21f:7bff:feb4:262/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:961380 errors:0 dropped:0 overruns:0 frame:0
TX packets:287290 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1163744014 (1.0 GiB) TX bytes:304919836 (290.7 MiB)
@RobertCNelson
RobertCNelson / g_ether
Last active August 29, 2015 14:18
g_multi vs g_ether
KERNEL[22913.100093] add /devices/pci0000:00/0000:00:10.1/usb8/8-2 (usb)
KERNEL[22913.101822] add /devices/pci0000:00/0000:00:10.1/usb8/8-2/8-2:1.0 (usb)
KERNEL[22913.101871] add /devices/pci0000:00/0000:00:10.1/usb8/8-2/8-2:1.1 (usb)
UDEV [22913.106738] add /devices/pci0000:00/0000:00:10.1/usb8/8-2 (usb)
KERNEL[22913.133973] add /module/mii (module)
UDEV [22913.135153] add /module/mii (module)
KERNEL[22913.143606] add /module/usbnet (module)
UDEV [22913.143987] add /module/usbnet (module)
KERNEL[22913.151724] add /module/cdc_ether (module)
UDEV [22913.152086] add /module/cdc_ether (module)
v4.0.x:
dpll5_ck 1 1 120000000 0 0
dpll5_m2_ck 2 2 120000000 0 0
dpll5_m2_d20_ck 0 0 6000000 0 0
dpll5_m2_d16_ck 0 0 7500000 0 0
dpll5_m2_d8_ck 0 0 15000000 0 0
dpll5_m2_d4_ck 0 0 30000000 0 0
usbhost_120m_fck 1 1 120000000 0 0
usbtll_fck 1 1 120000000 0 0
#!/bin/sh -e
# Copy the compatibility symlinks until initramfs-tools will be converted
# to use the kmod program.
if [ "$1" = "prereqs" ]; then exit 0; fi
. /usr/share/initramfs-tools/hook-functions
mkdir -p $DESTDIR/lib/firmware/
cp -a /lib/firmware/*.dtbo $DESTDIR/lib/firmware/
# architecture
BR2_arm=y
BR2_cortex_a8=y
BR2_ARM_EABIHF=y
# system
BR2_TARGET_GENERIC_HOSTNAME="beaglebone"
BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_DEVTMPFS=y
BR2_TARGET_GENERIC_GETTY_PORT="ttyS0"
BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW=y
@RobertCNelson
RobertCNelson / squeeze
Created April 30, 2015 15:50
debian read only root
/etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/*
* Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
/dts-v1/;
#include "am33xx.dtsi"
<aholler> there was a version of the rfkill-driver which printed a message
* RzR ([email protected]) has joined #wandboard
<aholler> + /* GPIO for detecting C1 revision of Wandboard */
<aholler> + wand_rev_gpio = of_get_named_gpio(pdev->dev.of_node, "wand-rev-gpio", 0);
<aholler> + if (!gpio_is_valid(wand_rev_gpio)) {
<aholler> +
<aholler> + dev_err(&pdev->dev, "incorrect Wandboard revision check gpio (%d)\n",
<aholler> + wand_rev_gpio);
<aholler> + return -EINVAL;
<aholler> + }
sudo dd if=/dev/zero of=${DISK} bs=1M count=10
sudo sfdisk --in-order --Linux --unit M ${DISK} <<-__EOF__
1,,0xE,*
__EOF__
sudo mkfs.vfat -F 32 ${DISK}1 -n BOOT
sudo mount ${DISK}1 /media/boot/
arch=arm
baudrate=115200
board=am335x
board_name=MASERATI
board_rev=00A1
bootcmd=run findfdt; mmc dev ${mmcdev}; if mmc rescan; then echo SD/MMC found on device ${mmcdev};if run loadbootenv; then echo Loaded environment from ${bootenv};run importbootenv;fi;if test -n $uenvcmd; then echo Running uenvcmd ...;run uenvcmd;fi;if run loaduimage; then run loadfdt;run mmcboot;fi;else run nandboot;fi;
bootdelay=1
bootdir=/boot
bootenv=uEnv.txt
bootfile=uImage