Andrew Bradford bradfa

View debian install
1 2 3 4 5 6 7 8 9 10
Create root (sda1) and swap (sda2) partitions, ensure root partition is "bootable"
mkfs.btrfs /dev/sda1
mkdir /mnt/sda1
mount /dev/sda1 /mnt/sda1
debootstrap --arch amd64 wheezy /mnt/sda1
LANG=C chroot /mnt/sda1 /bin/bash
export TERM=xterm-color
apt-get install makedev
mount none /proc -t proc
cd /dev
View gist:6426296
1 2 3 4
I like the MIT and ISC licenses.  They fit with my desire to not have to jump through hoops to comply with various licenses.  Many companies do this poorly or not at all.  MIT and ISC do keep copyright intact.
For MIT and ISC, it seems compliance would be as easy as putting a copy of the license, compressed or not, into flash memory on an embedded system.  Job done, the license is distributed along with the software.
I do not want to have to comply with the GPL mostly out of laziness.  In a small company, if I'm the one wanting to use GPL code to make my life easier in development then I'm the one who has to make sure the business complies properly.  Even complying with the BSD license means that the product, when sold, must have some documentation included in order to comply.  That's a pain in the butt that many companies don't want to deal with or don't know they need to deal with.
Yes, there's the risk that someone take a project licensed under ISC or MIT and go sell it on their own and not contribute back
View gcc-fail
1 2 3 4 5 6 7 8 9 10
make[2]: Entering directory `/opt/clfs/clfs-armv7/sources/gcc-build/gcc'
gawk -f ../../gcc-4.7.3/gcc/opt-functions.awk -f ../../gcc-4.7.3/gcc/opt-read.awk \
-f ../../gcc-4.7.3/gcc/opth-gen.awk \
< optionlist > tmp-options.h
/bin/sh ../../gcc-4.7.3/gcc/../move-if-change tmp-options.h options.h
echo timestamp > s-options-h
gcc -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wc++-compat -DHAVE_CONFIG_H -DGENERATOR_FILE -Wl,-rpath,/opt/clfs/clfs-armv7/cross-tools/lib -o build/genconstants \
build/genconstants.o build/read-md.o build/errors.o ../build-x86_64-cross-linux-gnu/libiberty/libiberty.a
build/errors.o: In function `warning':
/opt/clfs/clfs-armv7/sources/gcc-build/gcc/../../gcc-4.7.3/gcc/errors.c:52: undefined reference to `__fputc_unlocked'
View clfs-notes.md

Going to musl:

Should we just do the FPU as vfp and say you have to have hard float or do netwinder fpu?

If we go all static, does binutils need --enable-shared?

View gist:6118665
1 2 3 4 5 6 7
Going to musl:
 
* Arm should just be eabi and aapcs-linux
* we want to build everything static
* triplet changes to armv7a-unknown-linux-musleabi (or similar)
 
Should we just do the FPU as vfp and say you have to have hard float or do netwinder fpu?
View notes.md
View 69-yubikey.rules
1 2 3 4 5 6 7 8 9 10
ACTION!="add|change", GOTO="yubico_end"
 
# Udev rules for letting the console user access the Yubikey USB
# device node, needed for challenge/response to work correctly.
 
# Yubico Yubikey II
ATTRS{idVendor}=="1050", ATTRS{idProduct}=="0010|0110|0111", \
ENV{ID_SECURITY_TOKEN}="1", RUN+="/usr/bin/killall -9 scdaemon"
 
LABEL="yubico_end"
View CCSv5 install on Arch x86_64
1 2 3 4 5 6 7 8 9 10
Just use an i386 Ubuntu Precise chroot for CCSv5.
 
Make sure you have "unzip" and "libjpeg62" and "libgtk2.0" and "libxtst6" installed inside the chroot.
 
Don't install CCSv5 as root, there's no need. You may want to install the MSP430FET drivers on your main system, though, which does need root.
 
Edit ~ti/ccsv5/eclipse/plugins/com.ti.ccstudio.branding_5.3.0.201211071700/plugin_customization.ini so that "showIntro = false" so that CCS doesn't crash due to having bad Mozilla libs
 
Launch with
$ schroot -c ccsv5 ~/ti/ccsv5/eclipse/ccstudio
View gist:5567922
1 2 3 4 5 6 7 8 9 10
andrew@brick:/tmp$ sudo fdisk -l /dev/sdc
 
Disk /dev/sdc: 7948 MB, 7948206080 bytes
32 heads, 32 sectors/track, 15160 cylinders
Units = cylinders of 1024 * 512 = 524288 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
 
Device Boot Start End Blocks Id System
View debootstrap and schroot on Arch
1 2 3 4 5 6 7 8 9 10
# Install schroot via pacman
# Install gnupg1, debootstrap, ubuntu-keyring, and debian-archive-keyring from AUR
# Create the "staff", "uucp", and "crontab" groups, some Debian/Ubuntu packages need them present
$ sudo mkdir -p /opt/chroot/${CHROOT_NAME}
# Use `--variant=buildd` to install build-essential, use `--include=` to install those packages (like depends for buildroot)
$ sudo debootstrap --arch=amd64|i386 [--variant=buildd] [--include=bison,flex,gettext,patch,bzip2,cpio,python,rsync,unzip,texinfo,wget,sudo,aptitude] wheezy /opt/chroot/${CHROOT_NAME} http://mirror.rit.edu/debian
# Edit /etc/schroot/schroot.conf as below
# Edit /etc/schroot/default/nssdatabases to comment out networks line
# If you want to run X apps: `$ xhost +` and then once inside the schroot `$ export DISPLAY=:0.0`
$ schroot -c ${CHROOT_NAME}
Something went wrong with that request. Please try again.